@stacksjs/stx 0.2.761 → 0.2.762
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-jzajpmke.js → chunk-02c46de1.js} +19 -2
- package/dist/{chunk-64pdwfef.js → chunk-05jdq9tw.js} +4 -4
- package/dist/chunk-0cajfv7y.js +2 -0
- package/dist/{chunk-45g1w1ct.js → chunk-0sd4td6z.js} +1 -1
- package/dist/{chunk-yh5658q8.js → chunk-18chz0q4.js} +1 -1
- package/dist/{chunk-jacb7aw1.js → chunk-28vtqwxh.js} +1 -1
- package/dist/{chunk-aa1y9j3p.js → chunk-2eamszdq.js} +1 -1
- package/dist/{chunk-cgh0k52q.js → chunk-2gn6smrq.js} +1 -1
- package/dist/{chunk-yp80rx17.js → chunk-528cn6qm.js} +1 -1
- package/dist/{chunk-61qh74q1.js → chunk-59k4xb92.js} +1 -1
- package/dist/{chunk-803qm5tk.js → chunk-633a53wg.js} +1 -1
- package/dist/chunk-6b737vch.js +2 -0
- package/dist/{chunk-2wnfqrv5.js → chunk-736ex6r5.js} +1 -1
- package/dist/{chunk-ctdw7fh4.js → chunk-8czxtjwm.js} +1 -1
- package/dist/{chunk-frybxj35.js → chunk-932zx5q4.js} +4 -4
- package/dist/chunk-9fh4ah7t.js +2 -0
- package/dist/{chunk-r6yb0540.js → chunk-a222bwpc.js} +2 -2
- package/dist/chunk-a81rt2t4.js +3 -0
- package/dist/{chunk-x7q4tp3f.js → chunk-ben8bjnk.js} +1 -1
- package/dist/{chunk-wmxsaxt0.js → chunk-cenvzm5q.js} +1 -1
- package/dist/{chunk-z5xermzg.js → chunk-d49pst1m.js} +1 -1
- package/dist/{chunk-8vs5y4h7.js → chunk-d96xddt9.js} +1 -1
- package/dist/chunk-dj0qy19b.js +2 -0
- package/dist/{chunk-wghtdgwj.js → chunk-dvpk4c1y.js} +1 -1
- package/dist/{chunk-fys1patf.js → chunk-ebxncrd8.js} +1 -1
- package/dist/{chunk-vv8dn70r.js → chunk-edhxg3rz.js} +2 -2
- package/dist/{chunk-qx0np0hy.js → chunk-epa73jvs.js} +1 -1
- package/dist/{chunk-yjzk7rwt.js → chunk-fhpsf4z7.js} +3 -3
- package/dist/chunk-fht1zs1r.js +2 -0
- package/dist/chunk-fmk9hjht.js +2 -0
- package/dist/{chunk-yhbsvf65.js → chunk-gwjh981q.js} +4 -4
- package/dist/{chunk-jn78c13y.js → chunk-j1tsda22.js} +1 -1
- package/dist/{chunk-emhbj3xd.js → chunk-j1z7tgdp.js} +1 -1
- package/dist/{chunk-7z2mebp5.js → chunk-k469ym7a.js} +1 -1
- package/dist/{chunk-wycrtkw4.js → chunk-k9wr8xf5.js} +1 -1
- package/dist/{chunk-wk8y89q2.js → chunk-m3z13f59.js} +1 -1
- package/dist/{chunk-0q5dm9r2.js → chunk-m6rzsbas.js} +2 -2
- package/dist/{chunk-p88yh4wt.js → chunk-mbe4gqd3.js} +1 -1
- package/dist/{chunk-1a9h6r9f.js → chunk-mdw96yhg.js} +1 -1
- package/dist/{chunk-qyzjkvme.js → chunk-nm9tnxnw.js} +2 -2
- package/dist/{chunk-wq1vs94k.js → chunk-p2se8s6r.js} +1 -1
- package/dist/{chunk-18gazs55.js → chunk-p7zrz0wb.js} +1 -1
- package/dist/chunk-pdnyfk2v.js +2 -0
- package/dist/{chunk-nm2r4se1.js → chunk-qfhjtz2q.js} +1 -1
- package/dist/{chunk-fke4s0kk.js → chunk-qjbcp3tc.js} +1 -1
- package/dist/{chunk-7y1rpd4g.js → chunk-rd33qkfs.js} +2 -2
- package/dist/{chunk-9nhyq39s.js → chunk-rj3p5fdy.js} +1 -1
- package/dist/{chunk-6fz2n9w6.js → chunk-rmk8efc3.js} +5 -5
- package/dist/{chunk-qm3jbse5.js → chunk-rnvrtcz6.js} +1 -1
- package/dist/{chunk-kj9m0vc6.js → chunk-rqd6b2nc.js} +1 -1
- package/dist/{chunk-4c0qcjac.js → chunk-rxm1mjkb.js} +1 -1
- package/dist/{chunk-g9efdc5v.js → chunk-s36cpnxa.js} +1 -1
- package/dist/{chunk-23t9anc0.js → chunk-t1shvfhm.js} +4 -4
- package/dist/{chunk-x1q7b7jg.js → chunk-vttx66q0.js} +1 -1
- package/dist/chunk-vxs07119.js +2 -0
- package/dist/chunk-x8hz5gzb.js +2 -0
- package/dist/{chunk-8jh2b5k2.js → chunk-xfdtym3s.js} +1 -1
- package/dist/{chunk-bjhesw78.js → chunk-xgnmgjpv.js} +1 -1
- package/dist/{chunk-98t1cv8x.js → chunk-xtwc2dbk.js} +1 -1
- package/dist/{chunk-2cbd1ew6.js → chunk-y4mp1rra.js} +6 -6
- package/dist/chunk-y8pftjg8.js +12 -0
- package/dist/{chunk-4rxmxc1p.js → chunk-yb71b2d6.js} +1 -1
- package/dist/{chunk-w512gnft.js → chunk-ycttwgpg.js} +1 -1
- package/dist/chunk-yd6x9226.js +2 -0
- package/dist/{chunk-vvs28yqw.js → chunk-yk456jp4.js} +2 -2
- package/dist/{chunk-r13fwtas.js → chunk-zpjdp0he.js} +1 -1
- package/dist/cli.js +8 -8
- package/dist/client/signals-hydration-audit-runtime.js +2 -0
- package/dist/client/signals-process-element-runtime.js +17 -2
- package/dist/composables/index.d.ts +3 -0
- package/dist/composables/index.js +1 -0
- package/dist/composables/use-completion.d.ts +29 -0
- package/dist/composables/use-completion.js +125 -0
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/pwa.js +1 -1
- package/dist/ssg.js +2 -2
- package/dist/unresolved-identifiers.js +1 -0
- package/package.json +5 -5
- package/dist/chunk-0nynnmya.js +0 -2
- package/dist/chunk-5fg8hqq0.js +0 -2
- package/dist/chunk-7fwcnech.js +0 -2
- package/dist/chunk-927ta2dn.js +0 -2
- package/dist/chunk-c5tkxjb0.js +0 -2
- package/dist/chunk-e5vn76f5.js +0 -2
- package/dist/chunk-gpvfswgj.js +0 -2
- package/dist/chunk-kdqnest3.js +0 -2
- package/dist/chunk-krsg6dgz.js +0 -3
- package/dist/chunk-p2j38381.js +0 -2
- package/dist/chunk-ttqs99jj.js +0 -12
- package/dist/chunk-y5emxzbt.js +0 -2
|
@@ -4505,6 +4505,8 @@ catch (e) {
|
|
|
4505
4505
|
// missing String#indexOf method.
|
|
4506
4506
|
var text = node.nodeValue == null ? '' : String(node.nodeValue);
|
|
4507
4507
|
if (text.indexOf('{{') === -1 || text.indexOf('}}') === -1) continue;
|
|
4508
|
+
// Text a binding wrote is data and may legitimately hold braces.
|
|
4509
|
+
if (typeof isInertContent === 'function' && isInertContent(node)) continue;
|
|
4508
4510
|
if (auditSkipped(node)) continue;
|
|
4509
4511
|
found.push(text.trim().slice(0, 80));
|
|
4510
4512
|
if (found.length >= 5) break;
|
|
@@ -7481,7 +7483,13 @@ else {
|
|
|
7481
7483
|
|
|
7482
7484
|
return value;
|
|
7483
7485
|
}
|
|
7484
|
-
`;function tt(e,s,i){return` //
|
|
7486
|
+
`;function tt(e,s,i){return` // True for text a binding wrote, or markup :html injected: data, never
|
|
7487
|
+
// template. Checked only for text that holds braces, so the climb is rare.
|
|
7488
|
+
function isInertContent(node) {
|
|
7489
|
+
for (var n = node; n; n = n.parentNode) if (n.__stx_inert_content) return true;
|
|
7490
|
+
return false;
|
|
7491
|
+
}
|
|
7492
|
+
// skipChildren: this element's bindings only, because something else already
|
|
7485
7493
|
// knows where the rest are. The manifest path passes it for every entry, so
|
|
7486
7494
|
// the tree is never walked; see processFromManifest.
|
|
7487
7495
|
function processElement(el, scope = componentScope, skipChildren) {
|
|
@@ -7547,6 +7555,10 @@ else {
|
|
|
7547
7555
|
// implementations and user-created nodes can retain a numeric value
|
|
7548
7556
|
// assigned by a binding. Normalize before interpolation detection.
|
|
7549
7557
|
const text = el.textContent == null ? '' : String(el.textContent);
|
|
7558
|
+
// Text a binding wrote is data, never template: the scan below only
|
|
7559
|
+
// reads what the author wrote. A binding marks the element (or text node)
|
|
7560
|
+
// that owns its output, so a later pass over the same tree skips it.
|
|
7561
|
+
if (text && text.includes('{{') && isInertContent(el)) return;
|
|
7550
7562
|
if (text && text.includes('{{')) {
|
|
7551
7563
|
const parts = text.split(/(\\{\\{[\\s\\S]+?\\}\\})/g);
|
|
7552
7564
|
if (parts.length > 1) {
|
|
@@ -7573,6 +7585,7 @@ else {
|
|
|
7573
7585
|
const bindingNode = isTextOnlyParent
|
|
7574
7586
|
? document.createTextNode('')
|
|
7575
7587
|
: document.createElement('span');
|
|
7588
|
+
bindingNode.__stx_inert_content = true;
|
|
7576
7589
|
fragment.appendChild(bindingNode);
|
|
7577
7590
|
// Use captured scope, not dynamic lookup
|
|
7578
7591
|
effect(() => {
|
|
@@ -7962,12 +7975,16 @@ else if (name === '@style' || name === ':style' || name === 'x-style') {
|
|
|
7962
7975
|
el.removeAttribute(name);
|
|
7963
7976
|
}
|
|
7964
7977
|
else if (name === '@text' || name === ':text' || name === 'x-text') {
|
|
7978
|
+
el.__stx_inert_content = true;
|
|
7965
7979
|
effect(() => {
|
|
7966
7980
|
stxHost.setText(el, evalAttrExpr(value));
|
|
7967
7981
|
});
|
|
7968
7982
|
el.removeAttribute(name);
|
|
7969
7983
|
}
|
|
7970
7984
|
else if (name === '@html' || name === ':html' || name === 'x-html') {
|
|
7985
|
+
// Injected markup is data: nothing in it is a binding, so the child
|
|
7986
|
+
// walk below must not read its text or attributes as template syntax.
|
|
7987
|
+
el.__stx_inert_content = true;
|
|
7971
7988
|
effect(() => {
|
|
7972
7989
|
// Coerce null/undefined to '' so a missing/unresolved binding renders
|
|
7973
7990
|
// nothing rather than the literal string "undefined" (#1767).
|
|
@@ -8182,7 +8199,7 @@ catch (e) {
|
|
|
8182
8199
|
|
|
8183
8200
|
// Process children (skip script/style elements \u2014 their text content is not template markup)
|
|
8184
8201
|
// Skip elements that are roots of nested stx.mount() components \u2014 those have their own scope
|
|
8185
|
-
if (!skipChildren && el.tagName !== 'SCRIPT' && el.tagName !== 'STYLE') {
|
|
8202
|
+
if (!skipChildren && !el.__stx_inert_content && el.tagName !== 'SCRIPT' && el.tagName !== 'STYLE') {
|
|
8186
8203
|
var children = Array.from(el.childNodes);
|
|
8187
8204
|
children.forEach(function(child) {
|
|
8188
8205
|
if (child.nodeType !== Node.ELEMENT_NODE) { processElement(child, scope); return; }
|