feat: cut over rust web main shell
This commit is contained in:
@@ -8,6 +8,13 @@ type SearchPaletteProps = {
|
||||
workspaceId: string | null;
|
||||
};
|
||||
|
||||
export const SEARCH_PALETTE_ISLAND_CONTRACT = {
|
||||
shellOwner: "mnote-web",
|
||||
runtimeRole: "react_interaction_island",
|
||||
island: "search_palette",
|
||||
transport: "/api/search/documents",
|
||||
} as const;
|
||||
|
||||
const SearchPaletteRuntime = dynamic<SearchPaletteProps>(
|
||||
() => import("./search-palette.runtime").then((mod) => mod.SearchPalette),
|
||||
{
|
||||
@@ -46,5 +53,13 @@ export function SearchPaletteHost({ workspaceId }: SearchPaletteProps) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return <SearchPaletteRuntime workspaceId={workspaceId} />;
|
||||
return (
|
||||
<div
|
||||
data-react-island={SEARCH_PALETTE_ISLAND_CONTRACT.island}
|
||||
data-runtime-role={SEARCH_PALETTE_ISLAND_CONTRACT.runtimeRole}
|
||||
data-shell-owner={SEARCH_PALETTE_ISLAND_CONTRACT.shellOwner}
|
||||
>
|
||||
<SearchPaletteRuntime workspaceId={workspaceId} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user