@strapi/plugin-documentation 4.11.0-beta.1 → 4.11.0-exp.9xg4-3qfm-9w8f
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,6 +293,18 @@ 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
|
}
|
|
@@ -56,16 +56,61 @@ describe('Plugin | Documentation | SettingsPage', () => {
|
|
|
56
56
|
});
|
|
57
57
|
|
|
58
58
|
expect(firstChild).toMatchInlineSnapshot(`
|
|
59
|
-
.
|
|
60
|
-
|
|
61
|
-
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
width:
|
|
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,6 +314,18 @@ 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
|
}
|
|
@@ -566,74 +566,70 @@ describe('Plugin | Documentation | SettingsPage', () => {
|
|
|
566
566
|
class="c18"
|
|
567
567
|
>
|
|
568
568
|
<div
|
|
569
|
-
class=""
|
|
569
|
+
class="c19"
|
|
570
570
|
>
|
|
571
571
|
<div
|
|
572
|
-
class="
|
|
572
|
+
class="c20"
|
|
573
573
|
>
|
|
574
574
|
<div
|
|
575
|
-
class="
|
|
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"
|
|
576
586
|
>
|
|
577
587
|
<div
|
|
578
|
-
class="
|
|
588
|
+
class="c24"
|
|
579
589
|
>
|
|
580
|
-
|
|
581
|
-
class="c5 c21 c22"
|
|
582
|
-
for="1"
|
|
583
|
-
>
|
|
584
|
-
Restricted Access
|
|
585
|
-
</label>
|
|
590
|
+
Restricted Access
|
|
586
591
|
</div>
|
|
587
|
-
<
|
|
588
|
-
class="
|
|
592
|
+
<div
|
|
593
|
+
class="c25 c26"
|
|
594
|
+
display="flex"
|
|
589
595
|
>
|
|
590
596
|
<div
|
|
591
|
-
|
|
597
|
+
aria-hidden="true"
|
|
598
|
+
class="c27 c28 c29"
|
|
592
599
|
>
|
|
593
|
-
|
|
600
|
+
<span
|
|
601
|
+
class="c5 c30"
|
|
602
|
+
>
|
|
603
|
+
Off
|
|
604
|
+
</span>
|
|
594
605
|
</div>
|
|
595
606
|
<div
|
|
596
|
-
|
|
597
|
-
|
|
607
|
+
aria-hidden="true"
|
|
608
|
+
class="c27 c28 c31"
|
|
598
609
|
>
|
|
599
|
-
<
|
|
600
|
-
|
|
601
|
-
class="c27 c28 c29"
|
|
610
|
+
<span
|
|
611
|
+
class="c5 c32"
|
|
602
612
|
>
|
|
603
|
-
|
|
604
|
-
|
|
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
|
-
/>
|
|
613
|
+
On
|
|
614
|
+
</span>
|
|
628
615
|
</div>
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
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>
|
|
637
633
|
</div>
|
|
638
634
|
</div>
|
|
639
635
|
</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/plugin-documentation",
|
|
3
|
-
"version": "4.11.0-
|
|
3
|
+
"version": "4.11.0-exp.9xg4-3qfm-9w8f",
|
|
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": "
|
|
34
|
-
"@strapi/helper-plugin": "4.11.0-
|
|
35
|
-
"@strapi/icons": "
|
|
36
|
-
"@strapi/utils": "4.11.0-
|
|
33
|
+
"@strapi/design-system": "1.7.9",
|
|
34
|
+
"@strapi/helper-plugin": "4.11.0-exp.9xg4-3qfm-9w8f",
|
|
35
|
+
"@strapi/icons": "1.7.9",
|
|
36
|
+
"@strapi/utils": "4.11.0-exp.9xg4-3qfm-9w8f",
|
|
37
37
|
"bcryptjs": "2.4.3",
|
|
38
38
|
"cheerio": "^1.0.0-rc.12",
|
|
39
39
|
"formik": "2.4.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"react-redux": "8.0.5",
|
|
50
50
|
"redux": "^4.2.1",
|
|
51
51
|
"reselect": "^4.1.7",
|
|
52
|
-
"swagger-ui-dist": "4.
|
|
52
|
+
"swagger-ui-dist": "4.19.0",
|
|
53
53
|
"yaml": "1.10.2",
|
|
54
54
|
"yup": "^0.32.9"
|
|
55
55
|
},
|
|
@@ -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": "
|
|
83
|
+
"gitHead": "47f8bee867909bbf51ab43e55a60ced232816fc7"
|
|
84
84
|
}
|