tailwind-styled-v4 5.0.39 → 5.0.411
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/analyzer.js +38 -13
- package/dist/analyzer.js.map +1 -1
- package/dist/analyzer.mjs +104 -72
- package/dist/analyzer.mjs.map +1 -1
- package/dist/animate.js +33 -7
- package/dist/animate.js.map +1 -1
- package/dist/animate.mjs +55 -22
- package/dist/animate.mjs.map +1 -1
- package/dist/atomic.js +39 -10
- package/dist/atomic.js.map +1 -1
- package/dist/atomic.mjs +56 -23
- package/dist/atomic.mjs.map +1 -1
- package/dist/cli.js +151 -39
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +321 -203
- package/dist/cli.mjs.map +1 -1
- package/dist/compiler.js +57 -16
- package/dist/compiler.js.map +1 -1
- package/dist/compiler.mjs +71 -28
- package/dist/compiler.mjs.map +1 -1
- package/dist/dashboard.js +0 -1
- package/dist/dashboard.js.map +1 -1
- package/dist/devtools.js +16 -2
- package/dist/devtools.js.map +1 -1
- package/dist/devtools.mjs +21 -2
- package/dist/devtools.mjs.map +1 -1
- package/dist/engine.js +140 -56
- package/dist/engine.js.map +1 -1
- package/dist/engine.mjs +238 -148
- package/dist/engine.mjs.map +1 -1
- package/dist/index.js +50 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +74 -29
- package/dist/index.mjs.map +1 -1
- package/dist/next.js +97 -41
- package/dist/next.js.map +1 -1
- package/dist/next.mjs +177 -115
- package/dist/next.mjs.map +1 -1
- package/dist/plugin-api.js +0 -1
- package/dist/plugin-api.js.map +1 -1
- package/dist/plugin-registry.js +5 -2
- package/dist/plugin-registry.js.map +1 -1
- package/dist/plugin-registry.mjs +9 -2
- package/dist/plugin-registry.mjs.map +1 -1
- package/dist/plugin.js +0 -1
- package/dist/plugin.js.map +1 -1
- package/dist/preset.js +0 -1
- package/dist/preset.js.map +1 -1
- package/dist/rspack.js +22 -8
- package/dist/rspack.js.map +1 -1
- package/dist/rspack.mjs +39 -18
- package/dist/rspack.mjs.map +1 -1
- package/dist/runtime-css.js +0 -1
- package/dist/runtime-css.js.map +1 -1
- package/dist/runtime.js +0 -1
- package/dist/runtime.js.map +1 -1
- package/dist/scanner.js +25 -9
- package/dist/scanner.js.map +1 -1
- package/dist/scanner.mjs +84 -61
- package/dist/scanner.mjs.map +1 -1
- package/dist/shared.js +91 -37
- package/dist/shared.js.map +1 -1
- package/dist/shared.mjs +122 -64
- package/dist/shared.mjs.map +1 -1
- package/dist/storybook-addon.js +0 -1
- package/dist/storybook-addon.js.map +1 -1
- package/dist/svelte.js +40 -9
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +57 -28
- package/dist/svelte.mjs.map +1 -1
- package/dist/syntax.js +6 -3
- package/dist/syntax.js.map +1 -1
- package/dist/syntax.mjs +30 -23
- package/dist/syntax.mjs.map +1 -1
- package/dist/testing.js +0 -1
- package/dist/testing.js.map +1 -1
- package/dist/theme.js +21 -4
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +41 -17
- package/dist/theme.mjs.map +1 -1
- package/dist/turbopackLoader.js +58 -16
- package/dist/turbopackLoader.js.map +1 -1
- package/dist/turbopackLoader.mjs +89 -45
- package/dist/turbopackLoader.mjs.map +1 -1
- package/dist/tw.js +153 -39
- package/dist/tw.js.map +1 -1
- package/dist/tw.mjs +321 -203
- package/dist/tw.mjs.map +1 -1
- package/dist/vite.js +131 -54
- package/dist/vite.js.map +1 -1
- package/dist/vite.mjs +226 -143
- package/dist/vite.mjs.map +1 -1
- package/dist/vue.js +40 -9
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +57 -28
- package/dist/vue.mjs.map +1 -1
- package/dist/webpackLoader.js +40 -10
- package/dist/webpackLoader.js.map +1 -1
- package/dist/webpackLoader.mjs +59 -27
- package/dist/webpackLoader.mjs.map +1 -1
- package/package.json +1 -1
package/dist/next.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
const __importMetaUrl = typeof __filename !== "undefined" ? require("node:url").pathToFileURL(__filename).href : "file://unknown";
|
|
2
1
|
/* tailwind-styled-v4 v5.0.4 | MIT | https://github.com/dictionar32/tailwind-styled-v4 */
|
|
3
2
|
"use strict";
|
|
4
3
|
var __create = Object.create;
|
|
@@ -32,17 +31,27 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
32
31
|
));
|
|
33
32
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
34
33
|
|
|
34
|
+
// node_modules/tsup/assets/cjs_shims.js
|
|
35
|
+
var getImportMetaUrl, importMetaUrl;
|
|
36
|
+
var init_cjs_shims = __esm({
|
|
37
|
+
"node_modules/tsup/assets/cjs_shims.js"() {
|
|
38
|
+
"use strict";
|
|
39
|
+
getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.tagName.toUpperCase() === "SCRIPT" ? document.currentScript.src : new URL("main.js", document.baseURI).href;
|
|
40
|
+
importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
|
|
35
44
|
// packages/domain/shared/src/workerResolver.ts
|
|
36
|
-
function getDirnameFromUrl(
|
|
37
|
-
if (!
|
|
45
|
+
function getDirnameFromUrl(importMetaUrl2) {
|
|
46
|
+
if (!importMetaUrl2) return "";
|
|
38
47
|
if (isBrowser) return "";
|
|
39
48
|
try {
|
|
40
49
|
const nodeUrl = require(NODE_URL);
|
|
41
50
|
const nodePath = require(NODE_PATH);
|
|
42
|
-
return nodePath.dirname(nodeUrl.fileURLToPath(
|
|
51
|
+
return nodePath.dirname(nodeUrl.fileURLToPath(importMetaUrl2));
|
|
43
52
|
} catch {
|
|
44
|
-
if (
|
|
45
|
-
const filePath =
|
|
53
|
+
if (importMetaUrl2.startsWith("file://")) {
|
|
54
|
+
const filePath = importMetaUrl2.slice(7);
|
|
46
55
|
const lastSlash = filePath.lastIndexOf("/");
|
|
47
56
|
return lastSlash >= 0 ? filePath.slice(0, lastSlash) : filePath;
|
|
48
57
|
}
|
|
@@ -73,12 +82,12 @@ function resolveWorkerPath(opts) {
|
|
|
73
82
|
}
|
|
74
83
|
const {
|
|
75
84
|
basename,
|
|
76
|
-
importMetaUrl,
|
|
85
|
+
importMetaUrl: importMetaUrl2,
|
|
77
86
|
extensions = [".cjs", ".js", ".mjs"],
|
|
78
87
|
subdirs = [".", "workers", "lib"],
|
|
79
88
|
required = true
|
|
80
89
|
} = opts;
|
|
81
|
-
const runtimeDir = getDirnameFromUrl(
|
|
90
|
+
const runtimeDir = getDirnameFromUrl(importMetaUrl2);
|
|
82
91
|
for (const subdir of subdirs) {
|
|
83
92
|
for (const ext of extensions) {
|
|
84
93
|
const candidate = resolvePath(runtimeDir, subdir, `${basename}${ext}`);
|
|
@@ -104,10 +113,10 @@ Ensure the package is built: npm run build`
|
|
|
104
113
|
}
|
|
105
114
|
return { path: "", extension: "", format: "cjs" };
|
|
106
115
|
}
|
|
107
|
-
function resolveLoaderPath(loaderBasename,
|
|
116
|
+
function resolveLoaderPath(loaderBasename, importMetaUrl2) {
|
|
108
117
|
return resolveWorkerPath({
|
|
109
118
|
basename: loaderBasename,
|
|
110
|
-
importMetaUrl,
|
|
119
|
+
importMetaUrl: importMetaUrl2,
|
|
111
120
|
extensions: [".cjs", ".js", ".mjs"],
|
|
112
121
|
subdirs: [".", "loaders", "lib"]
|
|
113
122
|
}).path;
|
|
@@ -116,6 +125,7 @@ var isBrowser, NODE_URL, NODE_FS, NODE_PATH;
|
|
|
116
125
|
var init_workerResolver = __esm({
|
|
117
126
|
"packages/domain/shared/src/workerResolver.ts"() {
|
|
118
127
|
"use strict";
|
|
128
|
+
init_cjs_shims();
|
|
119
129
|
isBrowser = typeof window !== "undefined" || typeof document !== "undefined";
|
|
120
130
|
NODE_URL = typeof window === "undefined" || typeof document === "undefined" ? "node:url" : null;
|
|
121
131
|
NODE_FS = typeof window === "undefined" || typeof document === "undefined" ? "node:fs" : null;
|
|
@@ -124,6 +134,15 @@ var init_workerResolver = __esm({
|
|
|
124
134
|
});
|
|
125
135
|
|
|
126
136
|
// packages/domain/shared/src/native-resolution.ts
|
|
137
|
+
function _safeCreateRequire() {
|
|
138
|
+
if (typeof import_meta !== "undefined" && importMetaUrl && !importMetaUrl.includes("unknown")) {
|
|
139
|
+
return (0, import_node_module.createRequire)(importMetaUrl);
|
|
140
|
+
}
|
|
141
|
+
if (typeof __filename !== "undefined") {
|
|
142
|
+
return (0, import_node_module.createRequire)(__filename);
|
|
143
|
+
}
|
|
144
|
+
return (0, import_node_module.createRequire)(new URL(`file://${process.cwd()}/`).href);
|
|
145
|
+
}
|
|
127
146
|
function platformKey() {
|
|
128
147
|
if (isBrowser2) return "browser";
|
|
129
148
|
return `${process.platform}-${process.arch}`;
|
|
@@ -205,17 +224,17 @@ function resolveNativeBinary(runtimeDir) {
|
|
|
205
224
|
}
|
|
206
225
|
return { path: null, source: "not-found", platform, tried };
|
|
207
226
|
}
|
|
208
|
-
var import_node_module, fs, path, isBrowser2, _require, PLATFORM_MAP;
|
|
227
|
+
var import_node_module, fs, path, import_meta, isBrowser2, _require, PLATFORM_MAP;
|
|
209
228
|
var init_native_resolution = __esm({
|
|
210
229
|
"packages/domain/shared/src/native-resolution.ts"() {
|
|
211
230
|
"use strict";
|
|
231
|
+
init_cjs_shims();
|
|
212
232
|
import_node_module = require("module");
|
|
213
233
|
fs = __toESM(require("fs"));
|
|
214
234
|
path = __toESM(require("path"));
|
|
235
|
+
import_meta = {};
|
|
215
236
|
isBrowser2 = typeof window !== "undefined" || typeof document !== "undefined";
|
|
216
|
-
_require = (
|
|
217
|
-
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : __importMetaUrl
|
|
218
|
-
);
|
|
237
|
+
_require = _safeCreateRequire();
|
|
219
238
|
PLATFORM_MAP = {
|
|
220
239
|
"linux-x64": ["@tailwind-styled/native-linux-x64-gnu", "@tailwind-styled/native-linux-x64"],
|
|
221
240
|
"linux-arm64": ["@tailwind-styled/native-linux-arm64-gnu", "@tailwind-styled/native-linux-arm64"],
|
|
@@ -232,6 +251,7 @@ var _loadNative, log, NATIVE_UNAVAILABLE_MESSAGE, nativeBridge, bridgeLoadAttemp
|
|
|
232
251
|
var init_nativeBridge = __esm({
|
|
233
252
|
"packages/domain/compiler/src/nativeBridge.ts"() {
|
|
234
253
|
"use strict";
|
|
254
|
+
init_cjs_shims();
|
|
235
255
|
init_src2();
|
|
236
256
|
_loadNative = (path12) => require(path12);
|
|
237
257
|
log = (...args) => {
|
|
@@ -259,7 +279,7 @@ var init_nativeBridge = __esm({
|
|
|
259
279
|
}
|
|
260
280
|
bridgeLoadAttempted = true;
|
|
261
281
|
try {
|
|
262
|
-
const runtimeDir = resolveRuntimeDir(void 0,
|
|
282
|
+
const runtimeDir = resolveRuntimeDir(void 0, importMetaUrl);
|
|
263
283
|
const result = resolveNativeBinary(runtimeDir);
|
|
264
284
|
if (result.path && result.path.endsWith(".node")) {
|
|
265
285
|
try {
|
|
@@ -390,6 +410,7 @@ function resetCacheStats() {
|
|
|
390
410
|
var init_cssGeneratorNative = __esm({
|
|
391
411
|
"packages/domain/compiler/src/compiler/cssGeneratorNative.ts"() {
|
|
392
412
|
"use strict";
|
|
413
|
+
init_cjs_shims();
|
|
393
414
|
init_nativeBridge();
|
|
394
415
|
}
|
|
395
416
|
});
|
|
@@ -463,6 +484,7 @@ function atomicRegistrySize() {
|
|
|
463
484
|
var init_compilationNative = __esm({
|
|
464
485
|
"packages/domain/compiler/src/compiler/compilationNative.ts"() {
|
|
465
486
|
"use strict";
|
|
487
|
+
init_cjs_shims();
|
|
466
488
|
init_nativeBridge();
|
|
467
489
|
}
|
|
468
490
|
});
|
|
@@ -607,6 +629,7 @@ function twMergeRaw(classLists) {
|
|
|
607
629
|
var init_cssCompilationNative = __esm({
|
|
608
630
|
"packages/domain/compiler/src/compiler/cssCompilationNative.ts"() {
|
|
609
631
|
"use strict";
|
|
632
|
+
init_cjs_shims();
|
|
610
633
|
init_nativeBridge();
|
|
611
634
|
}
|
|
612
635
|
});
|
|
@@ -707,6 +730,7 @@ function idRegistryImport(importedData) {
|
|
|
707
730
|
var init_idRegistryNative = __esm({
|
|
708
731
|
"packages/domain/compiler/src/compiler/idRegistryNative.ts"() {
|
|
709
732
|
"use strict";
|
|
733
|
+
init_cjs_shims();
|
|
710
734
|
init_nativeBridge();
|
|
711
735
|
}
|
|
712
736
|
});
|
|
@@ -849,6 +873,7 @@ function scanFilesBatchNative(filesJson) {
|
|
|
849
873
|
var init_streamingNative = __esm({
|
|
850
874
|
"packages/domain/compiler/src/compiler/streamingNative.ts"() {
|
|
851
875
|
"use strict";
|
|
876
|
+
init_cjs_shims();
|
|
852
877
|
init_nativeBridge();
|
|
853
878
|
}
|
|
854
879
|
});
|
|
@@ -896,14 +921,15 @@ async function generateRawCss(classes, cssEntryContent, root) {
|
|
|
896
921
|
const compiler = await Promise.resolve(tw.compile(input, { loadStylesheet }));
|
|
897
922
|
return compiler.build(classes);
|
|
898
923
|
}
|
|
899
|
-
var import_node_module2,
|
|
924
|
+
var import_node_module2, import_meta2, require2, MAX_CACHE_MEMORY, _twEngine, _twEngineError;
|
|
900
925
|
var init_tailwindEngine = __esm({
|
|
901
926
|
"packages/domain/compiler/src/tailwindEngine.ts"() {
|
|
902
927
|
"use strict";
|
|
928
|
+
init_cjs_shims();
|
|
903
929
|
import_node_module2 = require("module");
|
|
904
|
-
|
|
930
|
+
import_meta2 = {};
|
|
905
931
|
require2 = (0, import_node_module2.createRequire)(
|
|
906
|
-
typeof __filename !== "undefined" ? `file://${__filename}` : typeof
|
|
932
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : typeof import_meta2 !== "undefined" && importMetaUrl ? importMetaUrl : "file://unknown"
|
|
907
933
|
);
|
|
908
934
|
MAX_CACHE_MEMORY = 256 * 1024;
|
|
909
935
|
_twEngine = null;
|
|
@@ -1086,18 +1112,19 @@ function processTailwindCssWithTargets(css, targets) {
|
|
|
1086
1112
|
}
|
|
1087
1113
|
return result.css;
|
|
1088
1114
|
}
|
|
1089
|
-
var import_node_module3,
|
|
1115
|
+
var import_node_module3, import_meta3, require3, _cssCache, _cacheHits, _cacheMisses, MAX_CACHE_SIZE, MAX_CACHE_MEMORY2;
|
|
1090
1116
|
var init_tailwindEngine2 = __esm({
|
|
1091
1117
|
"packages/domain/compiler/src/compiler/tailwindEngine.ts"() {
|
|
1092
1118
|
"use strict";
|
|
1119
|
+
init_cjs_shims();
|
|
1093
1120
|
import_node_module3 = require("module");
|
|
1094
1121
|
init_nativeBridge();
|
|
1095
1122
|
init_cssGeneratorNative();
|
|
1096
1123
|
init_cssCompilationNative();
|
|
1097
1124
|
init_tailwindEngine();
|
|
1098
|
-
|
|
1125
|
+
import_meta3 = {};
|
|
1099
1126
|
require3 = (0, import_node_module3.createRequire)(
|
|
1100
|
-
typeof __filename !== "undefined" ? `file://${__filename}` : typeof
|
|
1127
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : typeof import_meta3 !== "undefined" && importMetaUrl ? importMetaUrl : "file://unknown"
|
|
1101
1128
|
);
|
|
1102
1129
|
_cssCache = /* @__PURE__ */ new Map();
|
|
1103
1130
|
_cacheHits = 0;
|
|
@@ -1111,6 +1138,7 @@ var init_tailwindEngine2 = __esm({
|
|
|
1111
1138
|
var init_compiler = __esm({
|
|
1112
1139
|
"packages/domain/compiler/src/compiler/index.ts"() {
|
|
1113
1140
|
"use strict";
|
|
1141
|
+
init_cjs_shims();
|
|
1114
1142
|
init_cssGeneratorNative();
|
|
1115
1143
|
init_compilationNative();
|
|
1116
1144
|
init_cssCompilationNative();
|
|
@@ -1125,6 +1153,7 @@ var parseClasses, parseClass, extractAllClasses, extractClassesFromSource, astEx
|
|
|
1125
1153
|
var init_parser = __esm({
|
|
1126
1154
|
"packages/domain/compiler/src/parser/index.ts"() {
|
|
1127
1155
|
"use strict";
|
|
1156
|
+
init_cjs_shims();
|
|
1128
1157
|
init_nativeBridge();
|
|
1129
1158
|
parseClasses = (raw) => {
|
|
1130
1159
|
const native = getNativeBridge();
|
|
@@ -1304,6 +1333,7 @@ function resetMemoryStats() {
|
|
|
1304
1333
|
var init_analyzerNative = __esm({
|
|
1305
1334
|
"packages/domain/compiler/src/analyzer/analyzerNative.ts"() {
|
|
1306
1335
|
"use strict";
|
|
1336
|
+
init_cjs_shims();
|
|
1307
1337
|
init_nativeBridge();
|
|
1308
1338
|
}
|
|
1309
1339
|
});
|
|
@@ -1398,6 +1428,7 @@ function resolveSimpleVariants(configJson) {
|
|
|
1398
1428
|
var init_themeResolutionNative = __esm({
|
|
1399
1429
|
"packages/domain/compiler/src/analyzer/themeResolutionNative.ts"() {
|
|
1400
1430
|
"use strict";
|
|
1431
|
+
init_cjs_shims();
|
|
1401
1432
|
init_nativeBridge();
|
|
1402
1433
|
}
|
|
1403
1434
|
});
|
|
@@ -1446,6 +1477,7 @@ function generateSubComponentTypes(root, outputPath) {
|
|
|
1446
1477
|
var init_scannerNative = __esm({
|
|
1447
1478
|
"packages/domain/compiler/src/analyzer/scannerNative.ts"() {
|
|
1448
1479
|
"use strict";
|
|
1480
|
+
init_cjs_shims();
|
|
1449
1481
|
init_nativeBridge();
|
|
1450
1482
|
}
|
|
1451
1483
|
});
|
|
@@ -1454,6 +1486,7 @@ var init_scannerNative = __esm({
|
|
|
1454
1486
|
var init_analyzer = __esm({
|
|
1455
1487
|
"packages/domain/compiler/src/analyzer/index.ts"() {
|
|
1456
1488
|
"use strict";
|
|
1489
|
+
init_cjs_shims();
|
|
1457
1490
|
init_analyzerNative();
|
|
1458
1491
|
init_themeResolutionNative();
|
|
1459
1492
|
init_scannerNative();
|
|
@@ -1643,6 +1676,7 @@ function resetResolverPoolStats() {
|
|
|
1643
1676
|
var init_cacheNative = __esm({
|
|
1644
1677
|
"packages/domain/compiler/src/cache/cacheNative.ts"() {
|
|
1645
1678
|
"use strict";
|
|
1679
|
+
init_cjs_shims();
|
|
1646
1680
|
init_nativeBridge();
|
|
1647
1681
|
}
|
|
1648
1682
|
});
|
|
@@ -1651,6 +1685,7 @@ var init_cacheNative = __esm({
|
|
|
1651
1685
|
var init_cache = __esm({
|
|
1652
1686
|
"packages/domain/compiler/src/cache/index.ts"() {
|
|
1653
1687
|
"use strict";
|
|
1688
|
+
init_cjs_shims();
|
|
1654
1689
|
init_cacheNative();
|
|
1655
1690
|
}
|
|
1656
1691
|
});
|
|
@@ -1900,6 +1935,7 @@ function redisDiagnose() {
|
|
|
1900
1935
|
var init_redisNative = __esm({
|
|
1901
1936
|
"packages/domain/compiler/src/redis/redisNative.ts"() {
|
|
1902
1937
|
"use strict";
|
|
1938
|
+
init_cjs_shims();
|
|
1903
1939
|
init_nativeBridge();
|
|
1904
1940
|
}
|
|
1905
1941
|
});
|
|
@@ -1908,6 +1944,7 @@ var init_redisNative = __esm({
|
|
|
1908
1944
|
var init_redis = __esm({
|
|
1909
1945
|
"packages/domain/compiler/src/redis/index.ts"() {
|
|
1910
1946
|
"use strict";
|
|
1947
|
+
init_cjs_shims();
|
|
1911
1948
|
init_redisNative();
|
|
1912
1949
|
}
|
|
1913
1950
|
});
|
|
@@ -2047,6 +2084,7 @@ function getCompilerDiagnostics() {
|
|
|
2047
2084
|
var init_watchSystemNative = __esm({
|
|
2048
2085
|
"packages/domain/compiler/src/watch/watchSystemNative.ts"() {
|
|
2049
2086
|
"use strict";
|
|
2087
|
+
init_cjs_shims();
|
|
2050
2088
|
init_nativeBridge();
|
|
2051
2089
|
}
|
|
2052
2090
|
});
|
|
@@ -2055,6 +2093,7 @@ var init_watchSystemNative = __esm({
|
|
|
2055
2093
|
var init_watch = __esm({
|
|
2056
2094
|
"packages/domain/compiler/src/watch/index.ts"() {
|
|
2057
2095
|
"use strict";
|
|
2096
|
+
init_cjs_shims();
|
|
2058
2097
|
init_watchSystemNative();
|
|
2059
2098
|
}
|
|
2060
2099
|
});
|
|
@@ -2320,6 +2359,7 @@ var import_node_fs, import_node_path, import_node_module4, _require2, transformS
|
|
|
2320
2359
|
var init_src = __esm({
|
|
2321
2360
|
"packages/domain/compiler/src/index.ts"() {
|
|
2322
2361
|
"use strict";
|
|
2362
|
+
init_cjs_shims();
|
|
2323
2363
|
import_node_fs = __toESM(require("fs"), 1);
|
|
2324
2364
|
import_node_path = __toESM(require("path"), 1);
|
|
2325
2365
|
import_node_module4 = require("module");
|
|
@@ -2331,7 +2371,7 @@ var init_src = __esm({
|
|
|
2331
2371
|
init_redis();
|
|
2332
2372
|
init_watch();
|
|
2333
2373
|
_require2 = (0, import_node_module4.createRequire)(
|
|
2334
|
-
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" :
|
|
2374
|
+
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : importMetaUrl
|
|
2335
2375
|
);
|
|
2336
2376
|
transformSource = (source, opts) => {
|
|
2337
2377
|
const native = getNativeBridge();
|
|
@@ -2894,6 +2934,7 @@ __export(internal_exports, {
|
|
|
2894
2934
|
var init_internal = __esm({
|
|
2895
2935
|
"packages/domain/compiler/src/internal.ts"() {
|
|
2896
2936
|
"use strict";
|
|
2937
|
+
init_cjs_shims();
|
|
2897
2938
|
init_src();
|
|
2898
2939
|
init_tailwindEngine2();
|
|
2899
2940
|
init_compiler();
|
|
@@ -3158,6 +3199,7 @@ var import_node_fs2, import_node_path2, SOURCE_EXTENSIONS, IGNORE_PATTERNS, _nat
|
|
|
3158
3199
|
var init_staticStateExtractor = __esm({
|
|
3159
3200
|
"packages/domain/shared/src/staticStateExtractor.ts"() {
|
|
3160
3201
|
"use strict";
|
|
3202
|
+
init_cjs_shims();
|
|
3161
3203
|
import_node_fs2 = __toESM(require("fs"));
|
|
3162
3204
|
import_node_path2 = __toESM(require("path"));
|
|
3163
3205
|
SOURCE_EXTENSIONS = /* @__PURE__ */ new Set([".ts", ".tsx", ".js", ".jsx", ".mts", ".mjs"]);
|
|
@@ -3222,6 +3264,7 @@ var import_node_fs3, import_node_path3, LEVELS, _globalLogFile, _logFileInitiali
|
|
|
3222
3264
|
var init_logger = __esm({
|
|
3223
3265
|
"packages/domain/shared/src/logger.ts"() {
|
|
3224
3266
|
"use strict";
|
|
3267
|
+
init_cjs_shims();
|
|
3225
3268
|
import_node_fs3 = __toESM(require("fs"));
|
|
3226
3269
|
import_node_path3 = __toESM(require("path"));
|
|
3227
3270
|
LEVELS = { silent: 0, error: 1, warn: 2, info: 3, debug: 4 };
|
|
@@ -3328,10 +3371,10 @@ function resolveNativeBindingCandidates(options) {
|
|
|
3328
3371
|
}
|
|
3329
3372
|
return Array.from(new Set(candidates));
|
|
3330
3373
|
}
|
|
3331
|
-
function resolveRuntimeDir(dir,
|
|
3374
|
+
function resolveRuntimeDir(dir, importMetaUrl2) {
|
|
3332
3375
|
if (dir) return import_node_path4.default.resolve(dir);
|
|
3333
3376
|
try {
|
|
3334
|
-
return import_node_path4.default.dirname((0, import_node_url.fileURLToPath)(
|
|
3377
|
+
return import_node_path4.default.dirname((0, import_node_url.fileURLToPath)(importMetaUrl2));
|
|
3335
3378
|
} catch {
|
|
3336
3379
|
return process.cwd();
|
|
3337
3380
|
}
|
|
@@ -3340,6 +3383,7 @@ var import_node_crypto, import_node_fs4, import_node_path4, import_node_url, imp
|
|
|
3340
3383
|
var init_src2 = __esm({
|
|
3341
3384
|
"packages/domain/shared/src/index.ts"() {
|
|
3342
3385
|
"use strict";
|
|
3386
|
+
init_cjs_shims();
|
|
3343
3387
|
import_node_crypto = require("crypto");
|
|
3344
3388
|
import_node_fs4 = __toESM(require("fs"));
|
|
3345
3389
|
import_node_path4 = __toESM(require("path"));
|
|
@@ -3402,7 +3446,7 @@ var init_src2 = __esm({
|
|
|
3402
3446
|
}
|
|
3403
3447
|
};
|
|
3404
3448
|
_require3 = (0, import_node_module5.createRequire)(
|
|
3405
|
-
typeof __filename !== "undefined" ? `file://${__filename}` :
|
|
3449
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : importMetaUrl ?? "file://unknown"
|
|
3406
3450
|
);
|
|
3407
3451
|
}
|
|
3408
3452
|
});
|
|
@@ -3440,8 +3484,8 @@ function getDirname() {
|
|
|
3440
3484
|
if (typeof __dirname !== "undefined") {
|
|
3441
3485
|
return __dirname;
|
|
3442
3486
|
}
|
|
3443
|
-
if (typeof
|
|
3444
|
-
return import_node_path5.default.dirname((0, import_node_url2.fileURLToPath)(
|
|
3487
|
+
if (typeof import_meta4 !== "undefined" && importMetaUrl) {
|
|
3488
|
+
return import_node_path5.default.dirname((0, import_node_url2.fileURLToPath)(importMetaUrl));
|
|
3445
3489
|
}
|
|
3446
3490
|
return process.cwd();
|
|
3447
3491
|
}
|
|
@@ -3646,14 +3690,15 @@ function hasNativeWatchBinding() {
|
|
|
3646
3690
|
return false;
|
|
3647
3691
|
}
|
|
3648
3692
|
}
|
|
3649
|
-
var import_node_path5, import_node_url2,
|
|
3693
|
+
var import_node_path5, import_node_url2, import_meta4, log2, isValidScannerBinding, createScannerBridgeLoader, scannerBridgeLoader, scannerGetBinding, resetScannerBridgeCache;
|
|
3650
3694
|
var init_native_bridge = __esm({
|
|
3651
3695
|
"packages/domain/scanner/src/native-bridge.ts"() {
|
|
3652
3696
|
"use strict";
|
|
3697
|
+
init_cjs_shims();
|
|
3653
3698
|
import_node_path5 = __toESM(require("path"), 1);
|
|
3654
3699
|
import_node_url2 = require("url");
|
|
3655
3700
|
init_src2();
|
|
3656
|
-
|
|
3701
|
+
import_meta4 = {};
|
|
3657
3702
|
log2 = createDebugLogger("scanner:native");
|
|
3658
3703
|
isValidScannerBinding = (module2) => {
|
|
3659
3704
|
const candidate = module2;
|
|
@@ -3744,8 +3789,13 @@ __export(next_exports, {
|
|
|
3744
3789
|
withTailwindStyled: () => withTailwindStyled
|
|
3745
3790
|
});
|
|
3746
3791
|
module.exports = __toCommonJS(next_exports);
|
|
3792
|
+
init_cjs_shims();
|
|
3793
|
+
|
|
3794
|
+
// packages/presentation/next/src/index.ts
|
|
3795
|
+
init_cjs_shims();
|
|
3747
3796
|
|
|
3748
3797
|
// packages/presentation/next/src/schemas.ts
|
|
3798
|
+
init_cjs_shims();
|
|
3749
3799
|
var import_zod = require("zod");
|
|
3750
3800
|
var formatIssues = (error) => error.issues.map((issue) => {
|
|
3751
3801
|
const p = issue.path.length > 0 ? issue.path.join(".") : "<root>";
|
|
@@ -3770,12 +3820,14 @@ var NextAdapterOptionsSchema = import_zod.z.object({
|
|
|
3770
3820
|
var parseNextAdapterOptions = (options) => parseWithSchema(NextAdapterOptionsSchema, options ?? {}, "next adapter options are invalid");
|
|
3771
3821
|
|
|
3772
3822
|
// packages/presentation/next/src/withTailwindStyled.ts
|
|
3823
|
+
init_cjs_shims();
|
|
3773
3824
|
var import_node_fs9 = __toESM(require("fs"), 1);
|
|
3774
3825
|
var import_node_module7 = require("module");
|
|
3775
3826
|
var import_node_path10 = __toESM(require("path"), 1);
|
|
3776
3827
|
init_src2();
|
|
3777
3828
|
|
|
3778
3829
|
// packages/domain/scanner/src/index.ts
|
|
3830
|
+
init_cjs_shims();
|
|
3779
3831
|
var import_node_fs6 = __toESM(require("fs"), 1);
|
|
3780
3832
|
var import_node_module6 = require("module");
|
|
3781
3833
|
var import_node_path7 = __toESM(require("path"), 1);
|
|
@@ -3784,6 +3836,7 @@ var import_node_worker_threads = require("worker_threads");
|
|
|
3784
3836
|
init_src2();
|
|
3785
3837
|
|
|
3786
3838
|
// packages/domain/scanner/src/cache-native.ts
|
|
3839
|
+
init_cjs_shims();
|
|
3787
3840
|
var import_node_fs5 = __toESM(require("fs"), 1);
|
|
3788
3841
|
var import_node_path6 = __toESM(require("path"), 1);
|
|
3789
3842
|
init_native_bridge();
|
|
@@ -3833,6 +3886,7 @@ function filePriority(mtimeMs, size, cached, nowMs = Date.now()) {
|
|
|
3833
3886
|
init_native_bridge();
|
|
3834
3887
|
|
|
3835
3888
|
// packages/domain/scanner/src/schemas.ts
|
|
3889
|
+
init_cjs_shims();
|
|
3836
3890
|
var import_zod2 = require("zod");
|
|
3837
3891
|
init_src2();
|
|
3838
3892
|
var formatIssuePath2 = (path12) => path12.length > 0 ? path12.map(
|
|
@@ -3894,14 +3948,14 @@ var parseScanWorkspaceOptions = (options) => parseWithSchema2(ScanWorkspaceOptio
|
|
|
3894
3948
|
var parseScanWorkspaceResult = (result) => parseWithSchema2(ScanWorkspaceResultSchema, result, "scanner workspace result is invalid");
|
|
3895
3949
|
|
|
3896
3950
|
// packages/domain/scanner/src/index.ts
|
|
3897
|
-
var
|
|
3951
|
+
var import_meta5 = {};
|
|
3898
3952
|
var log3 = createLogger2("scanner");
|
|
3899
3953
|
function getRuntimeDir() {
|
|
3900
3954
|
if (typeof __dirname !== "undefined" && __dirname.length > 0) {
|
|
3901
3955
|
return __dirname;
|
|
3902
3956
|
}
|
|
3903
|
-
if (typeof
|
|
3904
|
-
return import_node_path7.default.dirname((0, import_node_url3.fileURLToPath)(
|
|
3957
|
+
if (typeof import_meta5 !== "undefined" && importMetaUrl) {
|
|
3958
|
+
return import_node_path7.default.dirname((0, import_node_url3.fileURLToPath)(importMetaUrl));
|
|
3905
3959
|
}
|
|
3906
3960
|
return process.cwd();
|
|
3907
3961
|
}
|
|
@@ -4184,6 +4238,7 @@ function scanWorkspace2(rootDir, options = {}) {
|
|
|
4184
4238
|
init_src2();
|
|
4185
4239
|
|
|
4186
4240
|
// packages/presentation/next/src/incrementalOrchestrator.ts
|
|
4241
|
+
init_cjs_shims();
|
|
4187
4242
|
var import_node_fs7 = __toESM(require("fs"), 1);
|
|
4188
4243
|
var import_node_path8 = __toESM(require("path"), 1);
|
|
4189
4244
|
init_src();
|
|
@@ -4250,6 +4305,7 @@ function isIncrementalEnabled(cwd) {
|
|
|
4250
4305
|
}
|
|
4251
4306
|
|
|
4252
4307
|
// packages/presentation/next/src/staticCssWebpackPlugin.ts
|
|
4308
|
+
init_cjs_shims();
|
|
4253
4309
|
var import_node_fs8 = __toESM(require("fs"), 1);
|
|
4254
4310
|
var import_node_path9 = __toESM(require("path"), 1);
|
|
4255
4311
|
var _fileStaticCssMap = /* @__PURE__ */ new Map();
|
|
@@ -4305,24 +4361,24 @@ var StaticCssWebpackPlugin = class _StaticCssWebpackPlugin {
|
|
|
4305
4361
|
};
|
|
4306
4362
|
|
|
4307
4363
|
// packages/presentation/next/src/withTailwindStyled.ts
|
|
4308
|
-
var
|
|
4309
|
-
function getDirnameFromUrl2(
|
|
4310
|
-
if (typeof
|
|
4311
|
-
if (
|
|
4312
|
-
let withoutFile =
|
|
4364
|
+
var import_meta6 = {};
|
|
4365
|
+
function getDirnameFromUrl2(importMetaUrl2) {
|
|
4366
|
+
if (typeof importMetaUrl2 !== "string") return "";
|
|
4367
|
+
if (importMetaUrl2.startsWith("file://")) {
|
|
4368
|
+
let withoutFile = importMetaUrl2.slice(7);
|
|
4313
4369
|
if (withoutFile[0] === "/" && withoutFile[2] === ":") {
|
|
4314
4370
|
withoutFile = withoutFile.slice(1);
|
|
4315
4371
|
}
|
|
4316
4372
|
const lastSlash2 = Math.max(withoutFile.lastIndexOf("/"), withoutFile.lastIndexOf("\\"));
|
|
4317
4373
|
return lastSlash2 > 0 ? withoutFile.slice(0, lastSlash2) : "/";
|
|
4318
4374
|
}
|
|
4319
|
-
const lastSlash = Math.max(
|
|
4320
|
-
return lastSlash > 0 ?
|
|
4375
|
+
const lastSlash = Math.max(importMetaUrl2.lastIndexOf("/"), importMetaUrl2.lastIndexOf("\\"));
|
|
4376
|
+
return lastSlash > 0 ? importMetaUrl2.slice(0, lastSlash) : "";
|
|
4321
4377
|
}
|
|
4322
4378
|
var require4 = (0, import_node_module7.createRequire)(
|
|
4323
|
-
typeof
|
|
4379
|
+
typeof import_meta6 !== "undefined" && importMetaUrl ? importMetaUrl : typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown"
|
|
4324
4380
|
);
|
|
4325
|
-
var _importMetaUrl = typeof
|
|
4381
|
+
var _importMetaUrl = typeof import_meta6 !== "undefined" && importMetaUrl ? importMetaUrl : typeof __filename !== "undefined" ? `file://${__filename}` : void 0;
|
|
4326
4382
|
var resolveRuntimeDir2 = () => _importMetaUrl ? getDirnameFromUrl2(_importMetaUrl) : __dirname;
|
|
4327
4383
|
var resolveLoaderPath2 = (basename) => {
|
|
4328
4384
|
try {
|