@nivaro/react 0.1.150 → 0.1.151
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.ts +7 -1
- package/dist/index.js +18952 -18943
- 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, 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, 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;
|
|
@@ -1802,6 +1802,12 @@ export declare interface ItemEditFormProps {
|
|
|
1802
1802
|
* `<child>.<fk>`, ready for initialRows). The host stores it (sessionStorage
|
|
1803
1803
|
* — too big for a URL) and navigates to its new-record route.
|
|
1804
1804
|
*/
|
|
1805
|
+
/** Fires whenever the form's dirty state flips — lets a host (workspace
|
|
1806
|
+
* tabs, close guards) track unsaved edits without reaching inside. */
|
|
1807
|
+
onDirtyChange?: (dirty: boolean) => void;
|
|
1808
|
+
/** false = skip the document.title side effect — a workspace-tab host keeps
|
|
1809
|
+
* several forms mounted and only the ACTIVE one may own the browser tab. */
|
|
1810
|
+
documentTitle?: boolean;
|
|
1805
1811
|
onDuplicate?: (payload: {
|
|
1806
1812
|
values: Record<string, unknown>;
|
|
1807
1813
|
links: Record<string, unknown[]>;
|