@fuf-stack/uniform 1.26.0 → 1.27.0

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 (92) hide show
  1. package/dist/Checkboxes/index.d.mts +8 -8
  2. package/dist/Checkboxes/index.d.mts.map +1 -1
  3. package/dist/Checkboxes/index.mjs +2 -1
  4. package/dist/Checkboxes/index.mjs.map +1 -1
  5. package/dist/DatePicker/index.d.mts +19 -19
  6. package/dist/DatePicker/index.d.mts.map +1 -1
  7. package/dist/DatePicker/index.mjs +2 -1
  8. package/dist/DatePicker/index.mjs.map +1 -1
  9. package/dist/FieldArray/index.d.mts +10 -10
  10. package/dist/FieldArray/index.d.mts.map +1 -1
  11. package/dist/FieldArray/index.mjs +3 -5
  12. package/dist/FieldArray/index.mjs.map +1 -1
  13. package/dist/FieldCard/index.d.mts +8 -8
  14. package/dist/FieldCard/index.d.mts.map +1 -1
  15. package/dist/FieldCard/index.mjs +5 -3
  16. package/dist/FieldCard/index.mjs.map +1 -1
  17. package/dist/FieldCopyTestIdButton-CRJBix9D.mjs.map +1 -1
  18. package/dist/Form/index.d.mts +13 -13
  19. package/dist/Form/index.d.mts.map +1 -1
  20. package/dist/Form/index.mjs +5 -3
  21. package/dist/Form/index.mjs.map +1 -1
  22. package/dist/Input/index.d.mts +17 -17
  23. package/dist/Input/index.mjs +2 -1
  24. package/dist/Input/index.mjs.map +1 -1
  25. package/dist/RadioBoxes/index.d.mts +23 -23
  26. package/dist/RadioBoxes/index.d.mts.map +1 -1
  27. package/dist/RadioBoxes/index.mjs +5 -3
  28. package/dist/RadioBoxes/index.mjs.map +1 -1
  29. package/dist/RadioTabs/index.d.mts +8 -8
  30. package/dist/RadioTabs/index.d.mts.map +1 -1
  31. package/dist/RadioTabs/index.mjs +3 -2
  32. package/dist/RadioTabs/index.mjs.map +1 -1
  33. package/dist/Radios/index.d.mts +13 -13
  34. package/dist/Radios/index.d.mts.map +1 -1
  35. package/dist/Radios/index.mjs +2 -1
  36. package/dist/Radios/index.mjs.map +1 -1
  37. package/dist/Select/index.d.mts +25 -25
  38. package/dist/Select/index.d.mts.map +1 -1
  39. package/dist/Select/index.mjs +5 -3
  40. package/dist/Select/index.mjs.map +1 -1
  41. package/dist/Slider/index.d.mts +47 -44
  42. package/dist/Slider/index.d.mts.map +1 -1
  43. package/dist/Slider/index.mjs +16 -6
  44. package/dist/Slider/index.mjs.map +1 -1
  45. package/dist/Switch/index.d.mts +31 -31
  46. package/dist/Switch/index.d.mts.map +1 -1
  47. package/dist/Switch/index.mjs +2 -1
  48. package/dist/Switch/index.mjs.map +1 -1
  49. package/dist/SwitchBox/index.d.mts +16 -16
  50. package/dist/SwitchBox/index.d.mts.map +1 -1
  51. package/dist/SwitchBox/index.mjs +3 -2
  52. package/dist/SwitchBox/index.mjs.map +1 -1
  53. package/dist/TextArea/index.d.mts +17 -17
  54. package/dist/TextArea/index.mjs +2 -1
  55. package/dist/TextArea/index.mjs.map +1 -1
  56. package/dist/Time/index.d.mts +19 -19
  57. package/dist/Time/index.d.mts.map +1 -1
  58. package/dist/Time/index.mjs +8 -3
  59. package/dist/Time/index.mjs.map +1 -1
  60. package/dist/helpers/index.d.mts +10 -11
  61. package/dist/helpers/index.d.mts.map +1 -1
  62. package/dist/hooks/useClientValidation/index.d.mts +2 -3
  63. package/dist/hooks/useClientValidation/index.d.mts.map +1 -1
  64. package/dist/hooks/useClientValidation/index.mjs +3 -2
  65. package/dist/hooks/useClientValidation/index.mjs.map +1 -1
  66. package/dist/hooks/useFormContext/index.d.mts +2 -2
  67. package/dist/hooks/useFormContext/index.mjs +1 -1
  68. package/dist/hooks/useInputValueDebounce/index.d.mts +3 -4
  69. package/dist/hooks/useInputValueDebounce/index.d.mts.map +1 -1
  70. package/dist/hooks/useInputValueDebounce/index.mjs +6 -4
  71. package/dist/hooks/useInputValueDebounce/index.mjs.map +1 -1
  72. package/dist/hooks/useUniformField/index.d.mts +4 -5
  73. package/dist/hooks/useUniformField/index.d.mts.map +1 -1
  74. package/dist/hooks/useUniformField/index.mjs +3 -2
  75. package/dist/hooks/useUniformField/index.mjs.map +1 -1
  76. package/dist/hooks/useUniformFieldArray/index.d.mts +4 -5
  77. package/dist/hooks/useUniformFieldArray/index.d.mts.map +1 -1
  78. package/dist/hooks/useUniformFieldArray/index.mjs +1 -1
  79. package/dist/hooks/useWatchFormReset/index.d.mts +2 -3
  80. package/dist/hooks/useWatchFormReset/index.d.mts.map +1 -1
  81. package/dist/hooks/useWatchFormReset/index.mjs +1 -1
  82. package/dist/hooks/useWatchUserChange/index.d.mts +2 -3
  83. package/dist/hooks/useWatchUserChange/index.d.mts.map +1 -1
  84. package/dist/hooks/useWatchUserChange/index.mjs +25 -13
  85. package/dist/hooks/useWatchUserChange/index.mjs.map +1 -1
  86. package/dist/index-D5HVU2jP.d.mts +1 -0
  87. package/dist/{useFormContext-BegmYvGA.d.mts → useFormContext-B3QGVVaO.d.mts} +3 -3
  88. package/dist/{useFormContext-BegmYvGA.d.mts.map → useFormContext-B3QGVVaO.d.mts.map} +1 -1
  89. package/dist/{useFormContext-Bw4LokAf.mjs → useFormContext-fYWtlnpE.mjs} +5 -3
  90. package/dist/{useFormContext-Bw4LokAf.mjs.map → useFormContext-fYWtlnpE.mjs.map} +1 -1
  91. package/package.json +9 -9
  92. package/dist/index-CwJo1b4Z.d.mts +0 -1
@@ -1,6 +1,6 @@
1
1
  import { FieldValues, Path, UseFormReset, UseFormResetField, UseFormSetValue } from "react-hook-form";
2
2
  //#region src/hooks/useWatchUserChange/useWatchUserChange.d.ts
3
- interface UseWatchUserChangeOptions<TFieldValues extends FieldValues> {
3
+ export interface UseWatchUserChangeOptions<TFieldValues extends FieldValues> {
4
4
  /** Field name to watch for user changes */
5
5
  watch: Path<TFieldValues>;
6
6
  /**
@@ -70,7 +70,6 @@ interface UseWatchUserChangeOptions<TFieldValues extends FieldValues> {
70
70
  * });
71
71
  * ```
72
72
  */
73
- declare const useWatchUserChange: <TFieldValues extends FieldValues = FieldValues>({ watch: watchField, onChange }: UseWatchUserChangeOptions<TFieldValues>) => void;
73
+ export declare const useWatchUserChange: <TFieldValues extends FieldValues = FieldValues>({ watch: watchField, onChange }: UseWatchUserChangeOptions<TFieldValues>) => void;
74
74
  //#endregion
75
- export { UseWatchUserChangeOptions, useWatchUserChange };
76
75
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../../../src/hooks/useWatchUserChange/useWatchUserChange.ts"],"mappings":";;UAYiB,0BAA0B,qBAAqB;;EAE9D,OAAO,KAAK;;;;;EAKZ,WACE,gBACA;IACE,UAAU,gBAAgB;IAC1B,YAAY,kBAAkB;IAC9B,OAAO,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA8Db,qBACX,qBAAqB,cAAc,eACnC,OAAA,YAAA,YAGC,0BAA0B"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../../../src/hooks/useWatchUserChange/useWatchUserChange.ts"],"mappings":";;iBAYiB,0BAA0B,qBAAqB;;EAE9D,OAAO,KAAK;;;;;EAKZ,WACE,gBACA;IACE,UAAU,gBAAgB;IAC1B,YAAY,kBAAkB;IAC9B,OAAO,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA8Db,qBACX,qBAAqB,cAAc,eACnC,OAAA,YAAA,YAGC,0BAA0B"}
@@ -1,5 +1,5 @@
1
- import { n as useFormContext } from "../../useFormContext-Bw4LokAf.mjs";
2
- import { useEffect } from "react";
1
+ import { n as useFormContext } from "../../useFormContext-fYWtlnpE.mjs";
2
+ import { useEffect, useRef } from "react";
3
3
  //#region src/hooks/useWatchUserChange/useWatchUserChange.ts
4
4
  /**
5
5
  * Hook that watches for user changes on a specific form field.
@@ -60,23 +60,35 @@ import { useEffect } from "react";
60
60
  */
61
61
  const useWatchUserChange = ({ watch: watchField, onChange }) => {
62
62
  const { setValue, resetField, reset, userChange } = useFormContext();
63
+ const callbackRef = useRef({
64
+ onChange,
65
+ reset,
66
+ resetField,
67
+ setValue
68
+ });
63
69
  useEffect(() => {
64
- const listener = (fieldName, value) => {
65
- if (fieldName === watchField) onChange(value, {
66
- setValue,
67
- resetField,
68
- reset
69
- });
70
+ callbackRef.current = {
71
+ onChange,
72
+ reset,
73
+ resetField,
74
+ setValue
70
75
  };
71
- return userChange.subscribe(listener);
72
76
  }, [
73
- watchField,
74
77
  onChange,
75
- setValue,
76
- resetField,
77
78
  reset,
78
- userChange
79
+ resetField,
80
+ setValue
79
81
  ]);
82
+ const { subscribe } = userChange;
83
+ useEffect(() => {
84
+ const listener = (fieldName, value) => {
85
+ if (fieldName === watchField) {
86
+ const { onChange: callback, ...helpers } = callbackRef.current;
87
+ callback(value, helpers);
88
+ }
89
+ };
90
+ return subscribe(listener);
91
+ }, [subscribe, watchField]);
80
92
  };
81
93
  //#endregion
82
94
  //#region src/hooks/useWatchUserChange/index.ts
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../../src/hooks/useWatchUserChange/useWatchUserChange.ts","../../../src/hooks/useWatchUserChange/index.ts"],"sourcesContent":["import type {\n FieldValues,\n Path,\n UseFormReset,\n UseFormResetField,\n UseFormSetValue,\n} from 'react-hook-form';\n\nimport { useEffect } from 'react';\n\nimport { useFormContext } from '../useFormContext/useFormContext';\n\nexport interface UseWatchUserChangeOptions<TFieldValues extends FieldValues> {\n /** Field name to watch for user changes */\n watch: Path<TFieldValues>;\n /**\n * Callback when watched field is changed by user input.\n * Receives the new value and form helpers (setValue, resetField, reset).\n */\n onChange: (\n value: unknown,\n helpers: {\n setValue: UseFormSetValue<TFieldValues>;\n resetField: UseFormResetField<TFieldValues>;\n reset: UseFormReset<TFieldValues>;\n },\n ) => void;\n}\n\n/**\n * Hook that watches for user changes on a specific form field.\n *\n * Only triggers on manual user input (typing, clicking, selecting),\n * NOT on programmatic changes like form.reset() or form.setValue().\n * Also does NOT trigger when selecting the same value (e.g., clicking\n * an already-selected option in a Select).\n *\n * This hook subscribes to field changes at the source (useController),\n * ensuring immediate and accurate detection of user interactions.\n *\n * Use cases:\n * - Reset dependent fields when parent field changes\n * - Set mode-specific default values when a toggle changes\n * - Clear form sections based on user selections\n * - Trigger side effects only on user interaction\n *\n * Note: To watch multiple fields, call this hook multiple times.\n *\n * @example\n * ```tsx\n * // Reset city and address when user changes country\n * useWatchUserChange({\n * watch: 'country',\n * onChange: (value, { resetField }) => {\n * resetField('city');\n * resetField('address');\n * },\n * });\n *\n * // Set defaults when user changes payment method\n * useWatchUserChange({\n * watch: 'paymentMethod',\n * onChange: (value, { setValue }) => {\n * if (value === 'credit') {\n * setValue('installments', 3);\n * } else {\n * setValue('installments', 1);\n * }\n * },\n * });\n *\n * // Watch multiple fields by calling the hook multiple times\n * useWatchUserChange({\n * watch: 'category',\n * onChange: (value, { resetField }) => {\n * resetField('productId');\n * },\n * });\n * useWatchUserChange({\n * watch: 'brand',\n * onChange: (value, { resetField }) => {\n * resetField('productId');\n * },\n * });\n * ```\n */\nexport const useWatchUserChange = <\n TFieldValues extends FieldValues = FieldValues,\n>({\n watch: watchField,\n onChange,\n}: UseWatchUserChangeOptions<TFieldValues>) => {\n const { setValue, resetField, reset, userChange } =\n useFormContext<TFieldValues>();\n\n useEffect(() => {\n // Create listener that checks if changed field is the one we're watching\n const listener = (fieldName: Path<TFieldValues>, value: unknown) => {\n // Check if this is the field we're watching\n if (fieldName === watchField) {\n // Call the onChange callback with helpers\n onChange(value, { setValue, resetField, reset });\n }\n };\n\n // Subscribe to user changes\n const unsubscribe = userChange.subscribe(listener);\n\n // Cleanup on unmount\n return unsubscribe;\n }, [watchField, onChange, setValue, resetField, reset, userChange]);\n};\n","/* v8 ignore start */\n\nexport * from './useWatchUserChange';\n\n/* v8 ignore stop */\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFA,MAAa,sBAEX,EACA,OAAO,YACP,eAC6C;CAC7C,MAAM,EAAE,UAAU,YAAY,OAAO,eACnC,eAA6B;CAE/B,gBAAgB;EAEd,MAAM,YAAY,WAA+B,UAAmB;GAElE,IAAI,cAAc,YAEhB,SAAS,OAAO;IAAE;IAAU;IAAY;GAAM,CAAC;EAEnD;EAMA,OAHoB,WAAW,UAAU,QAGxB;CACnB,GAAG;EAAC;EAAY;EAAU;EAAU;EAAY;EAAO;CAAU,CAAC;AACpE"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../src/hooks/useWatchUserChange/useWatchUserChange.ts","../../../src/hooks/useWatchUserChange/index.ts"],"sourcesContent":["import type {\n FieldValues,\n Path,\n UseFormReset,\n UseFormResetField,\n UseFormSetValue,\n} from 'react-hook-form';\n\nimport { useEffect, useRef } from 'react';\n\nimport { useFormContext } from '../useFormContext/useFormContext';\n\nexport interface UseWatchUserChangeOptions<TFieldValues extends FieldValues> {\n /** Field name to watch for user changes */\n watch: Path<TFieldValues>;\n /**\n * Callback when watched field is changed by user input.\n * Receives the new value and form helpers (setValue, resetField, reset).\n */\n onChange: (\n value: unknown,\n helpers: {\n setValue: UseFormSetValue<TFieldValues>;\n resetField: UseFormResetField<TFieldValues>;\n reset: UseFormReset<TFieldValues>;\n },\n ) => void;\n}\n\n/**\n * Hook that watches for user changes on a specific form field.\n *\n * Only triggers on manual user input (typing, clicking, selecting),\n * NOT on programmatic changes like form.reset() or form.setValue().\n * Also does NOT trigger when selecting the same value (e.g., clicking\n * an already-selected option in a Select).\n *\n * This hook subscribes to field changes at the source (useController),\n * ensuring immediate and accurate detection of user interactions.\n *\n * Use cases:\n * - Reset dependent fields when parent field changes\n * - Set mode-specific default values when a toggle changes\n * - Clear form sections based on user selections\n * - Trigger side effects only on user interaction\n *\n * Note: To watch multiple fields, call this hook multiple times.\n *\n * @example\n * ```tsx\n * // Reset city and address when user changes country\n * useWatchUserChange({\n * watch: 'country',\n * onChange: (value, { resetField }) => {\n * resetField('city');\n * resetField('address');\n * },\n * });\n *\n * // Set defaults when user changes payment method\n * useWatchUserChange({\n * watch: 'paymentMethod',\n * onChange: (value, { setValue }) => {\n * if (value === 'credit') {\n * setValue('installments', 3);\n * } else {\n * setValue('installments', 1);\n * }\n * },\n * });\n *\n * // Watch multiple fields by calling the hook multiple times\n * useWatchUserChange({\n * watch: 'category',\n * onChange: (value, { resetField }) => {\n * resetField('productId');\n * },\n * });\n * useWatchUserChange({\n * watch: 'brand',\n * onChange: (value, { resetField }) => {\n * resetField('productId');\n * },\n * });\n * ```\n */\nexport const useWatchUserChange = <\n TFieldValues extends FieldValues = FieldValues,\n>({\n watch: watchField,\n onChange,\n}: UseWatchUserChangeOptions<TFieldValues>) => {\n const { setValue, resetField, reset, userChange } =\n useFormContext<TFieldValues>();\n\n // Callers commonly pass an inline callback, and useFormContext may return new\n // helper wrappers after a form render. Keep their latest values in a ref so\n // those identity changes do not tear down and recreate the subscription.\n const callbackRef = useRef({ onChange, reset, resetField, setValue });\n\n useEffect(() => {\n callbackRef.current = { onChange, reset, resetField, setValue };\n }, [onChange, reset, resetField, setValue]);\n\n // The subscribe function is stable even when the surrounding userChange\n // object is reconstructed. Depending on it directly keeps one active listener.\n const { subscribe } = userChange;\n\n useEffect(() => {\n // Create listener that checks if changed field is the one we're watching\n const listener = (fieldName: Path<TFieldValues>, value: unknown) => {\n // Check if this is the field we're watching\n if (fieldName === watchField) {\n // Read at notification time so the stable listener never closes over a\n // stale callback or stale form helpers.\n const { onChange: callback, ...helpers } = callbackRef.current;\n callback(value, helpers);\n }\n };\n\n // Subscribe to user changes\n const unsubscribe = subscribe(listener);\n\n // Cleanup on unmount\n return unsubscribe;\n }, [subscribe, watchField]);\n};\n","/* v8 ignore start */\n\nexport * from './useWatchUserChange';\n\n/* v8 ignore stop */\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFA,MAAa,sBAEX,EACA,OAAO,YACP,eAC6C;CAC7C,MAAM,EAAE,UAAU,YAAY,OAAO,eACnC,eAA6B;CAK/B,MAAM,cAAc,OAAO;EAAE;EAAU;EAAO;EAAY;CAAS,CAAC;CAEpE,gBAAgB;EACd,YAAY,UAAU;GAAE;GAAU;GAAO;GAAY;EAAS;CAChE,GAAG;EAAC;EAAU;EAAO;EAAY;CAAQ,CAAC;CAI1C,MAAM,EAAE,cAAc;CAEtB,gBAAgB;EAEd,MAAM,YAAY,WAA+B,UAAmB;GAElE,IAAI,cAAc,YAAY;IAG5B,MAAM,EAAE,UAAU,UAAU,GAAG,YAAY,YAAY;IACvD,SAAS,OAAO,OAAO;GACzB;EACF;EAMA,OAHoB,UAAU,QAGb;CACnB,GAAG,CAAC,WAAW,UAAU,CAAC;AAC5B"}
@@ -0,0 +1 @@
1
+ import "./useFormContext-B3QGVVaO.mjs";
@@ -29,14 +29,14 @@ declare const useFormContext$1: <TFieldValues extends FieldValues = FieldValues,
29
29
  reset: import("react-hook-form").UseFormReset<TFieldValues>;
30
30
  subscribe: import("react-hook-form").UseFormSubscribe<TFieldValues>;
31
31
  watch: import("react-hook-form").UseFormWatch<TFieldValues>;
32
- debugMode: "debug" | "debug-testids" | "off" | "disabled";
32
+ debugMode: "disabled" | "debug" | "debug-testids" | "off";
33
33
  debugModeSettings?: DebugModeSettings;
34
34
  formReset: {
35
35
  subscribe: (listener: FormResetListener) => () => void;
36
36
  notify: () => void;
37
37
  };
38
38
  preventSubmit: (prevent: boolean) => void;
39
- setDebugMode: (debugMode: "debug" | "debug-testids" | "off" | "disabled") => void;
39
+ setDebugMode: (debugMode: "disabled" | "debug" | "debug-testids" | "off") => void;
40
40
  triggerSubmit: (e?: import("react").BaseSyntheticEvent) => Promise<void> | void;
41
41
  userChange: {
42
42
  subscribe: (listener: UserChangeListener) => () => void;
@@ -63,4 +63,4 @@ declare const useFormContext$1: <TFieldValues extends FieldValues = FieldValues,
63
63
  };
64
64
  //#endregion
65
65
  export { useFormContext$1 as n, checkFieldIsRequired as t };
66
- //# sourceMappingURL=useFormContext-BegmYvGA.d.mts.map
66
+ //# sourceMappingURL=useFormContext-B3QGVVaO.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFormContext-BegmYvGA.d.mts","names":[],"sources":["../src/hooks/useFormContext/useFormContext.ts"],"mappings":";;;;;cAYa,uBACX,YAAY,cACZ;;;;;;;;;;;cAmEW,mBACX,qBAAqB,cAAc,aACnC,gBACA,qBAAqB;;EAoCQ,gBAAA,MAAA,KAAK,eAAa;;;;;;;;;;;;;;;;;;;;;EAwB3C,gBAAA,oBAAA,uBAAA;;0BAAA;;;;IAiBY,eAAC;IAEC,WAAC;IAC4B,SAAC"}
1
+ {"version":3,"file":"useFormContext-B3QGVVaO.d.mts","names":[],"sources":["../src/hooks/useFormContext/useFormContext.ts"],"mappings":";;;;;cAYa,uBACX,YAAY,cACZ;;;;;;;;;;;cAmEW,mBACX,qBAAqB,cAAc,aACnC,gBACA,qBAAqB;;EAoCQ,gBAAA,MAAA,KAAK,eAAa;;;;;;;;;;;;;;;;;;;;;EAwB3C,gBAAA,oBAAA,uBAAA;;0BAAA;;;;IAiBY,eAAC;IAEC,WAAC;IAC4B,SAAC"}
@@ -95,10 +95,12 @@ const useFormContext$1 = () => {
95
95
  * the internal nullish string conversion system or flat array wrapping manually.
96
96
  */
97
97
  const getValues = ((...args) => {
98
- return toValidationFormat(getValuesOrig(...args));
98
+ const result = getValuesOrig(...args);
99
+ return toValidationFormat(result);
99
100
  });
100
101
  const watch = ((...args) => {
101
- return toValidationFormat(watchOrig(...args));
102
+ const result = watchOrig(...args);
103
+ return toValidationFormat(result);
102
104
  });
103
105
  const subscribe = ((...args) => {
104
106
  const [options] = args;
@@ -132,4 +134,4 @@ const useFormContext$1 = () => {
132
134
  //#endregion
133
135
  export { useFormContext$1 as n, checkFieldIsRequired as t };
134
136
 
135
- //# sourceMappingURL=useFormContext-Bw4LokAf.mjs.map
137
+ //# sourceMappingURL=useFormContext-fYWtlnpE.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFormContext-Bw4LokAf.mjs","names":["useFormContext","useHookFormContext"],"sources":["../src/hooks/useFormContext/useFormContext.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport type { VetoFormattedError, VetoInstance } from '@fuf-stack/veto';\nimport type { FieldError, FieldValues, Path } from 'react-hook-form';\n\nimport { useContext } from 'react';\nimport { useFormContext as useHookFormContext } from 'react-hook-form';\n\nimport { UniformContext } from '../../Form/subcomponents/FormContext';\nimport { flatArrayKey, nameToTestId, toValidationFormat } from '../../helpers';\n\n/** Schema check whether a field is required or optional */\nexport const checkFieldIsRequired = (\n validation: VetoInstance,\n path: string[],\n): boolean => {\n // Handle flat array paths: strip the flatArrayKey to check the array element schema\n // e.g., ['arrayField', '0', '__FLAT__'] -> check schema at ['arrayField', '0']\n const checkPath =\n path[path.length - 1] === flatArrayKey ? path.slice(0, -1) : path;\n\n const checkRequired = (schema: any) => {\n // arrays ...\n if (schema.type === 'array') {\n // ... if array is optional or nullable it is not required\n if (schema.isOptional || schema.isNullable) {\n return false;\n }\n // ... otherwise arrays are required (display logic wise -> no asterisk in the label)\n return true;\n }\n\n // all other fields are required if they are\n // not optional and not nullable\n return !schema.isOptional && !schema.isNullable;\n };\n\n return validation.checkSchemaPath(checkRequired, checkPath);\n};\n\n/**\n * Resolve validation errors for a given field path.\n *\n * Traverses a nested `VetoFormattedError` structure using a dotted path\n * (for example: \"user.address.0.street\") and returns the matching\n * `FieldError[]` if present. If no error exists at the path, returns\n * `undefined`.\n *\n * @param errors - The formatted validation errors from Uniform's context\n * @param name - The dotted field path to resolve\n * @returns An array of `FieldError` entries for the field, or `undefined`\n */\nconst getValidationErrorsByName = (\n errors: VetoFormattedError,\n name: string,\n) => {\n // Traverse nested error structure; ignore flat array wrapper key\n const keys = name.split('.').filter((k) => {\n return k !== flatArrayKey;\n });\n let current: unknown = errors;\n keys.forEach((key) => {\n if (current && typeof current === 'object') {\n current = (current as Record<string, unknown>)[key];\n } else {\n current = undefined;\n }\n });\n return current as FieldError[] | undefined;\n};\n\n/**\n * Custom hook that extends react-hook-form's useFormContext to add validation and state management.\n *\n * Key features:\n * - Enhanced `getFieldState` that includes validation schema-based \"required\" status and testId generation\n * - Automatic conversion of form values via `getValues`, `watch`, and `subscribe`:\n * - Unwraps flat array wrappers (`{ __FLAT__: value }` → `value`)\n * - Converts nullish string markers (`__NULL__` → `null`, `__FALSE__` → `false`, `__ZERO__` → `0`)\n * - Filters out empty/null values\n */\nexport const useFormContext = <\n TFieldValues extends FieldValues = FieldValues,\n TContext = any,\n TTransformedValues = TFieldValues,\n>() => {\n const {\n formState,\n // some methods that will be enhanced below\n getFieldState: getFieldStateOrig,\n getValues: getValuesOrig,\n watch: watchOrig,\n subscribe: subscribeOrig,\n reset: resetOrig,\n // the rest of the methods pass through unchanged\n ...otherMethods\n } = useHookFormContext<TFieldValues, TContext, TTransformedValues>();\n\n const uniformContext = useContext(UniformContext);\n\n /**\n * Wrap react-hook-form's `reset` so the uniform context is notified about\n * programmatic resets. Field components (e.g. FieldArray) use this signal to\n * normalize their state on reset instead of inferring it from field contents.\n */\n const notifyReset = uniformContext?.formReset?.notify;\n const reset = ((...args: Parameters<typeof resetOrig>) => {\n resetOrig(...args);\n notifyReset?.();\n }) as typeof resetOrig;\n\n /**\n * Updated getFieldState method which returns:\n * - Whether the field is required by checking the validation schema\n * - Existing field state information (errors, etc.)\n * - A testId generated from the field name (with flat array keys removed and slugified)\n *\n * @param name - The field path (string or array)\n * @param testId - Optional explicit testId. If provided, will be slugified. If not provided, generated from name.\n */\n const getFieldState = (name: Path<TFieldValues>, testId?: string) => {\n const fieldPath =\n typeof name === 'string' ? name.replace(/\\[\\d+\\]/g, '').split('.') : name;\n\n // Use base validation instance for checking \"required\" status\n // Client validation often uses .nullish() which would incorrectly mark fields as optional\n const validationInstance =\n uniformContext?.validation.baseInstance ??\n uniformContext?.validation.instance;\n\n // Check if the field is required using the validation schema\n const required = validationInstance\n ? checkFieldIsRequired(validationInstance, fieldPath)\n : false;\n\n const error = getValidationErrorsByName(\n uniformContext?.validation.errors ?? {},\n name,\n );\n\n // Get everything but the error from the original field state\n const fieldState = getFieldStateOrig(name, formState);\n\n return {\n ...fieldState,\n error,\n invalid: !!error,\n required,\n testId: nameToTestId(testId ?? name),\n };\n };\n\n /**\n * Wrap form value accessor methods to automatically convert from internal storage format\n * to component-friendly format:\n *\n * - Unwrap flat array wrappers: `{ __FLAT__: value }` → `value`\n * - Convert nullish string markers: `__NULL__` → `null`, `__FALSE__` → `false`, `__ZERO__` → `0`\n * - Filter out empty/null values: fields with converted null/empty values are removed entirely\n *\n * This ensures components receive clean, predictable data without needing to handle\n * the internal nullish string conversion system or flat array wrapping manually.\n */\n const getValues = ((...args: any[]) => {\n const result = (getValuesOrig as any)(...args);\n return toValidationFormat(result);\n }) as typeof getValuesOrig;\n\n const watch = ((...args: any[]) => {\n const result = (watchOrig as any)(...args);\n return toValidationFormat(result);\n }) as typeof watchOrig;\n\n const subscribe = ((...args: any[]) => {\n // For subscribe, we need to wrap the callback to convert the values property\n const [options] = args;\n if (options?.callback) {\n const originalCallback = options.callback;\n const wrappedOptions = {\n ...options,\n callback: (subscribeFormState: any) => {\n // Convert the values property if it exists\n const convertedFormState = {\n ...subscribeFormState,\n ...(subscribeFormState.values && {\n values: toValidationFormat(subscribeFormState.values),\n }),\n };\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return originalCallback(convertedFormState);\n },\n };\n return subscribeOrig(wrappedOptions);\n }\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return (subscribeOrig as any)(...args);\n }) as typeof subscribeOrig;\n\n return {\n ...otherMethods,\n ...uniformContext,\n formState,\n getFieldState,\n getValues,\n reset,\n subscribe,\n watch,\n };\n};\n"],"mappings":";;;;;;AAYA,MAAa,wBACX,YACA,SACY;CAGZ,MAAM,YACJ,KAAK,KAAK,SAAS,OAAA,aAAsB,KAAK,MAAM,GAAG,EAAE,IAAI;CAE/D,MAAM,iBAAiB,WAAgB;EAErC,IAAI,OAAO,SAAS,SAAS;GAE3B,IAAI,OAAO,cAAc,OAAO,YAC9B,OAAO;GAGT,OAAO;EACT;EAIA,OAAO,CAAC,OAAO,cAAc,CAAC,OAAO;CACvC;CAEA,OAAO,WAAW,gBAAgB,eAAe,SAAS;AAC5D;;;;;;;;;;;;;AAcA,MAAM,6BACJ,QACA,SACG;CAEH,MAAM,OAAO,KAAK,MAAM,GAAG,CAAC,CAAC,QAAQ,MAAM;EACzC,OAAO,MAAM;CACf,CAAC;CACD,IAAI,UAAmB;CACvB,KAAK,SAAS,QAAQ;EACpB,IAAI,WAAW,OAAO,YAAY,UAChC,UAAW,QAAoC;OAE/C,UAAU,KAAA;CAEd,CAAC;CACD,OAAO;AACT;;;;;;;;;;;AAYA,MAAaA,yBAIN;CACL,MAAM,EACJ,WAEA,eAAe,mBACf,WAAW,eACX,OAAO,WACP,WAAW,eACX,OAAO,WAEP,GAAG,iBACDC,eAA+D;CAEnE,MAAM,iBAAiB,WAAW,cAAc;;;;;;CAOhD,MAAM,cAAc,gBAAgB,WAAW;CAC/C,MAAM,UAAU,GAAG,SAAuC;EACxD,UAAU,GAAG,IAAI;EACjB,cAAc;CAChB;;;;;;;;;;CAWA,MAAM,iBAAiB,MAA0B,WAAoB;EACnE,MAAM,YACJ,OAAO,SAAS,WAAW,KAAK,QAAQ,YAAY,EAAE,CAAC,CAAC,MAAM,GAAG,IAAI;EAIvE,MAAM,qBACJ,gBAAgB,WAAW,gBAC3B,gBAAgB,WAAW;EAG7B,MAAM,WAAW,qBACb,qBAAqB,oBAAoB,SAAS,IAClD;EAEJ,MAAM,QAAQ,0BACZ,gBAAgB,WAAW,UAAU,CAAC,GACtC,IACF;EAKA,OAAO;GACL,GAHiB,kBAAkB,MAAM,SAG7B;GACZ;GACA,SAAS,CAAC,CAAC;GACX;GACA,QAAQ,aAAa,UAAU,IAAI;EACrC;CACF;;;;;;;;;;;;CAaA,MAAM,cAAc,GAAG,SAAgB;EAErC,OAAO,mBADS,cAAsB,GAAG,IACV,CAAC;CAClC;CAEA,MAAM,UAAU,GAAG,SAAgB;EAEjC,OAAO,mBADS,UAAkB,GAAG,IACN,CAAC;CAClC;CAEA,MAAM,cAAc,GAAG,SAAgB;EAErC,MAAM,CAAC,WAAW;EAClB,IAAI,SAAS,UAAU;GACrB,MAAM,mBAAmB,QAAQ;GACjC,MAAM,iBAAiB;IACrB,GAAG;IACH,WAAW,uBAA4B;KAErC,MAAM,qBAAqB;MACzB,GAAG;MACH,GAAI,mBAAmB,UAAU,EAC/B,QAAQ,mBAAmB,mBAAmB,MAAM,EACtD;KACF;KAEA,OAAO,iBAAiB,kBAAkB;IAC5C;GACF;GACA,OAAO,cAAc,cAAc;EACrC;EAEA,OAAQ,cAAsB,GAAG,IAAI;CACvC;CAEA,OAAO;EACL,GAAG;EACH,GAAG;EACH;EACA;EACA;EACA;EACA;EACA;CACF;AACF"}
1
+ {"version":3,"file":"useFormContext-fYWtlnpE.mjs","names":["useFormContext","useHookFormContext"],"sources":["../src/hooks/useFormContext/useFormContext.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport type { VetoFormattedError, VetoInstance } from '@fuf-stack/veto';\nimport type { FieldError, FieldValues, Path } from 'react-hook-form';\n\nimport { useContext } from 'react';\nimport { useFormContext as useHookFormContext } from 'react-hook-form';\n\nimport { UniformContext } from '../../Form/subcomponents/FormContext';\nimport { flatArrayKey, nameToTestId, toValidationFormat } from '../../helpers';\n\n/** Schema check whether a field is required or optional */\nexport const checkFieldIsRequired = (\n validation: VetoInstance,\n path: string[],\n): boolean => {\n // Handle flat array paths: strip the flatArrayKey to check the array element schema\n // e.g., ['arrayField', '0', '__FLAT__'] -> check schema at ['arrayField', '0']\n const checkPath =\n path[path.length - 1] === flatArrayKey ? path.slice(0, -1) : path;\n\n const checkRequired = (schema: any) => {\n // arrays ...\n if (schema.type === 'array') {\n // ... if array is optional or nullable it is not required\n if (schema.isOptional || schema.isNullable) {\n return false;\n }\n // ... otherwise arrays are required (display logic wise -> no asterisk in the label)\n return true;\n }\n\n // all other fields are required if they are\n // not optional and not nullable\n return !schema.isOptional && !schema.isNullable;\n };\n\n return validation.checkSchemaPath(checkRequired, checkPath);\n};\n\n/**\n * Resolve validation errors for a given field path.\n *\n * Traverses a nested `VetoFormattedError` structure using a dotted path\n * (for example: \"user.address.0.street\") and returns the matching\n * `FieldError[]` if present. If no error exists at the path, returns\n * `undefined`.\n *\n * @param errors - The formatted validation errors from Uniform's context\n * @param name - The dotted field path to resolve\n * @returns An array of `FieldError` entries for the field, or `undefined`\n */\nconst getValidationErrorsByName = (\n errors: VetoFormattedError,\n name: string,\n) => {\n // Traverse nested error structure; ignore flat array wrapper key\n const keys = name.split('.').filter((k) => {\n return k !== flatArrayKey;\n });\n let current: unknown = errors;\n keys.forEach((key) => {\n if (current && typeof current === 'object') {\n current = (current as Record<string, unknown>)[key];\n } else {\n current = undefined;\n }\n });\n return current as FieldError[] | undefined;\n};\n\n/**\n * Custom hook that extends react-hook-form's useFormContext to add validation and state management.\n *\n * Key features:\n * - Enhanced `getFieldState` that includes validation schema-based \"required\" status and testId generation\n * - Automatic conversion of form values via `getValues`, `watch`, and `subscribe`:\n * - Unwraps flat array wrappers (`{ __FLAT__: value }` → `value`)\n * - Converts nullish string markers (`__NULL__` → `null`, `__FALSE__` → `false`, `__ZERO__` → `0`)\n * - Filters out empty/null values\n */\nexport const useFormContext = <\n TFieldValues extends FieldValues = FieldValues,\n TContext = any,\n TTransformedValues = TFieldValues,\n>() => {\n const {\n formState,\n // some methods that will be enhanced below\n getFieldState: getFieldStateOrig,\n getValues: getValuesOrig,\n watch: watchOrig,\n subscribe: subscribeOrig,\n reset: resetOrig,\n // the rest of the methods pass through unchanged\n ...otherMethods\n } = useHookFormContext<TFieldValues, TContext, TTransformedValues>();\n\n const uniformContext = useContext(UniformContext);\n\n /**\n * Wrap react-hook-form's `reset` so the uniform context is notified about\n * programmatic resets. Field components (e.g. FieldArray) use this signal to\n * normalize their state on reset instead of inferring it from field contents.\n */\n const notifyReset = uniformContext?.formReset?.notify;\n const reset = ((...args: Parameters<typeof resetOrig>) => {\n resetOrig(...args);\n notifyReset?.();\n }) as typeof resetOrig;\n\n /**\n * Updated getFieldState method which returns:\n * - Whether the field is required by checking the validation schema\n * - Existing field state information (errors, etc.)\n * - A testId generated from the field name (with flat array keys removed and slugified)\n *\n * @param name - The field path (string or array)\n * @param testId - Optional explicit testId. If provided, will be slugified. If not provided, generated from name.\n */\n const getFieldState = (name: Path<TFieldValues>, testId?: string) => {\n const fieldPath =\n typeof name === 'string' ? name.replace(/\\[\\d+\\]/g, '').split('.') : name;\n\n // Use base validation instance for checking \"required\" status\n // Client validation often uses .nullish() which would incorrectly mark fields as optional\n const validationInstance =\n uniformContext?.validation.baseInstance ??\n uniformContext?.validation.instance;\n\n // Check if the field is required using the validation schema\n const required = validationInstance\n ? checkFieldIsRequired(validationInstance, fieldPath)\n : false;\n\n const error = getValidationErrorsByName(\n uniformContext?.validation.errors ?? {},\n name,\n );\n\n // Get everything but the error from the original field state\n const fieldState = getFieldStateOrig(name, formState);\n\n return {\n ...fieldState,\n error,\n invalid: !!error,\n required,\n testId: nameToTestId(testId ?? name),\n };\n };\n\n /**\n * Wrap form value accessor methods to automatically convert from internal storage format\n * to component-friendly format:\n *\n * - Unwrap flat array wrappers: `{ __FLAT__: value }` → `value`\n * - Convert nullish string markers: `__NULL__` → `null`, `__FALSE__` → `false`, `__ZERO__` → `0`\n * - Filter out empty/null values: fields with converted null/empty values are removed entirely\n *\n * This ensures components receive clean, predictable data without needing to handle\n * the internal nullish string conversion system or flat array wrapping manually.\n */\n const getValues = ((...args: any[]) => {\n const result = (getValuesOrig as any)(...args);\n return toValidationFormat(result);\n }) as typeof getValuesOrig;\n\n const watch = ((...args: any[]) => {\n const result = (watchOrig as any)(...args);\n return toValidationFormat(result);\n }) as typeof watchOrig;\n\n const subscribe = ((...args: any[]) => {\n // For subscribe, we need to wrap the callback to convert the values property\n const [options] = args;\n if (options?.callback) {\n const originalCallback = options.callback;\n const wrappedOptions = {\n ...options,\n callback: (subscribeFormState: any) => {\n // Convert the values property if it exists\n const convertedFormState = {\n ...subscribeFormState,\n ...(subscribeFormState.values && {\n values: toValidationFormat(subscribeFormState.values),\n }),\n };\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return originalCallback(convertedFormState);\n },\n };\n return subscribeOrig(wrappedOptions);\n }\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return (subscribeOrig as any)(...args);\n }) as typeof subscribeOrig;\n\n return {\n ...otherMethods,\n ...uniformContext,\n formState,\n getFieldState,\n getValues,\n reset,\n subscribe,\n watch,\n };\n};\n"],"mappings":";;;;;;AAYA,MAAa,wBACX,YACA,SACY;CAGZ,MAAM,YACJ,KAAK,KAAK,SAAS,OAAA,aAAsB,KAAK,MAAM,GAAG,EAAE,IAAI;CAE/D,MAAM,iBAAiB,WAAgB;EAErC,IAAI,OAAO,SAAS,SAAS;GAE3B,IAAI,OAAO,cAAc,OAAO,YAC9B,OAAO;GAGT,OAAO;EACT;EAIA,OAAO,CAAC,OAAO,cAAc,CAAC,OAAO;CACvC;CAEA,OAAO,WAAW,gBAAgB,eAAe,SAAS;AAC5D;;;;;;;;;;;;;AAcA,MAAM,6BACJ,QACA,SACG;CAEH,MAAM,OAAO,KAAK,MAAM,GAAG,CAAC,CAAC,QAAQ,MAAM;EACzC,OAAO,MAAM;CACf,CAAC;CACD,IAAI,UAAmB;CACvB,KAAK,SAAS,QAAQ;EACpB,IAAI,WAAW,OAAO,YAAY,UAChC,UAAW,QAAoC;OAE/C,UAAU,KAAA;CAEd,CAAC;CACD,OAAO;AACT;;;;;;;;;;;AAYA,MAAaA,yBAIN;CACL,MAAM,EACJ,WAEA,eAAe,mBACf,WAAW,eACX,OAAO,WACP,WAAW,eACX,OAAO,WAEP,GAAG,iBACDC,eAA+D;CAEnE,MAAM,iBAAiB,WAAW,cAAc;;;;;;CAOhD,MAAM,cAAc,gBAAgB,WAAW;CAC/C,MAAM,UAAU,GAAG,SAAuC;EACxD,UAAU,GAAG,IAAI;EACjB,cAAc;CAChB;;;;;;;;;;CAWA,MAAM,iBAAiB,MAA0B,WAAoB;EACnE,MAAM,YACJ,OAAO,SAAS,WAAW,KAAK,QAAQ,YAAY,EAAE,CAAC,CAAC,MAAM,GAAG,IAAI;EAIvE,MAAM,qBACJ,gBAAgB,WAAW,gBAC3B,gBAAgB,WAAW;EAG7B,MAAM,WAAW,qBACb,qBAAqB,oBAAoB,SAAS,IAClD;EAEJ,MAAM,QAAQ,0BACZ,gBAAgB,WAAW,UAAU,CAAC,GACtC,IACF;EAKA,OAAO;GACL,GAHiB,kBAAkB,MAAM,SAG7B;GACZ;GACA,SAAS,CAAC,CAAC;GACX;GACA,QAAQ,aAAa,UAAU,IAAI;EACrC;CACF;;;;;;;;;;;;CAaA,MAAM,cAAc,GAAG,SAAgB;EACrC,MAAM,SAAU,cAAsB,GAAG,IAAI;EAC7C,OAAO,mBAAmB,MAAM;CAClC;CAEA,MAAM,UAAU,GAAG,SAAgB;EACjC,MAAM,SAAU,UAAkB,GAAG,IAAI;EACzC,OAAO,mBAAmB,MAAM;CAClC;CAEA,MAAM,cAAc,GAAG,SAAgB;EAErC,MAAM,CAAC,WAAW;EAClB,IAAI,SAAS,UAAU;GACrB,MAAM,mBAAmB,QAAQ;GACjC,MAAM,iBAAiB;IACrB,GAAG;IACH,WAAW,uBAA4B;KAErC,MAAM,qBAAqB;MACzB,GAAG;MACH,GAAI,mBAAmB,UAAU,EAC/B,QAAQ,mBAAmB,mBAAmB,MAAM,EACtD;KACF;KAEA,OAAO,iBAAiB,kBAAkB;IAC5C;GACF;GACA,OAAO,cAAc,cAAc;EACrC;EAEA,OAAQ,cAAsB,GAAG,IAAI;CACvC;CAEA,OAAO;EACL,GAAG;EACH,GAAG;EACH;EACA;EACA;EACA;EACA;EACA;CACF;AACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuf-stack/uniform",
3
- "version": "1.26.0",
3
+ "version": "1.27.0",
4
4
  "description": "fuf react form library",
5
5
  "author": "Fröhlich ∧ Frei",
6
6
  "homepage": "https://github.com/fuf-stack/pixels#readme",
@@ -68,10 +68,10 @@
68
68
  "@dnd-kit/modifiers": "9.0.0",
69
69
  "@dnd-kit/sortable": "10.0.0",
70
70
  "@dnd-kit/utilities": "3.2.2",
71
- "@fuf-stack/pixel-motion": "1.3.1",
71
+ "@fuf-stack/pixel-motion": "1.4.0",
72
72
  "@fuf-stack/pixel-utils": "1.4.0",
73
- "@fuf-stack/pixels": "1.13.1",
74
- "@fuf-stack/veto": "1.9.0",
73
+ "@fuf-stack/pixels": "1.14.0",
74
+ "@fuf-stack/veto": "1.11.0",
75
75
  "@heroui/button": "2.2.32",
76
76
  "@heroui/checkbox": "2.3.32",
77
77
  "@heroui/date-input": "2.3.32",
@@ -84,20 +84,20 @@
84
84
  "@heroui/switch": "2.2.27",
85
85
  "@heroui/system": "2.4.28",
86
86
  "@heroui/theme": "2.4.26",
87
- "@internationalized/date": "3.12.2",
87
+ "@internationalized/date": "3.12.4",
88
88
  "@react-aria/visually-hidden": "3.9.1",
89
89
  "debug": "4.4.3",
90
- "framer-motion": "12.42.2",
90
+ "framer-motion": "12.43.0",
91
91
  "react-hook-form": "7.81.0",
92
92
  "react-icons": "5.7.0",
93
93
  "react-select": "5.10.2"
94
94
  },
95
95
  "devDependencies": {
96
96
  "@types/debug": "4.1.13",
97
- "@types/react": "19.2.17",
98
- "@types/react-dom": "19.2.3",
97
+ "@types/react": "19.2.18",
98
+ "@types/react-dom": "19.2.7",
99
99
  "react": "19.2.8",
100
100
  "react-dom": "19.2.8"
101
101
  },
102
- "gitHead": "bb2d3d0244dda75a94fd4138b9174764cf74350d"
102
+ "gitHead": "ce8395ec7be03495876e5da7c3cb3649c0e6fc40"
103
103
  }
@@ -1 +0,0 @@
1
- import "./useFormContext-BegmYvGA.mjs";