@nivaro/react 0.1.189 → 0.1.191
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 +8 -1
- package/dist/index.js +17593 -17461
- 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. */
|