@process.co/ui 0.0.11 → 0.0.12

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-B-kAG1RW.cjs';
5
+ export { i as fields } from './index-ep9HbrZE.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-B-kAG1RW.js';
5
+ export { i as fields } from './index-ep9HbrZE.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
@@ -5167,6 +5167,9 @@ __export(fields_exports, {
5167
5167
  },
5168
5168
  useTemplateFieldContext: function() {
5169
5169
  return useTemplateFieldContext;
5170
+ },
5171
+ useTriggerLayoutUpdate: function() {
5172
+ return useTriggerLayoutUpdate;
5170
5173
  }
5171
5174
  });
5172
5175
  var DevContext = createContext(null);
@@ -6043,6 +6046,18 @@ function useSetProperty() {
6043
6046
  devContext
6044
6047
  ]);
6045
6048
  }
6049
+ function useTriggerLayoutUpdate() {
6050
+ var devContext = useContext(DevContext);
6051
+ return useCallback(function() {
6052
+ if (devContext) {
6053
+ console.log("[useTriggerLayoutUpdate] Dev mode - layout update is a no-op");
6054
+ } else {
6055
+ console.warn("[useTriggerLayoutUpdate] No provider - layout update ignored");
6056
+ }
6057
+ }, [
6058
+ devContext
6059
+ ]);
6060
+ }
6046
6061
  function useFieldValidation() {
6047
6062
  var setFieldRequired = useCallback(function(fieldName, required) {
6048
6063
  console.warn('[useFieldValidation] Mock mode - cannot set required for "'.concat(fieldName, '"'));