@docusaurus/plugin-pwa 3.6.3 → 3.7.0
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.
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
7
8
|
import type { Props } from '@theme/PwaReloadPopup';
|
|
8
|
-
export default function PwaReloadPopup({ onReload }: Props):
|
|
9
|
+
export default function PwaReloadPopup({ onReload }: Props): ReactNode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-pwa",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"description": "Docusaurus Plugin to add PWA support.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/plugin-pwa.d.ts",
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@babel/core": "^7.25.9",
|
|
24
24
|
"@babel/preset-env": "^7.25.9",
|
|
25
|
-
"@docusaurus/bundler": "3.
|
|
26
|
-
"@docusaurus/core": "3.
|
|
27
|
-
"@docusaurus/logger": "3.
|
|
28
|
-
"@docusaurus/theme-common": "3.
|
|
29
|
-
"@docusaurus/theme-translations": "3.
|
|
30
|
-
"@docusaurus/types": "3.
|
|
31
|
-
"@docusaurus/utils": "3.
|
|
32
|
-
"@docusaurus/utils-validation": "3.
|
|
25
|
+
"@docusaurus/bundler": "3.7.0",
|
|
26
|
+
"@docusaurus/core": "3.7.0",
|
|
27
|
+
"@docusaurus/logger": "3.7.0",
|
|
28
|
+
"@docusaurus/theme-common": "3.7.0",
|
|
29
|
+
"@docusaurus/theme-translations": "3.7.0",
|
|
30
|
+
"@docusaurus/types": "3.7.0",
|
|
31
|
+
"@docusaurus/utils": "3.7.0",
|
|
32
|
+
"@docusaurus/utils-validation": "3.7.0",
|
|
33
33
|
"babel-loader": "^9.2.1",
|
|
34
34
|
"clsx": "^2.0.0",
|
|
35
35
|
"core-js": "^3.31.1",
|
|
@@ -41,15 +41,15 @@
|
|
|
41
41
|
"workbox-window": "^7.0.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@docusaurus/module-type-aliases": "3.
|
|
44
|
+
"@docusaurus/module-type-aliases": "3.7.0",
|
|
45
45
|
"fs-extra": "^11.1.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"react": "^18.0.0",
|
|
49
|
-
"react-dom": "^18.0.0"
|
|
48
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
49
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
52
|
"node": ">=18.0"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "dd59750c16fe6908a26f18806a54d4c3dbe6db43"
|
|
55
55
|
}
|
package/src/plugin-pwa.d.ts
CHANGED
|
@@ -76,6 +76,8 @@ declare module '@docusaurus/plugin-pwa' {
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
declare module '@theme/PwaReloadPopup' {
|
|
79
|
+
import type {ReactNode} from 'react';
|
|
80
|
+
|
|
79
81
|
export interface Props {
|
|
80
82
|
/**
|
|
81
83
|
* The popup should call this callback when the `reload` button is clicked.
|
|
@@ -84,5 +86,5 @@ declare module '@theme/PwaReloadPopup' {
|
|
|
84
86
|
*/
|
|
85
87
|
readonly onReload: () => void;
|
|
86
88
|
}
|
|
87
|
-
export default function PwaReloadPopup(props: Props):
|
|
89
|
+
export default function PwaReloadPopup(props: Props): ReactNode;
|
|
88
90
|
}
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, {useState} from 'react';
|
|
8
|
+
import React, {type ReactNode, useState} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import Translate, {translate} from '@docusaurus/Translate';
|
|
11
11
|
import type {Props} from '@theme/PwaReloadPopup';
|
|
12
12
|
|
|
13
13
|
import styles from './styles.module.css';
|
|
14
14
|
|
|
15
|
-
export default function PwaReloadPopup({onReload}: Props):
|
|
15
|
+
export default function PwaReloadPopup({onReload}: Props): ReactNode {
|
|
16
16
|
const [isVisible, setIsVisible] = useState(true);
|
|
17
17
|
|
|
18
18
|
return (
|