@docusaurus/plugin-pwa 0.0.0-4624 → 0.0.0-4627

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.
@@ -6,5 +6,4 @@
6
6
  */
7
7
  /// <reference types="react" />
8
8
  import type { Props } from '@theme/PwaReloadPopup';
9
- declare function PwaReloadPopup({ onReload }: Props): JSX.Element | false;
10
- export default PwaReloadPopup;
9
+ export default function PwaReloadPopup({ onReload }: Props): JSX.Element | false;
@@ -8,7 +8,7 @@ import React, { 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';
11
- function PwaReloadPopup({ onReload }) {
11
+ export default function PwaReloadPopup({ onReload }) {
12
12
  const [isVisible, setIsVisible] = useState(true);
13
13
  return (isVisible && (<div className={clsx('alert', 'alert--secondary', styles.popup)}>
14
14
  <p>
@@ -36,4 +36,3 @@ function PwaReloadPopup({ onReload }) {
36
36
  </div>
37
37
  </div>));
38
38
  }
39
- export default PwaReloadPopup;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/plugin-pwa",
3
- "version": "0.0.0-4624",
3
+ "version": "0.0.0-4627",
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-4624",
26
- "@docusaurus/theme-common": "0.0.0-4624",
27
- "@docusaurus/theme-translations": "0.0.0-4624",
28
- "@docusaurus/utils": "0.0.0-4624",
29
- "@docusaurus/utils-validation": "0.0.0-4624",
25
+ "@docusaurus/core": "0.0.0-4627",
26
+ "@docusaurus/theme-common": "0.0.0-4627",
27
+ "@docusaurus/theme-translations": "0.0.0-4627",
28
+ "@docusaurus/utils": "0.0.0-4627",
29
+ "@docusaurus/utils-validation": "0.0.0-4627",
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-4624",
42
+ "@docusaurus/module-type-aliases": "0.0.0-4627",
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": "2973b9893d7369100eda9f94b62aeb0055da99ad"
49
+ "gitHead": "89fcd5ec57a0c156894bc5f93750b4fb295e97d2"
50
50
  }
@@ -28,7 +28,5 @@ declare module '@theme/PwaReloadPopup' {
28
28
  export interface Props {
29
29
  readonly onReload: () => void;
30
30
  }
31
-
32
- const PwaReloadPopup: (props: Props) => JSX.Element;
33
- export default PwaReloadPopup;
31
+ export default function PwaReloadPopup(props: Props): JSX.Element;
34
32
  }
@@ -13,7 +13,7 @@ import type {Props} from '@theme/PwaReloadPopup';
13
13
 
14
14
  import styles from './styles.module.css';
15
15
 
16
- function PwaReloadPopup({onReload}: Props): JSX.Element | false {
16
+ export default function PwaReloadPopup({onReload}: Props): JSX.Element | false {
17
17
  const [isVisible, setIsVisible] = useState(true);
18
18
 
19
19
  return (
@@ -58,5 +58,3 @@ function PwaReloadPopup({onReload}: Props): JSX.Element | false {
58
58
  )
59
59
  );
60
60
  }
61
-
62
- export default PwaReloadPopup;