@capgo/capacitor-webview-version-checker 8.0.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.
File without changes
package/dist/docs.json ADDED
@@ -0,0 +1,560 @@
1
+ {
2
+ "api": {
3
+ "name": "WebviewVersionCheckerPlugin",
4
+ "slug": "webviewversioncheckerplugin",
5
+ "docs": "Public API for checking WebView freshness and guiding users to updates.",
6
+ "tags": [],
7
+ "methods": [
8
+ {
9
+ "name": "check",
10
+ "signature": "(options?: CheckWebViewOptions | undefined) => Promise<WebViewVersionStatus>",
11
+ "parameters": [
12
+ {
13
+ "name": "options",
14
+ "docs": "",
15
+ "type": "CheckWebViewOptions | undefined"
16
+ }
17
+ ],
18
+ "returns": "Promise<WebViewVersionStatus>",
19
+ "tags": [],
20
+ "docs": "Runs a version check and returns the latest known status.",
21
+ "complexTypes": [
22
+ "WebViewVersionStatus",
23
+ "CheckWebViewOptions"
24
+ ],
25
+ "slug": "check"
26
+ },
27
+ {
28
+ "name": "startMonitoring",
29
+ "signature": "(options?: StartMonitoringOptions | undefined) => Promise<MonitoringStateResult>",
30
+ "parameters": [
31
+ {
32
+ "name": "options",
33
+ "docs": "",
34
+ "type": "StartMonitoringOptions | undefined"
35
+ }
36
+ ],
37
+ "returns": "Promise<MonitoringStateResult>",
38
+ "tags": [],
39
+ "docs": "Enables background monitoring (typically on app resume).",
40
+ "complexTypes": [
41
+ "MonitoringStateResult",
42
+ "StartMonitoringOptions"
43
+ ],
44
+ "slug": "startmonitoring"
45
+ },
46
+ {
47
+ "name": "stopMonitoring",
48
+ "signature": "() => Promise<MonitoringStateResult>",
49
+ "parameters": [],
50
+ "returns": "Promise<MonitoringStateResult>",
51
+ "tags": [],
52
+ "docs": "Disables monitoring.",
53
+ "complexTypes": [
54
+ "MonitoringStateResult"
55
+ ],
56
+ "slug": "stopmonitoring"
57
+ },
58
+ {
59
+ "name": "getLastStatus",
60
+ "signature": "() => Promise<LastStatusResult>",
61
+ "parameters": [],
62
+ "returns": "Promise<LastStatusResult>",
63
+ "tags": [],
64
+ "docs": "Returns the last resolved status, or `null` if no check was run yet.",
65
+ "complexTypes": [
66
+ "LastStatusResult"
67
+ ],
68
+ "slug": "getlaststatus"
69
+ },
70
+ {
71
+ "name": "showUpdatePrompt",
72
+ "signature": "(options?: ShowUpdatePromptOptions | undefined) => Promise<ShowUpdatePromptResult>",
73
+ "parameters": [
74
+ {
75
+ "name": "options",
76
+ "docs": "",
77
+ "type": "ShowUpdatePromptOptions | undefined"
78
+ }
79
+ ],
80
+ "returns": "Promise<ShowUpdatePromptResult>",
81
+ "tags": [],
82
+ "docs": "Shows a native prompt asking the user to update the WebView.",
83
+ "complexTypes": [
84
+ "ShowUpdatePromptResult",
85
+ "ShowUpdatePromptOptions"
86
+ ],
87
+ "slug": "showupdateprompt"
88
+ },
89
+ {
90
+ "name": "openUpdatePage",
91
+ "signature": "(options?: OpenUpdatePageOptions | undefined) => Promise<OpenUpdatePageResult>",
92
+ "parameters": [
93
+ {
94
+ "name": "options",
95
+ "docs": "",
96
+ "type": "OpenUpdatePageOptions | undefined"
97
+ }
98
+ ],
99
+ "returns": "Promise<OpenUpdatePageResult>",
100
+ "tags": [],
101
+ "docs": "Opens the configured update page directly.",
102
+ "complexTypes": [
103
+ "OpenUpdatePageResult",
104
+ "OpenUpdatePageOptions"
105
+ ],
106
+ "slug": "openupdatepage"
107
+ },
108
+ {
109
+ "name": "addListener",
110
+ "signature": "(eventName: 'statusChanged', listenerFunc: (status: WebViewVersionStatus) => void) => Promise<PluginListenerHandle>",
111
+ "parameters": [
112
+ {
113
+ "name": "eventName",
114
+ "docs": "",
115
+ "type": "'statusChanged'"
116
+ },
117
+ {
118
+ "name": "listenerFunc",
119
+ "docs": "",
120
+ "type": "(status: WebViewVersionStatus) => void"
121
+ }
122
+ ],
123
+ "returns": "Promise<PluginListenerHandle>",
124
+ "tags": [],
125
+ "docs": "Fired for every successful status evaluation.",
126
+ "complexTypes": [
127
+ "PluginListenerHandle",
128
+ "WebViewVersionStatus"
129
+ ],
130
+ "slug": "addlistenerstatuschanged-"
131
+ },
132
+ {
133
+ "name": "addListener",
134
+ "signature": "(eventName: 'webViewLatest', listenerFunc: (status: WebViewVersionStatus) => void) => Promise<PluginListenerHandle>",
135
+ "parameters": [
136
+ {
137
+ "name": "eventName",
138
+ "docs": "",
139
+ "type": "'webViewLatest'"
140
+ },
141
+ {
142
+ "name": "listenerFunc",
143
+ "docs": "",
144
+ "type": "(status: WebViewVersionStatus) => void"
145
+ }
146
+ ],
147
+ "returns": "Promise<PluginListenerHandle>",
148
+ "tags": [],
149
+ "docs": "Fired when the state resolves to `latest`.",
150
+ "complexTypes": [
151
+ "PluginListenerHandle",
152
+ "WebViewVersionStatus"
153
+ ],
154
+ "slug": "addlistenerwebviewlatest-"
155
+ },
156
+ {
157
+ "name": "addListener",
158
+ "signature": "(eventName: 'webViewOutdated', listenerFunc: (status: WebViewVersionStatus) => void) => Promise<PluginListenerHandle>",
159
+ "parameters": [
160
+ {
161
+ "name": "eventName",
162
+ "docs": "",
163
+ "type": "'webViewOutdated'"
164
+ },
165
+ {
166
+ "name": "listenerFunc",
167
+ "docs": "",
168
+ "type": "(status: WebViewVersionStatus) => void"
169
+ }
170
+ ],
171
+ "returns": "Promise<PluginListenerHandle>",
172
+ "tags": [],
173
+ "docs": "Fired when the state resolves to `outdated`.",
174
+ "complexTypes": [
175
+ "PluginListenerHandle",
176
+ "WebViewVersionStatus"
177
+ ],
178
+ "slug": "addlistenerwebviewoutdated-"
179
+ }
180
+ ],
181
+ "properties": []
182
+ },
183
+ "interfaces": [
184
+ {
185
+ "name": "WebViewVersionStatus",
186
+ "slug": "webviewversionstatus",
187
+ "docs": "Snapshot of the currently detected WebView status.",
188
+ "tags": [],
189
+ "methods": [],
190
+ "properties": [
191
+ {
192
+ "name": "platform",
193
+ "tags": [],
194
+ "docs": "Native platform that generated the status.",
195
+ "complexTypes": [
196
+ "WebViewPlatform"
197
+ ],
198
+ "type": "WebViewPlatform"
199
+ },
200
+ {
201
+ "name": "state",
202
+ "tags": [],
203
+ "docs": "Resolved version state.",
204
+ "complexTypes": [
205
+ "WebViewVersionState"
206
+ ],
207
+ "type": "WebViewVersionState"
208
+ },
209
+ {
210
+ "name": "isLatest",
211
+ "tags": [],
212
+ "docs": "Convenience boolean equivalent to `state === 'latest'`.",
213
+ "complexTypes": [],
214
+ "type": "boolean"
215
+ },
216
+ {
217
+ "name": "checkedAt",
218
+ "tags": [],
219
+ "docs": "ISO-8601 timestamp of the check.",
220
+ "complexTypes": [],
221
+ "type": "string"
222
+ },
223
+ {
224
+ "name": "reason",
225
+ "tags": [],
226
+ "docs": "Human-readable explanation for the reported state.",
227
+ "complexTypes": [],
228
+ "type": "string"
229
+ },
230
+ {
231
+ "name": "currentVersion",
232
+ "tags": [],
233
+ "docs": "Current WebView (or iOS system WebKit) version string.",
234
+ "complexTypes": [],
235
+ "type": "string"
236
+ },
237
+ {
238
+ "name": "currentMajorVersion",
239
+ "tags": [],
240
+ "docs": "Current detected major version (if parseable).",
241
+ "complexTypes": [],
242
+ "type": "number | undefined"
243
+ },
244
+ {
245
+ "name": "latestVersion",
246
+ "tags": [],
247
+ "docs": "Resolved latest version used for comparison.",
248
+ "complexTypes": [],
249
+ "type": "string | undefined"
250
+ },
251
+ {
252
+ "name": "latestMajorVersion",
253
+ "tags": [],
254
+ "docs": "Resolved latest major version (if parseable).",
255
+ "complexTypes": [],
256
+ "type": "number | undefined"
257
+ },
258
+ {
259
+ "name": "providerPackage",
260
+ "tags": [],
261
+ "docs": "Android package name of the active WebView provider.",
262
+ "complexTypes": [],
263
+ "type": "string | undefined"
264
+ },
265
+ {
266
+ "name": "updateUrl",
267
+ "tags": [],
268
+ "docs": "URL that should be opened to update when outdated.",
269
+ "complexTypes": [],
270
+ "type": "string | undefined"
271
+ },
272
+ {
273
+ "name": "source",
274
+ "tags": [],
275
+ "docs": "Internal source identifier for the check implementation.",
276
+ "complexTypes": [],
277
+ "type": "string"
278
+ }
279
+ ]
280
+ },
281
+ {
282
+ "name": "CheckWebViewOptions",
283
+ "slug": "checkwebviewoptions",
284
+ "docs": "Options for running a WebView version check.",
285
+ "tags": [],
286
+ "methods": [],
287
+ "properties": [
288
+ {
289
+ "name": "showPromptOnOutdated",
290
+ "tags": [
291
+ {
292
+ "text": "false",
293
+ "name": "default"
294
+ }
295
+ ],
296
+ "docs": "Force showing a native prompt if an outdated WebView is detected.",
297
+ "complexTypes": [],
298
+ "type": "boolean | undefined"
299
+ },
300
+ {
301
+ "name": "source",
302
+ "tags": [
303
+ {
304
+ "text": "\"manual\"",
305
+ "name": "default"
306
+ }
307
+ ],
308
+ "docs": "Optional tag included in the status payload so you can identify the check origin.",
309
+ "complexTypes": [],
310
+ "type": "string | undefined"
311
+ }
312
+ ]
313
+ },
314
+ {
315
+ "name": "MonitoringStateResult",
316
+ "slug": "monitoringstateresult",
317
+ "docs": "Result payload for monitor controls.",
318
+ "tags": [],
319
+ "methods": [],
320
+ "properties": [
321
+ {
322
+ "name": "monitoring",
323
+ "tags": [],
324
+ "docs": "Whether monitoring is currently active.",
325
+ "complexTypes": [],
326
+ "type": "boolean"
327
+ },
328
+ {
329
+ "name": "checkOnResume",
330
+ "tags": [],
331
+ "docs": "Whether checks run on app resume while monitoring is active.",
332
+ "complexTypes": [],
333
+ "type": "boolean"
334
+ },
335
+ {
336
+ "name": "autoPromptOnOutdated",
337
+ "tags": [],
338
+ "docs": "Whether outdated checks auto-trigger the native prompt.",
339
+ "complexTypes": [],
340
+ "type": "boolean"
341
+ }
342
+ ]
343
+ },
344
+ {
345
+ "name": "StartMonitoringOptions",
346
+ "slug": "startmonitoringoptions",
347
+ "docs": "Options for starting monitor mode.",
348
+ "tags": [],
349
+ "methods": [],
350
+ "properties": [
351
+ {
352
+ "name": "checkOnStart",
353
+ "tags": [
354
+ {
355
+ "text": "true",
356
+ "name": "default"
357
+ }
358
+ ],
359
+ "docs": "Run a check immediately when monitoring starts.",
360
+ "complexTypes": [],
361
+ "type": "boolean | undefined"
362
+ },
363
+ {
364
+ "name": "checkOnResume",
365
+ "tags": [
366
+ {
367
+ "text": "true",
368
+ "name": "default"
369
+ }
370
+ ],
371
+ "docs": "Whether foreground checks should run while monitoring is enabled.",
372
+ "complexTypes": [],
373
+ "type": "boolean | undefined"
374
+ }
375
+ ]
376
+ },
377
+ {
378
+ "name": "LastStatusResult",
379
+ "slug": "laststatusresult",
380
+ "docs": "Last known check snapshot.",
381
+ "tags": [],
382
+ "methods": [],
383
+ "properties": [
384
+ {
385
+ "name": "status",
386
+ "tags": [],
387
+ "docs": "Null until the first check completes.",
388
+ "complexTypes": [
389
+ "WebViewVersionStatus"
390
+ ],
391
+ "type": "WebViewVersionStatus | null"
392
+ }
393
+ ]
394
+ },
395
+ {
396
+ "name": "ShowUpdatePromptResult",
397
+ "slug": "showupdatepromptresult",
398
+ "docs": "Result payload for `showUpdatePrompt()`.",
399
+ "tags": [],
400
+ "methods": [],
401
+ "properties": [
402
+ {
403
+ "name": "shown",
404
+ "tags": [],
405
+ "docs": "Whether a native prompt was actually shown.",
406
+ "complexTypes": [],
407
+ "type": "boolean"
408
+ },
409
+ {
410
+ "name": "openedUpdatePage",
411
+ "tags": [],
412
+ "docs": "Whether the update page was opened from the prompt action.",
413
+ "complexTypes": [],
414
+ "type": "boolean"
415
+ }
416
+ ]
417
+ },
418
+ {
419
+ "name": "ShowUpdatePromptOptions",
420
+ "slug": "showupdatepromptoptions",
421
+ "docs": "Options for showing the native update prompt.",
422
+ "tags": [],
423
+ "methods": [],
424
+ "properties": [
425
+ {
426
+ "name": "title",
427
+ "tags": [],
428
+ "docs": "Prompt title.",
429
+ "complexTypes": [],
430
+ "type": "string | undefined"
431
+ },
432
+ {
433
+ "name": "message",
434
+ "tags": [],
435
+ "docs": "Prompt message.",
436
+ "complexTypes": [],
437
+ "type": "string | undefined"
438
+ },
439
+ {
440
+ "name": "updateButtonText",
441
+ "tags": [],
442
+ "docs": "Update CTA label.",
443
+ "complexTypes": [],
444
+ "type": "string | undefined"
445
+ },
446
+ {
447
+ "name": "cancelButtonText",
448
+ "tags": [],
449
+ "docs": "Cancel CTA label.",
450
+ "complexTypes": [],
451
+ "type": "string | undefined"
452
+ },
453
+ {
454
+ "name": "updateUrl",
455
+ "tags": [],
456
+ "docs": "Optional URL to open if the update action is selected.",
457
+ "complexTypes": [],
458
+ "type": "string | undefined"
459
+ }
460
+ ]
461
+ },
462
+ {
463
+ "name": "OpenUpdatePageResult",
464
+ "slug": "openupdatepageresult",
465
+ "docs": "Result payload for `openUpdatePage()`.",
466
+ "tags": [],
467
+ "methods": [],
468
+ "properties": [
469
+ {
470
+ "name": "opened",
471
+ "tags": [],
472
+ "docs": "Whether opening the update URL succeeded.",
473
+ "complexTypes": [],
474
+ "type": "boolean"
475
+ },
476
+ {
477
+ "name": "url",
478
+ "tags": [],
479
+ "docs": "URL that was attempted.",
480
+ "complexTypes": [],
481
+ "type": "string"
482
+ }
483
+ ]
484
+ },
485
+ {
486
+ "name": "OpenUpdatePageOptions",
487
+ "slug": "openupdatepageoptions",
488
+ "docs": "Options for opening the update page directly.",
489
+ "tags": [],
490
+ "methods": [],
491
+ "properties": [
492
+ {
493
+ "name": "updateUrl",
494
+ "tags": [],
495
+ "docs": "Optional URL override.",
496
+ "complexTypes": [],
497
+ "type": "string | undefined"
498
+ }
499
+ ]
500
+ },
501
+ {
502
+ "name": "PluginListenerHandle",
503
+ "slug": "pluginlistenerhandle",
504
+ "docs": "",
505
+ "tags": [],
506
+ "methods": [],
507
+ "properties": [
508
+ {
509
+ "name": "remove",
510
+ "tags": [],
511
+ "docs": "",
512
+ "complexTypes": [],
513
+ "type": "() => Promise<void>"
514
+ }
515
+ ]
516
+ }
517
+ ],
518
+ "enums": [],
519
+ "typeAliases": [
520
+ {
521
+ "name": "WebViewPlatform",
522
+ "slug": "webviewplatform",
523
+ "docs": "",
524
+ "types": [
525
+ {
526
+ "text": "'android'",
527
+ "complexTypes": []
528
+ },
529
+ {
530
+ "text": "'ios'",
531
+ "complexTypes": []
532
+ },
533
+ {
534
+ "text": "'web'",
535
+ "complexTypes": []
536
+ }
537
+ ]
538
+ },
539
+ {
540
+ "name": "WebViewVersionState",
541
+ "slug": "webviewversionstate",
542
+ "docs": "",
543
+ "types": [
544
+ {
545
+ "text": "'latest'",
546
+ "complexTypes": []
547
+ },
548
+ {
549
+ "text": "'outdated'",
550
+ "complexTypes": []
551
+ },
552
+ {
553
+ "text": "'unknown'",
554
+ "complexTypes": []
555
+ }
556
+ ]
557
+ }
558
+ ],
559
+ "pluginConfigs": []
560
+ }