tailwind-styled-v4 5.0.40 → 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 +43 -16
- 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 +222 -38
- 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 -14
- 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 +141 -51
- 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 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +74 -29
- package/dist/index.mjs.map +1 -1
- package/dist/next.js +98 -37
- 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 +6 -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 +89 -6
- 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 +29 -11
- 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 -35
- 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 -8
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +57 -28
- package/dist/svelte.mjs.map +1 -1
- package/dist/syntax.js +7 -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 +23 -5
- 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 -14
- package/dist/turbopackLoader.js.map +1 -1
- package/dist/turbopackLoader.mjs +89 -45
- package/dist/turbopackLoader.mjs.map +1 -1
- package/dist/tw.js +224 -38
- package/dist/tw.js.map +1 -1
- package/dist/tw.mjs +321 -203
- package/dist/tw.mjs.map +1 -1
- package/dist/vite.js +132 -50
- 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 -8
- 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,13 +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, require2, MAX_CACHE_MEMORY, _twEngine, _twEngineError;
|
|
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");
|
|
930
|
+
import_meta2 = {};
|
|
904
931
|
require2 = (0, import_node_module2.createRequire)(
|
|
905
|
-
typeof __filename !== "undefined" ? `file://${__filename}` :
|
|
932
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : typeof import_meta2 !== "undefined" && importMetaUrl ? importMetaUrl : "file://unknown"
|
|
906
933
|
);
|
|
907
934
|
MAX_CACHE_MEMORY = 256 * 1024;
|
|
908
935
|
_twEngine = null;
|
|
@@ -1085,17 +1112,19 @@ function processTailwindCssWithTargets(css, targets) {
|
|
|
1085
1112
|
}
|
|
1086
1113
|
return result.css;
|
|
1087
1114
|
}
|
|
1088
|
-
var import_node_module3, require3, _cssCache, _cacheHits, _cacheMisses, MAX_CACHE_SIZE, MAX_CACHE_MEMORY2;
|
|
1115
|
+
var import_node_module3, import_meta3, require3, _cssCache, _cacheHits, _cacheMisses, MAX_CACHE_SIZE, MAX_CACHE_MEMORY2;
|
|
1089
1116
|
var init_tailwindEngine2 = __esm({
|
|
1090
1117
|
"packages/domain/compiler/src/compiler/tailwindEngine.ts"() {
|
|
1091
1118
|
"use strict";
|
|
1119
|
+
init_cjs_shims();
|
|
1092
1120
|
import_node_module3 = require("module");
|
|
1093
1121
|
init_nativeBridge();
|
|
1094
1122
|
init_cssGeneratorNative();
|
|
1095
1123
|
init_cssCompilationNative();
|
|
1096
1124
|
init_tailwindEngine();
|
|
1125
|
+
import_meta3 = {};
|
|
1097
1126
|
require3 = (0, import_node_module3.createRequire)(
|
|
1098
|
-
typeof __filename !== "undefined" ? `file://${__filename}` :
|
|
1127
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : typeof import_meta3 !== "undefined" && importMetaUrl ? importMetaUrl : "file://unknown"
|
|
1099
1128
|
);
|
|
1100
1129
|
_cssCache = /* @__PURE__ */ new Map();
|
|
1101
1130
|
_cacheHits = 0;
|
|
@@ -1109,6 +1138,7 @@ var init_tailwindEngine2 = __esm({
|
|
|
1109
1138
|
var init_compiler = __esm({
|
|
1110
1139
|
"packages/domain/compiler/src/compiler/index.ts"() {
|
|
1111
1140
|
"use strict";
|
|
1141
|
+
init_cjs_shims();
|
|
1112
1142
|
init_cssGeneratorNative();
|
|
1113
1143
|
init_compilationNative();
|
|
1114
1144
|
init_cssCompilationNative();
|
|
@@ -1123,6 +1153,7 @@ var parseClasses, parseClass, extractAllClasses, extractClassesFromSource, astEx
|
|
|
1123
1153
|
var init_parser = __esm({
|
|
1124
1154
|
"packages/domain/compiler/src/parser/index.ts"() {
|
|
1125
1155
|
"use strict";
|
|
1156
|
+
init_cjs_shims();
|
|
1126
1157
|
init_nativeBridge();
|
|
1127
1158
|
parseClasses = (raw) => {
|
|
1128
1159
|
const native = getNativeBridge();
|
|
@@ -1302,6 +1333,7 @@ function resetMemoryStats() {
|
|
|
1302
1333
|
var init_analyzerNative = __esm({
|
|
1303
1334
|
"packages/domain/compiler/src/analyzer/analyzerNative.ts"() {
|
|
1304
1335
|
"use strict";
|
|
1336
|
+
init_cjs_shims();
|
|
1305
1337
|
init_nativeBridge();
|
|
1306
1338
|
}
|
|
1307
1339
|
});
|
|
@@ -1396,6 +1428,7 @@ function resolveSimpleVariants(configJson) {
|
|
|
1396
1428
|
var init_themeResolutionNative = __esm({
|
|
1397
1429
|
"packages/domain/compiler/src/analyzer/themeResolutionNative.ts"() {
|
|
1398
1430
|
"use strict";
|
|
1431
|
+
init_cjs_shims();
|
|
1399
1432
|
init_nativeBridge();
|
|
1400
1433
|
}
|
|
1401
1434
|
});
|
|
@@ -1444,6 +1477,7 @@ function generateSubComponentTypes(root, outputPath) {
|
|
|
1444
1477
|
var init_scannerNative = __esm({
|
|
1445
1478
|
"packages/domain/compiler/src/analyzer/scannerNative.ts"() {
|
|
1446
1479
|
"use strict";
|
|
1480
|
+
init_cjs_shims();
|
|
1447
1481
|
init_nativeBridge();
|
|
1448
1482
|
}
|
|
1449
1483
|
});
|
|
@@ -1452,6 +1486,7 @@ var init_scannerNative = __esm({
|
|
|
1452
1486
|
var init_analyzer = __esm({
|
|
1453
1487
|
"packages/domain/compiler/src/analyzer/index.ts"() {
|
|
1454
1488
|
"use strict";
|
|
1489
|
+
init_cjs_shims();
|
|
1455
1490
|
init_analyzerNative();
|
|
1456
1491
|
init_themeResolutionNative();
|
|
1457
1492
|
init_scannerNative();
|
|
@@ -1641,6 +1676,7 @@ function resetResolverPoolStats() {
|
|
|
1641
1676
|
var init_cacheNative = __esm({
|
|
1642
1677
|
"packages/domain/compiler/src/cache/cacheNative.ts"() {
|
|
1643
1678
|
"use strict";
|
|
1679
|
+
init_cjs_shims();
|
|
1644
1680
|
init_nativeBridge();
|
|
1645
1681
|
}
|
|
1646
1682
|
});
|
|
@@ -1649,6 +1685,7 @@ var init_cacheNative = __esm({
|
|
|
1649
1685
|
var init_cache = __esm({
|
|
1650
1686
|
"packages/domain/compiler/src/cache/index.ts"() {
|
|
1651
1687
|
"use strict";
|
|
1688
|
+
init_cjs_shims();
|
|
1652
1689
|
init_cacheNative();
|
|
1653
1690
|
}
|
|
1654
1691
|
});
|
|
@@ -1898,6 +1935,7 @@ function redisDiagnose() {
|
|
|
1898
1935
|
var init_redisNative = __esm({
|
|
1899
1936
|
"packages/domain/compiler/src/redis/redisNative.ts"() {
|
|
1900
1937
|
"use strict";
|
|
1938
|
+
init_cjs_shims();
|
|
1901
1939
|
init_nativeBridge();
|
|
1902
1940
|
}
|
|
1903
1941
|
});
|
|
@@ -1906,6 +1944,7 @@ var init_redisNative = __esm({
|
|
|
1906
1944
|
var init_redis = __esm({
|
|
1907
1945
|
"packages/domain/compiler/src/redis/index.ts"() {
|
|
1908
1946
|
"use strict";
|
|
1947
|
+
init_cjs_shims();
|
|
1909
1948
|
init_redisNative();
|
|
1910
1949
|
}
|
|
1911
1950
|
});
|
|
@@ -2045,6 +2084,7 @@ function getCompilerDiagnostics() {
|
|
|
2045
2084
|
var init_watchSystemNative = __esm({
|
|
2046
2085
|
"packages/domain/compiler/src/watch/watchSystemNative.ts"() {
|
|
2047
2086
|
"use strict";
|
|
2087
|
+
init_cjs_shims();
|
|
2048
2088
|
init_nativeBridge();
|
|
2049
2089
|
}
|
|
2050
2090
|
});
|
|
@@ -2053,6 +2093,7 @@ var init_watchSystemNative = __esm({
|
|
|
2053
2093
|
var init_watch = __esm({
|
|
2054
2094
|
"packages/domain/compiler/src/watch/index.ts"() {
|
|
2055
2095
|
"use strict";
|
|
2096
|
+
init_cjs_shims();
|
|
2056
2097
|
init_watchSystemNative();
|
|
2057
2098
|
}
|
|
2058
2099
|
});
|
|
@@ -2318,6 +2359,7 @@ var import_node_fs, import_node_path, import_node_module4, _require2, transformS
|
|
|
2318
2359
|
var init_src = __esm({
|
|
2319
2360
|
"packages/domain/compiler/src/index.ts"() {
|
|
2320
2361
|
"use strict";
|
|
2362
|
+
init_cjs_shims();
|
|
2321
2363
|
import_node_fs = __toESM(require("fs"), 1);
|
|
2322
2364
|
import_node_path = __toESM(require("path"), 1);
|
|
2323
2365
|
import_node_module4 = require("module");
|
|
@@ -2329,7 +2371,7 @@ var init_src = __esm({
|
|
|
2329
2371
|
init_redis();
|
|
2330
2372
|
init_watch();
|
|
2331
2373
|
_require2 = (0, import_node_module4.createRequire)(
|
|
2332
|
-
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" :
|
|
2374
|
+
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : importMetaUrl
|
|
2333
2375
|
);
|
|
2334
2376
|
transformSource = (source, opts) => {
|
|
2335
2377
|
const native = getNativeBridge();
|
|
@@ -2892,6 +2934,7 @@ __export(internal_exports, {
|
|
|
2892
2934
|
var init_internal = __esm({
|
|
2893
2935
|
"packages/domain/compiler/src/internal.ts"() {
|
|
2894
2936
|
"use strict";
|
|
2937
|
+
init_cjs_shims();
|
|
2895
2938
|
init_src();
|
|
2896
2939
|
init_tailwindEngine2();
|
|
2897
2940
|
init_compiler();
|
|
@@ -3156,6 +3199,7 @@ var import_node_fs2, import_node_path2, SOURCE_EXTENSIONS, IGNORE_PATTERNS, _nat
|
|
|
3156
3199
|
var init_staticStateExtractor = __esm({
|
|
3157
3200
|
"packages/domain/shared/src/staticStateExtractor.ts"() {
|
|
3158
3201
|
"use strict";
|
|
3202
|
+
init_cjs_shims();
|
|
3159
3203
|
import_node_fs2 = __toESM(require("fs"));
|
|
3160
3204
|
import_node_path2 = __toESM(require("path"));
|
|
3161
3205
|
SOURCE_EXTENSIONS = /* @__PURE__ */ new Set([".ts", ".tsx", ".js", ".jsx", ".mts", ".mjs"]);
|
|
@@ -3220,6 +3264,7 @@ var import_node_fs3, import_node_path3, LEVELS, _globalLogFile, _logFileInitiali
|
|
|
3220
3264
|
var init_logger = __esm({
|
|
3221
3265
|
"packages/domain/shared/src/logger.ts"() {
|
|
3222
3266
|
"use strict";
|
|
3267
|
+
init_cjs_shims();
|
|
3223
3268
|
import_node_fs3 = __toESM(require("fs"));
|
|
3224
3269
|
import_node_path3 = __toESM(require("path"));
|
|
3225
3270
|
LEVELS = { silent: 0, error: 1, warn: 2, info: 3, debug: 4 };
|
|
@@ -3326,10 +3371,10 @@ function resolveNativeBindingCandidates(options) {
|
|
|
3326
3371
|
}
|
|
3327
3372
|
return Array.from(new Set(candidates));
|
|
3328
3373
|
}
|
|
3329
|
-
function resolveRuntimeDir(dir,
|
|
3374
|
+
function resolveRuntimeDir(dir, importMetaUrl2) {
|
|
3330
3375
|
if (dir) return import_node_path4.default.resolve(dir);
|
|
3331
3376
|
try {
|
|
3332
|
-
return import_node_path4.default.dirname((0, import_node_url.fileURLToPath)(
|
|
3377
|
+
return import_node_path4.default.dirname((0, import_node_url.fileURLToPath)(importMetaUrl2));
|
|
3333
3378
|
} catch {
|
|
3334
3379
|
return process.cwd();
|
|
3335
3380
|
}
|
|
@@ -3338,6 +3383,7 @@ var import_node_crypto, import_node_fs4, import_node_path4, import_node_url, imp
|
|
|
3338
3383
|
var init_src2 = __esm({
|
|
3339
3384
|
"packages/domain/shared/src/index.ts"() {
|
|
3340
3385
|
"use strict";
|
|
3386
|
+
init_cjs_shims();
|
|
3341
3387
|
import_node_crypto = require("crypto");
|
|
3342
3388
|
import_node_fs4 = __toESM(require("fs"));
|
|
3343
3389
|
import_node_path4 = __toESM(require("path"));
|
|
@@ -3400,7 +3446,7 @@ var init_src2 = __esm({
|
|
|
3400
3446
|
}
|
|
3401
3447
|
};
|
|
3402
3448
|
_require3 = (0, import_node_module5.createRequire)(
|
|
3403
|
-
typeof __filename !== "undefined" ? `file://${__filename}` :
|
|
3449
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : importMetaUrl ?? "file://unknown"
|
|
3404
3450
|
);
|
|
3405
3451
|
}
|
|
3406
3452
|
});
|
|
@@ -3438,8 +3484,8 @@ function getDirname() {
|
|
|
3438
3484
|
if (typeof __dirname !== "undefined") {
|
|
3439
3485
|
return __dirname;
|
|
3440
3486
|
}
|
|
3441
|
-
if (
|
|
3442
|
-
return
|
|
3487
|
+
if (typeof import_meta4 !== "undefined" && importMetaUrl) {
|
|
3488
|
+
return import_node_path5.default.dirname((0, import_node_url2.fileURLToPath)(importMetaUrl));
|
|
3443
3489
|
}
|
|
3444
3490
|
return process.cwd();
|
|
3445
3491
|
}
|
|
@@ -3644,13 +3690,15 @@ function hasNativeWatchBinding() {
|
|
|
3644
3690
|
return false;
|
|
3645
3691
|
}
|
|
3646
3692
|
}
|
|
3647
|
-
var import_node_path5, import_node_url2, log2, isValidScannerBinding, createScannerBridgeLoader, scannerBridgeLoader, scannerGetBinding, resetScannerBridgeCache;
|
|
3693
|
+
var import_node_path5, import_node_url2, import_meta4, log2, isValidScannerBinding, createScannerBridgeLoader, scannerBridgeLoader, scannerGetBinding, resetScannerBridgeCache;
|
|
3648
3694
|
var init_native_bridge = __esm({
|
|
3649
3695
|
"packages/domain/scanner/src/native-bridge.ts"() {
|
|
3650
3696
|
"use strict";
|
|
3651
|
-
|
|
3697
|
+
init_cjs_shims();
|
|
3698
|
+
import_node_path5 = __toESM(require("path"), 1);
|
|
3652
3699
|
import_node_url2 = require("url");
|
|
3653
3700
|
init_src2();
|
|
3701
|
+
import_meta4 = {};
|
|
3654
3702
|
log2 = createDebugLogger("scanner:native");
|
|
3655
3703
|
isValidScannerBinding = (module2) => {
|
|
3656
3704
|
const candidate = module2;
|
|
@@ -3741,8 +3789,13 @@ __export(next_exports, {
|
|
|
3741
3789
|
withTailwindStyled: () => withTailwindStyled
|
|
3742
3790
|
});
|
|
3743
3791
|
module.exports = __toCommonJS(next_exports);
|
|
3792
|
+
init_cjs_shims();
|
|
3793
|
+
|
|
3794
|
+
// packages/presentation/next/src/index.ts
|
|
3795
|
+
init_cjs_shims();
|
|
3744
3796
|
|
|
3745
3797
|
// packages/presentation/next/src/schemas.ts
|
|
3798
|
+
init_cjs_shims();
|
|
3746
3799
|
var import_zod = require("zod");
|
|
3747
3800
|
var formatIssues = (error) => error.issues.map((issue) => {
|
|
3748
3801
|
const p = issue.path.length > 0 ? issue.path.join(".") : "<root>";
|
|
@@ -3767,12 +3820,14 @@ var NextAdapterOptionsSchema = import_zod.z.object({
|
|
|
3767
3820
|
var parseNextAdapterOptions = (options) => parseWithSchema(NextAdapterOptionsSchema, options ?? {}, "next adapter options are invalid");
|
|
3768
3821
|
|
|
3769
3822
|
// packages/presentation/next/src/withTailwindStyled.ts
|
|
3823
|
+
init_cjs_shims();
|
|
3770
3824
|
var import_node_fs9 = __toESM(require("fs"), 1);
|
|
3771
3825
|
var import_node_module7 = require("module");
|
|
3772
3826
|
var import_node_path10 = __toESM(require("path"), 1);
|
|
3773
3827
|
init_src2();
|
|
3774
3828
|
|
|
3775
3829
|
// packages/domain/scanner/src/index.ts
|
|
3830
|
+
init_cjs_shims();
|
|
3776
3831
|
var import_node_fs6 = __toESM(require("fs"), 1);
|
|
3777
3832
|
var import_node_module6 = require("module");
|
|
3778
3833
|
var import_node_path7 = __toESM(require("path"), 1);
|
|
@@ -3781,6 +3836,7 @@ var import_node_worker_threads = require("worker_threads");
|
|
|
3781
3836
|
init_src2();
|
|
3782
3837
|
|
|
3783
3838
|
// packages/domain/scanner/src/cache-native.ts
|
|
3839
|
+
init_cjs_shims();
|
|
3784
3840
|
var import_node_fs5 = __toESM(require("fs"), 1);
|
|
3785
3841
|
var import_node_path6 = __toESM(require("path"), 1);
|
|
3786
3842
|
init_native_bridge();
|
|
@@ -3830,6 +3886,7 @@ function filePriority(mtimeMs, size, cached, nowMs = Date.now()) {
|
|
|
3830
3886
|
init_native_bridge();
|
|
3831
3887
|
|
|
3832
3888
|
// packages/domain/scanner/src/schemas.ts
|
|
3889
|
+
init_cjs_shims();
|
|
3833
3890
|
var import_zod2 = require("zod");
|
|
3834
3891
|
init_src2();
|
|
3835
3892
|
var formatIssuePath2 = (path12) => path12.length > 0 ? path12.map(
|
|
@@ -3891,13 +3948,14 @@ var parseScanWorkspaceOptions = (options) => parseWithSchema2(ScanWorkspaceOptio
|
|
|
3891
3948
|
var parseScanWorkspaceResult = (result) => parseWithSchema2(ScanWorkspaceResultSchema, result, "scanner workspace result is invalid");
|
|
3892
3949
|
|
|
3893
3950
|
// packages/domain/scanner/src/index.ts
|
|
3951
|
+
var import_meta5 = {};
|
|
3894
3952
|
var log3 = createLogger2("scanner");
|
|
3895
3953
|
function getRuntimeDir() {
|
|
3896
3954
|
if (typeof __dirname !== "undefined" && __dirname.length > 0) {
|
|
3897
3955
|
return __dirname;
|
|
3898
3956
|
}
|
|
3899
|
-
if (
|
|
3900
|
-
return import_node_path7.default.dirname(
|
|
3957
|
+
if (typeof import_meta5 !== "undefined" && importMetaUrl) {
|
|
3958
|
+
return import_node_path7.default.dirname((0, import_node_url3.fileURLToPath)(importMetaUrl));
|
|
3901
3959
|
}
|
|
3902
3960
|
return process.cwd();
|
|
3903
3961
|
}
|
|
@@ -4180,6 +4238,7 @@ function scanWorkspace2(rootDir, options = {}) {
|
|
|
4180
4238
|
init_src2();
|
|
4181
4239
|
|
|
4182
4240
|
// packages/presentation/next/src/incrementalOrchestrator.ts
|
|
4241
|
+
init_cjs_shims();
|
|
4183
4242
|
var import_node_fs7 = __toESM(require("fs"), 1);
|
|
4184
4243
|
var import_node_path8 = __toESM(require("path"), 1);
|
|
4185
4244
|
init_src();
|
|
@@ -4246,6 +4305,7 @@ function isIncrementalEnabled(cwd) {
|
|
|
4246
4305
|
}
|
|
4247
4306
|
|
|
4248
4307
|
// packages/presentation/next/src/staticCssWebpackPlugin.ts
|
|
4308
|
+
init_cjs_shims();
|
|
4249
4309
|
var import_node_fs8 = __toESM(require("fs"), 1);
|
|
4250
4310
|
var import_node_path9 = __toESM(require("path"), 1);
|
|
4251
4311
|
var _fileStaticCssMap = /* @__PURE__ */ new Map();
|
|
@@ -4301,23 +4361,24 @@ var StaticCssWebpackPlugin = class _StaticCssWebpackPlugin {
|
|
|
4301
4361
|
};
|
|
4302
4362
|
|
|
4303
4363
|
// packages/presentation/next/src/withTailwindStyled.ts
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
if (
|
|
4307
|
-
|
|
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);
|
|
4308
4369
|
if (withoutFile[0] === "/" && withoutFile[2] === ":") {
|
|
4309
4370
|
withoutFile = withoutFile.slice(1);
|
|
4310
4371
|
}
|
|
4311
4372
|
const lastSlash2 = Math.max(withoutFile.lastIndexOf("/"), withoutFile.lastIndexOf("\\"));
|
|
4312
4373
|
return lastSlash2 > 0 ? withoutFile.slice(0, lastSlash2) : "/";
|
|
4313
4374
|
}
|
|
4314
|
-
const lastSlash = Math.max(
|
|
4315
|
-
return lastSlash > 0 ?
|
|
4375
|
+
const lastSlash = Math.max(importMetaUrl2.lastIndexOf("/"), importMetaUrl2.lastIndexOf("\\"));
|
|
4376
|
+
return lastSlash > 0 ? importMetaUrl2.slice(0, lastSlash) : "";
|
|
4316
4377
|
}
|
|
4317
4378
|
var require4 = (0, import_node_module7.createRequire)(
|
|
4318
|
-
|
|
4379
|
+
typeof import_meta6 !== "undefined" && importMetaUrl ? importMetaUrl : typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown"
|
|
4319
4380
|
);
|
|
4320
|
-
var _importMetaUrl =
|
|
4381
|
+
var _importMetaUrl = typeof import_meta6 !== "undefined" && importMetaUrl ? importMetaUrl : typeof __filename !== "undefined" ? `file://${__filename}` : void 0;
|
|
4321
4382
|
var resolveRuntimeDir2 = () => _importMetaUrl ? getDirnameFromUrl2(_importMetaUrl) : __dirname;
|
|
4322
4383
|
var resolveLoaderPath2 = (basename) => {
|
|
4323
4384
|
try {
|