@nivaro/react 0.1.188 → 0.1.190
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 +15 -2
- package/dist/index.js +21708 -21520
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -70,12 +70,19 @@ declare interface ActiveFilter {
|
|
|
70
70
|
not?: boolean;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
export declare function AddendumPanel({ collection, item, addendumLayoutId, canCreate, onActiveCountChange, onApplied, defaultExpanded }: {
|
|
73
|
+
export declare function AddendumPanel({ collection, item, addendumLayoutId, canCreate, onActiveCountChange, onApplied, onCreated, defaultExpanded }: {
|
|
74
74
|
collection: string;
|
|
75
75
|
item: string;
|
|
76
76
|
addendumLayoutId?: number | null;
|
|
77
77
|
canCreate?: boolean;
|
|
78
78
|
onActiveCountChange?: (count: number) => void;
|
|
79
|
+
/** Fired after a NEW addendum lands, with the addendum layout's `__pdf__`
|
|
80
|
+
* slot overrides (if any) — ItemEditForm renders the amended document
|
|
81
|
+
* from them. Deliberately not onApplied: the record has not changed yet. */
|
|
82
|
+
onCreated?: (created: {
|
|
83
|
+
id: string | null;
|
|
84
|
+
pdfSlot: Record<string, unknown> | null;
|
|
85
|
+
}) => void;
|
|
79
86
|
/** Fired after an addendum is approved/rejected/submitted — i.e. whenever the
|
|
80
87
|
* parent record may now read differently. ItemEditForm uses it to refresh a
|
|
81
88
|
* generated PDF so the attached document matches the amended record. */
|
|
@@ -1826,12 +1833,18 @@ export declare type ItemEditAuthContextValue = {
|
|
|
1826
1833
|
userId: string;
|
|
1827
1834
|
};
|
|
1828
1835
|
|
|
1829
|
-
export declare function ItemEditForm({ collection, itemId: itemIdProp, layoutSlug, onBack, onSaved, onDeleted, showHeader, headerExtra, 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;
|
|
1836
|
+
export declare function ItemEditForm({ collection, itemId: itemIdProp, layoutSlug, initialAddendumViewId, onAddendumViewChange, onBack, onSaved, onDeleted, showHeader, headerExtra, 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;
|
|
1830
1837
|
|
|
1831
1838
|
export declare interface ItemEditFormProps {
|
|
1832
1839
|
collection: string;
|
|
1833
1840
|
itemId?: string;
|
|
1834
1841
|
layoutSlug?: string;
|
|
1842
|
+
/** Open with this addendum's view selected (the `?addendum=` deep link that
|
|
1843
|
+
* My Work rows, digest lines and notifications carry). */
|
|
1844
|
+
initialAddendumViewId?: string | null;
|
|
1845
|
+
/** Fires whenever the selected view changes: an addendum id, or null for the
|
|
1846
|
+
* current record — hosts mirror it into the URL / tab chrome. */
|
|
1847
|
+
onAddendumViewChange?: (addendumId: string | null) => void;
|
|
1835
1848
|
onBack?: () => void;
|
|
1836
1849
|
onSaved?: (id: string) => void;
|
|
1837
1850
|
onDeleted?: () => void;
|