@unocss/postcss 0.55.1 → 0.55.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.cjs CHANGED
@@ -10,12 +10,12 @@ const config = require('@unocss/config');
10
10
  const cssTree = require('css-tree');
11
11
  const MagicString = require('magic-string');
12
12
 
13
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
13
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
14
14
 
15
- const process__default = /*#__PURE__*/_interopDefaultLegacy(process);
16
- const fg__default = /*#__PURE__*/_interopDefaultLegacy(fg);
17
- const postcss__default = /*#__PURE__*/_interopDefaultLegacy(postcss);
18
- const MagicString__default = /*#__PURE__*/_interopDefaultLegacy(MagicString);
15
+ const process__default = /*#__PURE__*/_interopDefaultCompat(process);
16
+ const fg__default = /*#__PURE__*/_interopDefaultCompat(fg);
17
+ const postcss__default = /*#__PURE__*/_interopDefaultCompat(postcss);
18
+ const MagicString__default = /*#__PURE__*/_interopDefaultCompat(MagicString);
19
19
 
20
20
  const defaultFilesystemGlobs = [
21
21
  "**/*.{html,js,ts,jsx,tsx,vue,svelte,astro,elm,php,phtml,mdx,md}"
@@ -0,0 +1,29 @@
1
+ import { Root, Result } from 'postcss';
2
+ import { UserConfig } from '@unocss/core';
3
+
4
+ interface UnoPostcssPluginOptions {
5
+ content?: (string | {
6
+ raw: string;
7
+ extension: string;
8
+ })[];
9
+ directiveMap?: {
10
+ apply?: string;
11
+ screen?: string;
12
+ theme?: string;
13
+ unocss?: string;
14
+ };
15
+ cwd?: string;
16
+ configOrPath?: string | UserConfig;
17
+ }
18
+
19
+ declare function unocss(options?: UnoPostcssPluginOptions): {
20
+ postcssPlugin: string;
21
+ plugins: ((root: Root, result: Result) => Promise<void>)[];
22
+ };
23
+ declare namespace unocss {
24
+ export var postcss: boolean;
25
+ var _a: typeof unocss;
26
+ export { _a as default };
27
+ }
28
+
29
+ export { type UnoPostcssPluginOptions, unocss as default };
@@ -0,0 +1,29 @@
1
+ import { Root, Result } from 'postcss';
2
+ import { UserConfig } from '@unocss/core';
3
+
4
+ interface UnoPostcssPluginOptions {
5
+ content?: (string | {
6
+ raw: string;
7
+ extension: string;
8
+ })[];
9
+ directiveMap?: {
10
+ apply?: string;
11
+ screen?: string;
12
+ theme?: string;
13
+ unocss?: string;
14
+ };
15
+ cwd?: string;
16
+ configOrPath?: string | UserConfig;
17
+ }
18
+
19
+ declare function unocss(options?: UnoPostcssPluginOptions): {
20
+ postcssPlugin: string;
21
+ plugins: ((root: Root, result: Result) => Promise<void>)[];
22
+ };
23
+ declare namespace unocss {
24
+ export var postcss: boolean;
25
+ var _a: typeof unocss;
26
+ export { _a as default };
27
+ }
28
+
29
+ export { type UnoPostcssPluginOptions, unocss as default };
package/dist/index.d.ts CHANGED
@@ -26,4 +26,4 @@ declare namespace unocss {
26
26
  export { _a as default };
27
27
  }
28
28
 
29
- export { UnoPostcssPluginOptions, unocss as default };
29
+ export { type UnoPostcssPluginOptions, unocss as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/postcss",
3
- "version": "0.55.1",
3
+ "version": "0.55.3",
4
4
  "description": "PostCSS plugin for UnoCSS",
5
5
  "author": "sibbng <sibbngheid@gmail.com>",
6
6
  "license": "MIT",
@@ -38,10 +38,10 @@
38
38
  "dependencies": {
39
39
  "css-tree": "^2.3.1",
40
40
  "fast-glob": "^3.3.1",
41
- "magic-string": "^0.30.2",
41
+ "magic-string": "^0.30.3",
42
42
  "postcss": "^8.4.28",
43
- "@unocss/config": "0.55.1",
44
- "@unocss/core": "0.55.1"
43
+ "@unocss/config": "0.55.3",
44
+ "@unocss/core": "0.55.3"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "unbuild",