@strapi/plugin-documentation 4.11.0-alpha.0 → 4.11.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -137,6 +137,7 @@ describe('Plugin | Documentation | PluginPage', () => {
137
137
  font-size: 0.75rem;
138
138
  line-height: 1.33;
139
139
  font-weight: 600;
140
+ line-height: 0;
140
141
  color: #ffffff;
141
142
  }
142
143
 
@@ -124,6 +124,7 @@ describe('Plugin | Documentation | SettingsPage', () => {
124
124
  font-size: 0.75rem;
125
125
  line-height: 1.33;
126
126
  font-weight: 600;
127
+ line-height: 0;
127
128
  color: #ffffff;
128
129
  }
129
130
 
@@ -1,14 +1,14 @@
1
1
  const openWithNewTab = (path) => {
2
2
  const url = (() => {
3
3
  if (path.startsWith('/')) {
4
- return `${strapi.backendURL}${path}`;
4
+ return `${window.strapi.backendURL}${path}`;
5
5
  }
6
6
 
7
7
  if (path.startsWith('http')) {
8
8
  return path;
9
9
  }
10
10
 
11
- return `${strapi.backendURL}/${path}`;
11
+ return `${window.strapi.backendURL}/${path}`;
12
12
  })();
13
13
 
14
14
  window.open(url, '_blank');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/plugin-documentation",
3
- "version": "4.11.0-alpha.0",
3
+ "version": "4.11.0-beta.0",
4
4
  "description": "Create an OpenAPI Document and visualize your API with SWAGGER UI.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,10 +30,10 @@
30
30
  "test:front:watch:ce": "run -T cross-env IS_EE=false jest --config ./jest.config.front.js --watchAll"
31
31
  },
32
32
  "dependencies": {
33
- "@strapi/design-system": "1.7.4",
34
- "@strapi/helper-plugin": "4.11.0-alpha.0",
35
- "@strapi/icons": "1.7.4",
36
- "@strapi/utils": "4.11.0-alpha.0",
33
+ "@strapi/design-system": "1.7.7",
34
+ "@strapi/helper-plugin": "4.11.0-beta.0",
35
+ "@strapi/icons": "1.7.7",
36
+ "@strapi/utils": "4.11.0-beta.0",
37
37
  "bcryptjs": "2.4.3",
38
38
  "cheerio": "^1.0.0-rc.12",
39
39
  "formik": "2.2.9",
@@ -43,7 +43,6 @@
43
43
  "lodash": "4.17.21",
44
44
  "path-to-regexp": "6.2.1",
45
45
  "pluralize": "8.0.0",
46
- "react-copy-to-clipboard": "^5.1.0",
47
46
  "react-helmet": "^6.1.0",
48
47
  "react-intl": "6.4.1",
49
48
  "react-query": "3.24.3",
@@ -81,5 +80,5 @@
81
80
  "description": "Create an OpenAPI Document and visualize your API with SWAGGER UI.",
82
81
  "kind": "plugin"
83
82
  },
84
- "gitHead": "ca5fb0fcfab1b6784208d2ddf6d51617b8893b35"
83
+ "gitHead": "fd63eb0f5c625311803775504cec0d3d4d770da9"
85
84
  }
@@ -182,9 +182,7 @@ module.exports = ({ strapi }) => {
182
182
 
183
183
  generatedDocumentation = produce(generatedDocumentation, (draft) => {
184
184
  if (generatedSchemas) {
185
- draft.components = {
186
- schemas: { ...draft.components.schemas, ...generatedSchemas },
187
- };
185
+ draft.components.schemas = { ...draft.components.schemas, ...generatedSchemas };
188
186
  }
189
187
 
190
188
  if (newApiPath) {