@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.
package/dist/index.d.cts CHANGED
@@ -2,7 +2,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
2
2
  import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
5
- export { i as fields } from './index-ep9HbrZE.cjs';
5
+ export { i as fields } from './index-pApzdjfp.cjs';
6
6
 
7
7
  declare const buttonVariants: (props?: ({
8
8
  variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
2
2
  import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
5
- export { i as fields } from './index-ep9HbrZE.js';
5
+ export { i as fields } from './index-pApzdjfp.js';
6
6
 
7
7
  declare const buttonVariants: (props?: ({
8
8
  variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
package/dist/index.js CHANGED
@@ -5135,12 +5135,18 @@ __export(fields_exports, {
5135
5135
  useClearInferredType: function() {
5136
5136
  return useClearInferredType;
5137
5137
  },
5138
+ useClearValidationErrorsByPrefix: function() {
5139
+ return useClearValidationErrorsByPrefix;
5140
+ },
5138
5141
  useFieldPath: function() {
5139
5142
  return useFieldPath;
5140
5143
  },
5141
5144
  useFieldValidation: function() {
5142
5145
  return useFieldValidation;
5143
5146
  },
5147
+ useFlowEditorActions: function() {
5148
+ return useFlowEditorActions;
5149
+ },
5144
5150
  useInferredType: function() {
5145
5151
  return useInferredType;
5146
5152
  },
@@ -5397,7 +5403,7 @@ function useResolvedExpectedType2(expectedType, devCtx) {
5397
5403
  ]);
5398
5404
  }
5399
5405
  function Select2(param) {
5400
- 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;
5406
+ 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;
5401
5407
  var devCtx = useContext(DevContext);
5402
5408
  var resolvedExpectedType = useResolvedExpectedType2(expectedType, devCtx);
5403
5409
  var _React2_useState = _sliced_to_array(React2.useState(false), 2), isExpressionMode = _React2_useState[0], setIsExpressionMode = _React2_useState[1];
@@ -6015,6 +6021,23 @@ function useClearAllInferredTypes() {
6015
6021
  devContext
6016
6022
  ]);
6017
6023
  }
6024
+ function useClearValidationErrorsByPrefix() {
6025
+ return useCallback(function(fieldPrefix) {
6026
+ console.log('[useClearValidationErrorsByPrefix] Dev mode - clearing errors with prefix "'.concat(fieldPrefix, '" is a no-op'));
6027
+ }, []);
6028
+ }
6029
+ function useFlowEditorActions() {
6030
+ var clearValidationErrorsByPrefix = useClearValidationErrorsByPrefix();
6031
+ return {
6032
+ triggerLayoutUpdate: function() {
6033
+ console.log("[useFlowEditorActions] Dev mode - triggerLayoutUpdate is a no-op");
6034
+ },
6035
+ triggerValidation: function() {
6036
+ console.log("[useFlowEditorActions] Dev mode - triggerValidation is a no-op");
6037
+ },
6038
+ clearValidationErrorsByPrefix: clearValidationErrorsByPrefix
6039
+ };
6040
+ }
6018
6041
  function useAllInferredTypes() {
6019
6042
  var devContext = useContext(DevContext);
6020
6043
  var _useState = _sliced_to_array(useState(function() {