@devframes/hub-ui 0.9.0-beta.1 → 0.9.0-beta.10

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.
package/dist/index.mjs CHANGED
@@ -36,7 +36,13 @@ function createUi(options = {}) {
36
36
  return {
37
37
  ...options.viewer !== false ? { viewer: { distDir: join(client, "standalone") } } : {},
38
38
  ...options.embedded !== false ? { embedded: { entry: join(client, "embedded.js") } } : {},
39
- ...options.branding ? { assets: { "branding.json": () => JSON.stringify(options.branding) } } : {}
39
+ setup(ctx) {
40
+ ctx.staticConfig.ui = {
41
+ branding: options.branding || {},
42
+ ...options.embeddedVisibility ? { embeddedVisibility: options.embeddedVisibility } : {},
43
+ ...options.dockPreferences ? { dockPreferences: options.dockPreferences } : {}
44
+ };
45
+ }
40
46
  };
41
47
  }
42
48
  //#endregion
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@devframes/hub-ui",
3
3
  "type": "module",
4
- "version": "0.9.0-beta.1",
4
+ "version": "0.9.0-beta.10",
5
5
  "description": "Reference UI for the devframe hub, providing the floating dock and standalone viewer.",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -29,9 +29,14 @@
29
29
  "dist"
30
30
  ],
31
31
  "peerDependencies": {
32
- "@devframes/json-render": "0.9.0-beta.1",
33
- "@devframes/hub": "0.9.0-beta.1",
34
- "devframe": "0.9.0-beta.1"
32
+ "@devframes/hub": "0.9.0-beta.10",
33
+ "devframe": "0.9.0-beta.10",
34
+ "@devframes/json-render": "0.9.0-beta.10"
35
+ },
36
+ "peerDependenciesMeta": {
37
+ "@devframes/json-render": {
38
+ "optional": true
39
+ }
35
40
  },
36
41
  "devDependencies": {
37
42
  "@antfu/design": "^0.3.4",
@@ -45,17 +50,16 @@
45
50
  "dompurify": "^3.4.13",
46
51
  "fuse.js": "^7.5.0",
47
52
  "iframe-pane": "^1.1.0",
48
- "magic-string": "^1.1.1",
49
53
  "storybook": "^10.5.7",
50
- "tinyglobby": "^0.2.17",
51
54
  "tsdown": "^0.22.14",
52
55
  "tsx": "^4.23.12",
53
56
  "unocss": "^66.7.5",
54
57
  "vite": "^8.2.1",
55
58
  "vue": "^3.5.41",
56
- "devframe": "0.9.0-beta.1",
57
- "@devframes/hub": "0.9.0-beta.1",
58
- "@devframes/json-render": "0.9.0-beta.1"
59
+ "@devframes/json-render": "0.9.0-beta.10",
60
+ "@devframes/hub": "0.9.0-beta.10",
61
+ "devframe": "0.9.0-beta.10",
62
+ "@devframes/plugin-git": "0.9.0-beta.10"
59
63
  },
60
64
  "scripts": {
61
65
  "build": "pnpm run build:css && pnpm run build:node && pnpm run build:embedded && pnpm run build:standalone",
@@ -63,6 +67,7 @@
63
67
  "build:node": "tsdown",
64
68
  "build:embedded": "vite build --config vite.embedded.config.ts",
65
69
  "build:standalone": "vite build --config src/client/standalone/vite.config.ts",
70
+ "dev": "pnpm -C ../.. exec turbo run build --filter=@devframes/hub... --filter=@devframes/plugin-git... && vite --config playground/vite.config.ts",
66
71
  "typecheck": "tsc --noEmit",
67
72
  "storybook": "storybook dev -p 6014",
68
73
  "build-storybook": "storybook build"