@vuepress/plugin-pwa 2.0.0-rc.42 → 2.0.0-rc.43
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/client/components/PwaFoundPopup.d.ts +4 -4
- package/lib/client/components/PwaInstall.d.ts +3 -3
- package/lib/client/components/PwaInstallModal.d.ts +5 -5
- package/lib/client/components/PwaReadyPopup.d.ts +4 -4
- package/lib/client/styles/modal.css +2 -2
- package/lib/client/styles/popup.css +1 -1
- package/lib/client/styles/vars.css +1 -1
- package/package.json +5 -5
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import type { PropType, SlotsType, VNode } from 'vue';
|
|
2
2
|
import type { PwaPluginLocaleConfig } from '../../shared/index.js';
|
|
3
3
|
import '../styles/popup.css';
|
|
4
|
-
export declare const PwaFoundPopup: import("vue").DefineComponent<{
|
|
4
|
+
export declare const PwaFoundPopup: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
5
|
/** locale data */
|
|
6
6
|
locales: {
|
|
7
7
|
type: PropType<PwaPluginLocaleConfig>;
|
|
8
8
|
required: true;
|
|
9
9
|
};
|
|
10
|
-
}
|
|
10
|
+
}>, () => VNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
11
|
/** locale data */
|
|
12
12
|
locales: {
|
|
13
13
|
type: PropType<PwaPluginLocaleConfig>;
|
|
14
14
|
required: true;
|
|
15
15
|
};
|
|
16
|
-
}
|
|
16
|
+
}>> & Readonly<{}>, {}, SlotsType<{
|
|
17
17
|
default?: (props: {
|
|
18
18
|
found: boolean;
|
|
19
19
|
refresh: () => void;
|
|
20
20
|
}) => VNode | VNode[] | null;
|
|
21
|
-
}
|
|
21
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { PropType, VNode } from 'vue';
|
|
2
2
|
import type { PwaPluginLocaleConfig } from '../../shared/index.js';
|
|
3
3
|
import '../styles/modal.css';
|
|
4
|
-
export declare const PwaInstall: import("vue").DefineComponent<{
|
|
4
|
+
export declare const PwaInstall: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
5
|
/** locale data */
|
|
6
6
|
locales: {
|
|
7
7
|
type: PropType<PwaPluginLocaleConfig>;
|
|
8
8
|
required: true;
|
|
9
9
|
};
|
|
10
|
-
}
|
|
10
|
+
}>, () => VNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
11
|
/** locale data */
|
|
12
12
|
locales: {
|
|
13
13
|
type: PropType<PwaPluginLocaleConfig>;
|
|
14
14
|
required: true;
|
|
15
15
|
};
|
|
16
|
-
}
|
|
16
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropType, VNode } from 'vue';
|
|
2
2
|
import type { PwaPluginLocaleConfig } from '../../shared/index.js';
|
|
3
|
-
export declare const PwaInstallModal: import("vue").DefineComponent<{
|
|
3
|
+
export declare const PwaInstallModal: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
/** locale data */
|
|
5
5
|
locales: {
|
|
6
6
|
type: PropType<PwaPluginLocaleConfig>;
|
|
@@ -12,7 +12,7 @@ export declare const PwaInstallModal: import("vue").DefineComponent<{
|
|
|
12
12
|
* 是否使用提示
|
|
13
13
|
*/
|
|
14
14
|
useHint: BooleanConstructor;
|
|
15
|
-
}
|
|
15
|
+
}>, () => VNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "canInstall" | "hint")[], "close" | "canInstall" | "hint", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
16
|
/** locale data */
|
|
17
17
|
locales: {
|
|
18
18
|
type: PropType<PwaPluginLocaleConfig>;
|
|
@@ -24,10 +24,10 @@ export declare const PwaInstallModal: import("vue").DefineComponent<{
|
|
|
24
24
|
* 是否使用提示
|
|
25
25
|
*/
|
|
26
26
|
useHint: BooleanConstructor;
|
|
27
|
-
}>> & {
|
|
27
|
+
}>> & Readonly<{
|
|
28
28
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
29
29
|
onCanInstall?: ((...args: any[]) => any) | undefined;
|
|
30
30
|
onHint?: ((...args: any[]) => any) | undefined;
|
|
31
|
-
}
|
|
31
|
+
}>, {
|
|
32
32
|
useHint: boolean;
|
|
33
|
-
}, {}>;
|
|
33
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import type { PropType, SlotsType, VNode } from 'vue';
|
|
2
2
|
import type { PwaPluginLocaleConfig } from '../../shared/index.js';
|
|
3
3
|
import '../styles/popup.css';
|
|
4
|
-
export declare const PwaReadyPopup: import("vue").DefineComponent<{
|
|
4
|
+
export declare const PwaReadyPopup: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
5
|
/** locale data */
|
|
6
6
|
locales: {
|
|
7
7
|
type: PropType<PwaPluginLocaleConfig>;
|
|
8
8
|
required: true;
|
|
9
9
|
};
|
|
10
|
-
}
|
|
10
|
+
}>, () => VNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
11
|
/** locale data */
|
|
12
12
|
locales: {
|
|
13
13
|
type: PropType<PwaPluginLocaleConfig>;
|
|
14
14
|
required: true;
|
|
15
15
|
};
|
|
16
|
-
}
|
|
16
|
+
}>> & Readonly<{}>, {}, SlotsType<{
|
|
17
17
|
default?: (props: {
|
|
18
18
|
isReady: boolean;
|
|
19
19
|
reload: () => void;
|
|
20
20
|
}) => VNode | VNode[] | null;
|
|
21
|
-
}
|
|
21
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
padding: 0 16px;
|
|
33
33
|
border-width: 0;
|
|
34
34
|
border-radius: 1.2rem;
|
|
35
|
-
background: var(--pwa-c-accent);
|
|
35
|
+
background: var(--pwa-c-accent-bg);
|
|
36
36
|
color: var(--pwa-c-accent-text);
|
|
37
37
|
outline: none;
|
|
38
38
|
font-weight: 600;
|
|
@@ -339,7 +339,7 @@
|
|
|
339
339
|
cursor: pointer;
|
|
340
340
|
}
|
|
341
341
|
#install-modal-wrapper .install-button {
|
|
342
|
-
background: var(--pwa-c-accent);
|
|
342
|
+
background: var(--pwa-c-accent-bg);
|
|
343
343
|
color: var(--pwa-c-accent-text);
|
|
344
344
|
transition: color 0.3s;
|
|
345
345
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
--pwa-c-bg: var(--vp-c-bg-elv);
|
|
4
4
|
--pwa-c-text: var(--vp-c-text);
|
|
5
5
|
--pwa-c-shadow: var(--vp-c-shadow);
|
|
6
|
-
--pwa-c-accent: var(--vp-c-accent);
|
|
6
|
+
--pwa-c-accent-bg: var(--vp-c-accent-bg);
|
|
7
7
|
--pwa-c-accent-hover: var(--vp-c-accent-hover);
|
|
8
8
|
--pwa-c-accent-text: var(--vp-c-accent-text);
|
|
9
9
|
--pwa-c-control: var(--vp-c-control);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuepress/plugin-pwa",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.43",
|
|
4
4
|
"description": "VuePress plugin - progressive web application",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vuepress-plugin",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"lib"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@vuepress/helper": "2.0.0-rc.
|
|
40
|
-
"@vueuse/core": "^11.0.
|
|
39
|
+
"@vuepress/helper": "2.0.0-rc.43",
|
|
40
|
+
"@vueuse/core": "^11.0.3",
|
|
41
41
|
"mitt": "^3.0.1",
|
|
42
42
|
"register-service-worker": "^1.7.2",
|
|
43
|
-
"vue": "^3.4
|
|
43
|
+
"vue": "^3.5.4",
|
|
44
44
|
"workbox-build": "^7.1.1"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "7c75a58f6aed788e2ee40e2b2f0451a76ec20a23"
|
|
53
53
|
}
|