@stacksjs/stx 0.2.461 → 0.2.463
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/{chunk-kcs71ks8.js → chunk-02e24cym.js} +1 -1
- package/dist/chunk-0e1rga0j.js +2 -0
- package/dist/chunk-0fvz8wad.js +2 -0
- package/dist/chunk-0yba08sr.js +2 -0
- package/dist/{chunk-2cy956js.js → chunk-14vnnx44.js} +2 -2
- package/dist/{chunk-ab56jdah.js → chunk-1k01h1zb.js} +1 -1
- package/dist/chunk-1mfggkga.js +2 -0
- package/dist/chunk-1p5ge6fq.js +2 -0
- package/dist/chunk-22972c8b.js +2 -0
- package/dist/{chunk-rcr57c30.js → chunk-2cqymwe8.js} +2 -2
- package/dist/{chunk-w1zvh5y7.js → chunk-2jbyks2t.js} +2 -2
- package/dist/{chunk-8xz8t9xp.js → chunk-2n5pjbw9.js} +2 -2
- package/dist/{chunk-44msrx2e.js → chunk-2tn3dkcy.js} +2 -2
- package/dist/{chunk-jfps4n28.js → chunk-39q77svv.js} +3 -3
- package/dist/{chunk-hehtgsrt.js → chunk-3q2z7cts.js} +1 -1
- package/dist/chunk-4yjtwjrw.js +2 -0
- package/dist/chunk-5127n7rc.js +2 -0
- package/dist/{chunk-462jmw0a.js → chunk-544e2jvd.js} +2 -2
- package/dist/chunk-5564cka1.js +2 -0
- package/dist/{chunk-dxxs52yw.js → chunk-5j5msbks.js} +2 -2
- package/dist/{chunk-1wtm4ayp.js → chunk-5yn0gpcj.js} +3 -3
- package/dist/{chunk-bf519g5n.js → chunk-627af18j.js} +1 -1
- package/dist/chunk-6876vczs.js +2 -0
- package/dist/chunk-7fjatz47.js +2 -0
- package/dist/{chunk-n1dyjhte.js → chunk-7h57dt0z.js} +3 -3
- package/dist/chunk-7j1cpa9d.js +2 -0
- package/dist/{chunk-w6zz18jt.js → chunk-88px183j.js} +2 -2
- package/dist/{chunk-ree9weje.js → chunk-90drf2ag.js} +2 -2
- package/dist/chunk-938g2a3d.js +2 -0
- package/dist/{chunk-5qns2sdz.js → chunk-9fr19qe4.js} +2 -2
- package/dist/{chunk-6r2709dj.js → chunk-9pt8fd2n.js} +3 -3
- package/dist/{chunk-fm7crc6s.js → chunk-a35c060g.js} +1 -1
- package/dist/{chunk-tpeyn7wr.js → chunk-a8q8m5pp.js} +2 -2
- package/dist/chunk-ajqwjevt.js +2 -0
- package/dist/{chunk-z3etxty5.js → chunk-amd6ey3t.js} +5 -5
- package/dist/{chunk-6cp3afft.js → chunk-b8p9y1kv.js} +2 -2
- package/dist/{chunk-5p56w2ke.js → chunk-bddjx2a2.js} +2 -2
- package/dist/chunk-bp53x03f.js +2 -0
- package/dist/{chunk-9r6nd1nf.js → chunk-ccy6avqe.js} +5 -5
- package/dist/{chunk-pe214qcn.js → chunk-cfk3skk4.js} +1 -1
- package/dist/chunk-d1x5r4p6.js +2 -0
- package/dist/{chunk-bq2e9qf6.js → chunk-d2zw2e5m.js} +1 -1
- package/dist/chunk-d9360m89.js +2 -0
- package/dist/chunk-dcv6absa.js +2 -0
- package/dist/{chunk-zskhxkbk.js → chunk-dqdggvq4.js} +214 -199
- package/dist/{chunk-rvgvt161.js → chunk-e15a8txv.js} +2 -2
- package/dist/{chunk-5erw0wsr.js → chunk-eegxyqk3.js} +2 -2
- package/dist/{chunk-mhpsz5m0.js → chunk-ery19t9s.js} +8 -8
- package/dist/{chunk-zchtjtq9.js → chunk-etjw0he9.js} +3 -3
- package/dist/{chunk-n866vbgj.js → chunk-fh1qrp68.js} +5 -5
- package/dist/{chunk-6pyydsn1.js → chunk-hhsynd7c.js} +138 -8
- package/dist/chunk-j9qcrwbg.js +2 -0
- package/dist/chunk-jmabeqfq.js +2 -0
- package/dist/{chunk-bf7aa9w7.js → chunk-jmhhv817.js} +2 -2
- package/dist/chunk-jr3g08vs.js +2 -0
- package/dist/chunk-k2vcwa7m.js +2 -0
- package/dist/{chunk-tbjyp03h.js → chunk-k9sbgax8.js} +1 -1
- package/dist/{chunk-jkyb1f9r.js → chunk-kdk0jy1h.js} +3 -3
- package/dist/chunk-kmb9qrdg.js +2 -0
- package/dist/{chunk-aeb8621d.js → chunk-krsdcjxk.js} +6 -6
- package/dist/{chunk-12w518qc.js → chunk-mfxf378k.js} +4 -4
- package/dist/chunk-mhfwdyeg.js +2 -0
- package/dist/chunk-mxt11ejx.js +2 -0
- package/dist/chunk-mxtah7y5.js +2 -0
- package/dist/{chunk-y1hx8re2.js → chunk-ng61wjke.js} +1 -1
- package/dist/chunk-nkxa7men.js +2 -0
- package/dist/{chunk-vqdv6ay9.js → chunk-nwwzf7h1.js} +1 -1
- package/dist/{chunk-z2daw0th.js → chunk-pbh4smw3.js} +4 -4
- package/dist/{chunk-h9e032kq.js → chunk-pf0d8y9n.js} +2 -2
- package/dist/{chunk-kppgyqwb.js → chunk-ptek61ts.js} +1 -1
- package/dist/chunk-q316y302.js +2 -0
- package/dist/chunk-q7qchkvk.js +2 -0
- package/dist/{chunk-26gxw0e2.js → chunk-qr15ksz9.js} +5 -5
- package/dist/chunk-qyq7j8hp.js +2 -0
- package/dist/chunk-r5gyx7ch.js +2 -0
- package/dist/chunk-raeyd6e5.js +2 -0
- package/dist/chunk-raqqq3mm.js +2 -0
- package/dist/chunk-rjm3n62n.js +2 -0
- package/dist/{chunk-ycdzhjt0.js → chunk-skjwh35r.js} +2 -2
- package/dist/{chunk-18fa768q.js → chunk-sprx02g0.js} +1 -1
- package/dist/{chunk-c491hsm1.js → chunk-t1py7rbg.js} +4 -4
- package/dist/{chunk-7sbgpmwt.js → chunk-tesmv3m9.js} +2 -2
- package/dist/chunk-tkakxkbx.js +2 -0
- package/dist/{chunk-fyh1w7j0.js → chunk-tsg7bj9p.js} +3 -3
- package/dist/chunk-txkfp4v5.js +2 -0
- package/dist/chunk-tzjqtweb.js +2 -0
- package/dist/{chunk-exgyf65a.js → chunk-v83bpj84.js} +4 -4
- package/dist/chunk-vhdemrec.js +2 -0
- package/dist/chunk-wsftz3vj.js +2 -0
- package/dist/chunk-wvxj6r2a.js +2 -0
- package/dist/{chunk-h356tjvs.js → chunk-xbm2gcb6.js} +2 -2
- package/dist/chunk-xek78ez1.js +2 -0
- package/dist/chunk-xjb0yzvq.js +2 -0
- package/dist/{chunk-jdhs9w6h.js → chunk-xq4x3cy0.js} +1 -1
- package/dist/{chunk-4fa3jec9.js → chunk-y36av1ac.js} +6 -6
- package/dist/{chunk-y15ybsg3.js → chunk-y8mx0hab.js} +4 -4
- package/dist/{chunk-fzs6v9x5.js → chunk-y9j2kf3k.js} +45 -45
- package/dist/chunk-ydjfar14.js +2 -0
- package/dist/chunk-ymk7eswy.js +2 -0
- package/dist/{chunk-r6pax860.js → chunk-ynvce0q6.js} +2 -2
- package/dist/{chunk-gkqxnetc.js → chunk-zasd9166.js} +2 -2
- package/dist/chunk-zhexga43.js +2 -0
- package/dist/cli.js +11 -11
- package/dist/craft-entry.js +2 -2
- package/dist/craft.js +2 -2
- package/dist/includes.d.ts +17 -0
- package/dist/includes.js +43 -1
- package/dist/pwa.js +3 -3
- package/dist/signals.js +133 -3
- package/dist/ssg.js +3 -3
- package/dist/utils.js +18 -3
- package/package.json +5 -5
- package/dist/chunk-0r0cbqpj.js +0 -2
- package/dist/chunk-0snysm7z.js +0 -2
- package/dist/chunk-1vgmzmsw.js +0 -2
- package/dist/chunk-32t5agpk.js +0 -2
- package/dist/chunk-3s2vnqcf.js +0 -2
- package/dist/chunk-3wkrrps3.js +0 -2
- package/dist/chunk-4henqdjf.js +0 -2
- package/dist/chunk-561yczfn.js +0 -2
- package/dist/chunk-5m8q7c5r.js +0 -2
- package/dist/chunk-68txmj8d.js +0 -2
- package/dist/chunk-6qv189mb.js +0 -2
- package/dist/chunk-6vye2exm.js +0 -2
- package/dist/chunk-80a84qry.js +0 -2
- package/dist/chunk-8p2vfjg2.js +0 -2
- package/dist/chunk-9r1jj3rm.js +0 -2
- package/dist/chunk-9t50hw97.js +0 -2
- package/dist/chunk-9z22zs86.js +0 -2
- package/dist/chunk-cq7se10f.js +0 -2
- package/dist/chunk-cy2bskcx.js +0 -2
- package/dist/chunk-ef0gstkd.js +0 -2
- package/dist/chunk-f8hd3kh3.js +0 -2
- package/dist/chunk-fb1711er.js +0 -2
- package/dist/chunk-g7ksavh1.js +0 -2
- package/dist/chunk-hskrxdcc.js +0 -2
- package/dist/chunk-kp54j5hy.js +0 -2
- package/dist/chunk-ks35e0ze.js +0 -2
- package/dist/chunk-m00nek1y.js +0 -2
- package/dist/chunk-mp633tnh.js +0 -2
- package/dist/chunk-n8hd5qap.js +0 -2
- package/dist/chunk-nqvb9094.js +0 -2
- package/dist/chunk-p0nx92aq.js +0 -2
- package/dist/chunk-ps54xqba.js +0 -2
- package/dist/chunk-q0qd0bm4.js +0 -2
- package/dist/chunk-q98v7bhs.js +0 -2
- package/dist/chunk-qxcw9k0z.js +0 -2
- package/dist/chunk-r61m4j2j.js +0 -2
- package/dist/chunk-rf9hm92z.js +0 -2
- package/dist/chunk-rpsjz8jd.js +0 -2
- package/dist/chunk-s25yesdx.js +0 -2
- package/dist/chunk-t68s37hg.js +0 -2
- package/dist/chunk-tr7dz5g5.js +0 -2
- package/dist/chunk-twb35cwb.js +0 -2
- package/dist/chunk-vrvnctex.js +0 -2
- package/dist/chunk-wz1bgf8q.js +0 -2
- package/dist/chunk-xz6dfe70.js +0 -2
package/dist/signals.js
CHANGED
|
@@ -1202,6 +1202,10 @@ finally {
|
|
|
1202
1202
|
if (scope) {
|
|
1203
1203
|
scope.__mountCallbacks = scope.__mountCallbacks || [];
|
|
1204
1204
|
scope.__mountCallbacks.push(fn);
|
|
1205
|
+
// Kept apart from the queue, which a flush drains: a component behind an
|
|
1206
|
+
// :if mounts again every time it is shown (see suspendSubtreeScopes).
|
|
1207
|
+
scope.__mountHooks = scope.__mountHooks || [];
|
|
1208
|
+
scope.__mountHooks.push(fn);
|
|
1205
1209
|
return;
|
|
1206
1210
|
}
|
|
1207
1211
|
mountCallbacks.push(fn);
|
|
@@ -1223,6 +1227,10 @@ finally {
|
|
|
1223
1227
|
if (scope) {
|
|
1224
1228
|
scope.__destroyCallbacks = scope.__destroyCallbacks || [];
|
|
1225
1229
|
scope.__destroyCallbacks.push(fn);
|
|
1230
|
+
// Registered once, at setup, and owed at every unmount -- including each
|
|
1231
|
+
// time an :if hides the component (see suspendSubtreeScopes).
|
|
1232
|
+
scope.__destroyHooks = scope.__destroyHooks || [];
|
|
1233
|
+
scope.__destroyHooks.push(fn);
|
|
1226
1234
|
return;
|
|
1227
1235
|
}
|
|
1228
1236
|
if (activeDestroySink) {
|
|
@@ -4249,7 +4257,20 @@ catch (e2) {
|
|
|
4249
4257
|
var resolvedCallerScope = resolveComponentCallerScope(root, callerScope);
|
|
4250
4258
|
root.__stx_parent_scope = resolvedCallerScope;
|
|
4251
4259
|
bindParentComponentProps(root, resolvedCallerScope);
|
|
4252
|
-
if (!scopeVars
|
|
4260
|
+
if (!scopeVars) return;
|
|
4261
|
+
if (root.__stx_disposers) {
|
|
4262
|
+
// Bound already, by the page's scope walk: a component behind a false
|
|
4263
|
+
// :if in a PARTIAL is in the list that walk collects, and is detached
|
|
4264
|
+
// by the time it is reached, so it was bound and its mount deferred
|
|
4265
|
+
// (stacksjs/stx#2036). Showing the branch is that mount. Without this
|
|
4266
|
+
// the component rendered and its onMount never ran at all.
|
|
4267
|
+
if (scopeVars.__mountCallbacks && !scopeVars.__mounted && !scopeVars.__suspended && root.isConnected) {
|
|
4268
|
+
scopeVars.__el = root;
|
|
4269
|
+
scopeVars.__mounted = true;
|
|
4270
|
+
runMountCallbacks(scopeVars.__mountCallbacks, scopeDestroySink(scopeVars));
|
|
4271
|
+
}
|
|
4272
|
+
return;
|
|
4273
|
+
}
|
|
4253
4274
|
scopeVars.__el = root;
|
|
4254
4275
|
var childScope = { ...resolvedCallerScope, ...scopeVars };
|
|
4255
4276
|
root.__stx_disposers = trackEffects(function() {
|
|
@@ -5156,6 +5177,14 @@ catch (e2) {
|
|
|
5156
5177
|
var gone = chain[currentIdx];
|
|
5157
5178
|
gone.el.__stx_chain_active = false;
|
|
5158
5179
|
gone.el.__stx_if_visible.set(false);
|
|
5180
|
+
// Unmount what the branch held, as a single :if does, before any of
|
|
5181
|
+
// it leaves the page.
|
|
5182
|
+
var leavingNodes = gone.nodes.filter(function (n) { return n.parentNode; });
|
|
5183
|
+
if (gone.isTemplate && gone.endMarker && gone.endMarker.parentNode) {
|
|
5184
|
+
leavingNodes = [];
|
|
5185
|
+
for (var walk = gone.placeholder.nextSibling; walk && walk !== gone.endMarker; walk = walk.nextSibling) leavingNodes.push(walk);
|
|
5186
|
+
}
|
|
5187
|
+
suspendSubtreeScopes(leavingNodes);
|
|
5159
5188
|
|
|
5160
5189
|
if (gone.isTemplate) {
|
|
5161
5190
|
// Everything this branch rendered goes, not just the clones it owns:
|
|
@@ -5224,6 +5253,15 @@ catch (e) { /* a disposer of its own is not this branch's problem */ }
|
|
|
5224
5253
|
stxHost.insert(pickHost, pick.endMarker, anchor);
|
|
5225
5254
|
}
|
|
5226
5255
|
pick.el.__stx_shown_at = performance.now();
|
|
5256
|
+
// An element branch shown before keeps its bindings and its scopes;
|
|
5257
|
+
// the components in it mount again (a template branch is cloned afresh
|
|
5258
|
+
// and mounts through hydrateComponentScopes below).
|
|
5259
|
+
if (pick.childrenProcessed) {
|
|
5260
|
+
var shownNodes = pick.nodes;
|
|
5261
|
+
queueMicrotask(function () {
|
|
5262
|
+
if (pick.el.__stx_chain_active) peek(function () { resumeSubtreeScopes(shownNodes); });
|
|
5263
|
+
});
|
|
5264
|
+
}
|
|
5227
5265
|
if (!pick.childrenProcessed) {
|
|
5228
5266
|
pick.childrenProcessed = true;
|
|
5229
5267
|
// Hydrate before the outer scope walk can see the inserted branch.
|
|
@@ -5451,6 +5489,9 @@ else if (!value && isInserted) {
|
|
|
5451
5489
|
// parent and took a sibling <template :if> with it -- the initial
|
|
5452
5490
|
// server-rendered state has no marker to stop at.
|
|
5453
5491
|
if (endMarker && endMarker.parentNode === parent) {
|
|
5492
|
+
var leaving = [];
|
|
5493
|
+
for (var cursor = placeholder.nextSibling; cursor && cursor !== endMarker; cursor = cursor.nextSibling) leaving.push(cursor);
|
|
5494
|
+
suspendSubtreeScopes(leaving);
|
|
5454
5495
|
var doomed = placeholder.nextSibling;
|
|
5455
5496
|
while (doomed && doomed !== endMarker) {
|
|
5456
5497
|
var nextDoomed = doomed.nextSibling;
|
|
@@ -5460,6 +5501,7 @@ else if (!value && isInserted) {
|
|
|
5460
5501
|
}
|
|
5461
5502
|
stxHost.remove(endMarker);
|
|
5462
5503
|
}
|
|
5504
|
+
suspendSubtreeScopes(currentNodes.filter(node => node.parentNode));
|
|
5463
5505
|
currentNodes.forEach(node => { disposeSubtreeEffects(node); stxHost.remove(node); });
|
|
5464
5506
|
currentNodes = [];
|
|
5465
5507
|
isInserted = false;
|
|
@@ -5490,10 +5532,21 @@ else {
|
|
|
5490
5532
|
// Its children may have become visible while it was detached, so
|
|
5491
5533
|
// resume their pending bindings now that the subtree is connected.
|
|
5492
5534
|
peek(resumeDetachedBranches);
|
|
5535
|
+
// Shown before, so the components in it mounted and were suspended
|
|
5536
|
+
// when it hid. They mount again now -- in a microtask, the same
|
|
5537
|
+
// moment their first mount ran, and only if still shown by then.
|
|
5538
|
+
if (childrenProcessed) {
|
|
5539
|
+
queueMicrotask(function() {
|
|
5540
|
+
if (isInserted) peek(function() { resumeSubtreeScopes(currentNodes); });
|
|
5541
|
+
});
|
|
5542
|
+
}
|
|
5493
5543
|
}
|
|
5494
5544
|
else if (!value && isInserted) {
|
|
5495
5545
|
console.log('[stx] bindIf REMOVING element for :if=' + expr, 'el.isConnected:', el.isConnected, 'parent:', parent.tagName);
|
|
5496
5546
|
el.__stx_if_visible.set(false);
|
|
5547
|
+
// Unmounted, not disposed: the components in it release what they
|
|
5548
|
+
// hold while their markup is still on the page, and keep their scopes.
|
|
5549
|
+
suspendSubtreeScopes(currentNodes);
|
|
5497
5550
|
// Do NOT disposeSubtreeScopes here. :if is a TOGGLE \u2014 the element is
|
|
5498
5551
|
// re-shown when the condition flips back \u2014 not a permanent unmount.
|
|
5499
5552
|
// A nested data-stx-scope inside this subtree is created once by its
|
|
@@ -6634,6 +6687,13 @@ catch (e) {} }
|
|
|
6634
6687
|
if (initialAttribute.has) {
|
|
6635
6688
|
lastRaw = initialAttribute.raw;
|
|
6636
6689
|
initial = parse(lastRaw);
|
|
6690
|
+
} else if (typeof staticValue === 'string' && (opts.parse || typeof defaultValue !== 'string')) {
|
|
6691
|
+
// A prop written as a plain attribute is serialized as the string it was
|
|
6692
|
+
// written as, so it gets the same parse an attribute does. Taken raw,
|
|
6693
|
+
// currentPage="1" reached Pagination as "1": "1" + 1 is "11", the
|
|
6694
|
+
// range maths took the wrong branch, and ten pages rendered as
|
|
6695
|
+
// 1 ... 1 2 3 4 5 6 7 8 9 10 ... 10. A string prop stays a string.
|
|
6696
|
+
initial = parse(staticValue);
|
|
6637
6697
|
} else {
|
|
6638
6698
|
initial = staticValue;
|
|
6639
6699
|
}
|
|
@@ -8887,6 +8947,70 @@ catch (e) {
|
|
|
8887
8947
|
}
|
|
8888
8948
|
}
|
|
8889
8949
|
|
|
8950
|
+
// :if is a toggle, and a component inside one lives through every toggle:
|
|
8951
|
+
// its scope is registered once and kept (#1737), and showing the branch puts
|
|
8952
|
+
// the same markup back. Its LIFECYCLE follows the toggle, though. Hiding runs
|
|
8953
|
+
// what the component registered to release -- its onDestroy, and whatever
|
|
8954
|
+
// its onMount handed back -- and showing it again runs its onMount again.
|
|
8955
|
+
// Each show is a mount and each hide an unmount, which is the pairing every
|
|
8956
|
+
// component on a page already gets.
|
|
8957
|
+
//
|
|
8958
|
+
// Before this, a hidden component never heard about it and a re-shown one
|
|
8959
|
+
// was never told it was back (the asymmetry stacksjs/stx#2036 stopped short
|
|
8960
|
+
// of). A gated modal shell -- one that traps focus, locks body scroll and
|
|
8961
|
+
// claims Escape from onMount, and releases them in onDestroy -- did all of
|
|
8962
|
+
// that on its first opening and on no later one: the second time it opened
|
|
8963
|
+
// with the page scrolling behind it and Escape doing nothing.
|
|
8964
|
+
//
|
|
8965
|
+
// Only scopes that actually mounted are suspended, so a component whose
|
|
8966
|
+
// first mount is still deferred (behind a false :if, or an stx-hydrate
|
|
8967
|
+
// island) keeps waiting for its own flush.
|
|
8968
|
+
function suspendSubtreeScopes(nodes) {
|
|
8969
|
+
if (!nodes || !window.stx || !window.stx._scopes) return;
|
|
8970
|
+
var ids = [];
|
|
8971
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
8972
|
+
var found = stxHost.scopesIn(nodes[i]);
|
|
8973
|
+
for (var k = 0; k < found.length; k++) {
|
|
8974
|
+
if (ids.indexOf(found[k]) === -1) ids.push(found[k]);
|
|
8975
|
+
}
|
|
8976
|
+
}
|
|
8977
|
+
// Innermost first, the order a page unmounts in: a child releases what it
|
|
8978
|
+
// holds before the component it sits in does.
|
|
8979
|
+
for (var n = ids.length - 1; n >= 0; n--) {
|
|
8980
|
+
var scopeVars = window.stx._scopes[ids[n]];
|
|
8981
|
+
if (!scopeVars || !scopeVars.__mounted) continue;
|
|
8982
|
+
scopeVars.__mounted = false;
|
|
8983
|
+
scopeVars.__suspended = true;
|
|
8984
|
+
var release = scopeVars.__destroyCallbacks || [];
|
|
8985
|
+
// What onDestroy registered at setup is owed again at the next hide;
|
|
8986
|
+
// a cleanup a mount handed back belonged to that mount alone.
|
|
8987
|
+
scopeVars.__destroyCallbacks = (scopeVars.__destroyHooks || []).slice();
|
|
8988
|
+
for (var j = 0; j < release.length; j++) {
|
|
8989
|
+
try { release[j](); }
|
|
8990
|
+
catch (e) { console.warn('[stx] scope destroy error:', e); }
|
|
8991
|
+
}
|
|
8992
|
+
scopeVars.__mountCallbacks = (scopeVars.__mountHooks || []).slice();
|
|
8993
|
+
}
|
|
8994
|
+
}
|
|
8995
|
+
|
|
8996
|
+
// The other half: a suspended scope whose markup is back on the page mounts
|
|
8997
|
+
// again. A scope still off the page (hidden by an :if of its own inside this
|
|
8998
|
+
// branch) is left for that :if to resume.
|
|
8999
|
+
function resumeSubtreeScopes(nodes) {
|
|
9000
|
+
if (!nodes || !window.stx || !window.stx._scopes) return;
|
|
9001
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
9002
|
+
var ids = stxHost.scopesIn(nodes[i]);
|
|
9003
|
+
for (var k = 0; k < ids.length; k++) {
|
|
9004
|
+
var scopeVars = window.stx._scopes[ids[k]];
|
|
9005
|
+
if (!scopeVars || scopeVars.__mounted || !scopeVars.__suspended) continue;
|
|
9006
|
+
if (scopeVars.__el && scopeVars.__el.isConnected === false) continue;
|
|
9007
|
+
scopeVars.__suspended = false;
|
|
9008
|
+
scopeVars.__mounted = true;
|
|
9009
|
+
runMountCallbacks(scopeVars.__mountCallbacks, scopeDestroySink(scopeVars));
|
|
9010
|
+
}
|
|
9011
|
+
}
|
|
9012
|
+
}
|
|
9013
|
+
|
|
8890
9014
|
function disposeSubtreeScopes(root) {
|
|
8891
9015
|
if (!root || !window.stx || !window.stx._scopes) return;
|
|
8892
9016
|
// The host reports which scopes live in this subtree: the document finds
|
|
@@ -8898,7 +9022,12 @@ catch (e) {
|
|
|
8898
9022
|
if (!scopeId) continue;
|
|
8899
9023
|
var scopeVars = window.stx._scopes[scopeId];
|
|
8900
9024
|
if (!scopeVars) continue;
|
|
8901
|
-
if
|
|
9025
|
+
// Hidden by an :if, it already released everything on the way out;
|
|
9026
|
+
// running the hooks again would unmount it twice. (A hidden component's
|
|
9027
|
+
// root is detached, so no walk reaches it today; this keeps the next
|
|
9028
|
+
// disposal path that does from unmounting it twice.)
|
|
9029
|
+
var alreadyReleased = scopeVars.__suspended && !scopeVars.__mounted;
|
|
9030
|
+
if (!alreadyReleased && scopeVars.__destroyCallbacks && Array.isArray(scopeVars.__destroyCallbacks)) {
|
|
8902
9031
|
for (var j = 0; j < scopeVars.__destroyCallbacks.length; j++) {
|
|
8903
9032
|
try { scopeVars.__destroyCallbacks[j](); }
|
|
8904
9033
|
catch (e) { console.warn('[stx] scope destroy error:', e); }
|
|
@@ -8950,7 +9079,8 @@ catch (e) {
|
|
|
8950
9079
|
if (p.__stx_if_bound || p.__stx_chain_member) { retained = true; break; }
|
|
8951
9080
|
}
|
|
8952
9081
|
if (retained) continue;
|
|
8953
|
-
if
|
|
9082
|
+
// Suspended by an :if: released when it hid, so not again here.
|
|
9083
|
+
if (!(entry.__suspended && !entry.__mounted) && entry.__destroyCallbacks && Array.isArray(entry.__destroyCallbacks)) {
|
|
8954
9084
|
for (var k = 0; k < entry.__destroyCallbacks.length; k++) {
|
|
8955
9085
|
try { entry.__destroyCallbacks[k](); }
|
|
8956
9086
|
catch (e) { console.warn('[stx] scope destroy error:', e); }
|
package/dist/ssg.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-ynvce0q6.js";import"./chunk-2n5pjbw9.js";import{Qe,et,tt,nt,rt,st}from"./chunk-88px183j.js";import"./chunk-2jbyks2t.js";import"./chunk-pf0d8y9n.js";import{f,je,N,K,n,o}from"./chunk-dqdggvq4.js";import"./chunk-v83bpj84.js";import{Qn}from"./chunk-y36av1ac.js";import"./chunk-zydg3wgt.js";import"./chunk-ng61wjke.js";import"./chunk-jz7pvh7b.js";import"./chunk-0trfbqa7.js";import"./chunk-39q77svv.js";import{ie,gt,mt}from"./chunk-kdk0jy1h.js";import{To,Ro,Ao}from"./chunk-5j5msbks.js";import{pt,Gt,Jt}from"./chunk-5pjsc9zv.js";import"./chunk-d2zw2e5m.js";import{a}from"./chunk-7tt84v1y.js";import x from"fs";import g from"path";import{createHash as $t}from"crypto";function Dt(t){try{return new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(t).replace(/\}(var |let |const |function )/g,"};$1").trim()}catch{return t}}var Rt=/<script\s+type="stx\/island"\s+data-stx-island="([^"]+)"([^>]*)>([\s\S]*?)<\/script>/g;function kt(t){return Bun.hash(t).toString(16)}function lt(t,i={}){if(!t.includes('type="stx/island"'))return{html:t,chunks:[]};let s=new Map,r=t.replace(Rt,(e,l,w,y)=>{let h=y.trim();if(!h)return e;if(/\bdata-stx-src=/.test(w))return e;if(i.minify)h=Dt(h);let S=kt(h);if(!s.has(S))s.set(S,h);let P=i.integrity?` data-stx-integrity="sha384-${$t("sha384").update(h).digest("base64")}"`:"";return`<script type="stx/island" data-stx-island="${l}" data-stx-src="/_stx/islands/${S}.js"${P}${w}></script>`}),c=Array.from(s,([e,l])=>({hash:e,code:l}));return{html:r,chunks:c}}var Ct=new Set(["visible","idle"]);function ut(t){if(!t.includes("data-stx-src="))return t;let i=new Map,s=/data-stx-scope="([^"]+)"[^>]*?stx-hydrate="([^"]+)"/g,r;while((r=s.exec(t))!==null)i.set(r[1],r[2]);let c=new Set,e=/data-stx-island="([^"]+)"[^>]*?data-stx-src="([^"]+)"/g,l;while((l=e.exec(t))!==null)if(Ct.has(i.get(l[1])||""))c.add(l[2]);let w=t.lastIndexOf("</head>");if(c.size===0||w===-1)return t;let y=Array.from(c).filter((h)=>!t.includes(`rel="prefetch" href="${h}"`)).map((h)=>`<link rel="prefetch" href="${h}" as="script">`).join("");if(!y)return t;return t.slice(0,w)+y+t.slice(w)}var Et=["STX_SITE_URL","SITE_URL","URL","VERCEL_URL","CF_PAGES_URL"];function q(t){let i=t.trim();if(!i)return null;let s=/^https?:\/\//i.test(i)?i:`https://${i}`;try{return new URL(s).origin+new URL(s).pathname.replace(/\/$/,"")}catch{return null}}function It(t){for(let i of Et){let s=t[i];if(!s)continue;let r=q(s);if(r)return{url:r,source:"env",via:i}}return null}function dt(t){if(!t||typeof t!=="object")return null;let i=t,s=i.site?.url??i.url??i.app?.url;return typeof s==="string"?q(s):null}async function Bt(t){let{existsSync:i}=await import("fs"),s=await import("path");for(let r of["site.config.ts","site.config.js",".config/site.config.ts"]){let c=s.resolve(t,r);if(!i(c))continue;try{let e=await import(c),l=dt(e.default??e);if(l)return l}catch{}}return null}async function ht(t={}){let i=t.cwd??process.cwd(),s=t.env??process.env;if(t.explicit){let l=q(t.explicit);if(l)return{url:l,source:"option"}}let r=dt(t.stxConfig);if(r)return{url:r,source:"stx.config",via:"site.url"};let c=await Bt(i);if(c)return{url:c,source:"site.config",via:"url"};let e=It(s);if(e)return e;return{url:"http://localhost",source:"fallback"}}function ft(){return["No site URL configured \u2014 sitemap.xml and robots.txt will point at http://localhost."," Set one in stx.config.ts (site: { url: 'https://example.com' }), in site.config.ts,"," via --domain, or with SITE_URL in the build environment."].join(`
|
|
3
3
|
`)}class wt{cacheDir;cache=new Map;loaded=!1;salt;constructor(t,i=""){this.cacheDir=t,this.salt=i}async load(){if(this.loaded)return;let t=g.join(this.cacheDir,"build-cache.json");if(await Bun.file(t).exists())try{let i=JSON.parse(await Bun.file(t).text());for(let[s,r]of Object.entries(i))this.cache.set(s,r)}catch{}this.loaded=!0}async save(){await x.promises.mkdir(this.cacheDir,{recursive:!0});let t=g.join(this.cacheDir,"build-cache.json"),i={};for(let[s,r]of this.cache)i[s]=r;await Bun.write(t,JSON.stringify(i))}getHash(t,i){let s=x.statSync(t),r=`${this.salt}|${t}:${s.mtimeMs}`;for(let e of i)if(x.existsSync(e)){let l=x.statSync(e);r+=`:${e}:${l.mtimeMs}`}let c=0;for(let e=0;e<r.length;e++){let l=r.charCodeAt(e);c=(c<<5)-c+l,c=c&c}return Math.abs(c).toString(36)}get(t,i){let s=this.cache.get(t);if(!s)return null;let r=this.getHash(i,s.dependencies??[]);if(s.hash!==r)return this.cache.delete(t),null;return s.html}set(t,i,s,r){let c=this.getHash(i,s);this.cache.set(t,{hash:c,html:r,generatedAt:Date.now(),dependencies:s})}}class yt{cacheDir;constructor(t){this.cacheDir=t}getFilePath(t){let i=t.replace(/[^a-zA-Z0-9]/g,"_")+".json";return g.join(this.cacheDir,"isr",i)}async get(t){let i=this.getFilePath(t);if(!await Bun.file(i).exists())return null;try{return JSON.parse(await Bun.file(i).text())}catch{return null}}async set(t,i){let s=this.getFilePath(t);await x.promises.mkdir(g.dirname(s),{recursive:!0}),await Bun.write(s,JSON.stringify(i))}async invalidate(t){let i=this.getFilePath(t);if(await Bun.file(i).exists())await x.promises.unlink(i)}async invalidatePattern(t){let i=g.join(this.cacheDir,"isr");if(!x.existsSync(i))return;let s=await x.promises.readdir(i);for(let r of s){let c=r.replace(/_/g,"/").replace(".json","");if(t.test(c))await x.promises.unlink(g.join(i,r))}}async needsRevalidation(t){let i=await this.get(t);if(!i)return!0;return Date.now()>i.revalidateAfter}}async function jt(t){try{let s=(await Bun.file(t).text()).match(/<script\s+server\b[^>]*>([\s\S]*?)<\/script>/i);if(!s)return null;let r=s[1];if(!r.includes("getStaticPaths"))return null;let c=r.match(/(?:export\s+)?(?:async\s+)?function\s+getStaticPaths\s*\([^)]*\)\s*\{([\s\S]*?)\n[\t ]*\}/);if(!c)return null;return await Function(`
|
|
4
4
|
return (async function getStaticPaths() {
|
|
5
5
|
${c[1]}
|
|
@@ -41,7 +41,7 @@ ${t.map((r)=>{let c=new URL(r.loc,i).href,e=` <url>
|
|
|
41
41
|
${s.join(`
|
|
42
42
|
`)}
|
|
43
43
|
</channel>
|
|
44
|
-
</rss>`}async function zt(t={}){let i=Date.now();mt();let s=await o(process.cwd()),r=s.build||{},c=await ht({explicit:t.domain||r.domain,stxConfig:s});if(c.source==="fallback"&&(t.sitemap??r.sitemap??!0))console.warn(ft());let e={router:t.router??s?.router??{},pagesDir:t.pagesDir||r.pagesDir||"pages",outputDir:t.outputDir||r.outputDir||"dist",baseUrl:t.baseUrl||r.baseUrl||"/",domain:c.url,revalidate:t.revalidate??r.revalidate??!1,sitemap:t.sitemap??r.sitemap??!0,sitemapExclude:t.sitemapExclude||r.sitemapExclude||[],robots:t.robots??r.robots??!0,rss:t.rss??r.rss??!1,concurrency:t.concurrency||r.concurrency||10,cache:t.cache??r.cache??!0,cacheDir:t.cacheDir||r.cacheDir||a(process.cwd(),"ssg-cache"),contentLoaders:t.contentLoaders||[],hooks:t.hooks||{},minify:t.minify??r.minify??!0,generate404:t.generate404??r.generate404??!0,publicDir:t.publicDir||r.publicDir||"public",trailingSlash:t.trailingSlash??r.trailingSlash??!1,cleanOutput:t.cleanOutput??r.cleanOutput??!0,cacheSalt:t.cacheSalt??"",partialsDir:t.partialsDir||s?.partialsDir||"",componentsDir:t.componentsDir||s?.componentsDir||"",failOnIncludeError:t.failOnIncludeError??!0,failOnServerScriptError:t.failOnServerScriptError??!0,chunkIslands:t.chunkIslands===!0,prefetchIslands:t.prefetchIslands===!0,integrityIslands:t.integrityIslands===!0},l={totalPages:0,successCount:0,failedCount:0,cachedCount:0,buildTime:0,pages:[],errors:[]},w=new Set,y=0,h={},S={};await e.hooks.onBuildStart?.();try{if(e.cleanOutput&&x.existsSync(e.outputDir))await x.promises.rm(e.outputDir,{recursive:!0});await x.promises.mkdir(e.outputDir,{recursive:!0});let D=e.cacheSalt;if(!D){let{resolveUserCssConfig:u,fingerprintConfig:m}=await import("./chunk-
|
|
44
|
+
</rss>`}async function zt(t={}){let i=Date.now();mt();let s=await o(process.cwd()),r=s.build||{},c=await ht({explicit:t.domain||r.domain,stxConfig:s});if(c.source==="fallback"&&(t.sitemap??r.sitemap??!0))console.warn(ft());let e={router:t.router??s?.router??{},pagesDir:t.pagesDir||r.pagesDir||"pages",outputDir:t.outputDir||r.outputDir||"dist",baseUrl:t.baseUrl||r.baseUrl||"/",domain:c.url,revalidate:t.revalidate??r.revalidate??!1,sitemap:t.sitemap??r.sitemap??!0,sitemapExclude:t.sitemapExclude||r.sitemapExclude||[],robots:t.robots??r.robots??!0,rss:t.rss??r.rss??!1,concurrency:t.concurrency||r.concurrency||10,cache:t.cache??r.cache??!0,cacheDir:t.cacheDir||r.cacheDir||a(process.cwd(),"ssg-cache"),contentLoaders:t.contentLoaders||[],hooks:t.hooks||{},minify:t.minify??r.minify??!0,generate404:t.generate404??r.generate404??!0,publicDir:t.publicDir||r.publicDir||"public",trailingSlash:t.trailingSlash??r.trailingSlash??!1,cleanOutput:t.cleanOutput??r.cleanOutput??!0,cacheSalt:t.cacheSalt??"",partialsDir:t.partialsDir||s?.partialsDir||"",componentsDir:t.componentsDir||s?.componentsDir||"",failOnIncludeError:t.failOnIncludeError??!0,failOnServerScriptError:t.failOnServerScriptError??!0,chunkIslands:t.chunkIslands===!0,prefetchIslands:t.prefetchIslands===!0,integrityIslands:t.integrityIslands===!0},l={totalPages:0,successCount:0,failedCount:0,cachedCount:0,buildTime:0,pages:[],errors:[]},w=new Set,y=0,h={},S={};await e.hooks.onBuildStart?.();try{if(e.cleanOutput&&x.existsSync(e.outputDir))await x.promises.rm(e.outputDir,{recursive:!0});await x.promises.mkdir(e.outputDir,{recursive:!0});let D=e.cacheSalt;if(!D){let{resolveUserCssConfig:u,fingerprintConfig:m}=await import("./chunk-mxt11ejx.js");try{D=m(await u(process.cwd()))}catch{}}let{prepareImageDelivery:p}=await import("./chunk-ajqwjevt.js"),b=await p(e.publicDir,e.outputDir);if(b.count>0)console.log(`Optimized ${b.count} image(s) for responsive delivery`),D=[D,b.fingerprint].filter(Boolean).join(":");let B=new wt(e.cacheDir,D);if(e.cache)await B.load();try{let{generateCss:u}=await import("./chunk-mxt11ejx.js");await u('<div class="bg-black"></div>')}catch{}Qe();let xt=s?.routeMiddleware?.dir||"middleware";await tt(process.cwd(),xt);let H=et();if(H.length>0)console.log(`Loaded ${H.length} middleware: ${H.join(", ")}`);let vt=s?.routeMiddleware?.global||[];Ao(s?.layoutsDir,a(process.cwd()));let V=N(".",{pagesDir:e.pagesDir,pagesDirs:s?._layerPageDirs});console.log(`Found ${V.length} routes`);let _=[];for(let u of V){let m=await Ft(u);for(let v of m)_.push({route:u,url:v.url,params:v.params,props:v.props,revalidate:v.revalidate??e.revalidate})}l.totalPages=_.length,console.log(`Generating ${l.totalPages} pages...`);let A=[],X=[];for(let u=0;u<_.length;u+=e.concurrency)X.push(_.slice(u,u+e.concurrency));for(let u of X)await Promise.all(u.map(async(m)=>{let{route:v,url:d,params:L,props:bt,revalidate:Q}=m;try{await e.hooks.onPageStart?.(d);let j=await Bun.file(v.filePath).text(),F=Vt(j),Pt=F?.middleware?Array.isArray(F.middleware)?F.middleware:[F.middleware]:[],it=[...vt,...Pt];if(it.length>0){let C=nt(d,L,F||{}),O=rt(C,null,void 0,{isServer:!0}),E=await st(it,O);if(E.redirect){let R=typeof E.redirect==="string"?E.redirect:E.redirect.path||E.redirect,U=Kt(String(R),d),T=Xt(d,e);await x.promises.mkdir(g.dirname(T),{recursive:!0}),await Bun.write(T,U),l.successCount++,l.pages.push({route:d,outputPath:T,size:Buffer.byteLength(U),cached:!1}),A.push({loc:d,lastmod:new Date().toISOString()}),console.log(` \u21B3 ${d} \u2192 redirect to ${R}`);return}if(E.abort){let R=typeof E.abort==="string"?E.abort:E.abort?.error?.message||"aborted";console.warn(` \u21B3 ${d} \u2014 middleware aborted: ${R}`);return}}let at=j.match(/definePageMeta\s*\(\s*\{[\s\S]*?validate\s*:\s*((?:\([^)]*\)|[^,}])*(?:\{[\s\S]*?\})?)/m);if(at)try{if(!await Function("route",`
|
|
45
45
|
const validate = ${at[1]};
|
|
46
46
|
return validate(route);
|
|
47
47
|
`)({params:L})){console.warn(`Validation failed for ${d}, skipping...`);return}}catch{}let k=null,ot=!1;if(e.cache){if(k=B.get(d,v.filePath),k)ot=!0,l.cachedCount++}if(!k){let C=await St(v,L,bt,e,s);if(k=C.html,e.failOnIncludeError&&C.includeFailures.length>0)throw Error(`${C.includeFailures.length} include(s) failed to resolve, so this page would have shipped with an error banner where the markup should be:
|
|
@@ -73,7 +73,7 @@ ${u}`)}if(e.cache)await B.save();if(e.generate404){let u=g.join(e.pagesDir,"404.
|
|
|
73
73
|
<a href="/">Go home</a>
|
|
74
74
|
</div>
|
|
75
75
|
</body>
|
|
76
|
-
</html>`)}for(let u of[500]){let m=g.join(e.pagesDir,`${u}.stx`);if(await Bun.file(m).exists()){let v=new Set,d={...s,debug:!1,cache:!1},L=await n(await Bun.file(m).text(),{},m,d,v);await Bun.write(g.join(e.outputDir,`${u}.html`),L)}}let W=g.join(e.pagesDir,"error.stx");if(await Bun.file(W).exists()){let u=new Set,m={...s,debug:!1,cache:!1},v=await n(await Bun.file(W).text(),{},W,m,u);await Bun.write(g.join(e.outputDir,"error.html"),v)}if(e.sitemap&&A.length>0){let u=_t(A,e.domain),m=g.join(e.outputDir,"sitemap.xml");await Bun.write(m,u),l.sitemapPath=m,console.log(`Generated sitemap.xml with ${A.length} URLs`)}if(e.robots!==!1){let u=typeof e.robots==="object"?e.robots:{},m=[...e.sitemapExclude.filter((d)=>typeof d==="string"),...u.disallow||[]],v=Qn({rules:[{userAgent:u.userAgent||"*",allow:u.allow||["/"],...m.length>0?{disallow:m}:{}}],...u.sitemap!==!1&&l.sitemapPath?{sitemap:new URL("/sitemap.xml",e.domain).href}:{}});await Bun.write(g.join(e.outputDir,"robots.txt"),v),console.log("Generated robots.txt")}if(e.rss){let u=typeof e.rss==="object"?e.rss:{title:"Site Feed",description:"Latest updates",link:e.domain},m=[];if(u.getItems)m=await u.getItems();let v=Nt(u,m),d=g.join(e.outputDir,"rss.xml");await Bun.write(d,v),l.rssPath=d,console.log(`Generated rss.xml with ${m.length} items`)}let G=
|
|
76
|
+
</html>`)}for(let u of[500]){let m=g.join(e.pagesDir,`${u}.stx`);if(await Bun.file(m).exists()){let v=new Set,d={...s,debug:!1,cache:!1},L=await n(await Bun.file(m).text(),{},m,d,v);await Bun.write(g.join(e.outputDir,`${u}.html`),L)}}let W=g.join(e.pagesDir,"error.stx");if(await Bun.file(W).exists()){let u=new Set,m={...s,debug:!1,cache:!1},v=await n(await Bun.file(W).text(),{},W,m,u);await Bun.write(g.join(e.outputDir,"error.html"),v)}if(e.sitemap&&A.length>0){let u=_t(A,e.domain),m=g.join(e.outputDir,"sitemap.xml");await Bun.write(m,u),l.sitemapPath=m,console.log(`Generated sitemap.xml with ${A.length} URLs`)}if(e.robots!==!1){let u=typeof e.robots==="object"?e.robots:{},m=[...e.sitemapExclude.filter((d)=>typeof d==="string"),...u.disallow||[]],v=Qn({rules:[{userAgent:u.userAgent||"*",allow:u.allow||["/"],...m.length>0?{disallow:m}:{}}],...u.sitemap!==!1&&l.sitemapPath?{sitemap:new URL("/sitemap.xml",e.domain).href}:{}});await Bun.write(g.join(e.outputDir,"robots.txt"),v),console.log("Generated robots.txt")}if(e.rss){let u=typeof e.rss==="object"?e.rss:{title:"Site Feed",description:"Latest updates",link:e.domain},m=[];if(u.getItems)m=await u.getItems();let v=Nt(u,m),d=g.join(e.outputDir,"rss.xml");await Bun.write(d,v),l.rssPath=d,console.log(`Generated rss.xml with ${m.length} items`)}let G=To(e.outputDir);if(G.assets>0)console.log(`Externalized ${G.assets} asset(s) from ${G.pages} page(s) (${(G.bytesInlined/1024).toFixed(1)}KB removed from HTML)`);let z=Ro(e.outputDir);if(z.assets>0)console.log(`Externalized ${z.assets} repeated asset(s) from ${z.pages} page(s) (${(z.bytesInlined/1024).toFixed(1)}KB removed from HTML)`);if(e.publicDir&&x.existsSync(e.publicDir))await J(e.publicDir,e.outputDir),console.log(`Copied public assets from ${e.publicDir}`);let Z=Jt();if(Z)await J(Z,g.join(e.outputDir,Gt)),console.log(`Copied assets from ${pt}`)}catch(D){throw await e.hooks.onError?.(D),D}if(l.buildTime=Date.now()-i,w.size>0){l.islandChunks={count:w.size,totalBytes:y};let D={generatedChunks:w.size,totalBytes:y,chunks:h,pages:S};await Bun.write(g.join(e.outputDir,"_stx","islands-manifest.json"),JSON.stringify(D,null,2))}await e.hooks.onBuildEnd?.(l);let P=l.islandChunks?`
|
|
77
77
|
Island chunks: ${l.islandChunks.count} (${(l.islandChunks.totalBytes/1024).toFixed(1)} KB lifted out of inline HTML)`:"";return console.log(`
|
|
78
78
|
Build complete!
|
|
79
79
|
Total: ${l.totalPages} pages
|
package/dist/utils.js
CHANGED
|
@@ -1311,11 +1311,26 @@ async function buildComponentIsland(rawContent, componentFilePath, minify) {
|
|
|
1311
1311
|
}
|
|
1312
1312
|
window.__STX_CURRENT_PROPS__ = __componentProps && typeof __componentProps === 'object' && !Array.isArray(__componentProps) ? __componentProps : {};
|
|
1313
1313
|
|
|
1314
|
-
// Scope-specific lifecycle callbacks
|
|
1314
|
+
// Scope-specific lifecycle callbacks. The queues drain as they run; the
|
|
1315
|
+
// hook lists keep what setup registered, because a component behind an :if
|
|
1316
|
+
// unmounts at each hide and mounts again at each show (signals.ts,
|
|
1317
|
+
// suspendSubtreeScopes).
|
|
1318
|
+
if (__scopeVars.__suspended && !__scopeVars.__mounted) {
|
|
1319
|
+
// Set up again after an :if hid it -- a <template :if> clones the
|
|
1320
|
+
// component afresh on every show, and the clone's script runs. This run's
|
|
1321
|
+
// hooks close over this run's state, so they replace the ones the hide
|
|
1322
|
+
// kept for a re-show rather than queueing beside them.
|
|
1323
|
+
__scopeVars.__mountCallbacks = [];
|
|
1324
|
+
__scopeVars.__destroyCallbacks = [];
|
|
1325
|
+
__scopeVars.__mountHooks = [];
|
|
1326
|
+
__scopeVars.__destroyHooks = [];
|
|
1327
|
+
}
|
|
1315
1328
|
__scopeVars.__mountCallbacks = __scopeVars.__mountCallbacks || [];
|
|
1316
1329
|
__scopeVars.__destroyCallbacks = __scopeVars.__destroyCallbacks || [];
|
|
1317
|
-
|
|
1318
|
-
|
|
1330
|
+
__scopeVars.__mountHooks = __scopeVars.__mountHooks || [];
|
|
1331
|
+
__scopeVars.__destroyHooks = __scopeVars.__destroyHooks || [];
|
|
1332
|
+
const onMount = (fn) => { __scopeVars.__mountCallbacks.push(fn); __scopeVars.__mountHooks.push(fn); };
|
|
1333
|
+
const onDestroy = (fn) => { __scopeVars.__destroyCallbacks.push(fn); __scopeVars.__destroyHooks.push(fn); };
|
|
1319
1334
|
|
|
1320
1335
|
try {
|
|
1321
1336
|
${content}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/stx",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.463",
|
|
5
5
|
"description": "A performant UI Framework. Powered by Bun.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -122,12 +122,12 @@
|
|
|
122
122
|
"dependencies": {
|
|
123
123
|
"@stacksjs/ts-css": "^0.3.2",
|
|
124
124
|
"@stacksjs/clapp": "^0.2.16",
|
|
125
|
-
"@stacksjs/desktop": "0.2.
|
|
126
|
-
"@stacksjs/sanitizer": "0.2.
|
|
125
|
+
"@stacksjs/desktop": "0.2.463",
|
|
126
|
+
"@stacksjs/sanitizer": "0.2.463",
|
|
127
127
|
"@stacksjs/ts-i18n": "^0.1.11",
|
|
128
|
-
"bun-plugin-stx": "0.2.
|
|
128
|
+
"bun-plugin-stx": "0.2.463",
|
|
129
129
|
"bunfig": "^0.15.19",
|
|
130
|
-
"stx-router": "0.2.
|
|
130
|
+
"stx-router": "0.2.463",
|
|
131
131
|
"ts-broadcasting": "^0.0.11",
|
|
132
132
|
"ts-images": "^0.2.22",
|
|
133
133
|
"ts-syntax-highlighter": "^0.2.1"
|
package/dist/chunk-0r0cbqpj.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ct,cc,lc,uc,dc,pc,d,fc,ls,gc,ri,si}from"./chunk-zskhxkbk.js";import"./chunk-bq2e9qf6.js";import"./chunk-8xz8t9xp.js";import"./chunk-0trfbqa7.js";import"./chunk-y1hx8re2.js";import"./chunk-zydg3wgt.js";import"./chunk-4fa3jec9.js";import"./chunk-exgyf65a.js";import"./chunk-r6pax860.js";import"./chunk-h9e032kq.js";import"./chunk-w1zvh5y7.js";import"./chunk-w6zz18jt.js";import"./chunk-jz7pvh7b.js";export{Ct as STX_ENGINE_BINDING_NAMES,ls as convertToCommonJS,ri as extractScriptFromTemplate,d as extractVariables,si as hasVariables,fc as isCompleteImport,pc as isMissingBindingFailure,uc as isModuleResolutionFailure,dc as isSyntaxFailure,gc as splitDeclaration,cc as stripTypeScript,lc as withoutStxReferrer};
|
package/dist/chunk-0snysm7z.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{I,$c,o,R,Fu,zu}from"./chunk-zskhxkbk.js";import"./chunk-bq2e9qf6.js";import"./chunk-8xz8t9xp.js";import"./chunk-0trfbqa7.js";import"./chunk-y1hx8re2.js";import"./chunk-zydg3wgt.js";import"./chunk-4fa3jec9.js";import"./chunk-exgyf65a.js";import"./chunk-r6pax860.js";import"./chunk-h9e032kq.js";import"./chunk-w1zvh5y7.js";import"./chunk-w6zz18jt.js";import"./chunk-jz7pvh7b.js";export{R as config,I as defaultConfig,Fu as defineStxConfig,o as loadStxConfig,$c as resolveStxDirectories,zu as validateConfig};
|
package/dist/chunk-1vgmzmsw.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{hr,Gs,xn,yr,br,At,lt,Js,Sn,kn,wr,vr,zc,Hc,Te}from"./chunk-mhpsz5m0.js";export{Te as DeployError,Gs as calculateSha1,xn as collectDeployFiles,kn as createDefaultNetlifyConfig,yr as createFileManifest,hr as createNetlifyClient,zc as deploy,Sn as detectProjectConfig,br as filterRequiredFiles,At as formatSize,Js as generateNetlifyToml,lt as getTotalSize,vr as hasNetlifyConfig,Hc as initNetlify,wr as writeNetlifyConfig};
|
package/dist/chunk-32t5agpk.js
DELETED
package/dist/chunk-3s2vnqcf.js
DELETED
package/dist/chunk-3wkrrps3.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Oi,Mi}from"./chunk-fzs6v9x5.js";import"./chunk-mhpsz5m0.js";import"./chunk-rcr57c30.js";import"./chunk-9r6nd1nf.js";import"./chunk-ree9weje.js";import"./chunk-zchtjtq9.js";import"./chunk-5erw0wsr.js";import"./chunk-tpeyn7wr.js";import"./chunk-rgwvqmhh.js";import"./chunk-bf7aa9w7.js";import"./chunk-h356tjvs.js";import{no}from"./chunk-y15ybsg3.js";import"./chunk-tbjyp03h.js";import"./chunk-z80d9dd2.js";import"./chunk-ycdzhjt0.js";import"./chunk-ab56jdah.js";import"./chunk-n1dyjhte.js";import"./chunk-462jmw0a.js";import"./chunk-gkqxnetc.js";import"./chunk-5p56w2ke.js";import"./chunk-2bdthb37.js";import"./chunk-1wtm4ayp.js";import"./chunk-5qns2sdz.js";import"./chunk-6r2709dj.js";import"./chunk-c491hsm1.js";import"./chunk-n866vbgj.js";import"./chunk-z2daw0th.js";import"./chunk-z3etxty5.js";import"./chunk-fyh1w7j0.js";import"./chunk-6pyydsn1.js";import"./chunk-26gxw0e2.js";import"./chunk-12w518qc.js";import"./chunk-dxxs52yw.js";import"./chunk-jkyb1f9r.js";import"./chunk-jfps4n28.js";import{me,Qt,en,K,d,n,Kn,I,o,ce}from"./chunk-zskhxkbk.js";import"./chunk-bq2e9qf6.js";import"./chunk-8xz8t9xp.js";import"./chunk-0trfbqa7.js";import"./chunk-y1hx8re2.js";import"./chunk-zydg3wgt.js";import"./chunk-4fa3jec9.js";import"./chunk-exgyf65a.js";import"./chunk-r6pax860.js";import"./chunk-h9e032kq.js";import"./chunk-w1zvh5y7.js";import"./chunk-w6zz18jt.js";import"./chunk-jz7pvh7b.js";export{Kn as buildWebComponents,en as cacheTemplate,Qt as checkCache,no as classifyAllScripts,Oi as createMiddleware,Mi as createRoute,I as defaultConfig,d as extractVariables,K as injectRouterScript,o as loadStxConfig,me as processClientScript,n as processDirectives,ce as readMarkdownFile};
|
package/dist/chunk-4henqdjf.js
DELETED
package/dist/chunk-561yczfn.js
DELETED
package/dist/chunk-5m8q7c5r.js
DELETED
package/dist/chunk-68txmj8d.js
DELETED
package/dist/chunk-6qv189mb.js
DELETED
package/dist/chunk-6vye2exm.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{bt,Hr,Vr,Ur,yu,Wr}from"./chunk-jfps4n28.js";import"./chunk-0trfbqa7.js";import"./chunk-zydg3wgt.js";import"./chunk-w6zz18jt.js";export{Vr as buildServerApi,yu as createServerApi,bt as discoverServerApi,Hr as generateApiTypes,Wr as isServerApiSource,Ur as productionApiDispatcher};
|
package/dist/chunk-80a84qry.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Me,Ga,Cu,$u,Eu,Tu,Ja,Ya,_u,Ru,Ho,Au,Qt,en,Mn}from"./chunk-zskhxkbk.js";import"./chunk-bq2e9qf6.js";import"./chunk-8xz8t9xp.js";import"./chunk-0trfbqa7.js";import"./chunk-y1hx8re2.js";import"./chunk-zydg3wgt.js";import"./chunk-4fa3jec9.js";import"./chunk-exgyf65a.js";import"./chunk-r6pax860.js";import"./chunk-h9e032kq.js";import"./chunk-w1zvh5y7.js";import"./chunk-w6zz18jt.js";import"./chunk-jz7pvh7b.js";export{Tu as __setSignalsGeneratorsForTest,Me as cacheEngineFingerprint,en as cacheTemplate,Qt as checkCache,Au as clearDevCaches,Ya as getCachedRouterScript,Ja as getCachedSignalsRuntime,_u as getServeClientAsset,Ho as getServeModuleBundle,Mn as hashFilePath,$u as invalidateFileCache,Eu as invalidateFileCacheByDir,Cu as readFileCached,Ru as registerServeModuleBundle,Ga as templateCache};
|
package/dist/chunk-8p2vfjg2.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{So,ko,Co,gu}from"./chunk-aeb8621d.js";import"./chunk-12w518qc.js";import"./chunk-zskhxkbk.js";import"./chunk-bq2e9qf6.js";import"./chunk-8xz8t9xp.js";import"./chunk-0trfbqa7.js";import"./chunk-y1hx8re2.js";import"./chunk-zydg3wgt.js";import"./chunk-4fa3jec9.js";import"./chunk-exgyf65a.js";import"./chunk-r6pax860.js";import"./chunk-h9e032kq.js";import"./chunk-w1zvh5y7.js";import"./chunk-w6zz18jt.js";import"./chunk-jz7pvh7b.js";export{So as buildNative,gu as default,Co as getAvailableFormats,ko as getAvailableTargets};
|
package/dist/chunk-9r1jj3rm.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Yi,ul,Zi,Qi,dl,pl}from"./chunk-ycdzhjt0.js";import"./chunk-zskhxkbk.js";import"./chunk-bq2e9qf6.js";import"./chunk-8xz8t9xp.js";import"./chunk-0trfbqa7.js";import"./chunk-y1hx8re2.js";import"./chunk-zydg3wgt.js";import"./chunk-4fa3jec9.js";import"./chunk-exgyf65a.js";import"./chunk-r6pax860.js";import"./chunk-h9e032kq.js";import"./chunk-w1zvh5y7.js";import"./chunk-w6zz18jt.js";import"./chunk-jz7pvh7b.js";export{pl as applySlots,dl as extractSlotContent,ul as parseSlotElement,Yi as parseSlots,Qi as processSlots,Zi as renderSlot};
|
package/dist/chunk-9t50hw97.js
DELETED
package/dist/chunk-9z22zs86.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ks,Cs,$s,Es,Yn,Zn,Hu,Vu,Uu,Wu,Qn,qu}from"./chunk-4fa3jec9.js";import"./chunk-exgyf65a.js";import"./chunk-r6pax860.js";export{qu as generateDefaultRobotsTxt,Qn as generateRobotsTxt,Vu as generateSitemap,Uu as generateSitemapIndex,Es as injectSeoTags,Yn as metaDirective,ks as processMetaDirectives,$s as processSeoDirective,Cs as processStructuredData,Hu as registerSeoDirectives,Wu as scanForSitemapEntries,Zn as structuredDataDirective};
|
package/dist/chunk-cq7se10f.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{cl}from"./chunk-h356tjvs.js";import"./chunk-y15ybsg3.js";import"./chunk-jfps4n28.js";import"./chunk-zskhxkbk.js";import"./chunk-bq2e9qf6.js";import"./chunk-8xz8t9xp.js";import"./chunk-0trfbqa7.js";import"./chunk-y1hx8re2.js";import"./chunk-zydg3wgt.js";import"./chunk-4fa3jec9.js";import"./chunk-exgyf65a.js";import"./chunk-r6pax860.js";import"./chunk-h9e032kq.js";import"./chunk-w1zvh5y7.js";import"./chunk-w6zz18jt.js";import"./chunk-jz7pvh7b.js";export{cl as startProductionServer};
|
package/dist/chunk-cy2bskcx.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Wl,ql}from"./chunk-fyh1w7j0.js";import"./chunk-jkyb1f9r.js";import"./chunk-jfps4n28.js";import"./chunk-zskhxkbk.js";import"./chunk-bq2e9qf6.js";import"./chunk-8xz8t9xp.js";import"./chunk-0trfbqa7.js";import"./chunk-y1hx8re2.js";import"./chunk-zydg3wgt.js";import"./chunk-4fa3jec9.js";import"./chunk-exgyf65a.js";import"./chunk-r6pax860.js";import"./chunk-h9e032kq.js";import"./chunk-w1zvh5y7.js";import"./chunk-w6zz18jt.js";import"./chunk-jz7pvh7b.js";export{ql as clearStoreCache,Wl as getStoreScript};
|
package/dist/chunk-ef0gstkd.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{_s,Ku,Xu,vi,pe,Tc,nr,Gu,Ju,Yu,Zu,Qu,ed,td,nd,rd}from"./chunk-exgyf65a.js";import"./chunk-r6pax860.js";export{ed as applyHead,Gu as definePageMeta,_s as getHead,Ku as getPageMeta,pe as mergeHeadConfigs,td as processHeadDirective,rd as processMetaDirective,nd as processTitleDirective,Qu as renderBodyAttrs,Yu as renderHead,Zu as renderHtmlAttrs,Xu as resetHead,nr as seoMetaToHeadConfig,vi as useHead,Ju as usePageTitle,Tc as useSeoMeta,Ju as useTitle};
|
package/dist/chunk-f8hd3kh3.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{nn,sc,ss}from"./chunk-zskhxkbk.js";import"./chunk-bq2e9qf6.js";import"./chunk-8xz8t9xp.js";import"./chunk-0trfbqa7.js";import"./chunk-y1hx8re2.js";import"./chunk-zydg3wgt.js";import"./chunk-4fa3jec9.js";import"./chunk-exgyf65a.js";import{ve}from"./chunk-r6pax860.js";import"./chunk-h9e032kq.js";import"./chunk-w1zvh5y7.js";import"./chunk-w6zz18jt.js";import"./chunk-jz7pvh7b.js";export{ve as freeIdentifiers,ss as processComponents,sc as processESImports,nn as rendersAsElement};
|
package/dist/chunk-fb1711er.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Pe,Wt,Kl}from"./chunk-6pyydsn1.js";import{V,Tn,qt,Mr,Nr,_n,Xl,Gl,Jl,Kt,Xt,Lr,Rn,Yl}from"./chunk-2cy956js.js";import"./chunk-w1zvh5y7.js";export{Mr as batch,Kl as default,Tn as derived,qt as effect,Pe as generateSignalsRuntime,Wt as generateSignalsRuntimeDev,Xt as isDerived,Kt as isSignal,_n as onDestroy,Nr as onMount,Rn as peek,Jl as pendingLifecycleCounts,Gl as runDestroyCallbacks,Xl as runMountCallbacks,V as state,Lr as untrack,Yl as useOptimistic};
|
package/dist/chunk-g7ksavh1.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{al}from"./chunk-bf7aa9w7.js";import"./chunk-zskhxkbk.js";import"./chunk-bq2e9qf6.js";import"./chunk-8xz8t9xp.js";import"./chunk-0trfbqa7.js";import"./chunk-y1hx8re2.js";import"./chunk-zydg3wgt.js";import"./chunk-4fa3jec9.js";import"./chunk-exgyf65a.js";import"./chunk-r6pax860.js";import"./chunk-h9e032kq.js";import"./chunk-w1zvh5y7.js";import"./chunk-w6zz18jt.js";import"./chunk-jz7pvh7b.js";export{al as buildApp};
|
package/dist/chunk-hskrxdcc.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Tr,_r,Rr,oa,Ar,Pr,ia,Ir,Dr,fo,aa}from"./chunk-n1dyjhte.js";export{Tr as VideoProcessorCache,fo as analyzeVideo,oa as clearVideoCache,Dr as generateDASHManifest,Ir as generateHLSManifest,Ar as generatePoster,ia as generateSpriteSheet,Pr as generateThumbnails,_r as getCachedVideoResult,aa as processVideo,Rr as setCachedVideoResult};
|
package/dist/chunk-kp54j5hy.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ie,Na,Mo,gt,mt,hu,No,ht,Yt,La,ja,Ba,Fa,yt,za}from"./chunk-jkyb1f9r.js";import"./chunk-jfps4n28.js";import"./chunk-zskhxkbk.js";import"./chunk-bq2e9qf6.js";import"./chunk-8xz8t9xp.js";import"./chunk-0trfbqa7.js";import"./chunk-y1hx8re2.js";import"./chunk-zydg3wgt.js";import"./chunk-4fa3jec9.js";import"./chunk-exgyf65a.js";import"./chunk-r6pax860.js";import"./chunk-h9e032kq.js";import"./chunk-w1zvh5y7.js";import"./chunk-w6zz18jt.js";import"./chunk-jz7pvh7b.js";export{Yt as MODULE_SPECIFIER_PREFIX,yt as bundleClientScript,mt as clearBundleFailures,ie as clientBundleDependencies,gt as getBundleFailures,ht as hasUserImports,ja as normalizeRegistrySpecifiers,Fa as queueClientBundleBuild,Mo as recordBundleFailure,La as registryIdForPath,No as resolveBundlerFallback,Ba as rewriteRegistryImports,hu as setBundlerFallbackMode,Na as shouldLogBundlerDiagnostics,za as tempBuildName};
|
package/dist/chunk-ks35e0ze.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Dn,Va,wu,Ua,vu,Wa,On,b,vt,he,qa,Yr,Ka,xu,q,Xa,Su,x,ku}from"./chunk-zskhxkbk.js";import"./chunk-bq2e9qf6.js";import"./chunk-8xz8t9xp.js";import"./chunk-0trfbqa7.js";import"./chunk-y1hx8re2.js";import"./chunk-zydg3wgt.js";import"./chunk-4fa3jec9.js";import"./chunk-exgyf65a.js";import"./chunk-r6pax860.js";import"./chunk-h9e032kq.js";import"./chunk-w1zvh5y7.js";import"./chunk-w6zz18jt.js";import"./chunk-jz7pvh7b.js";export{Xa as applyFilters,vu as clearCustomFilters,qa as clientLoopScopes,Dn as defaultFilters,b as escapeHtml,vt as escapeHtmlValue,x as evaluateExpression,Wa as findMustacheEnd,Ua as getAllFilters,Ka as interpolateScriptAttributes,Yr as interpolateScriptExpressions,xu as interpolateScriptsInTemplate,q as processExpressions,Va as registerFilter,wu as registerFilters,On as replaceInterpolations,Su as resetRejectedExpressionWarnings,ku as unescapeHtml,he as usesSignalsInScript};
|
package/dist/chunk-m00nek1y.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{K,hs,ys,bs,n}from"./chunk-zskhxkbk.js";import"./chunk-bq2e9qf6.js";import"./chunk-8xz8t9xp.js";import"./chunk-0trfbqa7.js";import"./chunk-y1hx8re2.js";import"./chunk-zydg3wgt.js";import"./chunk-4fa3jec9.js";import"./chunk-exgyf65a.js";import"./chunk-r6pax860.js";import"./chunk-h9e032kq.js";import"./chunk-w1zvh5y7.js";import"./chunk-w6zz18jt.js";import"./chunk-jz7pvh7b.js";export{K as injectRouterScript,n as processDirectives,hs as processJsonDirective,ys as processOnceDirective,bs as validateClientScript};
|
package/dist/chunk-mp633tnh.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{d,ls,ri,si,hc,yc,bc,wc,vc,xc,Ve,L,Ue,Sc,Wn,kc,ci,Cc,We,r,qn,li,g,ee,Bu}from"./chunk-zskhxkbk.js";import"./chunk-bq2e9qf6.js";import"./chunk-8xz8t9xp.js";import"./chunk-0trfbqa7.js";import"./chunk-y1hx8re2.js";import"./chunk-zydg3wgt.js";import"./chunk-4fa3jec9.js";import"./chunk-exgyf65a.js";import"./chunk-r6pax860.js";import"./chunk-h9e032kq.js";import"./chunk-w1zvh5y7.js";import"./chunk-w6zz18jt.js";import"./chunk-jz7pvh7b.js";export{ee as clearComponentCache,Cc as componentClientSignalNames,ls as convertToCommonJS,g as createDetailedErrorMessage,vc as extractDirectiveNames,ri as extractScriptFromTemplate,d as extractVariables,r as fileExists,Bu as getComponentCacheStats,yc as getPositionInfo,L as getSharedTranspiler,li as getSourceLineInfo,wc as hasDirectives,si as hasVariables,kc as isHydrateTrigger,xc as isJavaScriptScript,We as renderComponentWithSlot,qn as resolveTemplatePath,Sc as scopeOnRootElement,Ve as shouldTranspileTypeScript,ci as slotContentHasExpressions,Ue as transpileTypeScript,Wn as userComponentFileExists,bc as validateDirective,hc as validateTemplate};
|
package/dist/chunk-n8hd5qap.js
DELETED
package/dist/chunk-nqvb9094.js
DELETED
package/dist/chunk-p0nx92aq.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{kt,us,oi,mc}from"./chunk-zskhxkbk.js";import"./chunk-bq2e9qf6.js";import"./chunk-8xz8t9xp.js";import"./chunk-0trfbqa7.js";import"./chunk-y1hx8re2.js";import"./chunk-zydg3wgt.js";import"./chunk-4fa3jec9.js";import"./chunk-exgyf65a.js";import"./chunk-r6pax860.js";import"./chunk-h9e032kq.js";import"./chunk-w1zvh5y7.js";import"./chunk-w6zz18jt.js";import"./chunk-jz7pvh7b.js";export{mc as declareBareLoopHead,kt as parseLoopBinding,oi as processLoops,us as reportDeferredLoopWarnings};
|
package/dist/chunk-ps54xqba.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{W,qr,Kr,Ha,wt,Lo,Xr,jo,bu,Ne,Gr,me}from"./chunk-zskhxkbk.js";import"./chunk-bq2e9qf6.js";import"./chunk-8xz8t9xp.js";import{mi,s}from"./chunk-y3cqh2jv.js";import"./chunk-0trfbqa7.js";import"./chunk-y1hx8re2.js";import"./chunk-zydg3wgt.js";import"./chunk-4fa3jec9.js";import"./chunk-exgyf65a.js";import"./chunk-r6pax860.js";import"./chunk-h9e032kq.js";import"./chunk-w1zvh5y7.js";import"./chunk-w6zz18jt.js";import"./chunk-jz7pvh7b.js";export{W as BROWSER_CORE_IMPORTS,Ha as STX_AUTO_IMPORTS,qr as extractAndStripCssImports,Ne as extractBridgeData,mi as findInterpolationEnd,jo as generateAutoImportDestructuring,bu as generateBrowserAutoImportDestructuring,Gr as generateServerDataBridge,wt as injectBrowserCoreAutoImports,me as processClientScript,Xr as referencesName,Kr as renderVendorStyleTags,s as stripCommentsAndLiterals,Lo as transformAutoImports};
|
package/dist/chunk-q0qd0bm4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Zl,yo,Ta,Ql,eu,tu,nu,ru,_a,Ra,su,ou,iu,au}from"./chunk-26gxw0e2.js";import"./chunk-zskhxkbk.js";import"./chunk-bq2e9qf6.js";import"./chunk-8xz8t9xp.js";import"./chunk-0trfbqa7.js";import"./chunk-y1hx8re2.js";import"./chunk-zydg3wgt.js";import"./chunk-4fa3jec9.js";import"./chunk-exgyf65a.js";import"./chunk-r6pax860.js";import"./chunk-h9e032kq.js";import"./chunk-w1zvh5y7.js";import"./chunk-w6zz18jt.js";import"./chunk-jz7pvh7b.js";export{Ta as SUSPENSE_RESOLVER_RUNTIME,yo as buildSuspenseResolveScript,ru as createStreamRenderer,tu as extractStreamBoundaries,au as generateHydrationRuntime,Ra as islandDirective,ou as processSectionDirectives,eu as processStreamDirectives,su as registerStreamingDirectives,Ql as renderStreamingPage,Zl as streamTemplate,nu as streamTemplateSimple,iu as streamToResponse,_a as streamingSuspenseDirective};
|
package/dist/chunk-q98v7bhs.js
DELETED
package/dist/chunk-qxcw9k0z.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Os,Ms,Ze,G,mn,ir,hn,ar,cr,_c,Rc,Ac,yn,Pc,Ic,Dc,Oc,Ai,Pi,Ii,Ns,Di,Mc,Qe,et,tt,nt,rt,st,Se,Nc}from"./chunk-w6zz18jt.js";export{hn as Router,Dc as abortNavigation,ir as bracketPathToRegex,Qe as clearMiddleware,Pi as createClientCookieManager,rt as createMiddlewareContext,nt as createRouteLocation,Ai as createServerCookieManager,Ii as createStorageManager,Oc as defineMiddleware,Rc as defineRoute,Ac as defineRoutes,ar as findErrorPage,cr as formatRoutes,Ms as generateRouteManifest,Os as generateRouteTypes,Di as getMiddleware,et as getMiddlewareNames,Se as getRouterScript,Nc as getRouterScriptDev,Mc as hasMiddleware,Ze as isFileRequestPath,tt as loadMiddlewareFromDirectory,mn as matchRoute,Ic as navigateTo,G as patternToRegex,Ns as registerMiddleware,Pc as resetRoutes,yn as route,st as runMiddleware,_c as setAppUrl};
|
package/dist/chunk-r61m4j2j.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Pu,Vo,Iu,Uo,Za,Qa,xt,tn,Du,ec,tc,nc,f}from"./chunk-zskhxkbk.js";import"./chunk-bq2e9qf6.js";import"./chunk-8xz8t9xp.js";import"./chunk-0trfbqa7.js";import"./chunk-y1hx8re2.js";import"./chunk-zydg3wgt.js";import"./chunk-4fa3jec9.js";import"./chunk-exgyf65a.js";import"./chunk-r6pax860.js";import"./chunk-h9e032kq.js";import"./chunk-w1zvh5y7.js";import"./chunk-w6zz18jt.js";import"./chunk-jz7pvh7b.js";export{xt as buildCss,ec as extractClassNames,Qa as fingerprintConfig,tc as generateCss,Du as getCachedCSS,Pu as getCssServeAsset,f as injectCss,Vo as loadCssEngine,Uo as loadCssEngineConfig,tn as rebuildCss,Iu as resetCssCache,Za as resolveUserCssConfig,nc as withLinkedModuleBundles};
|
package/dist/chunk-rf9hm92z.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Or,yl,bl}from"./chunk-1wtm4ayp.js";import"./chunk-jkyb1f9r.js";import"./chunk-jfps4n28.js";import"./chunk-zskhxkbk.js";import"./chunk-bq2e9qf6.js";import"./chunk-8xz8t9xp.js";import"./chunk-0trfbqa7.js";import"./chunk-y1hx8re2.js";import"./chunk-zydg3wgt.js";import"./chunk-4fa3jec9.js";import"./chunk-exgyf65a.js";import"./chunk-r6pax860.js";import"./chunk-h9e032kq.js";import"./chunk-w1zvh5y7.js";import"./chunk-w6zz18jt.js";import"./chunk-jz7pvh7b.js";export{bl as clearComposableCache,yl as getComposableScript,Or as listComposableModules};
|
package/dist/chunk-rpsjz8jd.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Xc}from"./chunk-zchtjtq9.js";import"./chunk-zskhxkbk.js";import"./chunk-bq2e9qf6.js";import"./chunk-8xz8t9xp.js";import"./chunk-0trfbqa7.js";import"./chunk-y1hx8re2.js";import"./chunk-zydg3wgt.js";import"./chunk-4fa3jec9.js";import"./chunk-exgyf65a.js";import"./chunk-r6pax860.js";import"./chunk-h9e032kq.js";import"./chunk-w1zvh5y7.js";import"./chunk-w6zz18jt.js";import"./chunk-jz7pvh7b.js";export{Xc as startInteractive};
|
package/dist/chunk-s25yesdx.js
DELETED
package/dist/chunk-t68s37hg.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ui,eo,Uc,Wi,qi,Wc,qc}from"./chunk-9r6nd1nf.js";import"./chunk-1wtm4ayp.js";import"./chunk-jkyb1f9r.js";import"./chunk-jfps4n28.js";import{ze,rc}from"./chunk-zskhxkbk.js";import"./chunk-bq2e9qf6.js";import"./chunk-8xz8t9xp.js";import"./chunk-0trfbqa7.js";import"./chunk-y1hx8re2.js";import"./chunk-zydg3wgt.js";import"./chunk-4fa3jec9.js";import"./chunk-exgyf65a.js";import"./chunk-r6pax860.js";import"./chunk-h9e032kq.js";import"./chunk-w1zvh5y7.js";import"./chunk-w6zz18jt.js";import"./chunk-jz7pvh7b.js";export{Ui as buildVirtualSource,ze as extractScriptBlocks,rc as extractTemplateExpressions,Wi as findRuntimeTypeDeclarations,qi as findStxModuleDeclarations,qc as formatTypecheckDiagnostics,Uc as sourcePathFor,Wc as typecheckStxFiles,eo as virtualPathFor};
|
package/dist/chunk-tr7dz5g5.js
DELETED
package/dist/chunk-twb35cwb.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Lu,ye,ii,ju,ds,ps,gs}from"./chunk-zskhxkbk.js";import"./chunk-bq2e9qf6.js";import"./chunk-8xz8t9xp.js";import"./chunk-0trfbqa7.js";import"./chunk-y1hx8re2.js";import"./chunk-zydg3wgt.js";import"./chunk-4fa3jec9.js";import"./chunk-exgyf65a.js";import"./chunk-r6pax860.js";import"./chunk-h9e032kq.js";import"./chunk-w1zvh5y7.js";import"./chunk-w6zz18jt.js";import"./chunk-jz7pvh7b.js";export{ju as clearOnceStore,ii as onceStore,ye as partialsCache,ds as processIncludes,ps as processStackPushDirectives,gs as processStackReplacements,Lu as resetUnscopedSignalWarnings};
|
package/dist/chunk-vrvnctex.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Jc,Yc,Zc,Qc,Xi,el,tl,nl,rl,sl,ol,il}from"./chunk-tpeyn7wr.js";export{ol as Broadcast,il as BroadcastServer,Xi as broadcast,rl as broadcastPresence,nl as broadcastPrivate,sl as channel,Jc as getBroadcastServer,Qc as loadChannels,Yc as startBroadcasting,Zc as stopBroadcasting,el as toUser,tl as toUsers};
|
package/dist/chunk-wz1bgf8q.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Gc}from"./chunk-5erw0wsr.js";import"./chunk-y15ybsg3.js";import"./chunk-6pyydsn1.js";import"./chunk-jfps4n28.js";import"./chunk-zskhxkbk.js";import"./chunk-bq2e9qf6.js";import"./chunk-8xz8t9xp.js";import"./chunk-0trfbqa7.js";import"./chunk-y1hx8re2.js";import"./chunk-zydg3wgt.js";import"./chunk-4fa3jec9.js";import"./chunk-exgyf65a.js";import"./chunk-r6pax860.js";import"./chunk-h9e032kq.js";import"./chunk-w1zvh5y7.js";import"./chunk-w6zz18jt.js";import"./chunk-jz7pvh7b.js";export{Gc as buildForProduction};
|
package/dist/chunk-xz6dfe70.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Nu,oc,os,is,Qo,ei,as,cs,Fn,ic,ti,ni,ac,He}from"./chunk-zskhxkbk.js";import"./chunk-bq2e9qf6.js";import"./chunk-8xz8t9xp.js";import"./chunk-0trfbqa7.js";import"./chunk-y1hx8re2.js";import"./chunk-zydg3wgt.js";import"./chunk-4fa3jec9.js";import"./chunk-exgyf65a.js";import"./chunk-r6pax860.js";import"./chunk-h9e032kq.js";import"./chunk-w1zvh5y7.js";import"./chunk-w6zz18jt.js";import"./chunk-jz7pvh7b.js";export{Nu as clearScriptScanCache,as as convertServerLoopAttributesToDirectives,Qo as convertSignalDirectivesToAttributes,cs as convertSignalLoopsToAttributes,ic as extractExports,ni as findMarkupIndexOutsideScripts,is as hasSignalsSyntax,os as parseLoopExpression,ei as preEvalLiteralReactiveIfs,Fn as processScriptSetup,ti as processSignals,ac as rewriteStxImportSpecifiers,oc as scanScriptTags,He as stripStxRuntimeImports};
|