@raycast/api 1.41.1 → 1.42.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 +115 -362
  2. package/package.json +3 -3
  3. package/types/index.d.ts +115 -362
package/types/index.d.ts CHANGED
@@ -1523,7 +1523,7 @@ export declare namespace Detail {
1523
1523
  /**
1524
1524
  * Props of the {@link Detail.Metadata.Separator} React component.
1525
1525
  */
1526
- export type Props = SeparatorProps;
1526
+ export type Props = SeparatorProps_2;
1527
1527
  }
1528
1528
  export namespace Link {
1529
1529
  /**
@@ -1647,7 +1647,7 @@ declare interface DetailMembers_2 {
1647
1647
  * }
1648
1648
  * ```
1649
1649
  */
1650
- Metadata: typeof Metadata_2;
1650
+ Metadata: typeof Metadata;
1651
1651
  }
1652
1652
 
1653
1653
  /**
@@ -1689,30 +1689,20 @@ declare interface DetailProps_3 {
1689
1689
  */
1690
1690
  declare const Dropdown: ForwardRefExoticComponent<DropdownProps & RefAttributes<FormItemRef>> & DropdownMembers;
1691
1691
 
1692
- /**
1693
- * See {@link List.Dropdown}
1694
- */
1695
- declare const Dropdown_2: FunctionComponent<DropdownProps_2> & DropdownMembers_2;
1696
-
1697
1692
  /**
1698
1693
  * See {@link Grid.Dropdown}
1699
1694
  */
1700
- declare const Dropdown_3: FunctionComponent<DropdownProps_3> & DropdownMembers_3;
1695
+ declare const Dropdown_2: FunctionComponent<DropdownProps_2> & DropdownMembers_2;
1701
1696
 
1702
1697
  /**
1703
1698
  * See {@link Form.Dropdown.Item}
1704
1699
  */
1705
1700
  declare const DropdownItem: FunctionComponent<DropdownItemProps>;
1706
1701
 
1707
- /**
1708
- * See {@link List.Dropdown.Item}
1709
- */
1710
- declare const DropdownItem_2: FunctionComponent<DropdownItemProps_2>;
1711
-
1712
1702
  /**
1713
1703
  * See {@link Grid.Dropdown.Item}
1714
1704
  */
1715
- declare const DropdownItem_3: FunctionComponent<DropdownItemProps_3>;
1705
+ declare const DropdownItem_2: FunctionComponent<DropdownItemProps_2>;
1716
1706
 
1717
1707
  /**
1718
1708
  * See {@link Form.Dropdown.Item.Props}
@@ -1763,29 +1753,6 @@ declare interface DropdownItemProps_2 {
1763
1753
  keywords?: string[];
1764
1754
  }
1765
1755
 
1766
- declare interface DropdownItemProps_3 {
1767
- /**
1768
- * Value of the dropdown item.
1769
- * Make sure to assign each unique value for each item.
1770
- */
1771
- value: string;
1772
- /**
1773
- * The title displayed for the item.
1774
- */
1775
- title: string;
1776
- /**
1777
- * An optional icon displayed for the item.
1778
- */
1779
- icon?: Image.ImageLike | undefined | null;
1780
- /**
1781
- * An optional property used for providing additional indexable strings for search.
1782
- * When filtering the items in Raycast, the keywords will be searched in addition to the title.
1783
- *
1784
- * @defaultValue The title of its section if any
1785
- */
1786
- keywords?: string[];
1787
- }
1788
-
1789
1756
  declare interface DropdownMembers {
1790
1757
  /**
1791
1758
  * Visually separated group of dropdown items.
@@ -1851,62 +1818,7 @@ declare interface DropdownMembers {
1851
1818
 
1852
1819
  declare interface DropdownMembers_2 {
1853
1820
  /**
1854
- * Visually separated group of dropdown items in a {@link List.Dropdown}.
1855
- *
1856
- * @remarks
1857
- * Use sections to group related dropdown items together.
1858
- *
1859
- * @example
1860
- * ```typescript
1861
- * import { List } from "@raycast/api";
1862
- *
1863
- * export default function Command() {
1864
- * return (
1865
- * <List searchBarAccessory={
1866
- * <List.Dropdown tooltip="Dropdown With Sections">
1867
- * <List.Dropdown.Section title="First Section">
1868
- * <List.Dropdown.Item title="One" value="one" />
1869
- * </List.Dropdown.Section>
1870
- * <List.Dropdown.Section title="Second Section">
1871
- * <List.Dropdown.Item title="Two" value="two" />
1872
- * </List.Dropdown.Section>
1873
- * </List.Dropdown>
1874
- * }>
1875
- * <List.Item title="Item in the Main List">
1876
- * </List>
1877
- * );
1878
- * }
1879
- * ```
1880
- */
1881
- Section: typeof DropdownSection_2;
1882
- /**
1883
- * A dropdown item in a {@link List.Dropdown}
1884
- *
1885
- * @example
1886
- * ```typescript
1887
- * import { List } from "@raycast/api";
1888
- *
1889
- * export default function Command() {
1890
- * return (
1891
- * <List searchBarAccessory={
1892
- * <List.Dropdown tooltip="Dropdown With Items">
1893
- * <List.Dropdown.Item title="One" value="one" />
1894
- * <List.Dropdown.Item title="Two" value="two" />
1895
- * <List.Dropdown.Item title="Three" value="three" />
1896
- * </List.Dropdown>
1897
- * }>
1898
- * <List.Item title="Item in the Main List">
1899
- * </List>
1900
- * );
1901
- * }
1902
- * ```
1903
- */
1904
- Item: typeof DropdownItem_2;
1905
- }
1906
-
1907
- declare interface DropdownMembers_3 {
1908
- /**
1909
- * Visually separated group of dropdown items in a {@link Grid.Dropdown}.
1821
+ * Visually separated group of dropdown items in a Dropdown.
1910
1822
  *
1911
1823
  * @remarks
1912
1824
  * Use sections to group related dropdown items together.
@@ -1933,9 +1845,9 @@ declare interface DropdownMembers_3 {
1933
1845
  * }
1934
1846
  * ```
1935
1847
  */
1936
- Section: typeof DropdownSection_3;
1848
+ Section: typeof DropdownSection_2;
1937
1849
  /**
1938
- * A dropdown item in a {@link Grid.Dropdown}
1850
+ * A dropdown item in a Dropdown
1939
1851
  *
1940
1852
  * @example
1941
1853
  * ```typescript
@@ -1956,7 +1868,7 @@ declare interface DropdownMembers_3 {
1956
1868
  * }
1957
1869
  * ```
1958
1870
  */
1959
- Item: typeof DropdownItem_3;
1871
+ Item: typeof DropdownItem_2;
1960
1872
  }
1961
1873
 
1962
1874
  /**
@@ -1996,55 +1908,13 @@ declare interface DropdownProps_2 {
1996
1908
  * The default value of the dropdown.
1997
1909
  * Keep in mind that `defaultValue` will be configured once per component lifecycle. This means that if a user changes the value, `defaultValue` won't be configured on re-rendering.
1998
1910
  *
1999
- * **If you're using `storeValue` and configured it as `true` _and_ a {@link List.Dropdown.Item} with the same value exists, then it will be selected.**
1911
+ * **If you're using `storeValue` and configured it as `true` _and_ a Dropdown.Item with the same value exists, then it will be selected.**
2000
1912
  *
2001
1913
  * **If you configure `value` at the same time as `defaultValue`, the `value` will have precedence over `defaultValue`.**
2002
1914
  */
2003
1915
  defaultValue?: string;
2004
1916
  /**
2005
- * List sections or items. If {@link List.Dropdown.Item} elements are specified, a default section is automatically created.
2006
- */
2007
- children?: ReactNode;
2008
- /**
2009
- * Callback triggered when the list item selection changes.
2010
- */
2011
- onChange?: (newValue: string) => void;
2012
- }
2013
-
2014
- declare interface DropdownProps_3 {
2015
- /**
2016
- * ID of the dropdown.
2017
- */
2018
- id?: string;
2019
- /**
2020
- * Tooltip displayed when hovering the dropdown.
2021
- */
2022
- tooltip: string;
2023
- /**
2024
- * Placeholder text that will be shown in the dropdown search field.
2025
- *
2026
- * @defaultValue `"Search..."`
2027
- */
2028
- placeholder?: string;
2029
- /**
2030
- * Indicates whether the value of the dropdown should be persisted after selection, and restored next time the dropdown is rendered.
2031
- */
2032
- storeValue?: boolean | undefined;
2033
- /**
2034
- * The currently value of the dropdown.
2035
- */
2036
- value?: string;
2037
- /**
2038
- * The default value of the dropdown.
2039
- * Keep in mind that `defaultValue` will be configured once per component lifecycle. This means that if a user changes the value, `defaultValue` won't be configured on re-rendering.
2040
- *
2041
- * **If you're using `storeValue` and configured it as `true` _and_ a {@link Grid.Dropdown.Item} with the same value exists, then it will be selected.**
2042
- *
2043
- * **If you configure `value` at the same time as `defaultValue`, the `value` will have precedence over `defaultValue`.**
2044
- */
2045
- defaultValue?: string;
2046
- /**
2047
- * Grid sections or items. If {@link Grid.Dropdown.Item} elements are specified, a default section is automatically created.
1917
+ * Grid sections or items. If Dropdown.Item elements are specified, a default section is automatically created.
2048
1918
  */
2049
1919
  children?: ReactNode;
2050
1920
  /**
@@ -2063,15 +1933,10 @@ declare type DropdownRef = FormItemRef;
2063
1933
  */
2064
1934
  declare const DropdownSection: FunctionComponent<DropdownSectionProps>;
2065
1935
 
2066
- /**
2067
- * See {@link List.Dropdown.Section}
2068
- */
2069
- declare const DropdownSection_2: FunctionComponent<DropdownSectionProps_2>;
2070
-
2071
1936
  /**
2072
1937
  * See {@link Grid.Dropdown.Section}
2073
1938
  */
2074
- declare const DropdownSection_3: FunctionComponent<DropdownSectionProps_3>;
1939
+ declare const DropdownSection_2: FunctionComponent<DropdownSectionProps_2>;
2075
1940
 
2076
1941
  /**
2077
1942
  * See {@link Form.Dropdown.Section.Props}
@@ -2098,17 +1963,6 @@ declare interface DropdownSectionProps_2 {
2098
1963
  title?: string;
2099
1964
  }
2100
1965
 
2101
- declare interface DropdownSectionProps_3 {
2102
- /**
2103
- * The item elements of the section.
2104
- */
2105
- children?: ReactNode;
2106
- /**
2107
- * Title displayed above the section
2108
- */
2109
- title?: string;
2110
- }
2111
-
2112
1966
  /**
2113
1967
  * @deprecated Use {@link Color.Dynamic} instead
2114
1968
  */
@@ -2116,8 +1970,6 @@ export declare type DynamicColor = Color.Dynamic;
2116
1970
 
2117
1971
  declare const EmptyView: FunctionComponent<EmptyViewProps>;
2118
1972
 
2119
- declare const EmptyView_2: FunctionComponent<EmptyViewProps_2>;
2120
-
2121
1973
  declare interface EmptyViewProps extends ActionsInterface {
2122
1974
  /**
2123
1975
  * An icon displayed in the center of the EmptyView.
@@ -2137,25 +1989,6 @@ declare interface EmptyViewProps extends ActionsInterface {
2137
1989
  description?: string;
2138
1990
  }
2139
1991
 
2140
- declare interface EmptyViewProps_2 extends ActionsInterface {
2141
- /**
2142
- * An icon displayed in the center of the EmptyView.
2143
- *
2144
- * @remarks
2145
- * If an SVG is used, its longest side will be 128 pixels. Other images will be up/downscaled proportionally so that the longest side is between 64 and 256 pixels.
2146
- * If not specified, Raycast's default `EmptyView` icon will be used.
2147
- */
2148
- icon?: Image.ImageLike | undefined | null;
2149
- /**
2150
- * The main title displayed for the Empty View.
2151
- */
2152
- title?: string;
2153
- /**
2154
- * An optional description for why the empty view is shown.
2155
- */
2156
- description?: string;
2157
- }
2158
-
2159
1992
  /**
2160
1993
  * Holds data about the environment the command is running in. Use the global {@link environment} object to retrieve values.
2161
1994
  */
@@ -2199,6 +2032,10 @@ export declare interface Environment {
2199
2032
  * The type of launch for the command (user initiated or background).
2200
2033
  */
2201
2034
  launchType: LaunchType;
2035
+ /**
2036
+ * Any custom context values passed from a programmatic command launch via `launchCommand`.
2037
+ */
2038
+ launchContext?: LaunchContext;
2202
2039
  }
2203
2040
 
2204
2041
  /**
@@ -2217,6 +2054,7 @@ export declare interface Environment {
2217
2054
  * console.log(`Is development mode: ${environment.isDevelopment}`);
2218
2055
  * console.log(`Raycast theme: ${environment.theme}`);
2219
2056
  * console.log(`Raycast launchType: ${environment.launchType}`);
2057
+ * console.log(`Raycast launchContext: ${environment.launchContext}`);
2220
2058
  * ```
2221
2059
  */
2222
2060
  export declare const environment: Environment;
@@ -3866,24 +3704,24 @@ export declare namespace Grid {
3866
3704
  */
3867
3705
  export type ItemSize = GridItemSize;
3868
3706
  export namespace EmptyView {
3869
- export type Props = EmptyViewProps_2;
3707
+ export type Props = EmptyViewProps;
3870
3708
  }
3871
3709
  export namespace Dropdown {
3872
3710
  /**
3873
3711
  * Props of the {@link Grid.Dropdown} React component.
3874
3712
  */
3875
- export type Props = DropdownProps_3;
3713
+ export type Props = DropdownProps_2;
3876
3714
  export namespace Item {
3877
3715
  /**
3878
3716
  * Props of the {@link Grid.Dropdown.Item} React component.
3879
3717
  */
3880
- export type Props = DropdownItemProps_3;
3718
+ export type Props = DropdownItemProps_2;
3881
3719
  }
3882
3720
  export namespace Section {
3883
3721
  /**
3884
3722
  * Props of the {@link Grid.Dropdown.Section} React component.
3885
3723
  */
3886
- export type Props = DropdownSectionProps_3;
3724
+ export type Props = DropdownSectionProps_2;
3887
3725
  }
3888
3726
  }
3889
3727
  export namespace Item {
@@ -3904,6 +3742,8 @@ declare enum GridAspectRatio {
3904
3742
  One = "1",
3905
3743
  ThreeToTwo = "3/2",
3906
3744
  TwoToThree = "2/3",
3745
+ FourToThree = "4/3",
3746
+ ThreeToFour = "3/4",
3907
3747
  SixteenToNine = "16/9",
3908
3748
  NineToSixteen = "9/16"
3909
3749
  }
@@ -3981,7 +3821,7 @@ declare interface GridMembers {
3981
3821
  * }
3982
3822
  * ```
3983
3823
  */
3984
- EmptyView: typeof EmptyView_2;
3824
+ EmptyView: typeof EmptyView;
3985
3825
  /**
3986
3826
  * A item in the {@link Grid}.
3987
3827
  *
@@ -4076,7 +3916,7 @@ declare interface GridMembers {
4076
3916
  * }
4077
3917
  * ```
4078
3918
  */
4079
- Dropdown: typeof Dropdown_3;
3919
+ Dropdown: typeof Dropdown_2;
4080
3920
  }
4081
3921
 
4082
3922
  declare interface GridProps extends ActionsInterface, NavigationChildInterface {
@@ -4123,13 +3963,14 @@ declare interface GridProps extends ActionsInterface, NavigationChildInterface {
4123
3963
  /**
4124
3964
  * {@link Grid.Dropdown} that will be shown in the right-hand-side of the search bar.
4125
3965
  */
4126
- searchBarAccessory?: ReactElement<DropdownProps_3> | undefined | null;
3966
+ searchBarAccessory?: ReactElement<DropdownProps_2> | undefined | null;
4127
3967
  /**
4128
3968
  * The text that will be displayed in the search bar.
4129
3969
  */
4130
3970
  searchText?: string;
4131
3971
  /**
4132
- * Toggles Raycast filtering. When `true`, Raycast will use the query in the search bar to filter grid
3972
+ * @deprecated Use {@link Grid.filtering} instead.
3973
+ * Toggles Raycast filtering. When `true`, Raycast will use the query in the search bar to filter the
4133
3974
  * items. When `false`, the extension needs to take care of the filtering.
4134
3975
  *
4135
3976
  * @remarks
@@ -4138,6 +3979,19 @@ declare interface GridProps extends ActionsInterface, NavigationChildInterface {
4138
3979
  * @defaultValue `false` when `onSearchTextChange` is specified, `true` otherwise.
4139
3980
  */
4140
3981
  enableFiltering?: boolean;
3982
+ /**
3983
+ * Toggles Raycast filtering. When `true`, Raycast will use the query in the search bar to filter the
3984
+ * items. When `false`, the extension needs to take care of the filtering.
3985
+ *
3986
+ * You can further define how native filtering orders grid sections by setting an object with a `keepSectionOrder` property:
3987
+ * When `true`, ensures that Raycast filtering maintains the section order as defined in the extension.
3988
+ * When `false`, filtering may change the section order depending on the ranking values of the items.
3989
+ *
3990
+ * @defaultValue `false` when `onSearchTextChange` is specified, `true` otherwise.
3991
+ */
3992
+ filtering?: boolean | {
3993
+ keepSectionOrder: boolean;
3994
+ };
4141
3995
  /**
4142
3996
  * Placeholder text that will be shown in the search bar.
4143
3997
  *
@@ -5095,14 +4949,9 @@ export declare type KeyModifier = Keyboard.KeyModifier;
5095
4949
  */
5096
4950
  declare const Label: FunctionComponent<LabelProps>;
5097
4951
 
5098
- /**
5099
- * See {@link List.Item.Detail.Metadata.Label}
5100
- */
5101
- declare const Label_2: FunctionComponent<LabelProps_2>;
5102
-
5103
4952
  declare interface LabelProps {
5104
4953
  /**
5105
- * The title shown above the item.
4954
+ * The title of the item.
5106
4955
  */
5107
4956
  title: string;
5108
4957
  /**
@@ -5115,19 +4964,39 @@ declare interface LabelProps {
5115
4964
  text?: string;
5116
4965
  }
5117
4966
 
5118
- declare interface LabelProps_2 {
5119
- /**
5120
- * The title of the item.
5121
- */
5122
- title: string;
5123
- /**
5124
- * An icon to illustrate the value of the item.
5125
- */
5126
- icon?: Image.ImageLike | undefined | null;
4967
+ /**
4968
+ * Launches another command of the same extension.
4969
+ * Use this method if your command needs to open another command based on user interaction,
4970
+ * or when an immediate background refresh should be triggered, for example when a command needs to update an associated menu-bar command.
4971
+ *
4972
+ * @param options - A parameter object with the properties:
4973
+ * `name`: command name as defined in the extension's manifest
4974
+ * `type`: {@link LaunchType.UserInitiated} or {@link LaunchType.Background}
4975
+ * `arguments`: optional object for the argument properties and values as defined in the extension's manifest, for example: `{ "argument1": "value1" }`
4976
+ * `context`: arbitrary object for custom data that should be passed to the command and accessible as `environment.launchContext`; the object must be JSON serializable (Dates and Buffers supported)
4977
+ * @returns A Promise that resolves when the command has been launched. (Note that this does not indicate that the launched command has finished executing.)
4978
+ *
4979
+ * @example
4980
+ * ```typescript
4981
+ * import { launchCommand, LaunchType } from "@raycast/api";
4982
+ *
4983
+ * export default async () => {
4984
+ * await launchCommand({ name: "list", type: LaunchType.UserInitiated, context: { "foo": "bar" } });
4985
+ * };
4986
+ * ```
4987
+ */
4988
+ export declare function launchCommand(options: {
4989
+ name: string;
4990
+ type: LaunchType;
4991
+ arguments?: Arguments | null;
4992
+ context?: LaunchContext | null;
4993
+ }): Promise<void>;
4994
+
4995
+ declare interface LaunchContext {
5127
4996
  /**
5128
- * The text value of the item.
4997
+ * The context values for a command launch.
5129
4998
  */
5130
- text?: string;
4999
+ [item: string]: any;
5131
5000
  }
5132
5001
 
5133
5002
  /**
@@ -5151,11 +5020,6 @@ export declare enum LaunchType {
5151
5020
  */
5152
5021
  declare const Link: FunctionComponent<LinkProps>;
5153
5022
 
5154
- /**
5155
- * See {@link List.Item.Detail.Metadata.Link}
5156
- */
5157
- declare const Link_2: FunctionComponent<LinkProps_2>;
5158
-
5159
5023
  declare interface LinkProps {
5160
5024
  /**
5161
5025
  * The title shown above the item.
@@ -5171,21 +5035,6 @@ declare interface LinkProps {
5171
5035
  text: string;
5172
5036
  }
5173
5037
 
5174
- declare interface LinkProps_2 {
5175
- /**
5176
- * The title shown above the item.
5177
- */
5178
- title: string;
5179
- /**
5180
- * The target of the link.
5181
- */
5182
- target: string;
5183
- /**
5184
- * The text value of the item.
5185
- */
5186
- text: string;
5187
- }
5188
-
5189
5038
  /**
5190
5039
  * Displays {@link List.Section} or {@link List.Item}, optionally {@link List.Dropdown}.
5191
5040
  *
@@ -5292,6 +5141,42 @@ export declare namespace List {
5292
5141
  * Props of the {@link List.Item.Detail} React component.
5293
5142
  */
5294
5143
  export type Props = DetailProps_3;
5144
+ export namespace Metadata {
5145
+ /**
5146
+ * Props of the {@link List.Item.Detail.Metadata} React component.
5147
+ */
5148
+ export type Props = MetadataProps;
5149
+ export namespace Label {
5150
+ /**
5151
+ * Props of the {@link List.Item.Detail.Metadata.Label} React component.
5152
+ */
5153
+ export type Props = LabelProps;
5154
+ }
5155
+ export namespace Separator {
5156
+ /**
5157
+ * Props of the {@link List.Item.Detail.Metadata.Separator} React component.
5158
+ */
5159
+ export type Props = SeparatorProps_2;
5160
+ }
5161
+ export namespace Link {
5162
+ /**
5163
+ * Props of the {@link List.Item.Detail.Metadata.Link} React component.
5164
+ */
5165
+ export type Props = LinkProps;
5166
+ }
5167
+ export namespace TagList {
5168
+ /**
5169
+ * Props of the {@link List.Item.Detail.Metadata.TagList} React component.
5170
+ */
5171
+ export type Props = TagListProps;
5172
+ export namespace Item {
5173
+ /**
5174
+ * Props of the {@link List.Item.Detail.Metadata.TagList.Item} React component.
5175
+ */
5176
+ export type Props = TagListItemProps;
5177
+ }
5178
+ }
5179
+ }
5295
5180
  }
5296
5181
  }
5297
5182
  export namespace Section {
@@ -5484,7 +5369,7 @@ declare interface ListProps_2 extends ActionsInterface, NavigationChildInterface
5484
5369
  searchText?: string;
5485
5370
  /**
5486
5371
  * @deprecated Use {@link List.filtering} instead.
5487
- * Toggles Raycast filtering. When `true`, Raycast will use the query in the search bar to filter list
5372
+ * Toggles Raycast filtering. When `true`, Raycast will use the query in the search bar to filter the
5488
5373
  * items. When `false`, the extension needs to take care of the filtering.
5489
5374
  *
5490
5375
  * @remarks
@@ -5494,7 +5379,7 @@ declare interface ListProps_2 extends ActionsInterface, NavigationChildInterface
5494
5379
  */
5495
5380
  enableFiltering?: boolean;
5496
5381
  /**
5497
- * Toggles Raycast filtering. When `true`, Raycast will use the query in the search bar to filter list
5382
+ * Toggles Raycast filtering. When `true`, Raycast will use the query in the search bar to filter the
5498
5383
  * items. When `false`, the extension needs to take care of the filtering.
5499
5384
  *
5500
5385
  * You can further define how native filtering orders list sections by setting an object with a `keepSectionOrder` property:
@@ -5526,7 +5411,7 @@ declare interface ListProps_2 extends ActionsInterface, NavigationChildInterface
5526
5411
  * Callback triggered when the search bar text changes.
5527
5412
  *
5528
5413
  * @remarks
5529
- * Specifying this implicitly toggles `enableFiltering` to false. To enable native filtering when using `onSearchTextChange`, explicitly set `enableFiltering` to true.
5414
+ * Specifying this implicitly toggles `filtering` to false. To enable native filtering when using `onSearchTextChange`, explicitly set `filtering` to `true`.
5530
5415
  */
5531
5416
  onSearchTextChange?: (text: string) => void;
5532
5417
  /**
@@ -5769,7 +5654,7 @@ declare interface MenuBarExtraMembers {
5769
5654
  /**
5770
5655
  * @deprecated Use {@link MenuBarExtra.Section} instead to wrap your items. A separator is added automatically.
5771
5656
  */
5772
- Separator: typeof Separator_4;
5657
+ Separator: typeof Separator_3;
5773
5658
  /**
5774
5659
  * A group of related {@link MenuBarExtra.Item} or {@link MenuBarExtra.Submenu}.
5775
5660
  *
@@ -5853,11 +5738,6 @@ declare interface MenuBarExtraProps {
5853
5738
  */
5854
5739
  declare const Metadata: FunctionComponent<MetadataProps> & MetadataMembers;
5855
5740
 
5856
- /**
5857
- * See {@link List.Item.Detail.Metadata}
5858
- */
5859
- declare const Metadata_2: FunctionComponent<MetadataProps_2> & MetadataMembers_2;
5860
-
5861
5741
  declare interface MetadataMembers {
5862
5742
  /**
5863
5743
  * A single value with an optional icon.
@@ -5877,85 +5757,9 @@ declare interface MetadataMembers {
5877
5757
  TagList: typeof TagList;
5878
5758
  }
5879
5759
 
5880
- declare interface MetadataMembers_2 {
5881
- /**
5882
- * A title with, optionally, an icon and/or text to its right.
5883
- *
5884
- * @example
5885
- * ```typescript
5886
- * import { List } from "@raycast/api";
5887
- *
5888
- * export default function Metadata() {
5889
- * return (
5890
- * <List isShowingDetail>
5891
- * <List.Item
5892
- * title="Bulbasaur"
5893
- * detail={
5894
- * <List.Item.Detail
5895
- * metadata={
5896
- * <List.Item.Detail.Metadata>
5897
- * <List.Item.Detail.Metadata.Label title="Type" icon="pokemon_types/grass.svg" text="Grass"/>
5898
- * </List.Item.Detail.Metadata>
5899
- * }
5900
- * />
5901
- * }
5902
- * />
5903
- * </List>
5904
- * );
5905
- * }
5906
- * ```
5907
- */
5908
- Label: typeof Label_2;
5909
- /**
5910
- * An item to display a link.
5911
- */
5912
- Link: typeof Link_2;
5913
- /**
5914
- * A metadata item that shows a separator line. Use it for grouping and visually separating metadata items.
5915
- *
5916
- * @example
5917
- * ```typescript
5918
- * import { List } from "@raycast/api";
5919
- *
5920
- * export default function Metadata() {
5921
- * return (
5922
- * <List isShowingDetail>
5923
- * <List.Item
5924
- * title="Bulbasaur"
5925
- * detail={
5926
- * <List.Item.Detail
5927
- * metadata={
5928
- * <List.Item.Detail.Metadata>
5929
- * <List.Item.Detail.Metadata.Label title="Type" icon="pokemon_types/grass.svg" text="Grass"/>
5930
- * <List.Item.Detail.Metadata.Separator />
5931
- * <List.Item.Detail.Metadata.Label title="Type" icon="pokemon_types/poison.svg" text="Poison"/>
5932
- * </List.Item.Detail.Metadata>
5933
- * }
5934
- * />
5935
- * }
5936
- * />
5937
- * </List>
5938
- * );
5939
- * }
5940
- * ```
5941
- */
5942
- Separator: typeof Separator_3;
5943
- /**
5944
- * A list of {@link List.Item.Detail.Metadata.TagList.Item} displayed in a row.
5945
- */
5946
- TagList: typeof TagList_2;
5947
- }
5948
-
5949
5760
  declare interface MetadataProps {
5950
5761
  /**
5951
- * The Detail.Metadata.Item elements of the Metadata view.
5952
- */
5953
- children: ReactNode;
5954
- }
5955
-
5956
- declare interface MetadataProps_2 {
5957
- /**
5958
- * The {@link Detail.Metadata.Item}s of the Metadata view.
5762
+ * The elements of the Metadata view.
5959
5763
  */
5960
5764
  children: ReactNode;
5961
5765
  }
@@ -6850,15 +6654,10 @@ declare const Separator: FunctionComponent<SeparatorProps>;
6850
6654
  */
6851
6655
  declare const Separator_2: FunctionComponent<SeparatorProps_2>;
6852
6656
 
6853
- /**
6854
- * See {@link List.Item.Detail.Metadata.Label}
6855
- */
6856
- declare const Separator_3: FunctionComponent<SeparatorProps_3>;
6857
-
6858
6657
  /**
6859
6658
  * See {@link MenuBarExtra.Separator}
6860
6659
  */
6861
- declare const Separator_4: FunctionComponent<SeparatorProps_4>;
6660
+ declare const Separator_3: FunctionComponent<SeparatorProps_3>;
6862
6661
 
6863
6662
  /**
6864
6663
  * See {@link Form.Separator.Props}
@@ -6872,9 +6671,6 @@ declare interface SeparatorProps_2 {
6872
6671
  declare interface SeparatorProps_3 {
6873
6672
  }
6874
6673
 
6875
- declare interface SeparatorProps_4 {
6876
- }
6877
-
6878
6674
  /**
6879
6675
  * @deprecated Use {@link LocalStorage.setItem} instead
6880
6676
  */
@@ -7169,21 +6965,11 @@ declare interface SubmitFormProps<T extends Form.Values> {
7169
6965
  */
7170
6966
  declare const TagList: FunctionComponent<TagListProps> & TagListMembers;
7171
6967
 
7172
- /**
7173
- * See {@link List.Item.Detail.Metadata.TagList}
7174
- */
7175
- declare const TagList_2: FunctionComponent<TagListProps_2> & TagListMembers_2;
7176
-
7177
6968
  /**
7178
6969
  * See {@link Detail.Metadata.TagList.Item}
7179
6970
  */
7180
6971
  declare const TagListItem: FunctionComponent<TagListItemProps>;
7181
6972
 
7182
- /**
7183
- * See {@link Detail.Metadata.TagList.Item}
7184
- */
7185
- declare const TagListItem_2: FunctionComponent<TagListItemProps_2>;
7186
-
7187
6973
  declare interface TagListItemProps {
7188
6974
  /**
7189
6975
  * An optional icon in front of the text of the tag.
@@ -7199,21 +6985,6 @@ declare interface TagListItemProps {
7199
6985
  color?: Color.ColorLike | undefined | null;
7200
6986
  }
7201
6987
 
7202
- declare interface TagListItemProps_2 {
7203
- /**
7204
- * An optional icon in front of the text of the tag.
7205
- */
7206
- icon?: Image.ImageLike | undefined | null;
7207
- /**
7208
- * The text of the tag.
7209
- */
7210
- text: string;
7211
- /**
7212
- * Changes the text color to the provided color and sets a transparent background with the same color.
7213
- */
7214
- color?: Color.ColorLike | undefined | null;
7215
- }
7216
-
7217
6988
  declare interface TagListMembers {
7218
6989
  /**
7219
6990
  * A Tag in a {@link Detail.Metadata.TagList}.
@@ -7221,13 +6992,6 @@ declare interface TagListMembers {
7221
6992
  Item: typeof TagListItem;
7222
6993
  }
7223
6994
 
7224
- declare interface TagListMembers_2 {
7225
- /**
7226
- * A Tag in a {@link List.Item.Detail.Metadata.TagList}.
7227
- */
7228
- Item: typeof TagListItem_2;
7229
- }
7230
-
7231
6995
  declare interface TagListProps {
7232
6996
  /**
7233
6997
  * The title shown above the item.
@@ -7239,17 +7003,6 @@ declare interface TagListProps {
7239
7003
  children: ReactNode;
7240
7004
  }
7241
7005
 
7242
- declare interface TagListProps_2 {
7243
- /**
7244
- * The title shown above the item.
7245
- */
7246
- title: string;
7247
- /**
7248
- * The tags contained in the TagList.
7249
- */
7250
- children: ReactNode;
7251
- }
7252
-
7253
7006
  /**
7254
7007
  * See {@link Form.TagPicker}
7255
7008
  */
@@ -7638,7 +7391,7 @@ declare interface TrashProps {
7638
7391
  *
7639
7392
  * @example
7640
7393
  * ```typescript
7641
- * import { open } from "@raycast/api";
7394
+ * import { updateCommandMetadata } from "@raycast/api";
7642
7395
  *
7643
7396
  * export default async () => {
7644
7397
  * await updateCommandMetadata({ subtitle: "My new subtitle" });