@raycast/api 1.31.0 → 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 (83) 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 -0
  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 -263
  14. package/types/api/components/Form.d.ts +0 -1016
  15. package/types/api/components/List.d.ts +0 -738
  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 -53
  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 -4
  56. package/types/api/internal/rendering/node-builders/forms.d.ts +0 -3
  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 -5
  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 -2
  64. package/types/api/internal/rendering/reconciler/instance.d.ts +0 -3
  65. package/types/api/internal/rendering/reconciler/noHydratation.d.ts +0 -37
  66. package/types/api/internal/rendering/reconciler/noMutation.d.ts +0 -18
  67. package/types/api/internal/rendering/renderer.d.ts +0 -1
  68. package/types/api/internal/utils/ids.d.ts +0 -1
  69. package/types/api/internal/utils/index.d.ts +0 -4
  70. package/types/api/internal/utils/internal-children.d.ts +0 -26
  71. package/types/api/internal/utils/invariant.d.ts +0 -4
  72. package/types/api/internal/utils/propTypes.d.ts +0 -3
  73. package/types/api/ui/color.d.ts +0 -115
  74. package/types/api/ui/errors.d.ts +0 -1
  75. package/types/api/ui/feedback/alert.d.ts +0 -97
  76. package/types/api/ui/feedback/hud.d.ts +0 -16
  77. package/types/api/ui/feedback/index.d.ts +0 -3
  78. package/types/api/ui/feedback/toast.d.ts +0 -174
  79. package/types/api/ui/icon.d.ts +0 -89
  80. package/types/api/ui/image.d.ts +0 -162
  81. package/types/api/ui/index.d.ts +0 -5
  82. package/types/core/message-types.d.ts +0 -17
  83. package/types/core/preferences.d.ts +0 -69
@@ -1,263 +0,0 @@
1
- import React, { ReactElement, ReactNode } from "react";
2
- import { ActionsInterface, NavigationChildInterface } from "./types";
3
- import PropTypes from "prop-types";
4
- import { Color, Image } from "../ui";
5
- /**
6
- * Renders a markdown (CommonMark) string.
7
- *
8
- * @remarks
9
- * Typically used as a standalone view or when navigating from a {@link List}.
10
- *
11
- * @example
12
- * ```typescript
13
- * import { Detail } from "@raycast/api";
14
- *
15
- * export default function Command() {
16
- * return <Detail markdown="**Hello** _World_!" />;
17
- * }
18
- * ```
19
- */
20
- export declare function Detail(props: Detail.Props): ReactElement<Detail.Props>;
21
- export declare namespace Detail {
22
- var propTypes: {
23
- navigationTitle: PropTypes.Requireable<string>;
24
- isLoading: PropTypes.Requireable<boolean>;
25
- markdown: PropTypes.Requireable<string>;
26
- metadata: PropTypes.Requireable<PropTypes.ReactNodeLike>;
27
- };
28
- var displayName: string;
29
- }
30
- /**
31
- * See {@link Detail.Metadata}
32
- */
33
- declare function DetailMetadata(props: Detail.Metadata.Props): ReactElement<Detail.Metadata.Props>;
34
- declare namespace DetailMetadata {
35
- var propTypes: {};
36
- var displayName: string;
37
- }
38
- /**
39
- * See {@link Detail.Metadata.Label}
40
- */
41
- declare function DetailMetadataLabel(props: Detail.Metadata.Label.Props): ReactElement<Detail.Metadata.Label.Props> | null;
42
- declare namespace DetailMetadataLabel {
43
- var propTypes: {
44
- title: PropTypes.Validator<string>;
45
- icon: PropTypes.Requireable<string | Required<PropTypes.InferProps<{
46
- fileIcon: PropTypes.Validator<string>;
47
- }>> | PropTypes.InferProps<{
48
- source: PropTypes.Requireable<string | PropTypes.InferProps<{
49
- light: PropTypes.Validator<string>;
50
- dark: PropTypes.Validator<string>;
51
- }>>;
52
- fallback: PropTypes.Requireable<string | PropTypes.InferProps<{
53
- light: PropTypes.Validator<string>;
54
- dark: PropTypes.Validator<string>;
55
- }>>;
56
- mask: PropTypes.Requireable<Image.Mask>;
57
- tintColor: PropTypes.Requireable<string | PropTypes.InferProps<{
58
- light: PropTypes.Validator<string>;
59
- dark: PropTypes.Validator<string>;
60
- adjustContrast: PropTypes.Requireable<boolean>;
61
- }>>;
62
- }>>;
63
- text: PropTypes.Requireable<string>;
64
- };
65
- var displayName: string;
66
- }
67
- /**
68
- * See {@link Detail.Metadata.Separator}
69
- */
70
- declare function DetailMetadataSeparator(props: Detail.Metadata.Separator.Props): ReactElement<Detail.Metadata.Separator.Props>;
71
- declare namespace DetailMetadataSeparator {
72
- var propTypes: {};
73
- var displayName: string;
74
- }
75
- /**
76
- * See {@link Detail.Metadata.Link}
77
- */
78
- declare function DetailMetadataLink(props: Detail.Metadata.Link.Props): ReactElement<Detail.Metadata.Link.Props>;
79
- declare namespace DetailMetadataLink {
80
- var propTypes: {
81
- title: PropTypes.Validator<string>;
82
- target: PropTypes.Validator<string>;
83
- text: PropTypes.Validator<string>;
84
- };
85
- var displayName: string;
86
- }
87
- /**
88
- * See {@link Detail.Metadata.TagList}
89
- */
90
- declare function DetailMetadataTagList(props: Detail.Metadata.TagList.Props): ReactElement<Detail.Metadata.TagList.Props>;
91
- declare namespace DetailMetadataTagList {
92
- var propTypes: {
93
- title: PropTypes.Validator<string>;
94
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
95
- };
96
- var displayName: string;
97
- }
98
- /**
99
- * See {@link Detail.Metadata.TagList.Item}
100
- */
101
- declare function DetailMetadataTagListItem(props: Detail.Metadata.TagList.Item.Props): ReactElement<Detail.Metadata.TagList.Item.Props>;
102
- declare namespace DetailMetadataTagListItem {
103
- var propTypes: {
104
- text: PropTypes.Validator<string>;
105
- icon: PropTypes.Requireable<string | Required<PropTypes.InferProps<{
106
- fileIcon: PropTypes.Validator<string>;
107
- }>> | PropTypes.InferProps<{
108
- source: PropTypes.Requireable<string | PropTypes.InferProps<{
109
- light: PropTypes.Validator<string>;
110
- dark: PropTypes.Validator<string>;
111
- }>>;
112
- fallback: PropTypes.Requireable<string | PropTypes.InferProps<{
113
- light: PropTypes.Validator<string>;
114
- dark: PropTypes.Validator<string>;
115
- }>>;
116
- mask: PropTypes.Requireable<Image.Mask>;
117
- tintColor: PropTypes.Requireable<string | PropTypes.InferProps<{
118
- light: PropTypes.Validator<string>;
119
- dark: PropTypes.Validator<string>;
120
- adjustContrast: PropTypes.Requireable<boolean>;
121
- }>>;
122
- }>>;
123
- color: PropTypes.Requireable<string | PropTypes.InferProps<{
124
- light: PropTypes.Validator<string>;
125
- dark: PropTypes.Validator<string>;
126
- adjustContrast: PropTypes.Requireable<boolean>;
127
- }>>;
128
- };
129
- var displayName: string;
130
- }
131
- export declare namespace Detail {
132
- /**
133
- * Props of the {@link Detail} React component.
134
- */
135
- interface Props extends ActionsInterface, NavigationChildInterface {
136
- /**
137
- * The CommonMark string to be rendered.
138
- */
139
- markdown?: string | null;
140
- /**
141
- * The `Detail.Metadata` to be rendered in the right side area
142
- */
143
- metadata?: React.ReactNode;
144
- }
145
- /**
146
- * A Metadata view that will be shown in the right-hand-side of the `Detail`.
147
- *
148
- * Use it to display additional structured data about the main content shown in the `Detail` view.
149
- */
150
- const Metadata: typeof DetailMetadata;
151
- namespace Metadata {
152
- /**
153
- * Props of the {@link Detail.Metadata} React component.
154
- */
155
- interface Props {
156
- /**
157
- * The Detail.Metadata.Item elements of the Metadata view.
158
- */
159
- children: React.ReactNode;
160
- }
161
- /**
162
- * Props of the Detail.Metadata.Item React component.
163
- */
164
- interface ItemProps {
165
- /**
166
- * The title shown above the item.
167
- */
168
- title: string;
169
- }
170
- namespace Label {
171
- /**
172
- * Props of the {@link Detail.Metadata.Label} React component.
173
- */
174
- interface Props extends ItemProps {
175
- /**
176
- * An icon to illustrate the value of the item.
177
- */
178
- icon?: Image.ImageLike;
179
- /**
180
- * The text value of the item.
181
- */
182
- text?: string;
183
- }
184
- }
185
- namespace Separator {
186
- /**
187
- * Props of the {@link Detail.Metadata.Separator} React component.
188
- */
189
- interface Props {
190
- }
191
- }
192
- namespace Link {
193
- /**
194
- * Props of the {@link Detail.Metadata.Link} React component.
195
- */
196
- interface Props extends ItemProps {
197
- /**
198
- * The target of the link.
199
- */
200
- target: string;
201
- /**
202
- * The text value of the item.
203
- */
204
- text: string;
205
- }
206
- }
207
- namespace TagList {
208
- /**
209
- * Props of the {@link Detail.Metadata.TagList} React component.
210
- */
211
- interface Props extends ItemProps {
212
- /**
213
- * The tags contained in the TagList.
214
- */
215
- children: ReactNode;
216
- }
217
- namespace Item {
218
- /**
219
- * Props of the {@link Detail.Metadata.TagList.Item} React component.
220
- */
221
- interface Props {
222
- /**
223
- * An optional icon in front of the text of the tag.
224
- */
225
- icon?: Image.ImageLike;
226
- /**
227
- * The text of the tag.
228
- */
229
- text: string;
230
- /**
231
- * Changes the text color to the provided color and sets a transparent background with the same color.
232
- */
233
- color?: Color.ColorLike;
234
- }
235
- }
236
- }
237
- }
238
- }
239
- declare namespace DetailMetadataTagList {
240
- /**
241
- * A Tag in a {@link Detail.Metadata.TagList}.
242
- */
243
- const Item: typeof DetailMetadataTagListItem;
244
- }
245
- declare namespace DetailMetadata {
246
- /**
247
- * A single value with an optional icon.
248
- */
249
- const Label: typeof DetailMetadataLabel;
250
- /**
251
- * A metadata item that shows a separator line. Use it for grouping and visually separating metadata items.
252
- */
253
- const Separator: typeof DetailMetadataSeparator;
254
- /**
255
- * An item to display a link.
256
- */
257
- const Link: typeof DetailMetadataLink;
258
- /**
259
- * A list of {@link Detail.Metadata.TagList.Item} displayed in a row.
260
- */
261
- const TagList: typeof DetailMetadataTagList;
262
- }
263
- export {};