@raycast/api 1.38.1 → 1.39.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 +125 -7
- package/bin/ray +53 -12
- package/package.json +5 -2
- package/types/index.d.ts +125 -7
- package/bin/arm64/ray +0 -0
- package/bin/x86/ray +0 -0
package/api.d.ts
CHANGED
|
@@ -2109,6 +2109,10 @@ export declare interface Environment {
|
|
|
2109
2109
|
* The name of the launched command, as specified in package.json
|
|
2110
2110
|
*/
|
|
2111
2111
|
commandName: string;
|
|
2112
|
+
/**
|
|
2113
|
+
* The mode of the launched command, as specified in package.json
|
|
2114
|
+
*/
|
|
2115
|
+
commandMode: "no-view" | "view" | "menu-bar";
|
|
2112
2116
|
/**
|
|
2113
2117
|
* The absolute path to the assets directory of the extension.
|
|
2114
2118
|
*
|
|
@@ -2144,6 +2148,7 @@ export declare interface Environment {
|
|
|
2144
2148
|
* console.log(`Raycast version: ${environment.raycastVersion}`);
|
|
2145
2149
|
* console.log(`Extension name: ${environment.extensionName}`);
|
|
2146
2150
|
* console.log(`Command name: ${environment.commandName}`);
|
|
2151
|
+
* console.log(`Command mode: ${environment.commandMode}`);
|
|
2147
2152
|
* console.log(`Assets path: ${environment.assetsPath}`);
|
|
2148
2153
|
* console.log(`Support path: ${environment.supportPath}`);
|
|
2149
2154
|
* console.log(`Is development mode: ${environment.isDevelopment}`);
|
|
@@ -2196,6 +2201,7 @@ export declare namespace Form {
|
|
|
2196
2201
|
export type Value = FormValue_2;
|
|
2197
2202
|
export type Values = FormValues_2;
|
|
2198
2203
|
export type Props = FormProps_2;
|
|
2204
|
+
export type ItemReference = FormItemRef;
|
|
2199
2205
|
/**
|
|
2200
2206
|
* An interface describing event in callbacks {@link Form.Item.Props.onFocus} and {@link Form.Item.Props.onBlur}
|
|
2201
2207
|
*/
|
|
@@ -3912,7 +3918,7 @@ declare interface GridMembers {
|
|
|
3912
3918
|
* export default function Command() {
|
|
3913
3919
|
* return (
|
|
3914
3920
|
* <Grid>
|
|
3915
|
-
* <Grid.Item
|
|
3921
|
+
* <Grid.Item content={Icon.Star} title="Augustiner Helles" subtitle="0,5 Liter" />
|
|
3916
3922
|
* </Grid>
|
|
3917
3923
|
* );
|
|
3918
3924
|
* }
|
|
@@ -4121,6 +4127,7 @@ export declare enum Icon {
|
|
|
4121
4127
|
BellDisabled = "bell-disabled-16",
|
|
4122
4128
|
Bike = "bike-16",
|
|
4123
4129
|
Binoculars = "binoculars-16",
|
|
4130
|
+
Bird = "bird-16",
|
|
4124
4131
|
BlankDocument = "blank-document-16",
|
|
4125
4132
|
Bluetooth = "bluetooth-16",
|
|
4126
4133
|
Boat = "boat-16",
|
|
@@ -4494,7 +4501,9 @@ export declare enum Icon {
|
|
|
4494
4501
|
/** @deprecated Use {@link Icon.SpeakerOff} instead. */
|
|
4495
4502
|
SpeakerSlash = "speaker-off-16",
|
|
4496
4503
|
/** @deprecated Use {@link Icon.BlankDocument} instead. */
|
|
4497
|
-
TextDocument = "blank-document-16"
|
|
4504
|
+
TextDocument = "blank-document-16",
|
|
4505
|
+
/** @deprecated Use {@link Icon.XMarkCircle} instead. */
|
|
4506
|
+
XmarkCircle = "x-mark-circle-16"
|
|
4498
4507
|
}
|
|
4499
4508
|
|
|
4500
4509
|
/**
|
|
@@ -4851,10 +4860,25 @@ declare interface ItemProps_2 extends ActionsInterface {
|
|
|
4851
4860
|
}
|
|
4852
4861
|
|
|
4853
4862
|
declare interface ItemProps_3 {
|
|
4863
|
+
/**
|
|
4864
|
+
* The main title displayed for this item.
|
|
4865
|
+
*/
|
|
4854
4866
|
title: string;
|
|
4867
|
+
/**
|
|
4868
|
+
* An optional icon for this item.
|
|
4869
|
+
*/
|
|
4855
4870
|
icon?: Image.ImageLike;
|
|
4871
|
+
/**
|
|
4872
|
+
* A tooltip to display when the cursor hovers the item.
|
|
4873
|
+
*/
|
|
4856
4874
|
tooltip?: string;
|
|
4875
|
+
/**
|
|
4876
|
+
* An action handler called when the user clicks the item.
|
|
4877
|
+
*/
|
|
4857
4878
|
onAction?: () => void;
|
|
4879
|
+
/**
|
|
4880
|
+
* A shortcut used to invoke this item when its parent menu is open.
|
|
4881
|
+
*/
|
|
4858
4882
|
shortcut?: Keyboard.Shortcut;
|
|
4859
4883
|
}
|
|
4860
4884
|
|
|
@@ -4994,6 +5018,11 @@ export declare enum LaunchType {
|
|
|
4994
5018
|
*/
|
|
4995
5019
|
declare const Link: FunctionComponent<LinkProps>;
|
|
4996
5020
|
|
|
5021
|
+
/**
|
|
5022
|
+
* See {@link List.Item.Detail.Metadata.Link}
|
|
5023
|
+
*/
|
|
5024
|
+
declare const Link_2: FunctionComponent<LinkProps_2>;
|
|
5025
|
+
|
|
4997
5026
|
declare interface LinkProps {
|
|
4998
5027
|
/**
|
|
4999
5028
|
* The title shown above the item.
|
|
@@ -5009,6 +5038,21 @@ declare interface LinkProps {
|
|
|
5009
5038
|
text: string;
|
|
5010
5039
|
}
|
|
5011
5040
|
|
|
5041
|
+
declare interface LinkProps_2 {
|
|
5042
|
+
/**
|
|
5043
|
+
* The title shown above the item.
|
|
5044
|
+
*/
|
|
5045
|
+
title: string;
|
|
5046
|
+
/**
|
|
5047
|
+
* The target of the link.
|
|
5048
|
+
*/
|
|
5049
|
+
target: string;
|
|
5050
|
+
/**
|
|
5051
|
+
* The text value of the item.
|
|
5052
|
+
*/
|
|
5053
|
+
text: string;
|
|
5054
|
+
}
|
|
5055
|
+
|
|
5012
5056
|
/**
|
|
5013
5057
|
* Displays {@link List.Section} or {@link List.Item}, optionally {@link List.Dropdown}.
|
|
5014
5058
|
*
|
|
@@ -5495,12 +5539,25 @@ declare interface MenuBarExtraMembers {
|
|
|
5495
5539
|
|
|
5496
5540
|
declare interface MenuBarExtraProps {
|
|
5497
5541
|
/**
|
|
5542
|
+
* Indicates to Raycast that it should not unload the command, as it is still executing. If you set make use of `isLoading`, you need to make sure you set it to `false` at the end of the task you are executing (such as an API call), so Raycast can then unload the command.
|
|
5498
5543
|
* @defaultValue `false`
|
|
5499
5544
|
*/
|
|
5500
5545
|
isLoading?: boolean;
|
|
5546
|
+
/**
|
|
5547
|
+
* The string that is displayed in the menu bar.
|
|
5548
|
+
*/
|
|
5501
5549
|
title?: string;
|
|
5550
|
+
/**
|
|
5551
|
+
* A tooltip to display when the cursor hovers the item in the menu bar.
|
|
5552
|
+
*/
|
|
5502
5553
|
tooltip?: string;
|
|
5554
|
+
/**
|
|
5555
|
+
* The icon that is displayed in the menu bar.
|
|
5556
|
+
*/
|
|
5503
5557
|
icon?: Image.ImageLike;
|
|
5558
|
+
/**
|
|
5559
|
+
* `MenuBarExtra.Item`s, `MenuBarExtra.Submenu`s, `MenuBarExtra.Separator` or a mix of either.
|
|
5560
|
+
*/
|
|
5504
5561
|
children?: ReactNode;
|
|
5505
5562
|
}
|
|
5506
5563
|
|
|
@@ -5562,6 +5619,10 @@ declare interface MetadataMembers_2 {
|
|
|
5562
5619
|
* ```
|
|
5563
5620
|
*/
|
|
5564
5621
|
Label: typeof Label_2;
|
|
5622
|
+
/**
|
|
5623
|
+
* An item to display a link.
|
|
5624
|
+
*/
|
|
5625
|
+
Link: typeof Link_2;
|
|
5565
5626
|
/**
|
|
5566
5627
|
* A metadata item that shows a separator line. Use it for grouping and visually separating metadata items.
|
|
5567
5628
|
*
|
|
@@ -5592,6 +5653,10 @@ declare interface MetadataMembers_2 {
|
|
|
5592
5653
|
* ```
|
|
5593
5654
|
*/
|
|
5594
5655
|
Separator: typeof Separator_3;
|
|
5656
|
+
/**
|
|
5657
|
+
* A list of {@link List.Item.Detail.Metadata.TagList.Item} displayed in a row.
|
|
5658
|
+
*/
|
|
5659
|
+
TagList: typeof TagList_2;
|
|
5595
5660
|
}
|
|
5596
5661
|
|
|
5597
5662
|
declare interface MetadataProps {
|
|
@@ -6710,11 +6775,17 @@ declare interface SubmenuProps {
|
|
|
6710
6775
|
}
|
|
6711
6776
|
|
|
6712
6777
|
declare interface SubmenuProps_2 {
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6778
|
+
/**
|
|
6779
|
+
* The main title displayed for this submenu.
|
|
6780
|
+
*/
|
|
6781
|
+
title: string;
|
|
6782
|
+
/**
|
|
6783
|
+
* An optional icon for this submenu.
|
|
6784
|
+
*/
|
|
6717
6785
|
icon?: Image.ImageLike;
|
|
6786
|
+
/**
|
|
6787
|
+
* `MenuBarExtra.Item`s, `MenuBarExtra.Submenu`s, `MenuBarExtra.Separator` or a mix of either.
|
|
6788
|
+
*/
|
|
6718
6789
|
children?: ReactNode;
|
|
6719
6790
|
}
|
|
6720
6791
|
|
|
@@ -6761,8 +6832,12 @@ declare interface SubmitFormProps<T extends Form.Values> {
|
|
|
6761
6832
|
* Callback that is triggered when the submit was submitted.
|
|
6762
6833
|
* Use the handler to perform custom validation logic and call other Raycast API methods.
|
|
6763
6834
|
* The handler receives a the values object containing the user input.
|
|
6835
|
+
*
|
|
6836
|
+
* @returns You can optionally return `false` to indicate that the submit action failed. Raycast will show some subtle feedback to the user that something went wrong. Pair it with the Form inputs' `validation` for a top-notch user experience.
|
|
6837
|
+
*
|
|
6838
|
+
* _If a user has the Accessibility setting 'Reduce Motion' enabled, Raycast won't show the feedback._
|
|
6764
6839
|
*/
|
|
6765
|
-
onSubmit?: (input: T) => void
|
|
6840
|
+
onSubmit?: (input: T) => void | boolean | Promise<void | boolean>;
|
|
6766
6841
|
}
|
|
6767
6842
|
|
|
6768
6843
|
/**
|
|
@@ -6770,11 +6845,21 @@ declare interface SubmitFormProps<T extends Form.Values> {
|
|
|
6770
6845
|
*/
|
|
6771
6846
|
declare const TagList: FunctionComponent<TagListProps> & TagListMembers;
|
|
6772
6847
|
|
|
6848
|
+
/**
|
|
6849
|
+
* See {@link List.Item.Detail.Metadata.TagList}
|
|
6850
|
+
*/
|
|
6851
|
+
declare const TagList_2: FunctionComponent<TagListProps_2> & TagListMembers_2;
|
|
6852
|
+
|
|
6773
6853
|
/**
|
|
6774
6854
|
* See {@link Detail.Metadata.TagList.Item}
|
|
6775
6855
|
*/
|
|
6776
6856
|
declare const TagListItem: FunctionComponent<TagListItemProps>;
|
|
6777
6857
|
|
|
6858
|
+
/**
|
|
6859
|
+
* See {@link Detail.Metadata.TagList.Item}
|
|
6860
|
+
*/
|
|
6861
|
+
declare const TagListItem_2: FunctionComponent<TagListItemProps_2>;
|
|
6862
|
+
|
|
6778
6863
|
declare interface TagListItemProps {
|
|
6779
6864
|
/**
|
|
6780
6865
|
* An optional icon in front of the text of the tag.
|
|
@@ -6790,6 +6875,21 @@ declare interface TagListItemProps {
|
|
|
6790
6875
|
color?: Color.ColorLike | undefined | null;
|
|
6791
6876
|
}
|
|
6792
6877
|
|
|
6878
|
+
declare interface TagListItemProps_2 {
|
|
6879
|
+
/**
|
|
6880
|
+
* An optional icon in front of the text of the tag.
|
|
6881
|
+
*/
|
|
6882
|
+
icon?: Image.ImageLike | undefined | null;
|
|
6883
|
+
/**
|
|
6884
|
+
* The text of the tag.
|
|
6885
|
+
*/
|
|
6886
|
+
text: string;
|
|
6887
|
+
/**
|
|
6888
|
+
* Changes the text color to the provided color and sets a transparent background with the same color.
|
|
6889
|
+
*/
|
|
6890
|
+
color?: Color.ColorLike | undefined | null;
|
|
6891
|
+
}
|
|
6892
|
+
|
|
6793
6893
|
declare interface TagListMembers {
|
|
6794
6894
|
/**
|
|
6795
6895
|
* A Tag in a {@link Detail.Metadata.TagList}.
|
|
@@ -6797,6 +6897,13 @@ declare interface TagListMembers {
|
|
|
6797
6897
|
Item: typeof TagListItem;
|
|
6798
6898
|
}
|
|
6799
6899
|
|
|
6900
|
+
declare interface TagListMembers_2 {
|
|
6901
|
+
/**
|
|
6902
|
+
* A Tag in a {@link List.Item.Detail.Metadata.TagList}.
|
|
6903
|
+
*/
|
|
6904
|
+
Item: typeof TagListItem_2;
|
|
6905
|
+
}
|
|
6906
|
+
|
|
6800
6907
|
declare interface TagListProps {
|
|
6801
6908
|
/**
|
|
6802
6909
|
* The title shown above the item.
|
|
@@ -6808,6 +6915,17 @@ declare interface TagListProps {
|
|
|
6808
6915
|
children: ReactNode;
|
|
6809
6916
|
}
|
|
6810
6917
|
|
|
6918
|
+
declare interface TagListProps_2 {
|
|
6919
|
+
/**
|
|
6920
|
+
* The title shown above the item.
|
|
6921
|
+
*/
|
|
6922
|
+
title: string;
|
|
6923
|
+
/**
|
|
6924
|
+
* The tags contained in the TagList.
|
|
6925
|
+
*/
|
|
6926
|
+
children: ReactNode;
|
|
6927
|
+
}
|
|
6928
|
+
|
|
6811
6929
|
/**
|
|
6812
6930
|
* See {@link Form.TagPicker}
|
|
6813
6931
|
*/
|
package/bin/ray
CHANGED
|
@@ -1,18 +1,59 @@
|
|
|
1
|
-
#!/
|
|
1
|
+
#!/bin/bash
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
# Determine the path for dist folder
|
|
4
|
+
# Using readlink -f to follow up any symlinks that will appear when using `npx`
|
|
5
|
+
script_path=$(readlink -f "${BASH_SOURCE:-$0}")
|
|
6
|
+
bin_dir=$(dirname $script_path)
|
|
7
|
+
dist_dir=$(dirname $bin_dir)
|
|
8
|
+
if [ -z "$bin_dir" ]; then
|
|
9
|
+
echo "Unable to determine CLI path from symlink: ${BASH_SOURCE-$0}"
|
|
9
10
|
exit 1
|
|
10
11
|
fi
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
if [ "$
|
|
15
|
-
|
|
13
|
+
# Read API version from package.json from current NPM, which will define the CLI version
|
|
14
|
+
api_version=$(sed -n 's|.*"version": "\([^"]*\)".*|\1|p' < "$dist_dir/package.json")
|
|
15
|
+
if [ -z "$api_version" ]; then
|
|
16
|
+
echo "Fail parsing version"
|
|
17
|
+
exit 1
|
|
18
|
+
fi
|
|
19
|
+
|
|
20
|
+
# CLI installation subroutine, using custom version and path for the CLI
|
|
21
|
+
function install_cli {
|
|
22
|
+
if ! curl -f -sL https://raycast.com/get-cli/ | VERSION="$api_version" INSTALL_PATH="$ray_path" bash; then
|
|
23
|
+
exit 1
|
|
24
|
+
fi
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
# Define the architecture directory in /dist folder to pick the right CLI version
|
|
28
|
+
os="$(uname)"
|
|
29
|
+
architecture="$(uname -m)"
|
|
30
|
+
architecture_dir="x86"
|
|
31
|
+
if [[ "${os}" = "Darwin" && "${architecture}" = "arm64" ]]; then
|
|
32
|
+
architecture_dir="arm64"
|
|
33
|
+
elif [ "${os}" = "Linux" ]; then
|
|
34
|
+
architecture_dir="linux"
|
|
35
|
+
fi
|
|
36
|
+
|
|
37
|
+
# Define the path for CLI for current architecture
|
|
38
|
+
ray_path=$bin_dir/$architecture_dir/ray
|
|
39
|
+
|
|
40
|
+
# If there is no CLI for current architecture, download it
|
|
41
|
+
if [ ! -f "$ray_path" ]; then
|
|
42
|
+
install_cli;
|
|
43
|
+
else
|
|
44
|
+
# If version of the CLI for current architecture is outdated, re-download the CLI
|
|
45
|
+
ray_version=$($ray_path version)
|
|
46
|
+
if [ "$ray_version" != "$api_version" ]; then
|
|
47
|
+
install_cli;
|
|
48
|
+
fi
|
|
16
49
|
fi
|
|
17
50
|
|
|
18
|
-
|
|
51
|
+
# For npm-post-install script, we don't execute the CLI
|
|
52
|
+
if [ "$1" == "npm-post-install" ]; then
|
|
53
|
+
exit 0
|
|
54
|
+
fi
|
|
55
|
+
|
|
56
|
+
# Execute the CLI passing all parameters to it
|
|
57
|
+
file /usr/local
|
|
58
|
+
|
|
59
|
+
$ray_path "$@"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raycast/api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.39.0",
|
|
4
4
|
"description": "Build extensions for Raycast with React and Node.js.",
|
|
5
5
|
"author": "Raycast Technologies Ltd.",
|
|
6
6
|
"homepage": "https://developers.raycast.com",
|
|
@@ -12,7 +12,10 @@
|
|
|
12
12
|
"react": "18.1.0",
|
|
13
13
|
"react-reconciler": "0.28.0"
|
|
14
14
|
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"postinstall": "bin/ray npm-post-install"
|
|
17
|
+
},
|
|
15
18
|
"bin": {
|
|
16
|
-
"ray": "
|
|
19
|
+
"ray": "bin/ray"
|
|
17
20
|
}
|
|
18
21
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -2109,6 +2109,10 @@ export declare interface Environment {
|
|
|
2109
2109
|
* The name of the launched command, as specified in package.json
|
|
2110
2110
|
*/
|
|
2111
2111
|
commandName: string;
|
|
2112
|
+
/**
|
|
2113
|
+
* The mode of the launched command, as specified in package.json
|
|
2114
|
+
*/
|
|
2115
|
+
commandMode: "no-view" | "view" | "menu-bar";
|
|
2112
2116
|
/**
|
|
2113
2117
|
* The absolute path to the assets directory of the extension.
|
|
2114
2118
|
*
|
|
@@ -2144,6 +2148,7 @@ export declare interface Environment {
|
|
|
2144
2148
|
* console.log(`Raycast version: ${environment.raycastVersion}`);
|
|
2145
2149
|
* console.log(`Extension name: ${environment.extensionName}`);
|
|
2146
2150
|
* console.log(`Command name: ${environment.commandName}`);
|
|
2151
|
+
* console.log(`Command mode: ${environment.commandMode}`);
|
|
2147
2152
|
* console.log(`Assets path: ${environment.assetsPath}`);
|
|
2148
2153
|
* console.log(`Support path: ${environment.supportPath}`);
|
|
2149
2154
|
* console.log(`Is development mode: ${environment.isDevelopment}`);
|
|
@@ -2196,6 +2201,7 @@ export declare namespace Form {
|
|
|
2196
2201
|
export type Value = FormValue_2;
|
|
2197
2202
|
export type Values = FormValues_2;
|
|
2198
2203
|
export type Props = FormProps_2;
|
|
2204
|
+
export type ItemReference = FormItemRef;
|
|
2199
2205
|
/**
|
|
2200
2206
|
* An interface describing event in callbacks {@link Form.Item.Props.onFocus} and {@link Form.Item.Props.onBlur}
|
|
2201
2207
|
*/
|
|
@@ -3912,7 +3918,7 @@ declare interface GridMembers {
|
|
|
3912
3918
|
* export default function Command() {
|
|
3913
3919
|
* return (
|
|
3914
3920
|
* <Grid>
|
|
3915
|
-
* <Grid.Item
|
|
3921
|
+
* <Grid.Item content={Icon.Star} title="Augustiner Helles" subtitle="0,5 Liter" />
|
|
3916
3922
|
* </Grid>
|
|
3917
3923
|
* );
|
|
3918
3924
|
* }
|
|
@@ -4121,6 +4127,7 @@ export declare enum Icon {
|
|
|
4121
4127
|
BellDisabled = "bell-disabled-16",
|
|
4122
4128
|
Bike = "bike-16",
|
|
4123
4129
|
Binoculars = "binoculars-16",
|
|
4130
|
+
Bird = "bird-16",
|
|
4124
4131
|
BlankDocument = "blank-document-16",
|
|
4125
4132
|
Bluetooth = "bluetooth-16",
|
|
4126
4133
|
Boat = "boat-16",
|
|
@@ -4494,7 +4501,9 @@ export declare enum Icon {
|
|
|
4494
4501
|
/** @deprecated Use {@link Icon.SpeakerOff} instead. */
|
|
4495
4502
|
SpeakerSlash = "speaker-off-16",
|
|
4496
4503
|
/** @deprecated Use {@link Icon.BlankDocument} instead. */
|
|
4497
|
-
TextDocument = "blank-document-16"
|
|
4504
|
+
TextDocument = "blank-document-16",
|
|
4505
|
+
/** @deprecated Use {@link Icon.XMarkCircle} instead. */
|
|
4506
|
+
XmarkCircle = "x-mark-circle-16"
|
|
4498
4507
|
}
|
|
4499
4508
|
|
|
4500
4509
|
/**
|
|
@@ -4851,10 +4860,25 @@ declare interface ItemProps_2 extends ActionsInterface {
|
|
|
4851
4860
|
}
|
|
4852
4861
|
|
|
4853
4862
|
declare interface ItemProps_3 {
|
|
4863
|
+
/**
|
|
4864
|
+
* The main title displayed for this item.
|
|
4865
|
+
*/
|
|
4854
4866
|
title: string;
|
|
4867
|
+
/**
|
|
4868
|
+
* An optional icon for this item.
|
|
4869
|
+
*/
|
|
4855
4870
|
icon?: Image.ImageLike;
|
|
4871
|
+
/**
|
|
4872
|
+
* A tooltip to display when the cursor hovers the item.
|
|
4873
|
+
*/
|
|
4856
4874
|
tooltip?: string;
|
|
4875
|
+
/**
|
|
4876
|
+
* An action handler called when the user clicks the item.
|
|
4877
|
+
*/
|
|
4857
4878
|
onAction?: () => void;
|
|
4879
|
+
/**
|
|
4880
|
+
* A shortcut used to invoke this item when its parent menu is open.
|
|
4881
|
+
*/
|
|
4858
4882
|
shortcut?: Keyboard.Shortcut;
|
|
4859
4883
|
}
|
|
4860
4884
|
|
|
@@ -4994,6 +5018,11 @@ export declare enum LaunchType {
|
|
|
4994
5018
|
*/
|
|
4995
5019
|
declare const Link: FunctionComponent<LinkProps>;
|
|
4996
5020
|
|
|
5021
|
+
/**
|
|
5022
|
+
* See {@link List.Item.Detail.Metadata.Link}
|
|
5023
|
+
*/
|
|
5024
|
+
declare const Link_2: FunctionComponent<LinkProps_2>;
|
|
5025
|
+
|
|
4997
5026
|
declare interface LinkProps {
|
|
4998
5027
|
/**
|
|
4999
5028
|
* The title shown above the item.
|
|
@@ -5009,6 +5038,21 @@ declare interface LinkProps {
|
|
|
5009
5038
|
text: string;
|
|
5010
5039
|
}
|
|
5011
5040
|
|
|
5041
|
+
declare interface LinkProps_2 {
|
|
5042
|
+
/**
|
|
5043
|
+
* The title shown above the item.
|
|
5044
|
+
*/
|
|
5045
|
+
title: string;
|
|
5046
|
+
/**
|
|
5047
|
+
* The target of the link.
|
|
5048
|
+
*/
|
|
5049
|
+
target: string;
|
|
5050
|
+
/**
|
|
5051
|
+
* The text value of the item.
|
|
5052
|
+
*/
|
|
5053
|
+
text: string;
|
|
5054
|
+
}
|
|
5055
|
+
|
|
5012
5056
|
/**
|
|
5013
5057
|
* Displays {@link List.Section} or {@link List.Item}, optionally {@link List.Dropdown}.
|
|
5014
5058
|
*
|
|
@@ -5495,12 +5539,25 @@ declare interface MenuBarExtraMembers {
|
|
|
5495
5539
|
|
|
5496
5540
|
declare interface MenuBarExtraProps {
|
|
5497
5541
|
/**
|
|
5542
|
+
* Indicates to Raycast that it should not unload the command, as it is still executing. If you set make use of `isLoading`, you need to make sure you set it to `false` at the end of the task you are executing (such as an API call), so Raycast can then unload the command.
|
|
5498
5543
|
* @defaultValue `false`
|
|
5499
5544
|
*/
|
|
5500
5545
|
isLoading?: boolean;
|
|
5546
|
+
/**
|
|
5547
|
+
* The string that is displayed in the menu bar.
|
|
5548
|
+
*/
|
|
5501
5549
|
title?: string;
|
|
5550
|
+
/**
|
|
5551
|
+
* A tooltip to display when the cursor hovers the item in the menu bar.
|
|
5552
|
+
*/
|
|
5502
5553
|
tooltip?: string;
|
|
5554
|
+
/**
|
|
5555
|
+
* The icon that is displayed in the menu bar.
|
|
5556
|
+
*/
|
|
5503
5557
|
icon?: Image.ImageLike;
|
|
5558
|
+
/**
|
|
5559
|
+
* `MenuBarExtra.Item`s, `MenuBarExtra.Submenu`s, `MenuBarExtra.Separator` or a mix of either.
|
|
5560
|
+
*/
|
|
5504
5561
|
children?: ReactNode;
|
|
5505
5562
|
}
|
|
5506
5563
|
|
|
@@ -5562,6 +5619,10 @@ declare interface MetadataMembers_2 {
|
|
|
5562
5619
|
* ```
|
|
5563
5620
|
*/
|
|
5564
5621
|
Label: typeof Label_2;
|
|
5622
|
+
/**
|
|
5623
|
+
* An item to display a link.
|
|
5624
|
+
*/
|
|
5625
|
+
Link: typeof Link_2;
|
|
5565
5626
|
/**
|
|
5566
5627
|
* A metadata item that shows a separator line. Use it for grouping and visually separating metadata items.
|
|
5567
5628
|
*
|
|
@@ -5592,6 +5653,10 @@ declare interface MetadataMembers_2 {
|
|
|
5592
5653
|
* ```
|
|
5593
5654
|
*/
|
|
5594
5655
|
Separator: typeof Separator_3;
|
|
5656
|
+
/**
|
|
5657
|
+
* A list of {@link List.Item.Detail.Metadata.TagList.Item} displayed in a row.
|
|
5658
|
+
*/
|
|
5659
|
+
TagList: typeof TagList_2;
|
|
5595
5660
|
}
|
|
5596
5661
|
|
|
5597
5662
|
declare interface MetadataProps {
|
|
@@ -6710,11 +6775,17 @@ declare interface SubmenuProps {
|
|
|
6710
6775
|
}
|
|
6711
6776
|
|
|
6712
6777
|
declare interface SubmenuProps_2 {
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6778
|
+
/**
|
|
6779
|
+
* The main title displayed for this submenu.
|
|
6780
|
+
*/
|
|
6781
|
+
title: string;
|
|
6782
|
+
/**
|
|
6783
|
+
* An optional icon for this submenu.
|
|
6784
|
+
*/
|
|
6717
6785
|
icon?: Image.ImageLike;
|
|
6786
|
+
/**
|
|
6787
|
+
* `MenuBarExtra.Item`s, `MenuBarExtra.Submenu`s, `MenuBarExtra.Separator` or a mix of either.
|
|
6788
|
+
*/
|
|
6718
6789
|
children?: ReactNode;
|
|
6719
6790
|
}
|
|
6720
6791
|
|
|
@@ -6761,8 +6832,12 @@ declare interface SubmitFormProps<T extends Form.Values> {
|
|
|
6761
6832
|
* Callback that is triggered when the submit was submitted.
|
|
6762
6833
|
* Use the handler to perform custom validation logic and call other Raycast API methods.
|
|
6763
6834
|
* The handler receives a the values object containing the user input.
|
|
6835
|
+
*
|
|
6836
|
+
* @returns You can optionally return `false` to indicate that the submit action failed. Raycast will show some subtle feedback to the user that something went wrong. Pair it with the Form inputs' `validation` for a top-notch user experience.
|
|
6837
|
+
*
|
|
6838
|
+
* _If a user has the Accessibility setting 'Reduce Motion' enabled, Raycast won't show the feedback._
|
|
6764
6839
|
*/
|
|
6765
|
-
onSubmit?: (input: T) => void
|
|
6840
|
+
onSubmit?: (input: T) => void | boolean | Promise<void | boolean>;
|
|
6766
6841
|
}
|
|
6767
6842
|
|
|
6768
6843
|
/**
|
|
@@ -6770,11 +6845,21 @@ declare interface SubmitFormProps<T extends Form.Values> {
|
|
|
6770
6845
|
*/
|
|
6771
6846
|
declare const TagList: FunctionComponent<TagListProps> & TagListMembers;
|
|
6772
6847
|
|
|
6848
|
+
/**
|
|
6849
|
+
* See {@link List.Item.Detail.Metadata.TagList}
|
|
6850
|
+
*/
|
|
6851
|
+
declare const TagList_2: FunctionComponent<TagListProps_2> & TagListMembers_2;
|
|
6852
|
+
|
|
6773
6853
|
/**
|
|
6774
6854
|
* See {@link Detail.Metadata.TagList.Item}
|
|
6775
6855
|
*/
|
|
6776
6856
|
declare const TagListItem: FunctionComponent<TagListItemProps>;
|
|
6777
6857
|
|
|
6858
|
+
/**
|
|
6859
|
+
* See {@link Detail.Metadata.TagList.Item}
|
|
6860
|
+
*/
|
|
6861
|
+
declare const TagListItem_2: FunctionComponent<TagListItemProps_2>;
|
|
6862
|
+
|
|
6778
6863
|
declare interface TagListItemProps {
|
|
6779
6864
|
/**
|
|
6780
6865
|
* An optional icon in front of the text of the tag.
|
|
@@ -6790,6 +6875,21 @@ declare interface TagListItemProps {
|
|
|
6790
6875
|
color?: Color.ColorLike | undefined | null;
|
|
6791
6876
|
}
|
|
6792
6877
|
|
|
6878
|
+
declare interface TagListItemProps_2 {
|
|
6879
|
+
/**
|
|
6880
|
+
* An optional icon in front of the text of the tag.
|
|
6881
|
+
*/
|
|
6882
|
+
icon?: Image.ImageLike | undefined | null;
|
|
6883
|
+
/**
|
|
6884
|
+
* The text of the tag.
|
|
6885
|
+
*/
|
|
6886
|
+
text: string;
|
|
6887
|
+
/**
|
|
6888
|
+
* Changes the text color to the provided color and sets a transparent background with the same color.
|
|
6889
|
+
*/
|
|
6890
|
+
color?: Color.ColorLike | undefined | null;
|
|
6891
|
+
}
|
|
6892
|
+
|
|
6793
6893
|
declare interface TagListMembers {
|
|
6794
6894
|
/**
|
|
6795
6895
|
* A Tag in a {@link Detail.Metadata.TagList}.
|
|
@@ -6797,6 +6897,13 @@ declare interface TagListMembers {
|
|
|
6797
6897
|
Item: typeof TagListItem;
|
|
6798
6898
|
}
|
|
6799
6899
|
|
|
6900
|
+
declare interface TagListMembers_2 {
|
|
6901
|
+
/**
|
|
6902
|
+
* A Tag in a {@link List.Item.Detail.Metadata.TagList}.
|
|
6903
|
+
*/
|
|
6904
|
+
Item: typeof TagListItem_2;
|
|
6905
|
+
}
|
|
6906
|
+
|
|
6800
6907
|
declare interface TagListProps {
|
|
6801
6908
|
/**
|
|
6802
6909
|
* The title shown above the item.
|
|
@@ -6808,6 +6915,17 @@ declare interface TagListProps {
|
|
|
6808
6915
|
children: ReactNode;
|
|
6809
6916
|
}
|
|
6810
6917
|
|
|
6918
|
+
declare interface TagListProps_2 {
|
|
6919
|
+
/**
|
|
6920
|
+
* The title shown above the item.
|
|
6921
|
+
*/
|
|
6922
|
+
title: string;
|
|
6923
|
+
/**
|
|
6924
|
+
* The tags contained in the TagList.
|
|
6925
|
+
*/
|
|
6926
|
+
children: ReactNode;
|
|
6927
|
+
}
|
|
6928
|
+
|
|
6811
6929
|
/**
|
|
6812
6930
|
* See {@link Form.TagPicker}
|
|
6813
6931
|
*/
|
package/bin/arm64/ray
DELETED
|
Binary file
|
package/bin/x86/ray
DELETED
|
Binary file
|