@nivaro/react 0.1.151 → 0.1.152

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 (3) hide show
  1. package/dist/index.d.ts +5 -1
  2. package/dist/index.js +20730 -20723
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1779,7 +1779,7 @@ export declare type ItemEditAuthContextValue = {
1779
1779
  userId: string;
1780
1780
  };
1781
1781
 
1782
- export declare function ItemEditForm({ collection, itemId: itemIdProp, layoutSlug, onBack, onSaved, onDeleted, showHeader, focusField, showItemActions, onDirtyChange, documentTitle, onDuplicate, showRevisions, showClone, showPipeline, showWorkflow, showComments, showTasks, showLockBanner, className, headerClassName, renderField, extraTopContent, extraBottomContent, onHeaderWidgets, initialImportResult, initialValues, initialLinks, initialRows }: ItemEditFormProps): JSX.Element;
1782
+ export declare function ItemEditForm({ collection, itemId: itemIdProp, layoutSlug, onBack, onSaved, onDeleted, showHeader, focusField, showItemActions, onDirtyChange, documentTitle, registerSaveHandler, onDuplicate, showRevisions, showClone, showPipeline, showWorkflow, showComments, showTasks, showLockBanner, className, headerClassName, renderField, extraTopContent, extraBottomContent, onHeaderWidgets, initialImportResult, initialValues, initialLinks, initialRows }: ItemEditFormProps): JSX.Element;
1783
1783
 
1784
1784
  export declare interface ItemEditFormProps {
1785
1785
  collection: string;
@@ -1808,6 +1808,10 @@ export declare interface ItemEditFormProps {
1808
1808
  /** false = skip the document.title side effect — a workspace-tab host keeps
1809
1809
  * several forms mounted and only the ACTIVE one may own the browser tab. */
1810
1810
  documentTitle?: boolean;
1811
+ /** Hands the host a stable save trigger (workspace "Save all"); called with
1812
+ * null on unmount. The trigger runs the same handleSave the button does —
1813
+ * validation and dialogs included. */
1814
+ registerSaveHandler?: (fn: (() => void) | null) => void;
1811
1815
  onDuplicate?: (payload: {
1812
1816
  values: Record<string, unknown>;
1813
1817
  links: Record<string, unknown[]>;