@vuepress/plugin-pwa 2.0.0-rc.123 → 2.0.0-rc.124
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/PwaInstallModal-DH0cwyM5.js +2 -0
- package/lib/PwaInstallModal-DH0cwyM5.js.map +1 -0
- package/lib/client/components/PwaFoundPopup.d.ts +21 -19
- package/lib/client/components/PwaFoundPopup.js +2 -2
- package/lib/client/components/PwaFoundPopup.js.map +1 -1
- package/lib/client/components/PwaInstall.d.ts +15 -15
- package/lib/client/components/PwaInstall.js +2 -2
- package/lib/client/components/PwaInstall.js.map +1 -1
- package/lib/client/components/PwaReadyPopup.d.ts +21 -19
- package/lib/client/components/PwaReadyPopup.js +2 -2
- package/lib/client/components/PwaReadyPopup.js.map +1 -1
- package/lib/client/composables/index.d.ts +19 -15
- package/lib/client/composables/index.js +1 -2
- package/lib/client/index.d.ts +16 -14
- package/lib/client/index.js +2 -2
- package/lib/client/index.js.map +1 -1
- package/lib/{client/icons-DQk7h1-3.js → icons-RRw4DIWa.js} +2 -2
- package/lib/icons-RRw4DIWa.js.map +1 -0
- package/lib/locales-BlsUewPq.d.ts +72 -0
- package/lib/node/index.d.ts +263 -327
- package/lib/node/index.js +18 -18
- package/lib/node/index.js.map +1 -1
- package/lib/setupViewPoint-DS4c13mS.js +2 -0
- package/lib/setupViewPoint-DS4c13mS.js.map +1 -0
- package/lib/skipWaiting-wM8NHpWa.js +2 -0
- package/lib/skipWaiting-wM8NHpWa.js.map +1 -0
- package/lib/types-CGDCqUfb.d.ts +8 -0
- package/package.json +16 -12
- package/lib/client/PwaReadyPopup-Crl_YRc0.js +0 -2
- package/lib/client/PwaReadyPopup-Crl_YRc0.js.map +0 -1
- package/lib/client/composables/index.js.map +0 -1
- package/lib/client/icons-DQk7h1-3.js.map +0 -1
- package/lib/client/index-BvxQeVsR.js +0 -2
- package/lib/client/index-BvxQeVsR.js.map +0 -1
- package/lib/client/types-B0Ty8tPv.d.ts +0 -74
- package/lib/client/usePwaEvent-CUDY9qle.js +0 -2
- package/lib/client/usePwaEvent-CUDY9qle.js.map +0 -1
package/lib/node/index.d.ts
CHANGED
|
@@ -1,77 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { GenerateSWOptions } from
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
interface PwaPluginLocaleData {
|
|
7
|
-
/**
|
|
8
|
-
* Install button text
|
|
9
|
-
*
|
|
10
|
-
* 安装按钮文字
|
|
11
|
-
*/
|
|
12
|
-
install: string;
|
|
13
|
-
/**
|
|
14
|
-
* iOS install hint text
|
|
15
|
-
*
|
|
16
|
-
* iOS 安装文字
|
|
17
|
-
*/
|
|
18
|
-
iOSInstall: string;
|
|
19
|
-
/**
|
|
20
|
-
* Cancel button text
|
|
21
|
-
*
|
|
22
|
-
* 取消按钮文字
|
|
23
|
-
*/
|
|
24
|
-
cancel: string;
|
|
25
|
-
/**
|
|
26
|
-
* Close button text
|
|
27
|
-
*
|
|
28
|
-
* 关闭按钮文字
|
|
29
|
-
*/
|
|
30
|
-
close: string;
|
|
31
|
-
/**
|
|
32
|
-
* Previous image text
|
|
33
|
-
*
|
|
34
|
-
* 上一张图片文字
|
|
35
|
-
*/
|
|
36
|
-
prevImage: string;
|
|
37
|
-
/**
|
|
38
|
-
* Next image text
|
|
39
|
-
*
|
|
40
|
-
* 下一张图片文字
|
|
41
|
-
*/
|
|
42
|
-
nextImage: string;
|
|
43
|
-
/**
|
|
44
|
-
* Install explain text
|
|
45
|
-
*
|
|
46
|
-
* 安装解释
|
|
47
|
-
*/
|
|
48
|
-
explain: string;
|
|
49
|
-
/**
|
|
50
|
-
* Description label text
|
|
51
|
-
*
|
|
52
|
-
* 描述标签文字
|
|
53
|
-
*/
|
|
54
|
-
desc: string;
|
|
55
|
-
/**
|
|
56
|
-
* Feature label text
|
|
57
|
-
*
|
|
58
|
-
* 特性标签文字
|
|
59
|
-
*/
|
|
60
|
-
feature: string;
|
|
61
|
-
/**
|
|
62
|
-
* Update hint text
|
|
63
|
-
*
|
|
64
|
-
* 提示有更新文字
|
|
65
|
-
*/
|
|
66
|
-
hint: string;
|
|
67
|
-
/**
|
|
68
|
-
* Update available text
|
|
69
|
-
*
|
|
70
|
-
* 更新可用文字
|
|
71
|
-
*/
|
|
72
|
-
update: string;
|
|
73
|
-
}
|
|
1
|
+
import { t as PwaPluginLocaleData } from "../locales-BlsUewPq.js";
|
|
2
|
+
import { DefaultLocaleInfo } from "@vuepress/helper";
|
|
3
|
+
import { GenerateSWOptions } from "workbox-build";
|
|
4
|
+
import { LocaleConfig } from "vuepress/shared";
|
|
5
|
+
import { PluginFunction } from "vuepress/core";
|
|
74
6
|
|
|
7
|
+
//#region src/shared/manifest.d.ts
|
|
75
8
|
/**
|
|
76
9
|
* @see https://www.w3.org/TR/mediaqueries-5/#display-mode
|
|
77
10
|
*/
|
|
@@ -88,283 +21,286 @@ type OrientationLockType = 'any' | 'landscape-primary' | 'landscape-secondary' |
|
|
|
88
21
|
* @see https://www.w3.org/TR/appmanifest/#manifest-image-resources
|
|
89
22
|
*/
|
|
90
23
|
interface ManifestImageResource {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
24
|
+
src: string;
|
|
25
|
+
sizes: string;
|
|
26
|
+
type?: string;
|
|
94
27
|
}
|
|
95
28
|
interface ManifestIcon extends ManifestImageResource {
|
|
96
|
-
|
|
29
|
+
purpose?: 'any' | 'maskable' | 'monochrome';
|
|
97
30
|
}
|
|
98
31
|
/**
|
|
99
32
|
* @see https://www.w3.org/TR/appmanifest/#external-application-resource
|
|
100
33
|
*/
|
|
101
34
|
interface ManifestExternalApplicationResource {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
35
|
+
/**
|
|
36
|
+
* @see https://github.com/w3c/manifest/wiki/Platforms
|
|
37
|
+
*/
|
|
38
|
+
platform: 'amazon' | 'chrome_web_store' | 'chromeos_play' | 'f-droid' | 'itunes' | 'play' | 'webapp' | 'windows';
|
|
39
|
+
url: string;
|
|
40
|
+
id?: string;
|
|
41
|
+
min_version?: string;
|
|
42
|
+
fingerprints?: {
|
|
43
|
+
type: string;
|
|
44
|
+
value: string;
|
|
45
|
+
}[];
|
|
113
46
|
}
|
|
114
47
|
/**
|
|
115
48
|
* @see https://www.w3.org/TR/appmanifest/#shortcut-items
|
|
116
49
|
*/
|
|
117
50
|
interface ManifestShortCutItem {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
51
|
+
name: string;
|
|
52
|
+
url: string;
|
|
53
|
+
short_name?: string;
|
|
54
|
+
description?: string;
|
|
55
|
+
icons?: ManifestIcon[];
|
|
123
56
|
}
|
|
124
57
|
/**
|
|
125
58
|
* @see https://www.w3.org/TR/appmanifest/
|
|
126
59
|
*/
|
|
127
60
|
interface AppManifest extends Record<string, unknown> {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
61
|
+
/**
|
|
62
|
+
* @see https://www.w3.org/TR/appmanifest/#name-member
|
|
63
|
+
*
|
|
64
|
+
* The name of the web application as it is usually displayed to the user
|
|
65
|
+
*/
|
|
66
|
+
name?: string;
|
|
67
|
+
/**
|
|
68
|
+
* @see https://www.w3.org/TR/appmanifest/#short_name-member
|
|
69
|
+
*
|
|
70
|
+
* A short version of the name of the web application
|
|
71
|
+
*/
|
|
72
|
+
short_name?: string;
|
|
73
|
+
/**
|
|
74
|
+
* @see https://www.w3.org/TR/appmanifest/#dfn-background_color
|
|
75
|
+
*
|
|
76
|
+
* The expected background color of the web application
|
|
77
|
+
*/
|
|
78
|
+
background_color?: string;
|
|
79
|
+
/**
|
|
80
|
+
* @see https://www.w3.org/TR/appmanifest/#dir-member
|
|
81
|
+
*
|
|
82
|
+
* The base direction for the localizable members of the manifest.
|
|
83
|
+
*/
|
|
84
|
+
dir?: 'auto' | 'ltr' | 'rtl';
|
|
85
|
+
/**
|
|
86
|
+
* @see https://www.w3.org/TR/appmanifest/#lang-member
|
|
87
|
+
*
|
|
88
|
+
* specifies the primary language for the values of the manifest's localizable members
|
|
89
|
+
*/
|
|
90
|
+
lang?: string;
|
|
91
|
+
/**
|
|
92
|
+
* @see https://www.w3.org/TR/appmanifest/#dfn-display
|
|
93
|
+
*
|
|
94
|
+
* The developer's preferred display mode for the web application
|
|
95
|
+
*/
|
|
96
|
+
display?: DisplayMode;
|
|
97
|
+
icons?: ManifestIcon[];
|
|
98
|
+
/**
|
|
99
|
+
* @see https://www.w3.org/TR/appmanifest/#orientation-member
|
|
100
|
+
*
|
|
101
|
+
* Serves as the default screen orientation for all top-level browsing contexts of the web application
|
|
102
|
+
*/
|
|
103
|
+
orientation?: OrientationLockType;
|
|
104
|
+
/**
|
|
105
|
+
* @see https://www.w3.org/TR/appmanifest/#scope-member
|
|
106
|
+
*
|
|
107
|
+
* The navigation scope of this web application's application context.
|
|
108
|
+
*/
|
|
109
|
+
scope?: string;
|
|
110
|
+
/**
|
|
111
|
+
* @see https://www.w3.org/TR/appmanifest/#start_url-member
|
|
112
|
+
*
|
|
113
|
+
* Start URL
|
|
114
|
+
*/
|
|
115
|
+
start_url?: string;
|
|
116
|
+
/**
|
|
117
|
+
* @see https://www.w3.org/TR/appmanifest/#id-member
|
|
118
|
+
*
|
|
119
|
+
* Identity for the application
|
|
120
|
+
*/
|
|
121
|
+
id?: string;
|
|
122
|
+
/**
|
|
123
|
+
* @see https://www.w3.org/TR/appmanifest/#theme_color-member
|
|
124
|
+
*
|
|
125
|
+
* Default theme color for an application context
|
|
126
|
+
*/
|
|
127
|
+
theme_color?: string;
|
|
128
|
+
shortcuts?: ManifestShortCutItem[];
|
|
129
|
+
prefer_related_applications?: boolean;
|
|
130
|
+
related_applications?: ManifestExternalApplicationResource[];
|
|
131
|
+
description?: string;
|
|
132
|
+
categories?: ManifestCategory[];
|
|
133
|
+
screenshots?: ManifestImageResource[];
|
|
134
|
+
iarc_rating_id?: string;
|
|
135
|
+
features?: string[];
|
|
203
136
|
}
|
|
204
|
-
|
|
137
|
+
//#endregion
|
|
138
|
+
//#region src/node/locales.d.ts
|
|
205
139
|
/**
|
|
206
140
|
* Default locale info for `@vuepress/plugin-pwa`
|
|
207
141
|
*/
|
|
208
142
|
declare const pwaLocaleInfo: DefaultLocaleInfo<PwaPluginLocaleData>;
|
|
209
|
-
|
|
143
|
+
//#endregion
|
|
144
|
+
//#region src/node/options.d.ts
|
|
210
145
|
interface ApplePwaOptions {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
146
|
+
/**
|
|
147
|
+
* Path of icon used on apple devices
|
|
148
|
+
*
|
|
149
|
+
* Recommend 152×152 size
|
|
150
|
+
*
|
|
151
|
+
* 苹果上使用的图标路径
|
|
152
|
+
*
|
|
153
|
+
* 推荐 152×152 大小
|
|
154
|
+
*/
|
|
155
|
+
icon?: string;
|
|
156
|
+
/**
|
|
157
|
+
* Safari mask icon
|
|
158
|
+
*
|
|
159
|
+
* Safari 图标
|
|
160
|
+
*/
|
|
161
|
+
maskIcon?: string;
|
|
162
|
+
/**
|
|
163
|
+
* @deprecated Related tag is unstandardized so you should avoid declaring it.
|
|
164
|
+
*
|
|
165
|
+
* Color of status bar
|
|
166
|
+
*
|
|
167
|
+
* 状态栏的颜色
|
|
168
|
+
*
|
|
169
|
+
* @default "default"
|
|
170
|
+
*/
|
|
171
|
+
statusBarColor?: 'black-translucent' | 'black' | 'default';
|
|
237
172
|
}
|
|
238
173
|
interface PwaPluginOptions {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
174
|
+
/**
|
|
175
|
+
* Service Worker file path
|
|
176
|
+
*
|
|
177
|
+
* Service Worker 文件路径
|
|
178
|
+
*
|
|
179
|
+
* @default "service-worker.js"
|
|
180
|
+
*/
|
|
181
|
+
serviceWorkerFilename?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Whether display install button
|
|
184
|
+
*
|
|
185
|
+
* 是否显示安装按钮
|
|
186
|
+
*
|
|
187
|
+
* @default true
|
|
188
|
+
*/
|
|
189
|
+
showInstall?: boolean;
|
|
190
|
+
/**
|
|
191
|
+
* Manifest file Config
|
|
192
|
+
*
|
|
193
|
+
* manifest 文件设置
|
|
194
|
+
*/
|
|
195
|
+
manifest?: AppManifest;
|
|
196
|
+
/**
|
|
197
|
+
* Path of favicon
|
|
198
|
+
*
|
|
199
|
+
* favicon 地址
|
|
200
|
+
*/
|
|
201
|
+
favicon?: string;
|
|
202
|
+
/**
|
|
203
|
+
* Theme Color
|
|
204
|
+
*
|
|
205
|
+
* 主题色
|
|
206
|
+
*
|
|
207
|
+
* @default "#46bd87"
|
|
208
|
+
*/
|
|
209
|
+
themeColor?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Max size which allows to cache, with KB unit
|
|
212
|
+
*
|
|
213
|
+
* 允许缓存的最大大小,单位 KB
|
|
214
|
+
*
|
|
215
|
+
* @default 2048
|
|
216
|
+
*/
|
|
217
|
+
maxSize?: number;
|
|
218
|
+
/**
|
|
219
|
+
* Whether cache html files besides home page and 404
|
|
220
|
+
*
|
|
221
|
+
* 是否缓存除主页与 404 之外的 HTML
|
|
222
|
+
*
|
|
223
|
+
* @default false
|
|
224
|
+
*/
|
|
225
|
+
cacheHTML?: boolean;
|
|
226
|
+
/**
|
|
227
|
+
* Whether cache pictures
|
|
228
|
+
*
|
|
229
|
+
* 是否缓存站点图片
|
|
230
|
+
*
|
|
231
|
+
* @default false
|
|
232
|
+
*/
|
|
233
|
+
cacheImage?: boolean;
|
|
234
|
+
/**
|
|
235
|
+
* Max size which allows to cache, with KB unit
|
|
236
|
+
*
|
|
237
|
+
* 图片允许缓存的最大大小,单位 KB
|
|
238
|
+
*
|
|
239
|
+
* @default 1024
|
|
240
|
+
*/
|
|
241
|
+
maxImageSize?: number;
|
|
242
|
+
/**
|
|
243
|
+
* Settings for apple
|
|
244
|
+
*
|
|
245
|
+
* 苹果设置
|
|
246
|
+
*/
|
|
247
|
+
apple?: ApplePwaOptions | false;
|
|
248
|
+
/**
|
|
249
|
+
* Update logic
|
|
250
|
+
*
|
|
251
|
+
* - `"disable"`: Do nothing even when new service worker is available. After new service work succeeds installing and starts waiting, it will control page and provide new content in next visit.
|
|
252
|
+
* - `"available"`: Only display update popup when the new service worker is available
|
|
253
|
+
* - `"hint"`: Display a hint to let user choose to refresh immediately. This is helpful when you want users to see new docs immediately.
|
|
254
|
+
* - `"force"`: unregister current service worker immediately then refresh to get new content. **This may affect visiting experiences**!
|
|
255
|
+
*
|
|
256
|
+
* 更新逻辑
|
|
257
|
+
*
|
|
258
|
+
* - `"disable"`: 即使有新的 service worker 也不做任何事情,新的 service work 开始等待后,会在用户下次访问时接管页面,让用户获得新内容。
|
|
259
|
+
* - `"available"`: 仅当新的 service worker 可用时才显示更新弹出窗口
|
|
260
|
+
* - `"hint"`: 显示更新内容可用提示,并允许用户立即刷新。当新的 SW 成功注册后,将转为更新内容就绪弹窗。当你希望用户立即查看新文档时,这很有帮助。
|
|
261
|
+
* - `"force"`: 立即注销当前 Service Worker 然后刷新以获取新内容。**这可能会影响访问体验**!
|
|
262
|
+
*
|
|
263
|
+
* @default "available"
|
|
264
|
+
*/
|
|
265
|
+
update?: 'available' | 'disable' | 'force' | 'hint';
|
|
266
|
+
/**
|
|
267
|
+
* A custom component to replace the default hint popup component.
|
|
268
|
+
*
|
|
269
|
+
* 用于替换默认提示弹出组件的自定义组件。
|
|
270
|
+
*
|
|
271
|
+
* @default "PwaFoundPopup"
|
|
272
|
+
*/
|
|
273
|
+
foundComponent?: string;
|
|
274
|
+
/**
|
|
275
|
+
* A custom component to replace the default update popup component.
|
|
276
|
+
*
|
|
277
|
+
* 用于替换默认更新弹出组件的自定义组件。
|
|
278
|
+
*
|
|
279
|
+
* @default "PwaReadyPopup"
|
|
280
|
+
*/
|
|
281
|
+
readyComponent?: string;
|
|
282
|
+
/**
|
|
283
|
+
* workbox-build’s [generateSW config](https://developers.google.com/web/tools/workbox/modules/workbox-build#full_generatesw_config)
|
|
284
|
+
*
|
|
285
|
+
*/
|
|
286
|
+
generateSWConfig?: Partial<GenerateSWOptions>;
|
|
287
|
+
/**
|
|
288
|
+
* Locales config
|
|
289
|
+
*
|
|
290
|
+
* 国际化配置
|
|
291
|
+
*/
|
|
292
|
+
locales?: LocaleConfig<PwaPluginLocaleData>;
|
|
293
|
+
/**
|
|
294
|
+
* Whether append base to all absolute links in options
|
|
295
|
+
*
|
|
296
|
+
* 是否为选项中所有绝对链接添加 base
|
|
297
|
+
*
|
|
298
|
+
* @default false
|
|
299
|
+
*/
|
|
300
|
+
appendBase?: boolean;
|
|
366
301
|
}
|
|
367
|
-
|
|
302
|
+
//#endregion
|
|
303
|
+
//#region src/node/pwaPlugin.d.ts
|
|
368
304
|
/**
|
|
369
305
|
* PWA plugin
|
|
370
306
|
*
|
|
@@ -391,6 +327,6 @@ interface PwaPluginOptions {
|
|
|
391
327
|
* ```
|
|
392
328
|
*/
|
|
393
329
|
declare const pwaPlugin: (options?: PwaPluginOptions) => PluginFunction;
|
|
394
|
-
|
|
395
|
-
export { pwaLocaleInfo, pwaPlugin };
|
|
396
|
-
|
|
330
|
+
//#endregion
|
|
331
|
+
export { AppManifest, DisplayMode, ManifestCategory, ManifestExternalApplicationResource, ManifestIcon, ManifestImageResource, ManifestShortCutItem, OrientationLockType, PwaPluginLocaleData, PwaPluginOptions, pwaLocaleInfo, pwaPlugin };
|
|
332
|
+
//# sourceMappingURL=index.d.ts.map
|