@strapi/plugin-documentation 4.0.0-beta.13 → 4.0.0-beta.17

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.
@@ -19,7 +19,7 @@ import { Button } from '@strapi/design-system/Button';
19
19
  import { Layout, HeaderLayout, ContentLayout } from '@strapi/design-system/Layout';
20
20
  import { Main } from '@strapi/design-system/Main';
21
21
  import { IconButton } from '@strapi/design-system/IconButton';
22
- import { Text, TableLabel } from '@strapi/design-system/Text';
22
+ import { Typography } from '@strapi/design-system/Typography';
23
23
  import { Flex } from '@strapi/design-system/Flex';
24
24
  import { Table, Tr, Thead, Th, Tbody, Td } from '@strapi/design-system/Table';
25
25
 
@@ -99,20 +99,20 @@ const PluginPage = () => {
99
99
  <Thead>
100
100
  <Tr>
101
101
  <Th>
102
- <TableLabel textColor="neutral600">
102
+ <Typography variant="sigma" textColor="neutral600">
103
103
  {formatMessage({
104
104
  id: getTrad('pages.PluginPage.table.version'),
105
105
  defaultMessage: 'Version',
106
106
  })}
107
- </TableLabel>
107
+ </Typography>
108
108
  </Th>
109
109
  <Th>
110
- <TableLabel textColor="neutral600">
110
+ <Typography variant="sigma" textColor="neutral600">
111
111
  {formatMessage({
112
112
  id: getTrad('pages.PluginPage.table.generated'),
113
113
  defaultMessage: 'Last Generated',
114
114
  })}
115
- </TableLabel>
115
+ </Typography>
116
116
  </Th>
117
117
  </Tr>
118
118
  </Thead>
@@ -122,10 +122,10 @@ const PluginPage = () => {
122
122
  .map(doc => (
123
123
  <Tr key={doc.version}>
124
124
  <Td width="50%">
125
- <Text>{doc.version}</Text>
125
+ <Typography>{doc.version}</Typography>
126
126
  </Td>
127
127
  <Td width="50%">
128
- <Text>{doc.generatedDate}</Text>
128
+ <Typography>{doc.generatedDate}</Typography>
129
129
  </Td>
130
130
  <Td>
131
131
  <Flex justifyContent="end" {...stopPropagation}>
@@ -149,7 +149,7 @@ const PluginPage = () => {
149
149
  label={formatMessage(
150
150
  {
151
151
  id: getTrad('pages.PluginPage.table.icon.regenerate'),
152
- defaultMessage: 'Regnerate {target}',
152
+ defaultMessage: 'Regenerate {target}',
153
153
  },
154
154
  { target: `${doc.version}` }
155
155
  )}
@@ -202,7 +202,7 @@ describe('Plugin | Documentation | PluginPage', () => {
202
202
  background: #4945ff;
203
203
  }
204
204
 
205
- .c33 {
205
+ .c32 {
206
206
  display: -webkit-box;
207
207
  display: -webkit-flex;
208
208
  display: -ms-flexbox;
@@ -220,7 +220,7 @@ describe('Plugin | Documentation | PluginPage', () => {
220
220
  align-items: center;
221
221
  }
222
222
 
223
- .c34 {
223
+ .c33 {
224
224
  display: -webkit-box;
225
225
  display: -webkit-flex;
226
226
  display: -ms-flexbox;
@@ -234,21 +234,21 @@ describe('Plugin | Documentation | PluginPage', () => {
234
234
  outline: none;
235
235
  }
236
236
 
237
- .c34 svg {
237
+ .c33 svg {
238
238
  height: 12px;
239
239
  width: 12px;
240
240
  }
241
241
 
242
- .c34 svg > g,
243
- .c34 svg path {
242
+ .c33 svg > g,
243
+ .c33 svg path {
244
244
  fill: #ffffff;
245
245
  }
246
246
 
247
- .c34[aria-disabled='true'] {
247
+ .c33[aria-disabled='true'] {
248
248
  pointer-events: none;
249
249
  }
250
250
 
251
- .c34:after {
251
+ .c33:after {
252
252
  -webkit-transition-property: all;
253
253
  transition-property: all;
254
254
  -webkit-transition-duration: 0.2s;
@@ -263,11 +263,11 @@ describe('Plugin | Documentation | PluginPage', () => {
263
263
  border: 2px solid transparent;
264
264
  }
265
265
 
266
- .c34:focus-visible {
266
+ .c33:focus-visible {
267
267
  outline: none;
268
268
  }
269
269
 
270
- .c34:focus-visible:after {
270
+ .c33:focus-visible:after {
271
271
  border-radius: 8px;
272
272
  content: '';
273
273
  position: absolute;
@@ -278,7 +278,7 @@ describe('Plugin | Documentation | PluginPage', () => {
278
278
  border: 2px solid #4945ff;
279
279
  }
280
280
 
281
- .c35 {
281
+ .c34 {
282
282
  display: -webkit-box;
283
283
  display: -webkit-flex;
284
284
  display: -ms-flexbox;
@@ -296,26 +296,26 @@ describe('Plugin | Documentation | PluginPage', () => {
296
296
  border: none;
297
297
  }
298
298
 
299
- .c35 svg > g,
300
- .c35 svg path {
299
+ .c34 svg > g,
300
+ .c34 svg path {
301
301
  fill: #8e8ea9;
302
302
  }
303
303
 
304
- .c35:hover svg > g,
305
- .c35:hover svg path {
304
+ .c34:hover svg > g,
305
+ .c34:hover svg path {
306
306
  fill: #666687;
307
307
  }
308
308
 
309
- .c35:active svg > g,
310
- .c35:active svg path {
309
+ .c34:active svg > g,
310
+ .c34:active svg path {
311
311
  fill: #a5a5ba;
312
312
  }
313
313
 
314
- .c35[aria-disabled='true'] {
314
+ .c34[aria-disabled='true'] {
315
315
  background-color: #eaeaef;
316
316
  }
317
317
 
318
- .c35[aria-disabled='true'] svg path {
318
+ .c34[aria-disabled='true'] svg path {
319
319
  fill: #666687;
320
320
  }
321
321
 
@@ -330,7 +330,7 @@ describe('Plugin | Documentation | PluginPage', () => {
330
330
  padding-left: 24px;
331
331
  }
332
332
 
333
- .c31 {
333
+ .c30 {
334
334
  width: 50%;
335
335
  }
336
336
 
@@ -372,7 +372,7 @@ describe('Plugin | Documentation | PluginPage', () => {
372
372
  overflow-x: auto;
373
373
  }
374
374
 
375
- .c30 tr:last-of-type {
375
+ .c29 tr:last-of-type {
376
376
  border-bottom: none;
377
377
  }
378
378
 
@@ -425,10 +425,24 @@ describe('Plugin | Documentation | PluginPage', () => {
425
425
  vertical-align: sub;
426
426
  }
427
427
 
428
- .c29 svg {
428
+ .c28 svg {
429
429
  height: 0.25rem;
430
430
  }
431
431
 
432
+ .c27 {
433
+ color: #666687;
434
+ font-weight: 600;
435
+ font-size: 0.6875rem;
436
+ line-height: 1.45;
437
+ text-transform: uppercase;
438
+ }
439
+
440
+ .c31 {
441
+ color: #32324d;
442
+ font-size: 0.875rem;
443
+ line-height: 1.43;
444
+ }
445
+
432
446
  .c1 {
433
447
  padding-bottom: 56px;
434
448
  }
@@ -504,26 +518,6 @@ describe('Plugin | Documentation | PluginPage', () => {
504
518
  outline: none;
505
519
  }
506
520
 
507
- .c27 {
508
- color: #666687;
509
- font-size: 0.875rem;
510
- line-height: 1.43;
511
- }
512
-
513
- .c32 {
514
- font-weight: 400;
515
- font-size: 0.875rem;
516
- line-height: 1.43;
517
- color: #32324d;
518
- }
519
-
520
- .c28 {
521
- font-weight: 600;
522
- font-size: 0.6875rem;
523
- line-height: 1.45;
524
- text-transform: uppercase;
525
- }
526
-
527
521
  <div
528
522
  class="c0"
529
523
  >
@@ -630,12 +624,12 @@ describe('Plugin | Documentation | PluginPage', () => {
630
624
  class="c26"
631
625
  >
632
626
  <span
633
- class="c27 c28"
627
+ class="c27"
634
628
  >
635
629
  Version
636
630
  </span>
637
631
  <span
638
- class="c29"
632
+ class="c28"
639
633
  />
640
634
  </div>
641
635
  </th>
@@ -648,19 +642,19 @@ describe('Plugin | Documentation | PluginPage', () => {
648
642
  class="c26"
649
643
  >
650
644
  <span
651
- class="c27 c28"
645
+ class="c27"
652
646
  >
653
647
  Last Generated
654
648
  </span>
655
649
  <span
656
- class="c29"
650
+ class="c28"
657
651
  />
658
652
  </div>
659
653
  </th>
660
654
  </tr>
661
655
  </thead>
662
656
  <tbody
663
- class="c30"
657
+ class="c29"
664
658
  >
665
659
  <tr
666
660
  aria-rowindex="2"
@@ -668,24 +662,24 @@ describe('Plugin | Documentation | PluginPage', () => {
668
662
  >
669
663
  <td
670
664
  aria-colindex="1"
671
- class="c31 c25"
665
+ class="c30 c25"
672
666
  tabindex="-1"
673
667
  width="50%"
674
668
  >
675
669
  <span
676
- class="c32"
670
+ class="c31"
677
671
  >
678
672
  1.2.0
679
673
  </span>
680
674
  </td>
681
675
  <td
682
676
  aria-colindex="2"
683
- class="c31 c25"
677
+ class="c30 c25"
684
678
  tabindex="-1"
685
679
  width="50%"
686
680
  >
687
681
  <span
688
- class="c32"
682
+ class="c31"
689
683
  />
690
684
  </td>
691
685
  <td
@@ -694,14 +688,14 @@ describe('Plugin | Documentation | PluginPage', () => {
694
688
  >
695
689
  <div
696
690
  aria-hidden="true"
697
- class="c33"
691
+ class="c32"
698
692
  role="button"
699
693
  >
700
694
  <span>
701
695
  <button
702
696
  aria-disabled="false"
703
697
  aria-labelledby="tooltip-1"
704
- class="c34 c35"
698
+ class="c33 c34"
705
699
  tabindex="-1"
706
700
  type="button"
707
701
  >
@@ -729,7 +723,7 @@ describe('Plugin | Documentation | PluginPage', () => {
729
723
  <button
730
724
  aria-disabled="false"
731
725
  aria-labelledby="tooltip-3"
732
- class="c34 c35"
726
+ class="c33 c34"
733
727
  tabindex="-1"
734
728
  type="button"
735
729
  >
@@ -753,7 +747,7 @@ describe('Plugin | Documentation | PluginPage', () => {
753
747
  <button
754
748
  aria-disabled="false"
755
749
  aria-labelledby="tooltip-5"
756
- class="c34 c35"
750
+ class="c33 c34"
757
751
  tabindex="-1"
758
752
  type="button"
759
753
  >
@@ -780,24 +774,24 @@ describe('Plugin | Documentation | PluginPage', () => {
780
774
  >
781
775
  <td
782
776
  aria-colindex="1"
783
- class="c31 c25"
777
+ class="c30 c25"
784
778
  tabindex="-1"
785
779
  width="50%"
786
780
  >
787
781
  <span
788
- class="c32"
782
+ class="c31"
789
783
  >
790
784
  1.0.0
791
785
  </span>
792
786
  </td>
793
787
  <td
794
788
  aria-colindex="2"
795
- class="c31 c25"
789
+ class="c30 c25"
796
790
  tabindex="-1"
797
791
  width="50%"
798
792
  >
799
793
  <span
800
- class="c32"
794
+ class="c31"
801
795
  />
802
796
  </td>
803
797
  <td
@@ -806,14 +800,14 @@ describe('Plugin | Documentation | PluginPage', () => {
806
800
  >
807
801
  <div
808
802
  aria-hidden="true"
809
- class="c33"
803
+ class="c32"
810
804
  role="button"
811
805
  >
812
806
  <span>
813
807
  <button
814
808
  aria-disabled="false"
815
809
  aria-labelledby="tooltip-7"
816
- class="c34 c35"
810
+ class="c33 c34"
817
811
  tabindex="-1"
818
812
  type="button"
819
813
  >
@@ -841,7 +835,7 @@ describe('Plugin | Documentation | PluginPage', () => {
841
835
  <button
842
836
  aria-disabled="false"
843
837
  aria-labelledby="tooltip-9"
844
- class="c34 c35"
838
+ class="c33 c34"
845
839
  tabindex="-1"
846
840
  type="button"
847
841
  >
@@ -584,6 +584,7 @@ describe('Plugin | Documentation | SettingsPage', () => {
584
584
  </span>
585
585
  </div>
586
586
  <input
587
+ aria-disabled="false"
587
588
  class="c32"
588
589
  name="restrictedAccess"
589
590
  type="checkbox"
@@ -27,7 +27,7 @@
27
27
  "pages.PluginPage.header.description": "Configure the documentation plugin",
28
28
  "pages.PluginPage.table.generated": "Last generated",
29
29
  "pages.PluginPage.table.icon.delete": "Delete {target}",
30
- "pages.PluginPage.table.icon.regnerate": "Regenerate {target}",
30
+ "pages.PluginPage.table.icon.regenerate": "Regenerate {target}",
31
31
  "pages.PluginPage.table.icon.show": "Open {target}",
32
32
  "pages.PluginPage.table.version": "Version",
33
33
  "pages.SettingPage.title": "Settings",
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@strapi/plugin-documentation",
3
- "version": "4.0.0-beta.13",
3
+ "version": "4.0.0-beta.17",
4
4
  "description": "Create an OpenAPI Document and visualize your API with SWAGGER UI.",
5
5
  "strapi": {
6
6
  "displayName": "Documentation",
7
7
  "name": "documentation",
8
- "description": "documentation.plugin.description",
8
+ "description": "Create an OpenAPI Document and visualize your API with SWAGGER UI.",
9
9
  "kind": "plugin"
10
10
  },
11
11
  "scripts": {
12
12
  "test": "echo \"no tests yet\""
13
13
  },
14
14
  "dependencies": {
15
- "@strapi/helper-plugin": "4.0.0-beta.13",
16
- "@strapi/utils": "4.0.0-beta.13",
15
+ "@strapi/helper-plugin": "4.0.0-beta.17",
16
+ "@strapi/utils": "4.0.0-beta.17",
17
17
  "bcryptjs": "2.4.3",
18
18
  "cheerio": "^1.0.0-rc.5",
19
19
  "fs-extra": "^9.1.0",
@@ -71,5 +71,5 @@
71
71
  "npm": ">=6.0.0"
72
72
  },
73
73
  "license": "SEE LICENSE IN LICENSE",
74
- "gitHead": "3a31a96067aa0a74cabf51282215820ba46dd447"
74
+ "gitHead": "8f9cf3803464d3dbfc8c1090c16bb5f53a60c6c3"
75
75
  }