@raycast/api 1.34.1 → 1.35.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/bin/arm64/ray +0 -0
- package/bin/x86/ray +0 -0
- package/package.json +1 -1
- package/types/index.d.ts +269 -42
package/bin/arm64/ray
CHANGED
|
Binary file
|
package/bin/x86/ray
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -730,7 +730,7 @@ export declare namespace Color {
|
|
|
730
730
|
* Raycast user interface. This makes it easy to guarantee a good look and feel when you aren't in control of the
|
|
731
731
|
* color, e.g. get it via a network request.
|
|
732
732
|
*
|
|
733
|
-
* @defaultValue false
|
|
733
|
+
* @defaultValue `false`
|
|
734
734
|
*/
|
|
735
735
|
adjustContrast?: boolean | undefined | null;
|
|
736
736
|
}
|
|
@@ -1088,7 +1088,7 @@ declare interface CopyToClipboardProps {
|
|
|
1088
1088
|
content: string | number;
|
|
1089
1089
|
/**
|
|
1090
1090
|
* An optional title for the action.
|
|
1091
|
-
* @defaultValue Copy to Clipboard
|
|
1091
|
+
* @defaultValue `"Copy to Clipboard"`
|
|
1092
1092
|
*/
|
|
1093
1093
|
title?: string;
|
|
1094
1094
|
/**
|
|
@@ -1165,16 +1165,16 @@ declare interface DatePickerMembers {
|
|
|
1165
1165
|
* * `Date` - only year, month, and day can be picked
|
|
1166
1166
|
* * `DateTime` - hour and second can be picked in addition to year, month and day
|
|
1167
1167
|
*/
|
|
1168
|
-
Type: typeof
|
|
1168
|
+
Type: typeof DatePickerType;
|
|
1169
1169
|
}
|
|
1170
1170
|
|
|
1171
1171
|
declare interface DatePickerProps extends FormItemProps_2<Date> {
|
|
1172
1172
|
/**
|
|
1173
1173
|
* Indicates what types of date components can be picked
|
|
1174
1174
|
*
|
|
1175
|
-
* Defaults to {@link
|
|
1175
|
+
* Defaults to {@link Form.DatePicker.Type.DateTime}
|
|
1176
1176
|
*/
|
|
1177
|
-
type?:
|
|
1177
|
+
type?: DatePickerType;
|
|
1178
1178
|
}
|
|
1179
1179
|
|
|
1180
1180
|
/**
|
|
@@ -1182,6 +1182,20 @@ declare interface DatePickerProps extends FormItemProps_2<Date> {
|
|
|
1182
1182
|
*/
|
|
1183
1183
|
declare type DatePickerRef = FormItemRef;
|
|
1184
1184
|
|
|
1185
|
+
/**
|
|
1186
|
+
* See {@link Form.DatePicker.Type}
|
|
1187
|
+
*/
|
|
1188
|
+
declare enum DatePickerType {
|
|
1189
|
+
/**
|
|
1190
|
+
* Only year, month, and day can be picked
|
|
1191
|
+
*/
|
|
1192
|
+
Date = "date",
|
|
1193
|
+
/**
|
|
1194
|
+
* hour and second can be picked in addition to year, month and day
|
|
1195
|
+
*/
|
|
1196
|
+
DateTime = "date_time"
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1185
1199
|
declare interface DeprecatedActionPanelMembers {
|
|
1186
1200
|
/**
|
|
1187
1201
|
* @deprecated Use {@link Action} instead.
|
|
@@ -1309,7 +1323,7 @@ export declare namespace Detail {
|
|
|
1309
1323
|
/**
|
|
1310
1324
|
* See {@link List.Item.Detail}
|
|
1311
1325
|
*/
|
|
1312
|
-
declare const Detail_2: FunctionComponent<DetailProps_3
|
|
1326
|
+
declare const Detail_2: FunctionComponent<DetailProps_3> & DetailMembers_2;
|
|
1313
1327
|
|
|
1314
1328
|
declare interface DetailMembers {
|
|
1315
1329
|
/**
|
|
@@ -1320,6 +1334,96 @@ declare interface DetailMembers {
|
|
|
1320
1334
|
Metadata: typeof Metadata;
|
|
1321
1335
|
}
|
|
1322
1336
|
|
|
1337
|
+
declare interface DetailMembers_2 {
|
|
1338
|
+
/**
|
|
1339
|
+
* A Metadata view that will be shown in the bottom side of the `List.Item.Detail`.
|
|
1340
|
+
*
|
|
1341
|
+
* Use it to display additional structured data about the content of the `List.Item`.
|
|
1342
|
+
*
|
|
1343
|
+
* @example
|
|
1344
|
+
* ```typescript
|
|
1345
|
+
* import { List } from "@raycast/api";
|
|
1346
|
+
*
|
|
1347
|
+
* export default function Metadata() {
|
|
1348
|
+
* const markdown = `
|
|
1349
|
+
* 
|
|
1350
|
+
* There is a plant seed on its back right from the day this Pokémon is born. The seed slowly grows larger.
|
|
1351
|
+
* `;
|
|
1352
|
+
* return (
|
|
1353
|
+
* <List isShowingDetail>
|
|
1354
|
+
* <List.Item
|
|
1355
|
+
* title="Bulbasaur"
|
|
1356
|
+
* detail={
|
|
1357
|
+
* <List.Item.Detail
|
|
1358
|
+
* markdown={markdown}
|
|
1359
|
+
* metadata={
|
|
1360
|
+
* <List.Item.Detail.Metadata>
|
|
1361
|
+
* <List.Item.Detail.Metadata.Label title="Types" />
|
|
1362
|
+
* <List.Item.Detail.Metadata.Label title="Grass" icon="pokemon_types/grass.svg" />
|
|
1363
|
+
* <List.Item.Detail.Metadata.Separator />
|
|
1364
|
+
* <List.Item.Detail.Metadata.Label title="Poison" icon="pokemon_types/poison.svg" />
|
|
1365
|
+
* <List.Item.Detail.Metadata.Separator />
|
|
1366
|
+
* <List.Item.Detail.Metadata.Label title="Chracteristics" />
|
|
1367
|
+
* <List.Item.Detail.Metadata.Label title="Height" text="70cm" />
|
|
1368
|
+
* <List.Item.Detail.Metadata.Separator />
|
|
1369
|
+
* <List.Item.Detail.Metadata.Label title="Weight" text="6.9 kg" />
|
|
1370
|
+
* <List.Item.Detail.Metadata.Separator />
|
|
1371
|
+
* <List.Item.Detail.Metadata.Label title="Abilities" />
|
|
1372
|
+
* <List.Item.Detail.Metadata.Label title="Chlorophyll" text="Main Series" />
|
|
1373
|
+
* <List.Item.Detail.Metadata.Separator />
|
|
1374
|
+
* <List.Item.Detail.Metadata.Label title="Overgrow" text="Main Series" />
|
|
1375
|
+
* <List.Item.Detail.Metadata.Separator />
|
|
1376
|
+
* </List.Item.Detail.Metadata>
|
|
1377
|
+
* }
|
|
1378
|
+
* />
|
|
1379
|
+
* }
|
|
1380
|
+
* />
|
|
1381
|
+
* </List>
|
|
1382
|
+
* );
|
|
1383
|
+
* }
|
|
1384
|
+
* ```
|
|
1385
|
+
*
|
|
1386
|
+
* @example
|
|
1387
|
+
* ```typescript
|
|
1388
|
+
* import { List } from "@raycast/api";
|
|
1389
|
+
*
|
|
1390
|
+
* export default function Metadata() {
|
|
1391
|
+
* return (
|
|
1392
|
+
* <List isShowingDetail>
|
|
1393
|
+
* <List.Item
|
|
1394
|
+
* title="Bulbasaur"
|
|
1395
|
+
* detail={
|
|
1396
|
+
* <List.Item.Detail
|
|
1397
|
+
* metadata={
|
|
1398
|
+
* <List.Item.Detail.Metadata>
|
|
1399
|
+
* <List.Item.Detail.Metadata.Label title="Types" />
|
|
1400
|
+
* <List.Item.Detail.Metadata.Label title="Grass" icon="pokemon_types/grass.svg" />
|
|
1401
|
+
* <List.Item.Detail.Metadata.Separator />
|
|
1402
|
+
* <List.Item.Detail.Metadata.Label title="Poison" icon="pokemon_types/poison.svg" />
|
|
1403
|
+
* <List.Item.Detail.Metadata.Separator />
|
|
1404
|
+
* <List.Item.Detail.Metadata.Label title="Chracteristics" />
|
|
1405
|
+
* <List.Item.Detail.Metadata.Label title="Height" text="70cm" />
|
|
1406
|
+
* <List.Item.Detail.Metadata.Separator />
|
|
1407
|
+
* <List.Item.Detail.Metadata.Label title="Weight" text="6.9 kg" />
|
|
1408
|
+
* <List.Item.Detail.Metadata.Separator />
|
|
1409
|
+
* <List.Item.Detail.Metadata.Label title="Abilities" />
|
|
1410
|
+
* <List.Item.Detail.Metadata.Label title="Chlorophyll" text="Main Series" />
|
|
1411
|
+
* <List.Item.Detail.Metadata.Separator />
|
|
1412
|
+
* <List.Item.Detail.Metadata.Label title="Overgrow" text="Main Series" />
|
|
1413
|
+
* <List.Item.Detail.Metadata.Separator />
|
|
1414
|
+
* </List.Item.Detail.Metadata>
|
|
1415
|
+
* }
|
|
1416
|
+
* />
|
|
1417
|
+
* }
|
|
1418
|
+
* />
|
|
1419
|
+
* </List>
|
|
1420
|
+
* );
|
|
1421
|
+
* }
|
|
1422
|
+
* ```
|
|
1423
|
+
*/
|
|
1424
|
+
Metadata: typeof Metadata_2;
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1323
1427
|
/**
|
|
1324
1428
|
* @deprecated Use {@link Detail.Props} instead.
|
|
1325
1429
|
*/
|
|
@@ -1341,13 +1445,17 @@ declare interface DetailProps_3 {
|
|
|
1341
1445
|
/**
|
|
1342
1446
|
* Indicates whether a loading bar should be shown or hidden above the detail
|
|
1343
1447
|
*
|
|
1344
|
-
* @defaultValue false
|
|
1448
|
+
* @defaultValue `false`
|
|
1345
1449
|
*/
|
|
1346
1450
|
isLoading?: boolean;
|
|
1347
1451
|
/**
|
|
1348
1452
|
* The CommonMark string to be rendered in the right side area when the parent List is showing details and the item is selected.
|
|
1349
1453
|
*/
|
|
1350
1454
|
markdown?: string | null;
|
|
1455
|
+
/**
|
|
1456
|
+
* The `List.Item.Detail.Metadata` to be rendered in the bottom side of the `List.Item.Detail`
|
|
1457
|
+
*/
|
|
1458
|
+
metadata?: ReactNode;
|
|
1351
1459
|
}
|
|
1352
1460
|
|
|
1353
1461
|
/**
|
|
@@ -1528,7 +1636,7 @@ declare interface DropdownMembers_2 {
|
|
|
1528
1636
|
*/
|
|
1529
1637
|
declare interface DropdownProps extends FormItemProps_2<string> {
|
|
1530
1638
|
/**
|
|
1531
|
-
* Sections or items. If {@link
|
|
1639
|
+
* Sections or items. If {@link Form.Dropdown.Item} elements are specified, a default section is automatically created.
|
|
1532
1640
|
*/
|
|
1533
1641
|
children?: ReactNode;
|
|
1534
1642
|
}
|
|
@@ -1545,7 +1653,7 @@ declare interface DropdownProps_2 {
|
|
|
1545
1653
|
/**
|
|
1546
1654
|
* Placeholder text that will be shown in the dropdown search field.
|
|
1547
1655
|
*
|
|
1548
|
-
* @defaultValue Search...
|
|
1656
|
+
* @defaultValue `"Search..."`
|
|
1549
1657
|
*/
|
|
1550
1658
|
placeholder?: string;
|
|
1551
1659
|
/**
|
|
@@ -2119,6 +2227,12 @@ export declare namespace Form {
|
|
|
2119
2227
|
* Props of the {@link Form.DatePicker} React component.
|
|
2120
2228
|
*/
|
|
2121
2229
|
export type Props = DatePickerProps;
|
|
2230
|
+
/**
|
|
2231
|
+
* The types of date components the user can pick
|
|
2232
|
+
* * `Date` - only year, month, and day can be picked
|
|
2233
|
+
* * `DateTime` - hour and second can be picked in addition to year, month and day
|
|
2234
|
+
*/
|
|
2235
|
+
export type Type = DatePickerType;
|
|
2122
2236
|
}
|
|
2123
2237
|
/**
|
|
2124
2238
|
* A Ref Type for the {@link Form.Dropdown}.
|
|
@@ -2328,20 +2442,6 @@ export declare const FormDatePicker: typeof Form.DatePicker;
|
|
|
2328
2442
|
export declare interface FormDatePickerProps extends Form.DatePicker.Props {
|
|
2329
2443
|
}
|
|
2330
2444
|
|
|
2331
|
-
/**
|
|
2332
|
-
* See {@link Form.DatePicker.Type}
|
|
2333
|
-
*/
|
|
2334
|
-
declare enum FormDatePickerType {
|
|
2335
|
-
/**
|
|
2336
|
-
* Only year, month, and day can be picked
|
|
2337
|
-
*/
|
|
2338
|
-
Date = "date",
|
|
2339
|
-
/**
|
|
2340
|
-
* hour and second can be picked in addition to year, month and day
|
|
2341
|
-
*/
|
|
2342
|
-
DateTime = "date_time"
|
|
2343
|
-
}
|
|
2344
|
-
|
|
2345
2445
|
/**
|
|
2346
2446
|
* @deprecated Use {@link Form.Dropdown} instead.
|
|
2347
2447
|
*/
|
|
@@ -2409,20 +2509,20 @@ declare interface FormItemProps_2<T extends FormValue_2> {
|
|
|
2409
2509
|
/**
|
|
2410
2510
|
* The current value of the item.
|
|
2411
2511
|
*/
|
|
2412
|
-
value?: T
|
|
2512
|
+
value?: T;
|
|
2413
2513
|
/**
|
|
2414
2514
|
* The default value of the item.
|
|
2415
2515
|
* 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.
|
|
2416
2516
|
*
|
|
2417
|
-
* If you're using
|
|
2517
|
+
* If you're using `storeValue` and configured it as `true` then the stored value will be set.
|
|
2418
2518
|
*
|
|
2419
|
-
* If you configure
|
|
2519
|
+
* If you configure `value` at the same time with `defaultValue`, the `value` will be set instead of `defaultValue`.
|
|
2420
2520
|
*/
|
|
2421
|
-
defaultValue?: T
|
|
2521
|
+
defaultValue?: T;
|
|
2422
2522
|
/**
|
|
2423
|
-
* The callback which will be triggered
|
|
2523
|
+
* The callback which will be triggered when the `value` of the item changes.
|
|
2424
2524
|
*/
|
|
2425
|
-
onChange?: (newValue: T
|
|
2525
|
+
onChange?: (newValue: T) => void;
|
|
2426
2526
|
}
|
|
2427
2527
|
|
|
2428
2528
|
/**
|
|
@@ -2430,7 +2530,7 @@ declare interface FormItemProps_2<T extends FormValue_2> {
|
|
|
2430
2530
|
*/
|
|
2431
2531
|
declare interface FormItemRef {
|
|
2432
2532
|
/**
|
|
2433
|
-
*
|
|
2533
|
+
* Focuses the item.
|
|
2434
2534
|
*
|
|
2435
2535
|
* @example
|
|
2436
2536
|
* ```typescript
|
|
@@ -2464,8 +2564,9 @@ declare interface FormItemRef {
|
|
|
2464
2564
|
focus: () => void;
|
|
2465
2565
|
/**
|
|
2466
2566
|
* Resets value of the item
|
|
2567
|
+
*
|
|
2467
2568
|
* @remarks
|
|
2468
|
-
*
|
|
2569
|
+
* If `defaultValue` is defined, calling the `.reset()` function will set `value` to the `defaultValue`.
|
|
2469
2570
|
*
|
|
2470
2571
|
* @example
|
|
2471
2572
|
* ```typescript
|
|
@@ -3612,6 +3713,11 @@ export declare type KeyModifier = Keyboard.KeyModifier;
|
|
|
3612
3713
|
*/
|
|
3613
3714
|
declare const Label: FunctionComponent<LabelProps>;
|
|
3614
3715
|
|
|
3716
|
+
/**
|
|
3717
|
+
* See {@link List.Item.Detail.Metadata.Label}
|
|
3718
|
+
*/
|
|
3719
|
+
declare const Label_2: FunctionComponent<LabelProps_2>;
|
|
3720
|
+
|
|
3615
3721
|
declare interface LabelProps {
|
|
3616
3722
|
/**
|
|
3617
3723
|
* The title shown above the item.
|
|
@@ -3627,6 +3733,21 @@ declare interface LabelProps {
|
|
|
3627
3733
|
text?: string;
|
|
3628
3734
|
}
|
|
3629
3735
|
|
|
3736
|
+
declare interface LabelProps_2 {
|
|
3737
|
+
/**
|
|
3738
|
+
* The title of the item.
|
|
3739
|
+
*/
|
|
3740
|
+
title: string;
|
|
3741
|
+
/**
|
|
3742
|
+
* An icon to illustrate the value of the item.
|
|
3743
|
+
*/
|
|
3744
|
+
icon?: Image.ImageLike | undefined | null;
|
|
3745
|
+
/**
|
|
3746
|
+
* The text value of the item.
|
|
3747
|
+
*/
|
|
3748
|
+
text?: string;
|
|
3749
|
+
}
|
|
3750
|
+
|
|
3630
3751
|
/**
|
|
3631
3752
|
* See {@link Detail.Metadata.Link}
|
|
3632
3753
|
*/
|
|
@@ -3944,13 +4065,13 @@ declare interface ListProps_2 extends ActionsInterface, NavigationChildInterface
|
|
|
3944
4065
|
* @remarks
|
|
3945
4066
|
* Having this enabled when filtering items in the extension is unspecified behaviour.
|
|
3946
4067
|
*
|
|
3947
|
-
* @defaultValue false when `onSearchTextChange` is specified, true otherwise.
|
|
4068
|
+
* @defaultValue `false` when `onSearchTextChange` is specified, `true` otherwise.
|
|
3948
4069
|
*/
|
|
3949
4070
|
enableFiltering?: boolean;
|
|
3950
4071
|
/**
|
|
3951
4072
|
* Placeholder text that will be shown in the search bar.
|
|
3952
4073
|
*
|
|
3953
|
-
* @defaultValue Search value...
|
|
4074
|
+
* @defaultValue `"Search value..."`
|
|
3954
4075
|
*/
|
|
3955
4076
|
searchBarPlaceholder?: string;
|
|
3956
4077
|
/**
|
|
@@ -3960,7 +4081,7 @@ declare interface ListProps_2 extends ActionsInterface, NavigationChildInterface
|
|
|
3960
4081
|
/**
|
|
3961
4082
|
* Defines whether the {@link List.Props.onSearchTextChange} will be triggered on every keyboard press or with a delay for throttling the events.
|
|
3962
4083
|
* Recommended to set to `true` when using custom filtering logic with asynchronous operations (e.g. network requests).
|
|
3963
|
-
* @defaultValue false
|
|
4084
|
+
* @defaultValue `false`
|
|
3964
4085
|
*/
|
|
3965
4086
|
throttle?: boolean;
|
|
3966
4087
|
/**
|
|
@@ -4125,6 +4246,11 @@ export declare interface LocalStorageValues extends LocalStorage.Values {
|
|
|
4125
4246
|
*/
|
|
4126
4247
|
declare const Metadata: FunctionComponent<MetadataProps> & MetadataMembers;
|
|
4127
4248
|
|
|
4249
|
+
/**
|
|
4250
|
+
* See {@link List.Item.Detail.Metadata}
|
|
4251
|
+
*/
|
|
4252
|
+
declare const Metadata_2: FunctionComponent<MetadataProps_2> & MetadataMembers_2;
|
|
4253
|
+
|
|
4128
4254
|
declare interface MetadataMembers {
|
|
4129
4255
|
/**
|
|
4130
4256
|
* A single value with an optional icon.
|
|
@@ -4144,6 +4270,67 @@ declare interface MetadataMembers {
|
|
|
4144
4270
|
TagList: typeof TagList;
|
|
4145
4271
|
}
|
|
4146
4272
|
|
|
4273
|
+
declare interface MetadataMembers_2 {
|
|
4274
|
+
/**
|
|
4275
|
+
* A title with, optionally, an icon and/or text to its right.
|
|
4276
|
+
*
|
|
4277
|
+
* @example
|
|
4278
|
+
* ```typescript
|
|
4279
|
+
* import { List } from "@raycast/api";
|
|
4280
|
+
*
|
|
4281
|
+
* export default function Metadata() {
|
|
4282
|
+
* return (
|
|
4283
|
+
* <List isShowingDetail>
|
|
4284
|
+
* <List.Item
|
|
4285
|
+
* title="Bulbasaur"
|
|
4286
|
+
* detail={
|
|
4287
|
+
* <List.Item.Detail
|
|
4288
|
+
* metadata={
|
|
4289
|
+
* <List.Item.Detail.Metadata>
|
|
4290
|
+
* <List.Item.Detail.Metadata.Label title="Type" icon="pokemon_types/grass.svg" text="Grass"/>
|
|
4291
|
+
* </List.Item.Detail.Metadata>
|
|
4292
|
+
* }
|
|
4293
|
+
* />
|
|
4294
|
+
* }
|
|
4295
|
+
* />
|
|
4296
|
+
* </List>
|
|
4297
|
+
* );
|
|
4298
|
+
* }
|
|
4299
|
+
* ```
|
|
4300
|
+
*/
|
|
4301
|
+
Label: typeof Label_2;
|
|
4302
|
+
/**
|
|
4303
|
+
* A metadata item that shows a separator line. Use it for grouping and visually separating metadata items.
|
|
4304
|
+
*
|
|
4305
|
+
* @example
|
|
4306
|
+
* ```typescript
|
|
4307
|
+
* import { List } from "@raycast/api";
|
|
4308
|
+
*
|
|
4309
|
+
* export default function Metadata() {
|
|
4310
|
+
* return (
|
|
4311
|
+
* <List isShowingDetail>
|
|
4312
|
+
* <List.Item
|
|
4313
|
+
* title="Bulbasaur"
|
|
4314
|
+
* detail={
|
|
4315
|
+
* <List.Item.Detail
|
|
4316
|
+
* metadata={
|
|
4317
|
+
* <List.Item.Detail.Metadata>
|
|
4318
|
+
* <List.Item.Detail.Metadata.Label title="Type" icon="pokemon_types/grass.svg" text="Grass"/>
|
|
4319
|
+
* <List.Item.Detail.Metadata.Separator />
|
|
4320
|
+
* <List.Item.Detail.Metadata.Label title="Type" icon="pokemon_types/poison.svg" text="Poison"/>
|
|
4321
|
+
* </List.Item.Detail.Metadata>
|
|
4322
|
+
* }
|
|
4323
|
+
* />
|
|
4324
|
+
* }
|
|
4325
|
+
* />
|
|
4326
|
+
* </List>
|
|
4327
|
+
* );
|
|
4328
|
+
* }
|
|
4329
|
+
* ```
|
|
4330
|
+
*/
|
|
4331
|
+
Separator: typeof Separator_3;
|
|
4332
|
+
}
|
|
4333
|
+
|
|
4147
4334
|
declare interface MetadataProps {
|
|
4148
4335
|
/**
|
|
4149
4336
|
* The Detail.Metadata.Item elements of the Metadata view.
|
|
@@ -4151,6 +4338,13 @@ declare interface MetadataProps {
|
|
|
4151
4338
|
children: ReactNode;
|
|
4152
4339
|
}
|
|
4153
4340
|
|
|
4341
|
+
declare interface MetadataProps_2 {
|
|
4342
|
+
/**
|
|
4343
|
+
* The {@link Detail.Metadata.Item}s of the Metadata view.
|
|
4344
|
+
*/
|
|
4345
|
+
children: ReactNode;
|
|
4346
|
+
}
|
|
4347
|
+
|
|
4154
4348
|
/**
|
|
4155
4349
|
* Return type of the {@link useNavigation} hook to perform push and pop actions.
|
|
4156
4350
|
*/
|
|
@@ -4181,7 +4375,7 @@ declare interface NavigationChildInterface {
|
|
|
4181
4375
|
/**
|
|
4182
4376
|
* Indicates whether a loading bar should be shown or hidden below the search bar
|
|
4183
4377
|
*
|
|
4184
|
-
* @defaultValue false
|
|
4378
|
+
* @defaultValue `false`
|
|
4185
4379
|
*/
|
|
4186
4380
|
isLoading?: boolean;
|
|
4187
4381
|
}
|
|
@@ -4518,6 +4712,16 @@ export declare const OpenAction: FunctionComponent<OpenProps>;
|
|
|
4518
4712
|
export declare interface OpenActionProps extends Action.Open.Props {
|
|
4519
4713
|
}
|
|
4520
4714
|
|
|
4715
|
+
/**
|
|
4716
|
+
* Opens Raycast's preference window and selects the current command.
|
|
4717
|
+
*/
|
|
4718
|
+
export declare function openCommandPreferences(): Promise<void>;
|
|
4719
|
+
|
|
4720
|
+
/**
|
|
4721
|
+
* Opens Raycast's preference window and selects the current extension.
|
|
4722
|
+
*/
|
|
4723
|
+
export declare function openExtensionPreferences(): Promise<void>;
|
|
4724
|
+
|
|
4521
4725
|
/**
|
|
4522
4726
|
* See {@link Action.OpenInBrowser}
|
|
4523
4727
|
*/
|
|
@@ -4544,7 +4748,7 @@ declare interface OpenInBrowserProps {
|
|
|
4544
4748
|
url: string;
|
|
4545
4749
|
/**
|
|
4546
4750
|
* An optional title for the action.
|
|
4547
|
-
* @defaultValue Open in Browser
|
|
4751
|
+
* @defaultValue `"Open in Browser"`
|
|
4548
4752
|
*/
|
|
4549
4753
|
title?: string;
|
|
4550
4754
|
/**
|
|
@@ -4629,7 +4833,7 @@ declare interface OpenWithProps {
|
|
|
4629
4833
|
path: string;
|
|
4630
4834
|
/**
|
|
4631
4835
|
* The title for the action.
|
|
4632
|
-
* @defaultValue Open With
|
|
4836
|
+
* @defaultValue `"Open With"`
|
|
4633
4837
|
*/
|
|
4634
4838
|
title?: string;
|
|
4635
4839
|
/**
|
|
@@ -4696,7 +4900,7 @@ declare interface PasteProps {
|
|
|
4696
4900
|
content: string | number;
|
|
4697
4901
|
/**
|
|
4698
4902
|
* An optional title for the action.
|
|
4699
|
-
* @defaultValue Paste in Active app
|
|
4903
|
+
* @defaultValue `"Paste in Active app"`
|
|
4700
4904
|
*/
|
|
4701
4905
|
title?: string;
|
|
4702
4906
|
/**
|
|
@@ -4777,7 +4981,7 @@ declare interface Preference_2 {
|
|
|
4777
4981
|
* If the preference is required, an onboarding view is shown when the
|
|
4778
4982
|
* extension is opened for the first time.
|
|
4779
4983
|
*
|
|
4780
|
-
* @defaultValue false
|
|
4984
|
+
* @defaultValue `false`
|
|
4781
4985
|
*/
|
|
4782
4986
|
required: boolean;
|
|
4783
4987
|
/**
|
|
@@ -4974,6 +5178,11 @@ declare const Separator: FunctionComponent<SeparatorProps>;
|
|
|
4974
5178
|
*/
|
|
4975
5179
|
declare const Separator_2: FunctionComponent<SeparatorProps_2>;
|
|
4976
5180
|
|
|
5181
|
+
/**
|
|
5182
|
+
* See {@link List.Item.Detail.Metadata.Label}
|
|
5183
|
+
*/
|
|
5184
|
+
declare const Separator_3: FunctionComponent<SeparatorProps_3>;
|
|
5185
|
+
|
|
4977
5186
|
/**
|
|
4978
5187
|
* See {@link Form.Separator.Props}
|
|
4979
5188
|
*/
|
|
@@ -4983,6 +5192,9 @@ declare interface SeparatorProps {
|
|
|
4983
5192
|
declare interface SeparatorProps_2 {
|
|
4984
5193
|
}
|
|
4985
5194
|
|
|
5195
|
+
declare interface SeparatorProps_3 {
|
|
5196
|
+
}
|
|
5197
|
+
|
|
4986
5198
|
/**
|
|
4987
5199
|
* @deprecated Use {@link LocalStorage.setItem} instead
|
|
4988
5200
|
*/
|
|
@@ -5050,7 +5262,7 @@ declare interface ShowInFinderProps {
|
|
|
5050
5262
|
path: PathLike;
|
|
5051
5263
|
/**
|
|
5052
5264
|
* An optional title for the action.
|
|
5053
|
-
* @defaultValue Show in Finder
|
|
5265
|
+
* @defaultValue `"Show in Finder"`
|
|
5054
5266
|
*/
|
|
5055
5267
|
title?: string;
|
|
5056
5268
|
/**
|
|
@@ -5212,7 +5424,7 @@ export declare interface SubmitFormActionProps<T> extends Action.SubmitForm.Prop
|
|
|
5212
5424
|
declare interface SubmitFormProps<T extends Form.Values> {
|
|
5213
5425
|
/**
|
|
5214
5426
|
* The title displayed for the item.
|
|
5215
|
-
* @defaultValue Submit Form
|
|
5427
|
+
* @defaultValue `"Submit Form"`
|
|
5216
5428
|
*/
|
|
5217
5429
|
title?: string;
|
|
5218
5430
|
/**
|
|
@@ -5415,14 +5627,29 @@ export declare class Toast {
|
|
|
5415
5627
|
* Deprecated - Use `showToast` instead
|
|
5416
5628
|
*/
|
|
5417
5629
|
constructor(props: Toast.Options);
|
|
5630
|
+
/**
|
|
5631
|
+
* The style of a Toast.
|
|
5632
|
+
*/
|
|
5418
5633
|
get style(): Toast.Style;
|
|
5419
5634
|
set style(style: Toast.Style);
|
|
5635
|
+
/**
|
|
5636
|
+
* The title of a Toast. Displayed on the top.
|
|
5637
|
+
*/
|
|
5420
5638
|
get title(): string;
|
|
5421
5639
|
set title(title: string);
|
|
5640
|
+
/**
|
|
5641
|
+
* An additional message for the Toast. Useful to show more information, e.g. an identifier of a newly created asset.
|
|
5642
|
+
*/
|
|
5422
5643
|
get message(): string | undefined;
|
|
5423
5644
|
set message(message: string | undefined);
|
|
5645
|
+
/**
|
|
5646
|
+
* The primary Action the user can take when hovering on the Toast.
|
|
5647
|
+
*/
|
|
5424
5648
|
get primaryAction(): Toast.ActionOptions | undefined;
|
|
5425
5649
|
set primaryAction(action: Toast.ActionOptions | undefined);
|
|
5650
|
+
/**
|
|
5651
|
+
* The secondary Action the user can take when hovering on the Toast.
|
|
5652
|
+
*/
|
|
5426
5653
|
get secondaryAction(): Toast.ActionOptions | undefined;
|
|
5427
5654
|
set secondaryAction(action: Toast.ActionOptions | undefined);
|
|
5428
5655
|
/**
|
|
@@ -5582,7 +5809,7 @@ declare interface TrashProps {
|
|
|
5582
5809
|
paths: PathLike | PathLike[];
|
|
5583
5810
|
/**
|
|
5584
5811
|
* An optional title for the action.
|
|
5585
|
-
* @defaultValue Move to Trash
|
|
5812
|
+
* @defaultValue `"Move to Trash"`
|
|
5586
5813
|
*/
|
|
5587
5814
|
title?: string;
|
|
5588
5815
|
/**
|