@absolutejs/absolute 0.19.0-beta.807 → 0.19.0-beta.809
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/angular/browser.js +9801 -57
- package/dist/angular/browser.js.map +246 -4
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/index.js +14877 -60
- package/dist/angular/index.js.map +281 -4
- package/dist/angular/server.js +5610 -45
- package/dist/angular/server.js.map +51 -3
- package/dist/build.js +18092 -45
- package/dist/build.js.map +99 -3
- package/dist/cli/index.js +317 -86
- package/dist/client/index.js +1091 -70
- package/dist/client/index.js.map +24 -4
- package/dist/core/streamingSlotRegistrar.js +108 -11
- package/dist/core/streamingSlotRegistrar.js.map +4 -3
- package/dist/core/streamingSlotRegistry.js +169 -7
- package/dist/core/streamingSlotRegistry.js.map +5 -3
- package/dist/index.js +19957 -547
- package/dist/index.js.map +116 -3
- package/dist/islands/browser.js +228 -9
- package/dist/islands/browser.js.map +9 -4
- package/dist/islands/index.js +1908 -17
- package/dist/islands/index.js.map +27 -3
- package/dist/react/browser.js +328 -12
- package/dist/react/browser.js.map +12 -4
- package/dist/react/components/index.js +167 -16
- package/dist/react/components/index.js.map +6 -3
- package/dist/react/hooks/index.js +183 -8
- package/dist/react/hooks/index.js.map +7 -3
- package/dist/react/index.js +3627 -36
- package/dist/react/index.js.map +45 -4
- package/dist/react/jsxDevRuntimeCompat.js +61 -2
- package/dist/react/jsxDevRuntimeCompat.js.map +2 -2
- package/dist/react/server.js +1789 -18
- package/dist/react/server.js.map +21 -3
- package/dist/src/angular/injectorPatch.d.ts +1 -0
- package/dist/src/angular/islands.d.ts +1 -0
- package/dist/src/client/hydrators/react.d.ts +3 -0
- package/dist/src/client/hydrators/svelte.d.ts +2 -0
- package/dist/src/client/hydrators/vue.d.ts +2 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/svelte/browser.js +247 -12
- package/dist/svelte/browser.js.map +10 -3
- package/dist/svelte/index.js +3732 -37
- package/dist/svelte/index.js.map +47 -4
- package/dist/svelte/server.js +2794 -21
- package/dist/svelte/server.js.map +27 -3
- package/dist/vue/browser.js +348 -12
- package/dist/vue/browser.js.map +12 -4
- package/dist/vue/components/Image.js +240 -7
- package/dist/vue/components/Image.js.map +6 -3
- package/dist/vue/components/index.js +544 -11
- package/dist/vue/components/index.js.map +9 -3
- package/dist/vue/index.js +4212 -52
- package/dist/vue/index.js.map +50 -4
- package/dist/vue/server.js +1849 -18
- package/dist/vue/server.js.map +21 -3
- package/package.json +1 -1
- package/dist/chunk-0867j0r0.js +0 -136
- package/dist/chunk-0867j0r0.js.map +0 -10
- package/dist/chunk-102fp7xe.js +0 -63
- package/dist/chunk-102fp7xe.js.map +0 -10
- package/dist/chunk-11zpfqz6.js +0 -19
- package/dist/chunk-11zpfqz6.js.map +0 -10
- package/dist/chunk-1rfh7hw9.js +0 -319
- package/dist/chunk-1rfh7hw9.js.map +0 -11
- package/dist/chunk-1x4fxm57.js +0 -51
- package/dist/chunk-1x4fxm57.js.map +0 -9
- package/dist/chunk-25v9t56f.js +0 -29
- package/dist/chunk-25v9t56f.js.map +0 -11
- package/dist/chunk-2f21eenc.js +0 -21
- package/dist/chunk-2f21eenc.js.map +0 -10
- package/dist/chunk-2ga2znex.js +0 -13
- package/dist/chunk-2ga2znex.js.map +0 -9
- package/dist/chunk-30yrw0f6.js +0 -33
- package/dist/chunk-30yrw0f6.js.map +0 -10
- package/dist/chunk-3g91wb4f.js +0 -358
- package/dist/chunk-3g91wb4f.js.map +0 -10
- package/dist/chunk-3rea1gam.js +0 -4403
- package/dist/chunk-3rea1gam.js.map +0 -28
- package/dist/chunk-3yjzpcne.js +0 -34
- package/dist/chunk-3yjzpcne.js.map +0 -10
- package/dist/chunk-41bf6aqt.js +0 -17
- package/dist/chunk-41bf6aqt.js.map +0 -9
- package/dist/chunk-4d39r92n.js +0 -81
- package/dist/chunk-4d39r92n.js.map +0 -10
- package/dist/chunk-5003emhv.js +0 -17
- package/dist/chunk-5003emhv.js.map +0 -10
- package/dist/chunk-5f67rsed.js +0 -466
- package/dist/chunk-5f67rsed.js.map +0 -10
- package/dist/chunk-5fhp1jap.js +0 -9169
- package/dist/chunk-5fhp1jap.js.map +0 -236
- package/dist/chunk-629x0yh4.js +0 -20
- package/dist/chunk-629x0yh4.js.map +0 -9
- package/dist/chunk-6pdj08z3.js +0 -73
- package/dist/chunk-6pdj08z3.js.map +0 -12
- package/dist/chunk-6qjbrt0k.js +0 -13
- package/dist/chunk-6qjbrt0k.js.map +0 -9
- package/dist/chunk-6sccb4jr.js +0 -14
- package/dist/chunk-6sccb4jr.js.map +0 -9
- package/dist/chunk-798spvzv.js +0 -50
- package/dist/chunk-798spvzv.js.map +0 -10
- package/dist/chunk-7fw6x3js.js +0 -131
- package/dist/chunk-7fw6x3js.js.map +0 -11
- package/dist/chunk-7kjj42xm.js +0 -11
- package/dist/chunk-7kjj42xm.js.map +0 -10
- package/dist/chunk-7mtstdqn.js +0 -90
- package/dist/chunk-7mtstdqn.js.map +0 -10
- package/dist/chunk-851whwc7.js +0 -17
- package/dist/chunk-851whwc7.js.map +0 -10
- package/dist/chunk-85n68sy6.js +0 -103
- package/dist/chunk-85n68sy6.js.map +0 -10
- package/dist/chunk-8kcfffry.js +0 -35
- package/dist/chunk-8kcfffry.js.map +0 -10
- package/dist/chunk-92fsjfpp.js +0 -1731
- package/dist/chunk-92fsjfpp.js.map +0 -11
- package/dist/chunk-93sqk7be.js +0 -139
- package/dist/chunk-93sqk7be.js.map +0 -12
- package/dist/chunk-9c5tj4k3.js +0 -130
- package/dist/chunk-9c5tj4k3.js.map +0 -10
- package/dist/chunk-9j59emg3.js +0 -184
- package/dist/chunk-9j59emg3.js.map +0 -11
- package/dist/chunk-9ve9jq72.js +0 -203
- package/dist/chunk-9ve9jq72.js.map +0 -10
- package/dist/chunk-9xrsjeem.js +0 -12
- package/dist/chunk-9xrsjeem.js.map +0 -9
- package/dist/chunk-a9mvyp04.js +0 -87
- package/dist/chunk-a9mvyp04.js.map +0 -10
- package/dist/chunk-b3gbnrwe.js +0 -21
- package/dist/chunk-b3gbnrwe.js.map +0 -10
- package/dist/chunk-bgb8k1qs.js +0 -672
- package/dist/chunk-bgb8k1qs.js.map +0 -15
- package/dist/chunk-bmgqm774.js +0 -65
- package/dist/chunk-bmgqm774.js.map +0 -9
- package/dist/chunk-bxfghpma.js +0 -69
- package/dist/chunk-bxfghpma.js.map +0 -10
- package/dist/chunk-c1jfjnka.js +0 -74
- package/dist/chunk-c1jfjnka.js.map +0 -10
- package/dist/chunk-cbkrwmvh.js +0 -80
- package/dist/chunk-cbkrwmvh.js.map +0 -10
- package/dist/chunk-cdxd7sy2.js +0 -71
- package/dist/chunk-cdxd7sy2.js.map +0 -10
- package/dist/chunk-cg95827x.js +0 -21
- package/dist/chunk-cg95827x.js.map +0 -10
- package/dist/chunk-cm0g4q6w.js +0 -149
- package/dist/chunk-cm0g4q6w.js.map +0 -10
- package/dist/chunk-d7mwkzry.js +0 -261
- package/dist/chunk-d7mwkzry.js.map +0 -10
- package/dist/chunk-d9c0am65.js +0 -12
- package/dist/chunk-d9c0am65.js.map +0 -10
- package/dist/chunk-daqghmg8.js +0 -12
- package/dist/chunk-daqghmg8.js.map +0 -9
- package/dist/chunk-e3r9fxaa.js +0 -149
- package/dist/chunk-e3r9fxaa.js.map +0 -10
- package/dist/chunk-e8eecyrq.js +0 -244
- package/dist/chunk-e8eecyrq.js.map +0 -10
- package/dist/chunk-ex2hxe0v.js +0 -160
- package/dist/chunk-ex2hxe0v.js.map +0 -11
- package/dist/chunk-fak944et.js +0 -91
- package/dist/chunk-fak944et.js.map +0 -10
- package/dist/chunk-fygx2ymm.js +0 -118
- package/dist/chunk-fygx2ymm.js.map +0 -12
- package/dist/chunk-g15qj669.js +0 -271
- package/dist/chunk-g15qj669.js.map +0 -11
- package/dist/chunk-gd6wmknh.js +0 -121
- package/dist/chunk-gd6wmknh.js.map +0 -11
- package/dist/chunk-gf0ygptk.js +0 -85
- package/dist/chunk-gf0ygptk.js.map +0 -11
- package/dist/chunk-gytkmthr.js +0 -220
- package/dist/chunk-gytkmthr.js.map +0 -10
- package/dist/chunk-h5bbfn3n.js +0 -28
- package/dist/chunk-h5bbfn3n.js.map +0 -11
- package/dist/chunk-h6mye9r3.js +0 -93
- package/dist/chunk-h6mye9r3.js.map +0 -10
- package/dist/chunk-hcsmxw1v.js +0 -85
- package/dist/chunk-hcsmxw1v.js.map +0 -10
- package/dist/chunk-hyjs4bqs.js +0 -8
- package/dist/chunk-hyjs4bqs.js.map +0 -10
- package/dist/chunk-jn91vzkh.js +0 -66
- package/dist/chunk-jn91vzkh.js.map +0 -10
- package/dist/chunk-jpkjdgsk.js +0 -167
- package/dist/chunk-jpkjdgsk.js.map +0 -11
- package/dist/chunk-jwxt8gnp.js +0 -13
- package/dist/chunk-jwxt8gnp.js.map +0 -9
- package/dist/chunk-kk8w9rh5.js +0 -195
- package/dist/chunk-kk8w9rh5.js.map +0 -10
- package/dist/chunk-kwgh8rmg.js +0 -426
- package/dist/chunk-kwgh8rmg.js.map +0 -14
- package/dist/chunk-m97ze5hz.js +0 -46
- package/dist/chunk-m97ze5hz.js.map +0 -10
- package/dist/chunk-mbazhahf.js +0 -60
- package/dist/chunk-mbazhahf.js.map +0 -10
- package/dist/chunk-mgfwq18r.js +0 -15
- package/dist/chunk-mgfwq18r.js.map +0 -9
- package/dist/chunk-mtgf69xn.js +0 -88
- package/dist/chunk-mtgf69xn.js.map +0 -10
- package/dist/chunk-mtxzyxpg.js +0 -102
- package/dist/chunk-mtxzyxpg.js.map +0 -10
- package/dist/chunk-nehhtthw.js +0 -225
- package/dist/chunk-nehhtthw.js.map +0 -10
- package/dist/chunk-p5504p14.js +0 -16
- package/dist/chunk-p5504p14.js.map +0 -10
- package/dist/chunk-p5zgj77m.js +0 -184
- package/dist/chunk-p5zgj77m.js.map +0 -10
- package/dist/chunk-pnscgw95.js +0 -90
- package/dist/chunk-pnscgw95.js.map +0 -10
- package/dist/chunk-pvpp4pvs.js +0 -17
- package/dist/chunk-pvpp4pvs.js.map +0 -10
- package/dist/chunk-qh75agse.js +0 -95
- package/dist/chunk-qh75agse.js.map +0 -10
- package/dist/chunk-qxq2zcty.js +0 -52
- package/dist/chunk-qxq2zcty.js.map +0 -10
- package/dist/chunk-r6e8pytx.js +0 -22
- package/dist/chunk-r6e8pytx.js.map +0 -9
- package/dist/chunk-r7jmgqnw.js +0 -114
- package/dist/chunk-r7jmgqnw.js.map +0 -10
- package/dist/chunk-s6defjk2.js +0 -116
- package/dist/chunk-s6defjk2.js.map +0 -10
- package/dist/chunk-sd39p726.js +0 -619
- package/dist/chunk-sd39p726.js.map +0 -10
- package/dist/chunk-swrnzs4c.js +0 -63
- package/dist/chunk-swrnzs4c.js.map +0 -10
- package/dist/chunk-tfe3sb44.js +0 -33
- package/dist/chunk-tfe3sb44.js.map +0 -10
- package/dist/chunk-tjr0kcev.js +0 -41
- package/dist/chunk-tjr0kcev.js.map +0 -9
- package/dist/chunk-tx9edm1x.js +0 -34
- package/dist/chunk-tx9edm1x.js.map +0 -10
- package/dist/chunk-txhm2vb5.js +0 -18
- package/dist/chunk-txhm2vb5.js.map +0 -9
- package/dist/chunk-v5vmsxmy.js +0 -526
- package/dist/chunk-v5vmsxmy.js.map +0 -12
- package/dist/chunk-vjhxm8n2.js +0 -29
- package/dist/chunk-vjhxm8n2.js.map +0 -9
- package/dist/chunk-vkrpm7kc.js +0 -247
- package/dist/chunk-vkrpm7kc.js.map +0 -12
- package/dist/chunk-w3m4m5we.js +0 -4925
- package/dist/chunk-w3m4m5we.js.map +0 -12
- package/dist/chunk-wrxtn9ve.js +0 -18
- package/dist/chunk-wrxtn9ve.js.map +0 -10
- package/dist/chunk-x09cskqd.js +0 -377
- package/dist/chunk-x09cskqd.js.map +0 -10
- package/dist/chunk-xnt8c6h2.js +0 -576
- package/dist/chunk-xnt8c6h2.js.map +0 -10
- package/dist/chunk-xw0tx842.js +0 -13
- package/dist/chunk-xw0tx842.js.map +0 -9
- package/dist/chunk-xx5b6b9m.js +0 -69
- package/dist/chunk-xx5b6b9m.js.map +0 -10
- package/dist/chunk-xz1kdswj.js +0 -21
- package/dist/chunk-xz1kdswj.js.map +0 -9
- package/dist/chunk-y84qnsd3.js +0 -32
- package/dist/chunk-y84qnsd3.js.map +0 -10
- package/dist/chunk-ywjn0rad.js +0 -14
- package/dist/chunk-ywjn0rad.js.map +0 -9
- package/dist/chunk-z9nvhm6r.js +0 -13
- package/dist/chunk-z9nvhm6r.js.map +0 -9
- package/dist/chunk-zhmvdpk6.js +0 -15
- package/dist/chunk-zhmvdpk6.js.map +0 -9
- package/dist/chunk-zrg9d4zw.js +0 -784
- package/dist/chunk-zrg9d4zw.js.map +0 -10
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/utils/validateSafePath.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"import { resolve, relative } from 'node:path';\nimport { normalizePath } from './normalizePath';\n\nexport const validateSafePath = (targetPath: string, baseDirectory: string) => {\n\tconst absoluteBase = resolve(baseDirectory);\n\tconst absoluteTarget = resolve(baseDirectory, targetPath);\n\t// Normalize relative path for consistent cross-platform traversal check\n\tconst relativePath = normalizePath(relative(absoluteBase, absoluteTarget));\n\n\tif (relativePath.startsWith('../') || relativePath === '..') {\n\t\tthrow new Error(`Unsafe path: ${targetPath}`);\n\t}\n\n\treturn absoluteTarget;\n};\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": ";;;;;;AAAA;AAGO,IAAM,mBAAmB,CAAC,YAAoB,kBAA0B;AAAA,EAC9E,MAAM,eAAe,QAAQ,aAAa;AAAA,EAC1C,MAAM,iBAAiB,QAAQ,eAAe,UAAU;AAAA,EAExD,MAAM,eAAe,cAAc,SAAS,cAAc,cAAc,CAAC;AAAA,EAEzE,IAAI,aAAa,WAAW,KAAK,KAAK,iBAAiB,MAAM;AAAA,IAC5D,MAAM,IAAI,MAAM,gBAAgB,YAAY;AAAA,EAC7C;AAAA,EAEA,OAAO;AAAA;",
|
|
8
|
-
"debugId": "ACF897EC8658AF9664756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|
package/dist/chunk-cm0g4q6w.js
DELETED
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
resolveAngularRuntimePath
|
|
4
|
-
} from "./chunk-m97ze5hz.js";
|
|
5
|
-
import"./chunk-bmgqm774.js";
|
|
6
|
-
|
|
7
|
-
// src/angular/angularPatch.ts
|
|
8
|
-
var ensureHead = (doc) => {
|
|
9
|
-
if (!doc || doc.head || !doc.documentElement) {
|
|
10
|
-
return;
|
|
11
|
-
}
|
|
12
|
-
const head = doc.createElement("head");
|
|
13
|
-
doc.documentElement.insertBefore(head, doc.documentElement.firstChild);
|
|
14
|
-
};
|
|
15
|
-
var SSR_LAYOUT_RECT = Object.freeze({
|
|
16
|
-
bottom: 0,
|
|
17
|
-
height: 0,
|
|
18
|
-
left: 0,
|
|
19
|
-
right: 0,
|
|
20
|
-
top: 0,
|
|
21
|
-
width: 0,
|
|
22
|
-
x: 0,
|
|
23
|
-
y: 0,
|
|
24
|
-
toJSON() {
|
|
25
|
-
return this;
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
var layoutPatchApplied = false;
|
|
29
|
-
var collectPrototypeChain = (instance) => {
|
|
30
|
-
const protos = [];
|
|
31
|
-
let current = instance ? Object.getPrototypeOf(instance) : null;
|
|
32
|
-
while (current && current !== Object.prototype) {
|
|
33
|
-
protos.push(current);
|
|
34
|
-
current = Object.getPrototypeOf(current);
|
|
35
|
-
}
|
|
36
|
-
return protos;
|
|
37
|
-
};
|
|
38
|
-
var patchElementLayout = (doc) => {
|
|
39
|
-
if (layoutPatchApplied || !doc) {
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
let element;
|
|
43
|
-
try {
|
|
44
|
-
element = doc.createElement("div");
|
|
45
|
-
} catch {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
const protos = collectPrototypeChain(element);
|
|
49
|
-
if (protos.length === 0)
|
|
50
|
-
return;
|
|
51
|
-
const copyLayoutRect = (rect) => ({ ...rect });
|
|
52
|
-
const createLayoutRect = () => copyLayoutRect(SSR_LAYOUT_RECT);
|
|
53
|
-
const getClientRects = () => [];
|
|
54
|
-
const noop = () => {
|
|
55
|
-
return;
|
|
56
|
-
};
|
|
57
|
-
const numericProps = [
|
|
58
|
-
"clientWidth",
|
|
59
|
-
"clientHeight",
|
|
60
|
-
"clientLeft",
|
|
61
|
-
"clientTop",
|
|
62
|
-
"offsetWidth",
|
|
63
|
-
"offsetHeight",
|
|
64
|
-
"offsetLeft",
|
|
65
|
-
"offsetTop",
|
|
66
|
-
"scrollWidth",
|
|
67
|
-
"scrollHeight",
|
|
68
|
-
"scrollLeft",
|
|
69
|
-
"scrollTop"
|
|
70
|
-
];
|
|
71
|
-
for (const proto of protos) {
|
|
72
|
-
const define = (name, value) => {
|
|
73
|
-
const descriptor = Object.getOwnPropertyDescriptor(proto, name);
|
|
74
|
-
if (typeof descriptor?.value === "function")
|
|
75
|
-
return;
|
|
76
|
-
Object.defineProperty(proto, name, {
|
|
77
|
-
configurable: true,
|
|
78
|
-
value,
|
|
79
|
-
writable: true
|
|
80
|
-
});
|
|
81
|
-
};
|
|
82
|
-
define("getBoundingClientRect", createLayoutRect);
|
|
83
|
-
define("getClientRects", getClientRects);
|
|
84
|
-
define("scrollTo", noop);
|
|
85
|
-
define("scrollBy", noop);
|
|
86
|
-
define("scrollIntoView", noop);
|
|
87
|
-
define("focus", noop);
|
|
88
|
-
define("blur", noop);
|
|
89
|
-
for (const prop of numericProps) {
|
|
90
|
-
const desc = Object.getOwnPropertyDescriptor(proto, prop);
|
|
91
|
-
if (desc)
|
|
92
|
-
continue;
|
|
93
|
-
Object.defineProperty(proto, prop, {
|
|
94
|
-
configurable: true,
|
|
95
|
-
get: () => 0
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
layoutPatchApplied = true;
|
|
100
|
-
};
|
|
101
|
-
var applyPatches = async () => {
|
|
102
|
-
const { \u{275}DominoAdapter } = await import(resolveAngularRuntimePath("@angular/platform-server"));
|
|
103
|
-
if (!\u{275}DominoAdapter?.prototype) {
|
|
104
|
-
console.warn("[Angular Patch] \u0275DominoAdapter not found, skipping patches");
|
|
105
|
-
return false;
|
|
106
|
-
}
|
|
107
|
-
try {
|
|
108
|
-
const adapter = new \u{275}DominoAdapter;
|
|
109
|
-
const seedDoc = typeof adapter.createHtmlDocument === "function" ? adapter.createHtmlDocument() : typeof adapter.getDefaultDocument === "function" ? adapter.getDefaultDocument() : null;
|
|
110
|
-
if (seedDoc) {
|
|
111
|
-
patchElementLayout(seedDoc);
|
|
112
|
-
const probe = seedDoc.createElement("div");
|
|
113
|
-
if (typeof probe.getBoundingClientRect !== "function") {
|
|
114
|
-
console.warn("[Angular Patch] Layout shim did not stick on probe element prototype chain");
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
} catch (error) {
|
|
118
|
-
console.warn("[Angular Patch] Could not eagerly patch Element prototypes:", error);
|
|
119
|
-
}
|
|
120
|
-
const proto = \u{275}DominoAdapter.prototype;
|
|
121
|
-
const origGetBaseHref = proto.getBaseHref;
|
|
122
|
-
proto.getBaseHref = function(doc) {
|
|
123
|
-
if (!doc || !doc.head || typeof doc.head.children === "undefined") {
|
|
124
|
-
return "";
|
|
125
|
-
}
|
|
126
|
-
return origGetBaseHref.call(this, doc);
|
|
127
|
-
};
|
|
128
|
-
const origCreateHtmlDocument = proto.createHtmlDocument;
|
|
129
|
-
proto.createHtmlDocument = function() {
|
|
130
|
-
const doc = origCreateHtmlDocument.call(this);
|
|
131
|
-
ensureHead(doc);
|
|
132
|
-
patchElementLayout(doc);
|
|
133
|
-
return doc;
|
|
134
|
-
};
|
|
135
|
-
const origGetDefaultDocument = proto.getDefaultDocument;
|
|
136
|
-
proto.getDefaultDocument = function() {
|
|
137
|
-
const doc = origGetDefaultDocument.call(this);
|
|
138
|
-
ensureHead(doc);
|
|
139
|
-
patchElementLayout(doc);
|
|
140
|
-
return doc;
|
|
141
|
-
};
|
|
142
|
-
return true;
|
|
143
|
-
};
|
|
144
|
-
export {
|
|
145
|
-
applyPatches
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
//# debugId=D59B1B9EA72E3DAF64756E2164756E21
|
|
149
|
-
//# sourceMappingURL=chunk-cm0g4q6w.js.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/angular/angularPatch.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"import { resolveAngularRuntimePath } from './resolveAngularPackage';\n\n// Patches Angular SSR's DominoAdapter to guard against null doc.head\n\nconst ensureHead = (doc: Document) => {\n\tif (!doc || doc.head || !doc.documentElement) {\n\t\treturn;\n\t}\n\n\tconst head = doc.createElement('head');\n\tdoc.documentElement.insertBefore(head, doc.documentElement.firstChild);\n};\n\n// Domino's Element does not implement layout APIs that browser components\n// (e.g. ngx-datatable, swiper, drag-drop) call eagerly during change detection.\n// Returning a zeroed DOMRect lets those components render in SSR without\n// crashing — the real values get computed once the page hydrates client-side.\nconst SSR_LAYOUT_RECT = Object.freeze({\n\tbottom: 0,\n\theight: 0,\n\tleft: 0,\n\tright: 0,\n\ttop: 0,\n\twidth: 0,\n\tx: 0,\n\ty: 0,\n\ttoJSON() {\n\t\treturn this;\n\t}\n});\nlet layoutPatchApplied = false;\nconst collectPrototypeChain = (instance: object | null) => {\n\tconst protos: object[] = [];\n\tlet current: object | null = instance\n\t\t? Object.getPrototypeOf(instance)\n\t\t: null;\n\twhile (current && current !== Object.prototype) {\n\t\tprotos.push(current);\n\t\tcurrent = Object.getPrototypeOf(current);\n\t}\n\n\treturn protos;\n};\n\nconst patchElementLayout = (doc: Document) => {\n\tif (layoutPatchApplied || !doc) {\n\t\treturn;\n\t}\n\tlet element: Element;\n\ttry {\n\t\telement = doc.createElement('div');\n\t} catch {\n\t\treturn;\n\t}\n\t// Walk the entire prototype chain so HTMLElement → Element → Node all get\n\t// the layout shims. Domino's base Element.prototype is several hops above\n\t// HTMLDivElement.prototype, and 3rd-party libs call methods anywhere along\n\t// the chain.\n\tconst protos = collectPrototypeChain(element);\n\tif (protos.length === 0) return;\n\n\tconst copyLayoutRect = (rect: typeof SSR_LAYOUT_RECT) => ({ ...rect });\n\tconst createLayoutRect = () => copyLayoutRect(SSR_LAYOUT_RECT);\n\tconst getClientRects = () => [];\n\tconst noop = () => undefined;\n\tconst numericProps = [\n\t\t'clientWidth',\n\t\t'clientHeight',\n\t\t'clientLeft',\n\t\t'clientTop',\n\t\t'offsetWidth',\n\t\t'offsetHeight',\n\t\t'offsetLeft',\n\t\t'offsetTop',\n\t\t'scrollWidth',\n\t\t'scrollHeight',\n\t\t'scrollLeft',\n\t\t'scrollTop'\n\t];\n\n\tfor (const proto of protos) {\n\t\tconst define = (name: string, value: unknown) => {\n\t\t\tconst descriptor = Object.getOwnPropertyDescriptor(proto, name);\n\t\t\tif (typeof descriptor?.value === 'function') return;\n\n\t\t\tObject.defineProperty(proto, name, {\n\t\t\t\tconfigurable: true,\n\t\t\t\tvalue,\n\t\t\t\twritable: true\n\t\t\t});\n\t\t};\n\n\t\tdefine('getBoundingClientRect', createLayoutRect);\n\t\tdefine('getClientRects', getClientRects);\n\t\tdefine('scrollTo', noop);\n\t\tdefine('scrollBy', noop);\n\t\tdefine('scrollIntoView', noop);\n\t\tdefine('focus', noop);\n\t\tdefine('blur', noop);\n\n\t\tfor (const prop of numericProps) {\n\t\t\tconst desc = Object.getOwnPropertyDescriptor(proto, prop);\n\t\t\tif (desc) continue;\n\t\t\tObject.defineProperty(proto, prop, {\n\t\t\t\tconfigurable: true,\n\t\t\t\tget: () => 0\n\t\t\t});\n\t\t}\n\t}\n\n\tlayoutPatchApplied = true;\n};\n\nexport const applyPatches = async () => {\n\tconst { ɵDominoAdapter } = await import(\n\t\tresolveAngularRuntimePath('@angular/platform-server')\n\t);\n\tif (!ɵDominoAdapter?.prototype) {\n\t\tconsole.warn(\n\t\t\t'[Angular Patch] ɵDominoAdapter not found, skipping patches'\n\t\t);\n\n\t\treturn false;\n\t}\n\n\t// Patch the layout shims onto Domino's Element prototypes immediately\n\t// (don't wait for the first createHtmlDocument call). Components that\n\t// hold an ElementRef from the very first change-detection pass call\n\t// these methods before the lazy patch path would have run.\n\ttry {\n\t\tconst adapter = new ɵDominoAdapter();\n\t\tconst seedDoc =\n\t\t\ttypeof adapter.createHtmlDocument === 'function'\n\t\t\t\t? adapter.createHtmlDocument()\n\t\t\t\t: typeof adapter.getDefaultDocument === 'function'\n\t\t\t\t\t? adapter.getDefaultDocument()\n\t\t\t\t\t: null;\n\t\tif (seedDoc) {\n\t\t\tpatchElementLayout(seedDoc);\n\t\t\tconst probe = seedDoc.createElement('div') as Element & {\n\t\t\t\tgetBoundingClientRect?: () => DOMRect;\n\t\t\t};\n\t\t\tif (typeof probe.getBoundingClientRect !== 'function') {\n\t\t\t\tconsole.warn(\n\t\t\t\t\t'[Angular Patch] Layout shim did not stick on probe element prototype chain'\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t} catch (error) {\n\t\tconsole.warn(\n\t\t\t'[Angular Patch] Could not eagerly patch Element prototypes:',\n\t\t\terror\n\t\t);\n\t}\n\n\tconst proto = ɵDominoAdapter.prototype;\n\n\tconst origGetBaseHref = proto.getBaseHref;\n\tproto.getBaseHref = function (doc: Document) {\n\t\tif (!doc || !doc.head || typeof doc.head.children === 'undefined') {\n\t\t\treturn '';\n\t\t}\n\n\t\treturn origGetBaseHref.call(this, doc);\n\t};\n\n\tconst origCreateHtmlDocument = proto.createHtmlDocument;\n\tproto.createHtmlDocument = function () {\n\t\tconst doc = origCreateHtmlDocument.call(this);\n\t\tensureHead(doc);\n\t\tpatchElementLayout(doc);\n\n\t\treturn doc;\n\t};\n\n\tconst origGetDefaultDocument = proto.getDefaultDocument;\n\tproto.getDefaultDocument = function () {\n\t\tconst doc = origGetDefaultDocument.call(this);\n\t\tensureHead(doc);\n\t\tpatchElementLayout(doc);\n\n\t\treturn doc;\n\t};\n\n\treturn true;\n};\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": ";;;;;;;AAIA,IAAM,aAAa,CAAC,QAAkB;AAAA,EACrC,IAAI,CAAC,OAAO,IAAI,QAAQ,CAAC,IAAI,iBAAiB;AAAA,IAC7C;AAAA,EACD;AAAA,EAEA,MAAM,OAAO,IAAI,cAAc,MAAM;AAAA,EACrC,IAAI,gBAAgB,aAAa,MAAM,IAAI,gBAAgB,UAAU;AAAA;AAOtE,IAAM,kBAAkB,OAAO,OAAO;AAAA,EACrC,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,OAAO;AAAA,EACP,KAAK;AAAA,EACL,OAAO;AAAA,EACP,GAAG;AAAA,EACH,GAAG;AAAA,EACH,MAAM,GAAG;AAAA,IACR,OAAO;AAAA;AAET,CAAC;AACD,IAAI,qBAAqB;AACzB,IAAM,wBAAwB,CAAC,aAA4B;AAAA,EAC1D,MAAM,SAAmB,CAAC;AAAA,EAC1B,IAAI,UAAyB,WAC1B,OAAO,eAAe,QAAQ,IAC9B;AAAA,EACH,OAAO,WAAW,YAAY,OAAO,WAAW;AAAA,IAC/C,OAAO,KAAK,OAAO;AAAA,IACnB,UAAU,OAAO,eAAe,OAAO;AAAA,EACxC;AAAA,EAEA,OAAO;AAAA;AAGR,IAAM,qBAAqB,CAAC,QAAkB;AAAA,EAC7C,IAAI,sBAAsB,CAAC,KAAK;AAAA,IAC/B;AAAA,EACD;AAAA,EACA,IAAI;AAAA,EACJ,IAAI;AAAA,IACH,UAAU,IAAI,cAAc,KAAK;AAAA,IAChC,MAAM;AAAA,IACP;AAAA;AAAA,EA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
|
8
|
-
"debugId": "D59B1B9EA72E3DAF64756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|
package/dist/chunk-d7mwkzry.js
DELETED
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
compileStyleSource
|
|
4
|
-
} from "./chunk-xnt8c6h2.js";
|
|
5
|
-
import {
|
|
6
|
-
__require
|
|
7
|
-
} from "./chunk-bmgqm774.js";
|
|
8
|
-
|
|
9
|
-
// src/build/tailwindCompiler.ts
|
|
10
|
-
import { createHash } from "crypto";
|
|
11
|
-
import { existsSync, readFileSync } from "fs";
|
|
12
|
-
import { readFile, stat } from "fs/promises";
|
|
13
|
-
import { dirname, isAbsolute, resolve } from "path";
|
|
14
|
-
var compilerCache = new Map;
|
|
15
|
-
var cachedTailwindCompile = null;
|
|
16
|
-
var loadTailwindCompile = async () => {
|
|
17
|
-
if (cachedTailwindCompile)
|
|
18
|
-
return cachedTailwindCompile;
|
|
19
|
-
try {
|
|
20
|
-
const mod = await import("./chunk-w3m4m5we.js");
|
|
21
|
-
cachedTailwindCompile = mod.compile;
|
|
22
|
-
return mod.compile;
|
|
23
|
-
} catch {
|
|
24
|
-
throw new Error("Tailwind incremental dev compiler requires `tailwindcss` to be installed.");
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
var recordDependency = async (deps, path) => {
|
|
28
|
-
try {
|
|
29
|
-
const mtime = (await stat(path)).mtimeMs;
|
|
30
|
-
deps.set(path, mtime);
|
|
31
|
-
} catch {
|
|
32
|
-
deps.set(path, 0);
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
var resolveBareCssImport = (id, base) => {
|
|
36
|
-
const slashIndex = id.indexOf("/");
|
|
37
|
-
const pkgName = id.startsWith("@") ? id.split("/").slice(0, 2).join("/") : slashIndex === -1 ? id : id.slice(0, slashIndex);
|
|
38
|
-
const subpath = id.slice(pkgName.length);
|
|
39
|
-
if (subpath !== "") {
|
|
40
|
-
return Bun.resolveSync(id, base);
|
|
41
|
-
}
|
|
42
|
-
let pkgJsonPath;
|
|
43
|
-
try {
|
|
44
|
-
pkgJsonPath = Bun.resolveSync(`${pkgName}/package.json`, base);
|
|
45
|
-
} catch {
|
|
46
|
-
return Bun.resolveSync(id, base);
|
|
47
|
-
}
|
|
48
|
-
const pkgDir = dirname(pkgJsonPath);
|
|
49
|
-
let pkg = {};
|
|
50
|
-
try {
|
|
51
|
-
pkg = JSON.parse(readFileSync(pkgJsonPath, "utf-8"));
|
|
52
|
-
} catch {
|
|
53
|
-
return Bun.resolveSync(id, base);
|
|
54
|
-
}
|
|
55
|
-
const exportsField = pkg.exports;
|
|
56
|
-
const styleFromExports = exportsField?.["."]?.style;
|
|
57
|
-
const candidates = [
|
|
58
|
-
styleFromExports,
|
|
59
|
-
typeof pkg.style === "string" ? pkg.style : undefined,
|
|
60
|
-
"index.css",
|
|
61
|
-
"dist/index.css"
|
|
62
|
-
].filter((entry) => typeof entry === "string");
|
|
63
|
-
for (const candidate of candidates) {
|
|
64
|
-
const candidatePath = resolve(pkgDir, candidate);
|
|
65
|
-
if (existsSync(candidatePath))
|
|
66
|
-
return candidatePath;
|
|
67
|
-
}
|
|
68
|
-
return Bun.resolveSync(id, base);
|
|
69
|
-
};
|
|
70
|
-
var createLoadStylesheet = (deps) => async (id, base) => {
|
|
71
|
-
const path = id.startsWith(".") || isAbsolute(id) ? resolve(base, id) : resolveBareCssImport(id, base);
|
|
72
|
-
const content = await readFile(path, "utf-8");
|
|
73
|
-
await recordDependency(deps, path);
|
|
74
|
-
return { base: dirname(path), content, path };
|
|
75
|
-
};
|
|
76
|
-
var loadModule = async (id, base, _kind) => {
|
|
77
|
-
const path = id.startsWith(".") || isAbsolute(id) ? resolve(base, id) : Bun.resolveSync(id, base);
|
|
78
|
-
const module = await import(path);
|
|
79
|
-
return { base: dirname(path), module, path };
|
|
80
|
-
};
|
|
81
|
-
var buildCompilerEntry = async (cssPath) => {
|
|
82
|
-
const compile = await loadTailwindCompile();
|
|
83
|
-
const absPath = resolve(cssPath);
|
|
84
|
-
const css = await readFile(absPath, "utf-8");
|
|
85
|
-
const cssMtimeMs = (await stat(absPath)).mtimeMs;
|
|
86
|
-
const cssDependencies = new Map;
|
|
87
|
-
cssDependencies.set(absPath, cssMtimeMs);
|
|
88
|
-
const compiler = await compile(css, {
|
|
89
|
-
base: dirname(absPath),
|
|
90
|
-
loadModule,
|
|
91
|
-
loadStylesheet: createLoadStylesheet(cssDependencies)
|
|
92
|
-
});
|
|
93
|
-
return {
|
|
94
|
-
candidateCounts: new Map,
|
|
95
|
-
compiler,
|
|
96
|
-
cssDependencies,
|
|
97
|
-
cssMtimeMs,
|
|
98
|
-
cssPath: absPath,
|
|
99
|
-
lastEmittedHash: null,
|
|
100
|
-
perFileCandidates: new Map,
|
|
101
|
-
sources: [...compiler.sources]
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
var CANDIDATE_PATTERN = /[A-Za-z!\-_][\w:\-/[\]().!,#%@&'"=]*[\w\])]/g;
|
|
105
|
-
var extractCandidates = (source) => {
|
|
106
|
-
const out = new Set;
|
|
107
|
-
for (const match of source.matchAll(CANDIDATE_PATTERN)) {
|
|
108
|
-
out.add(match[0]);
|
|
109
|
-
}
|
|
110
|
-
return out;
|
|
111
|
-
};
|
|
112
|
-
var hashCss = (css) => createHash("sha1").update(css).digest("hex");
|
|
113
|
-
var fileMatchesSources = (file, sources) => {
|
|
114
|
-
if (sources.length === 0)
|
|
115
|
-
return true;
|
|
116
|
-
const absFile = resolve(file);
|
|
117
|
-
for (const source of sources) {
|
|
118
|
-
if (source.negated)
|
|
119
|
-
continue;
|
|
120
|
-
const absolutePattern = resolve(source.base, source.pattern);
|
|
121
|
-
const glob = new Bun.Glob(absolutePattern);
|
|
122
|
-
if (glob.match(absFile))
|
|
123
|
-
return true;
|
|
124
|
-
}
|
|
125
|
-
return false;
|
|
126
|
-
};
|
|
127
|
-
var incrementCandidateCount = (entry, candidate) => {
|
|
128
|
-
const current = entry.candidateCounts.get(candidate) ?? 0;
|
|
129
|
-
entry.candidateCounts.set(candidate, current + 1);
|
|
130
|
-
};
|
|
131
|
-
var decrementCandidateCount = (entry, candidate) => {
|
|
132
|
-
const current = entry.candidateCounts.get(candidate) ?? 0;
|
|
133
|
-
const next = current - 1;
|
|
134
|
-
if (next <= 0) {
|
|
135
|
-
entry.candidateCounts.delete(candidate);
|
|
136
|
-
return;
|
|
137
|
-
}
|
|
138
|
-
entry.candidateCounts.set(candidate, next);
|
|
139
|
-
};
|
|
140
|
-
var replaceFileCandidates = (entry, file, freshCandidates) => {
|
|
141
|
-
const previous = entry.perFileCandidates.get(file);
|
|
142
|
-
if (previous) {
|
|
143
|
-
for (const candidate of previous)
|
|
144
|
-
decrementCandidateCount(entry, candidate);
|
|
145
|
-
}
|
|
146
|
-
entry.perFileCandidates.set(file, freshCandidates);
|
|
147
|
-
for (const candidate of freshCandidates)
|
|
148
|
-
incrementCandidateCount(entry, candidate);
|
|
149
|
-
};
|
|
150
|
-
var splitGlobAtFirstMeta = (absolutePattern) => {
|
|
151
|
-
const firstMetaIndex = absolutePattern.search(/[*?{[]/);
|
|
152
|
-
if (firstMetaIndex === -1) {
|
|
153
|
-
return { glob: "", root: absolutePattern };
|
|
154
|
-
}
|
|
155
|
-
const lastSlashBeforeMeta = absolutePattern.lastIndexOf("/", firstMetaIndex);
|
|
156
|
-
return {
|
|
157
|
-
glob: absolutePattern.slice(lastSlashBeforeMeta + 1),
|
|
158
|
-
root: absolutePattern.slice(0, lastSlashBeforeMeta) || "/"
|
|
159
|
-
};
|
|
160
|
-
};
|
|
161
|
-
var collectFilesForSources = async (sources) => {
|
|
162
|
-
const seen = new Set;
|
|
163
|
-
const collected = [];
|
|
164
|
-
const scans = sources.filter((source) => !source.negated).map(async (source) => {
|
|
165
|
-
const absolutePattern = resolve(source.base, source.pattern);
|
|
166
|
-
const { glob: relativePattern, root } = splitGlobAtFirstMeta(absolutePattern);
|
|
167
|
-
if (!relativePattern)
|
|
168
|
-
return [];
|
|
169
|
-
const glob = new Bun.Glob(relativePattern);
|
|
170
|
-
const matches = [];
|
|
171
|
-
for await (const relative of glob.scan({
|
|
172
|
-
absolute: false,
|
|
173
|
-
cwd: root,
|
|
174
|
-
onlyFiles: true
|
|
175
|
-
})) {
|
|
176
|
-
matches.push(resolve(root, relative));
|
|
177
|
-
}
|
|
178
|
-
return matches;
|
|
179
|
-
});
|
|
180
|
-
const results = await Promise.all(scans);
|
|
181
|
-
for (const absolute of results.flat()) {
|
|
182
|
-
if (seen.has(absolute))
|
|
183
|
-
continue;
|
|
184
|
-
seen.add(absolute);
|
|
185
|
-
collected.push(absolute);
|
|
186
|
-
}
|
|
187
|
-
return collected;
|
|
188
|
-
};
|
|
189
|
-
var ingestFile = async (entry, absolute) => {
|
|
190
|
-
try {
|
|
191
|
-
const text = await readFile(absolute, "utf-8");
|
|
192
|
-
replaceFileCandidates(entry, absolute, extractCandidates(text));
|
|
193
|
-
} catch {}
|
|
194
|
-
};
|
|
195
|
-
var populateCandidatesFromAllSources = async (entry) => {
|
|
196
|
-
const files = await collectFilesForSources(entry.sources);
|
|
197
|
-
await Promise.all(files.map((file) => ingestFile(entry, file)));
|
|
198
|
-
};
|
|
199
|
-
var isCompilerStale = async (entry) => {
|
|
200
|
-
const checks = [...entry.cssDependencies.entries()].map(async ([path, knownMtime]) => {
|
|
201
|
-
try {
|
|
202
|
-
const mtime = (await stat(path)).mtimeMs;
|
|
203
|
-
return mtime !== knownMtime;
|
|
204
|
-
} catch {
|
|
205
|
-
return true;
|
|
206
|
-
}
|
|
207
|
-
});
|
|
208
|
-
const results = await Promise.all(checks);
|
|
209
|
-
return results.some(Boolean);
|
|
210
|
-
};
|
|
211
|
-
var getCompilerEntry = async (cssPath) => {
|
|
212
|
-
const key = resolve(cssPath);
|
|
213
|
-
const cached = compilerCache.get(key);
|
|
214
|
-
if (cached && !await isCompilerStale(cached))
|
|
215
|
-
return cached;
|
|
216
|
-
const fresh = await buildCompilerEntry(cssPath);
|
|
217
|
-
await populateCandidatesFromAllSources(fresh);
|
|
218
|
-
compilerCache.set(key, fresh);
|
|
219
|
-
return fresh;
|
|
220
|
-
};
|
|
221
|
-
var disposeTailwindCompiler = (cssPath) => {
|
|
222
|
-
if (!cssPath) {
|
|
223
|
-
compilerCache.clear();
|
|
224
|
-
return;
|
|
225
|
-
}
|
|
226
|
-
compilerCache.delete(resolve(cssPath));
|
|
227
|
-
};
|
|
228
|
-
var incrementalTailwindBuild = async (tailwind, buildPath, changedFiles, styleTransformConfig) => {
|
|
229
|
-
const startedAt = performance.now();
|
|
230
|
-
const entry = await getCompilerEntry(tailwind.input);
|
|
231
|
-
const inputAbs = entry.cssPath;
|
|
232
|
-
const filesToRescan = [];
|
|
233
|
-
for (const file of changedFiles) {
|
|
234
|
-
const abs = resolve(file);
|
|
235
|
-
if (abs === inputAbs)
|
|
236
|
-
continue;
|
|
237
|
-
if (!fileMatchesSources(abs, entry.sources))
|
|
238
|
-
continue;
|
|
239
|
-
filesToRescan.push(abs);
|
|
240
|
-
}
|
|
241
|
-
await Promise.all(filesToRescan.map((file) => ingestFile(entry, file)));
|
|
242
|
-
const rawCss = entry.compiler.build([...entry.candidateCounts.keys()]);
|
|
243
|
-
const outputPath = resolve(buildPath, tailwind.output);
|
|
244
|
-
const finalCss = await compileStyleSource(outputPath, rawCss, "css", styleTransformConfig);
|
|
245
|
-
const hash = hashCss(finalCss);
|
|
246
|
-
const durationMs = performance.now() - startedAt;
|
|
247
|
-
if (hash === entry.lastEmittedHash) {
|
|
248
|
-
return { cssChanged: false, durationMs };
|
|
249
|
-
}
|
|
250
|
-
await Bun.write(outputPath, finalCss);
|
|
251
|
-
entry.lastEmittedHash = hash;
|
|
252
|
-
return { cssChanged: true, durationMs };
|
|
253
|
-
};
|
|
254
|
-
var warmTailwindCompiler = async (tailwind) => {
|
|
255
|
-
await getCompilerEntry(tailwind.input);
|
|
256
|
-
};
|
|
257
|
-
|
|
258
|
-
export { extractCandidates, disposeTailwindCompiler, incrementalTailwindBuild, warmTailwindCompiler };
|
|
259
|
-
|
|
260
|
-
//# debugId=98DF22AA58613E2464756E2164756E21
|
|
261
|
-
//# sourceMappingURL=chunk-d7mwkzry.js.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/build/tailwindCompiler.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"/* Persistent Tailwind v4 compiler for incremental dev rebuilds.\n\n The naive path (re-running bun.build with bun-plugin-tailwind) pays the\n bundler init cost on every HMR tick. For a dev workflow where most edits\n only add or remove a few utility classes, that's wasted work — Tailwind v4\n has a per-candidate cache built into its compiler, but only if you keep\n the compiler instance alive.\n\n This module mirrors the strategy used by @tailwindcss/vite: hold one\n compiled instance keyed by the input CSS path, scan only changed files\n for new candidate tokens, and call `compiler.build(allCandidates)` to\n produce CSS. Tailwind reuses its internal cache for candidates it has\n already compiled, so the marginal cost per HMR is just the file scan\n plus CSS serialization.\n\n We also content-hash the emitted CSS and skip the broadcast (and the\n disk write) when it hasn't changed — this avoids needless browser\n stylesheet refetches when an edit doesn't add/remove any utilities. */\n\nimport { createHash } from 'node:crypto';\nimport { existsSync, readFileSync } from 'node:fs';\nimport { readFile, stat } from 'node:fs/promises';\nimport { dirname, isAbsolute, resolve } from 'node:path';\nimport { compileStyleSource } from './stylePreprocessor';\nimport type {\n\tStylePreprocessorConfig,\n\tTailwindConfig\n} from '../../types/build';\n\ntype TailwindCompile = typeof import('tailwindcss').compile;\ntype TailwindCompiler = Awaited<ReturnType<TailwindCompile>>;\ntype TailwindSource = TailwindCompiler['sources'][number];\n\ntype CompilerEntry = {\n\tcompiler: TailwindCompiler;\n\tcssPath: string;\n\tcssMtimeMs: number;\n\tsources: TailwindSource[];\n\t/* Every CSS file the compiler pulled in via @import (the input CSS\n\t itself plus anything it transitively loaded). If one of these changes,\n\t the parsed AST is stale and we have to rebuild the compiler — Tailwind\n\t only resolves imports once at compile() time. */\n\tcssDependencies: Map<string, number>;\n\t/* Ref-counted union of candidates across the whole source tree. We\n\t count rather than track presence so that a class still referenced by\n\t another file isn't dropped when it disappears from one. */\n\tcandidateCounts: Map<string, number>;\n\tperFileCandidates: Map<string, Set<string>>;\n\tlastEmittedHash: string | null;\n};\n\n/* Cache one compiler per absolute input-CSS path. Multiple entries are\n possible if a project ever wires more than one Tailwind input, though in\n practice there's usually just one. */\nconst compilerCache = new Map<string, CompilerEntry>();\n\nlet cachedTailwindCompile: TailwindCompile | null = null;\n\nconst loadTailwindCompile = async () => {\n\tif (cachedTailwindCompile) return cachedTailwindCompile;\n\ttry {\n\t\tconst mod = await import('tailwindcss');\n\n\t\tcachedTailwindCompile = mod.compile;\n\n\t\treturn mod.compile;\n\t} catch {\n\t\tthrow new Error(\n\t\t\t'Tailwind incremental dev compiler requires `tailwindcss` to be installed.'\n\t\t);\n\t}\n};\n\nconst recordDependency = async (deps: Map<string, number>, path: string) => {\n\ttry {\n\t\tconst mtime = (await stat(path)).mtimeMs;\n\t\tdeps.set(path, mtime);\n\t} catch {\n\t\tdeps.set(path, 0);\n\t}\n};\n\n/* Resolve a bare specifier (e.g. `tailwindcss`) to its CSS entry point.\n\n Bun's default resolver follows the `import` / `require` conditions and\n would hand back the package's JS entry (e.g. `tailwindcss/dist/lib.mjs`).\n Tailwind's `@import \"tailwindcss\"` is a *CSS* import — it needs the\n `style` exports condition (or a sensible fallback) instead.\n\n The strategy:\n 1. Resolve `<id>/package.json` to find the package directory.\n 2. Look at `exports[\".\"].style` — Tailwind v4 sets this; it's the\n modern way to expose a CSS entry from a package.\n 3. Fall back to the legacy top-level `style` field.\n 4. Fall back to common file conventions (`index.css`, `dist/index.css`).\n\n Anything not in that shape (subpath imports like `tailwindcss/preflight`)\n falls through to Bun's regular resolver, which handles `.css` subpaths\n correctly. */\nconst resolveBareCssImport = (id: string, base: string) => {\n\tconst slashIndex = id.indexOf('/');\n\tconst pkgName = id.startsWith('@')\n\t\t? id.split('/').slice(0, 2).join('/')\n\t\t: slashIndex === -1\n\t\t\t? id\n\t\t\t: id.slice(0, slashIndex);\n\tconst subpath = id.slice(pkgName.length);\n\n\tif (subpath !== '') {\n\t\treturn Bun.resolveSync(id, base);\n\t}\n\n\tlet pkgJsonPath: string;\n\ttry {\n\t\tpkgJsonPath = Bun.resolveSync(`${pkgName}/package.json`, base);\n\t} catch {\n\t\treturn Bun.resolveSync(id, base);\n\t}\n\n\tconst pkgDir = dirname(pkgJsonPath);\n\tlet pkg: Record<string, unknown> = {};\n\ttry {\n\t\tpkg = JSON.parse(readFileSync(pkgJsonPath, 'utf-8'));\n\t} catch {\n\t\treturn Bun.resolveSync(id, base);\n\t}\n\n\tconst exportsField = pkg.exports as\n\t\t| { '.'?: { style?: string } }\n\t\t| undefined;\n\tconst styleFromExports = exportsField?.['.']?.style;\n\tconst candidates = [\n\t\tstyleFromExports,\n\t\ttypeof pkg.style === 'string' ? pkg.style : undefined,\n\t\t'index.css',\n\t\t'dist/index.css'\n\t].filter((entry): entry is string => typeof entry === 'string');\n\n\tfor (const candidate of candidates) {\n\t\tconst candidatePath = resolve(pkgDir, candidate);\n\t\tif (existsSync(candidatePath)) return candidatePath;\n\t}\n\n\treturn Bun.resolveSync(id, base);\n};\n\n/* Resolve `@import` and `@source` paths relative to the importing file.\n The factory closes over the dependency map so every imported stylesheet\n is tracked for change detection. */\nconst createLoadStylesheet =\n\t(deps: Map<string, number>) => async (id: string, base: string) => {\n\t\tconst path =\n\t\t\tid.startsWith('.') || isAbsolute(id)\n\t\t\t\t? resolve(base, id)\n\t\t\t\t: resolveBareCssImport(id, base);\n\t\tconst content = await readFile(path, 'utf-8');\n\t\tawait recordDependency(deps, path);\n\n\t\treturn { base: dirname(path), content, path };\n\t};\n\nconst loadModule = async (\n\tid: string,\n\tbase: string,\n\t_kind: 'plugin' | 'config'\n) => {\n\tconst path =\n\t\tid.startsWith('.') || isAbsolute(id)\n\t\t\t? resolve(base, id)\n\t\t\t: Bun.resolveSync(id, base);\n\tconst module = await import(path);\n\n\treturn { base: dirname(path), module, path };\n};\n\nconst buildCompilerEntry = async (cssPath: string): Promise<CompilerEntry> => {\n\tconst compile = await loadTailwindCompile();\n\tconst absPath = resolve(cssPath);\n\tconst css = await readFile(absPath, 'utf-8');\n\tconst cssMtimeMs = (await stat(absPath)).mtimeMs;\n\tconst cssDependencies = new Map<string, number>();\n\tcssDependencies.set(absPath, cssMtimeMs);\n\tconst compiler = await compile(css, {\n\t\tbase: dirname(absPath),\n\t\tloadModule,\n\t\tloadStylesheet: createLoadStylesheet(cssDependencies)\n\t});\n\n\treturn {\n\t\tcandidateCounts: new Map<string, number>(),\n\t\tcompiler,\n\t\tcssDependencies,\n\t\tcssMtimeMs,\n\t\tcssPath: absPath,\n\t\tlastEmittedHash: null,\n\t\tperFileCandidates: new Map(),\n\t\tsources: [...compiler.sources]\n\t};\n};\n\n/* Permissive candidate extractor — matches anything that *could* be a\n Tailwind utility class. The compiler discards inputs that don't resolve\n to real utilities, so a superset is fine.\n\n The class character set covers v4 syntax including:\n - variants : `hover:`, `dark:`, `md:`, `data-[open]:`\n - modifiers : `text-blue/50`\n - arbitraries: `bg-[var(--c)]`, `min-h-[260px]`, `bg-[#fff]`\n - negation : `-mx-4`, `!important`\n - groups : `group-hover:opacity-50`\n\n Tokens must start with a letter / `-` / `!` (so we don't pull in pure\n numbers) and end with a word char or `]` or `)` (so we don't include\n trailing punctuation). */\nconst CANDIDATE_PATTERN = /[A-Za-z!\\-_][\\w:\\-/[\\]().!,#%@&'\"=]*[\\w\\])]/g;\n\nexport const extractCandidates = (source: string) => {\n\tconst out = new Set<string>();\n\tfor (const match of source.matchAll(CANDIDATE_PATTERN)) {\n\t\tout.add(match[0]);\n\t}\n\n\treturn out;\n};\n\nconst hashCss = (css: string) => createHash('sha1').update(css).digest('hex');\n\n// Match a file path against a Tailwind `@source` pattern.\n//\n// Tailwind hands us sources as { base, pattern, negated } where pattern\n// is interpreted relative to base and may contain `..` segments to walk\n// up the tree. `path.resolve(base, pattern)` collapses the `..` while\n// leaving the glob metacharacters intact, giving us an absolute glob\n// pattern that we can match against the absolute file path directly —\n// no prefix-and-substring dance, no glob-aware path walking.\nconst fileMatchesSources = (file: string, sources: TailwindSource[]) => {\n\tif (sources.length === 0) return true;\n\tconst absFile = resolve(file);\n\tfor (const source of sources) {\n\t\tif (source.negated) continue;\n\t\tconst absolutePattern = resolve(source.base, source.pattern);\n\t\tconst glob = new Bun.Glob(absolutePattern);\n\t\tif (glob.match(absFile)) return true;\n\t}\n\n\treturn false;\n};\n\nconst incrementCandidateCount = (entry: CompilerEntry, candidate: string) => {\n\tconst current = entry.candidateCounts.get(candidate) ?? 0;\n\tentry.candidateCounts.set(candidate, current + 1);\n};\n\nconst decrementCandidateCount = (entry: CompilerEntry, candidate: string) => {\n\tconst current = entry.candidateCounts.get(candidate) ?? 0;\n\tconst next = current - 1;\n\tif (next <= 0) {\n\t\tentry.candidateCounts.delete(candidate);\n\n\t\treturn;\n\t}\n\tentry.candidateCounts.set(candidate, next);\n};\n\nconst replaceFileCandidates = (\n\tentry: CompilerEntry,\n\tfile: string,\n\tfreshCandidates: Set<string>\n) => {\n\tconst previous = entry.perFileCandidates.get(file);\n\tif (previous) {\n\t\tfor (const candidate of previous)\n\t\t\tdecrementCandidateCount(entry, candidate);\n\t}\n\tentry.perFileCandidates.set(file, freshCandidates);\n\tfor (const candidate of freshCandidates)\n\t\tincrementCandidateCount(entry, candidate);\n};\n\n// Split an absolute glob like /abs/src/frontend/<glob> into a literal\n// scan root (/abs/src/frontend) and a relative glob portion. Bun.Glob.scan\n// needs a real directory as `cwd`; passing a glob there silently scans\n// nothing.\nconst splitGlobAtFirstMeta = (absolutePattern: string) => {\n\tconst firstMetaIndex = absolutePattern.search(/[*?{[]/);\n\tif (firstMetaIndex === -1) {\n\t\treturn { glob: '', root: absolutePattern };\n\t}\n\tconst lastSlashBeforeMeta = absolutePattern.lastIndexOf(\n\t\t'/',\n\t\tfirstMetaIndex\n\t);\n\n\treturn {\n\t\tglob: absolutePattern.slice(lastSlashBeforeMeta + 1),\n\t\troot: absolutePattern.slice(0, lastSlashBeforeMeta) || '/'\n\t};\n};\n\nconst collectFilesForSources = async (sources: TailwindSource[]) => {\n\tconst seen = new Set<string>();\n\tconst collected: string[] = [];\n\tconst scans = sources\n\t\t.filter((source) => !source.negated)\n\t\t.map(async (source) => {\n\t\t\tconst absolutePattern = resolve(source.base, source.pattern);\n\t\t\tconst { glob: relativePattern, root } =\n\t\t\t\tsplitGlobAtFirstMeta(absolutePattern);\n\t\t\tif (!relativePattern) return [];\n\t\t\tconst glob = new Bun.Glob(relativePattern);\n\t\t\tconst matches: string[] = [];\n\t\t\tfor await (const relative of glob.scan({\n\t\t\t\tabsolute: false,\n\t\t\t\tcwd: root,\n\t\t\t\tonlyFiles: true\n\t\t\t})) {\n\t\t\t\tmatches.push(resolve(root, relative));\n\t\t\t}\n\n\t\t\treturn matches;\n\t\t});\n\tconst results = await Promise.all(scans);\n\tfor (const absolute of results.flat()) {\n\t\tif (seen.has(absolute)) continue;\n\t\tseen.add(absolute);\n\t\tcollected.push(absolute);\n\t}\n\n\treturn collected;\n};\n\nconst ingestFile = async (entry: CompilerEntry, absolute: string) => {\n\ttry {\n\t\tconst text = await readFile(absolute, 'utf-8');\n\t\treplaceFileCandidates(entry, absolute, extractCandidates(text));\n\t} catch {\n\t\t// File vanished between glob and read — skip silently.\n\t}\n};\n\nconst populateCandidatesFromAllSources = async (entry: CompilerEntry) => {\n\tconst files = await collectFilesForSources(entry.sources);\n\tawait Promise.all(files.map((file) => ingestFile(entry, file)));\n};\n\nconst isCompilerStale = async (entry: CompilerEntry) => {\n\tconst checks = [...entry.cssDependencies.entries()].map(\n\t\tasync ([path, knownMtime]) => {\n\t\t\ttry {\n\t\t\t\tconst mtime = (await stat(path)).mtimeMs;\n\n\t\t\t\treturn mtime !== knownMtime;\n\t\t\t} catch {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t);\n\tconst results = await Promise.all(checks);\n\n\treturn results.some(Boolean);\n};\n\nconst getCompilerEntry = async (cssPath: string) => {\n\tconst key = resolve(cssPath);\n\tconst cached = compilerCache.get(key);\n\tif (cached && !(await isCompilerStale(cached))) return cached;\n\n\tconst fresh = await buildCompilerEntry(cssPath);\n\tawait populateCandidatesFromAllSources(fresh);\n\tcompilerCache.set(key, fresh);\n\n\treturn fresh;\n};\n\n/* Drop the cached compiler — used when the dev server stops or the\n Tailwind input CSS itself changes and needs a full re-parse. */\nexport const disposeTailwindCompiler = (cssPath?: string) => {\n\tif (!cssPath) {\n\t\tcompilerCache.clear();\n\n\t\treturn;\n\t}\n\tcompilerCache.delete(resolve(cssPath));\n};\n\n/* Run a fast incremental Tailwind build. Returns whether the emitted CSS\n actually changed — callers can use that to skip the broadcast. */\nexport const incrementalTailwindBuild = async (\n\ttailwind: TailwindConfig,\n\tbuildPath: string,\n\tchangedFiles: string[],\n\tstyleTransformConfig?: StylePreprocessorConfig\n) => {\n\tconst startedAt = performance.now();\n\tconst entry = await getCompilerEntry(tailwind.input);\n\tconst inputAbs = entry.cssPath;\n\tconst filesToRescan: string[] = [];\n\n\tfor (const file of changedFiles) {\n\t\tconst abs = resolve(file);\n\t\tif (abs === inputAbs) continue;\n\t\tif (!fileMatchesSources(abs, entry.sources)) continue;\n\t\tfilesToRescan.push(abs);\n\t}\n\n\tawait Promise.all(filesToRescan.map((file) => ingestFile(entry, file)));\n\n\tconst rawCss = entry.compiler.build([...entry.candidateCounts.keys()]);\n\tconst outputPath = resolve(buildPath, tailwind.output);\n\tconst finalCss = await compileStyleSource(\n\t\toutputPath,\n\t\trawCss,\n\t\t'css',\n\t\tstyleTransformConfig\n\t);\n\tconst hash = hashCss(finalCss);\n\tconst durationMs = performance.now() - startedAt;\n\n\tif (hash === entry.lastEmittedHash) {\n\t\treturn { cssChanged: false, durationMs };\n\t}\n\n\tawait Bun.write(outputPath, finalCss);\n\tentry.lastEmittedHash = hash;\n\n\treturn { cssChanged: true, durationMs };\n};\n\n/* Pre-build the compiler at dev startup so the first HMR tick doesn't\n pay the parse-and-scan cost. Safe to call multiple times — it's a no-op\n once cached. */\nexport const warmTailwindCompiler = async (tailwind: TailwindConfig) => {\n\tawait getCompilerEntry(tailwind.input);\n};\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": ";;;;;;;;;AAmBA;AACA;AACA;AACA;AAgCA,IAAM,gBAAgB,IAAI;AAE1B,IAAI,wBAAgD;AAEpD,IAAM,sBAAsB,YAAY;AAAA,EACvC,IAAI;AAAA,IAAuB,OAAO;AAAA,EAClC,IAAI;AAAA,IACH,MAAM,MAAM,MAAa;AAAA,IAEzB,wBAAwB,IAAI;AAAA,IAE5B,OAAO,IAAI;AAAA,IACV,MAAM;AAAA,IACP,MAAM,IAAI,MACT,2EACD;AAAA;AAAA;AAIF,IAAM,mBAAmB,OAAO,MAA2B,SAAiB;AAAA,EAC3E,IAAI;AAAA,IACH,MAAM,SAAS,MAAM,KAAK,IAAI,GAAG;AAAA,IACjC,KAAK,IAAI,MAAM,KAAK;AAAA,IACnB,MAAM;AAAA,IACP,KAAK,IAAI,MAAM,CAAC;AAAA;AAAA;AAqBlB,IAAM,uBAAuB,CAAC,IAAY,SAAiB;AAAA,EAC1D,MAAM,aAAa,GAAG,QAAQ,GAAG;AAAA,EACjC,MAAM,UAAU,GAAG,WAAW,GAAG,IAC9B,GAAG,MAAM,GAAG,EAAE,MAAM,GAAG,CAAC,EAAE,KAAK,GAAG,IAClC,eAAe,KACd,KACA,GAAG,MAAM,GAAG,UAAU;AAAA,EAC1B,MAAM,UAAU,GAAG,MAAM,QAAQ,MAAM;AAAA,EAEvC,IAAI,YAAY,IAAI;AAAA,IACnB,OAAO,IAAI,YAAY,IAAI,IAAI;AAAA,EAChC;AAAA,EAEA,IAAI;AAAA,EACJ,IAAI;AAAA,IACH,cAAc,IAAI,YAAY,GAAG,wBAAwB,IAAI;AAAA,IAC5D,MA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A,MAAM,QAAQ,IAAI,cAAc,IAAI,CAAC,SAAS,WAAW,OAAO,IAAI,CAAC,CAAC;AAAA,EAEtE,MAAM,SAAS,MAAM,SAAS,MAAM,CAAC,GAAG,MAAM,gBAAgB,KAAK,CAAC,CAAC;AAAA,EACrE,MAAM,aAAa,QAAQ,WAAW,SAAS,MAAM;AAAA,EACrD,MAAM,WAAW,MAAM,mBACtB,YACA,QACA,OACA,oBACD;AAAA,EACA,MAAM,OAAO,QAAQ,QAAQ;AAAA,EAC7B,MAAM,aAAa,YAAY,IAAI,IAAI;AAAA,EAEvC,IAAI,SAAS,MAAM,iBAAiB;AAAA,IACnC,OAAO,EAAE,YAAY,OAAO,WAAW;AAAA,EACxC;AAAA,EAEA,MAAM,IAAI,MAAM,YAAY,QAAQ;AAAA,EACpC,MAAM,kBAAkB;AAAA,EAExB,OAAO,EAAE,YAAY,MAAM,WAAW;AAAA;AAMhC,IAAM,uBAAuB,OAAO,aAA6B;AAAA,EACvE,MAAM,iBAAiB,SAAS,KAAK;AAAA;",
|
|
8
|
-
"debugId": "98DF22AA58613E2464756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|
package/dist/chunk-d9c0am65.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
// src/core/ssrCache.ts
|
|
3
|
-
var dirtyFrameworks = new Set;
|
|
4
|
-
var isSsrCacheDirty = (framework) => dirtyFrameworks.has(framework);
|
|
5
|
-
var markSsrCacheDirty = (framework) => {
|
|
6
|
-
dirtyFrameworks.add(framework);
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export { isSsrCacheDirty, markSsrCacheDirty };
|
|
10
|
-
|
|
11
|
-
//# debugId=B46F4F2C39173BCD64756E2164756E21
|
|
12
|
-
//# sourceMappingURL=chunk-d9c0am65.js.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/core/ssrCache.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"import type { IslandFramework } from '../../types/island';\n\nconst dirtyFrameworks = new Set<IslandFramework>();\n\nexport const isSsrCacheDirty = (framework: IslandFramework) =>\n\tdirtyFrameworks.has(framework);\nexport const markSsrCacheDirty = (framework: IslandFramework) => {\n\tdirtyFrameworks.add(framework);\n};\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": ";;AAEA,IAAM,kBAAkB,IAAI;AAErB,IAAM,kBAAkB,CAAC,cAC/B,gBAAgB,IAAI,SAAS;AACvB,IAAM,oBAAoB,CAAC,cAA+B;AAAA,EAChE,gBAAgB,IAAI,SAAS;AAAA;",
|
|
8
|
-
"debugId": "B46F4F2C39173BCD64756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|
package/dist/chunk-daqghmg8.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
commonAncestor
|
|
4
|
-
} from "./chunk-b3gbnrwe.js";
|
|
5
|
-
import"./chunk-hyjs4bqs.js";
|
|
6
|
-
import"./chunk-bmgqm774.js";
|
|
7
|
-
export {
|
|
8
|
-
commonAncestor
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
//# debugId=470B84F8382E797064756E2164756E21
|
|
12
|
-
//# sourceMappingURL=chunk-daqghmg8.js.map
|