@process.co/ui 0.0.13 → 0.0.15
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/README.md +29 -0
- package/css/ui.css +154 -182
- package/css/ui.d.ts +4 -0
- package/dist/components/dev/index.cjs +273 -460
- package/dist/components/dev/index.cjs.map +1 -1
- package/dist/components/dev/index.js +268 -454
- package/dist/components/dev/index.js.map +1 -1
- package/dist/components/fields/index.cjs +8339 -4903
- package/dist/components/fields/index.cjs.map +1 -1
- package/dist/components/fields/index.d.cts +4 -1
- package/dist/components/fields/index.d.ts +4 -1
- package/dist/components/fields/index.js +8311 -4883
- package/dist/components/fields/index.js.map +1 -1
- package/dist/{index-Bfh9REtO.d.cts → index-19C2gVyr.d.cts} +245 -150
- package/dist/{index-Bfh9REtO.d.ts → index-19C2gVyr.d.ts} +245 -150
- package/dist/index.cjs +10046 -5335
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -12
- package/dist/index.d.ts +5 -12
- package/dist/index.js +9966 -5256
- package/dist/index.js.map +1 -1
- package/package.json +7 -2
|
@@ -1,156 +1,30 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
3
6
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/** Display label for the field */
|
|
12
|
-
label: string;
|
|
13
|
-
/** Current value */
|
|
14
|
-
value: string | {
|
|
15
|
-
expression: string;
|
|
16
|
-
type: 'expression';
|
|
17
|
-
value?: string;
|
|
18
|
-
};
|
|
19
|
-
/** Called when value changes */
|
|
20
|
-
onChange: (value: string | {
|
|
21
|
-
expression: string;
|
|
22
|
-
type: 'expression';
|
|
23
|
-
}, metadata?: any) => void;
|
|
24
|
-
/** Whether the field is disabled */
|
|
25
|
-
disabled?: boolean;
|
|
26
|
-
/** Placeholder text */
|
|
27
|
-
placeholder?: string;
|
|
28
|
-
/** Expected return type for validation */
|
|
29
|
-
expectedType?: string;
|
|
30
|
-
/** Whether this is a required field */
|
|
31
|
-
required?: boolean;
|
|
32
|
-
/** Whether this field has a required property error (missing value) */
|
|
33
|
-
hasRequiredError?: boolean;
|
|
34
|
-
/** Custom className for the wrapper */
|
|
35
|
-
className?: string;
|
|
36
|
-
/** Custom className for the editor container */
|
|
37
|
-
editorClassName?: string;
|
|
38
|
-
/** Property definition (for richer context) */
|
|
39
|
-
propertyDefinition?: any;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Mock Input component for development/design mode.
|
|
43
|
-
*
|
|
44
|
-
* This is a simplified version that renders a basic input field.
|
|
45
|
-
* In production, this is replaced with the real Input from packages/ui
|
|
46
|
-
* which includes collaboration, type inference, and expression support.
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```tsx
|
|
50
|
-
* <Input
|
|
51
|
-
* fieldName="firstName"
|
|
52
|
-
* label="First Name"
|
|
53
|
-
* value={value}
|
|
54
|
-
* onChange={setValue}
|
|
55
|
-
* />
|
|
56
|
-
* ```
|
|
57
|
-
*/
|
|
58
|
-
declare function Input({ fieldName, label, value, onChange, disabled, placeholder, expectedType, required, hasRequiredError, className, editorClassName, }: InputProps): React.JSX.Element;
|
|
7
|
+
declare const buttonVariants: (props?: ({
|
|
8
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "typePill" | null | undefined;
|
|
9
|
+
size?: "default" | "sm" | "lg" | "icon" | "iconSm" | null | undefined;
|
|
10
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
|
+
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
12
|
+
asChild?: boolean;
|
|
13
|
+
}): React.JSX.Element;
|
|
59
14
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Field name/key.
|
|
68
|
-
* Used for Yjs field path and validation error tracking.
|
|
69
|
-
* When nested inside NestedFieldProvider, the parent path is auto-prepended.
|
|
70
|
-
*/
|
|
71
|
-
fieldName: string;
|
|
72
|
-
/** Display label for the field */
|
|
73
|
-
label: string;
|
|
74
|
-
/** Current value */
|
|
75
|
-
value: string | {
|
|
76
|
-
expression: string;
|
|
77
|
-
type: 'expression';
|
|
78
|
-
value?: string;
|
|
79
|
-
};
|
|
80
|
-
/** Called when value changes */
|
|
81
|
-
onChange: (value: string | {
|
|
82
|
-
expression: string;
|
|
83
|
-
type: 'expression';
|
|
84
|
-
}, metadata?: any) => void;
|
|
85
|
-
/** Available options */
|
|
86
|
-
options: SelectOption[] | string[];
|
|
87
|
-
/** Whether the field is disabled */
|
|
88
|
-
disabled?: boolean;
|
|
89
|
-
/** Placeholder text */
|
|
90
|
-
placeholder?: string;
|
|
91
|
-
/** Expected return type for validation */
|
|
92
|
-
expectedType?: string;
|
|
93
|
-
/** Whether to hide the type badge */
|
|
94
|
-
hideTypeBadge?: boolean;
|
|
95
|
-
/** Whether this is a required field */
|
|
96
|
-
required?: boolean;
|
|
97
|
-
/** Whether this field has a required property error (missing value) */
|
|
98
|
-
hasRequiredError?: boolean;
|
|
99
|
-
/** Custom className for the wrapper */
|
|
100
|
-
className?: string;
|
|
101
|
-
/** Property definition (for richer context) */
|
|
102
|
-
propertyDefinition?: any;
|
|
103
|
-
/**
|
|
104
|
-
* Render prop for custom select UI.
|
|
105
|
-
* If not provided, uses a basic HTML select.
|
|
106
|
-
*/
|
|
107
|
-
children?: (props: SelectRenderProps) => React.ReactNode;
|
|
108
|
-
}
|
|
109
|
-
interface SelectRenderProps {
|
|
110
|
-
value: string;
|
|
111
|
-
onChange: (value: string) => void;
|
|
112
|
-
onFocus?: () => void;
|
|
113
|
-
onBlur?: () => void;
|
|
114
|
-
onExpressionClick: () => void;
|
|
115
|
-
options: SelectOption[];
|
|
116
|
-
localInput: string;
|
|
117
|
-
setLocalInput: (value: string) => void;
|
|
118
|
-
expressionMode: {
|
|
119
|
-
current: 'value' | 'expression';
|
|
120
|
-
isExpressionMode: boolean;
|
|
121
|
-
isEditorMode: boolean;
|
|
122
|
-
isEditing: boolean;
|
|
123
|
-
isFullScreen: boolean;
|
|
124
|
-
expression: string;
|
|
125
|
-
switchToValue: () => void;
|
|
126
|
-
switchToExpression: () => void;
|
|
127
|
-
switchToEditor: () => void;
|
|
128
|
-
clear: () => void;
|
|
129
|
-
};
|
|
130
|
-
inferredType?: string;
|
|
131
|
-
hasTypeMismatch?: boolean;
|
|
132
|
-
hasError?: boolean;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Mock Select component for development/design mode.
|
|
136
|
-
*
|
|
137
|
-
* This is a simplified version that renders a basic select field.
|
|
138
|
-
* In production, this is replaced with the real Select from packages/ui
|
|
139
|
-
* which includes collaboration, type inference, and expression support.
|
|
140
|
-
*
|
|
141
|
-
* @example
|
|
142
|
-
* ```tsx
|
|
143
|
-
* <Select
|
|
144
|
-
* fieldName="status"
|
|
145
|
-
* label="Status"
|
|
146
|
-
* value={value}
|
|
147
|
-
* onChange={setValue}
|
|
148
|
-
* options={['draft', 'published', 'archived']}
|
|
149
|
-
* />
|
|
150
|
-
* ```
|
|
151
|
-
*/
|
|
152
|
-
declare function Select({ fieldName, label, value, onChange, options: rawOptions, disabled, placeholder, expectedType, hideTypeBadge, required, hasRequiredError, className, children, }: SelectProps): React.JSX.Element;
|
|
15
|
+
declare const toggleButtonVariants: (props?: ({
|
|
16
|
+
variant?: "default" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
17
|
+
size?: "default" | "sm" | "lg" | "icon" | "iconSm" | null | undefined;
|
|
18
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
19
|
+
type ToggleButtonProps = React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleButtonVariants>;
|
|
20
|
+
declare function ToggleButton({ className, variant, size, ...props }: ToggleButtonProps): React.JSX.Element;
|
|
153
21
|
|
|
22
|
+
/** Accepted value for Input/Select: string or expression object. For untyped sources (e.g. condition.value), assert: value={x as FieldValue} */
|
|
23
|
+
type FieldValue = string | {
|
|
24
|
+
expression: string;
|
|
25
|
+
type: 'expression';
|
|
26
|
+
value?: string;
|
|
27
|
+
};
|
|
154
28
|
/**
|
|
155
29
|
* Shared Operator Type Definitions and Utilities
|
|
156
30
|
*
|
|
@@ -285,6 +159,142 @@ declare function getStringConstants(inferredType: string): string[];
|
|
|
285
159
|
*/
|
|
286
160
|
declare function getNumberConstants(inferredType: string): number[];
|
|
287
161
|
|
|
162
|
+
interface InputProps {
|
|
163
|
+
/**
|
|
164
|
+
* Field name/key.
|
|
165
|
+
* Used for Yjs field path and validation error tracking.
|
|
166
|
+
* When nested inside NestedFieldProvider, the parent path is auto-prepended.
|
|
167
|
+
*/
|
|
168
|
+
fieldName: string;
|
|
169
|
+
/** Display label for the field */
|
|
170
|
+
label: string;
|
|
171
|
+
/** Current value (string or expression object). From untyped sources use: value={x as FieldValue} */
|
|
172
|
+
value: FieldValue;
|
|
173
|
+
/** Called when value changes (may receive string or expression object; use normalizeFieldValue to get a string) */
|
|
174
|
+
onChange: (value: FieldValue, metadata?: any) => void;
|
|
175
|
+
/** Whether the field is disabled */
|
|
176
|
+
disabled?: boolean;
|
|
177
|
+
/** Placeholder text */
|
|
178
|
+
placeholder?: string;
|
|
179
|
+
/** Expected return type for validation */
|
|
180
|
+
expectedType?: string;
|
|
181
|
+
/** Whether this is a required field */
|
|
182
|
+
required?: boolean;
|
|
183
|
+
/** Whether this field has a required property error (missing value) */
|
|
184
|
+
hasRequiredError?: boolean;
|
|
185
|
+
/** Custom className for the wrapper */
|
|
186
|
+
className?: string;
|
|
187
|
+
/** Custom className for the editor container */
|
|
188
|
+
editorClassName?: string;
|
|
189
|
+
/** Property definition (for richer context) */
|
|
190
|
+
propertyDefinition?: any;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Mock Input component for development/design mode.
|
|
194
|
+
*
|
|
195
|
+
* This is a simplified version that renders a basic input field.
|
|
196
|
+
* In production, this is replaced with the real Input from packages/ui
|
|
197
|
+
* which includes collaboration, type inference, and expression support.
|
|
198
|
+
*
|
|
199
|
+
* @example
|
|
200
|
+
* ```tsx
|
|
201
|
+
* <Input
|
|
202
|
+
* fieldName="firstName"
|
|
203
|
+
* label="First Name"
|
|
204
|
+
* value={value}
|
|
205
|
+
* onChange={setValue}
|
|
206
|
+
* />
|
|
207
|
+
* ```
|
|
208
|
+
*/
|
|
209
|
+
declare function Input({ fieldName, label, value, onChange, disabled, placeholder, expectedType, required, hasRequiredError, className, editorClassName, }: InputProps): React.JSX.Element;
|
|
210
|
+
|
|
211
|
+
interface SelectOption {
|
|
212
|
+
node?: React.ReactNode;
|
|
213
|
+
value: string;
|
|
214
|
+
label: string;
|
|
215
|
+
}
|
|
216
|
+
interface SelectProps {
|
|
217
|
+
/**
|
|
218
|
+
* Field name/key.
|
|
219
|
+
* Used for Yjs field path and validation error tracking.
|
|
220
|
+
* When nested inside NestedFieldProvider, the parent path is auto-prepended.
|
|
221
|
+
*/
|
|
222
|
+
fieldName: string;
|
|
223
|
+
/** Display label for the field */
|
|
224
|
+
label: string;
|
|
225
|
+
/** Current value (string or expression object). From untyped sources use: value={x as FieldValue} */
|
|
226
|
+
value: FieldValue;
|
|
227
|
+
/** Called when value changes (may receive string or expression object; use normalizeFieldValue to get a string) */
|
|
228
|
+
onChange: (value: FieldValue, metadata?: any) => void;
|
|
229
|
+
/** Available options */
|
|
230
|
+
options: SelectOption[] | string[];
|
|
231
|
+
/** Whether the field is disabled */
|
|
232
|
+
disabled?: boolean;
|
|
233
|
+
/** Placeholder text */
|
|
234
|
+
placeholder?: string;
|
|
235
|
+
/** Expected return type for validation */
|
|
236
|
+
expectedType?: string;
|
|
237
|
+
/** Whether to hide the type badge */
|
|
238
|
+
hideTypeBadge?: boolean;
|
|
239
|
+
/** Whether this is a required field */
|
|
240
|
+
required?: boolean;
|
|
241
|
+
/** Whether this field has a required property error (missing value) */
|
|
242
|
+
hasRequiredError?: boolean;
|
|
243
|
+
/** Custom className for the wrapper */
|
|
244
|
+
className?: string;
|
|
245
|
+
/** Property definition (for richer context) */
|
|
246
|
+
propertyDefinition?: any;
|
|
247
|
+
/**
|
|
248
|
+
* Render prop for custom select UI.
|
|
249
|
+
* If not provided, uses a basic HTML select.
|
|
250
|
+
*/
|
|
251
|
+
children?: (props: SelectRenderProps) => React.ReactNode;
|
|
252
|
+
}
|
|
253
|
+
interface SelectRenderProps {
|
|
254
|
+
value: string;
|
|
255
|
+
onChange: (value: string) => void;
|
|
256
|
+
onFocus?: () => void;
|
|
257
|
+
onBlur?: () => void;
|
|
258
|
+
onExpressionClick: () => void;
|
|
259
|
+
options: SelectOption[];
|
|
260
|
+
localInput: string;
|
|
261
|
+
setLocalInput: (value: string) => void;
|
|
262
|
+
expressionMode: {
|
|
263
|
+
current: 'value' | 'expression';
|
|
264
|
+
isExpressionMode: boolean;
|
|
265
|
+
isEditorMode: boolean;
|
|
266
|
+
isEditing: boolean;
|
|
267
|
+
isFullScreen: boolean;
|
|
268
|
+
expression: string;
|
|
269
|
+
switchToValue: () => void;
|
|
270
|
+
switchToExpression: () => void;
|
|
271
|
+
switchToEditor: () => void;
|
|
272
|
+
clear: () => void;
|
|
273
|
+
};
|
|
274
|
+
inferredType?: string;
|
|
275
|
+
hasTypeMismatch?: boolean;
|
|
276
|
+
hasError?: boolean;
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Mock Select component for development/design mode.
|
|
280
|
+
*
|
|
281
|
+
* This is a simplified version that renders a basic select field.
|
|
282
|
+
* In production, this is replaced with the real Select from packages/ui
|
|
283
|
+
* which includes collaboration, type inference, and expression support.
|
|
284
|
+
*
|
|
285
|
+
* @example
|
|
286
|
+
* ```tsx
|
|
287
|
+
* <Select
|
|
288
|
+
* fieldName="status"
|
|
289
|
+
* label="Status"
|
|
290
|
+
* value={value}
|
|
291
|
+
* onChange={setValue}
|
|
292
|
+
* options={['draft', 'published', 'archived']}
|
|
293
|
+
* />
|
|
294
|
+
* ```
|
|
295
|
+
*/
|
|
296
|
+
declare function Select({ fieldName, label, value, onChange, options: rawOptions, disabled, placeholder, expectedType, hideTypeBadge, required, hasRequiredError, className, children, }: SelectProps): React.JSX.Element;
|
|
297
|
+
|
|
288
298
|
/**
|
|
289
299
|
* Simplified Field Components (Mock/Development Version)
|
|
290
300
|
*
|
|
@@ -293,6 +303,17 @@ declare function getNumberConstants(inferredType: string): number[];
|
|
|
293
303
|
* replaced with the real implementations from packages/ui that include
|
|
294
304
|
* collaboration, type inference, and expression support.
|
|
295
305
|
*
|
|
306
|
+
* ## API alignment with packages/ui
|
|
307
|
+
*
|
|
308
|
+
* The following are mirrored so 3rd-party vendor code works in both
|
|
309
|
+
* mock (Storybook/dev) and production (host app):
|
|
310
|
+
* - TemplateFieldContextValue.onValueChange (fieldKey, value?, metadata?)
|
|
311
|
+
* - TemplateFieldProviderProps.onValueChange
|
|
312
|
+
* - useNodeProperty(key) → setter(value, metadata?)
|
|
313
|
+
* - useSetProperty() → (key, value, metadata?) => void
|
|
314
|
+
* - useSetFieldMetadataOnly() → (fieldKey, metadata) => void
|
|
315
|
+
* - PropertyMetadata type
|
|
316
|
+
*
|
|
296
317
|
* ## API
|
|
297
318
|
*
|
|
298
319
|
* The API matches the production components exactly, so developers
|
|
@@ -325,6 +346,13 @@ declare function getNumberConstants(inferredType: string): number[];
|
|
|
325
346
|
* ```
|
|
326
347
|
*/
|
|
327
348
|
|
|
349
|
+
/**
|
|
350
|
+
* Normalize a value from Input/Select onChange (or any stored value) to a string.
|
|
351
|
+
* Use when persisting condition.value or other fields that store a string only.
|
|
352
|
+
*/
|
|
353
|
+
declare function normalizeFieldValue(val: string | {
|
|
354
|
+
expression?: string;
|
|
355
|
+
} | unknown): string;
|
|
328
356
|
/**
|
|
329
357
|
* Mock context value (always returns defaults).
|
|
330
358
|
* In production, this is replaced with the real context from packages/ui.
|
|
@@ -342,6 +370,8 @@ interface TemplateFieldContextValue {
|
|
|
342
370
|
onControlBlur: () => void;
|
|
343
371
|
onRecordChange: (change: any) => void;
|
|
344
372
|
onValidationChange: (fieldName: string, error: any) => void;
|
|
373
|
+
/** Optional host callback to persist field metadata (e.g. expression format). Mirrors packages/ui for 3rd-party vendors. */
|
|
374
|
+
onValueChange?: (fieldKey: string, value?: unknown, metadata?: Record<string, any>) => void;
|
|
345
375
|
parentFieldPath: string | null;
|
|
346
376
|
disabled: boolean;
|
|
347
377
|
}
|
|
@@ -385,6 +415,8 @@ type TemplateFieldProviderProps = {
|
|
|
385
415
|
onControlBlur?: () => void;
|
|
386
416
|
onRecordChange?: (change: any) => void;
|
|
387
417
|
onValidationChange?: (fieldName: string, error: any) => void;
|
|
418
|
+
/** Optional host callback to persist field metadata. Mirrors packages/ui for 3rd-party vendors. */
|
|
419
|
+
onValueChange?: (fieldKey: string, value?: unknown, metadata?: Record<string, any>) => void;
|
|
388
420
|
parentFieldPath?: string | null;
|
|
389
421
|
disabled?: boolean;
|
|
390
422
|
};
|
|
@@ -595,6 +627,29 @@ interface NodePropertyProviderProps {
|
|
|
595
627
|
* In production, the real implementation from @repo/ui provides actual store.
|
|
596
628
|
*/
|
|
597
629
|
declare function NodePropertyProvider({ children }: NodePropertyProviderProps): React__default.ReactElement;
|
|
630
|
+
/**
|
|
631
|
+
* Metadata shape for a single property (mirrors packages/ui NodePropertyStore).
|
|
632
|
+
* Vendors can rely on this type when calling setValue(value, metadata) or useSetFieldMetadataOnly.
|
|
633
|
+
*/
|
|
634
|
+
interface PropertyMetadata {
|
|
635
|
+
updatedAt?: number;
|
|
636
|
+
updatedBy?: string;
|
|
637
|
+
transactionId?: string;
|
|
638
|
+
expressionBackup?: string;
|
|
639
|
+
[key: string]: any;
|
|
640
|
+
}
|
|
641
|
+
/**
|
|
642
|
+
* Hook to set only field-level metadata (e.g. expression format) without changing the value.
|
|
643
|
+
* In development/mock mode this is a no-op. In production, the host merges into $meta and syncs via Yjs.
|
|
644
|
+
* Mirrors packages/ui so 3rd-party vendors can call it from custom controls.
|
|
645
|
+
*
|
|
646
|
+
* @example
|
|
647
|
+
* ```tsx
|
|
648
|
+
* const setFieldMetadataOnly = useSetFieldMetadataOnly();
|
|
649
|
+
* setFieldMetadataOnly('expression', { format: 'text', mode: 'expression' });
|
|
650
|
+
* ```
|
|
651
|
+
*/
|
|
652
|
+
declare function useSetFieldMetadataOnly(): (fieldKey: string, metadata: Record<string, any>) => void;
|
|
598
653
|
/**
|
|
599
654
|
* Hook to check if we're inside a property provider.
|
|
600
655
|
*
|
|
@@ -655,6 +710,36 @@ declare function useClearInferredType(): (fieldName: string) => void;
|
|
|
655
710
|
* Returns a no-op when not inside any provider.
|
|
656
711
|
*/
|
|
657
712
|
declare function useClearAllInferredTypes(): () => void;
|
|
713
|
+
/**
|
|
714
|
+
* Hook to get a function that clears validation errors by field name prefix.
|
|
715
|
+
*
|
|
716
|
+
* Used when dynamic fields (like switch cases/conditions) are removed to clean up
|
|
717
|
+
* any associated validation errors.
|
|
718
|
+
*
|
|
719
|
+
* In development mode (DevProvider), this is a no-op.
|
|
720
|
+
* In production, this clears errors matching the prefix from the validation store.
|
|
721
|
+
*
|
|
722
|
+
* @example
|
|
723
|
+
* ```tsx
|
|
724
|
+
* const clearErrorsByPrefix = useClearValidationErrorsByPrefix();
|
|
725
|
+
*
|
|
726
|
+
* const handleRemoveCase = (caseId: string) => {
|
|
727
|
+
* // Remove the case from state
|
|
728
|
+
* setCases(cases.filter(c => c.id !== caseId));
|
|
729
|
+
* // Clear any validation errors for fields in this case
|
|
730
|
+
* clearErrorsByPrefix(caseId);
|
|
731
|
+
* };
|
|
732
|
+
* ```
|
|
733
|
+
*/
|
|
734
|
+
declare function useClearValidationErrorsByPrefix(): (fieldPrefix: string) => void;
|
|
735
|
+
/**
|
|
736
|
+
* Unified flow editor actions for custom controls (mock/dev).
|
|
737
|
+
*/
|
|
738
|
+
declare function useFlowEditorActions(): {
|
|
739
|
+
triggerLayoutUpdate: () => void;
|
|
740
|
+
triggerValidation: () => void;
|
|
741
|
+
clearValidationErrorsByPrefix: (fieldPrefix: string) => void;
|
|
742
|
+
};
|
|
658
743
|
/**
|
|
659
744
|
* Hook to subscribe to all inferred types.
|
|
660
745
|
*
|
|
@@ -721,7 +806,9 @@ declare function useFieldValidation(): {
|
|
|
721
806
|
};
|
|
722
807
|
|
|
723
808
|
type index_BaseOperatorType = BaseOperatorType;
|
|
809
|
+
declare const index_Button: typeof Button;
|
|
724
810
|
type index_FieldValidationRule = FieldValidationRule;
|
|
811
|
+
type index_FieldValue = FieldValue;
|
|
725
812
|
type index_InferConfig = InferConfig;
|
|
726
813
|
declare const index_InferredTypesContext: typeof InferredTypesContext;
|
|
727
814
|
type index_InferredTypesContextValue = InferredTypesContextValue;
|
|
@@ -736,6 +823,7 @@ type index_NodePropertyProviderProps = NodePropertyProviderProps;
|
|
|
736
823
|
declare const index_OPERATORS_BY_TYPE: typeof OPERATORS_BY_TYPE;
|
|
737
824
|
type index_OperatorDef<T = never> = OperatorDef<T>;
|
|
738
825
|
type index_ParsedTypes = ParsedTypes;
|
|
826
|
+
type index_PropertyMetadata = PropertyMetadata;
|
|
739
827
|
declare const index_Select: typeof Select;
|
|
740
828
|
type index_SelectOption = SelectOption;
|
|
741
829
|
type index_SelectProps = SelectProps;
|
|
@@ -746,31 +834,38 @@ type index_TemplateFieldFocusContext = TemplateFieldFocusContext;
|
|
|
746
834
|
declare const index_TemplateFieldProvider: typeof TemplateFieldProvider;
|
|
747
835
|
type index_TemplateFieldProviderProps = TemplateFieldProviderProps;
|
|
748
836
|
type index_TemplateFieldValidationError = TemplateFieldValidationError;
|
|
837
|
+
declare const index_ToggleButton: typeof ToggleButton;
|
|
838
|
+
declare const index_buttonVariants: typeof buttonVariants;
|
|
749
839
|
declare const index_computeExtendedType: typeof computeExtendedType;
|
|
750
840
|
declare const index_filterOperatorsByType: typeof filterOperatorsByType;
|
|
751
841
|
declare const index_getNumberConstants: typeof getNumberConstants;
|
|
752
842
|
declare const index_getOperatorsForType: typeof getOperatorsForType;
|
|
753
843
|
declare const index_getStringConstants: typeof getStringConstants;
|
|
754
844
|
declare const index_intersectTypes: typeof intersectTypes;
|
|
845
|
+
declare const index_normalizeFieldValue: typeof normalizeFieldValue;
|
|
755
846
|
declare const index_parseInferSyntax: typeof parseInferSyntax;
|
|
756
847
|
declare const index_parseInferredTypes: typeof parseInferredTypes;
|
|
848
|
+
declare const index_toggleButtonVariants: typeof toggleButtonVariants;
|
|
757
849
|
declare const index_useAllInferredTypes: typeof useAllInferredTypes;
|
|
758
850
|
declare const index_useClearAllInferredTypes: typeof useClearAllInferredTypes;
|
|
759
851
|
declare const index_useClearInferredType: typeof useClearInferredType;
|
|
852
|
+
declare const index_useClearValidationErrorsByPrefix: typeof useClearValidationErrorsByPrefix;
|
|
760
853
|
declare const index_useFieldPath: typeof useFieldPath;
|
|
761
854
|
declare const index_useFieldValidation: typeof useFieldValidation;
|
|
855
|
+
declare const index_useFlowEditorActions: typeof useFlowEditorActions;
|
|
762
856
|
declare const index_useInferredType: typeof useInferredType;
|
|
763
857
|
declare const index_useInferredTypes: typeof useInferredTypes;
|
|
764
858
|
declare const index_useIsInNodePropertyProvider: typeof useIsInNodePropertyProvider;
|
|
765
859
|
declare const index_useIsInTemplateFieldProvider: typeof useIsInTemplateFieldProvider;
|
|
766
860
|
declare const index_useNodeProperties: typeof useNodeProperties;
|
|
767
861
|
declare const index_useNodeProperty: typeof useNodeProperty;
|
|
862
|
+
declare const index_useSetFieldMetadataOnly: typeof useSetFieldMetadataOnly;
|
|
768
863
|
declare const index_useSetInferredType: typeof useSetInferredType;
|
|
769
864
|
declare const index_useSetProperty: typeof useSetProperty;
|
|
770
865
|
declare const index_useTemplateFieldContext: typeof useTemplateFieldContext;
|
|
771
866
|
declare const index_useTriggerLayoutUpdate: typeof useTriggerLayoutUpdate;
|
|
772
867
|
declare namespace index {
|
|
773
|
-
export { type index_BaseOperatorType as BaseOperatorType, type index_FieldValidationRule as FieldValidationRule, type index_InferConfig as InferConfig, index_InferredTypesContext as InferredTypesContext, type index_InferredTypesContextValue as InferredTypesContextValue, index_InferredTypesProvider as InferredTypesProvider, type index_InferredTypesProviderProps as InferredTypesProviderProps, index_Input as Input, type index_InputProps as InputProps, index_NestedFieldProvider as NestedFieldProvider, type index_NestedFieldProviderProps as NestedFieldProviderProps, index_NodePropertyProvider as NodePropertyProvider, type index_NodePropertyProviderProps as NodePropertyProviderProps, index_OPERATORS_BY_TYPE as OPERATORS_BY_TYPE, type index_OperatorDef as OperatorDef, type index_ParsedTypes as ParsedTypes, index_Select as Select, type index_SelectOption as SelectOption, type index_SelectProps as SelectProps, type index_SelectRenderProps as SelectRenderProps, type index_TemplateFieldChangeEvent as TemplateFieldChangeEvent, type index_TemplateFieldContextValue as TemplateFieldContextValue, type index_TemplateFieldFocusContext as TemplateFieldFocusContext, index_TemplateFieldProvider as TemplateFieldProvider, type index_TemplateFieldProviderProps as TemplateFieldProviderProps, type index_TemplateFieldValidationError as TemplateFieldValidationError, index_computeExtendedType as computeExtendedType, index_filterOperatorsByType as filterOperatorsByType, index_getNumberConstants as getNumberConstants, index_getOperatorsForType as getOperatorsForType, index_getStringConstants as getStringConstants, index_intersectTypes as intersectTypes, index_parseInferSyntax as parseInferSyntax, index_parseInferredTypes as parseInferredTypes, index_useAllInferredTypes as useAllInferredTypes, index_useClearAllInferredTypes as useClearAllInferredTypes, index_useClearInferredType as useClearInferredType, index_useFieldPath as useFieldPath, index_useFieldValidation as useFieldValidation, index_useInferredType as useInferredType, index_useInferredTypes as useInferredTypes, index_useIsInNodePropertyProvider as useIsInNodePropertyProvider, index_useIsInTemplateFieldProvider as useIsInTemplateFieldProvider, index_useNodeProperties as useNodeProperties, index_useNodeProperty as useNodeProperty, index_useSetInferredType as useSetInferredType, index_useSetProperty as useSetProperty, index_useTemplateFieldContext as useTemplateFieldContext, index_useTriggerLayoutUpdate as useTriggerLayoutUpdate };
|
|
868
|
+
export { type index_BaseOperatorType as BaseOperatorType, index_Button as Button, type index_FieldValidationRule as FieldValidationRule, type index_FieldValue as FieldValue, type index_InferConfig as InferConfig, index_InferredTypesContext as InferredTypesContext, type index_InferredTypesContextValue as InferredTypesContextValue, index_InferredTypesProvider as InferredTypesProvider, type index_InferredTypesProviderProps as InferredTypesProviderProps, index_Input as Input, type index_InputProps as InputProps, index_NestedFieldProvider as NestedFieldProvider, type index_NestedFieldProviderProps as NestedFieldProviderProps, index_NodePropertyProvider as NodePropertyProvider, type index_NodePropertyProviderProps as NodePropertyProviderProps, index_OPERATORS_BY_TYPE as OPERATORS_BY_TYPE, type index_OperatorDef as OperatorDef, type index_ParsedTypes as ParsedTypes, type index_PropertyMetadata as PropertyMetadata, index_Select as Select, type index_SelectOption as SelectOption, type index_SelectProps as SelectProps, type index_SelectRenderProps as SelectRenderProps, type index_TemplateFieldChangeEvent as TemplateFieldChangeEvent, type index_TemplateFieldContextValue as TemplateFieldContextValue, type index_TemplateFieldFocusContext as TemplateFieldFocusContext, index_TemplateFieldProvider as TemplateFieldProvider, type index_TemplateFieldProviderProps as TemplateFieldProviderProps, type index_TemplateFieldValidationError as TemplateFieldValidationError, index_ToggleButton as ToggleButton, index_buttonVariants as buttonVariants, index_computeExtendedType as computeExtendedType, index_filterOperatorsByType as filterOperatorsByType, index_getNumberConstants as getNumberConstants, index_getOperatorsForType as getOperatorsForType, index_getStringConstants as getStringConstants, index_intersectTypes as intersectTypes, index_normalizeFieldValue as normalizeFieldValue, index_parseInferSyntax as parseInferSyntax, index_parseInferredTypes as parseInferredTypes, index_toggleButtonVariants as toggleButtonVariants, index_useAllInferredTypes as useAllInferredTypes, index_useClearAllInferredTypes as useClearAllInferredTypes, index_useClearInferredType as useClearInferredType, index_useClearValidationErrorsByPrefix as useClearValidationErrorsByPrefix, index_useFieldPath as useFieldPath, index_useFieldValidation as useFieldValidation, index_useFlowEditorActions as useFlowEditorActions, index_useInferredType as useInferredType, index_useInferredTypes as useInferredTypes, index_useIsInNodePropertyProvider as useIsInNodePropertyProvider, index_useIsInTemplateFieldProvider as useIsInTemplateFieldProvider, index_useNodeProperties as useNodeProperties, index_useNodeProperty as useNodeProperty, index_useSetFieldMetadataOnly as useSetFieldMetadataOnly, index_useSetInferredType as useSetInferredType, index_useSetProperty as useSetProperty, index_useTemplateFieldContext as useTemplateFieldContext, index_useTriggerLayoutUpdate as useTriggerLayoutUpdate };
|
|
774
869
|
}
|
|
775
870
|
|
|
776
|
-
export {
|
|
871
|
+
export { computeExtendedType as $, useNodeProperty as A, Button as B, useNodeProperties as C, useInferredType as D, useSetInferredType as E, useClearInferredType as F, useClearAllInferredTypes as G, useClearValidationErrorsByPrefix as H, type InferredTypesContextValue as I, useFlowEditorActions as J, useAllInferredTypes as K, useSetProperty as L, useTriggerLayoutUpdate as M, NestedFieldProvider as N, OPERATORS_BY_TYPE as O, type PropertyMetadata as P, type FieldValidationRule as Q, useFieldValidation as R, type FieldValue as S, ToggleButton as T, Input as U, type InputProps as V, Select as W, type SelectProps as X, type SelectOption as Y, type SelectRenderProps as Z, parseInferredTypes as _, type TemplateFieldContextValue as a, filterOperatorsByType as a0, getStringConstants as a1, getNumberConstants as a2, type BaseOperatorType as a3, type OperatorDef as a4, type ParsedTypes as a5, buttonVariants as b, useIsInTemplateFieldProvider as c, useFieldPath as d, TemplateFieldProvider as e, type TemplateFieldProviderProps as f, type NestedFieldProviderProps as g, type TemplateFieldValidationError as h, index as i, type TemplateFieldFocusContext as j, type TemplateFieldChangeEvent as k, InferredTypesContext as l, useInferredTypes as m, normalizeFieldValue as n, type InferredTypesProviderProps as o, InferredTypesProvider as p, intersectTypes as q, type InferConfig as r, parseInferSyntax as s, toggleButtonVariants as t, useTemplateFieldContext as u, getOperatorsForType as v, type NodePropertyProviderProps as w, NodePropertyProvider as x, useSetFieldMetadataOnly as y, useIsInNodePropertyProvider as z };
|