@formality-ui/core 0.2.1 → 0.2.3

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
@@ -308,7 +308,20 @@ interface InputConfig<TValue = unknown> {
308
308
  component: unknown;
309
309
  /** Default value for this input type (e.g., '' for text, false for switch) */
310
310
  defaultValue: TValue;
311
- /** Debounce milliseconds for validation/auto-save. false = immediate, number = delay */
311
+ /**
312
+ * Auto-save debounce for fields of this input type.
313
+ *
314
+ * - `false` — submit immediately on change (no debounce timer). Use for
315
+ * toggles/switches/selects where every change is a discrete commit.
316
+ * - `number` — delay auto-save by this many milliseconds after the last
317
+ * change to a field of this type. Fields that share the same numeric
318
+ * debounce coalesce into a single timer; fields with different numeric
319
+ * debounces fire on their own cadence. When unset, the field falls back
320
+ * to the Form-level `debounce` prop (default 1000ms).
321
+ *
322
+ * This governs *auto-save timing only*. The field value is still committed
323
+ * to the form state on every change (it does not throttle re-renders).
324
+ */
312
325
  debounce?: number | false;
313
326
  /** Prop name for passing value to component (default: 'value') */
314
327
  inputFieldProp?: string;
package/dist/index.d.ts CHANGED
@@ -308,7 +308,20 @@ interface InputConfig<TValue = unknown> {
308
308
  component: unknown;
309
309
  /** Default value for this input type (e.g., '' for text, false for switch) */
310
310
  defaultValue: TValue;
311
- /** Debounce milliseconds for validation/auto-save. false = immediate, number = delay */
311
+ /**
312
+ * Auto-save debounce for fields of this input type.
313
+ *
314
+ * - `false` — submit immediately on change (no debounce timer). Use for
315
+ * toggles/switches/selects where every change is a discrete commit.
316
+ * - `number` — delay auto-save by this many milliseconds after the last
317
+ * change to a field of this type. Fields that share the same numeric
318
+ * debounce coalesce into a single timer; fields with different numeric
319
+ * debounces fire on their own cadence. When unset, the field falls back
320
+ * to the Form-level `debounce` prop (default 1000ms).
321
+ *
322
+ * This governs *auto-save timing only*. The field value is still committed
323
+ * to the form state on every change (it does not throttle re-renders).
324
+ */
312
325
  debounce?: number | false;
313
326
  /** Prop name for passing value to component (default: 'value') */
314
327
  inputFieldProp?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formality-ui/core",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },