@raycast/api 1.57.1 → 1.58.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.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/types/index.d.ts +17 -3
  3. package/api.d.ts +0 -8274
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raycast/api",
3
- "version": "1.57.1",
3
+ "version": "1.58.0",
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
 
@@ -1574,6 +1584,10 @@ declare interface DatePickerMembers {
1574
1584
  * * `DateTime` - hour and second can be picked in addition to year, month and day
1575
1585
  */
1576
1586
  Type: typeof DatePickerType;
1587
+ /**
1588
+ * Determines if the given date represents a full day or a specific time.
1589
+ */
1590
+ isFullDay(date?: Date | null): boolean;
1577
1591
  }
1578
1592
 
1579
1593
  declare interface DatePickerMembers_2 {