From f2754a212357859f743df80e0cb09784a231ebeb Mon Sep 17 00:00:00 2001 From: dvcolomban Date: Thu, 27 Aug 2026 00:15:23 +0200 Subject: [PATCH 1/7] feat(hub-ui): support transparent standalone viewers --- docs/content/1.guide/18.hub-initiate.md | 1 + .../hub-ui/src/client/standalone/index.html | 1 + packages/hub-ui/src/index.test.ts | 39 +++++++++++++++++++ packages/hub-ui/src/index.ts | 20 +++++++++- .../@devframes/hub-ui/index.snapshot.d.ts | 4 +- 5 files changed, 62 insertions(+), 3 deletions(-) create mode 100644 packages/hub-ui/src/index.test.ts diff --git a/docs/content/1.guide/18.hub-initiate.md b/docs/content/1.guide/18.hub-initiate.md index c8685810..0e132121 100644 --- a/docs/content/1.guide/18.hub-initiate.md +++ b/docs/content/1.guide/18.hub-initiate.md @@ -61,6 +61,7 @@ interface DevframeHubUi { `@devframes/hub-ui`'s `createUi()` is the reference (standalone `viewer` SPA + floating dock); its `setup(ctx)` publishes config to `ctx.staticConfig.ui` (`ConnectionMeta.configs.ui`): +- **`viewer`** — set to `false` to disable the standalone viewer, or `{ background: 'transparent' }` when its document should visually inherit an embedding page's surface. - **`branding`** — rebrand the UI (logo, name, primary color). - **`dockPreferences`** — dock-rail: `categoryOrder`, floating-dock `maxVisibleItems`, first-run `defaultMode` (`'float'`/`'edge'`) and `defaultPosition`. - **`embeddedVisibility`** — the floating dock's reveal policy: diff --git a/packages/hub-ui/src/client/standalone/index.html b/packages/hub-ui/src/client/standalone/index.html index fbf2a89b..1e43d8c5 100644 --- a/packages/hub-ui/src/client/standalone/index.html +++ b/packages/hub-ui/src/client/standalone/index.html @@ -5,6 +5,7 @@ Devframes +