@nivaro/react 0.1.19 → 0.1.21
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 +13 -1
- package/dist/index.js +10757 -10728
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -822,7 +822,7 @@ declare type ItemEditAuthContextValue = {
|
|
|
822
822
|
userId: string;
|
|
823
823
|
};
|
|
824
824
|
|
|
825
|
-
export declare function ItemEditForm({ collection, itemId: itemIdProp, layoutSlug, onBack, onSaved, onDeleted, showHeader, showItemActions, showRevisions, showClone, showPipeline, showWorkflow, showComments, showTasks, showLockBanner, className, headerClassName, renderField, extraTopContent, extraBottomContent, onHeaderWidgets, initialImportResult, initialValues }: ItemEditFormProps): JSX.Element;
|
|
825
|
+
export declare function ItemEditForm({ collection, itemId: itemIdProp, layoutSlug, onBack, onSaved, onDeleted, showHeader, showItemActions, showRevisions, showClone, showPipeline, showWorkflow, showComments, showTasks, showLockBanner, className, headerClassName, renderField, extraTopContent, extraBottomContent, onHeaderWidgets, initialImportResult, initialValues, initialLinks, initialRows }: ItemEditFormProps): JSX.Element;
|
|
826
826
|
|
|
827
827
|
export declare interface ItemEditFormProps {
|
|
828
828
|
collection: string;
|
|
@@ -857,6 +857,18 @@ export declare interface ItemEditFormProps {
|
|
|
857
857
|
* values (deep-link prefill, "create from common values", AI hand-offs).
|
|
858
858
|
* User edits made before the seed applies win over seeded keys. */
|
|
859
859
|
initialValues?: Record<string, unknown>;
|
|
860
|
+
/** Seed staged m2m links on a NEW record, keyed
|
|
861
|
+
* `<junction collection>.<junction field>` — the same staging key the save
|
|
862
|
+
* path resolves. initialValues cannot express these: m2m links are held
|
|
863
|
+
* outside the draft, so a caller deep-linking a prefilled record (generate
|
|
864
|
+
* a workflow from a PO, say) has no other way to hand them over. */
|
|
865
|
+
initialLinks?: Record<string, unknown[]>;
|
|
866
|
+
/** Seed staged child rows on a NEW record, keyed
|
|
867
|
+
* `<child collection>.<foreign key field>`. Same reason as initialLinks:
|
|
868
|
+
* o2m rows are queued outside the draft, so a caller generating a record
|
|
869
|
+
* from another one (workflow lines from a purchase order's lines) cannot
|
|
870
|
+
* hand them over through initialValues. */
|
|
871
|
+
initialRows?: Record<string, Array<Record<string, unknown>>>;
|
|
860
872
|
}
|
|
861
873
|
|
|
862
874
|
/** A record the UI wants to link to / open the edit page for. */
|