@ubean/integrations 0.6.0-beta.2 → 0.6.0-beta.3

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.d.ts CHANGED
@@ -2,7 +2,7 @@ import { i as ElectronRendererOptions, n as ElectronOptions, r as ElectronPreloa
2
2
  import { a as FontModuleOptions, c as FontStyle, d as GoogleFontsOptions, f as LocalFontOptions, i as FontMetric, l as FontSubset, n as FontFaceDeclaration, o as FontProvider, p as ResolvedFontFace, r as FontFamilyOptions, s as FontProviderOptions, t as FontDisplay, u as FontWeight } from "./types-CpVZH81i.js";
3
3
  import { a as ManifestScreenshot, c as RuntimeCachingRule, i as ManifestOrientation, l as UsePwaOptions, n as DisplayMode, o as PwaOptions, r as ManifestIcon, s as PwaState, t as CachingStrategy, u as WebAppManifest } from "./types-D94CeRo-.js";
4
4
  import { n as UbeanPiniaOptions, t as PiniaSerializedState } from "./types-Qd7x9Fbj.js";
5
- import { t as UiOptions } from "./types-BXiJV3cm.js";
5
+ import { t as UiOptions } from "./types-DJKoizK4.js";
6
6
  import { App } from "vue";
7
7
  //#region src/pwa/runtime.d.ts
8
8
  export declare function registerSW(swUrl?: string, options?: UsePwaOptions): Promise<ServiceWorkerRegistration | null>;
@@ -3,9 +3,9 @@
3
3
  * @ubean/integrations/ui 类型定义
4
4
  *
5
5
  * ubean UI 模块的配置选项。
6
- * 底层组件库为 @soybeanjs/ui,本模块负责:
6
+ * 底层组件库为 @vean/ui,本模块负责:
7
7
  * 1. 注入 UiResolver 到 unplugin-vue-components(组件自动导入)
8
- * 2. 可选注入 @soybeanjs/ui/styles.css(预构建样式)
8
+ * 2. 可选注入 @vean/ui/styles.css(预构建样式)
9
9
  */
10
10
  /**
11
11
  * UI 模块配置选项
@@ -18,7 +18,7 @@
18
18
  * // 最简启用(含 styles.css)
19
19
  * export default defineConfig({ ui: true });
20
20
  *
21
- * // 使用 UnoCSS 模式(不注入 styles.css,由用户自行配置 @soybeanjs/unocss-shadcn)
21
+ * // 使用 UnoCSS 模式(不注入 styles.css,由用户自行配置 @vean/unocss)
22
22
  * export default defineConfig({ ui: { css: false } });
23
23
  * ```
24
24
  */
@@ -26,10 +26,10 @@ interface UiOptions {
26
26
  /** 是否启用,默认 true */
27
27
  enabled?: boolean;
28
28
  /**
29
- * 是否自动注入 `@soybeanjs/ui/styles.css`,默认 true。
29
+ * 是否自动注入 `@vean/ui/styles.css`,默认 true。
30
30
  *
31
31
  * - `true`(默认):自动注入预构建样式,零配置开箱即用
32
- * - `false`:不注入样式,用户需自行配置 UnoCSS + `@soybeanjs/unocss-shadcn` preset
32
+ * - `false`:不注入样式,用户需自行配置 UnoCSS + `@vean/unocss` preset
33
33
  */
34
34
  css?: boolean;
35
35
  }
@@ -1,8 +1,8 @@
1
- import { t as UiOptions } from "../types-BXiJV3cm.js";
1
+ import { t as UiOptions } from "../types-DJKoizK4.js";
2
2
  import { Plugin } from "vite";
3
3
  //#region src/ui/index.d.ts
4
4
  /**
5
- * ubean UI Vite 插件(@soybeanjs/ui 集成)
5
+ * ubean UI Vite 插件(@vean/ui 集成)
6
6
  *
7
7
  * `ui: true` 即可启用,默认自动注入 styles.css + UiResolver。
8
8
  *
package/dist/ui/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { registerComponentResolver, registerCssImport } from "@ubean/build";
2
- import UiResolver from "@soybeanjs/ui/resolver";
2
+ import UiResolver from "@vean/ui/resolver";
3
3
  //#region src/ui/index.ts
4
- /** @soybeanjs/ui 预构建样式路径 */
5
- const SOYBEAN_UI_STYLES = "@soybeanjs/ui/styles.css";
4
+ /** @vean/ui 预构建样式路径 */
5
+ const VEAN_UI_STYLES = "@vean/ui/styles.css";
6
6
  /**
7
- * ubean UI Vite 插件(@soybeanjs/ui 集成)
7
+ * ubean UI Vite 插件(@vean/ui 集成)
8
8
  *
9
9
  * `ui: true` 即可启用,默认自动注入 styles.css + UiResolver。
10
10
  *
@@ -25,12 +25,12 @@ function ubeanUiPlugin(options = {}) {
25
25
  enforce: "post"
26
26
  }];
27
27
  registerComponentResolver(UiResolver());
28
- if (options.css !== false) registerCssImport(SOYBEAN_UI_STYLES);
28
+ if (options.css !== false) registerCssImport(VEAN_UI_STYLES);
29
29
  return [{
30
30
  name: "ubean:ui",
31
31
  enforce: "pre",
32
32
  config() {
33
- return { optimizeDeps: { include: ["@soybeanjs/ui"] } };
33
+ return { optimizeDeps: { include: ["@vean/ui"] } };
34
34
  }
35
35
  }];
36
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ubean/integrations",
3
- "version": "0.6.0-beta.2",
3
+ "version": "0.6.0-beta.3",
4
4
  "description": "Thin integration bundles for ubean (pwa, fonts, electron, ui, pinia)",
5
5
  "files": [
6
6
  "dist"
@@ -36,28 +36,28 @@
36
36
  }
37
37
  },
38
38
  "dependencies": {
39
- "@ubean/build": "0.6.0-beta.2",
39
+ "@ubean/build": "0.6.0-beta.3",
40
40
  "defu": "6.1.7",
41
41
  "ohash": "^2.0.12",
42
42
  "vite-plugin-electron": "^1.1.2",
43
43
  "vite-plugin-pwa": "^1.3.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@types/node": "^26.6.1",
46
+ "@types/node": "^26.6.2",
47
47
  "typescript": "npm:typescript-native-bridge@latest",
48
- "vite": "npm:@voidzero-dev/vite-plus-core@0.3.3",
49
- "vite-plus": "0.3.3",
48
+ "vite": "npm:@voidzero-dev/vite-plus-core@latest",
49
+ "vite-plus": "latest",
50
50
  "vue": "^3.5.43"
51
51
  },
52
52
  "peerDependencies": {
53
- "@soybeanjs/ui": ">=0.29.0",
53
+ "@vean/ui": ">=0.50.0-0",
54
54
  "electron": "^28.0.0 || ^29.0.0 || ^30.0.0 || ^31.0.0 || ^32.0.0 || ^33.0.0 || ^34.0.0 || ^35.0.0 || ^36.0.0 || ^37.0.0",
55
55
  "pinia": "^2.0.0 || ^3.0.0",
56
56
  "vite": "^5.0.0 || ^6.0.0 || ^7.0.0",
57
57
  "vue": "^3.0.0"
58
58
  },
59
59
  "peerDependenciesMeta": {
60
- "@soybeanjs/ui": {
60
+ "@vean/ui": {
61
61
  "optional": true
62
62
  },
63
63
  "electron": {