@raycast/api 1.37.1 → 1.38.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.
- package/api.d.ts +583 -45
- package/bin/arm64/ray +0 -0
- package/bin/x86/ray +0 -0
- package/package.json +1 -1
- package/types/index.d.ts +436 -49
package/api.d.ts
CHANGED
|
@@ -37,10 +37,13 @@ import { RefAttributes } from 'react';
|
|
|
37
37
|
* }
|
|
38
38
|
* ```
|
|
39
39
|
*/
|
|
40
|
-
export declare const Action: FunctionComponent<ActionProps> & ConvenienceActions
|
|
40
|
+
export declare const Action: FunctionComponent<ActionProps> & ConvenienceActions & {
|
|
41
|
+
Style: typeof ActionStyle;
|
|
42
|
+
};
|
|
41
43
|
|
|
42
44
|
export declare namespace Action {
|
|
43
45
|
export type Props = ActionProps;
|
|
46
|
+
export type Style = ActionStyle;
|
|
44
47
|
export namespace CopyToClipboard {
|
|
45
48
|
/**
|
|
46
49
|
* Props of the {@link Action.CopyToClipboard} React component.
|
|
@@ -194,7 +197,11 @@ declare type ActionPanelChildren_2 = ReactElement<ActionPanel.Section.Props> | R
|
|
|
194
197
|
/**
|
|
195
198
|
* @deprecated Use {@link Action} instead.
|
|
196
199
|
*/
|
|
197
|
-
export declare const ActionPanelItem: FunctionComponent<ActionProps> & ConvenienceActions
|
|
200
|
+
export declare const ActionPanelItem: FunctionComponent<ActionProps> & ConvenienceActions & {
|
|
201
|
+
Style: ActionStyle; /**
|
|
202
|
+
* @deprecated Use {@link Image.ImageLike} instead
|
|
203
|
+
*/
|
|
204
|
+
};
|
|
198
205
|
|
|
199
206
|
/**
|
|
200
207
|
* @deprecated Use {@link Action.Props} instead.
|
|
@@ -360,6 +367,16 @@ declare interface ActionProps {
|
|
|
360
367
|
* The icon displayed for the action.
|
|
361
368
|
*/
|
|
362
369
|
icon?: Image.ImageLike | undefined | null;
|
|
370
|
+
/**
|
|
371
|
+
* Defines the visual style of the Action.
|
|
372
|
+
*
|
|
373
|
+
* @remarks
|
|
374
|
+
* Use {@link Action.Style.Regular} for displaying a regular actions.
|
|
375
|
+
* Use {@link Action.Style.Destructive} when your action has something that user should be careful about.
|
|
376
|
+
* Use the confirmation {@link Alert} if the action is doing something that user cannot revert.
|
|
377
|
+
* @defaultValue {@link Action.Style.Regular}
|
|
378
|
+
*/
|
|
379
|
+
style?: ActionStyle;
|
|
363
380
|
/**
|
|
364
381
|
* The keyboard shortcut for the item.
|
|
365
382
|
*
|
|
@@ -384,6 +401,19 @@ declare interface ActionsInterface {
|
|
|
384
401
|
actions?: ReactNode;
|
|
385
402
|
}
|
|
386
403
|
|
|
404
|
+
/**
|
|
405
|
+
* Defines the visual style of the Action.
|
|
406
|
+
*
|
|
407
|
+
* @remarks
|
|
408
|
+
* Use {@link Action.Style.Regular} for displaying a regular actions.
|
|
409
|
+
* Use {@link Action.Style.Destructive} when your action has something that user should be careful about.
|
|
410
|
+
* Use the confirmation {@link Alert} if the action is doing something that user cannot revert.
|
|
411
|
+
*/
|
|
412
|
+
declare enum ActionStyle {
|
|
413
|
+
Regular = "regular",
|
|
414
|
+
Destructive = "destructive"
|
|
415
|
+
}
|
|
416
|
+
|
|
387
417
|
export declare namespace Alert {
|
|
388
418
|
/**
|
|
389
419
|
* The options to create an {@link Alert}.
|
|
@@ -506,6 +536,28 @@ export declare interface Application {
|
|
|
506
536
|
bundleId?: string;
|
|
507
537
|
}
|
|
508
538
|
|
|
539
|
+
/**
|
|
540
|
+
* @beta
|
|
541
|
+
* A record type holding the arguments (entered in Raycast Root Search Bar) that have been passed to the command.
|
|
542
|
+
*/
|
|
543
|
+
declare interface Arguments {
|
|
544
|
+
/**
|
|
545
|
+
* The representation of arguments given that key here is the `name` defined in manifest file and value is the user's input
|
|
546
|
+
*/
|
|
547
|
+
[item: string]: any;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* @beta
|
|
552
|
+
* An interface describing top-level props for arguments
|
|
553
|
+
*/
|
|
554
|
+
export declare interface ArgumentsLaunchProps {
|
|
555
|
+
/**
|
|
556
|
+
* Use these values to populate the initial state for your command.
|
|
557
|
+
*/
|
|
558
|
+
arguments?: Arguments;
|
|
559
|
+
}
|
|
560
|
+
|
|
509
561
|
/**
|
|
510
562
|
* Caching abstraction that stores data on disk and supports LRU (least recently used) access.
|
|
511
563
|
* Since extensions can only consume up to a max. heap memory size, the cache only maintains a lightweight index in memory
|
|
@@ -513,7 +565,7 @@ export declare interface Application {
|
|
|
513
565
|
*
|
|
514
566
|
* The Cache class provides CRUD-style methods (get, set, remove) to update and retrieve data synchronously based on a key.
|
|
515
567
|
* The data must be a string and it is up to the client to decide which serialization format to use.
|
|
516
|
-
*
|
|
568
|
+
* A typical use case would be to use `JSON.stringify` and `JSON.parse`.
|
|
517
569
|
*
|
|
518
570
|
* @remarks By default, the cache is shared between the commands of an extension. Use {@link Cache.Options} to configure
|
|
519
571
|
* a `namespace` per command if needed (for example, set it to `environment.commandName`).
|
|
@@ -576,9 +628,9 @@ export declare class Cache {
|
|
|
576
628
|
}): void;
|
|
577
629
|
/**
|
|
578
630
|
* Registers a new subscriber that gets notified when cache data is set or removed.
|
|
579
|
-
* @returns a function that can be
|
|
631
|
+
* @returns a function that can be called to remove the subscriber.
|
|
580
632
|
*/
|
|
581
|
-
subscribe(
|
|
633
|
+
subscribe(subscriber: Cache.Subscriber): Cache.Subscription;
|
|
582
634
|
private maintainCapacity;
|
|
583
635
|
private notifySubscribers;
|
|
584
636
|
}
|
|
@@ -596,11 +648,12 @@ export declare namespace Cache {
|
|
|
596
648
|
namespace?: string;
|
|
597
649
|
/**
|
|
598
650
|
* The parent directory for the cache data.
|
|
651
|
+
* @deprecated this parameter will be removed in the future – use the default directory.
|
|
599
652
|
*/
|
|
600
653
|
directory?: string;
|
|
601
654
|
/**
|
|
602
655
|
* The capacity in bytes. If the stored data exceeds the capacity, the least recently used data is removed.
|
|
603
|
-
*
|
|
656
|
+
* The default capacity is 10 MB.
|
|
604
657
|
*/
|
|
605
658
|
capacity?: number;
|
|
606
659
|
}
|
|
@@ -1175,13 +1228,10 @@ declare interface ConvenienceActions {
|
|
|
1175
1228
|
* <List>
|
|
1176
1229
|
* <List.Item
|
|
1177
1230
|
* title="Preview me"
|
|
1231
|
+
* quickLook={{ path: "~/Downloads/Raycast.dmg", name: "Some file" }}
|
|
1178
1232
|
* actions={
|
|
1179
1233
|
* <ActionPanel>
|
|
1180
|
-
* <Action.ToggleQuickLook
|
|
1181
|
-
* name="Some file"
|
|
1182
|
-
* path="~/Downloads/Raycast.dmg"
|
|
1183
|
-
* shortcut={{ modifiers: ["cmd"], key: "y" }}
|
|
1184
|
-
* />
|
|
1234
|
+
* <Action.ToggleQuickLook shortcut={{ modifiers: ["cmd"], key: "y" }} />
|
|
1185
1235
|
* </ActionPanel>
|
|
1186
1236
|
* }
|
|
1187
1237
|
* />
|
|
@@ -2080,6 +2130,11 @@ export declare interface Environment {
|
|
|
2080
2130
|
* The theme used by the Raycast application.
|
|
2081
2131
|
*/
|
|
2082
2132
|
theme: "light" | "dark";
|
|
2133
|
+
/**
|
|
2134
|
+
* @beta
|
|
2135
|
+
* The type of launch for the command (user initiated or background).
|
|
2136
|
+
*/
|
|
2137
|
+
launchType: LaunchType;
|
|
2083
2138
|
}
|
|
2084
2139
|
|
|
2085
2140
|
/**
|
|
@@ -2096,6 +2151,7 @@ export declare interface Environment {
|
|
|
2096
2151
|
* console.log(`Support path: ${environment.supportPath}`);
|
|
2097
2152
|
* console.log(`Is development mode: ${environment.isDevelopment}`);
|
|
2098
2153
|
* console.log(`Raycast theme: ${environment.theme}`);
|
|
2154
|
+
* console.log(`Raycast launchType: ${environment.launchType}`);
|
|
2099
2155
|
* ```
|
|
2100
2156
|
*/
|
|
2101
2157
|
export declare const environment: Environment;
|
|
@@ -3900,11 +3956,10 @@ declare interface GridMembers {
|
|
|
3900
3956
|
* import { Grid } from "@raycast/api";
|
|
3901
3957
|
*
|
|
3902
3958
|
* function DrinkDropdown(props: DrinkDropdownProps) {
|
|
3903
|
-
* const {
|
|
3959
|
+
* const { drinkTypes, onDrinkTypeChange } = props;
|
|
3904
3960
|
* return (
|
|
3905
3961
|
* <Grid.Dropdown
|
|
3906
3962
|
* tooltip="Select Drink Type"
|
|
3907
|
-
* disabled={isLoading}
|
|
3908
3963
|
* storeValue={true}
|
|
3909
3964
|
* onChange={(newValue) => {
|
|
3910
3965
|
* onDrinkTypeChange(newValue);
|
|
@@ -4022,55 +4077,419 @@ declare interface GridProps extends ActionsInterface, NavigationChildInterface {
|
|
|
4022
4077
|
* ```
|
|
4023
4078
|
*/
|
|
4024
4079
|
export declare enum Icon {
|
|
4080
|
+
AddPerson = "add-person-16",
|
|
4081
|
+
Airplane = "airplane-16",
|
|
4082
|
+
AirplaneFilled = "airplane-filled-16",
|
|
4083
|
+
AirplaneLanding = "airplane-landing-16",
|
|
4084
|
+
AirplaneTakeoff = "airplane-takeoff-16",
|
|
4085
|
+
Airpods = "airpods-16",
|
|
4086
|
+
Alarm = "alarm-16",
|
|
4087
|
+
AlarmRinging = "alarm-ringing-16",
|
|
4088
|
+
AlignCentre = "align-centre-16",
|
|
4089
|
+
AlignLeft = "align-left-16",
|
|
4090
|
+
AlignRight = "align-right-16",
|
|
4091
|
+
AmericanFootball = "american-football-16",
|
|
4092
|
+
Anchor = "anchor-16",
|
|
4093
|
+
AppWindow = "app-window-16",
|
|
4094
|
+
AppWindowGrid2x2 = "app-window-grid-2x2-16",
|
|
4095
|
+
AppWindowGrid3x3 = "app-window-grid-3x3-16",
|
|
4096
|
+
AppWindowList = "app-window-list-16",
|
|
4097
|
+
AppWindowSidebarLeft = "app-window-sidebar-left-16",
|
|
4098
|
+
AppWindowSidebarRight = "app-window-sidebar-right-16",
|
|
4025
4099
|
ArrowClockwise = "arrow-clockwise-16",
|
|
4026
|
-
|
|
4100
|
+
ArrowCounterClockwise = "arrow-counter-clockwise-16",
|
|
4101
|
+
ArrowDown = "arrow-down-16",
|
|
4102
|
+
ArrowDownCircle = "arrow-down-circle-16",
|
|
4103
|
+
ArrowDownCircleFilled = "arrow-down-circle-filled-16",
|
|
4104
|
+
ArrowLeft = "arrow-left-16",
|
|
4105
|
+
ArrowLeftCircle = "arrow-left-circle-16",
|
|
4106
|
+
ArrowLeftCircleFilled = "arrow-left-circle-filled-16",
|
|
4107
|
+
ArrowNe = "arrow-ne-16",
|
|
4027
4108
|
ArrowRight = "arrow-right-16",
|
|
4109
|
+
ArrowRightCircle = "arrow-right-circle-16",
|
|
4110
|
+
ArrowRightCircleFilled = "arrow-right-circle-filled-16",
|
|
4111
|
+
ArrowUp = "arrow-up-16",
|
|
4112
|
+
ArrowUpCircle = "arrow-up-circle-16",
|
|
4113
|
+
ArrowUpCircleFilled = "arrow-up-circle-filled-16",
|
|
4114
|
+
AtSymbol = "at-symbol-16",
|
|
4115
|
+
BandAid = "band-aid-16",
|
|
4116
|
+
BankNote = "bank-note-16",
|
|
4117
|
+
BarChart = "bar-chart-16",
|
|
4118
|
+
BarCode = "bar-code-16",
|
|
4119
|
+
BathTub = "bath-tub-16",
|
|
4120
|
+
Battery = "battery-16",
|
|
4121
|
+
BatteryCharging = "battery-charging-16",
|
|
4122
|
+
BatteryDisabled = "battery-disabled-16",
|
|
4123
|
+
Bell = "bell-16",
|
|
4124
|
+
BellDisabled = "bell-disabled-16",
|
|
4125
|
+
Bike = "bike-16",
|
|
4028
4126
|
Binoculars = "binoculars-16",
|
|
4029
|
-
|
|
4127
|
+
BlankDocument = "blank-document-16",
|
|
4128
|
+
Bluetooth = "bluetooth-16",
|
|
4129
|
+
Boat = "boat-16",
|
|
4130
|
+
Bold = "bold-16",
|
|
4131
|
+
Bolt = "bolt-16",
|
|
4132
|
+
BoltDisabled = "bolt-disabled-16",
|
|
4133
|
+
Book = "book-16",
|
|
4134
|
+
Bookmark = "bookmark-16",
|
|
4135
|
+
Box = "box-16",
|
|
4136
|
+
Brush = "brush-16",
|
|
4137
|
+
Bubble = "speech-bubble-16",
|
|
4138
|
+
Bug = "bug-16",
|
|
4139
|
+
BulletPoints = "bullet-points-16",
|
|
4140
|
+
BullsEye = "bulls-eye-16",
|
|
4141
|
+
Buoy = "buoy-16",
|
|
4142
|
+
Calculator = "calculator-16",
|
|
4030
4143
|
Calendar = "calendar-16",
|
|
4031
|
-
|
|
4144
|
+
Camera = "camera-16",
|
|
4145
|
+
Car = "car-16",
|
|
4146
|
+
Cart = "cart-16",
|
|
4147
|
+
Cd = "cd-16",
|
|
4148
|
+
Center = "center-16",
|
|
4149
|
+
Check = "check-16",
|
|
4150
|
+
CheckCircle = "check-circle-16",
|
|
4151
|
+
Checkmark = "check-circle-16",
|
|
4152
|
+
ChessPiece = "chess-piece-16",
|
|
4032
4153
|
ChevronDown = "chevron-down-16",
|
|
4154
|
+
ChevronLeft = "chevron-left-16",
|
|
4155
|
+
ChevronRight = "chevron-right-16",
|
|
4033
4156
|
ChevronUp = "chevron-up-16",
|
|
4034
4157
|
Circle = "circle-16",
|
|
4035
|
-
|
|
4158
|
+
CircleEllipsis = "circle-ellipsis-16",
|
|
4159
|
+
CircleFilled = "circle-filled-16",
|
|
4160
|
+
CircleProgress = "circle-progress-16",
|
|
4161
|
+
CircleProgress100 = "circle-progress-100-16",
|
|
4162
|
+
CircleProgress25 = "circle-progress-25-16",
|
|
4163
|
+
CircleProgress50 = "circle-progress-50-16",
|
|
4164
|
+
CircleProgress75 = "circle-progress-75-16",
|
|
4165
|
+
ClearFormatting = "clear-formatting-16",
|
|
4166
|
+
Clipboard = "copy-clipboard-16",
|
|
4036
4167
|
Clock = "clock-16",
|
|
4037
|
-
|
|
4038
|
-
|
|
4168
|
+
Cloud = "cloud-16",
|
|
4169
|
+
CloudLightning = "cloud-lightning-16",
|
|
4170
|
+
CloudRain = "cloud-rain-16",
|
|
4171
|
+
CloudSnow = "cloud-snow-16",
|
|
4172
|
+
CloudSun = "cloud-sun-16",
|
|
4173
|
+
Code = "code-16",
|
|
4174
|
+
CodeBlock = "code-block-16",
|
|
4175
|
+
Cog = "cog-16",
|
|
4176
|
+
Coin = "coin-16",
|
|
4177
|
+
Coins = "coins-16",
|
|
4178
|
+
Compass = "compass-16",
|
|
4179
|
+
ComputerChip = "computer-chip-16",
|
|
4180
|
+
Contrast = "contrast-16",
|
|
4181
|
+
CopyClipboard = "copy-clipboard-16",
|
|
4182
|
+
CreditCard = "credit-card-16",
|
|
4183
|
+
CricketBall = "cricket-ball-16",
|
|
4184
|
+
Crop = "crop-16",
|
|
4185
|
+
Crown = "crown-16",
|
|
4186
|
+
Crypto = "crypto-16",
|
|
4187
|
+
DeleteDocument = "delete-document-16",
|
|
4188
|
+
Desktop = "desktop-16",
|
|
4189
|
+
Dna = "dna-16",
|
|
4190
|
+
Document = "blank-document-16",
|
|
4039
4191
|
Dot = "dot-16",
|
|
4040
|
-
Download = "
|
|
4192
|
+
Download = "download-16",
|
|
4193
|
+
EditShape = "edit-shape-16",
|
|
4194
|
+
Eject = "eject-16",
|
|
4195
|
+
Ellipsis = "ellipsis-16",
|
|
4196
|
+
Emoji = "emoji-16",
|
|
4041
4197
|
Envelope = "envelope-16",
|
|
4042
|
-
|
|
4198
|
+
Eraser = "eraser-16",
|
|
4199
|
+
ExclamationMark = "important-01-16",
|
|
4200
|
+
Exclamationmark = "exclamationmark-16",
|
|
4201
|
+
Exclamationmark2 = "exclamationmark-2-16",
|
|
4202
|
+
Exclamationmark3 = "exclamationmark-3-16",
|
|
4043
4203
|
Eye = "eye-16",
|
|
4044
|
-
|
|
4204
|
+
EyeDisabled = "eye-disabled-16",
|
|
4205
|
+
EyeDropper = "eye-dropper-16",
|
|
4206
|
+
Female = "female-16",
|
|
4207
|
+
FilmStrip = "film-strip-16",
|
|
4208
|
+
Filter = "filter-16",
|
|
4045
4209
|
Finder = "finder-16",
|
|
4046
|
-
|
|
4047
|
-
|
|
4210
|
+
Fingerprint = "fingerprint-16",
|
|
4211
|
+
Folder = "folder-16",
|
|
4212
|
+
Footprints = "footprints-16",
|
|
4213
|
+
Forward = "forward-16",
|
|
4214
|
+
ForwardFilled = "forward-filled-16",
|
|
4215
|
+
FountainTip = "fountain-tip-16",
|
|
4216
|
+
FullSignal = "full-signal-16",
|
|
4217
|
+
GameController = "game-controller-16",
|
|
4218
|
+
Gauge = "gauge-16",
|
|
4219
|
+
Gear = "cog-16",
|
|
4220
|
+
Geopin = "geopin-16",
|
|
4221
|
+
Germ = "germ-16",
|
|
4222
|
+
Gift = "gift-16",
|
|
4223
|
+
Glasses = "glasses-16",
|
|
4224
|
+
Globe = "globe-01-16",
|
|
4225
|
+
Goal = "goal-16",
|
|
4048
4226
|
Hammer = "hammer-16",
|
|
4049
|
-
|
|
4227
|
+
HardDrive = "hard-drive-16",
|
|
4228
|
+
Hashtag = "hashtag-16",
|
|
4229
|
+
Headphones = "headphones-16",
|
|
4230
|
+
Heart = "heart-16",
|
|
4231
|
+
HeartDisabled = "heart-disabled-16",
|
|
4232
|
+
Heartbeat = "heartbeat-16",
|
|
4233
|
+
Highlight = "highlight-16",
|
|
4234
|
+
Hourglass = "hourglass-16",
|
|
4235
|
+
House = "house-16",
|
|
4236
|
+
Image = "image-16",
|
|
4237
|
+
Important = "important-01-16",
|
|
4238
|
+
Info = "info-01-16",
|
|
4239
|
+
Italics = "italics-16",
|
|
4240
|
+
Key = "key-16",
|
|
4241
|
+
Keyboard = "keyboard-16",
|
|
4242
|
+
Layers = "layers-16",
|
|
4243
|
+
Leaderboard = "leaderboard-16",
|
|
4244
|
+
Leaf = "leaf-16",
|
|
4245
|
+
LevelMeter = "signal-2-16",
|
|
4246
|
+
LightBulb = "light-bulb-16",
|
|
4247
|
+
LightBulbOff = "light-bulb-off-16",
|
|
4248
|
+
LineChart = "line-chart-16",
|
|
4050
4249
|
Link = "link-16",
|
|
4051
|
-
List = "
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4250
|
+
List = "app-window-list-16",
|
|
4251
|
+
Livestream = "livestream-01-16",
|
|
4252
|
+
Lock = "lock-16",
|
|
4253
|
+
LockDisabled = "lock-disabled-16",
|
|
4254
|
+
LockUnlocked = "lock-unlocked-16",
|
|
4255
|
+
Logout = "logout-16",
|
|
4256
|
+
Lorry = "lorry-16",
|
|
4257
|
+
Lowercase = "lowercase-16",
|
|
4258
|
+
MagnifyingGlass = "magnifying-glass-16",
|
|
4259
|
+
Male = "male-16",
|
|
4260
|
+
Map = "map-16",
|
|
4261
|
+
Mask = "mask-16",
|
|
4262
|
+
Maximize = "maximize-16",
|
|
4263
|
+
MedicalSupport = "medical-support-16",
|
|
4264
|
+
Megaphone = "megaphone-16",
|
|
4265
|
+
MemoryChip = "computer-chip-16",
|
|
4266
|
+
MemoryStick = "memory-stick-16",
|
|
4267
|
+
Message = "speech-bubble-16",
|
|
4268
|
+
Microphone = "microphone-16",
|
|
4269
|
+
MicrophoneDisabled = "microphone-disabled-16",
|
|
4270
|
+
Minimize = "minimize-16",
|
|
4271
|
+
Minus = "minus-16",
|
|
4272
|
+
MinusCircle = "minus-circle-16",
|
|
4273
|
+
MinusCircleFilled = "minus-circle-filled-16",
|
|
4274
|
+
Mobile = "mobile-16",
|
|
4275
|
+
Monitor = "monitor-16",
|
|
4276
|
+
Moon = "moon-16",
|
|
4277
|
+
Mountain = "mountain-16",
|
|
4278
|
+
Mouse = "mouse-16",
|
|
4279
|
+
Multiply = "multiply-16",
|
|
4280
|
+
Music = "music-16",
|
|
4281
|
+
Network = "network-16",
|
|
4282
|
+
NewDocument = "new-document-16",
|
|
4283
|
+
NewFolder = "new-folder-16",
|
|
4284
|
+
Number = "number-01-16",
|
|
4285
|
+
Number00 = "number-00-16",
|
|
4286
|
+
Number10 = "number-10-16",
|
|
4287
|
+
Number11 = "number-11-16",
|
|
4288
|
+
Number12 = "number-12-16",
|
|
4289
|
+
Number13 = "number-13-16",
|
|
4290
|
+
Number14 = "number-14-16",
|
|
4291
|
+
Number15 = "number-15-16",
|
|
4292
|
+
Number16 = "number-16-16",
|
|
4293
|
+
Number17 = "number-17-16",
|
|
4294
|
+
Number18 = "number-18-16",
|
|
4295
|
+
Number19 = "number-19-16",
|
|
4296
|
+
Number20 = "number-20-16",
|
|
4297
|
+
Number21 = "number-21-16",
|
|
4298
|
+
Number22 = "number-22-16",
|
|
4299
|
+
Number23 = "number-23-16",
|
|
4300
|
+
Number24 = "number-24-16",
|
|
4301
|
+
Number25 = "number-25-16",
|
|
4302
|
+
Number26 = "number-26-16",
|
|
4303
|
+
Number27 = "number-27-16",
|
|
4304
|
+
Number28 = "number-28-16",
|
|
4305
|
+
Number29 = "number-29-16",
|
|
4306
|
+
Number30 = "number-30-16",
|
|
4307
|
+
Number31 = "number-31-16",
|
|
4308
|
+
Number32 = "number-32-16",
|
|
4309
|
+
Number33 = "number-33-16",
|
|
4310
|
+
Number34 = "number-34-16",
|
|
4311
|
+
Number35 = "number-35-16",
|
|
4312
|
+
Number36 = "number-36-16",
|
|
4313
|
+
Number37 = "number-37-16",
|
|
4314
|
+
Number38 = "number-38-16",
|
|
4315
|
+
Number39 = "number-39-16",
|
|
4316
|
+
Number40 = "number-40-16",
|
|
4317
|
+
Number41 = "number-41-16",
|
|
4318
|
+
Number42 = "number-42-16",
|
|
4319
|
+
Number43 = "number-43-16",
|
|
4320
|
+
Number44 = "number-44-16",
|
|
4321
|
+
Number45 = "number-45-16",
|
|
4322
|
+
Number46 = "number-46-16",
|
|
4323
|
+
Number47 = "number-47-16",
|
|
4324
|
+
Number48 = "number-48-16",
|
|
4325
|
+
Number49 = "number-49-16",
|
|
4326
|
+
Number50 = "number-50-16",
|
|
4327
|
+
Number51 = "number-51-16",
|
|
4328
|
+
Number52 = "number-52-16",
|
|
4329
|
+
Number53 = "number-53-16",
|
|
4330
|
+
Number54 = "number-54-16",
|
|
4331
|
+
Number55 = "number-55-16",
|
|
4332
|
+
Number56 = "number-56-16",
|
|
4333
|
+
Number57 = "number-57-16",
|
|
4334
|
+
Number58 = "number-58-16",
|
|
4335
|
+
Number59 = "number-59-16",
|
|
4336
|
+
Number60 = "number-60-16",
|
|
4337
|
+
Number61 = "number-61-16",
|
|
4338
|
+
Number62 = "number-62-16",
|
|
4339
|
+
Number63 = "number-63-16",
|
|
4340
|
+
Number64 = "number-64-16",
|
|
4341
|
+
Number65 = "number-65-16",
|
|
4342
|
+
Number66 = "number-66-16",
|
|
4343
|
+
Number67 = "number-67-16",
|
|
4344
|
+
Number68 = "number-68-16",
|
|
4345
|
+
Number69 = "number-69-16",
|
|
4346
|
+
Number70 = "number-70-16",
|
|
4347
|
+
Number71 = "number-71-16",
|
|
4348
|
+
Number72 = "number-72-16",
|
|
4349
|
+
Number73 = "number-73-16",
|
|
4350
|
+
Number74 = "number-74-16",
|
|
4351
|
+
Number75 = "number-75-16",
|
|
4352
|
+
Number76 = "number-76-16",
|
|
4353
|
+
Number77 = "number-77-16",
|
|
4354
|
+
Number78 = "number-78-16",
|
|
4355
|
+
Number79 = "number-79-16",
|
|
4356
|
+
Number80 = "number-80-16",
|
|
4357
|
+
Number81 = "number-81-16",
|
|
4358
|
+
Number82 = "number-82-16",
|
|
4359
|
+
Number83 = "number-83-16",
|
|
4360
|
+
Number84 = "number-84-16",
|
|
4361
|
+
Number85 = "number-85-16",
|
|
4362
|
+
Number86 = "number-86-16",
|
|
4363
|
+
Number87 = "number-87-16",
|
|
4364
|
+
Number88 = "number-88-16",
|
|
4365
|
+
Number89 = "number-89-16",
|
|
4366
|
+
Number90 = "number-90-16",
|
|
4367
|
+
Number91 = "number-91-16",
|
|
4368
|
+
Number92 = "number-92-16",
|
|
4369
|
+
Number93 = "number-93-16",
|
|
4370
|
+
Number94 = "number-94-16",
|
|
4371
|
+
Number95 = "number-95-16",
|
|
4372
|
+
Number96 = "number-96-16",
|
|
4373
|
+
Number97 = "number-97-16",
|
|
4374
|
+
Number98 = "number-98-16",
|
|
4375
|
+
Number99 = "number-99-16",
|
|
4376
|
+
Paperclip = "paperclip-16",
|
|
4377
|
+
Patch = "patch-16",
|
|
4378
|
+
Pause = "pause-16",
|
|
4379
|
+
PauseFilled = "pause-filled-16",
|
|
4055
4380
|
Pencil = "pencil-16",
|
|
4056
|
-
Person = "person-
|
|
4381
|
+
Person = "person-16",
|
|
4382
|
+
PersonCircle = "person-circle-16",
|
|
4057
4383
|
Phone = "phone-16",
|
|
4384
|
+
PhoneRinging = "phone-ringing-16",
|
|
4385
|
+
PieChart = "pie-chart-16",
|
|
4386
|
+
Pill = "pill-16",
|
|
4058
4387
|
Pin = "pin-16",
|
|
4388
|
+
PinDisabled = "pin-disabled-16",
|
|
4389
|
+
Play = "play-16",
|
|
4390
|
+
PlayFilled = "play-filled-16",
|
|
4391
|
+
Plug = "plug-16",
|
|
4059
4392
|
Plus = "plus-16",
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4393
|
+
PlusCircle = "plus-circle-16",
|
|
4394
|
+
PlusCircleFilled = "plus-circle-filled-16",
|
|
4395
|
+
PlusMinusDivideMultiply = "plus-minus-divide-multiply-16",
|
|
4396
|
+
Power = "power-16",
|
|
4397
|
+
Print = "print-16",
|
|
4398
|
+
QuestionMark = "question-mark-circle-16",
|
|
4399
|
+
QuestionMarkCircle = "question-mark-circle-16",
|
|
4400
|
+
QuotationMarks = "quotation-marks-16",
|
|
4401
|
+
QuoteBlock = "quote-block-16",
|
|
4402
|
+
Racket = "racket-16",
|
|
4403
|
+
Raindrop = "raindrop-16",
|
|
4404
|
+
RaycastLogoNeg = "raycast-logo-neg-16",
|
|
4405
|
+
RaycastLogoPos = "raycast-logo-pos-16",
|
|
4406
|
+
Receipt = "receipt-16",
|
|
4407
|
+
Redo = "redo-16",
|
|
4408
|
+
RemovePerson = "remove-person-16",
|
|
4409
|
+
Repeat = "repeat-16",
|
|
4410
|
+
Reply = "reply-16",
|
|
4411
|
+
Rewind = "rewind-16",
|
|
4412
|
+
RewindFilled = "rewind-filled-16",
|
|
4413
|
+
Rocket = "rocket-16",
|
|
4414
|
+
Rosette = "rosette-16",
|
|
4415
|
+
RotateAntiClockwise = "rotate-anti-clockwise-16",
|
|
4416
|
+
RotateClockwise = "rotate-clockwise-16",
|
|
4417
|
+
Ruler = "ruler-16",
|
|
4418
|
+
SaveDocument = "save-document-16",
|
|
4419
|
+
Shield = "shield-01-16",
|
|
4420
|
+
Shuffle = "shuffle-16",
|
|
4421
|
+
Sidebar = "app-window-sidebar-right-16",
|
|
4422
|
+
Signal1 = "signal-1-16",
|
|
4423
|
+
Signal2 = "signal-2-16",
|
|
4424
|
+
Signal3 = "signal-3-16",
|
|
4425
|
+
Snippets = "snippets-16",
|
|
4426
|
+
Snowflake = "snowflake-16",
|
|
4427
|
+
SoccerBall = "soccer-ball-16",
|
|
4428
|
+
SpeakerDown = "speaker-down-16",
|
|
4429
|
+
SpeakerHigh = "speaker-high-16",
|
|
4430
|
+
SpeakerLow = "speaker-low-16",
|
|
4431
|
+
SpeakerOff = "speaker-off-16",
|
|
4432
|
+
SpeakerOn = "speaker-on-16",
|
|
4433
|
+
SpeakerUp = "speaker-up-16",
|
|
4434
|
+
SpeechBubble = "speech-bubble-16",
|
|
4435
|
+
SpeechBubbleActive = "speech-bubble-active-16",
|
|
4436
|
+
SpeechBubbleImportant = "speech-bubble-important-16",
|
|
4064
4437
|
Star = "star-16",
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4438
|
+
StarCircle = "star-circle-16",
|
|
4439
|
+
StarDisabled = "star-disabled-16",
|
|
4440
|
+
Stars = "stars-16",
|
|
4441
|
+
Stop = "stop-16",
|
|
4442
|
+
StopFilled = "stop-filled-16",
|
|
4443
|
+
Stopwatch = "stopwatch-16",
|
|
4444
|
+
Store = "store-16",
|
|
4445
|
+
StrikeThrough = "strike-through-16",
|
|
4446
|
+
Sun = "sun-16",
|
|
4447
|
+
Sunrise = "sunrise-16",
|
|
4448
|
+
Swatch = "swatch-16",
|
|
4449
|
+
Switch = "switch-16",
|
|
4450
|
+
Syringe = "syringe-16",
|
|
4451
|
+
Tag = "tag-16",
|
|
4452
|
+
Temperature = "temperature-16",
|
|
4453
|
+
TennisBall = "tennis-ball-16",
|
|
4068
4454
|
Terminal = "terminal-16",
|
|
4455
|
+
Text = "text-16",
|
|
4456
|
+
TextCursor = "text-cursor-16",
|
|
4457
|
+
Torch = "torch-16",
|
|
4458
|
+
Train = "train-16",
|
|
4069
4459
|
Trash = "trash-16",
|
|
4070
|
-
|
|
4460
|
+
Tray = "tray-16",
|
|
4461
|
+
Tree = "tree-16",
|
|
4462
|
+
Trophy = "trophy-16",
|
|
4463
|
+
TwoPeople = "two-people-16",
|
|
4464
|
+
Umbrella = "umbrella-16",
|
|
4465
|
+
Underline = "underline-16",
|
|
4466
|
+
Undo = "undo-16",
|
|
4467
|
+
Upload = "upload-16",
|
|
4468
|
+
Uppercase = "uppercase-16",
|
|
4071
4469
|
Video = "video-16",
|
|
4072
|
-
|
|
4073
|
-
|
|
4470
|
+
Wallet = "wallet-16",
|
|
4471
|
+
Wand = "wand-16",
|
|
4472
|
+
Warning = "warning-16",
|
|
4473
|
+
Weights = "weights-16",
|
|
4474
|
+
Wifi = "wifi-16",
|
|
4475
|
+
WifiDisabled = "wifi-disabled-16",
|
|
4476
|
+
Window = "app-window-16",
|
|
4477
|
+
WrenchScrewdriver = "wrench-screwdriver-16",
|
|
4478
|
+
WristWatch = "wrist-watch-16",
|
|
4479
|
+
XMarkCircle = "x-mark-circle-16",
|
|
4480
|
+
XMarkCircleFilled = "x-mark-circle-filled-16",
|
|
4481
|
+
/** @deprecated Use {@link Icon.ArrowClockwise} instead. */
|
|
4482
|
+
TwoArrowsClockwise = "arrow-clockwise-16",
|
|
4483
|
+
/** @deprecated Use {@link Icon.EyeDisabled} instead. */
|
|
4484
|
+
EyeSlash = "eye-disabled-16",
|
|
4485
|
+
/** @deprecated Use {@link Icon.SpeakerDown} instead. */
|
|
4486
|
+
SpeakerArrowDown = "speaker-down-16",
|
|
4487
|
+
/** @deprecated Use {@link Icon.SpeakerUp} instead. */
|
|
4488
|
+
SpeakerArrowUp = "speaker-up-16",
|
|
4489
|
+
/** @deprecated Use {@link Icon.SpeakerOff} instead. */
|
|
4490
|
+
SpeakerSlash = "speaker-off-16",
|
|
4491
|
+
/** @deprecated Use {@link Icon.BlankDocument} instead. */
|
|
4492
|
+
TextDocument = "blank-document-16"
|
|
4074
4493
|
}
|
|
4075
4494
|
|
|
4076
4495
|
/**
|
|
@@ -4264,6 +4683,12 @@ declare const Item: FunctionComponent<ItemProps> & ItemMembers;
|
|
|
4264
4683
|
*/
|
|
4265
4684
|
declare const Item_2: FunctionComponent<ItemProps_2>;
|
|
4266
4685
|
|
|
4686
|
+
/**
|
|
4687
|
+
* @beta
|
|
4688
|
+
* See {@link MenuBarExtra.Item}
|
|
4689
|
+
*/
|
|
4690
|
+
declare const Item_3: FunctionComponent<ItemProps_3>;
|
|
4691
|
+
|
|
4267
4692
|
declare type ItemAccessory = ({
|
|
4268
4693
|
/**
|
|
4269
4694
|
* An optional text that will be used as the label.
|
|
@@ -4364,7 +4789,7 @@ declare interface ItemProps extends ActionsInterface {
|
|
|
4364
4789
|
*/
|
|
4365
4790
|
detail?: ReactNode;
|
|
4366
4791
|
/**
|
|
4367
|
-
* Optional information to preview files with Quick Look. Toggle the preview
|
|
4792
|
+
* Optional information to preview files with Quick Look. Toggle the preview with {@link Action.ToggleQuickLook}.
|
|
4368
4793
|
*
|
|
4369
4794
|
* @remarks
|
|
4370
4795
|
* If no `name` is specified, the file name of the given path is used.
|
|
@@ -4421,6 +4846,17 @@ declare interface ItemProps_2 extends ActionsInterface {
|
|
|
4421
4846
|
actions?: ReactNode | null;
|
|
4422
4847
|
}
|
|
4423
4848
|
|
|
4849
|
+
/**
|
|
4850
|
+
* @beta
|
|
4851
|
+
*/
|
|
4852
|
+
declare interface ItemProps_3 {
|
|
4853
|
+
title: string;
|
|
4854
|
+
icon?: Image.ImageLike;
|
|
4855
|
+
tooltip?: string;
|
|
4856
|
+
onAction?: () => void;
|
|
4857
|
+
shortcut?: Keyboard.Shortcut;
|
|
4858
|
+
}
|
|
4859
|
+
|
|
4424
4860
|
export declare namespace Keyboard {
|
|
4425
4861
|
/**
|
|
4426
4862
|
* A keyboard shortcut is defined by one or more modifier keys (command, control, etc.) and a single key equivalent (a character or special key).
|
|
@@ -4537,9 +4973,24 @@ declare interface LabelProps_2 {
|
|
|
4537
4973
|
}
|
|
4538
4974
|
|
|
4539
4975
|
/**
|
|
4976
|
+
* @beta
|
|
4540
4977
|
* The top-level props that a Command receives on launch
|
|
4541
4978
|
*/
|
|
4542
|
-
export declare type LaunchProps = FormLaunchProps;
|
|
4979
|
+
export declare type LaunchProps = ArgumentsLaunchProps | FormLaunchProps;
|
|
4980
|
+
|
|
4981
|
+
/**
|
|
4982
|
+
* @beta
|
|
4983
|
+
*/
|
|
4984
|
+
export declare enum LaunchType {
|
|
4985
|
+
/**
|
|
4986
|
+
* A regular launch through user interaction
|
|
4987
|
+
*/
|
|
4988
|
+
UserInitiated = "userInitiated",
|
|
4989
|
+
/**
|
|
4990
|
+
* Scheduled through an interval and launched from background
|
|
4991
|
+
*/
|
|
4992
|
+
Background = "background"
|
|
4993
|
+
}
|
|
4543
4994
|
|
|
4544
4995
|
/**
|
|
4545
4996
|
* See {@link Detail.Metadata.Link}
|
|
@@ -4786,11 +5237,10 @@ declare interface ListMembers {
|
|
|
4786
5237
|
* import { List } from "@raycast/api";
|
|
4787
5238
|
*
|
|
4788
5239
|
* function DrinkDropdown(props: DrinkDropdownProps) {
|
|
4789
|
-
* const {
|
|
5240
|
+
* const { drinkTypes, onDrinkTypeChange } = props;
|
|
4790
5241
|
* return (
|
|
4791
5242
|
* <List.Dropdown
|
|
4792
5243
|
* tooltip="Select Drink Type"
|
|
4793
|
-
* disabled={isLoading}
|
|
4794
5244
|
* storeValue={true}
|
|
4795
5245
|
* onChange={(newValue) => {
|
|
4796
5246
|
* onDrinkTypeChange(newValue);
|
|
@@ -5034,6 +5484,41 @@ export declare type LocalStorageValue = LocalStorage.Value;
|
|
|
5034
5484
|
export declare interface LocalStorageValues extends LocalStorage.Values {
|
|
5035
5485
|
}
|
|
5036
5486
|
|
|
5487
|
+
/**
|
|
5488
|
+
* @beta
|
|
5489
|
+
*/
|
|
5490
|
+
export declare const MenuBarExtra: FunctionComponent<MenuBarExtraProps> & MenuBarExtraMembers;
|
|
5491
|
+
|
|
5492
|
+
/**
|
|
5493
|
+
* @beta
|
|
5494
|
+
*/
|
|
5495
|
+
export declare namespace MenuBarExtra {
|
|
5496
|
+
export type Props = MenuBarExtraProps;
|
|
5497
|
+
}
|
|
5498
|
+
|
|
5499
|
+
/**
|
|
5500
|
+
* @beta
|
|
5501
|
+
*/
|
|
5502
|
+
declare interface MenuBarExtraMembers {
|
|
5503
|
+
Item: typeof Item_3;
|
|
5504
|
+
Separator: typeof Separator_4;
|
|
5505
|
+
Submenu: typeof Submenu_2;
|
|
5506
|
+
}
|
|
5507
|
+
|
|
5508
|
+
/**
|
|
5509
|
+
* @beta
|
|
5510
|
+
*/
|
|
5511
|
+
declare interface MenuBarExtraProps {
|
|
5512
|
+
/**
|
|
5513
|
+
* @defaultValue `false`
|
|
5514
|
+
*/
|
|
5515
|
+
isLoading?: boolean;
|
|
5516
|
+
title?: string;
|
|
5517
|
+
tooltip?: string;
|
|
5518
|
+
icon?: Image.ImageLike;
|
|
5519
|
+
children?: ReactNode;
|
|
5520
|
+
}
|
|
5521
|
+
|
|
5037
5522
|
/**
|
|
5038
5523
|
* See {@link Detail.Metadata}
|
|
5039
5524
|
*/
|
|
@@ -5996,6 +6481,12 @@ declare const Separator_2: FunctionComponent<SeparatorProps_2>;
|
|
|
5996
6481
|
*/
|
|
5997
6482
|
declare const Separator_3: FunctionComponent<SeparatorProps_3>;
|
|
5998
6483
|
|
|
6484
|
+
/**
|
|
6485
|
+
* @beta
|
|
6486
|
+
* See {@link MenuBarExtra.Separator}
|
|
6487
|
+
*/
|
|
6488
|
+
declare const Separator_4: FunctionComponent<SeparatorProps_4>;
|
|
6489
|
+
|
|
5999
6490
|
/**
|
|
6000
6491
|
* See {@link Form.Separator.Props}
|
|
6001
6492
|
*/
|
|
@@ -6008,6 +6499,12 @@ declare interface SeparatorProps_2 {
|
|
|
6008
6499
|
declare interface SeparatorProps_3 {
|
|
6009
6500
|
}
|
|
6010
6501
|
|
|
6502
|
+
/**
|
|
6503
|
+
* @beta
|
|
6504
|
+
*/
|
|
6505
|
+
declare interface SeparatorProps_4 {
|
|
6506
|
+
}
|
|
6507
|
+
|
|
6011
6508
|
/**
|
|
6012
6509
|
* @deprecated Use {@link LocalStorage.setItem} instead
|
|
6013
6510
|
*/
|
|
@@ -6169,6 +6666,12 @@ export declare const specialKeys: any;
|
|
|
6169
6666
|
*/
|
|
6170
6667
|
declare const Submenu: FunctionComponent<SubmenuProps>;
|
|
6171
6668
|
|
|
6669
|
+
/**
|
|
6670
|
+
* @beta
|
|
6671
|
+
* See {@link MenuBarExtra.Submenu}
|
|
6672
|
+
*/
|
|
6673
|
+
declare const Submenu_2: FunctionComponent<SubmenuProps_2>;
|
|
6674
|
+
|
|
6172
6675
|
declare type SubmenuChildren = ReactElement<SectionProps> | ReactElement<SectionProps>[] | SectionChildren | null;
|
|
6173
6676
|
|
|
6174
6677
|
/**
|
|
@@ -6226,6 +6729,18 @@ declare interface SubmenuProps {
|
|
|
6226
6729
|
onOpen?: () => void;
|
|
6227
6730
|
}
|
|
6228
6731
|
|
|
6732
|
+
/**
|
|
6733
|
+
* @beta
|
|
6734
|
+
*/
|
|
6735
|
+
declare interface SubmenuProps_2 {
|
|
6736
|
+
title: string | {
|
|
6737
|
+
value: string;
|
|
6738
|
+
tooltip: string;
|
|
6739
|
+
};
|
|
6740
|
+
icon?: Image.ImageLike;
|
|
6741
|
+
children?: ReactNode;
|
|
6742
|
+
}
|
|
6743
|
+
|
|
6229
6744
|
/**
|
|
6230
6745
|
* See {@link Action.SubmitForm.Props}
|
|
6231
6746
|
*/
|
|
@@ -6604,7 +7119,7 @@ export declare const ToastStyle: typeof Toast.Style;
|
|
|
6604
7119
|
declare const ToggleQuickLook: FunctionComponent<ToggleQuickLookProps>;
|
|
6605
7120
|
|
|
6606
7121
|
/**
|
|
6607
|
-
* See {@link Action.
|
|
7122
|
+
* See {@link Action.ToggleQuickLook.Props}
|
|
6608
7123
|
*/
|
|
6609
7124
|
declare interface ToggleQuickLookProps {
|
|
6610
7125
|
/**
|
|
@@ -6695,6 +7210,29 @@ declare interface TrashProps {
|
|
|
6695
7210
|
onTrash?: (paths: PathLike | PathLike[]) => void;
|
|
6696
7211
|
}
|
|
6697
7212
|
|
|
7213
|
+
/**
|
|
7214
|
+
* @beta
|
|
7215
|
+
* Update the values of properties declared in the manifest of a command.
|
|
7216
|
+
*
|
|
7217
|
+
* @param metadata - An object with the values for the manifest properties to update.
|
|
7218
|
+
* Note that currently only `subtitle` is supported. Pass `null` to clear the custom subtitle.
|
|
7219
|
+
* @returns A Promise that resolves when the metadata has been updated.
|
|
7220
|
+
*
|
|
7221
|
+
* @example
|
|
7222
|
+
* ```typescript
|
|
7223
|
+
* import { open } from "@raycast/api";
|
|
7224
|
+
*
|
|
7225
|
+
* export default async () => {
|
|
7226
|
+
* await updateCommandMetadata({ subtitle: "My new subtitle" });
|
|
7227
|
+
* };
|
|
7228
|
+
* ```
|
|
7229
|
+
* @remarks The actual manifest file is not modified, so the update applies as
|
|
7230
|
+
* long as the command remains installed.
|
|
7231
|
+
*/
|
|
7232
|
+
export declare function updateCommandMetadata(metadata: {
|
|
7233
|
+
subtitle?: string | null;
|
|
7234
|
+
}): Promise<void>;
|
|
7235
|
+
|
|
6698
7236
|
/**
|
|
6699
7237
|
* @deprecated No alternative :(
|
|
6700
7238
|
*/
|