@docusaurus/plugin-pwa 0.0.0-4611 → 0.0.0-4614
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.
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
/// <reference types="react" />
|
|
8
|
-
import type {
|
|
9
|
-
declare function PwaReloadPopup({ onReload }:
|
|
8
|
+
import type { Props } from '@theme/PwaReloadPopup';
|
|
9
|
+
declare function PwaReloadPopup({ onReload }: Props): JSX.Element | false;
|
|
10
10
|
export default PwaReloadPopup;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-pwa",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-4614",
|
|
4
4
|
"description": "Docusaurus Plugin to add PWA support.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/plugin-pwa.d.ts",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@babel/core": "^7.17.5",
|
|
24
24
|
"@babel/preset-env": "^7.16.11",
|
|
25
|
-
"@docusaurus/core": "0.0.0-
|
|
26
|
-
"@docusaurus/theme-common": "0.0.0-
|
|
27
|
-
"@docusaurus/theme-translations": "0.0.0-
|
|
28
|
-
"@docusaurus/utils": "0.0.0-
|
|
29
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
25
|
+
"@docusaurus/core": "0.0.0-4614",
|
|
26
|
+
"@docusaurus/theme-common": "0.0.0-4614",
|
|
27
|
+
"@docusaurus/theme-translations": "0.0.0-4614",
|
|
28
|
+
"@docusaurus/utils": "0.0.0-4614",
|
|
29
|
+
"@docusaurus/utils-validation": "0.0.0-4614",
|
|
30
30
|
"babel-loader": "^8.2.3",
|
|
31
31
|
"clsx": "^1.1.1",
|
|
32
32
|
"core-js": "^3.21.0",
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"workbox-window": "^6.4.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
42
|
+
"@docusaurus/module-type-aliases": "0.0.0-4614",
|
|
43
43
|
"fs-extra": "^10.0.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": "^16.8.4 || ^17.0.0",
|
|
47
47
|
"react-dom": "^16.8.4 || ^17.0.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "0fa2e52fbc24ea9aa80a5da40149036009bcf21c"
|
|
50
50
|
}
|
package/src/plugin-pwa.d.ts
CHANGED
|
@@ -25,10 +25,10 @@ declare module '@docusaurus/plugin-pwa' {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
declare module '@theme/PwaReloadPopup' {
|
|
28
|
-
export
|
|
28
|
+
export interface Props {
|
|
29
29
|
readonly onReload: () => void;
|
|
30
|
-
}
|
|
30
|
+
}
|
|
31
31
|
|
|
32
|
-
const PwaReloadPopup: (props:
|
|
32
|
+
const PwaReloadPopup: (props: Props) => JSX.Element;
|
|
33
33
|
export default PwaReloadPopup;
|
|
34
34
|
}
|
|
@@ -9,11 +9,11 @@ import React, {useState} from 'react';
|
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import Translate, {translate} from '@docusaurus/Translate';
|
|
11
11
|
|
|
12
|
-
import type {
|
|
12
|
+
import type {Props} from '@theme/PwaReloadPopup';
|
|
13
13
|
|
|
14
14
|
import styles from './styles.module.css';
|
|
15
15
|
|
|
16
|
-
function PwaReloadPopup({onReload}:
|
|
16
|
+
function PwaReloadPopup({onReload}: Props): JSX.Element | false {
|
|
17
17
|
const [isVisible, setIsVisible] = useState(true);
|
|
18
18
|
|
|
19
19
|
return (
|