@raycast/api 1.55.1 → 1.56.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/api.d.ts +180 -32
  2. package/package.json +1 -1
  3. package/types/index.d.ts +161 -32
package/api.d.ts CHANGED
@@ -455,8 +455,6 @@ declare enum ActionStyle {
455
455
  Destructive = "destructive"
456
456
  }
457
457
 
458
- export declare function addBreadcrumb(breadcrumb: Breadcrumb): void;
459
-
460
458
  export declare namespace AI {
461
459
  /**
462
460
  * Returns a prompt completion.
@@ -651,15 +649,6 @@ export declare interface ArgumentsLaunchProps {
651
649
  arguments?: Arguments;
652
650
  }
653
651
 
654
- declare type Breadcrumb = {
655
- level?: BreadcrumbLevel;
656
- category?: string;
657
- message?: string;
658
- data?: Data;
659
- };
660
-
661
- declare type BreadcrumbLevel = "fatal" | "error" | "warning" | "log" | "info" | "debug";
662
-
663
652
  /**
664
653
  * Caching abstraction that stores data on disk and supports LRU (least recently used) access.
665
654
  * Since extensions can only consume up to a max. heap memory size, the cache only maintains a lightweight index in memory
@@ -796,11 +785,14 @@ export declare const clearLocalStorage: typeof LocalStorage.clear;
796
785
  /**
797
786
  * Clear the text in the search bar.
798
787
  *
799
- * @param options - Can be used to force scrolling to the top. Defaults to scrolling to the top after the
800
- * the search bar was cleared.
788
+ * @param options - Can be used to control the behaviour after the search bar is cleared.
801
789
  * @returns A Promise that resolves when the search bar is cleared.
802
790
  */
803
791
  export declare function clearSearchBar(options?: {
792
+ /**
793
+ * Can be used to force scrolling to the top. Defaults to scrolling to the top after the
794
+ * the search bar was cleared.
795
+ */
804
796
  forceScrollToTop?: boolean;
805
797
  }): Promise<void>;
806
798
 
@@ -870,6 +862,7 @@ export declare namespace Clipboard {
870
862
  /**
871
863
  * Reads the clipboard content as plain text, file name, or HTML.
872
864
  *
865
+ * @param options - Options for the read operation.
873
866
  * @returns A Promise that resolves when the clipboard content was read.
874
867
  *
875
868
  * @example
@@ -884,10 +877,18 @@ export declare namespace Clipboard {
884
877
  * };
885
878
  * ```
886
879
  */
887
- export function read(): Promise<ReadContent>;
880
+ export function read(options?: {
881
+ /**
882
+ * Specify an offset to access the Clipboard History. Minimum value is 0, maximum value is 5.
883
+ *
884
+ * @defaultValue `0`
885
+ */
886
+ offset?: number;
887
+ }): Promise<ReadContent>;
888
888
  /**
889
889
  * Reads the clipboard as plain text.
890
890
  *
891
+ * @param options - Options for the readText operation.
891
892
  * @returns A promise that resolves when the clipboard content was read as plain text.
892
893
  *
893
894
  * @example
@@ -900,7 +901,14 @@ export declare namespace Clipboard {
900
901
  * };
901
902
  * ```
902
903
  */
903
- export function readText(): Promise<string | undefined>;
904
+ export function readText(options?: {
905
+ /**
906
+ * Specify an offset to access the Clipboard History. Minimum value is 0, maximum value is 5.
907
+ *
908
+ * @defaultValue `0`
909
+ */
910
+ offset?: number;
911
+ }): Promise<string | undefined>;
904
912
  /**
905
913
  * Type of the content read from the {@link Clipboard}.
906
914
  *
@@ -967,9 +975,7 @@ export declare namespace Clipboard {
967
975
  /**
968
976
  * Closes the main Raycast window.
969
977
  *
970
- * @param options - A parameter object with the properties:
971
- * `clearRootSearch`: clears the text in the root search bar and scrolls to the top; default is `false`
972
- * `popToRootType`: defines the pop to root behavior ({@link PopToRootType}); the default is to to respect the user's "Pop to Root Search" preference in Raycast
978
+ * @param options - Can be used to control the behaviour after closing the main window.
973
979
  * @returns A Promise that resolves when the main window is closed.
974
980
  *
975
981
  * @example
@@ -984,7 +990,15 @@ export declare namespace Clipboard {
984
990
  * ```
985
991
  */
986
992
  export declare function closeMainWindow(options?: {
993
+ /**
994
+ * Clears the text in the root search bar and scrolls to the top
995
+ *
996
+ * @defaultValue `false`
997
+ */
987
998
  clearRootSearch?: boolean;
999
+ /**
1000
+ * Defines the pop to root behavior ({@link PopToRootType}); the default is to to respect the user's "Pop to Root Search" preference in Raycast
1001
+ */
988
1002
  popToRootType?: PopToRootType;
989
1003
  }): Promise<void>;
990
1004
 
@@ -1509,7 +1523,7 @@ declare interface CopyToClipboardProps {
1509
1523
  icon?: Image.ImageLike;
1510
1524
  /**
1511
1525
  * Indicates whether the content should be copied to the clipboard temporarily or not.
1512
- * @defaultValue false
1526
+ * @defaultValue `false`
1513
1527
  */
1514
1528
  transient?: boolean;
1515
1529
  /**
@@ -1570,12 +1584,6 @@ declare interface CreateSnippetProps {
1570
1584
  shortcut?: Keyboard.Shortcut;
1571
1585
  }
1572
1586
 
1573
- declare type Data = {
1574
- function: string;
1575
- } | {
1576
- title: string;
1577
- } | Record<string, string>;
1578
-
1579
1587
  /**
1580
1588
  * See {@link Form.DatePicker}
1581
1589
  */
@@ -4216,6 +4224,23 @@ export declare namespace Grid {
4216
4224
  }
4217
4225
  }
4218
4226
  export namespace Item {
4227
+ /**
4228
+ * An interface describing an accessory item in a {@link Grid.Item}
4229
+ *
4230
+ * @example
4231
+ * ```typescript
4232
+ * import { Grid } from "@raycast/api";
4233
+ *
4234
+ * export default function Command() {
4235
+ * return (
4236
+ * <Grid>
4237
+ * <Grid.Item title="Item" accessory={{ icon: Icon.Hammer }} />
4238
+ * </Grid>
4239
+ * );
4240
+ * }
4241
+ * ```
4242
+ */
4243
+ export type Accessory = ItemAccessory_2;
4219
4244
  /**
4220
4245
  * Props of the {@link Grid.Item} React component.
4221
4246
  */
@@ -4422,7 +4447,7 @@ declare interface GridProps extends ActionsInterface, NavigationChildInterface,
4422
4447
  /**
4423
4448
  * Column count for the grid's sections. Minimum value is 1, maximum value is 8.
4424
4449
  *
4425
- * @defaultValue 5
4450
+ * @defaultValue `5`
4426
4451
  */
4427
4452
  columns?: number;
4428
4453
  /**
@@ -5205,6 +5230,19 @@ declare type ItemAccessory = ({
5205
5230
  tooltip?: string | undefined | null;
5206
5231
  };
5207
5232
 
5233
+ declare type ItemAccessory_2 = {
5234
+ /**
5235
+ * An optional {@link Image.ImageLike} that will be used as the icon.
5236
+ * @remarks
5237
+ * An image will be shown in front of the text if {@link List.Item.Accessory.text} is specified.
5238
+ */
5239
+ icon?: Image.ImageLike | undefined | null;
5240
+ /**
5241
+ * An optional tooltip shown when the accessory is hovered.
5242
+ */
5243
+ tooltip?: string | undefined | null;
5244
+ };
5245
+
5208
5246
  /**
5209
5247
  * An interface describing Action events in callbacks
5210
5248
  *
@@ -5351,6 +5389,10 @@ declare interface ItemProps_2 extends ActionsInterface {
5351
5389
  * When filtering the list in Raycast through the search bar, the keywords will be searched in addition to the title.
5352
5390
  */
5353
5391
  keywords?: string[];
5392
+ /**
5393
+ * An optional {@link Grid.Item.Accessory} item displayed underneath a {@link Grid.Item}.
5394
+ */
5395
+ accessory?: ItemAccessory_2;
5354
5396
  /**
5355
5397
  * Optional information to preview files with Quick Look. Toggle the preview ith {@link Action.ToggleQuickLook}.
5356
5398
  *
@@ -5443,6 +5485,100 @@ export declare namespace Keyboard {
5443
5485
  */
5444
5486
  key: KeyEquivalent;
5445
5487
  }
5488
+ export namespace Shortcut {
5489
+ /**
5490
+ * Shortcuts that are commonly used throughout Raycast. Use them to provide a consistent experience.
5491
+ *
5492
+ * @example
5493
+ * ```typescript
5494
+ * import { List, Action, ActionPanel, Keyboard } from "@raycast/api";
5495
+ * import { useState } from "react";
5496
+ *
5497
+ * type Item = { id: string; title: string; done: boolean };
5498
+ *
5499
+ * let currentId = 0;
5500
+ * function generateId() {
5501
+ * currentId++;
5502
+ * return `${currentId}`;
5503
+ * }
5504
+ *
5505
+ * export default function Reminders() {
5506
+ * const [items, setItems] = useState<Item[]>([{ id: generateId(), title: "Do the laudry", done: false }]);
5507
+ *
5508
+ * return (
5509
+ * <List>
5510
+ * {items.map((item) => (
5511
+ * <List.Item
5512
+ * key={item.id}
5513
+ * icon={item.done ? "checked.png" : "unchecked.png"}
5514
+ * title={item.title}
5515
+ * actions={
5516
+ * <ActionPanel>
5517
+ * <Action
5518
+ * title={item.done ? "Uncheck" : "Check"}
5519
+ * onAction={() =>
5520
+ * setItems((previousState) =>
5521
+ * previousState.map((previousStateItem) =>
5522
+ * previousStateItem.id === item.id ? { ...item, done: !previousStateItem.done } : item
5523
+ * )
5524
+ * )
5525
+ * }
5526
+ * />
5527
+ * <Action
5528
+ * title="New Item"
5529
+ * shortcut={Keyboard.Shortcut.Common.New}
5530
+ * onAction={() =>
5531
+ * setItems((previousState) => [{ id: generateId(), title: "New Item", done: false }, ...previousState])
5532
+ * }
5533
+ * />
5534
+ * </ActionPanel>
5535
+ * }
5536
+ * />
5537
+ * ))}
5538
+ * </List>
5539
+ * );
5540
+ * }
5541
+ * ```
5542
+ */
5543
+ const Common: {
5544
+ Copy: Shortcut;
5545
+ CopyDeeplink: Shortcut;
5546
+ CopyName: Shortcut;
5547
+ CopyPath: Shortcut;
5548
+ Duplicate: Shortcut;
5549
+ Edit: Shortcut;
5550
+ MoveDown: Shortcut;
5551
+ MoveUp: Shortcut;
5552
+ New: Shortcut;
5553
+ Open: Shortcut;
5554
+ OpenWith: Shortcut;
5555
+ Pin: Shortcut;
5556
+ Refresh: Shortcut;
5557
+ Remove: Shortcut;
5558
+ RemoveAll: Shortcut;
5559
+ ToggleQuickLook: Shortcut;
5560
+ };
5561
+ /**
5562
+ * @internal
5563
+ */
5564
+ const Reserved: {
5565
+ CloseWindow: Shortcut;
5566
+ Delete: Shortcut;
5567
+ DeleteForward: Shortcut;
5568
+ DeleteLineBackward: Shortcut;
5569
+ DeleteWordBackward: Shortcut;
5570
+ GoBack: Shortcut;
5571
+ OpenActionPanel: Shortcut;
5572
+ OpenPreferences: Shortcut;
5573
+ OpenSearchBarDropdown: Shortcut;
5574
+ OpenSearchBarLink: Shortcut;
5575
+ PrimaryAction: Shortcut;
5576
+ Quit: Shortcut;
5577
+ ReturnToRoot: Shortcut;
5578
+ SecondaryAction: Shortcut;
5579
+ SelectAll: Shortcut;
5580
+ };
5581
+ }
5446
5582
  /**
5447
5583
  * Modifier of a {@link Keyboard.Shortcut}
5448
5584
  */
@@ -6937,7 +7073,7 @@ declare interface PickDateProps {
6937
7073
  /**
6938
7074
  * Pops the navigation stack back to root search.
6939
7075
  *
6940
- * @param options - Can be used to clear the search bar. Defaults to clearing the search bar after popped to root.
7076
+ * @param options - Can be used to control the behaviour after going back to the root search.
6941
7077
  * @returns A Promise that resolves when Raycast popped to root.
6942
7078
  *
6943
7079
  * @example
@@ -7258,7 +7394,7 @@ declare interface SectionProps_3 {
7258
7394
  /**
7259
7395
  * Column count for the section. Minimum value is 1, maximum value is 8.
7260
7396
  *
7261
- * @defaultValue 5
7397
+ * @defaultValue `5`
7262
7398
  */
7263
7399
  columns?: number;
7264
7400
  /**
@@ -7322,6 +7458,7 @@ export declare const setLocalStorageItem: typeof LocalStorage.setItem;
7322
7458
  * A HUD will automatically hide the main window and show a compact message at the bottom of the screen.
7323
7459
  *
7324
7460
  * @param title - The title that will be displayed in the HUD.
7461
+ * @param options - Can be used to control the behaviour after closing the main window.
7325
7462
  * @returns A Promise that resolves when the HUD is shown.
7326
7463
  *
7327
7464
  * @example
@@ -7333,7 +7470,18 @@ export declare const setLocalStorageItem: typeof LocalStorage.setItem;
7333
7470
  * };
7334
7471
  * ```
7335
7472
  */
7336
- export declare function showHUD(title: string): Promise<void>;
7473
+ export declare function showHUD(title: string, options?: {
7474
+ /**
7475
+ * Clears the text in the root search bar and scrolls to the top
7476
+ *
7477
+ * @defaultValue `false`
7478
+ */
7479
+ clearRootSearch?: boolean;
7480
+ /**
7481
+ * Defines the pop to root behavior ({@link PopToRootType}); the default is to to respect the user's "Pop to Root Search" preference in Raycast
7482
+ */
7483
+ popToRootType?: PopToRootType;
7484
+ }): Promise<void>;
7337
7485
 
7338
7486
  /**
7339
7487
  * See {@link Action.ShowInFinder.Props}
@@ -7617,13 +7765,13 @@ declare const TagListItem: FunctionComponent<TagListItemProps>;
7617
7765
 
7618
7766
  declare interface TagListItemProps {
7619
7767
  /**
7620
- * An optional icon in front of the text of the tag.
7768
+ * The optional icon tag icon. Required if the tag has no text.
7621
7769
  */
7622
7770
  icon?: Image.ImageLike | undefined | null;
7623
7771
  /**
7624
- * The text of the tag.
7772
+ * The optional tag text. Required if the tag has no icon.
7625
7773
  */
7626
- text: string;
7774
+ text?: string;
7627
7775
  /**
7628
7776
  * Changes the text color to the provided color and sets a transparent background with the same color.
7629
7777
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raycast/api",
3
- "version": "1.55.1",
3
+ "version": "1.56.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
@@ -433,8 +433,6 @@ declare enum ActionStyle {
433
433
  Destructive = "destructive"
434
434
  }
435
435
 
436
- export declare function addBreadcrumb(breadcrumb: Breadcrumb): void;
437
-
438
436
  export declare namespace AI {
439
437
  /**
440
438
  * Returns a prompt completion.
@@ -629,15 +627,6 @@ export declare interface ArgumentsLaunchProps {
629
627
  arguments?: Arguments;
630
628
  }
631
629
 
632
- declare type Breadcrumb = {
633
- level?: BreadcrumbLevel;
634
- category?: string;
635
- message?: string;
636
- data?: Data;
637
- };
638
-
639
- declare type BreadcrumbLevel = "fatal" | "error" | "warning" | "log" | "info" | "debug";
640
-
641
630
  /**
642
631
  * Caching abstraction that stores data on disk and supports LRU (least recently used) access.
643
632
  * Since extensions can only consume up to a max. heap memory size, the cache only maintains a lightweight index in memory
@@ -774,11 +763,14 @@ export declare const clearLocalStorage: typeof LocalStorage.clear;
774
763
  /**
775
764
  * Clear the text in the search bar.
776
765
  *
777
- * @param options - Can be used to force scrolling to the top. Defaults to scrolling to the top after the
778
- * the search bar was cleared.
766
+ * @param options - Can be used to control the behaviour after the search bar is cleared.
779
767
  * @returns A Promise that resolves when the search bar is cleared.
780
768
  */
781
769
  export declare function clearSearchBar(options?: {
770
+ /**
771
+ * Can be used to force scrolling to the top. Defaults to scrolling to the top after the
772
+ * the search bar was cleared.
773
+ */
782
774
  forceScrollToTop?: boolean;
783
775
  }): Promise<void>;
784
776
 
@@ -848,6 +840,7 @@ export declare namespace Clipboard {
848
840
  /**
849
841
  * Reads the clipboard content as plain text, file name, or HTML.
850
842
  *
843
+ * @param options - Options for the read operation.
851
844
  * @returns A Promise that resolves when the clipboard content was read.
852
845
  *
853
846
  * @example
@@ -862,10 +855,18 @@ export declare namespace Clipboard {
862
855
  * };
863
856
  * ```
864
857
  */
865
- export function read(): Promise<ReadContent>;
858
+ export function read(options?: {
859
+ /**
860
+ * Specify an offset to access the Clipboard History. Minimum value is 0, maximum value is 5.
861
+ *
862
+ * @defaultValue `0`
863
+ */
864
+ offset?: number;
865
+ }): Promise<ReadContent>;
866
866
  /**
867
867
  * Reads the clipboard as plain text.
868
868
  *
869
+ * @param options - Options for the readText operation.
869
870
  * @returns A promise that resolves when the clipboard content was read as plain text.
870
871
  *
871
872
  * @example
@@ -878,7 +879,14 @@ export declare namespace Clipboard {
878
879
  * };
879
880
  * ```
880
881
  */
881
- export function readText(): Promise<string | undefined>;
882
+ export function readText(options?: {
883
+ /**
884
+ * Specify an offset to access the Clipboard History. Minimum value is 0, maximum value is 5.
885
+ *
886
+ * @defaultValue `0`
887
+ */
888
+ offset?: number;
889
+ }): Promise<string | undefined>;
882
890
  /**
883
891
  * Type of the content read from the {@link Clipboard}.
884
892
  *
@@ -945,9 +953,7 @@ export declare namespace Clipboard {
945
953
  /**
946
954
  * Closes the main Raycast window.
947
955
  *
948
- * @param options - A parameter object with the properties:
949
- * `clearRootSearch`: clears the text in the root search bar and scrolls to the top; default is `false`
950
- * `popToRootType`: defines the pop to root behavior ({@link PopToRootType}); the default is to to respect the user's "Pop to Root Search" preference in Raycast
956
+ * @param options - Can be used to control the behaviour after closing the main window.
951
957
  * @returns A Promise that resolves when the main window is closed.
952
958
  *
953
959
  * @example
@@ -962,7 +968,15 @@ export declare namespace Clipboard {
962
968
  * ```
963
969
  */
964
970
  export declare function closeMainWindow(options?: {
971
+ /**
972
+ * Clears the text in the root search bar and scrolls to the top
973
+ *
974
+ * @defaultValue `false`
975
+ */
965
976
  clearRootSearch?: boolean;
977
+ /**
978
+ * Defines the pop to root behavior ({@link PopToRootType}); the default is to to respect the user's "Pop to Root Search" preference in Raycast
979
+ */
966
980
  popToRootType?: PopToRootType;
967
981
  }): Promise<void>;
968
982
 
@@ -1487,7 +1501,7 @@ declare interface CopyToClipboardProps {
1487
1501
  icon?: Image.ImageLike;
1488
1502
  /**
1489
1503
  * Indicates whether the content should be copied to the clipboard temporarily or not.
1490
- * @defaultValue false
1504
+ * @defaultValue `false`
1491
1505
  */
1492
1506
  transient?: boolean;
1493
1507
  /**
@@ -1548,12 +1562,6 @@ declare interface CreateSnippetProps {
1548
1562
  shortcut?: Keyboard.Shortcut;
1549
1563
  }
1550
1564
 
1551
- declare type Data = {
1552
- function: string;
1553
- } | {
1554
- title: string;
1555
- } | Record<string, string>;
1556
-
1557
1565
  /**
1558
1566
  * See {@link Form.DatePicker}
1559
1567
  */
@@ -4194,6 +4202,23 @@ export declare namespace Grid {
4194
4202
  }
4195
4203
  }
4196
4204
  export namespace Item {
4205
+ /**
4206
+ * An interface describing an accessory item in a {@link Grid.Item}
4207
+ *
4208
+ * @example
4209
+ * ```typescript
4210
+ * import { Grid } from "@raycast/api";
4211
+ *
4212
+ * export default function Command() {
4213
+ * return (
4214
+ * <Grid>
4215
+ * <Grid.Item title="Item" accessory={{ icon: Icon.Hammer }} />
4216
+ * </Grid>
4217
+ * );
4218
+ * }
4219
+ * ```
4220
+ */
4221
+ export type Accessory = ItemAccessory_2;
4197
4222
  /**
4198
4223
  * Props of the {@link Grid.Item} React component.
4199
4224
  */
@@ -4400,7 +4425,7 @@ declare interface GridProps extends ActionsInterface, NavigationChildInterface,
4400
4425
  /**
4401
4426
  * Column count for the grid's sections. Minimum value is 1, maximum value is 8.
4402
4427
  *
4403
- * @defaultValue 5
4428
+ * @defaultValue `5`
4404
4429
  */
4405
4430
  columns?: number;
4406
4431
  /**
@@ -5183,6 +5208,19 @@ declare type ItemAccessory = ({
5183
5208
  tooltip?: string | undefined | null;
5184
5209
  };
5185
5210
 
5211
+ declare type ItemAccessory_2 = {
5212
+ /**
5213
+ * An optional {@link Image.ImageLike} that will be used as the icon.
5214
+ * @remarks
5215
+ * An image will be shown in front of the text if {@link List.Item.Accessory.text} is specified.
5216
+ */
5217
+ icon?: Image.ImageLike | undefined | null;
5218
+ /**
5219
+ * An optional tooltip shown when the accessory is hovered.
5220
+ */
5221
+ tooltip?: string | undefined | null;
5222
+ };
5223
+
5186
5224
  /**
5187
5225
  * An interface describing Action events in callbacks
5188
5226
  *
@@ -5329,6 +5367,10 @@ declare interface ItemProps_2 extends ActionsInterface {
5329
5367
  * When filtering the list in Raycast through the search bar, the keywords will be searched in addition to the title.
5330
5368
  */
5331
5369
  keywords?: string[];
5370
+ /**
5371
+ * An optional {@link Grid.Item.Accessory} item displayed underneath a {@link Grid.Item}.
5372
+ */
5373
+ accessory?: ItemAccessory_2;
5332
5374
  /**
5333
5375
  * Optional information to preview files with Quick Look. Toggle the preview ith {@link Action.ToggleQuickLook}.
5334
5376
  *
@@ -5421,6 +5463,81 @@ export declare namespace Keyboard {
5421
5463
  */
5422
5464
  key: KeyEquivalent;
5423
5465
  }
5466
+ export namespace Shortcut {
5467
+ /**
5468
+ * Shortcuts that are commonly used throughout Raycast. Use them to provide a consistent experience.
5469
+ *
5470
+ * @example
5471
+ * ```typescript
5472
+ * import { List, Action, ActionPanel, Keyboard } from "@raycast/api";
5473
+ * import { useState } from "react";
5474
+ *
5475
+ * type Item = { id: string; title: string; done: boolean };
5476
+ *
5477
+ * let currentId = 0;
5478
+ * function generateId() {
5479
+ * currentId++;
5480
+ * return `${currentId}`;
5481
+ * }
5482
+ *
5483
+ * export default function Reminders() {
5484
+ * const [items, setItems] = useState<Item[]>([{ id: generateId(), title: "Do the laudry", done: false }]);
5485
+ *
5486
+ * return (
5487
+ * <List>
5488
+ * {items.map((item) => (
5489
+ * <List.Item
5490
+ * key={item.id}
5491
+ * icon={item.done ? "checked.png" : "unchecked.png"}
5492
+ * title={item.title}
5493
+ * actions={
5494
+ * <ActionPanel>
5495
+ * <Action
5496
+ * title={item.done ? "Uncheck" : "Check"}
5497
+ * onAction={() =>
5498
+ * setItems((previousState) =>
5499
+ * previousState.map((previousStateItem) =>
5500
+ * previousStateItem.id === item.id ? { ...item, done: !previousStateItem.done } : item
5501
+ * )
5502
+ * )
5503
+ * }
5504
+ * />
5505
+ * <Action
5506
+ * title="New Item"
5507
+ * shortcut={Keyboard.Shortcut.Common.New}
5508
+ * onAction={() =>
5509
+ * setItems((previousState) => [{ id: generateId(), title: "New Item", done: false }, ...previousState])
5510
+ * }
5511
+ * />
5512
+ * </ActionPanel>
5513
+ * }
5514
+ * />
5515
+ * ))}
5516
+ * </List>
5517
+ * );
5518
+ * }
5519
+ * ```
5520
+ */
5521
+ const Common: {
5522
+ Copy: Shortcut;
5523
+ CopyDeeplink: Shortcut;
5524
+ CopyName: Shortcut;
5525
+ CopyPath: Shortcut;
5526
+ Duplicate: Shortcut;
5527
+ Edit: Shortcut;
5528
+ MoveDown: Shortcut;
5529
+ MoveUp: Shortcut;
5530
+ New: Shortcut;
5531
+ Open: Shortcut;
5532
+ OpenWith: Shortcut;
5533
+ Pin: Shortcut;
5534
+ Refresh: Shortcut;
5535
+ Remove: Shortcut;
5536
+ RemoveAll: Shortcut;
5537
+ ToggleQuickLook: Shortcut;
5538
+ };
5539
+
5540
+ }
5424
5541
  /**
5425
5542
  * Modifier of a {@link Keyboard.Shortcut}
5426
5543
  */
@@ -6915,7 +7032,7 @@ declare interface PickDateProps {
6915
7032
  /**
6916
7033
  * Pops the navigation stack back to root search.
6917
7034
  *
6918
- * @param options - Can be used to clear the search bar. Defaults to clearing the search bar after popped to root.
7035
+ * @param options - Can be used to control the behaviour after going back to the root search.
6919
7036
  * @returns A Promise that resolves when Raycast popped to root.
6920
7037
  *
6921
7038
  * @example
@@ -7236,7 +7353,7 @@ declare interface SectionProps_3 {
7236
7353
  /**
7237
7354
  * Column count for the section. Minimum value is 1, maximum value is 8.
7238
7355
  *
7239
- * @defaultValue 5
7356
+ * @defaultValue `5`
7240
7357
  */
7241
7358
  columns?: number;
7242
7359
  /**
@@ -7300,6 +7417,7 @@ export declare const setLocalStorageItem: typeof LocalStorage.setItem;
7300
7417
  * A HUD will automatically hide the main window and show a compact message at the bottom of the screen.
7301
7418
  *
7302
7419
  * @param title - The title that will be displayed in the HUD.
7420
+ * @param options - Can be used to control the behaviour after closing the main window.
7303
7421
  * @returns A Promise that resolves when the HUD is shown.
7304
7422
  *
7305
7423
  * @example
@@ -7311,7 +7429,18 @@ export declare const setLocalStorageItem: typeof LocalStorage.setItem;
7311
7429
  * };
7312
7430
  * ```
7313
7431
  */
7314
- export declare function showHUD(title: string): Promise<void>;
7432
+ export declare function showHUD(title: string, options?: {
7433
+ /**
7434
+ * Clears the text in the root search bar and scrolls to the top
7435
+ *
7436
+ * @defaultValue `false`
7437
+ */
7438
+ clearRootSearch?: boolean;
7439
+ /**
7440
+ * Defines the pop to root behavior ({@link PopToRootType}); the default is to to respect the user's "Pop to Root Search" preference in Raycast
7441
+ */
7442
+ popToRootType?: PopToRootType;
7443
+ }): Promise<void>;
7315
7444
 
7316
7445
  /**
7317
7446
  * See {@link Action.ShowInFinder.Props}
@@ -7595,13 +7724,13 @@ declare const TagListItem: FunctionComponent<TagListItemProps>;
7595
7724
 
7596
7725
  declare interface TagListItemProps {
7597
7726
  /**
7598
- * An optional icon in front of the text of the tag.
7727
+ * The optional icon tag icon. Required if the tag has no text.
7599
7728
  */
7600
7729
  icon?: Image.ImageLike | undefined | null;
7601
7730
  /**
7602
- * The text of the tag.
7731
+ * The optional tag text. Required if the tag has no icon.
7603
7732
  */
7604
- text: string;
7733
+ text?: string;
7605
7734
  /**
7606
7735
  * Changes the text color to the provided color and sets a transparent background with the same color.
7607
7736
  */