@raycast/api 1.39.0 → 1.39.3
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 +2 -2
- package/bin/ray +16 -10
- package/package.json +1 -1
- package/types/index.d.ts +2 -2
package/api.d.ts
CHANGED
|
@@ -4766,7 +4766,7 @@ declare interface ItemProps extends ActionsInterface {
|
|
|
4766
4766
|
* An optional subtitle displayed next to the main title, optionally with a tooltip.
|
|
4767
4767
|
*/
|
|
4768
4768
|
subtitle?: string | {
|
|
4769
|
-
value: string;
|
|
4769
|
+
value: string | undefined | null;
|
|
4770
4770
|
tooltip: string;
|
|
4771
4771
|
};
|
|
4772
4772
|
/**
|
|
@@ -4778,7 +4778,7 @@ declare interface ItemProps extends ActionsInterface {
|
|
|
4778
4778
|
* An optional icon displayed for the list item.
|
|
4779
4779
|
*/
|
|
4780
4780
|
icon?: Image.ImageLike | {
|
|
4781
|
-
value: Image.ImageLike;
|
|
4781
|
+
value: Image.ImageLike | undefined | null;
|
|
4782
4782
|
tooltip: string;
|
|
4783
4783
|
};
|
|
4784
4784
|
/**
|
package/bin/ray
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
|
|
3
3
|
# Determine the path for dist folder
|
|
4
|
-
# Using readlink -f
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
# Using 'readlink -f' is not an option as '-f' it's not available on older macOS versions
|
|
5
|
+
source=${BASH_SOURCE:-$0}
|
|
6
|
+
# resolve $source until the file is no longer a symlink
|
|
7
|
+
while [ -L "$source" ]; do
|
|
8
|
+
dir=$( cd -P "$( dirname "$source" )" >/dev/null 2>&1 && pwd )
|
|
9
|
+
source=$(readlink "$source")
|
|
10
|
+
# if $source was a relative symlink, we need to resolve it relative to the path where the symlink file was located
|
|
11
|
+
[[ $source != /* ]] && source=$dir/$source
|
|
12
|
+
done
|
|
13
|
+
bin_dir=$( cd -P "$( dirname "$source" )" >/dev/null 2>&1 && pwd )
|
|
14
|
+
dist_dir=$(dirname "$bin_dir")
|
|
15
|
+
|
|
8
16
|
if [ -z "$bin_dir" ]; then
|
|
9
|
-
echo "Unable to determine CLI path
|
|
17
|
+
echo "Unable to determine CLI path for source: ${BASH_SOURCE:-$0}"
|
|
10
18
|
exit 1
|
|
11
19
|
fi
|
|
12
20
|
|
|
@@ -35,14 +43,14 @@ elif [ "${os}" = "Linux" ]; then
|
|
|
35
43
|
fi
|
|
36
44
|
|
|
37
45
|
# Define the path for CLI for current architecture
|
|
38
|
-
ray_path
|
|
46
|
+
ray_path="$bin_dir/$architecture_dir/ray"
|
|
39
47
|
|
|
40
48
|
# If there is no CLI for current architecture, download it
|
|
41
49
|
if [ ! -f "$ray_path" ]; then
|
|
42
50
|
install_cli;
|
|
43
51
|
else
|
|
44
52
|
# If version of the CLI for current architecture is outdated, re-download the CLI
|
|
45
|
-
ray_version=$($ray_path version)
|
|
53
|
+
ray_version=$("$ray_path" version)
|
|
46
54
|
if [ "$ray_version" != "$api_version" ]; then
|
|
47
55
|
install_cli;
|
|
48
56
|
fi
|
|
@@ -54,6 +62,4 @@ if [ "$1" == "npm-post-install" ]; then
|
|
|
54
62
|
fi
|
|
55
63
|
|
|
56
64
|
# Execute the CLI passing all parameters to it
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
$ray_path "$@"
|
|
65
|
+
"$ray_path" "$@"
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -4766,7 +4766,7 @@ declare interface ItemProps extends ActionsInterface {
|
|
|
4766
4766
|
* An optional subtitle displayed next to the main title, optionally with a tooltip.
|
|
4767
4767
|
*/
|
|
4768
4768
|
subtitle?: string | {
|
|
4769
|
-
value: string;
|
|
4769
|
+
value: string | undefined | null;
|
|
4770
4770
|
tooltip: string;
|
|
4771
4771
|
};
|
|
4772
4772
|
/**
|
|
@@ -4778,7 +4778,7 @@ declare interface ItemProps extends ActionsInterface {
|
|
|
4778
4778
|
* An optional icon displayed for the list item.
|
|
4779
4779
|
*/
|
|
4780
4780
|
icon?: Image.ImageLike | {
|
|
4781
|
-
value: Image.ImageLike;
|
|
4781
|
+
value: Image.ImageLike | undefined | null;
|
|
4782
4782
|
tooltip: string;
|
|
4783
4783
|
};
|
|
4784
4784
|
/**
|