@raycast/api 1.30.2 → 1.32.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 (81) hide show
  1. package/README.md +2 -2
  2. package/bin/arm64/ray +0 -0
  3. package/bin/ray +10 -4
  4. package/bin/x86/ray +0 -0
  5. package/package.json +2 -2
  6. package/types/index.d.ts +5192 -4098
  7. package/types/api/app/app.d.ts +0 -171
  8. package/types/api/app/clipboard.d.ts +0 -63
  9. package/types/api/app/index.d.ts +0 -4
  10. package/types/api/app/keyboard.d.ts +0 -56
  11. package/types/api/app/localStorage.d.ts +0 -117
  12. package/types/api/components/ActionPanel.d.ts +0 -261
  13. package/types/api/components/Detail.d.ts +0 -38
  14. package/types/api/components/Form.d.ts +0 -1016
  15. package/types/api/components/List.d.ts +0 -579
  16. package/types/api/components/actions/Action.d.ts +0 -458
  17. package/types/api/components/actions/CopyToClipboardAction.d.ts +0 -40
  18. package/types/api/components/actions/CreateQuicklinkAction.d.ts +0 -42
  19. package/types/api/components/actions/CreateSnippetAction.d.ts +0 -40
  20. package/types/api/components/actions/OpenAction.d.ts +0 -47
  21. package/types/api/components/actions/OpenInBrowserAction.d.ts +0 -43
  22. package/types/api/components/actions/OpenWithAction.d.ts +0 -40
  23. package/types/api/components/actions/PasteAction.d.ts +0 -40
  24. package/types/api/components/actions/PushAction.d.ts +0 -38
  25. package/types/api/components/actions/ShowInFinderAction.d.ts +0 -42
  26. package/types/api/components/actions/SubmitFormAction.d.ts +0 -35
  27. package/types/api/components/actions/TrashAction.d.ts +0 -43
  28. package/types/api/components/actions/index.d.ts +0 -1
  29. package/types/api/components/index.d.ts +0 -5
  30. package/types/api/components/propTypes.d.ts +0 -1
  31. package/types/api/components/types.d.ts +0 -30
  32. package/types/api/deprecated.d.ts +0 -415
  33. package/types/api/environment/environment.d.ts +0 -48
  34. package/types/api/environment/index.d.ts +0 -3
  35. package/types/api/environment/preferences.d.ts +0 -31
  36. package/types/api/environment/workspace.d.ts +0 -62
  37. package/types/api/hooks/index.d.ts +0 -1
  38. package/types/api/hooks/useNavigation.d.ts +0 -66
  39. package/types/api/index.d.ts +0 -6
  40. package/types/api/internal/comm/index.d.ts +0 -1
  41. package/types/api/internal/components/ErrorBoundary.d.ts +0 -1
  42. package/types/api/internal/components/Navigation.d.ts +0 -1
  43. package/types/api/internal/components/Root.d.ts +0 -1
  44. package/types/api/internal/components/index.d.ts +0 -3
  45. package/types/api/internal/devtools/actionPanel.d.ts +0 -1
  46. package/types/api/internal/devtools/index.d.ts +0 -2
  47. package/types/api/internal/devtools/react.d.ts +0 -1
  48. package/types/api/internal/hooks/index.d.ts +0 -1
  49. package/types/api/internal/hooks/useId.d.ts +0 -1
  50. package/types/api/internal/index.d.ts +0 -6
  51. package/types/api/internal/rendering/callbacks.d.ts +0 -1
  52. package/types/api/internal/rendering/index.d.ts +0 -6
  53. package/types/api/internal/rendering/logger.d.ts +0 -4
  54. package/types/api/internal/rendering/node-builders/actions.d.ts +0 -3
  55. package/types/api/internal/rendering/node-builders/detail.d.ts +0 -2
  56. package/types/api/internal/rendering/node-builders/forms.d.ts +0 -2
  57. package/types/api/internal/rendering/node-builders/keyboard.d.ts +0 -1
  58. package/types/api/internal/rendering/node-builders/list.d.ts +0 -4
  59. package/types/api/internal/rendering/node-builders/navigationStack.d.ts +0 -1
  60. package/types/api/internal/rendering/node-builders/root.d.ts +0 -1
  61. package/types/api/internal/rendering/node-builders/types.d.ts +0 -1
  62. package/types/api/internal/rendering/node-builders/utils.d.ts +0 -1
  63. package/types/api/internal/rendering/reconciler/index.d.ts +0 -1
  64. package/types/api/internal/rendering/reconciler/noHydratation.d.ts +0 -37
  65. package/types/api/internal/rendering/reconciler/noMutation.d.ts +0 -18
  66. package/types/api/internal/rendering/renderer.d.ts +0 -1
  67. package/types/api/internal/utils/ids.d.ts +0 -1
  68. package/types/api/internal/utils/index.d.ts +0 -3
  69. package/types/api/internal/utils/internal-children.d.ts +0 -26
  70. package/types/api/internal/utils/propTypes.d.ts +0 -3
  71. package/types/api/ui/color.d.ts +0 -115
  72. package/types/api/ui/errors.d.ts +0 -1
  73. package/types/api/ui/feedback/alert.d.ts +0 -97
  74. package/types/api/ui/feedback/hud.d.ts +0 -16
  75. package/types/api/ui/feedback/index.d.ts +0 -3
  76. package/types/api/ui/feedback/toast.d.ts +0 -174
  77. package/types/api/ui/icon.d.ts +0 -88
  78. package/types/api/ui/image.d.ts +0 -162
  79. package/types/api/ui/index.d.ts +0 -5
  80. package/types/core/message-types.d.ts +0 -17
  81. package/types/core/preferences.d.ts +0 -69
@@ -1,579 +0,0 @@
1
- import { ReactElement, ReactNode } from "react";
2
- import PropTypes from "prop-types";
3
- import { Image } from "../ui";
4
- import { ActionsInterface, NavigationChildInterface } from "./types";
5
- /**
6
- * Displays {@link List.Section} or {@link List.Item}, optionally {@link List.Dropdown}.
7
- *
8
- * @remarks
9
- * The list uses built-in filtering by indexing the title of list items and additionally keywords.
10
- *
11
- * @example
12
- * ```typescript
13
- * import { List } from "@raycast/api";
14
- *
15
- * function DrinkDropdown(props: DrinkDropdownProps) {
16
- * const { isLoading = false, drinkTypes, onDrinkTypeChange } = props;
17
- * return (
18
- * <List.Dropdown
19
- * tooltip="Select Drink Type"
20
- * storeValue={true}
21
- * onChange={(newValue) => {
22
- * onDrinkTypeChange(newValue);
23
- * }}
24
- * >
25
- * <List.Dropdown.Section title="Alcoholic Beverages">
26
- * {drinkTypes.map((drinkType) => (
27
- * <List.Dropdown.Item key={drinkType.id} title={drinkType.name} value={drinkType.id} />
28
- * ))}
29
- * </List.Dropdown.Section>
30
- * </List.Dropdown>
31
- * );
32
- * }
33
- *
34
- * export default function Command() {
35
- * const drinkTypes = [{ id: 1, name: 'Beer' }, { id: 2, name: 'Wine' }];
36
- * const onDrinkTypeChange = (newValue) => {
37
- * console.log(newValue);
38
- * }
39
- * return (
40
- * <List
41
- * navigationTitle="Search Beers"
42
- * searchBarPlaceholder="Search your favorite drink"
43
- * searchBarAccessory={<DrinkDropdown drinkTypes={drinkTypes} onDrinkTypeChange={onDrinkTypeChange} />}
44
- * >
45
- * <List.Item title="Augustiner Helles" />
46
- * <List.Item title="Camden Hells" />
47
- * <List.Item title="Leffe Blonde" />
48
- * <List.Item title="Sierra Nevada IPA" />
49
- * </List>
50
- * );
51
- * }
52
- * ```
53
- */
54
- export declare function List(props: List.Props): ReactElement<List.Props>;
55
- export declare namespace List {
56
- var propTypes: {
57
- onSelectionChange: PropTypes.Requireable<(...args: any[]) => any>;
58
- searchBarAccessory: PropTypes.Requireable<PropTypes.ReactNodeLike>;
59
- searchText: PropTypes.Requireable<string>;
60
- enableFiltering: PropTypes.Requireable<boolean>;
61
- searchBarPlaceholder: PropTypes.Requireable<string>;
62
- selectedItemId: PropTypes.Requireable<string>;
63
- throttle: PropTypes.Requireable<boolean>;
64
- onSearchTextChange: PropTypes.Requireable<(...args: any[]) => any>;
65
- isLoading: PropTypes.Requireable<boolean>;
66
- navigationTitle: PropTypes.Requireable<string>;
67
- };
68
- var displayName: string;
69
- }
70
- /**
71
- * See {@link List.Section}
72
- */
73
- declare function ListSection(props: List.Section.Props): ReactElement<List.Section.Props>;
74
- declare namespace ListSection {
75
- var propTypes: {
76
- id: PropTypes.Requireable<string>;
77
- title: PropTypes.Requireable<string>;
78
- subtitle: PropTypes.Requireable<string>;
79
- };
80
- var displayName: string;
81
- }
82
- /**
83
- * See {@link List.Item}
84
- */
85
- declare function ListItem(props: List.Item.Props): ReactElement<List.Item.Props>;
86
- declare namespace ListItem {
87
- var propTypes: {
88
- id: PropTypes.Requireable<string>;
89
- title: PropTypes.Validator<string>;
90
- subtitle: PropTypes.Requireable<string>;
91
- accessoryTitle: PropTypes.Requireable<string>;
92
- keywords: PropTypes.Requireable<string[]>;
93
- icon: PropTypes.Requireable<string | Required<PropTypes.InferProps<{
94
- fileIcon: PropTypes.Validator<string>;
95
- }>> | PropTypes.InferProps<{
96
- source: PropTypes.Requireable<string | PropTypes.InferProps<{
97
- light: PropTypes.Validator<string>;
98
- dark: PropTypes.Validator<string>;
99
- }>>;
100
- fallback: PropTypes.Requireable<string | PropTypes.InferProps<{
101
- light: PropTypes.Validator<string>;
102
- dark: PropTypes.Validator<string>;
103
- }>>;
104
- mask: PropTypes.Requireable<Image.Mask>;
105
- tintColor: PropTypes.Requireable<string | PropTypes.InferProps<{
106
- light: PropTypes.Validator<string>;
107
- dark: PropTypes.Validator<string>;
108
- adjustContrast: PropTypes.Requireable<boolean>;
109
- }>>;
110
- }>>;
111
- };
112
- var displayName: string;
113
- }
114
- /**
115
- * See {@link List.Item.Detail}
116
- */
117
- declare function ListItemDetail(props: List.Item.Detail.Props): ReactElement<List.Item.Detail.Props>;
118
- declare namespace ListItemDetail {
119
- var propTypes: {
120
- isLoading: PropTypes.Requireable<boolean>;
121
- markdown: PropTypes.Requireable<string>;
122
- };
123
- var displayName: string;
124
- }
125
- /**
126
- * See {@link List.Dropdown}
127
- */
128
- declare function ListDropdown(props: List.Dropdown.Props): ReactElement<List.Dropdown.Props>;
129
- declare namespace ListDropdown {
130
- var propTypes: {
131
- id: PropTypes.Requireable<string>;
132
- tooltip: PropTypes.Validator<string>;
133
- storeValue: (props: List.Dropdown.Props, propName: keyof List.Dropdown.Props, componentName: string, location: string, propFullName: string) => Error;
134
- value: PropTypes.Requireable<string>;
135
- defaultValue: PropTypes.Requireable<string>;
136
- onChange: PropTypes.Requireable<(...args: any[]) => any>;
137
- };
138
- var displayName: string;
139
- }
140
- /**
141
- * See {@link List.Dropdown.Section}
142
- */
143
- declare function ListDropdownSection(props: List.Dropdown.Section.Props): ReactElement<List.Dropdown.Section.Props>;
144
- declare namespace ListDropdownSection {
145
- var propTypes: {
146
- title: PropTypes.Requireable<string>;
147
- };
148
- var displayName: string;
149
- }
150
- /**
151
- * See {@link List.Dropdown.Item}
152
- */
153
- declare function ListDropdownItem(props: List.Dropdown.Item.Props): ReactElement<List.Dropdown.Item.Props>;
154
- declare namespace ListDropdownItem {
155
- var propTypes: {
156
- value: PropTypes.Requireable<string>;
157
- title: PropTypes.Validator<string>;
158
- icon: PropTypes.Requireable<string | Required<PropTypes.InferProps<{
159
- fileIcon: PropTypes.Validator<string>;
160
- }>> | PropTypes.InferProps<{
161
- source: PropTypes.Requireable<string | PropTypes.InferProps<{
162
- light: PropTypes.Validator<string>;
163
- dark: PropTypes.Validator<string>;
164
- }>>;
165
- fallback: PropTypes.Requireable<string | PropTypes.InferProps<{
166
- light: PropTypes.Validator<string>;
167
- dark: PropTypes.Validator<string>;
168
- }>>;
169
- mask: PropTypes.Requireable<Image.Mask>;
170
- tintColor: PropTypes.Requireable<string | PropTypes.InferProps<{
171
- light: PropTypes.Validator<string>;
172
- dark: PropTypes.Validator<string>;
173
- adjustContrast: PropTypes.Requireable<boolean>;
174
- }>>;
175
- }>>;
176
- };
177
- var displayName: string;
178
- }
179
- export declare namespace List {
180
- /**
181
- * A item in the {@link List}.
182
- *
183
- * @remarks
184
- * This is one of the foundational UI components of Raycast. A list item represents a single entity. It can be a
185
- * GitHub pull request, a file, or anything else. You most likely want to perform actions on this item, so make it clear
186
- * to the user what this list item is about.
187
- *
188
- * @example
189
- * ```typescript
190
- * import { Icon, List } from "@raycast/api";
191
- *
192
- * export default function Command() {
193
- * return (
194
- * <List>
195
- * <List.Item icon={Icon.Star} title="Augustiner Helles" subtitle="0,5 Liter" accessoryTitle="Germany" />
196
- * </List>
197
- * );
198
- * }
199
- * ```
200
- */
201
- const Item: typeof ListItem;
202
- /**
203
- * A group of related {@link List.Item}.
204
- *
205
- * @remarks
206
- * Sections are a great way to structure your list. For example, group GitHub issues with the same status and order them by priority.
207
- * This way, users can quickly access what is most relevant.
208
- *
209
- * @example
210
- * ```typescript
211
- * import { List } from "@raycast/api";
212
- *
213
- * export default function Command() {
214
- * return (
215
- * <List>
216
- * <List.Section title="Lager">
217
- * <List.Item title="Camden Hells" />
218
- * </List.Section>
219
- * <List.Section title="IPA">
220
- * <List.Item title="Sierra Nevada IPA" />
221
- * </List.Section>
222
- * </List>
223
- * );
224
- * }
225
- * ```
226
- */
227
- const Section: typeof ListSection;
228
- /**
229
- * A dropdown menu that will be shown in the right-hand-side of the search bar.
230
- *
231
- * @example
232
- * ```typescript
233
- * import { List } from "@raycast/api";
234
- *
235
- * function DrinkDropdown(props: DrinkDropdownProps) {
236
- * const { isLoading = false, drinkTypes, onDrinkTypeChange } = props;
237
- * return (
238
- * <List.Dropdown
239
- * tooltip="Select Drink Type"
240
- * disabled={isLoading}
241
- * storeValue={true}
242
- * onChange={(newValue) => {
243
- * onDrinkTypeChange(newValue);
244
- * }}
245
- * >
246
- * <List.Dropdown.Section title="Alcoholic Beverages">
247
- * {drinkTypes.map((drinkType) => (
248
- * <List.Dropdown.Item key={drinkType.id} title={drinkType.name} value={drinkType.id} />
249
- * ))}
250
- * </List.Dropdown.Section>
251
- * </List.Dropdown>
252
- * );
253
- * }
254
- *
255
- * export default function Command() {
256
- * const drinkTypes = [{ id: 1, name: 'Beer' }, { id: 2, name: 'Wine' }];
257
- * const onDrinkTypeChange = (newValue) => {
258
- * console.log(newValue);
259
- * }
260
- * return (
261
- * <List
262
- * navigationTitle="Search Beers"
263
- * searchBarPlaceholder="Search your favorite drink"
264
- * searchBarAccessory={<DrinkDropdown drinkTypes={drinkTypes} onDrinkTypeChange={onDrinkTypeChange} />}
265
- * >
266
- * <List.Item title="Augustiner Helles" />
267
- * <List.Item title="Camden Hells" />
268
- * <List.Item title="Leffe Blonde" />
269
- * <List.Item title="Sierra Nevada IPA" />
270
- * </List>
271
- * );
272
- * }
273
- * ```
274
- */
275
- const Dropdown: typeof ListDropdown;
276
- /**
277
- * Props of the {@link List} React component.
278
- */
279
- interface Props extends ActionsInterface, NavigationChildInterface {
280
- /**
281
- * List sections or items. If {@link List.Item} elements are specified, a default section is automatically created.
282
- */
283
- children?: ReactNode;
284
- /**
285
- * Callback triggered when the item selection in the list changes.
286
- */
287
- onSelectionChange?: (id?: string) => void;
288
- /**
289
- * {@link List.Dropdown} that will be shown in the right-hand-side of the search bar.
290
- */
291
- searchBarAccessory?: ReactElement<List.Dropdown.Props> | null | boolean;
292
- /**
293
- * The text that will be displayed in the search bar.
294
- */
295
- searchText?: string;
296
- /**
297
- * Toggles Raycast filtering. When `true`, Raycast will use the query in the search bar to filter list
298
- * items. When `false`, the extension needs to take care of the filtering.
299
- *
300
- * @remarks
301
- * Having this enabled when filtering items in the extension is unspecified behaviour.
302
- *
303
- * @defaultValue false when `onSearchTextChange` is specified, true otherwise.
304
- */
305
- enableFiltering?: boolean;
306
- /**
307
- * Placeholder text that will be shown in the search bar.
308
- *
309
- * @defaultValue Search value...
310
- */
311
- searchBarPlaceholder?: string;
312
- /**
313
- * Selects the item with the specified id.
314
- */
315
- selectedItemId?: string;
316
- /**
317
- * Defines whether the {@link ListProps.onSearchTextChange} will be triggered on every keyboard press or with a delay for throttling the events.
318
- * Recommended to set to `true` when using custom filtering logic with asynchronous operations (e.g. network requests).
319
- * @defaultValue false
320
- */
321
- throttle?: boolean;
322
- /**
323
- * Callback triggered when the search bar text changes.
324
- *
325
- * @remarks
326
- * Specifying this implicitly toggles `enableFiltering` to false. To enable native filtering when using `onSearchTextChange`, explicitly set `enableFiltering` to true.
327
- */
328
- onSearchTextChange?: (text: string) => void;
329
- /**
330
- * Whether the List should have an area on the right side of the items to show additional details about the selected item.
331
- *
332
- * When true, it is recommended not to show any accessories on the `List.Item` and instead show the additional information in the `List.Item.Detail` view.
333
- */
334
- isShowingDetail?: boolean;
335
- }
336
- namespace Item {
337
- /**
338
- * Props of the {@link List.Item} React component.
339
- */
340
- interface Props extends ActionsInterface {
341
- /**
342
- * ID of the item.
343
- * Make sure to assign each item a unique ID or a UUID will be auto generated.
344
- */
345
- id?: string;
346
- /**
347
- * The main title displayed for that item.
348
- */
349
- title: string;
350
- /**
351
- * An optional subtitle displayed next to the main title.
352
- */
353
- subtitle?: string;
354
- /**
355
- * An optional property used for providing additional indexable strings for search.
356
- * When filtering the list in Raycast through the search bar, the keywords will be searched in addition to the title.
357
- */
358
- keywords?: string[];
359
- /**
360
- * A optional icon displayed for the list item.
361
- */
362
- icon?: Image.ImageLike;
363
- /**
364
- * A optional icon displayed as accessory for the list item.
365
- */
366
- accessoryIcon?: Image.ImageLike;
367
- /**
368
- * An additional title displayed for the item.
369
- */
370
- accessoryTitle?: string;
371
- /**
372
- * An {@link ActionPanel} that will be updated for the selected list item.
373
- */
374
- actions?: ReactNode | null;
375
- /**
376
- * The `List.Item.Detail` to be rendered in the right side area when the parent List is showing details and the item is selected.
377
- */
378
- detail?: ReactNode;
379
- }
380
- namespace Detail {
381
- /**
382
- * Props of the {@link List.Item.Detail} React component.
383
- */
384
- interface Props {
385
- /**
386
- * Indicates whether a loading bar should be shown or hidden above the detail
387
- *
388
- * @defaultValue false
389
- */
390
- isLoading?: boolean;
391
- /**
392
- * The CommonMark string to be rendered in the right side area when the parent List is showing details and the item is selected.
393
- */
394
- markdown?: string | null;
395
- }
396
- }
397
- }
398
- namespace Section {
399
- /**
400
- * Props of the {@link List.Section} React component.
401
- */
402
- interface Props {
403
- /**
404
- * The {@link List.Item} elements of the section.
405
- */
406
- children?: ReactNode;
407
- /**
408
- * ID of the section.
409
- * Make sure to assign each section a unique ID or a UUID will be auto generated.
410
- */
411
- id?: string;
412
- /**
413
- * Title displayed above the section.
414
- */
415
- title?: string;
416
- /**
417
- * An optional subtitle displayed next to the title of the section.
418
- */
419
- subtitle?: string;
420
- }
421
- }
422
- namespace Dropdown {
423
- /**
424
- * Props of the {@link List.Dropdown} React component.
425
- */
426
- interface Props {
427
- /**
428
- * ID of the dropdown.
429
- */
430
- id?: string;
431
- /**
432
- * Tooltip displayed when hovering the dropdown.
433
- */
434
- tooltip: string;
435
- /**
436
- * Placeholder text that will be shown in the dropdown search field.
437
- *
438
- * @defaultValue Search...
439
- */
440
- placeholder?: string;
441
- /**
442
- * Indicates whether the value of the dropdown should be persisted after selection, and restored next time the dropdown is rendered.
443
- */
444
- storeValue?: boolean;
445
- /**
446
- * The currently value of the dropdown.
447
- */
448
- value?: string;
449
- /**
450
- * The default value of the dropdown.
451
- * 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.
452
- * @important 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.
453
- * @important If you configure `value` at the same time as `defaultValue`, the `value` will have precedence over `defaultValue`.
454
- */
455
- defaultValue?: string;
456
- /**
457
- * List sections or items. If {@link List.Dropdown.Item} elements are specified, a default section is automatically created.
458
- */
459
- children?: ReactNode;
460
- /**
461
- * Callback triggered when the list item selection changes.
462
- */
463
- onChange?: (newValue: string) => void;
464
- }
465
- namespace Section {
466
- /**
467
- * Props of the {@link List.Dropdown.Section} React component.
468
- */
469
- interface Props {
470
- /**
471
- * The item elements of the section.
472
- */
473
- children?: ReactNode;
474
- /**
475
- * Title displayed above the section
476
- */
477
- title?: string;
478
- }
479
- }
480
- namespace Item {
481
- /**
482
- * Props of the {@link List.Dropdown.Item} React component.
483
- */
484
- interface Props {
485
- /**
486
- * Value of the dropdown item.
487
- * Make sure to assign each unique value for each item.
488
- */
489
- value: string;
490
- /**
491
- * The title displayed for the item.
492
- */
493
- title: string;
494
- /**
495
- * A optional icon displayed for the item.
496
- */
497
- icon?: Image.ImageLike;
498
- }
499
- }
500
- }
501
- }
502
- declare namespace ListDropdown {
503
- /**
504
- * Visually separated group of dropdown items in a {@link List.Dropdown}.
505
- *
506
- * @remarks
507
- * Use sections to group related dropdown items together.
508
- *
509
- * @example
510
- * ```typescript
511
- * import { List } from "@raycast/api";
512
- *
513
- * export default function Command() {
514
- * return (
515
- * <List searchBarAccessory={
516
- * <List.Dropdown tooltip="Dropdown With Sections">
517
- * <List.Dropdown.Section title="First Section">
518
- * <List.Dropdown.Item title="One" value="one" />
519
- * </List.Dropdown.Section>
520
- * <List.Dropdown.Section title="Second Section">
521
- * <List.Dropdown.Item title="Two" value="two" />
522
- * </List.Dropdown.Section>
523
- * </List.Dropdown>
524
- * }>
525
- * <List.Item title="Item in the Main List">
526
- * </List>
527
- * );
528
- * }
529
- * ```
530
- */
531
- const Section: typeof ListDropdownSection;
532
- /**
533
- * A dropdown item in a {@link List.Dropdown}
534
- *
535
- * @example
536
- * ```typescript
537
- * import { List } from "@raycast/api";
538
- *
539
- * export default function Command() {
540
- * return (
541
- * <List searchBarAccessory={
542
- * <List.Dropdown tooltip="Dropdown With Items">
543
- * <List.Dropdown.Item title="One" value="one" />
544
- * <List.Dropdown.Item title="Two" value="two" />
545
- * <List.Dropdown.Item title="Three" value="three" />
546
- * </List.Dropdown>
547
- * }>
548
- * <List.Item title="Item in the Main List">
549
- * </List>
550
- * );
551
- * }
552
- * ```
553
- */
554
- const Item: typeof ListDropdownItem;
555
- }
556
- declare namespace ListItem {
557
- /**
558
- * A Detail view that will be shown in the right-hand-side of the List.
559
- *
560
- * @example
561
- * ```typescript
562
- * import { List } from "@raycast/api";
563
- *
564
- * export default function Command() {
565
- * return (
566
- * <List isShowingDetail>
567
- * <List.Item
568
- * title="Pikachu"
569
- * subtitle="Electric"
570
- * detail={<List.Item.Detail markdown="![Illustration](https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/25.png)" />}
571
- * />
572
- * </List>
573
- * );
574
- * }
575
- * ```
576
- */
577
- const Detail: typeof ListItemDetail;
578
- }
579
- export {};