@raycast/api 1.57.1 → 1.57.2

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/api.d.ts CHANGED
@@ -558,6 +558,16 @@ export declare namespace Alert {
558
558
  * The Action to dismiss the alert. There usually shouldn't be any side effects when the user takes this action.
559
559
  */
560
560
  dismissAction?: ActionOptions;
561
+ /**
562
+ * If set to true, the Alert will also display a `Do not show this message again` checkbox. When checked, the answer
563
+ * is persisted and directly returned to the extension the next time the alert should be shown, without the user
564
+ * actually seeing the alert.
565
+ *
566
+ * @remarks
567
+ * Once an alert is dismissed, a `Reset Confirmation Dialogs` button will appear in the command's settings pane,
568
+ * in case users want to reconsider their answers.
569
+ */
570
+ rememberUserChoice?: boolean;
561
571
  }
562
572
  /**
563
573
  * The options to create an {@link Alert} Action.
@@ -584,9 +594,9 @@ export declare namespace Alert {
584
594
  * Use {@link Alert.ActionStyle.Destructive} for confirmations of a destructive action (eg. deleting a file).
585
595
  */
586
596
  export enum ActionStyle {
587
- Default = "DEFAULT",
588
- Cancel = "CANCEL",
589
- Destructive = "DESTRUCTIVE"
597
+ Default = "default",
598
+ Cancel = "cancel",
599
+ Destructive = "destructive"
590
600
  }
591
601
  }
592
602
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raycast/api",
3
- "version": "1.57.1",
3
+ "version": "1.57.2",
4
4
  "description": "Build extensions for Raycast with React and Node.js.",
5
5
  "author": "Raycast Technologies Ltd.",
6
6
  "homepage": "https://developers.raycast.com",
package/types/index.d.ts CHANGED
@@ -536,6 +536,16 @@ export declare namespace Alert {
536
536
  * The Action to dismiss the alert. There usually shouldn't be any side effects when the user takes this action.
537
537
  */
538
538
  dismissAction?: ActionOptions;
539
+ /**
540
+ * If set to true, the Alert will also display a `Do not show this message again` checkbox. When checked, the answer
541
+ * is persisted and directly returned to the extension the next time the alert should be shown, without the user
542
+ * actually seeing the alert.
543
+ *
544
+ * @remarks
545
+ * Once an alert is dismissed, a `Reset Confirmation Dialogs` button will appear in the command's settings pane,
546
+ * in case users want to reconsider their answers.
547
+ */
548
+ rememberUserChoice?: boolean;
539
549
  }
540
550
  /**
541
551
  * The options to create an {@link Alert} Action.
@@ -562,9 +572,9 @@ export declare namespace Alert {
562
572
  * Use {@link Alert.ActionStyle.Destructive} for confirmations of a destructive action (eg. deleting a file).
563
573
  */
564
574
  export enum ActionStyle {
565
- Default = "DEFAULT",
566
- Cancel = "CANCEL",
567
- Destructive = "DESTRUCTIVE"
575
+ Default = "default",
576
+ Cancel = "cancel",
577
+ Destructive = "destructive"
568
578
  }
569
579
  }
570
580