mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-23 17:52:49 +00:00
* feat(plugins): open external links and workspace browsers * fix(plugins): refuse invalid links and unavailable browser workspaces * docs(plugins): clarify external links and browser navigation
61 lines
2.1 KiB
TypeScript
61 lines
2.1 KiB
TypeScript
export type {
|
||
PluginHostProps,
|
||
PluginSurfaceProps,
|
||
PluginIconProps,
|
||
PluginPanelLocation,
|
||
PluginOpenPanelOptions,
|
||
PluginWorkspacePanelProps,
|
||
PluginAgentPanelProps,
|
||
PluginClientOpenPanelOptions,
|
||
PluginClientContext,
|
||
PluginClientContribution,
|
||
PluginWorkspacePanelContribution,
|
||
PluginSettingsScreenContribution,
|
||
PluginSurfaceContribution,
|
||
PluginSidebarContribution,
|
||
PluginTimelineTransformerContribution,
|
||
PluginTimelineItemProps,
|
||
PluginTimelineRendererContribution,
|
||
PluginCommandCapabilities,
|
||
PluginGlobalCommandContext,
|
||
PluginWorkspaceCommandContext,
|
||
PluginAgentCommandContext,
|
||
PluginCommandCenterItemContribution,
|
||
PluginClientSlashCommandContribution,
|
||
SettingsState,
|
||
} from "./contracts.js";
|
||
export type {
|
||
PluginButton,
|
||
PluginButtonBehavior,
|
||
PluginButtonContentProps,
|
||
PluginButtonContext,
|
||
PluginButtonIcon,
|
||
PluginButtonIconProps,
|
||
PluginButtonMenuEntry,
|
||
PluginButtonRegistration,
|
||
PluginComposerPillContribution,
|
||
PluginHeaderButtonContribution,
|
||
} from "./buttons.js";
|
||
export { usePaseo } from "./paseo-context.js";
|
||
export { useAgent, useWorkspace } from "./client-state.js";
|
||
export { useRpc } from "./rpc-context.js";
|
||
import type { SettingsDefinition } from "../settings.js";
|
||
import type { SettingsState } from "./contracts.js";
|
||
import type { ZodType } from "zod";
|
||
export declare function useSettings<Schema extends ZodType>(
|
||
definition: SettingsDefinition<Schema>,
|
||
): SettingsState<Schema>;
|
||
|
||
/** Configured app host, including hosts that are currently disconnected. */
|
||
export interface PluginHostSummary {
|
||
readonly serverId: string;
|
||
readonly label: string;
|
||
readonly status: "idle" | "connecting" | "online" | "offline" | "error";
|
||
}
|
||
/** Live configured hosts. Supplied by the app's client bundle loader. */
|
||
export declare function useHosts(): readonly PluginHostSummary[];
|
||
/** Borrow an online host's API under this installation's lifetime. */
|
||
export declare function getPaseoClient(serverId: string): import("@getpaseo/client").PaseoApi;
|
||
/** Open an absolute HTTP(S) URL using the client platform’s external opener. */
|
||
export declare function openExternalUrl(url: string): Promise<void>;
|