@unocss/nuxt 66.3.3 → 66.4.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 +12 -11
- package/dist/index.d.ts +12 -11
- package/dist/index.mjs +14 -9
- package/package.json +16 -16
package/dist/index.d.mts
CHANGED
|
@@ -4,9 +4,9 @@ import { AttributifyOptions } from '@unocss/preset-attributify';
|
|
|
4
4
|
import { IconsOptions } from '@unocss/preset-icons';
|
|
5
5
|
import { TagifyOptions } from '@unocss/preset-tagify';
|
|
6
6
|
import { TypographyOptions } from '@unocss/preset-typography';
|
|
7
|
-
import { PresetUnoOptions } from '@unocss/preset-uno';
|
|
8
7
|
import { WebFontsOptions } from '@unocss/preset-web-fonts';
|
|
9
|
-
import {
|
|
8
|
+
import { PresetWind3Options } from '@unocss/preset-wind3';
|
|
9
|
+
import { PresetWind4Options } from '@unocss/preset-wind4';
|
|
10
10
|
import { VitePluginConfig } from '@unocss/vite';
|
|
11
11
|
|
|
12
12
|
interface UnocssNuxtOptions extends UserConfig {
|
|
@@ -56,12 +56,6 @@ interface UnocssNuxtOptions extends UserConfig {
|
|
|
56
56
|
* @default true
|
|
57
57
|
*/
|
|
58
58
|
components?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Enable the default preset
|
|
61
|
-
* Only works when `presets` is not specified
|
|
62
|
-
* @default true
|
|
63
|
-
*/
|
|
64
|
-
uno?: boolean | PresetUnoOptions;
|
|
65
59
|
/**
|
|
66
60
|
* Enable attributify mode and the options of it
|
|
67
61
|
* Only works when `presets` is not specified
|
|
@@ -93,11 +87,17 @@ interface UnocssNuxtOptions extends UserConfig {
|
|
|
93
87
|
*/
|
|
94
88
|
typography?: boolean | TypographyOptions;
|
|
95
89
|
/**
|
|
96
|
-
* Enable the
|
|
90
|
+
* Enable the wind3 preset
|
|
91
|
+
* Only works when `presets` is not specified
|
|
92
|
+
* @default true
|
|
93
|
+
*/
|
|
94
|
+
wind3?: boolean | PresetWind3Options;
|
|
95
|
+
/**
|
|
96
|
+
* Enable the wind4 preset
|
|
97
97
|
* Only works when `presets` is not specified
|
|
98
98
|
* @default false
|
|
99
99
|
*/
|
|
100
|
-
|
|
100
|
+
wind4?: boolean | PresetWind4Options;
|
|
101
101
|
}
|
|
102
102
|
declare module '@nuxt/schema' {
|
|
103
103
|
interface NuxtHooks {
|
|
@@ -119,4 +119,5 @@ declare module '@nuxt/schema' {
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
export {
|
|
122
|
+
export { _default as default };
|
|
123
|
+
export type { UnocssNuxtOptions };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ import { AttributifyOptions } from '@unocss/preset-attributify';
|
|
|
4
4
|
import { IconsOptions } from '@unocss/preset-icons';
|
|
5
5
|
import { TagifyOptions } from '@unocss/preset-tagify';
|
|
6
6
|
import { TypographyOptions } from '@unocss/preset-typography';
|
|
7
|
-
import { PresetUnoOptions } from '@unocss/preset-uno';
|
|
8
7
|
import { WebFontsOptions } from '@unocss/preset-web-fonts';
|
|
9
|
-
import {
|
|
8
|
+
import { PresetWind3Options } from '@unocss/preset-wind3';
|
|
9
|
+
import { PresetWind4Options } from '@unocss/preset-wind4';
|
|
10
10
|
import { VitePluginConfig } from '@unocss/vite';
|
|
11
11
|
|
|
12
12
|
interface UnocssNuxtOptions extends UserConfig {
|
|
@@ -56,12 +56,6 @@ interface UnocssNuxtOptions extends UserConfig {
|
|
|
56
56
|
* @default true
|
|
57
57
|
*/
|
|
58
58
|
components?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Enable the default preset
|
|
61
|
-
* Only works when `presets` is not specified
|
|
62
|
-
* @default true
|
|
63
|
-
*/
|
|
64
|
-
uno?: boolean | PresetUnoOptions;
|
|
65
59
|
/**
|
|
66
60
|
* Enable attributify mode and the options of it
|
|
67
61
|
* Only works when `presets` is not specified
|
|
@@ -93,11 +87,17 @@ interface UnocssNuxtOptions extends UserConfig {
|
|
|
93
87
|
*/
|
|
94
88
|
typography?: boolean | TypographyOptions;
|
|
95
89
|
/**
|
|
96
|
-
* Enable the
|
|
90
|
+
* Enable the wind3 preset
|
|
91
|
+
* Only works when `presets` is not specified
|
|
92
|
+
* @default true
|
|
93
|
+
*/
|
|
94
|
+
wind3?: boolean | PresetWind3Options;
|
|
95
|
+
/**
|
|
96
|
+
* Enable the wind4 preset
|
|
97
97
|
* Only works when `presets` is not specified
|
|
98
98
|
* @default false
|
|
99
99
|
*/
|
|
100
|
-
|
|
100
|
+
wind4?: boolean | PresetWind4Options;
|
|
101
101
|
}
|
|
102
102
|
declare module '@nuxt/schema' {
|
|
103
103
|
interface NuxtHooks {
|
|
@@ -119,4 +119,5 @@ declare module '@nuxt/schema' {
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
export {
|
|
122
|
+
export { _default as default };
|
|
123
|
+
export type { UnocssNuxtOptions };
|
package/dist/index.mjs
CHANGED
|
@@ -8,28 +8,33 @@ import presetAttributify from '@unocss/preset-attributify';
|
|
|
8
8
|
import presetIcons from '@unocss/preset-icons';
|
|
9
9
|
import presetTagify from '@unocss/preset-tagify';
|
|
10
10
|
import presetTypography from '@unocss/preset-typography';
|
|
11
|
-
import presetUno from '@unocss/preset-uno';
|
|
12
11
|
import presetWebFonts from '@unocss/preset-web-fonts';
|
|
13
|
-
import
|
|
12
|
+
import presetWind3 from '@unocss/preset-wind3';
|
|
13
|
+
import presetWind4 from '@unocss/preset-wind4';
|
|
14
14
|
|
|
15
15
|
const defaultPipelineExclude = [cssIdRE];
|
|
16
16
|
|
|
17
|
-
function resolveOptions(options) {
|
|
17
|
+
async function resolveOptions(options) {
|
|
18
|
+
if (options.wind3 && options.wind4) {
|
|
19
|
+
console.warn("[unocss/nuxt]: wind3 and wind4 presets are mutually exclusive. wind3 will be disabled in favor of wind4.");
|
|
20
|
+
options.wind3 = false;
|
|
21
|
+
}
|
|
18
22
|
if (options.presets == null) {
|
|
19
23
|
options.presets = [];
|
|
20
24
|
const presetMap = {
|
|
21
|
-
|
|
25
|
+
wind3: presetWind3,
|
|
26
|
+
wind4: presetWind4,
|
|
22
27
|
attributify: presetAttributify,
|
|
23
|
-
tagify: presetTagify,
|
|
24
28
|
icons: presetIcons,
|
|
25
29
|
webFonts: presetWebFonts,
|
|
26
30
|
typography: presetTypography,
|
|
27
|
-
|
|
31
|
+
tagify: presetTagify
|
|
28
32
|
};
|
|
29
33
|
for (const [key, preset] of Object.entries(presetMap)) {
|
|
30
34
|
const option = options[key];
|
|
31
|
-
if (option)
|
|
35
|
+
if (option) {
|
|
32
36
|
options.presets.push(preset(typeof option === "boolean" ? {} : option));
|
|
37
|
+
}
|
|
33
38
|
}
|
|
34
39
|
}
|
|
35
40
|
options.content ??= {};
|
|
@@ -55,11 +60,11 @@ const index = defineNuxtModule({
|
|
|
55
60
|
disableNuxtInlineStyle: true,
|
|
56
61
|
nuxtLayers: false,
|
|
57
62
|
// presets
|
|
58
|
-
uno: true,
|
|
59
63
|
attributify: false,
|
|
60
64
|
webFonts: false,
|
|
61
65
|
icons: false,
|
|
62
|
-
|
|
66
|
+
wind3: true,
|
|
67
|
+
wind4: false
|
|
63
68
|
},
|
|
64
69
|
async setup(options, nuxt) {
|
|
65
70
|
resolveOptions(options);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "66.
|
|
4
|
+
"version": "66.4.1",
|
|
5
5
|
"description": "Nuxt module for UnoCSS",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -38,23 +38,23 @@
|
|
|
38
38
|
"runtime"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@nuxt/kit": "^3.
|
|
42
|
-
"@unocss/
|
|
43
|
-
"@unocss/
|
|
44
|
-
"@unocss/preset-
|
|
45
|
-
"@unocss/
|
|
46
|
-
"@unocss/preset-
|
|
47
|
-
"@unocss/preset-
|
|
48
|
-
"@unocss/preset-
|
|
49
|
-
"@unocss/preset-
|
|
50
|
-
"@unocss/preset-
|
|
51
|
-
"@unocss/reset": "66.
|
|
52
|
-
"@unocss/
|
|
53
|
-
"@unocss/
|
|
54
|
-
"unocss": "66.
|
|
41
|
+
"@nuxt/kit": "^3.18.0",
|
|
42
|
+
"@unocss/config": "66.4.1",
|
|
43
|
+
"@unocss/preset-attributify": "66.4.1",
|
|
44
|
+
"@unocss/preset-icons": "66.4.1",
|
|
45
|
+
"@unocss/core": "66.4.1",
|
|
46
|
+
"@unocss/preset-typography": "66.4.1",
|
|
47
|
+
"@unocss/preset-web-fonts": "66.4.1",
|
|
48
|
+
"@unocss/preset-wind3": "66.4.1",
|
|
49
|
+
"@unocss/preset-wind4": "66.4.1",
|
|
50
|
+
"@unocss/preset-tagify": "66.4.1",
|
|
51
|
+
"@unocss/reset": "66.4.1",
|
|
52
|
+
"@unocss/webpack": "66.4.1",
|
|
53
|
+
"@unocss/vite": "66.4.1",
|
|
54
|
+
"unocss": "66.4.1"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@nuxt/schema": "^3.
|
|
57
|
+
"@nuxt/schema": "^3.18.0"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "unbuild",
|