diff --git a/client/features/applets/AppletMount.tsx b/client/features/applets/AppletMount.tsx index d0cff83f..83c78e20 100644 --- a/client/features/applets/AppletMount.tsx +++ b/client/features/applets/AppletMount.tsx @@ -1,43 +1,30 @@ -import { type ReactElement, type ReactNode, cloneElement, isValidElement } from 'react' +import { type ReactNode } from 'react' import { useWorkspaceId } from '@/client/features/workspace/WorkspaceContext' -import { type AppletSegment, appletStyleKey } from './applet-cache' +import { type AppletSegment, appletScope, appletStyleKey } from './applet-cache' import { useAppletStyle } from './applet-styles' type AppletMountProps = { segment: AppletSegment name: string version: number - // Merge the scope attribute into the single child element instead of - // rendering a wrapper — use when the caller already has a filled container - // (e.g. the shells' motion.div), so no extra node enters the DOM. The child - // must forward unknown props to its DOM element. - asChild?: boolean children: ReactNode } // The style scope for one mounted applet: puts the `data-applet` attribute the // bundle's scoped CSS selectors key off (see server/bundler/applet-css.ts) on a -// container, and keeps the applet's