@docusaurus/plugin-pwa 4.0.0-canary-6879 → 4.0.0-canary-6881
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/lib/renderReloadPopup.js
CHANGED
|
@@ -4,7 +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 React from 'react';
|
|
8
7
|
import { createRoot } from 'react-dom/client';
|
|
9
8
|
const POPUP_CONTAINER_ID = 'pwa-popup-container';
|
|
10
9
|
const getContainer = () => document.getElementById(POPUP_CONTAINER_ID);
|
|
@@ -4,7 +4,7 @@
|
|
|
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
|
|
7
|
+
import {useState} from 'react';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import Translate, {translate} from '@docusaurus/Translate';
|
|
10
10
|
import styles from './styles.module.css';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-pwa",
|
|
3
|
-
"version": "4.0.0-canary-
|
|
3
|
+
"version": "4.0.0-canary-6881",
|
|
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.29.7",
|
|
24
24
|
"@babel/preset-env": "^7.29.7",
|
|
25
|
-
"@docusaurus/bundler": "4.0.0-canary-
|
|
26
|
-
"@docusaurus/core": "4.0.0-canary-
|
|
27
|
-
"@docusaurus/logger": "4.0.0-canary-
|
|
28
|
-
"@docusaurus/theme-common": "4.0.0-canary-
|
|
29
|
-
"@docusaurus/theme-translations": "4.0.0-canary-
|
|
30
|
-
"@docusaurus/types": "4.0.0-canary-
|
|
31
|
-
"@docusaurus/utils": "4.0.0-canary-
|
|
32
|
-
"@docusaurus/utils-validation": "4.0.0-canary-
|
|
25
|
+
"@docusaurus/bundler": "4.0.0-canary-6881",
|
|
26
|
+
"@docusaurus/core": "4.0.0-canary-6881",
|
|
27
|
+
"@docusaurus/logger": "4.0.0-canary-6881",
|
|
28
|
+
"@docusaurus/theme-common": "4.0.0-canary-6881",
|
|
29
|
+
"@docusaurus/theme-translations": "4.0.0-canary-6881",
|
|
30
|
+
"@docusaurus/types": "4.0.0-canary-6881",
|
|
31
|
+
"@docusaurus/utils": "4.0.0-canary-6881",
|
|
32
|
+
"@docusaurus/utils-validation": "4.0.0-canary-6881",
|
|
33
33
|
"babel-loader": "^10.1.1",
|
|
34
34
|
"clsx": "^2.1.1",
|
|
35
35
|
"core-js": "^3.50.0",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"workbox-window": "^7.4.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@docusaurus/module-type-aliases": "4.0.0-canary-
|
|
43
|
+
"@docusaurus/module-type-aliases": "4.0.0-canary-6881",
|
|
44
44
|
"@types/react-dom": "^19.3.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": ">=24.21"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "e430343b0caccec7c7db3553dca51f181d3d9c3b"
|
|
54
54
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import
|
|
8
|
+
import {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';
|