@soubiran/vite 0.7.0 → 0.7.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.
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Options } from "./types-DeADD3vz.mjs";
1
+ import { t as Options } from "./types-DRZjV2DX.mjs";
2
2
  import { PluginOption } from "vite";
3
3
 
4
4
  //#region src/index.d.ts
package/dist/index.mjs CHANGED
@@ -7,6 +7,7 @@ import soubiranResolver from "@soubiran/ui/resolver";
7
7
  import soubiranWrapperClasses from "@soubiran/ui/wrapper-classes";
8
8
  import { unheadVueComposablesImports } from "@unhead/vue";
9
9
  import vue from "@vitejs/plugin-vue";
10
+ import { defu } from "defu";
10
11
  import matter from "gray-matter";
11
12
  import fonts from "unplugin-fonts/vite";
12
13
  import icons from "unplugin-icons/vite";
@@ -909,7 +910,7 @@ function factory(options) {
909
910
  soubiranComposablesImports
910
911
  ];
911
912
  if (options.router !== false) imports.push("vue-router");
912
- plugins.push(ui({
913
+ plugins.push(ui(defu(options.ui, {
913
914
  scanPackages: ["@soubiran/ui"],
914
915
  router: options.router !== false,
915
916
  autoImport: {
@@ -929,7 +930,7 @@ function factory(options) {
929
930
  resolvers: [soubiranResolver()]
930
931
  },
931
932
  ui: { colors: { neutral: "neutral" } }
932
- }));
933
+ })));
933
934
  if (options.markdown !== false) plugins.push(markdown({
934
935
  headEnabled: true,
935
936
  wrapperClasses: soubiranWrapperClasses,
@@ -1,3 +1,4 @@
1
+ import { NuxtUIOptions } from "@nuxt/ui/vite";
1
2
  import { Options } from "unplugin-vue-markdown/types";
2
3
 
3
4
  //#region src/markdown/assert.d.ts
@@ -54,6 +55,7 @@ interface Options$1 {
54
55
  pageConfig?: (page: string | null, frontmatter: Record<string, any>) => StructuredDataPageConfig;
55
56
  };
56
57
  };
58
+ ui: NuxtUIOptions;
57
59
  ssg?: SsgOptions | false;
58
60
  meta?: MetaOptions | false;
59
61
  api?: ApiOptions | false;
package/dist/types.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as StructuredDataPageConfig, r as BreadcrumbItem, t as Options } from "./types-DeADD3vz.mjs";
1
+ import { n as StructuredDataPageConfig, r as BreadcrumbItem, t as Options } from "./types-DRZjV2DX.mjs";
2
2
  export { BreadcrumbItem, Options, StructuredDataPageConfig };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@soubiran/vite",
3
3
  "type": "module",
4
- "version": "0.7.0",
4
+ "version": "0.7.1",
5
5
  "author": "Estéban Soubiran <esteban@soubiran.dev>",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/Barbapapazes",
@@ -42,6 +42,7 @@
42
42
  "@unpic/placeholder": "^0.1.2",
43
43
  "@vitejs/plugin-vue": "^6.0.6",
44
44
  "ansis": "^4.2.0",
45
+ "defu": "^6.1.7",
45
46
  "fs-extra": "^11.3.4",
46
47
  "gray-matter": "^4.0.3",
47
48
  "markdown-it": "^14.1.1",
@@ -62,7 +63,7 @@
62
63
  "vite": "^8.0.10",
63
64
  "vite-ssg": "^28.3.0",
64
65
  "vue-router": "^5.0.6",
65
- "@soubiran/ui": "0.7.0"
66
+ "@soubiran/ui": "0.7.1"
66
67
  },
67
68
  "devDependencies": {
68
69
  "tsdown": "^0.21.10"