@raycast/api 1.55.2 → 1.56.1

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 -15
  2. package/package.json +1 -1
  3. package/types/index.d.ts +161 -15
package/api.d.ts CHANGED
@@ -785,11 +785,14 @@ export declare const clearLocalStorage: typeof LocalStorage.clear;
785
785
  /**
786
786
  * Clear the text in the search bar.
787
787
  *
788
- * @param options - Can be used to force scrolling to the top. Defaults to scrolling to the top after the
789
- * the search bar was cleared.
788
+ * @param options - Can be used to control the behaviour after the search bar is cleared.
790
789
  * @returns A Promise that resolves when the search bar is cleared.
791
790
  */
792
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
+ */
793
796
  forceScrollToTop?: boolean;
794
797
  }): Promise<void>;
795
798
 
@@ -859,6 +862,7 @@ export declare namespace Clipboard {
859
862
  /**
860
863
  * Reads the clipboard content as plain text, file name, or HTML.
861
864
  *
865
+ * @param options - Options for the read operation.
862
866
  * @returns A Promise that resolves when the clipboard content was read.
863
867
  *
864
868
  * @example
@@ -873,10 +877,18 @@ export declare namespace Clipboard {
873
877
  * };
874
878
  * ```
875
879
  */
876
- 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>;
877
888
  /**
878
889
  * Reads the clipboard as plain text.
879
890
  *
891
+ * @param options - Options for the readText operation.
880
892
  * @returns A promise that resolves when the clipboard content was read as plain text.
881
893
  *
882
894
  * @example
@@ -889,7 +901,14 @@ export declare namespace Clipboard {
889
901
  * };
890
902
  * ```
891
903
  */
892
- 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>;
893
912
  /**
894
913
  * Type of the content read from the {@link Clipboard}.
895
914
  *
@@ -956,9 +975,7 @@ export declare namespace Clipboard {
956
975
  /**
957
976
  * Closes the main Raycast window.
958
977
  *
959
- * @param options - A parameter object with the properties:
960
- * `clearRootSearch`: clears the text in the root search bar and scrolls to the top; default is `false`
961
- * `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.
962
979
  * @returns A Promise that resolves when the main window is closed.
963
980
  *
964
981
  * @example
@@ -973,7 +990,15 @@ export declare namespace Clipboard {
973
990
  * ```
974
991
  */
975
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
+ */
976
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
+ */
977
1002
  popToRootType?: PopToRootType;
978
1003
  }): Promise<void>;
979
1004
 
@@ -1498,7 +1523,7 @@ declare interface CopyToClipboardProps {
1498
1523
  icon?: Image.ImageLike;
1499
1524
  /**
1500
1525
  * Indicates whether the content should be copied to the clipboard temporarily or not.
1501
- * @defaultValue false
1526
+ * @defaultValue `false`
1502
1527
  */
1503
1528
  transient?: boolean;
1504
1529
  /**
@@ -4199,6 +4224,23 @@ export declare namespace Grid {
4199
4224
  }
4200
4225
  }
4201
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;
4202
4244
  /**
4203
4245
  * Props of the {@link Grid.Item} React component.
4204
4246
  */
@@ -4405,7 +4447,7 @@ declare interface GridProps extends ActionsInterface, NavigationChildInterface,
4405
4447
  /**
4406
4448
  * Column count for the grid's sections. Minimum value is 1, maximum value is 8.
4407
4449
  *
4408
- * @defaultValue 5
4450
+ * @defaultValue `5`
4409
4451
  */
4410
4452
  columns?: number;
4411
4453
  /**
@@ -5188,6 +5230,19 @@ declare type ItemAccessory = ({
5188
5230
  tooltip?: string | undefined | null;
5189
5231
  };
5190
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
+
5191
5246
  /**
5192
5247
  * An interface describing Action events in callbacks
5193
5248
  *
@@ -5334,6 +5389,10 @@ declare interface ItemProps_2 extends ActionsInterface {
5334
5389
  * When filtering the list in Raycast through the search bar, the keywords will be searched in addition to the title.
5335
5390
  */
5336
5391
  keywords?: string[];
5392
+ /**
5393
+ * An optional {@link Grid.Item.Accessory} item displayed underneath a {@link Grid.Item}.
5394
+ */
5395
+ accessory?: ItemAccessory_2;
5337
5396
  /**
5338
5397
  * Optional information to preview files with Quick Look. Toggle the preview ith {@link Action.ToggleQuickLook}.
5339
5398
  *
@@ -5426,6 +5485,100 @@ export declare namespace Keyboard {
5426
5485
  */
5427
5486
  key: KeyEquivalent;
5428
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
+ }
5429
5582
  /**
5430
5583
  * Modifier of a {@link Keyboard.Shortcut}
5431
5584
  */
@@ -6920,7 +7073,7 @@ declare interface PickDateProps {
6920
7073
  /**
6921
7074
  * Pops the navigation stack back to root search.
6922
7075
  *
6923
- * @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.
6924
7077
  * @returns A Promise that resolves when Raycast popped to root.
6925
7078
  *
6926
7079
  * @example
@@ -7241,7 +7394,7 @@ declare interface SectionProps_3 {
7241
7394
  /**
7242
7395
  * Column count for the section. Minimum value is 1, maximum value is 8.
7243
7396
  *
7244
- * @defaultValue 5
7397
+ * @defaultValue `5`
7245
7398
  */
7246
7399
  columns?: number;
7247
7400
  /**
@@ -7305,6 +7458,7 @@ export declare const setLocalStorageItem: typeof LocalStorage.setItem;
7305
7458
  * A HUD will automatically hide the main window and show a compact message at the bottom of the screen.
7306
7459
  *
7307
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.
7308
7462
  * @returns A Promise that resolves when the HUD is shown.
7309
7463
  *
7310
7464
  * @example
@@ -7316,7 +7470,18 @@ export declare const setLocalStorageItem: typeof LocalStorage.setItem;
7316
7470
  * };
7317
7471
  * ```
7318
7472
  */
7319
- 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>;
7320
7485
 
7321
7486
  /**
7322
7487
  * See {@link Action.ShowInFinder.Props}
@@ -7600,13 +7765,13 @@ declare const TagListItem: FunctionComponent<TagListItemProps>;
7600
7765
 
7601
7766
  declare interface TagListItemProps {
7602
7767
  /**
7603
- * An optional icon in front of the text of the tag.
7768
+ * The optional icon tag icon. Required if the tag has no text.
7604
7769
  */
7605
7770
  icon?: Image.ImageLike | undefined | null;
7606
7771
  /**
7607
- * The text of the tag.
7772
+ * The optional tag text. Required if the tag has no icon.
7608
7773
  */
7609
- text: string;
7774
+ text?: string;
7610
7775
  /**
7611
7776
  * Changes the text color to the provided color and sets a transparent background with the same color.
7612
7777
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raycast/api",
3
- "version": "1.55.2",
3
+ "version": "1.56.1",
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
@@ -763,11 +763,14 @@ export declare const clearLocalStorage: typeof LocalStorage.clear;
763
763
  /**
764
764
  * Clear the text in the search bar.
765
765
  *
766
- * @param options - Can be used to force scrolling to the top. Defaults to scrolling to the top after the
767
- * the search bar was cleared.
766
+ * @param options - Can be used to control the behaviour after the search bar is cleared.
768
767
  * @returns A Promise that resolves when the search bar is cleared.
769
768
  */
770
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
+ */
771
774
  forceScrollToTop?: boolean;
772
775
  }): Promise<void>;
773
776
 
@@ -837,6 +840,7 @@ export declare namespace Clipboard {
837
840
  /**
838
841
  * Reads the clipboard content as plain text, file name, or HTML.
839
842
  *
843
+ * @param options - Options for the read operation.
840
844
  * @returns A Promise that resolves when the clipboard content was read.
841
845
  *
842
846
  * @example
@@ -851,10 +855,18 @@ export declare namespace Clipboard {
851
855
  * };
852
856
  * ```
853
857
  */
854
- 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>;
855
866
  /**
856
867
  * Reads the clipboard as plain text.
857
868
  *
869
+ * @param options - Options for the readText operation.
858
870
  * @returns A promise that resolves when the clipboard content was read as plain text.
859
871
  *
860
872
  * @example
@@ -867,7 +879,14 @@ export declare namespace Clipboard {
867
879
  * };
868
880
  * ```
869
881
  */
870
- 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>;
871
890
  /**
872
891
  * Type of the content read from the {@link Clipboard}.
873
892
  *
@@ -934,9 +953,7 @@ export declare namespace Clipboard {
934
953
  /**
935
954
  * Closes the main Raycast window.
936
955
  *
937
- * @param options - A parameter object with the properties:
938
- * `clearRootSearch`: clears the text in the root search bar and scrolls to the top; default is `false`
939
- * `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.
940
957
  * @returns A Promise that resolves when the main window is closed.
941
958
  *
942
959
  * @example
@@ -951,7 +968,15 @@ export declare namespace Clipboard {
951
968
  * ```
952
969
  */
953
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
+ */
954
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
+ */
955
980
  popToRootType?: PopToRootType;
956
981
  }): Promise<void>;
957
982
 
@@ -1476,7 +1501,7 @@ declare interface CopyToClipboardProps {
1476
1501
  icon?: Image.ImageLike;
1477
1502
  /**
1478
1503
  * Indicates whether the content should be copied to the clipboard temporarily or not.
1479
- * @defaultValue false
1504
+ * @defaultValue `false`
1480
1505
  */
1481
1506
  transient?: boolean;
1482
1507
  /**
@@ -4177,6 +4202,23 @@ export declare namespace Grid {
4177
4202
  }
4178
4203
  }
4179
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;
4180
4222
  /**
4181
4223
  * Props of the {@link Grid.Item} React component.
4182
4224
  */
@@ -4383,7 +4425,7 @@ declare interface GridProps extends ActionsInterface, NavigationChildInterface,
4383
4425
  /**
4384
4426
  * Column count for the grid's sections. Minimum value is 1, maximum value is 8.
4385
4427
  *
4386
- * @defaultValue 5
4428
+ * @defaultValue `5`
4387
4429
  */
4388
4430
  columns?: number;
4389
4431
  /**
@@ -5166,6 +5208,19 @@ declare type ItemAccessory = ({
5166
5208
  tooltip?: string | undefined | null;
5167
5209
  };
5168
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
+
5169
5224
  /**
5170
5225
  * An interface describing Action events in callbacks
5171
5226
  *
@@ -5312,6 +5367,10 @@ declare interface ItemProps_2 extends ActionsInterface {
5312
5367
  * When filtering the list in Raycast through the search bar, the keywords will be searched in addition to the title.
5313
5368
  */
5314
5369
  keywords?: string[];
5370
+ /**
5371
+ * An optional {@link Grid.Item.Accessory} item displayed underneath a {@link Grid.Item}.
5372
+ */
5373
+ accessory?: ItemAccessory_2;
5315
5374
  /**
5316
5375
  * Optional information to preview files with Quick Look. Toggle the preview ith {@link Action.ToggleQuickLook}.
5317
5376
  *
@@ -5404,6 +5463,81 @@ export declare namespace Keyboard {
5404
5463
  */
5405
5464
  key: KeyEquivalent;
5406
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
+ }
5407
5541
  /**
5408
5542
  * Modifier of a {@link Keyboard.Shortcut}
5409
5543
  */
@@ -6898,7 +7032,7 @@ declare interface PickDateProps {
6898
7032
  /**
6899
7033
  * Pops the navigation stack back to root search.
6900
7034
  *
6901
- * @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.
6902
7036
  * @returns A Promise that resolves when Raycast popped to root.
6903
7037
  *
6904
7038
  * @example
@@ -7219,7 +7353,7 @@ declare interface SectionProps_3 {
7219
7353
  /**
7220
7354
  * Column count for the section. Minimum value is 1, maximum value is 8.
7221
7355
  *
7222
- * @defaultValue 5
7356
+ * @defaultValue `5`
7223
7357
  */
7224
7358
  columns?: number;
7225
7359
  /**
@@ -7283,6 +7417,7 @@ export declare const setLocalStorageItem: typeof LocalStorage.setItem;
7283
7417
  * A HUD will automatically hide the main window and show a compact message at the bottom of the screen.
7284
7418
  *
7285
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.
7286
7421
  * @returns A Promise that resolves when the HUD is shown.
7287
7422
  *
7288
7423
  * @example
@@ -7294,7 +7429,18 @@ export declare const setLocalStorageItem: typeof LocalStorage.setItem;
7294
7429
  * };
7295
7430
  * ```
7296
7431
  */
7297
- 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>;
7298
7444
 
7299
7445
  /**
7300
7446
  * See {@link Action.ShowInFinder.Props}
@@ -7578,13 +7724,13 @@ declare const TagListItem: FunctionComponent<TagListItemProps>;
7578
7724
 
7579
7725
  declare interface TagListItemProps {
7580
7726
  /**
7581
- * An optional icon in front of the text of the tag.
7727
+ * The optional icon tag icon. Required if the tag has no text.
7582
7728
  */
7583
7729
  icon?: Image.ImageLike | undefined | null;
7584
7730
  /**
7585
- * The text of the tag.
7731
+ * The optional tag text. Required if the tag has no icon.
7586
7732
  */
7587
- text: string;
7733
+ text?: string;
7588
7734
  /**
7589
7735
  * Changes the text color to the provided color and sets a transparent background with the same color.
7590
7736
  */