@esheet/builder 0.0.4-0 → 0.0.4-1

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 (82) hide show
  1. package/dist/index.d.ts +16 -417
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +115 -115
  4. package/dist/lib/EsheetBuilder.d.ts +46 -0
  5. package/dist/lib/EsheetBuilder.d.ts.map +1 -0
  6. package/dist/lib/EsheetBuilder.js +111 -0
  7. package/dist/lib/builder-tools.d.ts +107 -0
  8. package/dist/lib/builder-tools.d.ts.map +1 -0
  9. package/dist/lib/builder-tools.js +321 -0
  10. package/dist/lib/components/BuilderHeader.d.ts +7 -0
  11. package/dist/lib/components/BuilderHeader.d.ts.map +1 -0
  12. package/dist/lib/components/BuilderHeader.js +390 -0
  13. package/dist/lib/components/Canvas.d.ts +12 -0
  14. package/dist/lib/components/Canvas.d.ts.map +1 -0
  15. package/dist/lib/components/Canvas.js +288 -0
  16. package/dist/lib/components/CodeView.d.ts +12 -0
  17. package/dist/lib/components/CodeView.d.ts.map +1 -0
  18. package/dist/lib/components/CodeView.js +197 -0
  19. package/dist/lib/components/FeedbackModal.d.ts +23 -0
  20. package/dist/lib/components/FeedbackModal.d.ts.map +1 -0
  21. package/dist/lib/components/FeedbackModal.js +22 -0
  22. package/dist/lib/components/FieldWrapper.d.ts +53 -0
  23. package/dist/lib/components/FieldWrapper.d.ts.map +1 -0
  24. package/dist/lib/components/FieldWrapper.js +152 -0
  25. package/dist/lib/components/MobileBottomDrawer.d.ts +9 -0
  26. package/dist/lib/components/MobileBottomDrawer.d.ts.map +1 -0
  27. package/dist/lib/components/MobileBottomDrawer.js +6 -0
  28. package/dist/lib/components/ToolPanel.d.ts +11 -0
  29. package/dist/lib/components/ToolPanel.d.ts.map +1 -0
  30. package/dist/lib/components/ToolPanel.js +117 -0
  31. package/dist/lib/components/edit-panel/CommonEditor.d.ts +16 -0
  32. package/dist/lib/components/edit-panel/CommonEditor.d.ts.map +1 -0
  33. package/dist/lib/components/edit-panel/CommonEditor.js +16 -0
  34. package/dist/lib/components/edit-panel/DraftIdEditor.d.ts +16 -0
  35. package/dist/lib/components/edit-panel/DraftIdEditor.d.ts.map +1 -0
  36. package/dist/lib/components/edit-panel/DraftIdEditor.js +32 -0
  37. package/dist/lib/components/edit-panel/EditPanel.d.ts +10 -0
  38. package/dist/lib/components/edit-panel/EditPanel.d.ts.map +1 -0
  39. package/dist/lib/components/edit-panel/EditPanel.js +156 -0
  40. package/dist/lib/components/edit-panel/InputTypeEditor.d.ts +16 -0
  41. package/dist/lib/components/edit-panel/InputTypeEditor.d.ts.map +1 -0
  42. package/dist/lib/components/edit-panel/InputTypeEditor.js +32 -0
  43. package/dist/lib/components/edit-panel/LogicEditor.d.ts +15 -0
  44. package/dist/lib/components/edit-panel/LogicEditor.d.ts.map +1 -0
  45. package/dist/lib/components/edit-panel/LogicEditor.js +392 -0
  46. package/dist/lib/components/edit-panel/MatrixEditor.d.ts +12 -0
  47. package/dist/lib/components/edit-panel/MatrixEditor.d.ts.map +1 -0
  48. package/dist/lib/components/edit-panel/MatrixEditor.js +32 -0
  49. package/dist/lib/components/edit-panel/OptionListEditor.d.ts +14 -0
  50. package/dist/lib/components/edit-panel/OptionListEditor.d.ts.map +1 -0
  51. package/dist/lib/components/edit-panel/OptionListEditor.js +27 -0
  52. package/dist/lib/hooks/useFormApi.d.ts +55 -0
  53. package/dist/lib/hooks/useFormApi.d.ts.map +1 -0
  54. package/dist/lib/hooks/useFormApi.js +80 -0
  55. package/dist/lib/hooks/useUiApi.d.ts +22 -0
  56. package/dist/lib/hooks/useUiApi.d.ts.map +1 -0
  57. package/dist/lib/hooks/useUiApi.js +37 -0
  58. package/dist/lib/hooks/useVisibleRootIds.d.ts +11 -0
  59. package/dist/lib/hooks/useVisibleRootIds.d.ts.map +1 -0
  60. package/dist/lib/hooks/useVisibleRootIds.js +32 -0
  61. package/dist/lib/icons.d.ts +31 -0
  62. package/dist/lib/icons.d.ts.map +1 -0
  63. package/dist/lib/icons.js +47 -0
  64. package/dist/lib/mcp/index.d.ts +7 -0
  65. package/dist/lib/mcp/index.d.ts.map +1 -0
  66. package/dist/lib/mcp/index.js +4 -0
  67. package/dist/lib/mcp/system-prompt.d.ts +2 -0
  68. package/dist/lib/mcp/system-prompt.d.ts.map +1 -0
  69. package/dist/lib/mcp/system-prompt.js +9 -0
  70. package/dist/lib/mcp/tool-definitions.d.ts +10 -0
  71. package/dist/lib/mcp/tool-definitions.d.ts.map +1 -0
  72. package/dist/lib/mcp/tool-definitions.js +436 -0
  73. package/dist/lib/mcp/tool-executor.d.ts +5 -0
  74. package/dist/lib/mcp/tool-executor.d.ts.map +1 -0
  75. package/dist/lib/mcp/tool-executor.js +482 -0
  76. package/dist/lib/mcp/useBuilderToolBridge.d.ts +31 -0
  77. package/dist/lib/mcp/useBuilderToolBridge.d.ts.map +1 -0
  78. package/dist/lib/mcp/useBuilderToolBridge.js +56 -0
  79. package/dist/lib/register-defaults.d.ts +2 -0
  80. package/dist/lib/register-defaults.d.ts.map +1 -0
  81. package/dist/lib/register-defaults.js +37 -0
  82. package/package.json +4 -4
package/dist/index.d.ts CHANGED
@@ -1,417 +1,16 @@
1
- import { AddFieldOptions } from '@esheet/core';
2
- import { BuilderMode } from '@esheet/core';
3
- import { createUIStore } from '@esheet/core';
4
- import { default as default_2 } from 'react';
5
- import { EditTab } from '@esheet/core';
6
- import { FieldComponentProps } from '@esheet/core';
7
- import { FieldDefinition } from '@esheet/core';
8
- import { FieldNode } from '@esheet/core';
9
- import { FieldResponse } from '@esheet/core';
10
- import { FieldType } from '@esheet/core';
11
- import { FieldTypeMeta } from '@esheet/core';
12
- import { FormDefinition } from '@esheet/core';
13
- import { FormStore } from '@esheet/core';
14
- import { FormStoreContext } from '@esheet/fields';
15
- import { getFieldComponent } from '@esheet/fields';
16
- import { getRegisteredComponentKeys } from '@esheet/fields';
17
- import { JSX } from 'react/jsx-runtime';
18
- import { NormalizedDefinition } from '@esheet/core';
19
- import { registerCustomFieldTypes } from '@esheet/fields';
20
- import { UIContext } from '@esheet/fields';
21
- import { UIState } from '@esheet/core';
22
- import { UIStore } from '@esheet/core';
23
- import { useFormStore } from '@esheet/fields';
24
- import { useUI } from '@esheet/fields';
25
-
26
- export declare const BUILDER_SYSTEM_PROMPT: string;
27
-
28
- export declare const BUILDER_TOOL_DEFINITIONS: readonly ToolDefinition[];
29
-
30
- /**
31
- * BuilderHeader — top bar with Build/Code/Preview mode toggle and Import/Export actions.
32
- */
33
- export declare function BuilderHeader(_props: BuilderHeaderProps): JSX.Element;
34
-
35
- export declare interface BuilderHeaderProps {
36
- }
37
-
38
- export { BuilderMode }
39
-
40
- /**
41
- * Narrow interface exposed to MCP / AI tools via `onBuilderToolsReady`.
42
- * Only the operations an external AI agent needs — no raw store internals.
43
- */
44
- export declare interface BuilderTools {
45
- /** Add a new field. Returns the generated ID, or null for unknown type. */
46
- addField: (fieldType: FieldType, opts?: AddFieldOptions) => string | null;
47
- /** Patch a field's properties. Returns false if the field was not found. */
48
- updateField: (fieldId: string, patch: Record<string, unknown>) => boolean;
49
- /** Remove a field. Returns false if not found. */
50
- removeField: (fieldId: string) => boolean;
51
- /** Find a field ID by exact ID or partial question match. */
52
- resolveFieldId: (fieldId?: string, fieldQuestion?: string) => string | undefined;
53
- /** Replace the entire form with a new definition. */
54
- resetForm: (definition: {
55
- id?: string;
56
- fields: Record<string, unknown>[];
57
- }) => void;
58
- /** Generate a form from a list of plain question descriptors. */
59
- generateForm: (questions: {
60
- question: string;
61
- fieldType?: string;
62
- required?: boolean;
63
- inputType?: string;
64
- options?: string[];
65
- }[]) => string;
66
- /** Snapshot of the current form suitable for AI context. */
67
- getFormSummary: () => {
68
- formId: string;
69
- fieldCount: number;
70
- fields: FieldSummary[];
71
- };
72
- /** Set a response value for a field (for testing in preview mode). Returns true on success, false if field not found, or an error string if the value format is invalid. */
73
- fillField: (fieldId: string, value: unknown) => boolean | string;
74
- /** Clear all responses. */
75
- clearResponses: () => void;
76
- /** Get current responses keyed by field ID. */
77
- getResponses: () => Record<string, unknown>;
78
- /** Granular option mutations (radio, check, dropdown, etc.). */
79
- option: {
80
- add: (fieldId: string, value?: string) => string | null;
81
- update: (fieldId: string, optionId: string, value: string) => boolean;
82
- remove: (fieldId: string, optionId: string) => boolean;
83
- };
84
- /** Granular row mutations (matrix fields). */
85
- row: {
86
- add: (fieldId: string, value?: string) => string | null;
87
- update: (fieldId: string, rowId: string, value: string) => boolean;
88
- remove: (fieldId: string, rowId: string) => boolean;
89
- };
90
- /** Granular column mutations (matrix fields). */
91
- column: {
92
- add: (fieldId: string, value?: string) => string | null;
93
- update: (fieldId: string, columnId: string, value: string) => boolean;
94
- remove: (fieldId: string, columnId: string) => boolean;
95
- };
96
- /** Move a field to a new index. */
97
- moveField: (fieldId: string, toIndex: number, toParentId?: string | null) => boolean;
98
- /** Get a single field node by ID. */
99
- getField: (fieldId: string) => FieldNode | undefined;
100
- /** List all registered field type keys and their labels. */
101
- getFieldTypes: () => {
102
- key: string;
103
- label: string;
104
- category: string;
105
- hasOptions: boolean;
106
- hasMatrix: boolean;
107
- }[];
108
- /** Get full spec for a single field type (properties, capabilities, defaults). */
109
- getFieldSpec: (fieldType: string) => FieldTypeMeta | undefined;
110
- /** Export the full form definition tree (inverse of loadDefinition). */
111
- getDefinition: () => FormDefinition;
112
- /** Update the form's top-level ID without replacing fields. */
113
- setFormId: (id: string) => void;
114
- }
115
-
116
- /**
117
- * CodeView — Monaco-based JSON/YAML editor for the form definition.
118
- *
119
- * Serialize on mount, live-validate on edit, auto-save on unmount.
120
- */
121
- export declare function CodeView({ form, ui }: CodeViewProps): JSX.Element;
122
-
123
- export declare interface CodeViewProps {
124
- form: FormStore;
125
- ui: UIStore;
126
- }
127
-
128
- export { createUIStore }
129
-
130
- export { EditTab }
131
-
132
- export declare const EsheetBuilder: default_2.ForwardRefExoticComponent<EsheetBuilderProps & default_2.RefAttributes<EsheetBuilderHandle>>;
133
-
134
- declare interface EsheetBuilderHandle {
135
- /** Returns true if touch mode is currently enabled */
136
- isTouchModeEnabled: () => boolean;
137
- /** Toggle touch mode on/off. Only works when touchMode prop is 'auto' or undefined. */
138
- setTouchMode: (enabled: boolean) => void;
139
- /** Reset to auto-detection mode (clears manual override). Only works when touchMode='auto'. */
140
- resetTouchMode: () => void;
141
- }
142
-
143
- export declare interface EsheetBuilderProps {
144
- /** Initial form definition to load. Also accepts SurveyJS, MCP elicitation, or FHIR Questionnaire schemas, which are auto-converted. */
145
- definition?: FormDefinition | Record<string, unknown>;
146
- /** Callback fired when the form definition changes. */
147
- onChange?: (definition: FormDefinition) => void;
148
- /**
149
- * Called once after the builder mounts, providing a narrow `BuilderTools`
150
- * facade for MCP / AI tool integrations. Not intended for general developer use —
151
- * everything a developer needs is available through the builder's own UI and props.
152
- */
153
- onBuilderToolsReady?: (tools: BuilderTools) => void;
154
- /** Whether drag-and-drop reordering is enabled (default: true). When false, field reordering is disabled entirely — no fallback UI (e.g. arrow buttons) is shown. */
155
- dragEnabled?: boolean;
156
- /** Additional CSS class name. */
157
- className?: string;
158
- /** Optional content rendered below the header (e.g. custom status/debug panels). */
159
- children?: default_2.ReactNode;
160
- /**
161
- * Enable touch-optimized mode with larger touch targets in preview mode.
162
- * - `true`: Always enable touch mode
163
- * - `false`: Never enable touch mode (CSS media query still applies)
164
- * - `'auto'`: Enable based on viewport width (<980px) via JavaScript
165
- * - `undefined`: Rely on CSS media query only (default)
166
- */
167
- touchMode?: boolean | 'auto';
168
- /** Called when touch mode changes (via auto-detection or programmatic toggle). */
169
- onTouchModeChange?: (enabled: boolean) => void;
170
- }
171
-
172
- export declare function executeToolCall(toolName: string, args: ToolArgs, tools: BuilderTools): string | Record<string, unknown>;
173
-
174
- export { FieldComponentProps }
175
-
176
- export { FieldDefinition }
177
-
178
- export declare type FieldResponseMap = Record<string, FieldResponse>;
179
-
180
- /** Summary of a single field, suitable for AI context. */
181
- export declare interface FieldSummary {
182
- id: string;
183
- fieldType: string;
184
- question: string | undefined;
185
- required: boolean;
186
- options: {
187
- id: string;
188
- value: string;
189
- }[];
190
- rows: {
191
- id: string;
192
- value: string;
193
- }[];
194
- columns: {
195
- id: string;
196
- value: string;
197
- }[];
198
- /** Which tool family to use: 'add_option' for option-based fields, 'add_row / add_column' for matrix fields. */
199
- editWith: string;
200
- /** True if this field has conditional logic rules attached. Use get_field to inspect them. */
201
- hasRules: boolean;
202
- /** Required value format for structured input types (date, datetime-local, month, time). Use this exact format when calling fill_field. */
203
- valueFormat?: string;
204
- /** True if this field already has a response value. False means it is still empty and needs to be filled. */
205
- hasValue: boolean;
206
- /** Section child fields (only present when fieldType === 'section'). */
207
- children?: FieldSummary[];
208
- }
209
-
210
- /**
211
- * FieldWrapper - Extensibility API for custom field components.
212
- *
213
- * Wraps a field with collapsible header, selection highlighting, edit/delete buttons, and drag handles.
214
- * Exposes field data and tools to the render function, allowing users to create
215
- * custom field types while getting all the built-in editor functionality.
216
- *
217
- * @example
218
- * ```tsx
219
- * <FieldWrapper fieldId={id} form={form} ui={ui}>
220
- * {({ field, onUpdate, onRemove }) => (
221
- * <div>
222
- * <input
223
- * value={field.question}
224
- * onChange={(e) => onUpdate({ question: e.target.value })}
225
- * />
226
- * </div>
227
- * )}
228
- * </FieldWrapper>
229
- * ```
230
- */
231
- export declare function FieldWrapper({ fieldId, form, ui, dragHandleRef, isSelectedOverride, onSelectOverride, selectedVariant, forceExpandVersion, forceCollapseVersion, children, }: FieldWrapperProps): JSX.Element | null;
232
-
233
- export declare interface FieldWrapperProps {
234
- /** The field ID */
235
- fieldId: string;
236
- /** The form store */
237
- form: FormStore;
238
- /** The UI store */
239
- ui: UIStore;
240
- /** Ref attached to the drag-handle element. */
241
- dragHandleRef?: default_2.RefObject<HTMLDivElement | null>;
242
- /** Optional override for selection state (used by nested section child interaction). */
243
- isSelectedOverride?: boolean;
244
- /** Optional override for click selection behavior. */
245
- onSelectOverride?: (e: default_2.MouseEvent) => void;
246
- /** Optional selected styling variant. */
247
- selectedVariant?: 'default' | 'nested';
248
- /** Optional signal used to force expand a field wrapper (used for section drop UX). */
249
- forceExpandVersion?: number;
250
- /** Optional signal used to force collapse a field wrapper. */
251
- forceCollapseVersion?: number;
252
- /** Render function that receives field data and tools */
253
- children: (props: FieldWrapperRenderProps) => default_2.ReactNode;
254
- }
255
-
256
- /**
257
- * Props exposed to the render function for custom field components.
258
- * Identical to `FieldComponentProps` from core — kept as a named alias for
259
- * backward-compatibility with existing builder consumers.
260
- */
261
- export declare type FieldWrapperRenderProps = FieldComponentProps;
262
-
263
- export declare interface FormApi {
264
- field: FieldNode | undefined;
265
- response: FieldResponse | undefined;
266
- isVisible: boolean;
267
- isEnabled: boolean;
268
- isRequired: boolean;
269
- normalized: NormalizedDefinition;
270
- responses: FieldResponseMap;
271
- instanceId: string;
272
- form: {
273
- addField: (type: FieldType, opts?: AddFieldOptions) => string | null;
274
- loadDefinition: FormStore['getState'] extends () => infer S ? S extends {
275
- loadDefinition: infer F;
276
- } ? F : never : never;
277
- setFormId: (id: string) => void;
278
- hydrateDefinition: () => ReturnType<ReturnType<FormStore['getState']>['hydrateDefinition']>;
279
- hydrateResponse: () => ReturnType<ReturnType<FormStore['getState']>['hydrateResponse']>;
280
- resetResponses: () => void;
281
- };
282
- field_: {
283
- update: (patch: Partial<Omit<FieldDefinition, 'fields'>>) => boolean;
284
- remove: () => boolean;
285
- move: (toIndex: number, toParentId?: string | null) => boolean;
286
- setResponse: (resp: FieldResponse) => void;
287
- clearResponse: () => void;
288
- };
289
- option: {
290
- add: (value?: string) => string | null;
291
- update: (optId: string, value: string) => boolean;
292
- remove: (optId: string) => boolean;
293
- };
294
- row: {
295
- add: (value?: string) => string | null;
296
- update: (rowId: string, value: string) => boolean;
297
- remove: (rowId: string) => boolean;
298
- };
299
- column: {
300
- add: (value?: string) => string | null;
301
- update: (colId: string, value: string) => boolean;
302
- remove: (colId: string) => boolean;
303
- };
304
- _form: FormStore;
305
- }
306
-
307
- export { FormDefinition }
308
-
309
- export { FormStoreContext }
310
-
311
- export { getFieldComponent }
312
-
313
- export { getRegisteredComponentKeys }
314
-
315
- export declare const InstanceIdContext: default_2.Context<string>;
316
-
317
- export { registerCustomFieldTypes }
318
-
319
- declare type ToolArgs = Record<string, unknown>;
320
-
321
- export declare interface ToolDefinition {
322
- type: string;
323
- function: {
324
- name: string;
325
- description: string;
326
- parameters: Record<string, unknown>;
327
- };
328
- }
329
-
330
- export declare interface UiApi {
331
- mode: BuilderMode;
332
- selectedFieldId: string | null;
333
- selectedFieldChildId: string | null;
334
- editTab: EditTab;
335
- codeEditorHasError: boolean;
336
- selectField: (id: string | null) => void;
337
- selectFieldChild: (parentId: string, childId: string | null) => void;
338
- setMode: (m: BuilderMode) => void;
339
- setEditTab: (tab: EditTab) => void;
340
- setEditModalOpen: (open: boolean) => void;
341
- clearDragState: () => void;
342
- _ui: UIStore;
343
- }
344
-
345
- export { UIContext }
346
-
347
- export { UIState }
348
-
349
- export { UIStore }
350
-
351
- /**
352
- * Listens for AI tool-call events on a target element and dispatches them to
353
- * the builder's MCP tool executor. Returns the `onBuilderToolsReady` callback
354
- * to pass to `<EsheetBuilder>`.
355
- *
356
- * @example – default (listens on document)
357
- * const onBuilderToolsReady = useBuilderMcpToolHandler();
358
- * <EsheetBuilder onBuilderToolsReady={onBuilderToolsReady} />
359
- *
360
- * @example – scoped to a container element
361
- * const ref = React.useRef<HTMLDivElement>(null);
362
- * const onBuilderToolsReady = useBuilderMcpToolHandler({ target: ref.current ?? undefined });
363
- * <div ref={ref}><EsheetBuilder onBuilderToolsReady={onBuilderToolsReady} /></div>
364
- *
365
- * @example – custom event name
366
- * const onBuilderToolsReady = useBuilderMcpToolHandler({ eventName: 'my-ai-tool-call' });
367
- */
368
- export declare function useBuilderMcpToolHandler(options: UseBuilderMcpToolHandlerOptions): (tools: BuilderTools) => void;
369
-
370
- export declare interface UseBuilderMcpToolHandlerOptions {
371
- /**
372
- * The DOM element to listen on for tool-call events.
373
- * Pass `document` to listen globally, or a specific element to scope it.
374
- */
375
- target?: EventTarget;
376
- /**
377
- * The event name to listen for, e.g. `'ozwell-tool-call'`.
378
- */
379
- eventName: string;
380
- }
381
-
382
- /**
383
- * useFormApi — reactive field state + form store actions.
384
- *
385
- * Touches only the FormStore. For UI state (mode, selection, tabs) use
386
- * useUiApi(). For the computed visible root IDs use useVisibleRootIds().
387
- *
388
- * @param fieldId - The field to bind to. Pass undefined for form-level ops only.
389
- */
390
- export declare function useFormApi(fieldId?: string): FormApi;
391
-
392
- export { useFormStore }
393
-
394
- /** Hook to access the per-instance ID for unique DOM element IDs. */
395
- export declare function useInstanceId(): string;
396
-
397
- export { useUI }
398
-
399
- /**
400
- * useUiApi — lightweight hook for components that only need UI state/actions.
401
- *
402
- * Useful when you don't need field-scoped state. Requires UIContext provider.
403
- */
404
- export declare function useUiApi(): UiApi;
405
-
406
- /**
407
- * useVisibleRootIds — returns the root field IDs to render.
408
- *
409
- * In build/code mode: all root IDs.
410
- * In preview mode: only IDs whose visibility rules evaluate to true.
411
- *
412
- * Requires both FormStoreContext and UIContext providers.
413
- * Uses a stable-ref cache so the array reference only changes when content does.
414
- */
415
- export declare function useVisibleRootIds(): readonly string[];
416
-
417
- export { }
1
+ import './index.output.css';
2
+ export { createUIStore, type UIState, type UIStore, type BuilderMode, type EditTab, type FieldComponentProps, } from '@esheet/core';
3
+ export { EsheetBuilder, FormStoreContext, UIContext, InstanceIdContext, useFormStore, useUI, useInstanceId, type EsheetBuilderProps, type BuilderTools, type FieldSummary, } from './lib/EsheetBuilder.js';
4
+ export { FieldWrapper, type FieldWrapperProps, type FieldWrapperRenderProps, } from './lib/components/FieldWrapper.js';
5
+ export { registerCustomFieldTypes, getFieldComponent, getRegisteredComponentKeys, } from '@esheet/fields';
6
+ export { BuilderHeader, type BuilderHeaderProps, } from './lib/components/BuilderHeader.js';
7
+ export { CodeView, type CodeViewProps } from './lib/components/CodeView.js';
8
+ export { useFormApi } from './lib/hooks/useFormApi.js';
9
+ export type { FormApi, FieldResponseMap } from './lib/hooks/useFormApi.js';
10
+ export { useUiApi } from './lib/hooks/useUiApi.js';
11
+ export type { UiApi } from './lib/hooks/useUiApi.js';
12
+ export { useVisibleRootIds } from './lib/hooks/useVisibleRootIds.js';
13
+ export { executeToolCall, BUILDER_TOOL_DEFINITIONS, BUILDER_SYSTEM_PROMPT, useBuilderMcpToolHandler, } from './lib/mcp/index.js';
14
+ export type { ToolDefinition, UseBuilderMcpToolHandlerOptions, } from './lib/mcp/index.js';
15
+ export type { FormDefinition, FieldDefinition } from '@esheet/core';
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,oBAAoB,CAAC;AAG5B,OAAO,EACL,aAAa,EACb,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,KAAK,mBAAmB,GACzB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,SAAS,EACT,iBAAiB,EACjB,YAAY,EACZ,KAAK,EACL,aAAa,EACb,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,YAAY,GAClB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,YAAY,EACZ,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,GAC7B,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EACL,wBAAwB,EACxB,iBAAiB,EACjB,0BAA0B,GAC3B,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,aAAa,EACb,KAAK,kBAAkB,GACxB,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE5E,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,YAAY,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,YAAY,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,cAAc,EACd,+BAA+B,GAChC,MAAM,oBAAoB,CAAC;AAG5B,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}