@danxbot/ui 6.2.0 → 6.3.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.
@@ -59,6 +59,16 @@ export interface InlineEditProps {
59
59
  * commits.
60
60
  */
61
61
  multiline?: boolean;
62
+ /**
63
+ * Save WHILE the reader types: commit this many milliseconds after the last
64
+ * keystroke, with the field still open. Enter (Shift+Enter is the newline in
65
+ * `multiline`), blur, and Cmd/Ctrl+Enter commit and exit; Escape cancels the
66
+ * pending debounce and reverts to the last committed value. Saves are
67
+ * serialised — see the module comment ("AUTOSAVE") for the full contract.
68
+ *
69
+ * Omit for the commit-on-blur/Enter behaviour. Must be a positive number.
70
+ */
71
+ autosaveMs?: number;
62
72
  /**
63
73
  * This value cannot be edited at all, AND WHY. `{ reason }`, matching
64
74
  * `SettingRow.readOnly` — a control that refuses in silence is
@@ -97,4 +107,4 @@ export interface InlineEditProps {
97
107
  messageClassName?: string;
98
108
  ref?: Ref<HTMLElement>;
99
109
  }
100
- export declare function InlineEdit({ value, onCommit, validate, label, placeholder, size, multiline, readOnly, failureMessage, onError, onEditingChange, render, className, messageClassName, ref, }: InlineEditProps): import("react").JSX.Element;
110
+ export declare function InlineEdit({ value, onCommit, validate, label, placeholder, size, multiline, autosaveMs, readOnly, failureMessage, onError, onEditingChange, render, className, messageClassName, ref, }: InlineEditProps): import("react").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danxbot/ui",
3
- "version": "6.2.0",
3
+ "version": "6.3.0",
4
4
  "type": "module",
5
5
  "description": "Danxbot — a domain-agnostic React design system with motion as a first-class primitive.",
6
6
  "license": "MIT",