@capgo/capacitor-updater 8.48.0 → 8.49.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.
- package/README.md +186 -8
- package/android/src/main/java/ee/forgr/capacitor_updater/CapacitorUpdaterPlugin.java +645 -111
- package/android/src/main/java/ee/forgr/capacitor_updater/ShakeMenu.java +203 -30
- package/android/src/main/java/ee/forgr/capacitor_updater/ThreeFingerPinchDetector.java +1 -1
- package/dist/docs.json +528 -17
- package/dist/esm/definitions.d.ts +228 -10
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/web.d.ts +7 -1
- package/dist/esm/web.js +24 -0
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +24 -0
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +24 -0
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/CapacitorUpdaterPlugin/CapacitorUpdaterPlugin.swift +538 -77
- package/ios/Sources/CapacitorUpdaterPlugin/ShakeMenu.swift +225 -16
- package/package.json +1 -1
package/dist/docs.json
CHANGED
|
@@ -251,12 +251,203 @@
|
|
|
251
251
|
"text": "8.47.0"
|
|
252
252
|
}
|
|
253
253
|
],
|
|
254
|
-
"docs": "Start a temporary preview/testing session.\n\nThis stores the currently active bundle as the pending fallback, enables the\nnative shake menu, and makes the next applied bundle show a native notice\nexplaining that shaking the device can reload or leave the preview.\nRequires {@link PluginsConfig.CapacitorUpdater.allowPreview} to be `true`.\nWhen `appId` is provided, the preview session temporarily uses that app id\nfor update checks until the user leaves the preview. Native updater stats are\nskipped while the preview session is active.\n\nUse this before calling {@link set} for Expo Go-style preview flows.",
|
|
254
|
+
"docs": "Start a temporary preview/testing session.\n\nThis stores the currently active bundle as the pending fallback, enables the\nnative shake menu, and makes the next applied bundle show a native notice\nexplaining that shaking the device can reload or leave the preview.\nRequires {@link PluginsConfig.CapacitorUpdater.allowPreview} to be `true`.\nWhen `appId` is provided, the preview session temporarily uses that app id\nfor update checks until the user leaves the preview. Native updater stats are\nskipped while the preview session is active.\n\nUse this before calling {@link set} for Expo Go-style preview flows.\nUse {@link listPreviews}, {@link setPreview}, {@link resetPreview},\n{@link deletePreview}, {@link checkPreviewUpdate}, and\n{@link updatePreview} to manage saved local previews.",
|
|
255
255
|
"complexTypes": [
|
|
256
256
|
"StartPreviewSessionOptions"
|
|
257
257
|
],
|
|
258
258
|
"slug": "startpreviewsession"
|
|
259
259
|
},
|
|
260
|
+
{
|
|
261
|
+
"name": "listPreviews",
|
|
262
|
+
"signature": "() => Promise<PreviewListResult>",
|
|
263
|
+
"parameters": [],
|
|
264
|
+
"returns": "Promise<PreviewListResult>",
|
|
265
|
+
"tags": [
|
|
266
|
+
{
|
|
267
|
+
"name": "returns",
|
|
268
|
+
"text": "Locally available previews and current preview state."
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"name": "throws",
|
|
272
|
+
"text": "{Error} If preview sessions are not enabled by config."
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"name": "since",
|
|
276
|
+
"text": "8.49.0"
|
|
277
|
+
}
|
|
278
|
+
],
|
|
279
|
+
"docs": "Get every locally available preview bundle that was registered by\n{@link startPreviewSession} and later applied with {@link set}.\n\nThis only returns previews whose bundles are still available locally. It is\nsafe to show this in a preview switcher or native debug menu.",
|
|
280
|
+
"complexTypes": [
|
|
281
|
+
"PreviewListResult"
|
|
282
|
+
],
|
|
283
|
+
"slug": "listpreviews"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"name": "setPreview",
|
|
287
|
+
"signature": "(options: BundleId) => Promise<void>",
|
|
288
|
+
"parameters": [
|
|
289
|
+
{
|
|
290
|
+
"name": "options",
|
|
291
|
+
"docs": "A {@link BundleId} object containing the preview bundle ID.",
|
|
292
|
+
"type": "BundleId"
|
|
293
|
+
}
|
|
294
|
+
],
|
|
295
|
+
"returns": "Promise<void>",
|
|
296
|
+
"tags": [
|
|
297
|
+
{
|
|
298
|
+
"name": "param",
|
|
299
|
+
"text": "options A {@link BundleId} object containing the preview bundle ID."
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"name": "returns",
|
|
303
|
+
"text": "Resolves once the preview switch is staged."
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"name": "throws",
|
|
307
|
+
"text": "{Error} If preview sessions are disabled or the preview is not available locally."
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"name": "since",
|
|
311
|
+
"text": "8.49.0"
|
|
312
|
+
}
|
|
313
|
+
],
|
|
314
|
+
"docs": "Switch to a locally available preview bundle and reload the WebView.\n\nIf the app is not already in a preview session, the current live bundle is\nsaved as the fallback so {@link resetPreview} or the native shake menu can\nreturn to it later.",
|
|
315
|
+
"complexTypes": [
|
|
316
|
+
"BundleId"
|
|
317
|
+
],
|
|
318
|
+
"slug": "setpreview"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"name": "resetPreview",
|
|
322
|
+
"signature": "() => Promise<void>",
|
|
323
|
+
"parameters": [],
|
|
324
|
+
"returns": "Promise<void>",
|
|
325
|
+
"tags": [
|
|
326
|
+
{
|
|
327
|
+
"name": "returns",
|
|
328
|
+
"text": "Resolves once the live bundle reload is staged."
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"name": "throws",
|
|
332
|
+
"text": "{Error} If there is no preview fallback bundle available."
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"name": "since",
|
|
336
|
+
"text": "8.49.0"
|
|
337
|
+
}
|
|
338
|
+
],
|
|
339
|
+
"docs": "Leave the active preview session and reload the saved live bundle.\n\nThis does not delete any saved previews. Use {@link deletePreview} to remove\na preview from local storage.",
|
|
340
|
+
"complexTypes": [],
|
|
341
|
+
"slug": "resetpreview"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"name": "deletePreview",
|
|
345
|
+
"signature": "(options: BundleId) => Promise<DeletePreviewResult>",
|
|
346
|
+
"parameters": [
|
|
347
|
+
{
|
|
348
|
+
"name": "options",
|
|
349
|
+
"docs": "A {@link BundleId} object containing the preview bundle ID.",
|
|
350
|
+
"type": "BundleId"
|
|
351
|
+
}
|
|
352
|
+
],
|
|
353
|
+
"returns": "Promise<DeletePreviewResult>",
|
|
354
|
+
"tags": [
|
|
355
|
+
{
|
|
356
|
+
"name": "param",
|
|
357
|
+
"text": "options A {@link BundleId} object containing the preview bundle ID."
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"name": "returns",
|
|
361
|
+
"text": "Whether the underlying bundle was deleted."
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"name": "throws",
|
|
365
|
+
"text": "{Error} If preview sessions are disabled."
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"name": "since",
|
|
369
|
+
"text": "8.49.0"
|
|
370
|
+
}
|
|
371
|
+
],
|
|
372
|
+
"docs": "Delete a locally saved preview and its bundle when possible.\n\nActive previews cannot be deleted until you switch away from them or call\n{@link resetPreview}. If only the preview metadata can be removed, the\nmethod still resolves with `deleted: false`.",
|
|
373
|
+
"complexTypes": [
|
|
374
|
+
"DeletePreviewResult",
|
|
375
|
+
"BundleId"
|
|
376
|
+
],
|
|
377
|
+
"slug": "deletepreview"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"name": "checkPreviewUpdate",
|
|
381
|
+
"signature": "(options: BundleId) => Promise<PreviewUpdateResult>",
|
|
382
|
+
"parameters": [
|
|
383
|
+
{
|
|
384
|
+
"name": "options",
|
|
385
|
+
"docs": "A {@link BundleId} object containing the preview bundle ID.",
|
|
386
|
+
"type": "BundleId"
|
|
387
|
+
}
|
|
388
|
+
],
|
|
389
|
+
"returns": "Promise<PreviewUpdateResult>",
|
|
390
|
+
"tags": [
|
|
391
|
+
{
|
|
392
|
+
"name": "param",
|
|
393
|
+
"text": "options A {@link BundleId} object containing the preview bundle ID."
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"name": "returns",
|
|
397
|
+
"text": "Update status for the preview."
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"name": "throws",
|
|
401
|
+
"text": "{Error} If preview sessions are disabled or the preview has no payload URL."
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"name": "since",
|
|
405
|
+
"text": "8.49.0"
|
|
406
|
+
}
|
|
407
|
+
],
|
|
408
|
+
"docs": "Check whether a saved preview's payload URL points to a newer preview bundle.\n\nOnly previews started with a `payloadUrl` can be checked natively. Direct URL\npreviews can still be switched or deleted locally, but the updater does not\nknow where to check for newer versions.",
|
|
409
|
+
"complexTypes": [
|
|
410
|
+
"PreviewUpdateResult",
|
|
411
|
+
"BundleId"
|
|
412
|
+
],
|
|
413
|
+
"slug": "checkpreviewupdate"
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"name": "updatePreview",
|
|
417
|
+
"signature": "(options: BundleId) => Promise<PreviewUpdateResult>",
|
|
418
|
+
"parameters": [
|
|
419
|
+
{
|
|
420
|
+
"name": "options",
|
|
421
|
+
"docs": "A {@link BundleId} object containing the preview bundle ID.",
|
|
422
|
+
"type": "BundleId"
|
|
423
|
+
}
|
|
424
|
+
],
|
|
425
|
+
"returns": "Promise<PreviewUpdateResult>",
|
|
426
|
+
"tags": [
|
|
427
|
+
{
|
|
428
|
+
"name": "param",
|
|
429
|
+
"text": "options A {@link BundleId} object containing the preview bundle ID."
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"name": "returns",
|
|
433
|
+
"text": "The update result and saved preview metadata."
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"name": "throws",
|
|
437
|
+
"text": "{Error} If preview sessions are disabled or the preview cannot be updated."
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"name": "since",
|
|
441
|
+
"text": "8.49.0"
|
|
442
|
+
}
|
|
443
|
+
],
|
|
444
|
+
"docs": "Download the newest bundle for a saved preview payload URL.\n\nIf the preview being updated is active, the new bundle is applied and the\nWebView reloads. Otherwise, the saved preview entry is moved to the newly\ndownloaded bundle and can be selected later with {@link setPreview}.",
|
|
445
|
+
"complexTypes": [
|
|
446
|
+
"PreviewUpdateResult",
|
|
447
|
+
"BundleId"
|
|
448
|
+
],
|
|
449
|
+
"slug": "updatepreview"
|
|
450
|
+
},
|
|
260
451
|
{
|
|
261
452
|
"name": "delete",
|
|
262
453
|
"signature": "(options: BundleId) => Promise<void>",
|
|
@@ -1431,7 +1622,7 @@
|
|
|
1431
1622
|
"text": "7.5.0"
|
|
1432
1623
|
}
|
|
1433
1624
|
],
|
|
1434
|
-
"docs": "Enable or disable the native preview menu gesture.\n\nDuring preview sessions, users can use the configured native gesture to:\n- Reload the current preview\n- Leave the test app and return to the fallback bundle\n- Switch update channel, when {@link PluginsConfig.CapacitorUpdater.allowShakeChannelSelector} is also enabled\n\nOutside preview sessions, this preview menu is ignored. The channel selector can still be\nshown outside preview sessions when {@link PluginsConfig.CapacitorUpdater.allowShakeChannelSelector} is enabled.\n\n**Important:** Disable this in production builds or only enable for internal testers.\n\nThis can also be configured via {@link PluginsConfig.CapacitorUpdater.shakeMenu}.\nThe native gesture
|
|
1625
|
+
"docs": "Enable or disable the native preview menu gesture.\n\nDuring preview sessions, users can use the configured native gesture to:\n- Reload the current preview\n- Leave the test app and return to the fallback bundle\n- Switch update channel, when {@link PluginsConfig.CapacitorUpdater.allowShakeChannelSelector} is also enabled\n\nOutside preview sessions, this preview menu is ignored. The channel selector can still be\nshown outside preview sessions when {@link PluginsConfig.CapacitorUpdater.allowShakeChannelSelector} is enabled.\n\n**Important:** Disable this in production builds or only enable for internal testers.\n\nThis can also be configured via {@link PluginsConfig.CapacitorUpdater.shakeMenu}.\nThe native gesture is configured via {@link PluginsConfig.CapacitorUpdater.shakeMenuGesture}.",
|
|
1435
1626
|
"complexTypes": [
|
|
1436
1627
|
"SetShakeMenuOptions"
|
|
1437
1628
|
],
|
|
@@ -1495,7 +1686,7 @@
|
|
|
1495
1686
|
"text": "8.43.0"
|
|
1496
1687
|
}
|
|
1497
1688
|
],
|
|
1498
|
-
"docs": "Enable or disable the channel selector menu gesture at runtime.\n\nWhen enabled, the configured native gesture can show a channel selector, including outside preview sessions.\nIf {@link setShakeMenu} is also enabled while a preview session is active, the shake menu includes\nboth preview actions and channel switching.\n\nThis can also be configured via {@link PluginsConfig.CapacitorUpdater.allowShakeChannelSelector}.\nThe native gesture
|
|
1689
|
+
"docs": "Enable or disable the channel selector menu gesture at runtime.\n\nWhen enabled, the configured native gesture can show a channel selector, including outside preview sessions.\nIf {@link setShakeMenu} is also enabled while a preview session is active, the shake menu includes\nboth preview actions and channel switching.\n\nThis can also be configured via {@link PluginsConfig.CapacitorUpdater.allowShakeChannelSelector}.\nThe native gesture is configured via {@link PluginsConfig.CapacitorUpdater.shakeMenuGesture}.",
|
|
1499
1690
|
"complexTypes": [
|
|
1500
1691
|
"SetShakeChannelSelectorOptions"
|
|
1501
1692
|
],
|
|
@@ -2007,6 +2198,340 @@
|
|
|
2007
2198
|
"docs": "HTTP(S) URL returning a preview download payload.\nWhen provided, the native shake reload action fetches this payload again\nbefore reloading so channel previews can move to the latest bundle.\nRequires {@link PluginsConfig.CapacitorUpdater.allowPreview} to be `true`.",
|
|
2008
2199
|
"complexTypes": [],
|
|
2009
2200
|
"type": "string | undefined"
|
|
2201
|
+
},
|
|
2202
|
+
{
|
|
2203
|
+
"name": "name",
|
|
2204
|
+
"tags": [
|
|
2205
|
+
{
|
|
2206
|
+
"text": "8.49.0",
|
|
2207
|
+
"name": "since"
|
|
2208
|
+
},
|
|
2209
|
+
{
|
|
2210
|
+
"text": "undefined",
|
|
2211
|
+
"name": "default"
|
|
2212
|
+
}
|
|
2213
|
+
],
|
|
2214
|
+
"docs": "Human-readable preview name stored with the next preview bundle applied by\n{@link set}. Native preview menus and {@link listPreviews} can display it.",
|
|
2215
|
+
"complexTypes": [],
|
|
2216
|
+
"type": "string | undefined"
|
|
2217
|
+
},
|
|
2218
|
+
{
|
|
2219
|
+
"name": "source",
|
|
2220
|
+
"tags": [
|
|
2221
|
+
{
|
|
2222
|
+
"text": "8.49.0",
|
|
2223
|
+
"name": "since"
|
|
2224
|
+
},
|
|
2225
|
+
{
|
|
2226
|
+
"text": "undefined",
|
|
2227
|
+
"name": "default"
|
|
2228
|
+
}
|
|
2229
|
+
],
|
|
2230
|
+
"docs": "Optional source label for the preview, such as `channel`, `bundle`, `url`,\nor `payload`. This is stored as metadata only.",
|
|
2231
|
+
"complexTypes": [],
|
|
2232
|
+
"type": "string | undefined"
|
|
2233
|
+
}
|
|
2234
|
+
]
|
|
2235
|
+
},
|
|
2236
|
+
{
|
|
2237
|
+
"name": "PreviewListResult",
|
|
2238
|
+
"slug": "previewlistresult",
|
|
2239
|
+
"docs": "",
|
|
2240
|
+
"tags": [],
|
|
2241
|
+
"methods": [],
|
|
2242
|
+
"properties": [
|
|
2243
|
+
{
|
|
2244
|
+
"name": "previews",
|
|
2245
|
+
"tags": [
|
|
2246
|
+
{
|
|
2247
|
+
"text": "8.49.0",
|
|
2248
|
+
"name": "since"
|
|
2249
|
+
}
|
|
2250
|
+
],
|
|
2251
|
+
"docs": "Locally available preview bundles.",
|
|
2252
|
+
"complexTypes": [
|
|
2253
|
+
"PreviewInfo"
|
|
2254
|
+
],
|
|
2255
|
+
"type": "PreviewInfo[]"
|
|
2256
|
+
},
|
|
2257
|
+
{
|
|
2258
|
+
"name": "current",
|
|
2259
|
+
"tags": [
|
|
2260
|
+
{
|
|
2261
|
+
"text": "8.49.0",
|
|
2262
|
+
"name": "since"
|
|
2263
|
+
}
|
|
2264
|
+
],
|
|
2265
|
+
"docs": "Current preview when a preview session is active.",
|
|
2266
|
+
"complexTypes": [
|
|
2267
|
+
"PreviewInfo"
|
|
2268
|
+
],
|
|
2269
|
+
"type": "PreviewInfo"
|
|
2270
|
+
},
|
|
2271
|
+
{
|
|
2272
|
+
"name": "currentBundle",
|
|
2273
|
+
"tags": [
|
|
2274
|
+
{
|
|
2275
|
+
"text": "8.49.0",
|
|
2276
|
+
"name": "since"
|
|
2277
|
+
}
|
|
2278
|
+
],
|
|
2279
|
+
"docs": "Bundle currently loaded by the WebView.",
|
|
2280
|
+
"complexTypes": [
|
|
2281
|
+
"BundleInfo"
|
|
2282
|
+
],
|
|
2283
|
+
"type": "BundleInfo"
|
|
2284
|
+
},
|
|
2285
|
+
{
|
|
2286
|
+
"name": "liveBundle",
|
|
2287
|
+
"tags": [
|
|
2288
|
+
{
|
|
2289
|
+
"text": "8.49.0",
|
|
2290
|
+
"name": "since"
|
|
2291
|
+
}
|
|
2292
|
+
],
|
|
2293
|
+
"docs": "Bundle that will be restored when leaving preview mode.",
|
|
2294
|
+
"complexTypes": [
|
|
2295
|
+
"BundleInfo"
|
|
2296
|
+
],
|
|
2297
|
+
"type": "BundleInfo"
|
|
2298
|
+
}
|
|
2299
|
+
]
|
|
2300
|
+
},
|
|
2301
|
+
{
|
|
2302
|
+
"name": "PreviewInfo",
|
|
2303
|
+
"slug": "previewinfo",
|
|
2304
|
+
"docs": "",
|
|
2305
|
+
"tags": [],
|
|
2306
|
+
"methods": [],
|
|
2307
|
+
"properties": [
|
|
2308
|
+
{
|
|
2309
|
+
"name": "id",
|
|
2310
|
+
"tags": [
|
|
2311
|
+
{
|
|
2312
|
+
"text": "8.49.0",
|
|
2313
|
+
"name": "since"
|
|
2314
|
+
}
|
|
2315
|
+
],
|
|
2316
|
+
"docs": "Preview bundle id.",
|
|
2317
|
+
"complexTypes": [],
|
|
2318
|
+
"type": "string"
|
|
2319
|
+
},
|
|
2320
|
+
{
|
|
2321
|
+
"name": "bundle",
|
|
2322
|
+
"tags": [
|
|
2323
|
+
{
|
|
2324
|
+
"text": "8.49.0",
|
|
2325
|
+
"name": "since"
|
|
2326
|
+
}
|
|
2327
|
+
],
|
|
2328
|
+
"docs": "Locally downloaded bundle backing this preview.",
|
|
2329
|
+
"complexTypes": [
|
|
2330
|
+
"BundleInfo"
|
|
2331
|
+
],
|
|
2332
|
+
"type": "BundleInfo"
|
|
2333
|
+
},
|
|
2334
|
+
{
|
|
2335
|
+
"name": "name",
|
|
2336
|
+
"tags": [
|
|
2337
|
+
{
|
|
2338
|
+
"text": "8.49.0",
|
|
2339
|
+
"name": "since"
|
|
2340
|
+
}
|
|
2341
|
+
],
|
|
2342
|
+
"docs": "Human-readable name supplied when the preview was started.",
|
|
2343
|
+
"complexTypes": [],
|
|
2344
|
+
"type": "string | undefined"
|
|
2345
|
+
},
|
|
2346
|
+
{
|
|
2347
|
+
"name": "source",
|
|
2348
|
+
"tags": [
|
|
2349
|
+
{
|
|
2350
|
+
"text": "8.49.0",
|
|
2351
|
+
"name": "since"
|
|
2352
|
+
}
|
|
2353
|
+
],
|
|
2354
|
+
"docs": "Metadata source label supplied when the preview was started.",
|
|
2355
|
+
"complexTypes": [],
|
|
2356
|
+
"type": "string | undefined"
|
|
2357
|
+
},
|
|
2358
|
+
{
|
|
2359
|
+
"name": "appId",
|
|
2360
|
+
"tags": [
|
|
2361
|
+
{
|
|
2362
|
+
"text": "8.49.0",
|
|
2363
|
+
"name": "since"
|
|
2364
|
+
}
|
|
2365
|
+
],
|
|
2366
|
+
"docs": "Preview app id, when the session uses an app id override.",
|
|
2367
|
+
"complexTypes": [],
|
|
2368
|
+
"type": "string | undefined"
|
|
2369
|
+
},
|
|
2370
|
+
{
|
|
2371
|
+
"name": "payloadUrl",
|
|
2372
|
+
"tags": [
|
|
2373
|
+
{
|
|
2374
|
+
"text": "8.49.0",
|
|
2375
|
+
"name": "since"
|
|
2376
|
+
}
|
|
2377
|
+
],
|
|
2378
|
+
"docs": "Payload URL used to refresh this preview.",
|
|
2379
|
+
"complexTypes": [],
|
|
2380
|
+
"type": "string | undefined"
|
|
2381
|
+
},
|
|
2382
|
+
{
|
|
2383
|
+
"name": "createdAt",
|
|
2384
|
+
"tags": [
|
|
2385
|
+
{
|
|
2386
|
+
"text": "8.49.0",
|
|
2387
|
+
"name": "since"
|
|
2388
|
+
}
|
|
2389
|
+
],
|
|
2390
|
+
"docs": "ISO timestamp for when this preview was first saved.",
|
|
2391
|
+
"complexTypes": [],
|
|
2392
|
+
"type": "string"
|
|
2393
|
+
},
|
|
2394
|
+
{
|
|
2395
|
+
"name": "updatedAt",
|
|
2396
|
+
"tags": [
|
|
2397
|
+
{
|
|
2398
|
+
"text": "8.49.0",
|
|
2399
|
+
"name": "since"
|
|
2400
|
+
}
|
|
2401
|
+
],
|
|
2402
|
+
"docs": "ISO timestamp for the last metadata or bundle update.",
|
|
2403
|
+
"complexTypes": [],
|
|
2404
|
+
"type": "string"
|
|
2405
|
+
},
|
|
2406
|
+
{
|
|
2407
|
+
"name": "lastUsedAt",
|
|
2408
|
+
"tags": [
|
|
2409
|
+
{
|
|
2410
|
+
"text": "8.49.0",
|
|
2411
|
+
"name": "since"
|
|
2412
|
+
}
|
|
2413
|
+
],
|
|
2414
|
+
"docs": "ISO timestamp for the last time this preview was activated.",
|
|
2415
|
+
"complexTypes": [],
|
|
2416
|
+
"type": "string"
|
|
2417
|
+
},
|
|
2418
|
+
{
|
|
2419
|
+
"name": "isActive",
|
|
2420
|
+
"tags": [
|
|
2421
|
+
{
|
|
2422
|
+
"text": "8.49.0",
|
|
2423
|
+
"name": "since"
|
|
2424
|
+
}
|
|
2425
|
+
],
|
|
2426
|
+
"docs": "Whether this preview is the currently active bundle in a preview session.",
|
|
2427
|
+
"complexTypes": [],
|
|
2428
|
+
"type": "boolean"
|
|
2429
|
+
}
|
|
2430
|
+
]
|
|
2431
|
+
},
|
|
2432
|
+
{
|
|
2433
|
+
"name": "DeletePreviewResult",
|
|
2434
|
+
"slug": "deletepreviewresult",
|
|
2435
|
+
"docs": "",
|
|
2436
|
+
"tags": [],
|
|
2437
|
+
"methods": [],
|
|
2438
|
+
"properties": [
|
|
2439
|
+
{
|
|
2440
|
+
"name": "removed",
|
|
2441
|
+
"tags": [
|
|
2442
|
+
{
|
|
2443
|
+
"text": "8.49.0",
|
|
2444
|
+
"name": "since"
|
|
2445
|
+
}
|
|
2446
|
+
],
|
|
2447
|
+
"docs": "Whether preview metadata was removed.",
|
|
2448
|
+
"complexTypes": [],
|
|
2449
|
+
"type": "boolean"
|
|
2450
|
+
},
|
|
2451
|
+
{
|
|
2452
|
+
"name": "deleted",
|
|
2453
|
+
"tags": [
|
|
2454
|
+
{
|
|
2455
|
+
"text": "8.49.0",
|
|
2456
|
+
"name": "since"
|
|
2457
|
+
}
|
|
2458
|
+
],
|
|
2459
|
+
"docs": "Whether the underlying local bundle was deleted.",
|
|
2460
|
+
"complexTypes": [],
|
|
2461
|
+
"type": "boolean"
|
|
2462
|
+
}
|
|
2463
|
+
]
|
|
2464
|
+
},
|
|
2465
|
+
{
|
|
2466
|
+
"name": "PreviewUpdateResult",
|
|
2467
|
+
"slug": "previewupdateresult",
|
|
2468
|
+
"docs": "",
|
|
2469
|
+
"tags": [],
|
|
2470
|
+
"methods": [],
|
|
2471
|
+
"properties": [
|
|
2472
|
+
{
|
|
2473
|
+
"name": "preview",
|
|
2474
|
+
"tags": [
|
|
2475
|
+
{
|
|
2476
|
+
"text": "8.49.0",
|
|
2477
|
+
"name": "since"
|
|
2478
|
+
}
|
|
2479
|
+
],
|
|
2480
|
+
"docs": "Saved preview metadata after the check or update.",
|
|
2481
|
+
"complexTypes": [
|
|
2482
|
+
"PreviewInfo"
|
|
2483
|
+
],
|
|
2484
|
+
"type": "PreviewInfo"
|
|
2485
|
+
},
|
|
2486
|
+
{
|
|
2487
|
+
"name": "latestVersion",
|
|
2488
|
+
"tags": [
|
|
2489
|
+
{
|
|
2490
|
+
"text": "8.49.0",
|
|
2491
|
+
"name": "since"
|
|
2492
|
+
}
|
|
2493
|
+
],
|
|
2494
|
+
"docs": "Latest version returned by the preview payload endpoint.",
|
|
2495
|
+
"complexTypes": [],
|
|
2496
|
+
"type": "string | undefined"
|
|
2497
|
+
},
|
|
2498
|
+
{
|
|
2499
|
+
"name": "upToDate",
|
|
2500
|
+
"tags": [
|
|
2501
|
+
{
|
|
2502
|
+
"text": "8.49.0",
|
|
2503
|
+
"name": "since"
|
|
2504
|
+
}
|
|
2505
|
+
],
|
|
2506
|
+
"docs": "Whether the saved preview already matches the latest payload version.",
|
|
2507
|
+
"complexTypes": [],
|
|
2508
|
+
"type": "boolean"
|
|
2509
|
+
},
|
|
2510
|
+
{
|
|
2511
|
+
"name": "updated",
|
|
2512
|
+
"tags": [
|
|
2513
|
+
{
|
|
2514
|
+
"text": "8.49.0",
|
|
2515
|
+
"name": "since"
|
|
2516
|
+
}
|
|
2517
|
+
],
|
|
2518
|
+
"docs": "Whether a newer bundle was downloaded and saved.",
|
|
2519
|
+
"complexTypes": [],
|
|
2520
|
+
"type": "boolean"
|
|
2521
|
+
},
|
|
2522
|
+
{
|
|
2523
|
+
"name": "bundle",
|
|
2524
|
+
"tags": [
|
|
2525
|
+
{
|
|
2526
|
+
"text": "8.49.0",
|
|
2527
|
+
"name": "since"
|
|
2528
|
+
}
|
|
2529
|
+
],
|
|
2530
|
+
"docs": "New bundle when {@link updatePreview} downloaded one.",
|
|
2531
|
+
"complexTypes": [
|
|
2532
|
+
"BundleInfo"
|
|
2533
|
+
],
|
|
2534
|
+
"type": "BundleInfo"
|
|
2010
2535
|
}
|
|
2011
2536
|
]
|
|
2012
2537
|
},
|
|
@@ -3442,20 +3967,6 @@
|
|
|
3442
3967
|
"docs": "",
|
|
3443
3968
|
"complexTypes": [],
|
|
3444
3969
|
"type": "boolean"
|
|
3445
|
-
},
|
|
3446
|
-
{
|
|
3447
|
-
"name": "gesture",
|
|
3448
|
-
"tags": [
|
|
3449
|
-
{
|
|
3450
|
-
"text": "'shake'",
|
|
3451
|
-
"name": "default"
|
|
3452
|
-
}
|
|
3453
|
-
],
|
|
3454
|
-
"docs": "Native gesture used to open the preview/channel menu.",
|
|
3455
|
-
"complexTypes": [
|
|
3456
|
-
"ShakeMenuGesture"
|
|
3457
|
-
],
|
|
3458
|
-
"type": "ShakeMenuGesture"
|
|
3459
3970
|
}
|
|
3460
3971
|
]
|
|
3461
3972
|
},
|