unocss 0.51.0 → 0.51.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.cjs CHANGED
@@ -34,6 +34,9 @@ const transformerAttributifyJsx__default = /*#__PURE__*/_interopDefaultLegacy(tr
34
34
  function defineConfig(config) {
35
35
  return config;
36
36
  }
37
+ function definePreset(preset) {
38
+ return preset;
39
+ }
37
40
 
38
41
  exports.presetUno = presetUno__default;
39
42
  exports.presetAttributify = presetAttributify__default;
@@ -48,6 +51,7 @@ exports.transformerVariantGroup = transformerVariantGroup__default;
48
51
  exports.transformerCompileClass = transformerCompileClass__default;
49
52
  exports.transformerAttributifyJsx = transformerAttributifyJsx__default;
50
53
  exports.defineConfig = defineConfig;
54
+ exports.definePreset = definePreset;
51
55
  for (const k in core) {
52
56
  if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = core[k];
53
57
  }
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { UserConfig } from '@unocss/core';
1
+ import { UserConfig, Preset } from '@unocss/core';
2
2
  export * from '@unocss/core';
3
3
  import { Theme } from '@unocss/preset-uno';
4
4
  export { default as presetUno } from '@unocss/preset-uno';
@@ -15,5 +15,6 @@ export { default as transformerCompileClass } from '@unocss/transformer-compile-
15
15
  export { default as transformerAttributifyJsx } from '@unocss/transformer-attributify-jsx';
16
16
 
17
17
  declare function defineConfig<Theme extends {} = Theme>(config: UserConfig<Theme>): UserConfig<Theme>;
18
+ declare function definePreset<Theme extends {} = {}>(preset: Preset<Theme>): Preset<Theme>;
18
19
 
19
- export { defineConfig };
20
+ export { defineConfig, definePreset };
package/dist/index.mjs CHANGED
@@ -15,5 +15,8 @@ export { default as transformerAttributifyJsx } from '@unocss/transformer-attrib
15
15
  function defineConfig(config) {
16
16
  return config;
17
17
  }
18
+ function definePreset(preset) {
19
+ return preset;
20
+ }
18
21
 
19
- export { defineConfig };
22
+ export { defineConfig, definePreset };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unocss",
3
- "version": "0.51.0",
3
+ "version": "0.51.1",
4
4
  "description": "The instant on-demand Atomic CSS engine.",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -103,7 +103,7 @@
103
103
  "node": ">=14"
104
104
  },
105
105
  "peerDependencies": {
106
- "@unocss/webpack": "0.51.0"
106
+ "@unocss/webpack": "0.51.1"
107
107
  },
108
108
  "peerDependenciesMeta": {
109
109
  "@unocss/webpack": {
@@ -111,29 +111,29 @@
111
111
  }
112
112
  },
113
113
  "dependencies": {
114
- "@unocss/astro": "0.51.0",
115
- "@unocss/cli": "0.51.0",
116
- "@unocss/core": "0.51.0",
117
- "@unocss/extractor-arbitrary-variants": "0.51.0",
118
- "@unocss/postcss": "0.51.0",
119
- "@unocss/preset-attributify": "0.51.0",
120
- "@unocss/preset-mini": "0.51.0",
121
- "@unocss/preset-icons": "0.51.0",
122
- "@unocss/preset-tagify": "0.51.0",
123
- "@unocss/preset-typography": "0.51.0",
124
- "@unocss/preset-uno": "0.51.0",
125
- "@unocss/preset-web-fonts": "0.51.0",
126
- "@unocss/preset-wind": "0.51.0",
127
- "@unocss/reset": "0.51.0",
128
- "@unocss/transformer-attributify-jsx": "0.51.0",
129
- "@unocss/transformer-attributify-jsx-babel": "0.51.0",
130
- "@unocss/transformer-compile-class": "0.51.0",
131
- "@unocss/transformer-variant-group": "0.51.0",
132
- "@unocss/vite": "0.51.0",
133
- "@unocss/transformer-directives": "0.51.0"
114
+ "@unocss/astro": "0.51.1",
115
+ "@unocss/cli": "0.51.1",
116
+ "@unocss/core": "0.51.1",
117
+ "@unocss/extractor-arbitrary-variants": "0.51.1",
118
+ "@unocss/postcss": "0.51.1",
119
+ "@unocss/preset-attributify": "0.51.1",
120
+ "@unocss/preset-icons": "0.51.1",
121
+ "@unocss/preset-mini": "0.51.1",
122
+ "@unocss/preset-tagify": "0.51.1",
123
+ "@unocss/preset-typography": "0.51.1",
124
+ "@unocss/preset-uno": "0.51.1",
125
+ "@unocss/preset-web-fonts": "0.51.1",
126
+ "@unocss/preset-wind": "0.51.1",
127
+ "@unocss/reset": "0.51.1",
128
+ "@unocss/transformer-attributify-jsx": "0.51.1",
129
+ "@unocss/transformer-attributify-jsx-babel": "0.51.1",
130
+ "@unocss/transformer-compile-class": "0.51.1",
131
+ "@unocss/transformer-directives": "0.51.1",
132
+ "@unocss/transformer-variant-group": "0.51.1",
133
+ "@unocss/vite": "0.51.1"
134
134
  },
135
135
  "devDependencies": {
136
- "@unocss/webpack": "0.51.0"
136
+ "@unocss/webpack": "0.51.1"
137
137
  },
138
138
  "scripts": {
139
139
  "build": "unbuild",