@strapi/plugin-documentation 4.10.5 → 4.10.7

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
 
@@ -565,74 +566,70 @@ describe('Plugin | Documentation | SettingsPage', () => {
565
566
  class="c18"
566
567
  >
567
568
  <div
568
- class=""
569
+ class="c19"
569
570
  >
570
571
  <div
571
- class="c19"
572
+ class="c20"
572
573
  >
573
574
  <div
574
- class="c20"
575
+ class="c4"
576
+ >
577
+ <label
578
+ class="c5 c21 c22"
579
+ for="1"
580
+ >
581
+ Restricted Access
582
+ </label>
583
+ </div>
584
+ <label
585
+ class="c23"
575
586
  >
576
587
  <div
577
- class="c4"
588
+ class="c24"
578
589
  >
579
- <label
580
- class="c5 c21 c22"
581
- for="1"
582
- >
583
- Restricted Access
584
- </label>
590
+ Restricted Access
585
591
  </div>
586
- <label
587
- class="c23"
592
+ <div
593
+ class="c25 c26"
594
+ display="flex"
588
595
  >
589
596
  <div
590
- class="c24"
597
+ aria-hidden="true"
598
+ class="c27 c28 c29"
591
599
  >
592
- Restricted Access
600
+ <span
601
+ class="c5 c30"
602
+ >
603
+ Off
604
+ </span>
593
605
  </div>
594
606
  <div
595
- class="c25 c26"
596
- display="flex"
607
+ aria-hidden="true"
608
+ class="c27 c28 c31"
597
609
  >
598
- <div
599
- aria-hidden="true"
600
- class="c27 c28 c29"
601
- >
602
- <span
603
- class="c5 c30"
604
- >
605
- Off
606
- </span>
607
- </div>
608
- <div
609
- aria-hidden="true"
610
- class="c27 c28 c31"
610
+ <span
611
+ class="c5 c32"
611
612
  >
612
- <span
613
- class="c5 c32"
614
- >
615
- On
616
- </span>
617
- </div>
618
- <input
619
- aria-describedby="1-hint"
620
- aria-disabled="false"
621
- aria-required="false"
622
- class="c33"
623
- id="1"
624
- name="restrictedAccess"
625
- type="checkbox"
626
- />
613
+ On
614
+ </span>
627
615
  </div>
628
- </label>
629
- <p
630
- class="c5 c34"
631
- id="1-hint"
632
- >
633
- Make the documentation endpoint private
634
- </p>
635
- </div>
616
+ <input
617
+ aria-describedby="1-hint"
618
+ aria-disabled="false"
619
+ aria-required="false"
620
+ class="c33"
621
+ id="1"
622
+ name="restrictedAccess"
623
+ type="checkbox"
624
+ />
625
+ </div>
626
+ </label>
627
+ <p
628
+ class="c5 c34"
629
+ id="1-hint"
630
+ >
631
+ Make the documentation endpoint private
632
+ </p>
636
633
  </div>
637
634
  </div>
638
635
  </div>
@@ -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.10.5",
3
+ "version": "4.10.7",
4
4
  "description": "Create an OpenAPI Document and visualize your API with SWAGGER UI.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,23 +30,22 @@
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.5",
34
- "@strapi/helper-plugin": "4.10.5",
35
- "@strapi/icons": "1.7.5",
36
- "@strapi/utils": "4.10.5",
33
+ "@strapi/design-system": "1.7.9",
34
+ "@strapi/helper-plugin": "4.10.7",
35
+ "@strapi/icons": "1.7.9",
36
+ "@strapi/utils": "4.10.7",
37
37
  "bcryptjs": "2.4.3",
38
38
  "cheerio": "^1.0.0-rc.12",
39
- "formik": "2.2.9",
39
+ "formik": "2.4.0",
40
40
  "fs-extra": "10.0.0",
41
41
  "immer": "9.0.19",
42
42
  "koa-static": "^5.0.0",
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
- "react-query": "3.24.3",
48
+ "react-query": "3.39.3",
50
49
  "react-redux": "8.0.5",
51
50
  "redux": "^4.2.1",
52
51
  "reselect": "^4.1.7",
@@ -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": "d9277d616b4478a3839e79e47330a4aaf167a2f1"
83
+ "gitHead": "da080df32b85cdd59d46bdda5c984a346cad0860"
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) {