@threadlabs/looma 0.2.11 → 0.2.13

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.
@@ -2374,7 +2374,10 @@ ${o}
2374
2374
  }), [d];
2375
2375
  }
2376
2376
  function Rn(e, t, n, r, i, o) {
2377
- if (e.flow?.kind === "if" || e.flow?.kind === "each" || e.flow?.kind === "with" || e.flow?.kind === "match") return hi(e, t, n, r, i);
2377
+ if (e.flow?.kind === "if" || e.flow?.kind === "each" || e.flow?.kind === "with" || e.flow?.kind === "match") {
2378
+ if (i.committed && i.root?.getAttribute("data-looma-managed") === "framework" && o !== void 0) return [o];
2379
+ return hi(e, t, n, r, i);
2380
+ }
2378
2381
  let a = [];
2379
2382
  for (let s of mi(e.flow, t)) a.push(...ve(e, s, n, r, i, o));
2380
2383
  return a;
@@ -2674,10 +2677,10 @@ ${o}
2674
2677
  let r = e.ownerDocument, i = ke(r), o = i.definitions.get(t.contract.tag);
2675
2678
  if (o === void 0 ? ze(i, t.contract.tag, { definition: t, style: void 0 }) : JSON.stringify(o.definition) !== JSON.stringify(t) && y("HR001", `More than one definition declares <${t.contract.tag}>.`), J(e) === void 0) {
2676
2679
  let c = [], l = (m, f) => {
2677
- let k2 = f.children.find((w) => w.kind === "slot")?.name ?? "", p = f.children.filter((w) => w.kind === "text").map((w) => w.value), h = 0, v = f.children.filter((w) => w.kind === "element"), S = 0;
2680
+ let q2 = f.children.find((w) => w.kind === "slot"), k2 = q2?.name ?? "", p = f.children.filter((w) => w.kind === "text").map((w) => w.value), h = 0, v = f.children.filter((w) => w.kind === "element"), S = 0;
2678
2681
  for (let w of Array.from(m.childNodes)) {
2679
2682
  if (w instanceof Element) {
2680
- if (!(w.getAttribute("data-component")?.split(/\s+/) ?? []).includes(t.contract.tag)) w.__loomaFrameworkSlot = k2, Ve(w), c.push(w);
2683
+ if (!(w.getAttribute("data-component")?.split(/\s+/) ?? []).includes(t.contract.tag)) w.__loomaFrameworkSlot = w.getAttribute("data-looma-framework-slot") ?? k2, Ve(w), c.push(w);
2681
2684
  else {
2682
2685
  for (; S < v.length && v[S].name !== w.localName; ) S += 1;
2683
2686
  let b = v[S++];
@@ -2685,7 +2688,7 @@ ${o}
2685
2688
  }
2686
2689
  continue;
2687
2690
  }
2688
- if (w instanceof Comment) {
2691
+ if (w instanceof Comment && q2 !== void 0) {
2689
2692
  w.__loomaFrameworkSlot = k2, c.push(w);
2690
2693
  continue;
2691
2694
  }
@@ -2402,7 +2402,10 @@ ${o}
2402
2402
  }), [d];
2403
2403
  }
2404
2404
  function Rn(e, t, n, r, i, o) {
2405
- if (e.flow?.kind === "if" || e.flow?.kind === "each" || e.flow?.kind === "with" || e.flow?.kind === "match") return hi(e, t, n, r, i);
2405
+ if (e.flow?.kind === "if" || e.flow?.kind === "each" || e.flow?.kind === "with" || e.flow?.kind === "match") {
2406
+ if (i.committed && i.root?.getAttribute("data-looma-managed") === "framework" && o !== void 0) return [o];
2407
+ return hi(e, t, n, r, i);
2408
+ }
2406
2409
  let a = [];
2407
2410
  for (let s of mi(e.flow, t)) a.push(...ve(e, s, n, r, i, o));
2408
2411
  return a;
@@ -2702,10 +2705,10 @@ ${o}
2702
2705
  let r = e.ownerDocument, i = ke(r), o = i.definitions.get(t.contract.tag);
2703
2706
  if (o === void 0 ? ze(i, t.contract.tag, { definition: t, style: void 0 }) : JSON.stringify(o.definition) !== JSON.stringify(t) && y("HR001", `More than one definition declares <${t.contract.tag}>.`), J(e) === void 0) {
2704
2707
  let c = [], l = (m, f) => {
2705
- let k2 = f.children.find((w) => w.kind === "slot")?.name ?? "", p = f.children.filter((w) => w.kind === "text").map((w) => w.value), h = 0, v = f.children.filter((w) => w.kind === "element"), S = 0;
2708
+ let q2 = f.children.find((w) => w.kind === "slot"), k2 = q2?.name ?? "", p = f.children.filter((w) => w.kind === "text").map((w) => w.value), h = 0, v = f.children.filter((w) => w.kind === "element"), S = 0;
2706
2709
  for (let w of Array.from(m.childNodes)) {
2707
2710
  if (w instanceof Element) {
2708
- if (!(w.getAttribute("data-component")?.split(/\s+/) ?? []).includes(t.contract.tag)) w.__loomaFrameworkSlot = k2, Ve(w), c.push(w);
2711
+ if (!(w.getAttribute("data-component")?.split(/\s+/) ?? []).includes(t.contract.tag)) w.__loomaFrameworkSlot = w.getAttribute("data-looma-framework-slot") ?? k2, Ve(w), c.push(w);
2709
2712
  else {
2710
2713
  for (; S < v.length && v[S].name !== w.localName; ) S += 1;
2711
2714
  let b = v[S++];
@@ -2713,7 +2716,7 @@ ${o}
2713
2716
  }
2714
2717
  continue;
2715
2718
  }
2716
- if (w instanceof Comment) {
2719
+ if (w instanceof Comment && q2 !== void 0) {
2717
2720
  w.__loomaFrameworkSlot = k2, c.push(w);
2718
2721
  continue;
2719
2722
  }
@@ -3,7 +3,7 @@ import {
3
3
  controllerFor,
4
4
  manageComponentLifecycle,
5
5
  registerLoomaPackage
6
- } from "./chunk-ZR4QVFFS.js";
6
+ } from "./chunk-KW2YPKIP.js";
7
7
  import "./chunk-MLKGABMK.js";
8
8
  export {
9
9
  attachLoomaComponent,
package/dist/index.cjs CHANGED
@@ -7166,7 +7166,10 @@ ${o}
7166
7166
  }), [d];
7167
7167
  }
7168
7168
  function Rn(e, t, n, r, i, o) {
7169
- if (e.flow?.kind === "if" || e.flow?.kind === "each" || e.flow?.kind === "with" || e.flow?.kind === "match") return hi(e, t, n, r, i);
7169
+ if (e.flow?.kind === "if" || e.flow?.kind === "each" || e.flow?.kind === "with" || e.flow?.kind === "match") {
7170
+ if (i.committed && i.root?.getAttribute("data-looma-managed") === "framework" && o !== void 0) return [o];
7171
+ return hi(e, t, n, r, i);
7172
+ }
7170
7173
  let a = [];
7171
7174
  for (let s of mi(e.flow, t)) a.push(...ve(e, s, n, r, i, o));
7172
7175
  return a;
@@ -7466,10 +7469,10 @@ ${o}
7466
7469
  let r = e.ownerDocument, i = ke(r), o = i.definitions.get(t.contract.tag);
7467
7470
  if (o === void 0 ? ze(i, t.contract.tag, { definition: t, style: void 0 }) : JSON.stringify(o.definition) !== JSON.stringify(t) && y("HR001", `More than one definition declares <${t.contract.tag}>.`), J(e) === void 0) {
7468
7471
  let c = [], l = (m, f) => {
7469
- let k2 = f.children.find((w) => w.kind === "slot")?.name ?? "", p = f.children.filter((w) => w.kind === "text").map((w) => w.value), h = 0, v = f.children.filter((w) => w.kind === "element"), S = 0;
7472
+ let q2 = f.children.find((w) => w.kind === "slot"), k2 = q2?.name ?? "", p = f.children.filter((w) => w.kind === "text").map((w) => w.value), h = 0, v = f.children.filter((w) => w.kind === "element"), S = 0;
7470
7473
  for (let w of Array.from(m.childNodes)) {
7471
7474
  if (w instanceof Element) {
7472
- if (!(w.getAttribute("data-component")?.split(/\s+/) ?? []).includes(t.contract.tag)) w.__loomaFrameworkSlot = k2, Ve(w), c.push(w);
7475
+ if (!(w.getAttribute("data-component")?.split(/\s+/) ?? []).includes(t.contract.tag)) w.__loomaFrameworkSlot = w.getAttribute("data-looma-framework-slot") ?? k2, Ve(w), c.push(w);
7473
7476
  else {
7474
7477
  for (; S < v.length && v[S].name !== w.localName; ) S += 1;
7475
7478
  let b = v[S++];
@@ -7477,7 +7480,7 @@ ${o}
7477
7480
  }
7478
7481
  continue;
7479
7482
  }
7480
- if (w instanceof Comment) {
7483
+ if (w instanceof Comment && q2 !== void 0) {
7481
7484
  w.__loomaFrameworkSlot = k2, c.push(w);
7482
7485
  continue;
7483
7486
  }
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  controllerFor,
8
8
  manageComponentLifecycle,
9
9
  registerLoomaPackage
10
- } from "./chunk-ZR4QVFFS.js";
10
+ } from "./chunk-KW2YPKIP.js";
11
11
  import "./chunk-MLKGABMK.js";
12
12
 
13
13
  // src/input-modality.ts
package/dist/loader.cjs CHANGED
@@ -7142,7 +7142,10 @@ ${o}
7142
7142
  }), [d];
7143
7143
  }
7144
7144
  function Rn(e, t, n, r, i, o) {
7145
- if (e.flow?.kind === "if" || e.flow?.kind === "each" || e.flow?.kind === "with" || e.flow?.kind === "match") return hi(e, t, n, r, i);
7145
+ if (e.flow?.kind === "if" || e.flow?.kind === "each" || e.flow?.kind === "with" || e.flow?.kind === "match") {
7146
+ if (i.committed && i.root?.getAttribute("data-looma-managed") === "framework" && o !== void 0) return [o];
7147
+ return hi(e, t, n, r, i);
7148
+ }
7146
7149
  let a = [];
7147
7150
  for (let s of mi(e.flow, t)) a.push(...ve(e, s, n, r, i, o));
7148
7151
  return a;
@@ -7442,10 +7445,10 @@ ${o}
7442
7445
  let r = e.ownerDocument, i = ke(r), o = i.definitions.get(t.contract.tag);
7443
7446
  if (o === void 0 ? ze(i, t.contract.tag, { definition: t, style: void 0 }) : JSON.stringify(o.definition) !== JSON.stringify(t) && y("HR001", `More than one definition declares <${t.contract.tag}>.`), J(e) === void 0) {
7444
7447
  let c = [], l = (m, f) => {
7445
- let k2 = f.children.find((w) => w.kind === "slot")?.name ?? "", p = f.children.filter((w) => w.kind === "text").map((w) => w.value), h = 0, v = f.children.filter((w) => w.kind === "element"), S = 0;
7448
+ let q2 = f.children.find((w) => w.kind === "slot"), k2 = q2?.name ?? "", p = f.children.filter((w) => w.kind === "text").map((w) => w.value), h = 0, v = f.children.filter((w) => w.kind === "element"), S = 0;
7446
7449
  for (let w of Array.from(m.childNodes)) {
7447
7450
  if (w instanceof Element) {
7448
- if (!(w.getAttribute("data-component")?.split(/\s+/) ?? []).includes(t.contract.tag)) w.__loomaFrameworkSlot = k2, Ve(w), c.push(w);
7451
+ if (!(w.getAttribute("data-component")?.split(/\s+/) ?? []).includes(t.contract.tag)) w.__loomaFrameworkSlot = w.getAttribute("data-looma-framework-slot") ?? k2, Ve(w), c.push(w);
7449
7452
  else {
7450
7453
  for (; S < v.length && v[S].name !== w.localName; ) S += 1;
7451
7454
  let b = v[S++];
@@ -7453,7 +7456,7 @@ ${o}
7453
7456
  }
7454
7457
  continue;
7455
7458
  }
7456
- if (w instanceof Comment) {
7459
+ if (w instanceof Comment && q2 !== void 0) {
7457
7460
  w.__loomaFrameworkSlot = k2, c.push(w);
7458
7461
  continue;
7459
7462
  }
package/dist/loader.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-A5MSXQ7Y.js";
5
5
  import {
6
6
  registerLoomaPackage
7
- } from "./chunk-ZR4QVFFS.js";
7
+ } from "./chunk-KW2YPKIP.js";
8
8
  import "./chunk-MLKGABMK.js";
9
9
 
10
10
  // src/loader.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@threadlabs/looma",
3
- "version": "0.2.11",
3
+ "version": "0.2.13",
4
4
  "type": "module",
5
5
  "description": "Looma declarative components, responsive layout primitives, a complete editor, and supported Vue adapters.",
6
6
  "license": "MIT",