@strapi/plugin-documentation 4.11.0-beta.1 → 4.11.0-exp.9xg4-3qfm-9w8f.1

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.
@@ -64,53 +64,6 @@ describe('Plugin | Documentation | PluginPage', () => {
64
64
  await waitFor(() => expect(screen.getByText('1.0.0')).toBeInTheDocument());
65
65
 
66
66
  expect(firstChild).toMatchInlineSnapshot(`
67
- .c36 {
68
- border: 0;
69
- -webkit-clip: rect(0 0 0 0);
70
- clip: rect(0 0 0 0);
71
- height: 1px;
72
- margin: -1px;
73
- overflow: hidden;
74
- padding: 0;
75
- position: absolute;
76
- width: 1px;
77
- }
78
-
79
- .c9 {
80
- font-weight: 600;
81
- font-size: 2rem;
82
- line-height: 1.25;
83
- color: #32324d;
84
- }
85
-
86
- .c14 {
87
- font-size: 0.75rem;
88
- line-height: 1.33;
89
- font-weight: 600;
90
- line-height: 0;
91
- color: #ffffff;
92
- }
93
-
94
- .c15 {
95
- font-size: 1rem;
96
- line-height: 1.5;
97
- color: #666687;
98
- }
99
-
100
- .c27 {
101
- font-weight: 600;
102
- font-size: 0.6875rem;
103
- line-height: 1.45;
104
- text-transform: uppercase;
105
- color: #666687;
106
- }
107
-
108
- .c31 {
109
- font-size: 0.875rem;
110
- line-height: 1.43;
111
- color: #32324d;
112
- }
113
-
114
67
  .c1 {
115
68
  padding-bottom: 56px;
116
69
  }
@@ -173,6 +126,41 @@ describe('Plugin | Documentation | PluginPage', () => {
173
126
  cursor: pointer;
174
127
  }
175
128
 
129
+ .c9 {
130
+ font-weight: 600;
131
+ font-size: 2rem;
132
+ line-height: 1.25;
133
+ color: #32324d;
134
+ }
135
+
136
+ .c14 {
137
+ font-size: 0.75rem;
138
+ line-height: 1.33;
139
+ font-weight: 600;
140
+ line-height: 0;
141
+ color: #ffffff;
142
+ }
143
+
144
+ .c15 {
145
+ font-size: 1rem;
146
+ line-height: 1.5;
147
+ color: #666687;
148
+ }
149
+
150
+ .c27 {
151
+ font-weight: 600;
152
+ font-size: 0.6875rem;
153
+ line-height: 1.45;
154
+ text-transform: uppercase;
155
+ color: #666687;
156
+ }
157
+
158
+ .c31 {
159
+ font-size: 0.875rem;
160
+ line-height: 1.43;
161
+ color: #32324d;
162
+ }
163
+
176
164
  .c5 {
177
165
  -webkit-align-items: center;
178
166
  -webkit-box-align: center;
@@ -305,10 +293,27 @@ describe('Plugin | Documentation | PluginPage', () => {
305
293
  border: 2px solid #4945ff;
306
294
  }
307
295
 
296
+ .c36 {
297
+ border: 0;
298
+ -webkit-clip: rect(0 0 0 0);
299
+ clip: rect(0 0 0 0);
300
+ height: 1px;
301
+ margin: -1px;
302
+ overflow: hidden;
303
+ padding: 0;
304
+ position: absolute;
305
+ width: 1px;
306
+ }
307
+
308
308
  .c13 {
309
309
  height: 2rem;
310
310
  }
311
311
 
312
+ .c13 svg {
313
+ height: 0.75rem;
314
+ width: auto;
315
+ }
316
+
312
317
  .c13[aria-disabled='true'] {
313
318
  border: 1px solid #dcdce4;
314
319
  background: #eaeaef;
@@ -641,7 +646,7 @@ describe('Plugin | Documentation | PluginPage', () => {
641
646
  <span>
642
647
  <button
643
648
  aria-disabled="false"
644
- aria-labelledby="2"
649
+ aria-labelledby=":r2:"
645
650
  class="c33 c34 c12 c35"
646
651
  tabindex="-1"
647
652
  type="button"
@@ -676,7 +681,7 @@ describe('Plugin | Documentation | PluginPage', () => {
676
681
  <span>
677
682
  <button
678
683
  aria-disabled="false"
679
- aria-labelledby="3"
684
+ aria-labelledby=":r4:"
680
685
  class="c33 c34 c12 c35"
681
686
  tabindex="-1"
682
687
  type="button"
@@ -707,7 +712,7 @@ describe('Plugin | Documentation | PluginPage', () => {
707
712
  <span>
708
713
  <button
709
714
  aria-disabled="false"
710
- aria-labelledby="4"
715
+ aria-labelledby=":r6:"
711
716
  class="c33 c34 c12 c35"
712
717
  tabindex="-1"
713
718
  type="button"
@@ -775,7 +780,7 @@ describe('Plugin | Documentation | PluginPage', () => {
775
780
  <span>
776
781
  <button
777
782
  aria-disabled="false"
778
- aria-labelledby="5"
783
+ aria-labelledby=":r8:"
779
784
  class="c33 c34 c12 c35"
780
785
  tabindex="-1"
781
786
  type="button"
@@ -810,7 +815,7 @@ describe('Plugin | Documentation | PluginPage', () => {
810
815
  <span>
811
816
  <button
812
817
  aria-disabled="false"
813
- aria-labelledby="6"
818
+ aria-labelledby=":ra:"
814
819
  class="c33 c34 c12 c35"
815
820
  tabindex="-1"
816
821
  type="button"
@@ -56,16 +56,61 @@ describe('Plugin | Documentation | SettingsPage', () => {
56
56
  });
57
57
 
58
58
  expect(firstChild).toMatchInlineSnapshot(`
59
- .c24 {
60
- border: 0;
61
- -webkit-clip: rect(0 0 0 0);
62
- clip: rect(0 0 0 0);
63
- height: 1px;
64
- margin: -1px;
65
- overflow: hidden;
66
- padding: 0;
67
- position: absolute;
68
- width: 1px;
59
+ .c1 {
60
+ background: #f6f6f9;
61
+ padding-top: 40px;
62
+ padding-right: 56px;
63
+ padding-bottom: 40px;
64
+ padding-left: 56px;
65
+ }
66
+
67
+ .c3 {
68
+ min-width: 0;
69
+ }
70
+
71
+ .c7 {
72
+ background: #4945ff;
73
+ padding: 8px;
74
+ padding-right: 16px;
75
+ padding-left: 16px;
76
+ border-radius: 4px;
77
+ border-color: #4945ff;
78
+ border: 1px solid #4945ff;
79
+ cursor: pointer;
80
+ }
81
+
82
+ .c13 {
83
+ padding-right: 56px;
84
+ padding-left: 56px;
85
+ }
86
+
87
+ .c14 {
88
+ background: #ffffff;
89
+ padding-top: 24px;
90
+ padding-right: 32px;
91
+ padding-bottom: 24px;
92
+ padding-left: 32px;
93
+ border-radius: 4px;
94
+ box-shadow: 0px 1px 4px rgba(33,33,52,0.1);
95
+ }
96
+
97
+ .c25 {
98
+ background: #f6f6f9;
99
+ padding: 4px;
100
+ border-radius: 4px;
101
+ border-style: solid;
102
+ border-width: 1px;
103
+ border-color: #dcdce4;
104
+ display: -webkit-box;
105
+ display: -webkit-flex;
106
+ display: -ms-flexbox;
107
+ display: flex;
108
+ }
109
+
110
+ .c27 {
111
+ padding-right: 12px;
112
+ padding-left: 12px;
113
+ border-radius: 4px;
69
114
  }
70
115
 
71
116
  .c6 {
@@ -125,63 +170,6 @@ describe('Plugin | Documentation | SettingsPage', () => {
125
170
  color: #666687;
126
171
  }
127
172
 
128
- .c1 {
129
- background: #f6f6f9;
130
- padding-top: 40px;
131
- padding-right: 56px;
132
- padding-bottom: 40px;
133
- padding-left: 56px;
134
- }
135
-
136
- .c3 {
137
- min-width: 0;
138
- }
139
-
140
- .c7 {
141
- background: #4945ff;
142
- padding: 8px;
143
- padding-right: 16px;
144
- padding-left: 16px;
145
- border-radius: 4px;
146
- border-color: #4945ff;
147
- border: 1px solid #4945ff;
148
- cursor: pointer;
149
- }
150
-
151
- .c13 {
152
- padding-right: 56px;
153
- padding-left: 56px;
154
- }
155
-
156
- .c14 {
157
- background: #ffffff;
158
- padding-top: 24px;
159
- padding-right: 32px;
160
- padding-bottom: 24px;
161
- padding-left: 32px;
162
- border-radius: 4px;
163
- box-shadow: 0px 1px 4px rgba(33,33,52,0.1);
164
- }
165
-
166
- .c25 {
167
- background: #f6f6f9;
168
- padding: 4px;
169
- border-radius: 4px;
170
- border-style: solid;
171
- border-width: 1px;
172
- border-color: #dcdce4;
173
- display: -webkit-box;
174
- display: -webkit-flex;
175
- display: -ms-flexbox;
176
- display: flex;
177
- }
178
-
179
- .c27 {
180
- padding-right: 12px;
181
- padding-left: 12px;
182
- border-radius: 4px;
183
- }
184
-
185
173
  .c2 {
186
174
  -webkit-align-items: center;
187
175
  -webkit-box-align: center;
@@ -326,10 +314,27 @@ describe('Plugin | Documentation | SettingsPage', () => {
326
314
  border: 2px solid #4945ff;
327
315
  }
328
316
 
317
+ .c24 {
318
+ border: 0;
319
+ -webkit-clip: rect(0 0 0 0);
320
+ clip: rect(0 0 0 0);
321
+ height: 1px;
322
+ margin: -1px;
323
+ overflow: hidden;
324
+ padding: 0;
325
+ position: absolute;
326
+ width: 1px;
327
+ }
328
+
329
329
  .c10 {
330
330
  height: 2rem;
331
331
  }
332
332
 
333
+ .c10 svg {
334
+ height: 0.75rem;
335
+ width: auto;
336
+ }
337
+
333
338
  .c10[aria-disabled='true'] {
334
339
  border: 1px solid #dcdce4;
335
340
  background: #eaeaef;
@@ -566,74 +571,70 @@ describe('Plugin | Documentation | SettingsPage', () => {
566
571
  class="c18"
567
572
  >
568
573
  <div
569
- class=""
574
+ class="c19"
570
575
  >
571
576
  <div
572
- class="c19"
577
+ class="c20"
573
578
  >
574
579
  <div
575
- class="c20"
580
+ class="c4"
581
+ >
582
+ <label
583
+ class="c5 c21 c22"
584
+ for=":r0:"
585
+ >
586
+ Restricted Access
587
+ </label>
588
+ </div>
589
+ <label
590
+ class="c23"
576
591
  >
577
592
  <div
578
- class="c4"
593
+ class="c24"
579
594
  >
580
- <label
581
- class="c5 c21 c22"
582
- for="1"
583
- >
584
- Restricted Access
585
- </label>
595
+ Restricted Access
586
596
  </div>
587
- <label
588
- class="c23"
597
+ <div
598
+ class="c25 c26"
599
+ display="flex"
589
600
  >
590
601
  <div
591
- class="c24"
602
+ aria-hidden="true"
603
+ class="c27 c28 c29"
592
604
  >
593
- Restricted Access
605
+ <span
606
+ class="c5 c30"
607
+ >
608
+ Off
609
+ </span>
594
610
  </div>
595
611
  <div
596
- class="c25 c26"
597
- display="flex"
612
+ aria-hidden="true"
613
+ class="c27 c28 c31"
598
614
  >
599
- <div
600
- aria-hidden="true"
601
- class="c27 c28 c29"
615
+ <span
616
+ class="c5 c32"
602
617
  >
603
- <span
604
- class="c5 c30"
605
- >
606
- Off
607
- </span>
608
- </div>
609
- <div
610
- aria-hidden="true"
611
- class="c27 c28 c31"
612
- >
613
- <span
614
- class="c5 c32"
615
- >
616
- On
617
- </span>
618
- </div>
619
- <input
620
- aria-describedby="1-hint"
621
- aria-disabled="false"
622
- aria-required="false"
623
- class="c33"
624
- id="1"
625
- name="restrictedAccess"
626
- type="checkbox"
627
- />
618
+ On
619
+ </span>
628
620
  </div>
629
- </label>
630
- <p
631
- class="c5 c34"
632
- id="1-hint"
633
- >
634
- Make the documentation endpoint private
635
- </p>
636
- </div>
621
+ <input
622
+ aria-describedby=":r0:-hint"
623
+ aria-disabled="false"
624
+ aria-required="false"
625
+ class="c33"
626
+ id=":r0:"
627
+ name="restrictedAccess"
628
+ type="checkbox"
629
+ />
630
+ </div>
631
+ </label>
632
+ <p
633
+ class="c5 c34"
634
+ id=":r0:-hint"
635
+ >
636
+ Make the documentation endpoint private
637
+ </p>
637
638
  </div>
638
639
  </div>
639
640
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/plugin-documentation",
3
- "version": "4.11.0-beta.1",
3
+ "version": "4.11.0-exp.9xg4-3qfm-9w8f.1",
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": "0.0.0-3cf3ff39",
34
- "@strapi/helper-plugin": "4.11.0-beta.1",
35
- "@strapi/icons": "0.0.0-3cf3ff39",
36
- "@strapi/utils": "4.11.0-beta.1",
33
+ "@strapi/design-system": "1.7.10",
34
+ "@strapi/helper-plugin": "4.11.0-exp.9xg4-3qfm-9w8f.1",
35
+ "@strapi/icons": "1.7.10",
36
+ "@strapi/utils": "4.11.0-exp.9xg4-3qfm-9w8f.1",
37
37
  "bcryptjs": "2.4.3",
38
38
  "cheerio": "^1.0.0-rc.12",
39
39
  "formik": "2.4.0",
@@ -49,24 +49,24 @@
49
49
  "react-redux": "8.0.5",
50
50
  "redux": "^4.2.1",
51
51
  "reselect": "^4.1.7",
52
- "swagger-ui-dist": "4.18.1",
52
+ "swagger-ui-dist": "4.19.0",
53
53
  "yaml": "1.10.2",
54
54
  "yup": "^0.32.9"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "@strapi/strapi": "^4.0.0",
58
- "react": "^17.0.2",
59
- "react-dom": "^17.0.2",
60
- "react-router-dom": "^5.3.4",
61
- "styled-components": "^5.3.3"
58
+ "react": "^17.0.0 || ^18.0.0",
59
+ "react-dom": "^17.0.0 || ^18.0.0",
60
+ "react-router-dom": "5.3.4",
61
+ "styled-components": "5.3.3"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@apidevtools/swagger-parser": "^10.1.0",
65
- "@testing-library/react": "12.1.4",
65
+ "@testing-library/react": "14.0.0",
66
66
  "history": "^4.9.0",
67
67
  "msw": "1.2.1",
68
- "react": "^17.0.2",
69
- "react-dom": "^17.0.2",
68
+ "react": "^18.2.0",
69
+ "react-dom": "^18.2.0",
70
70
  "react-router-dom": "5.3.4",
71
71
  "styled-components": "5.3.3"
72
72
  },
@@ -80,5 +80,5 @@
80
80
  "description": "Create an OpenAPI Document and visualize your API with SWAGGER UI.",
81
81
  "kind": "plugin"
82
82
  },
83
- "gitHead": "a5fa3bd7e1c4680dd350580620d383612597d25d"
83
+ "gitHead": "54c4fa25b2706612f85aaf103f54c071c281f23b"
84
84
  }