Skip to content

Commit

Permalink
Add slotWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
igor10k committed Jan 10, 2025
1 parent 656152e commit 53c1b2e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/core/source/legacy/host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,15 @@ export interface LegacyRemoteChannelElementMap {
}

export interface LegacyRemoteChannelOptions {
/**
* A map of element types to their corresponding remote-ui element types.
*/
elements?: LegacyRemoteChannelElementMap;

/**
* The element type to use for slots.
*/
slotWrapper?: string;
}

/**
Expand Down Expand Up @@ -326,7 +334,7 @@ function adaptLegacyFragmentSerialization(
): RemoteElementSerialization {
return {
id: fragment.id,
element: 'remote-fragment',
element: options?.slotWrapper ?? 'remote-fragment',
attributes: {
slot,
},
Expand Down

0 comments on commit 53c1b2e

Please sign in to comment.