@strapi/plugin-documentation 4.11.1 → 4.11.2
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.
- package/admin/src/components/FieldActionWrapper/index.js +1 -1
- package/admin/src/components/PluginIcon/index.js +1 -0
- package/admin/src/index.js +2 -0
- package/admin/src/pages/PluginPage/index.js +22 -22
- package/admin/src/pages/PluginPage/tests/index.test.js +4 -2
- package/admin/src/pages/PluginPage/tests/server.js +1 -1
- package/admin/src/pages/SettingsPage/index.js +18 -19
- package/admin/src/pages/SettingsPage/tests/index.test.js +5 -3
- package/admin/src/pages/SettingsPage/tests/server.js +1 -1
- package/admin/src/pages/utils/useReactQuery.js +3 -2
- package/package.json +4 -4
package/admin/src/index.js
CHANGED
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
// Also the strapi-generate-plugins/files/admin/src/index.js needs to be updated
|
|
6
6
|
// IF THE DOC IS NOT UPDATED THE PULL REQUEST WILL NOT BE MERGED
|
|
7
7
|
import { prefixPluginTranslations } from '@strapi/helper-plugin';
|
|
8
|
+
|
|
8
9
|
import pluginPkg from '../../package.json';
|
|
10
|
+
|
|
9
11
|
import PluginIcon from './components/PluginIcon';
|
|
10
12
|
import pluginPermissions from './permissions';
|
|
11
13
|
import pluginId from './pluginId';
|
|
@@ -6,36 +6,36 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React, { useState } from 'react';
|
|
9
|
-
|
|
10
|
-
import {
|
|
11
|
-
CheckPermissions,
|
|
12
|
-
ConfirmDialog,
|
|
13
|
-
LoadingIndicatorPage,
|
|
14
|
-
stopPropagation,
|
|
15
|
-
EmptyStateLayout,
|
|
16
|
-
useFocusWhenNavigate,
|
|
17
|
-
AnErrorOccurred,
|
|
18
|
-
} from '@strapi/helper-plugin';
|
|
19
|
-
import { Helmet } from 'react-helmet';
|
|
9
|
+
|
|
20
10
|
import {
|
|
11
|
+
Box,
|
|
21
12
|
Button,
|
|
22
|
-
Layout,
|
|
23
|
-
HeaderLayout,
|
|
24
13
|
ContentLayout,
|
|
25
|
-
Main,
|
|
26
|
-
IconButton,
|
|
27
|
-
Typography,
|
|
28
14
|
Flex,
|
|
15
|
+
HeaderLayout,
|
|
16
|
+
IconButton,
|
|
17
|
+
Layout,
|
|
18
|
+
Main,
|
|
29
19
|
Table,
|
|
30
|
-
Tr,
|
|
31
|
-
Thead,
|
|
32
|
-
Th,
|
|
33
20
|
Tbody,
|
|
34
21
|
Td,
|
|
35
|
-
|
|
22
|
+
Th,
|
|
23
|
+
Thead,
|
|
24
|
+
Tr,
|
|
25
|
+
Typography,
|
|
36
26
|
} from '@strapi/design-system';
|
|
37
|
-
|
|
38
|
-
|
|
27
|
+
import {
|
|
28
|
+
AnErrorOccurred,
|
|
29
|
+
CheckPermissions,
|
|
30
|
+
ConfirmDialog,
|
|
31
|
+
EmptyStateLayout,
|
|
32
|
+
LoadingIndicatorPage,
|
|
33
|
+
stopPropagation,
|
|
34
|
+
useFocusWhenNavigate,
|
|
35
|
+
} from '@strapi/helper-plugin';
|
|
36
|
+
import { Eye as Show, Refresh as Reload, Trash } from '@strapi/icons';
|
|
37
|
+
import { Helmet } from 'react-helmet';
|
|
38
|
+
import { useIntl } from 'react-intl';
|
|
39
39
|
|
|
40
40
|
import permissions from '../../permissions';
|
|
41
41
|
import { getTrad } from '../../utils';
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { lightTheme, ThemeProvider } from '@strapi/design-system';
|
|
2
4
|
import { render, screen, waitFor } from '@testing-library/react';
|
|
5
|
+
import { createMemoryHistory } from 'history';
|
|
3
6
|
import { IntlProvider } from 'react-intl';
|
|
4
7
|
import { QueryClient, QueryClientProvider } from 'react-query';
|
|
5
|
-
import { ThemeProvider, lightTheme } from '@strapi/design-system';
|
|
6
8
|
import { Router } from 'react-router-dom';
|
|
7
|
-
import { createMemoryHistory } from 'history';
|
|
8
9
|
|
|
9
10
|
import PluginPage from '../index';
|
|
11
|
+
|
|
10
12
|
import server from './server';
|
|
11
13
|
|
|
12
14
|
jest.mock('@strapi/helper-plugin', () => ({
|
|
@@ -1,36 +1,35 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl';
|
|
3
|
-
import { Formik } from 'formik';
|
|
4
|
-
import {
|
|
5
|
-
CheckPermissions,
|
|
6
|
-
Form,
|
|
7
|
-
LoadingIndicatorPage,
|
|
8
|
-
useFocusWhenNavigate,
|
|
9
|
-
} from '@strapi/helper-plugin';
|
|
10
2
|
|
|
11
3
|
// Strapi Parts
|
|
12
4
|
import {
|
|
13
|
-
ContentLayout,
|
|
14
|
-
HeaderLayout,
|
|
15
|
-
Main,
|
|
16
|
-
Button,
|
|
17
5
|
Box,
|
|
6
|
+
Button,
|
|
7
|
+
ContentLayout,
|
|
18
8
|
Flex,
|
|
19
|
-
Typography,
|
|
20
|
-
ToggleInput,
|
|
21
|
-
TextInput,
|
|
22
9
|
Grid,
|
|
23
10
|
GridItem,
|
|
11
|
+
HeaderLayout,
|
|
12
|
+
Main,
|
|
13
|
+
TextInput,
|
|
14
|
+
ToggleInput,
|
|
15
|
+
Typography,
|
|
24
16
|
} from '@strapi/design-system';
|
|
25
|
-
|
|
17
|
+
import {
|
|
18
|
+
CheckPermissions,
|
|
19
|
+
Form,
|
|
20
|
+
LoadingIndicatorPage,
|
|
21
|
+
useFocusWhenNavigate,
|
|
22
|
+
} from '@strapi/helper-plugin';
|
|
26
23
|
// Strapi Icons
|
|
27
|
-
import { Eye as Show, EyeStriked as Hide
|
|
24
|
+
import { Check, Eye as Show, EyeStriked as Hide } from '@strapi/icons';
|
|
25
|
+
import { Formik } from 'formik';
|
|
26
|
+
import { useIntl } from 'react-intl';
|
|
28
27
|
|
|
28
|
+
import FieldActionWrapper from '../../components/FieldActionWrapper';
|
|
29
29
|
import permissions from '../../permissions';
|
|
30
30
|
import { getTrad } from '../../utils';
|
|
31
|
-
import useReactQuery from '../utils/useReactQuery';
|
|
32
|
-
import FieldActionWrapper from '../../components/FieldActionWrapper';
|
|
33
31
|
import schema from '../utils/schema';
|
|
32
|
+
import useReactQuery from '../utils/useReactQuery';
|
|
34
33
|
|
|
35
34
|
const SettingsPage = () => {
|
|
36
35
|
useFocusWhenNavigate();
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import { lightTheme, ThemeProvider } from '@strapi/design-system';
|
|
4
|
+
import { render, screen, waitFor } from '@testing-library/react';
|
|
5
|
+
import { createMemoryHistory } from 'history';
|
|
3
6
|
import { IntlProvider } from 'react-intl';
|
|
4
7
|
import { QueryClient, QueryClientProvider } from 'react-query';
|
|
5
|
-
import { ThemeProvider, lightTheme } from '@strapi/design-system';
|
|
6
8
|
import { Router } from 'react-router-dom';
|
|
7
|
-
import { createMemoryHistory } from 'history';
|
|
8
9
|
|
|
9
10
|
import SettingsPage from '../index';
|
|
11
|
+
|
|
10
12
|
import server from './server';
|
|
11
13
|
|
|
12
14
|
jest.mock('@strapi/helper-plugin', () => ({
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useFetchClient, useNotification } from '@strapi/helper-plugin';
|
|
2
|
+
import { useMutation, useQuery, useQueryClient } from 'react-query';
|
|
3
|
+
|
|
3
4
|
import pluginId from '../../pluginId';
|
|
4
5
|
import getTrad from '../../utils/getTrad';
|
|
5
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/plugin-documentation",
|
|
3
|
-
"version": "4.11.
|
|
3
|
+
"version": "4.11.2",
|
|
4
4
|
"description": "Create an OpenAPI Document and visualize your API with SWAGGER UI.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@strapi/design-system": "1.8.0",
|
|
34
|
-
"@strapi/helper-plugin": "4.11.
|
|
34
|
+
"@strapi/helper-plugin": "4.11.2",
|
|
35
35
|
"@strapi/icons": "1.8.0",
|
|
36
|
-
"@strapi/utils": "4.11.
|
|
36
|
+
"@strapi/utils": "4.11.2",
|
|
37
37
|
"bcryptjs": "2.4.3",
|
|
38
38
|
"cheerio": "^1.0.0-rc.12",
|
|
39
39
|
"formik": "2.4.0",
|
|
@@ -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": "6f7c815c2bbe41dda7d77136eb8df736c028ff67"
|
|
84
84
|
}
|