@strapi/plugin-documentation 4.0.0-next.13 → 4.0.0-next.14

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.
@@ -8,12 +8,15 @@
8
8
  import React from 'react';
9
9
  import { CheckPagePermissions } from '@strapi/helper-plugin';
10
10
  import pluginPermissions from '../../permissions';
11
- import HomePage from '../HomePage';
11
+ // import HomePage from '../HomePage';
12
+
13
+ const ComingSoon = () => <div>Coming soon</div>;
12
14
 
13
15
  function App() {
14
16
  return (
15
17
  <CheckPagePermissions permissions={pluginPermissions.main}>
16
- <HomePage />
18
+ {/* <HomePage /> */}
19
+ <ComingSoon />
17
20
  </CheckPagePermissions>
18
21
  );
19
22
  }
@@ -16,8 +16,8 @@ const useHomePage = () => {
16
16
  };
17
17
 
18
18
  const deleteMutation = useMutation(deleteDoc, {
19
- onSuccess: () => {
20
- queryClient.invalidateQueries('get-documentation');
19
+ onSuccess: async () => {
20
+ await queryClient.invalidateQueries('get-documentation');
21
21
  toggleNotification({
22
22
  type: 'info',
23
23
  message: { id: getTrad('notification.delete.success') },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/plugin-documentation",
3
- "version": "4.0.0-next.13",
3
+ "version": "4.0.0-next.14",
4
4
  "description": "Create an OpenAPI Document and visualize your API with SWAGGER UI.",
5
5
  "strapi": {
6
6
  "displayName": "Documentation",
@@ -13,7 +13,7 @@
13
13
  "test": "echo \"no tests yet\""
14
14
  },
15
15
  "dependencies": {
16
- "@strapi/helper-plugin": "4.0.0-next.13",
16
+ "@strapi/helper-plugin": "4.0.0-next.14",
17
17
  "cheerio": "^1.0.0-rc.5",
18
18
  "fs-extra": "^9.1.0",
19
19
  "koa-static": "^5.0.0",
@@ -26,7 +26,7 @@
26
26
  "react-intl": "5.20.2",
27
27
  "react-redux": "7.2.3",
28
28
  "react-router": "^5.2.0",
29
- "react-router-dom": "^5.0.0",
29
+ "react-router-dom": "5.2.0",
30
30
  "reactstrap": "8.4.1",
31
31
  "redux": "^4.0.1",
32
32
  "reselect": "^4.0.0",
@@ -70,5 +70,5 @@
70
70
  "npm": ">=6.0.0"
71
71
  },
72
72
  "license": "SEE LICENSE IN LICENSE",
73
- "gitHead": "c1369c796034fb1b57471498eb1e0c75ce2d7715"
73
+ "gitHead": "9b2bc8ed5d39e6b7c3a1b0767b73028b5292467b"
74
74
  }
@@ -0,0 +1,3 @@
1
+ 'use strict';
2
+
3
+ module.exports = require('./admin/src').default;