@raycast/api 1.27.0 → 1.29.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 +2 -2
- package/types/api/app/app.d.ts +171 -0
- package/types/api/app/clipboard.d.ts +47 -0
- package/types/api/app/index.d.ts +4 -0
- package/types/api/app/keyboard.d.ts +56 -0
- package/types/api/app/localStorage.d.ts +117 -0
- package/types/api/components/ActionPanel.d.ts +297 -0
- package/types/api/components/Detail.d.ts +40 -0
- package/types/api/components/Form.d.ts +992 -0
- package/types/api/components/List.d.ts +275 -0
- package/types/api/components/actions/Action.d.ts +454 -0
- package/types/api/components/actions/CopyToClipboardAction.d.ts +40 -0
- package/types/api/components/actions/CreateQuicklinkAction.d.ts +42 -0
- package/types/api/components/actions/CreateSnippetAction.d.ts +40 -0
- package/types/api/components/actions/OpenAction.d.ts +47 -0
- package/types/api/components/actions/OpenInBrowserAction.d.ts +43 -0
- package/types/api/components/actions/OpenWithAction.d.ts +40 -0
- package/types/api/components/actions/PasteAction.d.ts +40 -0
- package/types/api/components/actions/PushAction.d.ts +38 -0
- package/types/api/components/actions/ShowInFinderAction.d.ts +42 -0
- package/types/api/components/actions/SubmitFormAction.d.ts +35 -0
- package/types/api/components/actions/TrashAction.d.ts +43 -0
- package/types/api/components/actions/index.d.ts +1 -0
- package/types/api/components/index.d.ts +5 -0
- package/types/api/components/propTypes.d.ts +1 -0
- package/types/api/components/types.d.ts +30 -0
- package/types/api/deprecated.d.ts +410 -0
- package/types/api/environment/environment.d.ts +48 -0
- package/types/api/environment/index.d.ts +3 -0
- package/types/api/environment/preferences.d.ts +31 -0
- package/types/api/environment/workspace.d.ts +62 -0
- package/types/api/hooks/index.d.ts +1 -0
- package/types/api/hooks/useNavigation.d.ts +66 -0
- package/types/api/index.d.ts +6 -0
- package/types/api/internal/comm/index.d.ts +1 -0
- package/types/api/internal/components/ErrorBoundary.d.ts +1 -0
- package/types/api/internal/components/Navigation.d.ts +1 -0
- package/types/api/internal/components/Root.d.ts +1 -0
- package/types/api/internal/components/index.d.ts +4 -0
- package/types/api/internal/components/portal/components/portal/Portal.d.ts +4 -0
- package/types/api/internal/components/portal/components/portal/index.d.ts +1 -0
- package/types/api/internal/components/portal/components/portalHost/PortalHost.d.ts +4 -0
- package/types/api/internal/components/portal/components/portalHost/index.d.ts +1 -0
- package/types/api/internal/components/portal/components/portalProvider/PortalProvider.d.ts +4 -0
- package/types/api/internal/components/portal/components/portalProvider/index.d.ts +1 -0
- package/types/api/internal/components/portal/contexts/index.d.ts +1 -0
- package/types/api/internal/components/portal/contexts/portal.d.ts +5 -0
- package/types/api/internal/components/portal/hooks/index.d.ts +2 -0
- package/types/api/internal/components/portal/hooks/usePortal.d.ts +8 -0
- package/types/api/internal/components/portal/hooks/usePortalState.d.ts +1 -0
- package/types/api/internal/components/portal/index.d.ts +5 -0
- package/types/api/internal/components/portal/state/constants.d.ts +9 -0
- package/types/api/internal/components/portal/state/index.d.ts +3 -0
- package/types/api/internal/components/portal/state/reducer.d.ts +3 -0
- package/types/api/internal/components/portal/utilities/logger.d.ts +9 -0
- package/types/api/internal/devtools/index.d.ts +1 -0
- package/types/api/internal/devtools/react.d.ts +1 -0
- package/types/api/internal/hooks/index.d.ts +2 -0
- package/types/api/internal/hooks/useActionPanel.d.ts +1 -0
- package/types/api/internal/hooks/useId.d.ts +1 -0
- package/types/api/internal/index.d.ts +6 -0
- package/types/api/internal/rendering/callbacks.d.ts +1 -0
- package/types/api/internal/rendering/index.d.ts +6 -0
- package/types/api/internal/rendering/logger.d.ts +1 -0
- package/types/api/internal/rendering/node-builders/actions.d.ts +3 -0
- package/types/api/internal/rendering/node-builders/detail.d.ts +1 -0
- package/types/api/internal/rendering/node-builders/forms.d.ts +1 -0
- package/types/api/internal/rendering/node-builders/keyboard.d.ts +1 -0
- package/types/api/internal/rendering/node-builders/list.d.ts +2 -0
- package/types/api/internal/rendering/node-builders/navigationStack.d.ts +1 -0
- package/types/api/internal/rendering/node-builders/root.d.ts +1 -0
- package/types/api/internal/rendering/node-builders/types.d.ts +1 -0
- package/types/api/internal/rendering/node-builders/utils.d.ts +1 -0
- package/types/api/internal/rendering/reconciler.d.ts +1 -0
- package/types/api/internal/rendering/renderer.d.ts +1 -0
- package/types/api/internal/utils/ids.d.ts +1 -0
- package/types/api/internal/utils/index.d.ts +1 -0
- package/types/api/ui/color.d.ts +115 -0
- package/types/api/ui/errors.d.ts +1 -0
- package/types/api/ui/feedback/alert.d.ts +97 -0
- package/types/api/ui/feedback/hud.d.ts +16 -0
- package/types/api/ui/feedback/index.d.ts +3 -0
- package/types/api/ui/feedback/toast.d.ts +174 -0
- package/types/api/ui/icon.d.ts +88 -0
- package/types/api/ui/image.d.ts +162 -0
- package/types/api/ui/index.d.ts +5 -0
- package/types/core/message-types.d.ts +17 -0
- package/types/core/preferences.d.ts +69 -0
- package/types/index.d.ts +2816 -2422
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { Keyboard } from "../../app";
|
|
3
|
+
import { Image } from "../../ui";
|
|
4
|
+
/**
|
|
5
|
+
* See {@link Action.OpenWith.Props}
|
|
6
|
+
*/
|
|
7
|
+
export interface OpenWithActionProps {
|
|
8
|
+
/**
|
|
9
|
+
* The path to open.
|
|
10
|
+
*/
|
|
11
|
+
path: string;
|
|
12
|
+
/**
|
|
13
|
+
* The title for the action.
|
|
14
|
+
* @defaultValue Open With
|
|
15
|
+
*/
|
|
16
|
+
title?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The icon displayed for the action.
|
|
19
|
+
* @defaultValue {@link Icon.Upload}
|
|
20
|
+
*/
|
|
21
|
+
icon?: Image.ImageLike;
|
|
22
|
+
/**
|
|
23
|
+
* The keyboard shortcut for the action.
|
|
24
|
+
*/
|
|
25
|
+
shortcut?: Keyboard.Shortcut;
|
|
26
|
+
/**
|
|
27
|
+
* Callback when the file or folder was opened.
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* This is handy when you want to act on an opened file or folder, e.g. store a history of opened items.
|
|
31
|
+
*/
|
|
32
|
+
onOpen?: (path: string) => void;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* See {@link Action.OpenWith}
|
|
36
|
+
*/
|
|
37
|
+
export declare function OpenWithAction(props: OpenWithActionProps): ReactElement<OpenWithActionProps>;
|
|
38
|
+
export declare namespace OpenWithAction {
|
|
39
|
+
var displayName: string;
|
|
40
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { Keyboard } from "../../app";
|
|
3
|
+
import { Image } from "../../ui";
|
|
4
|
+
/**
|
|
5
|
+
* See {@link Action.Paste.Props}
|
|
6
|
+
*/
|
|
7
|
+
export interface PasteActionProps {
|
|
8
|
+
/**
|
|
9
|
+
* The contents that will be written to the clipboard as string.
|
|
10
|
+
*/
|
|
11
|
+
content: string | number;
|
|
12
|
+
/**
|
|
13
|
+
* An optional title for the action.
|
|
14
|
+
* @defaultValue Paste in Active app
|
|
15
|
+
*/
|
|
16
|
+
title?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The icon displayed for the action.
|
|
19
|
+
* @defaultValue {@link Icon.Clipboard}
|
|
20
|
+
*/
|
|
21
|
+
icon?: Image.ImageLike;
|
|
22
|
+
/**
|
|
23
|
+
* The keyboard shortcut for the action.
|
|
24
|
+
*/
|
|
25
|
+
shortcut?: Keyboard.Shortcut;
|
|
26
|
+
/**
|
|
27
|
+
* Callback when the content was pasted into the front-most application.
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* This is handy when you want to act on the pasted content, e.g. up-rank recently pasted content.
|
|
31
|
+
*/
|
|
32
|
+
onPaste?: (content: string | number) => void;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* See {@link Action.Paste.Props}
|
|
36
|
+
*/
|
|
37
|
+
export declare function PasteAction(props: PasteActionProps): ReactElement<PasteActionProps>;
|
|
38
|
+
export declare namespace PasteAction {
|
|
39
|
+
var displayName: string;
|
|
40
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ReactNode, ReactElement } from "react";
|
|
2
|
+
import { Keyboard } from "../../app";
|
|
3
|
+
import { Image } from "../../ui";
|
|
4
|
+
/**
|
|
5
|
+
* See {@link Action.Push.Props}
|
|
6
|
+
*/
|
|
7
|
+
export interface PushActionProps {
|
|
8
|
+
/**
|
|
9
|
+
* The title displayed for the item.
|
|
10
|
+
*/
|
|
11
|
+
title: string;
|
|
12
|
+
/**
|
|
13
|
+
* The target view that will be pushed to the navigation stack.
|
|
14
|
+
*/
|
|
15
|
+
target: ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* The icon displayed for the action.
|
|
18
|
+
*/
|
|
19
|
+
icon?: Image.ImageLike;
|
|
20
|
+
/**
|
|
21
|
+
* The keyboard shortcut for the action.
|
|
22
|
+
*/
|
|
23
|
+
shortcut?: Keyboard.Shortcut;
|
|
24
|
+
/**
|
|
25
|
+
* Callback when the target view was pushed.
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* This is handy when you want to act on the pushed target view, e.g. uprank a selected list item.
|
|
29
|
+
*/
|
|
30
|
+
onPush?: () => void;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* See {@link Action.Push.Props}
|
|
34
|
+
*/
|
|
35
|
+
export declare function PushAction(props: PushActionProps): ReactElement<PushActionProps>;
|
|
36
|
+
export declare namespace PushAction {
|
|
37
|
+
var displayName: string;
|
|
38
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { PathLike } from "fs";
|
|
3
|
+
import { ReactElement } from "react";
|
|
4
|
+
import { Image } from "../../ui";
|
|
5
|
+
import { Keyboard } from "../../app";
|
|
6
|
+
/**
|
|
7
|
+
* See {@link Action.ShowInFinder.Props}
|
|
8
|
+
*/
|
|
9
|
+
export interface ShowInFinderActionProps {
|
|
10
|
+
/**
|
|
11
|
+
* The path to open.
|
|
12
|
+
*/
|
|
13
|
+
path: PathLike;
|
|
14
|
+
/**
|
|
15
|
+
* An optional title for the action.
|
|
16
|
+
* @defaultValue Show in Finder
|
|
17
|
+
*/
|
|
18
|
+
title?: string;
|
|
19
|
+
/**
|
|
20
|
+
* A optional icon displayed for the item.
|
|
21
|
+
* @defaultValue {@link Icon.Finder}
|
|
22
|
+
*/
|
|
23
|
+
icon?: Image.ImageLike;
|
|
24
|
+
/**
|
|
25
|
+
* The keyboard shortcut for the action.
|
|
26
|
+
*/
|
|
27
|
+
shortcut?: Keyboard.Shortcut;
|
|
28
|
+
/**
|
|
29
|
+
* Callback when the file or folder was shown in the Finder.
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* This is handy when you want to act on revealed files or folders, e.g. up-rank recently opened items.
|
|
33
|
+
*/
|
|
34
|
+
onShow?: (path: PathLike) => void;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* See {@link Action.ShowInFinder.Props}
|
|
38
|
+
*/
|
|
39
|
+
export declare function ShowInFinderAction(props: ShowInFinderActionProps): ReactElement<ShowInFinderActionProps>;
|
|
40
|
+
export declare namespace ShowInFinderAction {
|
|
41
|
+
var displayName: string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { Keyboard } from "../../app";
|
|
3
|
+
import { Image } from "../../ui";
|
|
4
|
+
import type { Form } from "../Form";
|
|
5
|
+
/**
|
|
6
|
+
* See {@link Action.SubmitForm.Props}
|
|
7
|
+
*/
|
|
8
|
+
export interface SubmitFormActionProps<Values> {
|
|
9
|
+
/**
|
|
10
|
+
* The title displayed for the item.
|
|
11
|
+
* @defaultValue Submit Form
|
|
12
|
+
*/
|
|
13
|
+
title?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The icon displayed for the action.
|
|
16
|
+
*/
|
|
17
|
+
icon?: Image.ImageLike;
|
|
18
|
+
/**
|
|
19
|
+
* The keyboard shortcut for the action.
|
|
20
|
+
*/
|
|
21
|
+
shortcut?: Keyboard.Shortcut;
|
|
22
|
+
/**
|
|
23
|
+
* Callback that is triggered when the submit was submitted.
|
|
24
|
+
* Use the handler to perform custom validation logic and call other Raycast API methods.
|
|
25
|
+
* The handler receives a the values object containing the user input.
|
|
26
|
+
*/
|
|
27
|
+
onSubmit?: (input: Values) => void;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* See {@link Action.SubmitForm.Props}
|
|
31
|
+
*/
|
|
32
|
+
export declare function SubmitFormAction<Values extends Form.Values = Form.Values>(props: SubmitFormActionProps<Values>): ReactElement<SubmitFormActionProps<Values>>;
|
|
33
|
+
export declare namespace SubmitFormAction {
|
|
34
|
+
var displayName: string;
|
|
35
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { PathLike } from "fs";
|
|
3
|
+
import { ReactElement } from "react";
|
|
4
|
+
import { Image } from "../../ui";
|
|
5
|
+
import { Keyboard } from "../../app";
|
|
6
|
+
/**
|
|
7
|
+
* See {@link Action.Trash.Props}
|
|
8
|
+
*/
|
|
9
|
+
export interface TrashActionProps {
|
|
10
|
+
/**
|
|
11
|
+
* The item or items to move to the trash.
|
|
12
|
+
*/
|
|
13
|
+
paths: PathLike | PathLike[];
|
|
14
|
+
/**
|
|
15
|
+
* An optional title for the action.
|
|
16
|
+
* @defaultValue Move to Trash
|
|
17
|
+
*/
|
|
18
|
+
title?: string;
|
|
19
|
+
/**
|
|
20
|
+
* A optional icon displayed for the action.
|
|
21
|
+
* @defaultValue {@link Icon.Trash}
|
|
22
|
+
*/
|
|
23
|
+
icon?: Image.ImageLike;
|
|
24
|
+
/**
|
|
25
|
+
* The optional keyboard shortcut for the action.
|
|
26
|
+
*/
|
|
27
|
+
shortcut?: Keyboard.Shortcut;
|
|
28
|
+
/**
|
|
29
|
+
* Callback when all items were moved to the trash.
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* This is handy when you want to act on a trashed item, e.g. update a list.
|
|
33
|
+
* The callback returns the same `paths` as passed originally.
|
|
34
|
+
*/
|
|
35
|
+
onTrash?: (paths: PathLike | PathLike[]) => void;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* See {@link Action.Trash}
|
|
39
|
+
*/
|
|
40
|
+
export declare function TrashAction(props: TrashActionProps): ReactElement<TrashActionProps>;
|
|
41
|
+
export declare namespace TrashAction {
|
|
42
|
+
var displayName: string;
|
|
43
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Action";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Views that can be embedded in a navigation stack, show a navigation title and support a loading bar.
|
|
4
|
+
* @category User Interface
|
|
5
|
+
*/
|
|
6
|
+
export interface NavigationChildInterface {
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* The main title for that view displayed in Raycast
|
|
10
|
+
*
|
|
11
|
+
* @defaultValue Command title
|
|
12
|
+
*/
|
|
13
|
+
navigationTitle?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Indicates whether a loading bar should be shown or hidden below the search bar
|
|
16
|
+
*
|
|
17
|
+
* @defaultValue false
|
|
18
|
+
*/
|
|
19
|
+
isLoading?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Components that support an Action Panel.
|
|
23
|
+
* @category User Interface
|
|
24
|
+
*/
|
|
25
|
+
export interface ActionsInterface {
|
|
26
|
+
/**
|
|
27
|
+
* A reference to an {@link ActionPanel}.
|
|
28
|
+
*/
|
|
29
|
+
actions?: ReactNode;
|
|
30
|
+
}
|
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
import { Clipboard, Keyboard, LocalStorage } from "./app";
|
|
2
|
+
import { Action, ActionPanel, Form, List, Detail } from "./components";
|
|
3
|
+
import { randomId as _randomId, useId as _useId, useActionPanel as _useActionPanel, ActionPanelState as _ActionPanelState, render as _render } from "./internal";
|
|
4
|
+
import { Alert, Toast as _Toast, Image, Color } from "./ui";
|
|
5
|
+
import { Preference as _Preference, Preferences as _Preferences } from "../core/preferences";
|
|
6
|
+
/*********************************
|
|
7
|
+
* Deprecated on v1.28.0
|
|
8
|
+
*********************************/
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use `Clipboard.copy` instead
|
|
11
|
+
*/
|
|
12
|
+
export declare const copyTextToClipboard: typeof Clipboard.copy;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Use `Clipboard.clear` instead
|
|
15
|
+
*/
|
|
16
|
+
export declare const clearClipboard: typeof Clipboard.clear;
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated Use `Clipboard.paste` instead
|
|
19
|
+
*/
|
|
20
|
+
export declare const pasteText: typeof Clipboard.paste;
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated Use `LocalStorage.allItems` instead
|
|
23
|
+
*/
|
|
24
|
+
export declare const allLocalStorageItems: typeof LocalStorage.allItems;
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated Use `LocalStorage.getItem` instead
|
|
27
|
+
*/
|
|
28
|
+
export declare const getLocalStorageItem: typeof LocalStorage.getItem;
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated Use `LocalStorage.setItem` instead
|
|
31
|
+
*/
|
|
32
|
+
export declare const setLocalStorageItem: typeof LocalStorage.setItem;
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated Use `LocalStorage.removeItem` instead
|
|
35
|
+
*/
|
|
36
|
+
export declare const removeLocalStorageItem: typeof LocalStorage.removeItem;
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated Use `LocalStorage.clear` instead
|
|
39
|
+
*/
|
|
40
|
+
export declare const clearLocalStorage: typeof LocalStorage.clear;
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated Use `LocalStorage.Value` instead
|
|
43
|
+
*/
|
|
44
|
+
export declare type LocalStorageValue = LocalStorage.Value;
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated Use `LocalStorage.Values` instead
|
|
47
|
+
*/
|
|
48
|
+
export interface LocalStorageValues extends LocalStorage.Values {
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated Use `Keyboard.Shortcut` instead
|
|
52
|
+
*/
|
|
53
|
+
export interface KeyboardShortcut extends Keyboard.Shortcut {
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @deprecated
|
|
57
|
+
*/
|
|
58
|
+
export declare const specialKeys: Record<string, string>;
|
|
59
|
+
/**
|
|
60
|
+
* @deprecated Use `Keyboard.KeyModifier` instead
|
|
61
|
+
*/
|
|
62
|
+
export declare type KeyModifier = Keyboard.KeyModifier;
|
|
63
|
+
/**
|
|
64
|
+
* @deprecated Use `Keyboard.KeyEquivalent` instead
|
|
65
|
+
*/
|
|
66
|
+
export declare type KeyEquivalent = Keyboard.KeyEquivalent;
|
|
67
|
+
/**
|
|
68
|
+
* @deprecated Use `getPreferenceValues()` instead.
|
|
69
|
+
*/
|
|
70
|
+
export declare type Preferences = _Preferences;
|
|
71
|
+
/**
|
|
72
|
+
* @deprecated Use `getPreferenceValues()` instead.
|
|
73
|
+
*/
|
|
74
|
+
export interface Preference extends _Preference {
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* @deprecated Use `getPreferenceValues()` instead.
|
|
78
|
+
*/
|
|
79
|
+
export declare const preferences: _Preferences;
|
|
80
|
+
/**
|
|
81
|
+
* @deprecated Use `Action.CopyToClipboard` instead.
|
|
82
|
+
*/
|
|
83
|
+
export declare const CopyToClipboardAction: typeof import("./components/actions/CopyToClipboardAction").CopyToClipboardAction;
|
|
84
|
+
/**
|
|
85
|
+
* @deprecated Use `Action.CopyToClipboard.Props` instead.
|
|
86
|
+
*/
|
|
87
|
+
export interface CopyToClipboardActionProps extends Action.CopyToClipboard.Props {
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* @deprecated Use `Action.Open` instead.
|
|
91
|
+
*/
|
|
92
|
+
export declare const OpenAction: typeof import("./components/actions/OpenAction").OpenAction;
|
|
93
|
+
/**
|
|
94
|
+
* @deprecated Use `Action.Open.Props` instead.
|
|
95
|
+
*/
|
|
96
|
+
export interface OpenActionProps extends Action.Open.Props {
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* @deprecated Use `Action.OpenInBrowser` instead.
|
|
100
|
+
*/
|
|
101
|
+
export declare const OpenInBrowserAction: typeof import("./components/actions/OpenInBrowserAction").OpenInBrowserAction;
|
|
102
|
+
/**
|
|
103
|
+
* @deprecated Use `Action.OpenInBrowser.Props` instead.
|
|
104
|
+
*/
|
|
105
|
+
export interface OpenInBrowserActionProps extends Action.OpenInBrowser.Props {
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* @deprecated Use `Action.OpenWith` instead.
|
|
109
|
+
*/
|
|
110
|
+
export declare const OpenWithAction: typeof import("./components/actions/OpenWithAction").OpenWithAction;
|
|
111
|
+
/**
|
|
112
|
+
* @deprecated Use `Action.OpenWith.Props` instead.
|
|
113
|
+
*/
|
|
114
|
+
export interface OpenWithActionProps extends Action.OpenWith.Props {
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* @deprecated Use `Action.Paste` instead.
|
|
118
|
+
*/
|
|
119
|
+
export declare const PasteAction: typeof import("./components/actions/PasteAction").PasteAction;
|
|
120
|
+
/**
|
|
121
|
+
* @deprecated Use `Action.Paste.Props` instead.
|
|
122
|
+
*/
|
|
123
|
+
export interface PasteActionProps extends Action.Paste.Props {
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* @deprecated Use `Action.Push` instead.
|
|
127
|
+
*/
|
|
128
|
+
export declare const PushAction: typeof import("./components/actions/PushAction").PushAction;
|
|
129
|
+
/**
|
|
130
|
+
* @deprecated Use `Action.Push.Props` instead.
|
|
131
|
+
*/
|
|
132
|
+
export interface PushActionProps extends Action.Push.Props {
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* @deprecated Use `Action.ShowInFinder` instead.
|
|
136
|
+
*/
|
|
137
|
+
export declare const ShowInFinderAction: typeof import("./components/actions/ShowInFinderAction").ShowInFinderAction;
|
|
138
|
+
/**
|
|
139
|
+
* @deprecated Use `Action.ShowInFinder.Props` instead.
|
|
140
|
+
*/
|
|
141
|
+
export interface ShowInFinderActionProps extends Action.ShowInFinder.Props {
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* @deprecated Use `Action.SubmitForm` instead.
|
|
145
|
+
*/
|
|
146
|
+
export declare const SubmitFormAction: typeof import("./components/actions/SubmitFormAction").SubmitFormAction;
|
|
147
|
+
/**
|
|
148
|
+
* @deprecated Use `Action.SunmitForm.Props` instead.
|
|
149
|
+
*/
|
|
150
|
+
export interface SubmitFormActionProps<T> extends Action.SubmitForm.Props<T> {
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* @deprecated Use `Action.Trash` instead.
|
|
154
|
+
*/
|
|
155
|
+
export declare const TrashAction: typeof import("./components/actions/TrashAction").TrashAction;
|
|
156
|
+
/**
|
|
157
|
+
* @deprecated Use `Action.Trash.Props` instead.
|
|
158
|
+
*/
|
|
159
|
+
export interface TrashActionProps extends Action.Trash.Props {
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* @deprecated Use `ActionPanel.Props` instead.
|
|
163
|
+
*/
|
|
164
|
+
export interface ActionPanelProps extends ActionPanel.Props {
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* @deprecated Use `ActionPanel.Children` instead.
|
|
168
|
+
*/
|
|
169
|
+
export declare type ActionPanelChildren = ActionPanel.Children;
|
|
170
|
+
/**
|
|
171
|
+
* @deprecated Use `Action` instead.
|
|
172
|
+
*/
|
|
173
|
+
export declare const ActionPanelItem: typeof Action;
|
|
174
|
+
/**
|
|
175
|
+
* @deprecated Use `Action.Props` instead.
|
|
176
|
+
*/
|
|
177
|
+
export interface ActionPanelItemProps extends Action.Props {
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* @deprecated Use `ActionPanel.Submenu` instead.
|
|
181
|
+
*/
|
|
182
|
+
export declare const ActionPanelSubmenu: typeof ActionPanel.Submenu;
|
|
183
|
+
/**
|
|
184
|
+
* @deprecated Use `ActionPanel.Submenu.Props` instead.
|
|
185
|
+
*/
|
|
186
|
+
export interface ActionPanelSubmenuProps extends ActionPanel.Submenu.Props {
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* @deprecated Use `ActionPanel.Section` instead.
|
|
190
|
+
*/
|
|
191
|
+
export declare const ActionPanelSection: typeof ActionPanel.Section;
|
|
192
|
+
/**
|
|
193
|
+
* @deprecated Use `ActionPanel.Section.Props` instead.
|
|
194
|
+
*/
|
|
195
|
+
export interface ActionPanelSectionProps extends ActionPanel.Section.Props {
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* @deprecated Use `ActionPanel.Section.Children` instead.
|
|
199
|
+
*/
|
|
200
|
+
export declare type ActionPanelSectionChildren = ActionPanel.Section.Children;
|
|
201
|
+
/**
|
|
202
|
+
* @deprecated Use `Detail.Props` instead.
|
|
203
|
+
*/
|
|
204
|
+
export interface DetailProps extends Detail.Props {
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* @deprecated Use `Form.Value` instead.
|
|
208
|
+
*/
|
|
209
|
+
export declare type FormValue = Form.Value;
|
|
210
|
+
/**
|
|
211
|
+
* @deprecated Use `Form.Values` instead.
|
|
212
|
+
*/
|
|
213
|
+
export interface FormValues extends Form.Values {
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* @deprecated Use `Form.Props` instead.
|
|
217
|
+
*/
|
|
218
|
+
export interface FormProps extends Form.Props {
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* @deprecated Use `Form.ItemProps` instead.
|
|
222
|
+
*/
|
|
223
|
+
export interface FormItemProps<Value extends Form.Value> extends Form.ItemProps<Value> {
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* @deprecated Use `Form.Dropdown.Section` instead.
|
|
227
|
+
*/
|
|
228
|
+
export declare const FormDropdownSection: typeof Form.Dropdown.Section;
|
|
229
|
+
/**
|
|
230
|
+
* @deprecated Use `Form.Dropdown.Section.Props` instead.
|
|
231
|
+
*/
|
|
232
|
+
export interface FormDropdownSectionProps extends Form.Dropdown.Section.Props {
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* @deprecated Use `Form.Dropdown.Item` instead.
|
|
236
|
+
*/
|
|
237
|
+
export declare const FormDropdownItem: typeof Form.Dropdown.Item;
|
|
238
|
+
/**
|
|
239
|
+
* @deprecated Use `Form.Dropdown.Item.Props` instead.
|
|
240
|
+
*/
|
|
241
|
+
export interface FormDropdownItemProps extends Form.Dropdown.Item.Props {
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* @deprecated Use `Form.TagPicker.Item` instead.
|
|
245
|
+
*/
|
|
246
|
+
export declare const FormTagPickerItem: typeof Form.TagPicker.Item;
|
|
247
|
+
/**
|
|
248
|
+
* @deprecated Use `Form.TagPicker.Item.Props` instead.
|
|
249
|
+
*/
|
|
250
|
+
export interface FormTagPickerItemProps extends Form.TagPicker.Item.Props {
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* @deprecated Use `Form.TextField` instead.
|
|
254
|
+
*/
|
|
255
|
+
export declare const FormTextField: typeof Form.TextField;
|
|
256
|
+
/**
|
|
257
|
+
* @deprecated Use `Form.TextField.Props` instead.
|
|
258
|
+
*/
|
|
259
|
+
export interface FormTextFieldProps extends Form.TextField.Props {
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* @deprecated Use `Form.TextArea` instead.
|
|
263
|
+
*/
|
|
264
|
+
export declare const FormTextArea: typeof Form.TextArea;
|
|
265
|
+
/**
|
|
266
|
+
* @deprecated Use `Form.TextArea.Props` instead.
|
|
267
|
+
*/
|
|
268
|
+
export interface FormTextAreaProps extends Form.TextArea.Props {
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* @deprecated Use `Form.Checkbox` instead.
|
|
272
|
+
*/
|
|
273
|
+
export declare const FormCheckbox: typeof Form.Checkbox;
|
|
274
|
+
/**
|
|
275
|
+
* @deprecated Use `Form.Checkbox.Props` instead.
|
|
276
|
+
*/
|
|
277
|
+
export interface FormCheckboxProps extends Form.Checkbox.Props {
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* @deprecated Use `Form.DatePicker` instead.
|
|
281
|
+
*/
|
|
282
|
+
export declare const FormDatePicker: typeof Form.DatePicker;
|
|
283
|
+
/**
|
|
284
|
+
* @deprecated Use `Form.DatePicker.Props` instead.
|
|
285
|
+
*/
|
|
286
|
+
export interface FormDatePickerProps extends Form.DatePicker.Props {
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* @deprecated Use `Form.Separator` instead.
|
|
290
|
+
*/
|
|
291
|
+
export declare const FormSeparator: typeof Form.Separator;
|
|
292
|
+
/**
|
|
293
|
+
* @deprecated Use `Form.Separator.Props` instead.
|
|
294
|
+
*/
|
|
295
|
+
export interface FormSeparatorProps extends Form.Separator.Props {
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* @deprecated Use `Form.Dropdown` instead.
|
|
299
|
+
*/
|
|
300
|
+
export declare const FormDropdown: typeof Form.Dropdown;
|
|
301
|
+
/**
|
|
302
|
+
* @deprecated Use `Form.Dropdown.Props` instead.
|
|
303
|
+
*/
|
|
304
|
+
export interface FormDropdownProps extends Form.Dropdown.Props {
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* @deprecated Use `Form.TagPicker` instead.
|
|
308
|
+
*/
|
|
309
|
+
export declare const FormTagPicker: typeof Form.TagPicker;
|
|
310
|
+
/**
|
|
311
|
+
* @deprecated Use `Form.TagPicker.Props` instead.
|
|
312
|
+
*/
|
|
313
|
+
export interface FormTagPickerProps extends Form.TagPicker.Props {
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* @deprecated Use `List.Props` instead.
|
|
317
|
+
*/
|
|
318
|
+
export interface ListProps extends List.Props {
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* @deprecated Use `List.Section` instead.
|
|
322
|
+
*/
|
|
323
|
+
export declare const ListSection: typeof List.Section;
|
|
324
|
+
/**
|
|
325
|
+
* @deprecated Use `List.Section.Props` instead.
|
|
326
|
+
*/
|
|
327
|
+
export interface ListSectionProps extends List.Section.Props {
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* @deprecated Use `List.item` instead.
|
|
331
|
+
*/
|
|
332
|
+
export declare const ListItem: typeof List.Item;
|
|
333
|
+
/**
|
|
334
|
+
* @deprecated Use `List.Item.Props` instead.
|
|
335
|
+
*/
|
|
336
|
+
export interface ListItemProps extends List.Item.Props {
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* @deprecated Add `nanoid` as a dependency and use it instead.
|
|
340
|
+
*/
|
|
341
|
+
export declare const randomId: typeof _randomId;
|
|
342
|
+
/**
|
|
343
|
+
* @deprecated
|
|
344
|
+
*/
|
|
345
|
+
export declare const useId: typeof _useId;
|
|
346
|
+
/**
|
|
347
|
+
* @deprecated
|
|
348
|
+
*/
|
|
349
|
+
export declare const useActionPanel: typeof _useActionPanel;
|
|
350
|
+
/**
|
|
351
|
+
* @deprecated
|
|
352
|
+
*/
|
|
353
|
+
export interface ActionPanelState extends _ActionPanelState {
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* @deprecated Use `Alert.Options` instead
|
|
357
|
+
*/
|
|
358
|
+
export interface AlertOptions extends Alert.Options {
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* @deprecated Use `Alert.ActionOptions` instead
|
|
362
|
+
*/
|
|
363
|
+
export interface AlertActionOptions extends Alert.ActionOptions {
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* @deprecated Use `Alert.ActionStyle` instead
|
|
367
|
+
*/
|
|
368
|
+
export declare const AlertActionStyle: typeof Alert.ActionStyle;
|
|
369
|
+
/**
|
|
370
|
+
* @deprecated Use `Toast.Options` instead
|
|
371
|
+
*/
|
|
372
|
+
export interface ToastOptions extends _Toast.Options {
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* @deprecated Use `Toast.ActionOptions` instead
|
|
376
|
+
*/
|
|
377
|
+
export interface ToastActionOptions extends _Toast.ActionOptions {
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* @deprecated Use `Toast.Style` instead
|
|
381
|
+
*/
|
|
382
|
+
export declare const ToastStyle: typeof _Toast.Style;
|
|
383
|
+
/**
|
|
384
|
+
* @deprecated Use `Image.ImageLike` instead
|
|
385
|
+
*/
|
|
386
|
+
export declare type ImageLike = Image.ImageLike;
|
|
387
|
+
/**
|
|
388
|
+
* @deprecated Use `Image.Source` instead
|
|
389
|
+
*/
|
|
390
|
+
export declare type ImageSource = Image.Source;
|
|
391
|
+
/**
|
|
392
|
+
* @deprecated Use `Image.Mask` instead
|
|
393
|
+
*/
|
|
394
|
+
export declare type ImageMask = Image.Mask;
|
|
395
|
+
/**
|
|
396
|
+
* @deprecated Use `Image.Mask` instead
|
|
397
|
+
*/
|
|
398
|
+
export declare const ImageMask: typeof Image.Mask;
|
|
399
|
+
/**
|
|
400
|
+
* @deprecated Use `Color.Dynamic` instead
|
|
401
|
+
*/
|
|
402
|
+
export declare type DynamicColor = Color.Dynamic;
|
|
403
|
+
/**
|
|
404
|
+
* @deprecated Use `Color.ColorLike` instead
|
|
405
|
+
*/
|
|
406
|
+
export declare type ColorLike = Color.ColorLike;
|
|
407
|
+
/**
|
|
408
|
+
* @deprecated Use `export default function Command() { ... }` instead
|
|
409
|
+
*/
|
|
410
|
+
export declare const render: typeof _render;
|