method

FieldAuthoringHost.copySchemaPayload

Copy an item's ordinary field data and give its schema-declared nested rows/items fresh IDs. Use when duplicating to avoid sharing identities. This does not insert the copy or copy your outer plugin item; update that structure in your editor.

Arguments

ArgumentTypeDescription
scopeEmbeddedSchemaVariantScopeThe scope value.
payloadReadonly<Record<string, unknown>>The payload value.

Returns

The declared result.

Record<string, unknown>

Full signature

FieldAuthoringHost.copySchemaPayload( scope: EmbeddedSchemaVariantScope, payload: Readonly<Record<string, unknown>>, ): Record<string, unknown>

Source packages/plugin/src/authoring.ts:180

Related types