@raycast/api 1.58.0 → 1.59.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 (2) hide show
  1. package/package.json +1 -1
  2. package/types/index.d.ts +17 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raycast/api",
3
- "version": "1.58.0",
3
+ "version": "1.59.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
@@ -811,7 +811,7 @@ export declare namespace Clipboard {
811
811
  *
812
812
  * await Clipboard.copy(fileContent);
813
813
  *
814
- * await Clipboard.copy("SecretPassword", { transient: true });
814
+ * await Clipboard.copy("SecretPassword", { concealed: true });
815
815
  * };
816
816
  * ```
817
817
  */
@@ -954,9 +954,13 @@ export declare namespace Clipboard {
954
954
  };
955
955
  export type CopyOptions = {
956
956
  /**
957
- * Indicates whether the content should be copied to the clipboard temporarily or not.
957
+ * @deprecated Use `concealed` instead.
958
958
  */
959
- transient: boolean;
959
+ transient?: boolean;
960
+ /**
961
+ * Indicates whether the content be treated as confidential. If `true`, it will not be recorded in the Clipboard History.
962
+ */
963
+ concealed?: boolean;
960
964
  };
961
965
  }
962
966
 
@@ -1510,10 +1514,14 @@ declare interface CopyToClipboardProps {
1510
1514
  */
1511
1515
  icon?: Image.ImageLike;
1512
1516
  /**
1513
- * Indicates whether the content should be copied to the clipboard temporarily or not.
1514
- * @defaultValue `false`
1517
+ * @deprecated Use `concealed` instead.
1515
1518
  */
1516
1519
  transient?: boolean;
1520
+ /**
1521
+ * Indicates whether the content be treated as confidential. If `true`, it will not be recorded in the Clipboard History.
1522
+ * @defaultValue `false`
1523
+ */
1524
+ concealed?: boolean;
1517
1525
  /**
1518
1526
  * The keyboard shortcut for the Action.
1519
1527
  */
@@ -1597,6 +1605,10 @@ declare interface DatePickerMembers_2 {
1597
1605
  * * `DateTime` - hour and second can be picked in addition to year, month and day
1598
1606
  */
1599
1607
  Type: typeof DatePickerType_2;
1608
+ /**
1609
+ * Determines if the given date represents a full day or a specific time.
1610
+ */
1611
+ isFullDay(date?: Date | null): boolean;
1600
1612
  }
1601
1613
 
1602
1614
  declare interface DatePickerProps extends FormItemProps_2<Date | null> {