@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.
@@ -1,5 +1,5 @@
1
- import styled from 'styled-components';
2
1
  import { FieldAction } from '@strapi/design-system';
2
+ import styled from 'styled-components';
3
3
 
4
4
  const FieldActionWrapper = styled(FieldAction)`
5
5
  svg {
@@ -5,6 +5,7 @@
5
5
  */
6
6
 
7
7
  import React from 'react';
8
+
8
9
  import { Information } from '@strapi/icons';
9
10
 
10
11
  const PluginIcon = () => <Information />;
@@ -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
- import { useIntl } from 'react-intl';
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
- Box,
22
+ Th,
23
+ Thead,
24
+ Tr,
25
+ Typography,
36
26
  } from '@strapi/design-system';
37
-
38
- import { Trash, Eye as Show, Refresh as Reload } from '@strapi/icons';
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,5 +1,5 @@
1
- import { setupServer } from 'msw/node';
2
1
  import { rest } from 'msw';
2
+ import { setupServer } from 'msw/node';
3
3
 
4
4
  const handlers = [
5
5
  rest.get('*/getInfos', (req, res, ctx) => {
@@ -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, Check } from '@strapi/icons';
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
- import { render, waitFor, screen } from '@testing-library/react';
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,5 @@
1
- import { setupServer } from 'msw/node';
2
1
  import { rest } from 'msw';
2
+ import { setupServer } from 'msw/node';
3
3
 
4
4
  const handlers = [
5
5
  rest.get('*/getInfos', (req, res, ctx) => {
@@ -1,5 +1,6 @@
1
- import { useQuery, useMutation, useQueryClient } from 'react-query';
2
- import { useNotification, useFetchClient } from '@strapi/helper-plugin';
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.1",
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.1",
34
+ "@strapi/helper-plugin": "4.11.2",
35
35
  "@strapi/icons": "1.8.0",
36
- "@strapi/utils": "4.11.1",
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": "6cdb5a7737495ca0c7179076ade5361e182ea169"
83
+ "gitHead": "6f7c815c2bbe41dda7d77136eb8df736c028ff67"
84
84
  }