@deepblend/dsh-blender-ui 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +5 -2
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -78,7 +78,7 @@ export const WORKBENCH_PAGE_ROOT_ID = 'deepblend-workbench'
78
78
  * because this page supplies no platform modules: React is a console seed
79
79
  * word, the workbench core does not use it, and `client.js` reads it lazily
80
80
  * precisely so that this call can pass `{}`.
81
- * 3. `import('@deepblend/dsh-blender-ui')` — the console's own graph row,
81
+ * 3. Import the mounted bundle client, or the independently installed UI client — the console's own graph row,
82
82
  * fetched from the console's own bundle route. There is no second copy of
83
83
  * the workbench anywhere for this to find.
84
84
  * 4. `mountStandalone(root)` — the one function that differs between the faces.
@@ -95,7 +95,10 @@ export function workbenchPageBootstrap(rootId) {
95
95
  try {
96
96
  await globalThis.__DSH_BOOT_READY__?.promise
97
97
  const modules = window.__ModuleLoader__.create({ boot: window.__DSH_BOOT__, staticModules: {} })
98
- const bundle = await modules.import('@deepblend/dsh-blender-ui')
98
+ const ownsBundleClient = (window.__DSH_BOOT__.entries || []).some(entry => entry.id === '@deepblend/dsh-blender-bundle')
99
+ const bundle = ownsBundleClient
100
+ ? await modules.import('@deepblend/dsh-blender-bundle')
101
+ : await modules.import('@deepblend/dsh-blender-ui')
99
102
  await bundle.mountStandalone(root)
100
103
  root.dataset.deepblendStandalone = 'ready'
101
104
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepblend/dsh-blender-ui",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "type": "module",
5
5
  "description": "DeepBlend workbench UI: Host half (typed HTTP API) and Web Client half (sidebar, panels, tool cards).",
6
6
  "main": "lib/index.js",
@@ -19,7 +19,7 @@
19
19
  }
20
20
  },
21
21
  "dependencies": {
22
- "@deepblend/dsh-blender-contracts": "0.6.0"
22
+ "@deepblend/dsh-blender-contracts": "0.6.1"
23
23
  },
24
24
  "license": "MIT",
25
25
  "repository": {