@process.co/ui 0.0.12 → 0.0.14

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.
@@ -90,6 +90,8 @@ interface SelectProps {
90
90
  placeholder?: string;
91
91
  /** Expected return type for validation */
92
92
  expectedType?: string;
93
+ /** Whether to hide the type badge */
94
+ hideTypeBadge?: boolean;
93
95
  /** Whether this is a required field */
94
96
  required?: boolean;
95
97
  /** Whether this field has a required property error (missing value) */
@@ -147,7 +149,7 @@ interface SelectRenderProps {
147
149
  * />
148
150
  * ```
149
151
  */
150
- declare function Select({ fieldName, label, value, onChange, options: rawOptions, disabled, placeholder, expectedType, required, hasRequiredError, className, children, }: SelectProps): React.JSX.Element;
152
+ declare function Select({ fieldName, label, value, onChange, options: rawOptions, disabled, placeholder, expectedType, hideTypeBadge, required, hasRequiredError, className, children, }: SelectProps): React.JSX.Element;
151
153
 
152
154
  /**
153
155
  * Shared Operator Type Definitions and Utilities
@@ -653,6 +655,36 @@ declare function useClearInferredType(): (fieldName: string) => void;
653
655
  * Returns a no-op when not inside any provider.
654
656
  */
655
657
  declare function useClearAllInferredTypes(): () => void;
658
+ /**
659
+ * Hook to get a function that clears validation errors by field name prefix.
660
+ *
661
+ * Used when dynamic fields (like switch cases/conditions) are removed to clean up
662
+ * any associated validation errors.
663
+ *
664
+ * In development mode (DevProvider), this is a no-op.
665
+ * In production, this clears errors matching the prefix from the validation store.
666
+ *
667
+ * @example
668
+ * ```tsx
669
+ * const clearErrorsByPrefix = useClearValidationErrorsByPrefix();
670
+ *
671
+ * const handleRemoveCase = (caseId: string) => {
672
+ * // Remove the case from state
673
+ * setCases(cases.filter(c => c.id !== caseId));
674
+ * // Clear any validation errors for fields in this case
675
+ * clearErrorsByPrefix(caseId);
676
+ * };
677
+ * ```
678
+ */
679
+ declare function useClearValidationErrorsByPrefix(): (fieldPrefix: string) => void;
680
+ /**
681
+ * Unified flow editor actions for custom controls (mock/dev).
682
+ */
683
+ declare function useFlowEditorActions(): {
684
+ triggerLayoutUpdate: () => void;
685
+ triggerValidation: () => void;
686
+ clearValidationErrorsByPrefix: (fieldPrefix: string) => void;
687
+ };
656
688
  /**
657
689
  * Hook to subscribe to all inferred types.
658
690
  *
@@ -755,8 +787,10 @@ declare const index_parseInferredTypes: typeof parseInferredTypes;
755
787
  declare const index_useAllInferredTypes: typeof useAllInferredTypes;
756
788
  declare const index_useClearAllInferredTypes: typeof useClearAllInferredTypes;
757
789
  declare const index_useClearInferredType: typeof useClearInferredType;
790
+ declare const index_useClearValidationErrorsByPrefix: typeof useClearValidationErrorsByPrefix;
758
791
  declare const index_useFieldPath: typeof useFieldPath;
759
792
  declare const index_useFieldValidation: typeof useFieldValidation;
793
+ declare const index_useFlowEditorActions: typeof useFlowEditorActions;
760
794
  declare const index_useInferredType: typeof useInferredType;
761
795
  declare const index_useInferredTypes: typeof useInferredTypes;
762
796
  declare const index_useIsInNodePropertyProvider: typeof useIsInNodePropertyProvider;
@@ -768,7 +802,7 @@ declare const index_useSetProperty: typeof useSetProperty;
768
802
  declare const index_useTemplateFieldContext: typeof useTemplateFieldContext;
769
803
  declare const index_useTriggerLayoutUpdate: typeof useTriggerLayoutUpdate;
770
804
  declare namespace index {
771
- 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 };
805
+ 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_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_useSetInferredType as useSetInferredType, index_useSetProperty as useSetProperty, index_useTemplateFieldContext as useTemplateFieldContext, index_useTriggerLayoutUpdate as useTriggerLayoutUpdate };
772
806
  }
773
807
 
774
- export { useClearAllInferredTypes as A, useAllInferredTypes as B, useSetProperty as C, useTriggerLayoutUpdate as D, useFieldValidation as E, type FieldValidationRule as F, Input as G, type InputProps as H, type InferredTypesContextValue as I, type SelectProps as J, type SelectOption as K, type SelectRenderProps as L, parseInferredTypes as M, NestedFieldProvider as N, OPERATORS_BY_TYPE as O, computeExtendedType as P, filterOperatorsByType as Q, getStringConstants as R, Select as S, type TemplateFieldContextValue as T, getNumberConstants as U, type BaseOperatorType as V, type OperatorDef as W, type ParsedTypes as X, useIsInTemplateFieldProvider as a, useFieldPath as b, TemplateFieldProvider as c, type TemplateFieldProviderProps as d, type NestedFieldProviderProps as e, type TemplateFieldValidationError as f, type TemplateFieldFocusContext as g, type TemplateFieldChangeEvent as h, index as i, InferredTypesContext as j, useInferredTypes as k, type InferredTypesProviderProps as l, InferredTypesProvider as m, intersectTypes as n, type InferConfig as o, parseInferSyntax as p, getOperatorsForType as q, type NodePropertyProviderProps as r, NodePropertyProvider as s, useIsInNodePropertyProvider as t, useTemplateFieldContext as u, useNodeProperty as v, useNodeProperties as w, useInferredType as x, useSetInferredType as y, useClearInferredType as z };
808
+ export { useClearAllInferredTypes as A, useClearValidationErrorsByPrefix as B, useFlowEditorActions as C, useAllInferredTypes as D, useSetProperty as E, useTriggerLayoutUpdate as F, type FieldValidationRule as G, useFieldValidation as H, type InferredTypesContextValue as I, Input as J, type InputProps as K, type SelectProps as L, type SelectOption as M, NestedFieldProvider as N, OPERATORS_BY_TYPE as O, type SelectRenderProps as P, parseInferredTypes as Q, computeExtendedType as R, Select as S, type TemplateFieldContextValue as T, filterOperatorsByType as U, getStringConstants as V, getNumberConstants as W, type BaseOperatorType as X, type OperatorDef as Y, type ParsedTypes as Z, useIsInTemplateFieldProvider as a, useFieldPath as b, TemplateFieldProvider as c, type TemplateFieldProviderProps as d, type NestedFieldProviderProps as e, type TemplateFieldValidationError as f, type TemplateFieldFocusContext as g, type TemplateFieldChangeEvent as h, index as i, InferredTypesContext as j, useInferredTypes as k, type InferredTypesProviderProps as l, InferredTypesProvider as m, intersectTypes as n, type InferConfig as o, parseInferSyntax as p, getOperatorsForType as q, type NodePropertyProviderProps as r, NodePropertyProvider as s, useIsInNodePropertyProvider as t, useTemplateFieldContext as u, useNodeProperty as v, useNodeProperties as w, useInferredType as x, useSetInferredType as y, useClearInferredType as z };
@@ -90,6 +90,8 @@ interface SelectProps {
90
90
  placeholder?: string;
91
91
  /** Expected return type for validation */
92
92
  expectedType?: string;
93
+ /** Whether to hide the type badge */
94
+ hideTypeBadge?: boolean;
93
95
  /** Whether this is a required field */
94
96
  required?: boolean;
95
97
  /** Whether this field has a required property error (missing value) */
@@ -147,7 +149,7 @@ interface SelectRenderProps {
147
149
  * />
148
150
  * ```
149
151
  */
150
- declare function Select({ fieldName, label, value, onChange, options: rawOptions, disabled, placeholder, expectedType, required, hasRequiredError, className, children, }: SelectProps): React.JSX.Element;
152
+ declare function Select({ fieldName, label, value, onChange, options: rawOptions, disabled, placeholder, expectedType, hideTypeBadge, required, hasRequiredError, className, children, }: SelectProps): React.JSX.Element;
151
153
 
152
154
  /**
153
155
  * Shared Operator Type Definitions and Utilities
@@ -653,6 +655,36 @@ declare function useClearInferredType(): (fieldName: string) => void;
653
655
  * Returns a no-op when not inside any provider.
654
656
  */
655
657
  declare function useClearAllInferredTypes(): () => void;
658
+ /**
659
+ * Hook to get a function that clears validation errors by field name prefix.
660
+ *
661
+ * Used when dynamic fields (like switch cases/conditions) are removed to clean up
662
+ * any associated validation errors.
663
+ *
664
+ * In development mode (DevProvider), this is a no-op.
665
+ * In production, this clears errors matching the prefix from the validation store.
666
+ *
667
+ * @example
668
+ * ```tsx
669
+ * const clearErrorsByPrefix = useClearValidationErrorsByPrefix();
670
+ *
671
+ * const handleRemoveCase = (caseId: string) => {
672
+ * // Remove the case from state
673
+ * setCases(cases.filter(c => c.id !== caseId));
674
+ * // Clear any validation errors for fields in this case
675
+ * clearErrorsByPrefix(caseId);
676
+ * };
677
+ * ```
678
+ */
679
+ declare function useClearValidationErrorsByPrefix(): (fieldPrefix: string) => void;
680
+ /**
681
+ * Unified flow editor actions for custom controls (mock/dev).
682
+ */
683
+ declare function useFlowEditorActions(): {
684
+ triggerLayoutUpdate: () => void;
685
+ triggerValidation: () => void;
686
+ clearValidationErrorsByPrefix: (fieldPrefix: string) => void;
687
+ };
656
688
  /**
657
689
  * Hook to subscribe to all inferred types.
658
690
  *
@@ -755,8 +787,10 @@ declare const index_parseInferredTypes: typeof parseInferredTypes;
755
787
  declare const index_useAllInferredTypes: typeof useAllInferredTypes;
756
788
  declare const index_useClearAllInferredTypes: typeof useClearAllInferredTypes;
757
789
  declare const index_useClearInferredType: typeof useClearInferredType;
790
+ declare const index_useClearValidationErrorsByPrefix: typeof useClearValidationErrorsByPrefix;
758
791
  declare const index_useFieldPath: typeof useFieldPath;
759
792
  declare const index_useFieldValidation: typeof useFieldValidation;
793
+ declare const index_useFlowEditorActions: typeof useFlowEditorActions;
760
794
  declare const index_useInferredType: typeof useInferredType;
761
795
  declare const index_useInferredTypes: typeof useInferredTypes;
762
796
  declare const index_useIsInNodePropertyProvider: typeof useIsInNodePropertyProvider;
@@ -768,7 +802,7 @@ declare const index_useSetProperty: typeof useSetProperty;
768
802
  declare const index_useTemplateFieldContext: typeof useTemplateFieldContext;
769
803
  declare const index_useTriggerLayoutUpdate: typeof useTriggerLayoutUpdate;
770
804
  declare namespace index {
771
- 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 };
805
+ 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_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_useSetInferredType as useSetInferredType, index_useSetProperty as useSetProperty, index_useTemplateFieldContext as useTemplateFieldContext, index_useTriggerLayoutUpdate as useTriggerLayoutUpdate };
772
806
  }
773
807
 
774
- export { useClearAllInferredTypes as A, useAllInferredTypes as B, useSetProperty as C, useTriggerLayoutUpdate as D, useFieldValidation as E, type FieldValidationRule as F, Input as G, type InputProps as H, type InferredTypesContextValue as I, type SelectProps as J, type SelectOption as K, type SelectRenderProps as L, parseInferredTypes as M, NestedFieldProvider as N, OPERATORS_BY_TYPE as O, computeExtendedType as P, filterOperatorsByType as Q, getStringConstants as R, Select as S, type TemplateFieldContextValue as T, getNumberConstants as U, type BaseOperatorType as V, type OperatorDef as W, type ParsedTypes as X, useIsInTemplateFieldProvider as a, useFieldPath as b, TemplateFieldProvider as c, type TemplateFieldProviderProps as d, type NestedFieldProviderProps as e, type TemplateFieldValidationError as f, type TemplateFieldFocusContext as g, type TemplateFieldChangeEvent as h, index as i, InferredTypesContext as j, useInferredTypes as k, type InferredTypesProviderProps as l, InferredTypesProvider as m, intersectTypes as n, type InferConfig as o, parseInferSyntax as p, getOperatorsForType as q, type NodePropertyProviderProps as r, NodePropertyProvider as s, useIsInNodePropertyProvider as t, useTemplateFieldContext as u, useNodeProperty as v, useNodeProperties as w, useInferredType as x, useSetInferredType as y, useClearInferredType as z };
808
+ export { useClearAllInferredTypes as A, useClearValidationErrorsByPrefix as B, useFlowEditorActions as C, useAllInferredTypes as D, useSetProperty as E, useTriggerLayoutUpdate as F, type FieldValidationRule as G, useFieldValidation as H, type InferredTypesContextValue as I, Input as J, type InputProps as K, type SelectProps as L, type SelectOption as M, NestedFieldProvider as N, OPERATORS_BY_TYPE as O, type SelectRenderProps as P, parseInferredTypes as Q, computeExtendedType as R, Select as S, type TemplateFieldContextValue as T, filterOperatorsByType as U, getStringConstants as V, getNumberConstants as W, type BaseOperatorType as X, type OperatorDef as Y, type ParsedTypes as Z, useIsInTemplateFieldProvider as a, useFieldPath as b, TemplateFieldProvider as c, type TemplateFieldProviderProps as d, type NestedFieldProviderProps as e, type TemplateFieldValidationError as f, type TemplateFieldFocusContext as g, type TemplateFieldChangeEvent as h, index as i, InferredTypesContext as j, useInferredTypes as k, type InferredTypesProviderProps as l, InferredTypesProvider as m, intersectTypes as n, type InferConfig as o, parseInferSyntax as p, getOperatorsForType as q, type NodePropertyProviderProps as r, NodePropertyProvider as s, useIsInNodePropertyProvider as t, useTemplateFieldContext as u, useNodeProperty as v, useNodeProperties as w, useInferredType as x, useSetInferredType as y, useClearInferredType as z };
package/dist/index.cjs CHANGED
@@ -5157,12 +5157,18 @@ __export(fields_exports, {
5157
5157
  useClearInferredType: function() {
5158
5158
  return useClearInferredType;
5159
5159
  },
5160
+ useClearValidationErrorsByPrefix: function() {
5161
+ return useClearValidationErrorsByPrefix;
5162
+ },
5160
5163
  useFieldPath: function() {
5161
5164
  return useFieldPath;
5162
5165
  },
5163
5166
  useFieldValidation: function() {
5164
5167
  return useFieldValidation;
5165
5168
  },
5169
+ useFlowEditorActions: function() {
5170
+ return useFlowEditorActions;
5171
+ },
5166
5172
  useInferredType: function() {
5167
5173
  return useInferredType;
5168
5174
  },
@@ -5419,7 +5425,7 @@ function useResolvedExpectedType2(expectedType, devCtx) {
5419
5425
  ]);
5420
5426
  }
5421
5427
  function Select2(param) {
5422
- var fieldName = param.fieldName, label = param.label, value = param.value, onChange = param.onChange, rawOptions = param.options, _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, placeholder = param.placeholder, _param_expectedType = param.expectedType, expectedType = _param_expectedType === void 0 ? "string" : _param_expectedType, _param_required = param.required, required = _param_required === void 0 ? false : _param_required, _param_hasRequiredError = param.hasRequiredError, hasRequiredError = _param_hasRequiredError === void 0 ? false : _param_hasRequiredError, className = param.className, children = param.children;
5428
+ var fieldName = param.fieldName, label = param.label, value = param.value, onChange = param.onChange, rawOptions = param.options, _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, placeholder = param.placeholder, _param_expectedType = param.expectedType, expectedType = _param_expectedType === void 0 ? "string" : _param_expectedType, _param_hideTypeBadge = param.hideTypeBadge, hideTypeBadge = _param_hideTypeBadge === void 0 ? false : _param_hideTypeBadge, _param_required = param.required, required = _param_required === void 0 ? false : _param_required, _param_hasRequiredError = param.hasRequiredError, hasRequiredError = _param_hasRequiredError === void 0 ? false : _param_hasRequiredError, className = param.className, children = param.children;
5423
5429
  var devCtx = React2.useContext(DevContext);
5424
5430
  var resolvedExpectedType = useResolvedExpectedType2(expectedType, devCtx);
5425
5431
  var _React2__namespace_useState = _sliced_to_array(React2__namespace.useState(false), 2), isExpressionMode = _React2__namespace_useState[0], setIsExpressionMode = _React2__namespace_useState[1];
@@ -6037,6 +6043,23 @@ function useClearAllInferredTypes() {
6037
6043
  devContext
6038
6044
  ]);
6039
6045
  }
6046
+ function useClearValidationErrorsByPrefix() {
6047
+ return React2.useCallback(function(fieldPrefix) {
6048
+ console.log('[useClearValidationErrorsByPrefix] Dev mode - clearing errors with prefix "'.concat(fieldPrefix, '" is a no-op'));
6049
+ }, []);
6050
+ }
6051
+ function useFlowEditorActions() {
6052
+ var clearValidationErrorsByPrefix = useClearValidationErrorsByPrefix();
6053
+ return {
6054
+ triggerLayoutUpdate: function() {
6055
+ console.log("[useFlowEditorActions] Dev mode - triggerLayoutUpdate is a no-op");
6056
+ },
6057
+ triggerValidation: function() {
6058
+ console.log("[useFlowEditorActions] Dev mode - triggerValidation is a no-op");
6059
+ },
6060
+ clearValidationErrorsByPrefix: clearValidationErrorsByPrefix
6061
+ };
6062
+ }
6040
6063
  function useAllInferredTypes() {
6041
6064
  var devContext = React2.useContext(DevContext);
6042
6065
  var _React2_useState = _sliced_to_array(React2.useState(function() {