@getpaseo/plugin 0.7.2 → 0.8.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.
Files changed (48) hide show
  1. package/dist/attachments.d.ts +2 -0
  2. package/dist/attachments.js +3 -0
  3. package/dist/client/buttons.d.ts +64 -0
  4. package/dist/client/buttons.js +2 -0
  5. package/dist/{client-state.d.ts → client/client-state.d.ts} +1 -1
  6. package/dist/client/contracts.d.ts +201 -0
  7. package/dist/client/contracts.js +2 -0
  8. package/dist/client/host.d.ts +19 -0
  9. package/dist/client/host.js +12 -0
  10. package/dist/client/index.d.ts +10 -0
  11. package/dist/client/index.js +4 -0
  12. package/dist/client/react-native.d.ts +46 -0
  13. package/dist/{rpc-context.d.ts → client/rpc-context.d.ts} +1 -1
  14. package/dist/{rpc-context.js → client/rpc-context.js} +1 -1
  15. package/dist/client/ui.d.ts +60 -0
  16. package/dist/client/ui.js +2 -0
  17. package/dist/contracts.d.ts +3 -172
  18. package/dist/index.d.ts +4 -8
  19. package/dist/index.js +3 -4
  20. package/dist/rpc.d.ts +2 -0
  21. package/dist/server/acp-internal/connection.d.ts +4 -0
  22. package/dist/server/acp-internal/connection.js +1187 -0
  23. package/dist/server/acp.d.ts +112 -0
  24. package/dist/server/acp.js +21 -0
  25. package/dist/server/contracts.d.ts +16 -0
  26. package/dist/server/contracts.js +2 -0
  27. package/dist/server/index.d.ts +3 -0
  28. package/dist/server/index.js +2 -0
  29. package/dist/server/lifecycle.d.ts +92 -0
  30. package/dist/server/lifecycle.js +2 -0
  31. package/dist/server/provider.d.ts +610 -0
  32. package/dist/server/provider.js +811 -0
  33. package/dist/settings.d.ts +70 -0
  34. package/dist/settings.js +40 -0
  35. package/package.json +45 -17
  36. package/dist/host.d.ts +0 -43
  37. package/dist/host.js +0 -43
  38. package/dist/react-native.d.ts +0 -29
  39. package/dist/server.d.ts +0 -6
  40. package/dist/server.js +0 -6
  41. /package/dist/{client-state.js → client/client-state.js} +0 -0
  42. /package/dist/{paseo-context.d.ts → client/paseo-context.d.ts} +0 -0
  43. /package/dist/{paseo-context.js → client/paseo-context.js} +0 -0
  44. /package/dist/{react-native.js → client/react-native.js} +0 -0
  45. /package/dist/{runtime-context-bridge.d.ts → client/runtime-context-bridge.d.ts} +0 -0
  46. /package/dist/{runtime-context-bridge.js → client/runtime-context-bridge.js} +0 -0
  47. /package/dist/{shallow.d.ts → client/shallow.d.ts} +0 -0
  48. /package/dist/{shallow.js → client/shallow.js} +0 -0
@@ -1,4 +1,6 @@
1
1
  import { z } from "zod";
2
+ import type { PluginAttachmentSourceContribution } from "./contracts.js";
3
+ export declare function defineAttachmentSource<Definition extends PluginAttachmentSourceContribution>(definition: Definition): Definition;
2
4
  export declare const PluginAttachmentItemSchema: z.ZodObject<{
3
5
  id: z.ZodString;
4
6
  identifier: z.ZodString;
@@ -1,4 +1,7 @@
1
1
  import { z } from "zod";
2
+ export function defineAttachmentSource(definition) {
3
+ return definition;
4
+ }
2
5
  export const PluginAttachmentItemSchema = z.object({
3
6
  id: z.string(),
4
7
  identifier: z.string(),
@@ -0,0 +1,64 @@
1
+ import type { ComponentType } from "react";
2
+ import type { PluginHostProps } from "./contracts.js";
3
+ export type PluginButtonContext = {
4
+ context: "workspace";
5
+ workspaceId: string;
6
+ } | {
7
+ context: "agent";
8
+ workspaceId: string;
9
+ agentId: string;
10
+ };
11
+ export type PluginButtonIconProps = PluginHostProps & PluginButtonContext & {
12
+ size: number;
13
+ color: string;
14
+ };
15
+ export type PluginButtonContentProps = PluginHostProps & PluginButtonContext & {
16
+ close(): void;
17
+ };
18
+ export type PluginButtonIcon = string | ComponentType<PluginButtonIconProps>;
19
+ export type PluginButtonBehavior = {
20
+ kind: "action";
21
+ onPress(): void | Promise<void>;
22
+ } | {
23
+ kind: "menu";
24
+ items: readonly PluginButtonMenuEntry[];
25
+ } | {
26
+ kind: "popover";
27
+ Content: ComponentType<PluginButtonContentProps>;
28
+ };
29
+ export type PluginButtonMenuEntry = {
30
+ kind: "separator";
31
+ id: string;
32
+ } | {
33
+ kind: "item";
34
+ id: string;
35
+ title: string;
36
+ icon?: PluginButtonIcon;
37
+ visible?: boolean;
38
+ disabled?: boolean;
39
+ behavior: PluginButtonBehavior;
40
+ };
41
+ export interface PluginButton {
42
+ title: string;
43
+ icon: PluginButtonIcon;
44
+ /** Omit for an icon-only header button. Composer pills use title when omitted. */
45
+ label?: string;
46
+ visible?: boolean;
47
+ disabled?: boolean;
48
+ behavior: PluginButtonBehavior;
49
+ }
50
+ export interface PluginButtonRegistration {
51
+ /** Updates presentation in place. Supply a complete behavior to replace it. */
52
+ update(patch: Partial<PluginButton>): void;
53
+ /** Idempotent. Updates after removal do nothing. */
54
+ remove(): void;
55
+ }
56
+ export interface PluginHeaderButtonContribution {
57
+ id: string;
58
+ workspaceId: string;
59
+ button: PluginButton;
60
+ }
61
+ export interface PluginComposerPillContribution extends PluginHeaderButtonContribution {
62
+ agentId: string;
63
+ }
64
+ //# sourceMappingURL=buttons.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=buttons.js.map
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode } from "react";
2
- import type { PluginAgentSnapshot, PluginWorkspaceSnapshot } from "./contracts.js";
2
+ import type { PluginAgentSnapshot, PluginWorkspaceSnapshot } from "../contracts.js";
3
3
  export interface PluginClientStateSource {
4
4
  subscribe(listener: () => void): () => void;
5
5
  getWorkspace(id: string): PluginWorkspaceSnapshot | null;
@@ -0,0 +1,201 @@
1
+ import type { ComponentType } from "react";
2
+ import type { PaseoApi } from "@getpaseo/client";
3
+ import type { AgentTimelineItem } from "@getpaseo/protocol/agent-types";
4
+ import type { ZodType, input as ZodInput, output as ZodOutput } from "zod";
5
+ import type { PluginRpcContract } from "../rpc.js";
6
+ import type { PluginButtonRegistration, PluginHeaderButtonContribution, PluginComposerPillContribution } from "./buttons.js";
7
+ import type { PluginTheme, PluginWorkspaceSnapshot, PluginAgentSnapshot, PluginThemeContribution, PluginAttachmentSourceContribution, PluginTimelineTransformResult, PluginCleanup } from "../contracts.js";
8
+ export interface PluginHostProps {
9
+ theme: PluginTheme;
10
+ host: {
11
+ id: string;
12
+ label: string;
13
+ };
14
+ layout: {
15
+ compact: boolean;
16
+ platform: "ios" | "android" | "web";
17
+ };
18
+ }
19
+ interface PluginNavigableHostProps extends PluginHostProps {
20
+ /** Client-owned navigation. Undefined on older hosts; hide dependent affordances when absent. */
21
+ readonly navigation?: {
22
+ readonly openAgent: (input: {
23
+ readonly agentId: string;
24
+ }) => void;
25
+ readonly openWorkspace: (input: {
26
+ readonly workspaceId: string;
27
+ }) => void;
28
+ };
29
+ }
30
+ export interface PluginSurfaceProps extends PluginNavigableHostProps {
31
+ }
32
+ export interface PluginIconProps {
33
+ name: string;
34
+ size?: number;
35
+ color?: string;
36
+ }
37
+ export type PluginPanelLocation = "workspace" | "explorer";
38
+ export interface PluginOpenPanelOptions {
39
+ location?: PluginPanelLocation;
40
+ }
41
+ interface PluginWorkspacePanelBase {
42
+ id: string;
43
+ title: string;
44
+ icon: string;
45
+ locations?: readonly PluginPanelLocation[];
46
+ }
47
+ export interface PluginWorkspacePanelProps extends PluginNavigableHostProps {
48
+ context: "workspace";
49
+ workspaceId: string;
50
+ }
51
+ export interface PluginAgentPanelProps extends PluginNavigableHostProps {
52
+ context: "agent";
53
+ workspaceId: string;
54
+ agentId: string;
55
+ }
56
+ export interface PluginClientOpenPanelOptions extends PluginOpenPanelOptions {
57
+ workspaceId: string;
58
+ agentId?: string;
59
+ }
60
+ export interface PluginClientContext extends PluginCommandCapabilities {
61
+ addSettingsScreen(contribution: PluginSettingsScreenContribution): PluginCleanup;
62
+ addSurface(id: string, Component: ComponentType<PluginSurfaceProps>): PluginCleanup;
63
+ addSidebarItem(contribution: PluginSidebarContribution): PluginCleanup;
64
+ addWorkspacePanel(contribution: PluginWorkspacePanelContribution): PluginCleanup;
65
+ addCommandCenterItem(contribution: PluginCommandCenterItemContribution): PluginCleanup;
66
+ addSlashCommand(contribution: PluginClientSlashCommandContribution): PluginCleanup;
67
+ addHeaderButton(contribution: PluginHeaderButtonContribution): PluginButtonRegistration;
68
+ addComposerPill(contribution: PluginComposerPillContribution): PluginButtonRegistration;
69
+ addAttachmentSource(contribution: PluginAttachmentSourceContribution): PluginCleanup;
70
+ addTheme(contribution: PluginThemeContribution): PluginCleanup;
71
+ addTimelineTransformer<ItemType extends AgentTimelineItem["type"]>(contribution: PluginTimelineTransformerContribution<ItemType>): PluginCleanup;
72
+ addTimelineRenderer<Schema extends ZodType>(contribution: PluginTimelineRendererContribution<Schema>): PluginCleanup;
73
+ openPanel(id: string, options: PluginClientOpenPanelOptions): void;
74
+ }
75
+ export type PluginClientContribution = (client: PluginClientContext) => PluginCleanup;
76
+ export type PluginWorkspacePanelContribution = (PluginWorkspacePanelBase & {
77
+ context: "workspace";
78
+ Component: ComponentType<PluginWorkspacePanelProps>;
79
+ }) | (PluginWorkspacePanelBase & {
80
+ context: "agent";
81
+ Component: ComponentType<PluginAgentPanelProps>;
82
+ });
83
+ export interface PluginSettingsScreenContribution {
84
+ id: string;
85
+ title: string;
86
+ icon: string;
87
+ Component: ComponentType<PluginSurfaceProps>;
88
+ }
89
+ export interface PluginSurfaceContribution {
90
+ id: string;
91
+ Component: ComponentType<PluginSurfaceProps>;
92
+ }
93
+ export interface PluginSidebarContribution {
94
+ id: string;
95
+ title: string;
96
+ icon: string;
97
+ surface: string;
98
+ }
99
+ export type PluginTimelineTransformerContribution<ItemType extends AgentTimelineItem["type"] = AgentTimelineItem["type"]> = ItemType extends AgentTimelineItem["type"] ? {
100
+ id: string;
101
+ query: {
102
+ itemType: ItemType;
103
+ };
104
+ transform(input: {
105
+ item: Extract<AgentTimelineItem, {
106
+ type: ItemType;
107
+ }>;
108
+ phase: "streaming" | "complete";
109
+ }): PluginTimelineTransformResult | undefined;
110
+ } : never;
111
+ export interface PluginTimelineItemProps<Data = unknown> extends PluginHostProps {
112
+ agentId: string;
113
+ item: {
114
+ type: "plugin";
115
+ kind: string;
116
+ version: number;
117
+ data: Data;
118
+ };
119
+ timestamp: Date;
120
+ }
121
+ export interface PluginTimelineRendererContribution<Schema extends ZodType = ZodType> {
122
+ kind: string;
123
+ version: number;
124
+ schema: Schema;
125
+ Component: ComponentType<PluginTimelineItemProps<ZodOutput<Schema>>>;
126
+ }
127
+ export interface PluginCommandCapabilities {
128
+ paseo: PaseoApi;
129
+ rpc<InputSchema extends ZodType, OutputSchema extends ZodType>(contract: PluginRpcContract<InputSchema, OutputSchema>, input: ZodInput<InputSchema>): Promise<ZodOutput<OutputSchema>>;
130
+ openSurface(id: string): void;
131
+ openSettings(id: string): void;
132
+ }
133
+ export interface PluginGlobalCommandContext extends PluginCommandCapabilities {
134
+ context: "global";
135
+ }
136
+ export interface PluginWorkspaceCommandContext extends PluginCommandCapabilities {
137
+ context: "workspace";
138
+ workspace: PluginWorkspaceSnapshot;
139
+ openPanel(id: string, options?: PluginOpenPanelOptions): void;
140
+ }
141
+ export interface PluginAgentCommandContext extends PluginCommandCapabilities {
142
+ context: "agent";
143
+ workspace: PluginWorkspaceSnapshot;
144
+ agent: PluginAgentSnapshot;
145
+ openPanel(id: string, options?: PluginOpenPanelOptions): void;
146
+ }
147
+ interface PluginCommandCenterItemBase {
148
+ id: string;
149
+ title: string;
150
+ icon: string;
151
+ keywords?: readonly string[];
152
+ }
153
+ export type PluginCommandCenterItemContribution = (PluginCommandCenterItemBase & {
154
+ context: "global";
155
+ onSelect(context: PluginGlobalCommandContext): void | Promise<void>;
156
+ }) | (PluginCommandCenterItemBase & {
157
+ context: "workspace";
158
+ onSelect(context: PluginWorkspaceCommandContext): void | Promise<void>;
159
+ }) | (PluginCommandCenterItemBase & {
160
+ context: "agent";
161
+ onSelect(context: PluginAgentCommandContext): void | Promise<void>;
162
+ });
163
+ interface PluginClientSlashCommandBase {
164
+ name: string;
165
+ description: string;
166
+ argumentHint: string;
167
+ }
168
+ export type PluginClientSlashCommandContribution = (PluginClientSlashCommandBase & {
169
+ context: "workspace";
170
+ onSubmit(context: PluginWorkspaceCommandContext & {
171
+ args: string;
172
+ }): void | Promise<void>;
173
+ }) | (PluginClientSlashCommandBase & {
174
+ context: "agent";
175
+ onSubmit(context: PluginAgentCommandContext & {
176
+ args: string;
177
+ }): void | Promise<void>;
178
+ });
179
+ export type SettingsState<Schema extends ZodType> = ({
180
+ status: "loading";
181
+ } | {
182
+ status: "error";
183
+ error: string;
184
+ } | {
185
+ status: "invalid";
186
+ error: string;
187
+ revision: string;
188
+ } | {
189
+ status: "ready";
190
+ values: ZodOutput<Schema>;
191
+ revision: string;
192
+ }) & {
193
+ saving: boolean;
194
+ saveError: string | null;
195
+ /** Save an entire document against the revision currently displayed. Never throws. */
196
+ save(values: ZodOutput<Schema>, revision: string): Promise<boolean>;
197
+ reset(): Promise<boolean>;
198
+ reload(): Promise<void>;
199
+ };
200
+ export {};
201
+ //# sourceMappingURL=contracts.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=contracts.js.map
@@ -0,0 +1,19 @@
1
+ export { PluginClientStateProvider, type PluginClientStateSource } from "./client-state.js";
2
+ export { usePluginRuntimeContextBridge, type PluginRuntimeContextBridge, } from "./runtime-context-bridge.js";
3
+ import type { PluginAttachmentSourceContribution } from "../contracts.js";
4
+ import { PluginRpcProvider } from "./rpc-context.js";
5
+ import { PaseoApiProvider } from "./paseo-context.js";
6
+ import { callPluginRpc } from "../rpc.js";
7
+ export declare function searchPluginAttachments(source: PluginAttachmentSourceContribution, invoke: (method: string, input: unknown) => Promise<unknown>, query: string): Promise<{
8
+ items: {
9
+ id: string;
10
+ identifier: string;
11
+ title: string;
12
+ url: string;
13
+ text: string;
14
+ resourceType: string;
15
+ subtitle?: string | undefined;
16
+ }[];
17
+ }>;
18
+ export { callPluginRpc, PaseoApiProvider, PluginRpcProvider };
19
+ //# sourceMappingURL=host.d.ts.map
@@ -0,0 +1,12 @@
1
+ import { PluginAttachmentSearchPayloadSchema } from "../attachments.js";
2
+ export { PluginClientStateProvider } from "./client-state.js";
3
+ export { usePluginRuntimeContextBridge, } from "./runtime-context-bridge.js";
4
+ import { PluginRpcProvider } from "./rpc-context.js";
5
+ import { PaseoApiProvider } from "./paseo-context.js";
6
+ import { callPluginRpc } from "../rpc.js";
7
+ export async function searchPluginAttachments(source, invoke, query) {
8
+ const output = await callPluginRpc(source.search, invoke, { query });
9
+ return PluginAttachmentSearchPayloadSchema.parseAsync(output);
10
+ }
11
+ export { callPluginRpc, PaseoApiProvider, PluginRpcProvider };
12
+ //# sourceMappingURL=host.js.map
@@ -0,0 +1,10 @@
1
+ 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";
2
+ export type { PluginButton, PluginButtonBehavior, PluginButtonContentProps, PluginButtonContext, PluginButtonIcon, PluginButtonIconProps, PluginButtonMenuEntry, PluginButtonRegistration, PluginComposerPillContribution, PluginHeaderButtonContribution, } from "./buttons.js";
3
+ export { usePaseo } from "./paseo-context.js";
4
+ export { useAgent, useWorkspace } from "./client-state.js";
5
+ export { useRpc } from "./rpc-context.js";
6
+ import type { SettingsDefinition } from "../settings.js";
7
+ import type { SettingsState } from "./contracts.js";
8
+ import type { ZodType } from "zod";
9
+ export declare function useSettings<Schema extends ZodType>(definition: SettingsDefinition<Schema>): SettingsState<Schema>;
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,4 @@
1
+ export { usePaseo } from "./paseo-context.js";
2
+ export { useAgent, useWorkspace } from "./client-state.js";
3
+ export { useRpc } from "./rpc-context.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,46 @@
1
+ import type { ComponentType, FunctionComponent, ReactNode, ForwardRefExoticComponent, RefAttributes, ReactElement, Ref } from "react";
2
+ import type { StyleProp, ViewStyle, ScrollView as NativeScrollView, ScrollViewProps, FlatList as NativeFlatList, FlatListProps, TextInput as NativeTextInput, TextInputProps } from "react-native";
3
+ import type { PluginIconProps } from "./contracts.js";
4
+ export interface ModalProps {
5
+ title: string;
6
+ icon?: ReactNode;
7
+ open: boolean;
8
+ onOpenChange(open: boolean): void;
9
+ children: ReactNode;
10
+ }
11
+ export interface ModalContentProps {
12
+ children: ReactNode;
13
+ /** Paint the full body below the header. */
14
+ style?: StyleProp<ViewStyle>;
15
+ /** Overrides the default 24px padding and 16px gap. Safe-area clearance stays host-owned. */
16
+ contentContainerStyle?: StyleProp<ViewStyle>;
17
+ /** Default true. Set false for a bounded body with your own ScrollView or FlatList. */
18
+ scrollable?: boolean;
19
+ }
20
+ export interface ModalComponent extends FunctionComponent<ModalProps> {
21
+ Content: ComponentType<ModalContentProps>;
22
+ }
23
+ export type ToastVariant = "default" | "info" | "success" | "warning" | "error";
24
+ export interface ToastOptions {
25
+ variant?: ToastVariant;
26
+ durationMs?: number;
27
+ }
28
+ export interface ToastApi {
29
+ show(message: string, options?: ToastOptions): void;
30
+ error(message: string): void;
31
+ }
32
+ export declare const Icon: ComponentType<PluginIconProps>;
33
+ export declare const Modal: ModalComponent;
34
+ export declare function useToast(): ToastApi;
35
+ export declare function useRevealedText(text: string, phase: "streaming" | "complete"): string;
36
+ export type { PluginIconProps } from "./contracts.js";
37
+ /** React Native scrolling with the host's sheet gestures when rendered inside a sheet. */
38
+ export declare const ScrollView: ForwardRefExoticComponent<ScrollViewProps & RefAttributes<NativeScrollView>>;
39
+ export declare function FlatList<Item>(props: FlatListProps<Item> & {
40
+ ref?: Ref<NativeFlatList<Item>>;
41
+ }): ReactElement;
42
+ /** Copies text to this client's clipboard. Rejects when copying is unavailable or denied. */
43
+ export declare function copyText(text: string): Promise<void>;
44
+ /** Native input focus integrated with modal keyboard positioning. */
45
+ export declare const TextInput: ForwardRefExoticComponent<TextInputProps & RefAttributes<NativeTextInput>>;
46
+ //# sourceMappingURL=react-native.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { type ReactNode } from "react";
2
2
  import type { ZodType, input as ZodInput, output as ZodOutput } from "zod";
3
- import { type PluginRpcContract } from "./rpc.js";
3
+ import { type PluginRpcContract } from "../rpc.js";
4
4
  export interface PluginRpcContextValue {
5
5
  invoke(method: string, input: unknown): Promise<unknown>;
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { createContext, useCallback, useContext, useMemo } from "react";
3
- import { callPluginRpc } from "./rpc.js";
3
+ import { callPluginRpc } from "../rpc.js";
4
4
  const PluginRpcContext = createContext(null);
5
5
  export function usePluginRpcContextValue() {
6
6
  return useContext(PluginRpcContext);
@@ -0,0 +1,60 @@
1
+ import type { ComponentType, ReactNode, Ref } from "react";
2
+ export interface SettingsSectionProps {
3
+ title: string;
4
+ info?: ReactNode;
5
+ trailing?: ReactNode;
6
+ children: ReactNode;
7
+ testID?: string;
8
+ }
9
+ export interface SettingsRowProps {
10
+ label: string;
11
+ hint?: string;
12
+ error?: string | null;
13
+ children?: ReactNode;
14
+ testID?: string;
15
+ }
16
+ export interface SettingsSwitchProps extends SettingsRowProps {
17
+ value: boolean;
18
+ onValueChange(value: boolean): void;
19
+ disabled?: boolean;
20
+ }
21
+ export interface SettingsSelectProps<Value extends string = string> extends SettingsRowProps {
22
+ value: Value;
23
+ options: readonly {
24
+ label: string;
25
+ value: Value;
26
+ }[];
27
+ onValueChange(value: Value): void;
28
+ disabled?: boolean;
29
+ }
30
+ export interface SettingsInputHandle {
31
+ focus(): void;
32
+ blur(): void;
33
+ getText(): string;
34
+ replaceText(text: string): void;
35
+ }
36
+ export interface SettingsInputProps extends SettingsRowProps {
37
+ initialValue?: string;
38
+ onChangeText(text: string): void;
39
+ placeholder?: string;
40
+ disabled?: boolean;
41
+ secureTextEntry?: boolean;
42
+ ref?: Ref<SettingsInputHandle>;
43
+ }
44
+ export interface SettingsActionProps extends SettingsRowProps {
45
+ actionLabel: string;
46
+ onPress(): void;
47
+ disabled?: boolean;
48
+ }
49
+ export declare const SettingsGroup: ComponentType<SettingsSectionProps>;
50
+ export declare const SettingsSection: ComponentType<SettingsSectionProps>;
51
+ export declare const SettingsCard: ComponentType<{
52
+ children: ReactNode;
53
+ testID?: string;
54
+ }>;
55
+ export declare const SettingsRow: ComponentType<SettingsRowProps>;
56
+ export declare const SettingsSwitch: ComponentType<SettingsSwitchProps>;
57
+ export declare function SettingsSelect<Value extends string>(props: SettingsSelectProps<Value>): ReactNode;
58
+ export declare const SettingsInput: ComponentType<SettingsInputProps>;
59
+ export declare const SettingsAction: ComponentType<SettingsActionProps>;
60
+ //# sourceMappingURL=ui.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ui.js.map