@raycast/api 1.38.1 → 1.38.2
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 +38 -4
- package/bin/arm64/ray +0 -0
- package/bin/x86/ray +0 -0
- package/package.json +1 -1
- package/types/index.d.ts +38 -4
package/api.d.ts
CHANGED
|
@@ -4851,10 +4851,25 @@ declare interface ItemProps_2 extends ActionsInterface {
|
|
|
4851
4851
|
}
|
|
4852
4852
|
|
|
4853
4853
|
declare interface ItemProps_3 {
|
|
4854
|
+
/**
|
|
4855
|
+
* The main title displayed for this item.
|
|
4856
|
+
*/
|
|
4854
4857
|
title: string;
|
|
4858
|
+
/**
|
|
4859
|
+
* An optional icon for this item.
|
|
4860
|
+
*/
|
|
4855
4861
|
icon?: Image.ImageLike;
|
|
4862
|
+
/**
|
|
4863
|
+
* A tooltip to display when the cursor hovers the item.
|
|
4864
|
+
*/
|
|
4856
4865
|
tooltip?: string;
|
|
4866
|
+
/**
|
|
4867
|
+
* An action handler called when the user clicks the item.
|
|
4868
|
+
*/
|
|
4857
4869
|
onAction?: () => void;
|
|
4870
|
+
/**
|
|
4871
|
+
* A shortcut used to invoke this item when its parent menu is open.
|
|
4872
|
+
*/
|
|
4858
4873
|
shortcut?: Keyboard.Shortcut;
|
|
4859
4874
|
}
|
|
4860
4875
|
|
|
@@ -5495,12 +5510,25 @@ declare interface MenuBarExtraMembers {
|
|
|
5495
5510
|
|
|
5496
5511
|
declare interface MenuBarExtraProps {
|
|
5497
5512
|
/**
|
|
5513
|
+
* 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
5514
|
* @defaultValue `false`
|
|
5499
5515
|
*/
|
|
5500
5516
|
isLoading?: boolean;
|
|
5517
|
+
/**
|
|
5518
|
+
* The string that is displayed in the menu bar.
|
|
5519
|
+
*/
|
|
5501
5520
|
title?: string;
|
|
5521
|
+
/**
|
|
5522
|
+
* A tooltip to display when the cursor hovers the item in the menu bar.
|
|
5523
|
+
*/
|
|
5502
5524
|
tooltip?: string;
|
|
5525
|
+
/**
|
|
5526
|
+
* The icon that is displayed in the menu bar.
|
|
5527
|
+
*/
|
|
5503
5528
|
icon?: Image.ImageLike;
|
|
5529
|
+
/**
|
|
5530
|
+
* `MenuBarExtra.Item`s, `MenuBarExtra.Submenu`s, `MenuBarExtra.Separator` or a mix of either.
|
|
5531
|
+
*/
|
|
5504
5532
|
children?: ReactNode;
|
|
5505
5533
|
}
|
|
5506
5534
|
|
|
@@ -6710,11 +6738,17 @@ declare interface SubmenuProps {
|
|
|
6710
6738
|
}
|
|
6711
6739
|
|
|
6712
6740
|
declare interface SubmenuProps_2 {
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6741
|
+
/**
|
|
6742
|
+
* The main title displayed for this submenu.
|
|
6743
|
+
*/
|
|
6744
|
+
title: string;
|
|
6745
|
+
/**
|
|
6746
|
+
* An optional icon for this submenu.
|
|
6747
|
+
*/
|
|
6717
6748
|
icon?: Image.ImageLike;
|
|
6749
|
+
/**
|
|
6750
|
+
* `MenuBarExtra.Item`s, `MenuBarExtra.Submenu`s, `MenuBarExtra.Separator` or a mix of either.
|
|
6751
|
+
*/
|
|
6718
6752
|
children?: ReactNode;
|
|
6719
6753
|
}
|
|
6720
6754
|
|
package/bin/arm64/ray
CHANGED
|
Binary file
|
package/bin/x86/ray
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -4851,10 +4851,25 @@ declare interface ItemProps_2 extends ActionsInterface {
|
|
|
4851
4851
|
}
|
|
4852
4852
|
|
|
4853
4853
|
declare interface ItemProps_3 {
|
|
4854
|
+
/**
|
|
4855
|
+
* The main title displayed for this item.
|
|
4856
|
+
*/
|
|
4854
4857
|
title: string;
|
|
4858
|
+
/**
|
|
4859
|
+
* An optional icon for this item.
|
|
4860
|
+
*/
|
|
4855
4861
|
icon?: Image.ImageLike;
|
|
4862
|
+
/**
|
|
4863
|
+
* A tooltip to display when the cursor hovers the item.
|
|
4864
|
+
*/
|
|
4856
4865
|
tooltip?: string;
|
|
4866
|
+
/**
|
|
4867
|
+
* An action handler called when the user clicks the item.
|
|
4868
|
+
*/
|
|
4857
4869
|
onAction?: () => void;
|
|
4870
|
+
/**
|
|
4871
|
+
* A shortcut used to invoke this item when its parent menu is open.
|
|
4872
|
+
*/
|
|
4858
4873
|
shortcut?: Keyboard.Shortcut;
|
|
4859
4874
|
}
|
|
4860
4875
|
|
|
@@ -5495,12 +5510,25 @@ declare interface MenuBarExtraMembers {
|
|
|
5495
5510
|
|
|
5496
5511
|
declare interface MenuBarExtraProps {
|
|
5497
5512
|
/**
|
|
5513
|
+
* 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
5514
|
* @defaultValue `false`
|
|
5499
5515
|
*/
|
|
5500
5516
|
isLoading?: boolean;
|
|
5517
|
+
/**
|
|
5518
|
+
* The string that is displayed in the menu bar.
|
|
5519
|
+
*/
|
|
5501
5520
|
title?: string;
|
|
5521
|
+
/**
|
|
5522
|
+
* A tooltip to display when the cursor hovers the item in the menu bar.
|
|
5523
|
+
*/
|
|
5502
5524
|
tooltip?: string;
|
|
5525
|
+
/**
|
|
5526
|
+
* The icon that is displayed in the menu bar.
|
|
5527
|
+
*/
|
|
5503
5528
|
icon?: Image.ImageLike;
|
|
5529
|
+
/**
|
|
5530
|
+
* `MenuBarExtra.Item`s, `MenuBarExtra.Submenu`s, `MenuBarExtra.Separator` or a mix of either.
|
|
5531
|
+
*/
|
|
5504
5532
|
children?: ReactNode;
|
|
5505
5533
|
}
|
|
5506
5534
|
|
|
@@ -6710,11 +6738,17 @@ declare interface SubmenuProps {
|
|
|
6710
6738
|
}
|
|
6711
6739
|
|
|
6712
6740
|
declare interface SubmenuProps_2 {
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6741
|
+
/**
|
|
6742
|
+
* The main title displayed for this submenu.
|
|
6743
|
+
*/
|
|
6744
|
+
title: string;
|
|
6745
|
+
/**
|
|
6746
|
+
* An optional icon for this submenu.
|
|
6747
|
+
*/
|
|
6717
6748
|
icon?: Image.ImageLike;
|
|
6749
|
+
/**
|
|
6750
|
+
* `MenuBarExtra.Item`s, `MenuBarExtra.Submenu`s, `MenuBarExtra.Separator` or a mix of either.
|
|
6751
|
+
*/
|
|
6718
6752
|
children?: ReactNode;
|
|
6719
6753
|
}
|
|
6720
6754
|
|