@capgo/capacitor-updater 8.47.9 → 8.47.11

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/dist/docs.json CHANGED
@@ -1431,7 +1431,7 @@
1431
1431
  "text": "7.5.0"
1432
1432
  }
1433
1433
  ],
1434
- "docs": "Enable or disable the shake gesture menu.\n\nDuring preview sessions, users can shake their device 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\nCan also be configured via {@link PluginsConfig.CapacitorUpdater.shakeMenu}.",
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 can be configured via {@link PluginsConfig.CapacitorUpdater.shakeMenuGesture}\nor `options.gesture`.",
1435
1435
  "complexTypes": [
1436
1436
  "SetShakeMenuOptions"
1437
1437
  ],
@@ -1445,7 +1445,7 @@
1445
1445
  "tags": [
1446
1446
  {
1447
1447
  "name": "returns",
1448
- "text": "Object with `enabled: true` or `enabled: false`."
1448
+ "text": "Object with the current enabled state and gesture."
1449
1449
  },
1450
1450
  {
1451
1451
  "name": "throws",
@@ -1456,7 +1456,7 @@
1456
1456
  "text": "7.5.0"
1457
1457
  }
1458
1458
  ],
1459
- "docs": "Check if the shake gesture debug menu is currently enabled.\n\nReturns the current state of the shake menu feature that can be toggled via\n{@link setShakeMenu} or configured via {@link PluginsConfig.CapacitorUpdater.shakeMenu}.\n\nUse this to:\n- Check if debug features are enabled\n- Show/hide debug settings UI\n- Verify configuration during testing",
1459
+ "docs": "Check if the native preview menu gesture is currently enabled.\n\nReturns the current state of the shake menu feature that can be toggled via\n{@link setShakeMenu} or configured via {@link PluginsConfig.CapacitorUpdater.shakeMenu}.\n\nUse this to:\n- Check if debug features are enabled\n- Show/hide debug settings UI\n- Verify configuration during testing",
1460
1460
  "complexTypes": [
1461
1461
  "ShakeMenuEnabled"
1462
1462
  ],
@@ -1495,7 +1495,7 @@
1495
1495
  "text": "8.43.0"
1496
1496
  }
1497
1497
  ],
1498
- "docs": "Enable or disable the shake channel selector at runtime.\n\nWhen enabled, shaking the device 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\nCan also be configured via {@link PluginsConfig.CapacitorUpdater.allowShakeChannelSelector}.",
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 can be configured via {@link PluginsConfig.CapacitorUpdater.shakeMenuGesture}\nor {@link setShakeMenu}.",
1499
1499
  "complexTypes": [
1500
1500
  "SetShakeChannelSelectorOptions"
1501
1501
  ],
@@ -3442,6 +3442,20 @@
3442
3442
  "docs": "",
3443
3443
  "complexTypes": [],
3444
3444
  "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"
3445
3459
  }
3446
3460
  ]
3447
3461
  },
@@ -3458,6 +3472,20 @@
3458
3472
  "docs": "",
3459
3473
  "complexTypes": [],
3460
3474
  "type": "boolean"
3475
+ },
3476
+ {
3477
+ "name": "gesture",
3478
+ "tags": [
3479
+ {
3480
+ "text": "8.48.0",
3481
+ "name": "since"
3482
+ }
3483
+ ],
3484
+ "docs": "The currently configured native gesture used to open the preview/channel menu.\nUndefined means consumers should treat the gesture as the default `shake` behavior.",
3485
+ "complexTypes": [
3486
+ "ShakeMenuGesture"
3487
+ ],
3488
+ "type": "ShakeMenuGesture"
3461
3489
  }
3462
3490
  ]
3463
3491
  },
@@ -3986,6 +4014,21 @@
3986
4014
  ]
3987
4015
  }
3988
4016
  ]
4017
+ },
4018
+ {
4019
+ "name": "ShakeMenuGesture",
4020
+ "slug": "shakemenugesture",
4021
+ "docs": "Native gesture options that open the shake menu.\n\nSupported values are `shake` and `threeFingerPinch`.",
4022
+ "types": [
4023
+ {
4024
+ "text": "'shake'",
4025
+ "complexTypes": []
4026
+ },
4027
+ {
4028
+ "text": "'threeFingerPinch'",
4029
+ "complexTypes": []
4030
+ }
4031
+ ]
3989
4032
  }
3990
4033
  ],
3991
4034
  "pluginConfigs": [
@@ -4573,10 +4616,28 @@
4573
4616
  "name": "since"
4574
4617
  }
4575
4618
  ],
4576
- "docs": "Enable the shake gesture while a preview session is active.\nOutside preview sessions this preview menu is ignored, unless\n{@link PluginsConfig.CapacitorUpdater.allowShakeChannelSelector} is enabled.",
4619
+ "docs": "Enable the native preview menu gesture while a preview session is active.\nOutside preview sessions this preview menu is ignored, unless\n{@link PluginsConfig.CapacitorUpdater.allowShakeChannelSelector} is enabled.",
4577
4620
  "complexTypes": [],
4578
4621
  "type": "boolean | undefined"
4579
4622
  },
4623
+ {
4624
+ "name": "shakeMenuGesture",
4625
+ "tags": [
4626
+ {
4627
+ "text": "'shake'",
4628
+ "name": "default"
4629
+ },
4630
+ {
4631
+ "text": "8.48.0",
4632
+ "name": "since"
4633
+ }
4634
+ ],
4635
+ "docs": "Choose which native gesture opens the preview/channel menu.\nThis applies to both {@link PluginsConfig.CapacitorUpdater.shakeMenu}\nand {@link PluginsConfig.CapacitorUpdater.allowShakeChannelSelector}.\n\nOnly available for Android and iOS.",
4636
+ "complexTypes": [
4637
+ "ShakeMenuGesture"
4638
+ ],
4639
+ "type": "ShakeMenuGesture"
4640
+ },
4580
4641
  {
4581
4642
  "name": "allowShakeChannelSelector",
4582
4643
  "tags": [
@@ -4589,7 +4650,7 @@
4589
4650
  "name": "since"
4590
4651
  }
4591
4652
  ],
4592
- "docs": "Enable the shake gesture to show a channel selector menu for switching between update channels.\nIf {@link PluginsConfig.CapacitorUpdater.shakeMenu} is also enabled while a preview session is active,\nthe shake menu includes both preview actions and channel switching.\n\nOnly available for Android and iOS.",
4653
+ "docs": "Enable the native menu gesture to show a channel selector menu for switching between update channels.\nIf {@link PluginsConfig.CapacitorUpdater.shakeMenu} is also enabled while a preview session is active,\nthe shake menu includes both preview actions and channel switching.\nThe native gesture can be changed with {@link PluginsConfig.CapacitorUpdater.shakeMenuGesture}.\n\nOnly available for Android and iOS.",
4593
4654
  "complexTypes": [],
4594
4655
  "type": "boolean | undefined"
4595
4656
  }
@@ -352,7 +352,7 @@ declare module '@capacitor/cli' {
352
352
  */
353
353
  osLogging?: boolean;
354
354
  /**
355
- * Enable the shake gesture while a preview session is active.
355
+ * Enable the native preview menu gesture while a preview session is active.
356
356
  * Outside preview sessions this preview menu is ignored, unless
357
357
  * {@link PluginsConfig.CapacitorUpdater.allowShakeChannelSelector} is enabled.
358
358
  *
@@ -361,9 +361,21 @@ declare module '@capacitor/cli' {
361
361
  */
362
362
  shakeMenu?: boolean;
363
363
  /**
364
- * Enable the shake gesture to show a channel selector menu for switching between update channels.
364
+ * Choose which native gesture opens the preview/channel menu.
365
+ * This applies to both {@link PluginsConfig.CapacitorUpdater.shakeMenu}
366
+ * and {@link PluginsConfig.CapacitorUpdater.allowShakeChannelSelector}.
367
+ *
368
+ * Only available for Android and iOS.
369
+ *
370
+ * @default 'shake'
371
+ * @since 8.48.0
372
+ */
373
+ shakeMenuGesture?: ShakeMenuGesture;
374
+ /**
375
+ * Enable the native menu gesture to show a channel selector menu for switching between update channels.
365
376
  * If {@link PluginsConfig.CapacitorUpdater.shakeMenu} is also enabled while a preview session is active,
366
377
  * the shake menu includes both preview actions and channel switching.
378
+ * The native gesture can be changed with {@link PluginsConfig.CapacitorUpdater.shakeMenuGesture}.
367
379
  *
368
380
  * Only available for Android and iOS.
369
381
  *
@@ -1264,9 +1276,9 @@ export interface CapacitorUpdaterPlugin {
1264
1276
  */
1265
1277
  getFailedUpdate(): Promise<UpdateFailedEvent | null>;
1266
1278
  /**
1267
- * Enable or disable the shake gesture menu.
1279
+ * Enable or disable the native preview menu gesture.
1268
1280
  *
1269
- * During preview sessions, users can shake their device to:
1281
+ * During preview sessions, users can use the configured native gesture to:
1270
1282
  * - Reload the current preview
1271
1283
  * - Leave the test app and return to the fallback bundle
1272
1284
  * - Switch update channel, when {@link PluginsConfig.CapacitorUpdater.allowShakeChannelSelector} is also enabled
@@ -1276,7 +1288,9 @@ export interface CapacitorUpdaterPlugin {
1276
1288
  *
1277
1289
  * **Important:** Disable this in production builds or only enable for internal testers.
1278
1290
  *
1279
- * Can also be configured via {@link PluginsConfig.CapacitorUpdater.shakeMenu}.
1291
+ * This can also be configured via {@link PluginsConfig.CapacitorUpdater.shakeMenu}.
1292
+ * The native gesture can be configured via {@link PluginsConfig.CapacitorUpdater.shakeMenuGesture}
1293
+ * or `options.gesture`.
1280
1294
  *
1281
1295
  * @param options {@link SetShakeMenuOptions} with `enabled: true` to enable or `enabled: false` to disable.
1282
1296
  * @returns {Promise<void>} Resolves when the setting is applied.
@@ -1285,7 +1299,7 @@ export interface CapacitorUpdaterPlugin {
1285
1299
  */
1286
1300
  setShakeMenu(options: SetShakeMenuOptions): Promise<void>;
1287
1301
  /**
1288
- * Check if the shake gesture debug menu is currently enabled.
1302
+ * Check if the native preview menu gesture is currently enabled.
1289
1303
  *
1290
1304
  * Returns the current state of the shake menu feature that can be toggled via
1291
1305
  * {@link setShakeMenu} or configured via {@link PluginsConfig.CapacitorUpdater.shakeMenu}.
@@ -1295,19 +1309,21 @@ export interface CapacitorUpdaterPlugin {
1295
1309
  * - Show/hide debug settings UI
1296
1310
  * - Verify configuration during testing
1297
1311
  *
1298
- * @returns {Promise<ShakeMenuEnabled>} Object with `enabled: true` or `enabled: false`.
1312
+ * @returns {Promise<ShakeMenuEnabled>} Object with the current enabled state and gesture.
1299
1313
  * @throws {Error} If the operation fails.
1300
1314
  * @since 7.5.0
1301
1315
  */
1302
1316
  isShakeMenuEnabled(): Promise<ShakeMenuEnabled>;
1303
1317
  /**
1304
- * Enable or disable the shake channel selector at runtime.
1318
+ * Enable or disable the channel selector menu gesture at runtime.
1305
1319
  *
1306
- * When enabled, shaking the device can show a channel selector, including outside preview sessions.
1320
+ * When enabled, the configured native gesture can show a channel selector, including outside preview sessions.
1307
1321
  * If {@link setShakeMenu} is also enabled while a preview session is active, the shake menu includes
1308
1322
  * both preview actions and channel switching.
1309
1323
  *
1310
- * Can also be configured via {@link PluginsConfig.CapacitorUpdater.allowShakeChannelSelector}.
1324
+ * This can also be configured via {@link PluginsConfig.CapacitorUpdater.allowShakeChannelSelector}.
1325
+ * The native gesture can be configured via {@link PluginsConfig.CapacitorUpdater.shakeMenuGesture}
1326
+ * or {@link setShakeMenu}.
1311
1327
  *
1312
1328
  * @param options {@link SetShakeChannelSelectorOptions} with `enabled: true` to enable or `enabled: false` to disable.
1313
1329
  * @returns {Promise<void>} Resolves when the setting is applied.
@@ -2100,11 +2116,32 @@ export interface TriggerUpdateCheckResult {
2100
2116
  */
2101
2117
  queued: boolean;
2102
2118
  }
2119
+ /**
2120
+ * Native gesture options that open the shake menu.
2121
+ *
2122
+ * Supported values are `shake` and `threeFingerPinch`.
2123
+ *
2124
+ * @public
2125
+ */
2126
+ export type ShakeMenuGesture = 'shake' | 'threeFingerPinch';
2103
2127
  export interface SetShakeMenuOptions {
2104
2128
  enabled: boolean;
2129
+ /**
2130
+ * Native gesture used to open the preview/channel menu.
2131
+ *
2132
+ * @default 'shake'
2133
+ */
2134
+ gesture?: ShakeMenuGesture;
2105
2135
  }
2106
2136
  export interface ShakeMenuEnabled {
2107
2137
  enabled: boolean;
2138
+ /**
2139
+ * The currently configured native gesture used to open the preview/channel menu.
2140
+ * Undefined means consumers should treat the gesture as the default `shake` behavior.
2141
+ *
2142
+ * @since 8.48.0
2143
+ */
2144
+ gesture?: ShakeMenuGesture;
2108
2145
  }
2109
2146
  export interface SetShakeChannelSelectorOptions {
2110
2147
  enabled: boolean;