@vanduo-oss/vue 0.1.0 → 0.2.0

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/plugin.d.ts CHANGED
@@ -1,8 +1,18 @@
1
1
  import type { Plugin } from "vue";
2
+ import type { ThemeDefaults } from "@vanduo-oss/core";
2
3
  export declare function loadVanduoRuntime(): Promise<unknown>;
4
+ export interface VanduoVueOptions {
5
+ /**
6
+ * Site-specific theme default overrides, shallow-merged over the generic
7
+ * core baseline (e.g. `{ PRIMARY_DARK: "blue" }`). Applied synchronously on
8
+ * install, before the theme model first reads defaults.
9
+ */
10
+ themeDefaults?: Partial<ThemeDefaults>;
11
+ }
3
12
  /**
4
- * Vue plugin: `app.use(VanduoVue)`. Triggers the client-only runtime load so
5
- * the framework's JS components initialise once the app mounts.
13
+ * Vue plugin: `app.use(VanduoVue, options?)`. Applies any `themeDefaults`
14
+ * overrides, then triggers the client-only runtime load so the framework's JS
15
+ * components initialise once the app mounts.
6
16
  */
7
- export declare const VanduoVue: Plugin;
17
+ export declare const VanduoVue: Plugin<VanduoVueOptions>;
8
18
  export default VanduoVue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vanduo-oss/vue",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "VD2 — first-class Vue 3 components and composables for the Vanduo design system.",
5
5
  "type": "module",
6
6
  "homepage": "https://vanduo.dev",
@@ -53,7 +53,7 @@
53
53
  "vue-tsc": "^3.3.5"
54
54
  },
55
55
  "engines": {
56
- "node": ">=20",
56
+ "node": ">=24",
57
57
  "pnpm": ">=10"
58
58
  },
59
59
  "scripts": {
@@ -1,10 +0,0 @@
1
- /** vd2 docs site overrides — core remains the generic Vanduo baseline. */
2
- export declare const SITE_THEME_DEFAULTS: {
3
- readonly PRIMARY_DARK: "blue";
4
- readonly PALETTE: import("@vanduo-oss/core").Palette;
5
- readonly PRIMARY_LIGHT: string;
6
- readonly NEUTRAL: string;
7
- readonly RADIUS: import("@vanduo-oss/core").RadiusOption;
8
- readonly FONT: string;
9
- readonly THEME: import("@vanduo-oss/core").ThemeMode;
10
- };