@csszyx/unplugin 0.14.5 → 0.15.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/README.md +4 -3
- package/dist/index.cjs +8 -7
- package/dist/index.d.cts +70 -3
- package/dist/index.d.mts +70 -3
- package/dist/index.mjs +4 -4
- package/dist/next-config.d.cts +1 -2
- package/dist/next-config.d.mts +1 -2
- package/dist/next-prebuild.cjs +9 -5
- package/dist/next-prebuild.d.cts +4 -2
- package/dist/next-prebuild.d.mts +4 -2
- package/dist/next-prebuild.mjs +8 -4
- package/dist/next-turbo-loader.cjs +20 -14
- package/dist/next-turbo-loader.d.cts +1 -1
- package/dist/next-turbo-loader.d.mts +1 -1
- package/dist/next-turbo-loader.mjs +19 -13
- package/dist/next-watcher.cjs +2 -2
- package/dist/next-watcher.d.cts +2 -2
- package/dist/next-watcher.d.mts +2 -2
- package/dist/next-watcher.mjs +2 -2
- package/dist/postcss.cjs +124 -0
- package/dist/postcss.d.cts +42 -0
- package/dist/postcss.d.mts +42 -0
- package/dist/postcss.mjs +107 -0
- package/dist/shared/{unplugin.RGzhYt-D.cjs → unplugin.8KYddE6x.cjs} +394 -226
- package/dist/shared/{unplugin.CPEWNSA0.d.cts → unplugin.BGog1Bib.d.cts} +9 -6
- package/dist/shared/{unplugin.CPEWNSA0.d.mts → unplugin.BGog1Bib.d.mts} +9 -6
- package/dist/shared/{unplugin.BU0O4IkX.mjs → unplugin.BLptVbUe.mjs} +22 -61
- package/dist/shared/{unplugin.BXYakiXt.d.cts → unplugin.BT7PqYuK.d.cts} +53 -55
- package/dist/shared/{unplugin.BXYakiXt.d.mts → unplugin.BT7PqYuK.d.mts} +53 -55
- package/dist/shared/{unplugin.Cji6O5jv.cjs → unplugin.BWnmKv07.cjs} +32 -69
- package/dist/shared/{unplugin.NlPvn5P4.mjs → unplugin.Bk9o8_RZ.mjs} +2 -6
- package/dist/shared/{unplugin.VtXstzEh.cjs → unplugin.BzF0V2kw.cjs} +6 -11
- package/dist/shared/{unplugin.CdZxp0x-.d.mts → unplugin.COlI0dJs.d.mts} +1 -1
- package/dist/shared/{unplugin.BnRf0Tvd.mjs → unplugin.D68hyqgb.mjs} +347 -178
- package/dist/shared/{unplugin.DN95k991.mjs → unplugin.DAzgbtuZ.mjs} +2 -2
- package/dist/shared/unplugin.DDSWQJYX.cjs +289 -0
- package/dist/shared/unplugin.DH_ij6cf.mjs +258 -0
- package/dist/shared/{unplugin.BZPdvVcj.mjs → unplugin.DK0b4fr7.mjs} +105 -127
- package/dist/shared/{unplugin.D8BxOOkA.cjs → unplugin.J6ue_lRJ.cjs} +121 -142
- package/dist/shared/{unplugin.DVbPNK3W.cjs → unplugin.gksolKh2.cjs} +6 -6
- package/dist/shared/{unplugin.xeED_qwh.d.cts → unplugin.rWOMecQs.d.cts} +1 -1
- package/dist/vite.cjs +4 -4
- package/dist/vite.d.cts +2 -2
- package/dist/vite.d.mts +1 -1
- package/dist/vite.mjs +4 -4
- package/dist/webpack.cjs +4 -4
- package/dist/webpack.d.cts +2 -1
- package/dist/webpack.d.mts +1 -1
- package/dist/webpack.mjs +4 -4
- package/package.json +19 -9
- package/dist/shared/unplugin.B3XoSRB8.mjs +0 -40
- package/dist/shared/unplugin.BkRah5Ot.cjs +0 -48
package/dist/webpack.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const unplugin = require('./shared/unplugin.
|
|
5
|
+
const unplugin = require('./shared/unplugin.8KYddE6x.cjs');
|
|
6
6
|
require('node:crypto');
|
|
7
7
|
require('node:fs');
|
|
8
8
|
require('node:module');
|
|
@@ -16,12 +16,12 @@ require('@csszyx/svelte-adapter');
|
|
|
16
16
|
require('@csszyx/types');
|
|
17
17
|
require('@csszyx/vue-adapter');
|
|
18
18
|
require('unplugin');
|
|
19
|
-
require('./shared/unplugin.
|
|
19
|
+
require('./shared/unplugin.DDSWQJYX.cjs');
|
|
20
|
+
require('./shared/unplugin.BzF0V2kw.cjs');
|
|
20
21
|
require('./css-mangler.cjs');
|
|
21
22
|
require('postcss');
|
|
22
23
|
require('postcss-selector-parser');
|
|
23
|
-
require('./shared/unplugin.
|
|
24
|
-
require('./shared/unplugin.BkRah5Ot.cjs');
|
|
24
|
+
require('./shared/unplugin.J6ue_lRJ.cjs');
|
|
25
25
|
require('node:zlib');
|
|
26
26
|
require('postcss-value-parser');
|
|
27
27
|
|
package/dist/webpack.d.cts
CHANGED
package/dist/webpack.d.mts
CHANGED
package/dist/webpack.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { a3 as default } from './shared/unplugin.D68hyqgb.mjs';
|
|
2
2
|
import 'node:crypto';
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'node:module';
|
|
@@ -12,11 +12,11 @@ import '@csszyx/svelte-adapter';
|
|
|
12
12
|
import '@csszyx/types';
|
|
13
13
|
import '@csszyx/vue-adapter';
|
|
14
14
|
import 'unplugin';
|
|
15
|
-
import './shared/unplugin.
|
|
15
|
+
import './shared/unplugin.DH_ij6cf.mjs';
|
|
16
|
+
import './shared/unplugin.Bk9o8_RZ.mjs';
|
|
16
17
|
import './css-mangler.mjs';
|
|
17
18
|
import 'postcss';
|
|
18
19
|
import 'postcss-selector-parser';
|
|
19
|
-
import './shared/unplugin.
|
|
20
|
-
import './shared/unplugin.B3XoSRB8.mjs';
|
|
20
|
+
import './shared/unplugin.DK0b4fr7.mjs';
|
|
21
21
|
import 'node:zlib';
|
|
22
22
|
import 'postcss-value-parser';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@csszyx/unplugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"description": "Vite and Webpack integration for csszyx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"csszyx",
|
|
@@ -103,6 +103,16 @@
|
|
|
103
103
|
"types": "./dist/next-watcher.d.cts",
|
|
104
104
|
"default": "./dist/next-watcher.cjs"
|
|
105
105
|
}
|
|
106
|
+
},
|
|
107
|
+
"./postcss": {
|
|
108
|
+
"import": {
|
|
109
|
+
"types": "./dist/postcss.d.mts",
|
|
110
|
+
"default": "./dist/postcss.mjs"
|
|
111
|
+
},
|
|
112
|
+
"require": {
|
|
113
|
+
"types": "./dist/postcss.d.cts",
|
|
114
|
+
"default": "./dist/postcss.cjs"
|
|
115
|
+
}
|
|
106
116
|
}
|
|
107
117
|
},
|
|
108
118
|
"main": "dist/index.cjs",
|
|
@@ -117,14 +127,14 @@
|
|
|
117
127
|
"postcss-value-parser": "^4.2.0",
|
|
118
128
|
"proper-lockfile": "^4.1.2",
|
|
119
129
|
"unplugin": "^3.3.0",
|
|
120
|
-
"@csszyx/compiler": "0.
|
|
121
|
-
"@csszyx/
|
|
122
|
-
"@csszyx/
|
|
123
|
-
"@csszyx/vue-adapter": "0.
|
|
124
|
-
"@csszyx/
|
|
130
|
+
"@csszyx/compiler": "0.15.1",
|
|
131
|
+
"@csszyx/svelte-adapter": "0.15.1",
|
|
132
|
+
"@csszyx/types": "0.15.1",
|
|
133
|
+
"@csszyx/vue-adapter": "0.15.1",
|
|
134
|
+
"@csszyx/core": "0.15.1"
|
|
125
135
|
},
|
|
126
136
|
"peerDependencies": {
|
|
127
|
-
"@csszyx/runtime": "^0.
|
|
137
|
+
"@csszyx/runtime": "^0.15.1"
|
|
128
138
|
},
|
|
129
139
|
"devDependencies": {
|
|
130
140
|
"@tailwindcss/node": "4.3.3",
|
|
@@ -137,8 +147,8 @@
|
|
|
137
147
|
"vite": "^8.2.1",
|
|
138
148
|
"vitest": "^4.1.10",
|
|
139
149
|
"webpack": "^5.109.0",
|
|
140
|
-
"@csszyx/runtime": "0.
|
|
141
|
-
"@csszyx/tooling-metadata": "0.
|
|
150
|
+
"@csszyx/runtime": "0.15.1",
|
|
151
|
+
"@csszyx/tooling-metadata": "0.15.1"
|
|
142
152
|
},
|
|
143
153
|
"sideEffects": false,
|
|
144
154
|
"engines": {
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
function sortStrings(values) {
|
|
2
|
-
return [...values].sort((a, b) => {
|
|
3
|
-
if (a < b) return -1;
|
|
4
|
-
if (a > b) return 1;
|
|
5
|
-
return 0;
|
|
6
|
-
});
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
const BACKSLASH = String.fromCodePoint(92);
|
|
10
|
-
function unicodeEscape(hexadecimal) {
|
|
11
|
-
return `${BACKSLASH}u${hexadecimal}`;
|
|
12
|
-
}
|
|
13
|
-
function replaceEveryLiteral(value, search, replacement) {
|
|
14
|
-
return value.replaceAll(search, () => replacement);
|
|
15
|
-
}
|
|
16
|
-
function escapeSingleQuotedString(value) {
|
|
17
|
-
let escaped = replaceEveryLiteral(value, BACKSLASH, BACKSLASH.repeat(2));
|
|
18
|
-
escaped = replaceEveryLiteral(escaped, "'", `${BACKSLASH}'`);
|
|
19
|
-
escaped = replaceEveryLiteral(escaped, "\r", `${BACKSLASH}r`);
|
|
20
|
-
return replaceEveryLiteral(escaped, "\n", `${BACKSLASH}n`);
|
|
21
|
-
}
|
|
22
|
-
function escapeDoubleQuotedString(value) {
|
|
23
|
-
const escaped = replaceEveryLiteral(value, BACKSLASH, BACKSLASH.repeat(2));
|
|
24
|
-
return replaceEveryLiteral(escaped, '"', `${BACKSLASH}"`);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function escapeHtmlAttribute(value) {
|
|
28
|
-
let escaped = replaceEveryLiteral(value, "&", "&");
|
|
29
|
-
escaped = replaceEveryLiteral(escaped, '"', """);
|
|
30
|
-
escaped = replaceEveryLiteral(escaped, "<", "<");
|
|
31
|
-
return replaceEveryLiteral(escaped, ">", ">");
|
|
32
|
-
}
|
|
33
|
-
const RAW_SAFELIST_MARKER = "<!-- csszyx exact scanner candidates -->";
|
|
34
|
-
function renderTailwindScannerCandidates(classNames) {
|
|
35
|
-
return `${RAW_SAFELIST_MARKER}
|
|
36
|
-
${classNames.join("\n")}
|
|
37
|
-
`;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export { replaceEveryLiteral as a, escapeDoubleQuotedString as b, escapeSingleQuotedString as c, escapeHtmlAttribute as e, renderTailwindScannerCandidates as r, sortStrings as s, unicodeEscape as u };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
function sortStrings(values) {
|
|
4
|
-
return [...values].sort((a, b) => {
|
|
5
|
-
if (a < b) return -1;
|
|
6
|
-
if (a > b) return 1;
|
|
7
|
-
return 0;
|
|
8
|
-
});
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const BACKSLASH = String.fromCodePoint(92);
|
|
12
|
-
function unicodeEscape(hexadecimal) {
|
|
13
|
-
return `${BACKSLASH}u${hexadecimal}`;
|
|
14
|
-
}
|
|
15
|
-
function replaceEveryLiteral(value, search, replacement) {
|
|
16
|
-
return value.replaceAll(search, () => replacement);
|
|
17
|
-
}
|
|
18
|
-
function escapeSingleQuotedString(value) {
|
|
19
|
-
let escaped = replaceEveryLiteral(value, BACKSLASH, BACKSLASH.repeat(2));
|
|
20
|
-
escaped = replaceEveryLiteral(escaped, "'", `${BACKSLASH}'`);
|
|
21
|
-
escaped = replaceEveryLiteral(escaped, "\r", `${BACKSLASH}r`);
|
|
22
|
-
return replaceEveryLiteral(escaped, "\n", `${BACKSLASH}n`);
|
|
23
|
-
}
|
|
24
|
-
function escapeDoubleQuotedString(value) {
|
|
25
|
-
const escaped = replaceEveryLiteral(value, BACKSLASH, BACKSLASH.repeat(2));
|
|
26
|
-
return replaceEveryLiteral(escaped, '"', `${BACKSLASH}"`);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function escapeHtmlAttribute(value) {
|
|
30
|
-
let escaped = replaceEveryLiteral(value, "&", "&");
|
|
31
|
-
escaped = replaceEveryLiteral(escaped, '"', """);
|
|
32
|
-
escaped = replaceEveryLiteral(escaped, "<", "<");
|
|
33
|
-
return replaceEveryLiteral(escaped, ">", ">");
|
|
34
|
-
}
|
|
35
|
-
const RAW_SAFELIST_MARKER = "<!-- csszyx exact scanner candidates -->";
|
|
36
|
-
function renderTailwindScannerCandidates(classNames) {
|
|
37
|
-
return `${RAW_SAFELIST_MARKER}
|
|
38
|
-
${classNames.join("\n")}
|
|
39
|
-
`;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
exports.escapeDoubleQuotedString = escapeDoubleQuotedString;
|
|
43
|
-
exports.escapeHtmlAttribute = escapeHtmlAttribute;
|
|
44
|
-
exports.escapeSingleQuotedString = escapeSingleQuotedString;
|
|
45
|
-
exports.renderTailwindScannerCandidates = renderTailwindScannerCandidates;
|
|
46
|
-
exports.replaceEveryLiteral = replaceEveryLiteral;
|
|
47
|
-
exports.sortStrings = sortStrings;
|
|
48
|
-
exports.unicodeEscape = unicodeEscape;
|