@threadlabs/looma 0.53.5 → 0.53.7

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/docs/catalog.json CHANGED
@@ -780,7 +780,7 @@
780
780
  ],
781
781
  "schemaVersion": 1,
782
782
  "package": "@threadlabs/looma",
783
- "version": "0.53.5",
783
+ "version": "0.53.7",
784
784
  "groups": [
785
785
  {
786
786
  "id": "layout",
@@ -11425,6 +11425,7 @@ function toNode(node, path, context) {
11425
11425
  "loomaReference",
11426
11426
  "loomaChip",
11427
11427
  "loomaFootnoteReference",
11428
+ "loomaInlineImage",
11428
11429
  "hardBreak"
11429
11430
  ].includes(node.type ?? "")) fail(path, "marks on a block node");
11430
11431
  for (const mark of [...node.marks ?? []].reverse()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@threadlabs/looma",
3
- "version": "0.53.5",
3
+ "version": "0.53.7",
4
4
  "type": "module",
5
5
  "description": "HTML Next UI components, native DOM support and design tokens.",
6
6
  "license": "MIT",
@@ -876,56 +876,59 @@ export function createUiEditor(options = {}, html) {
876
876
  const x0 = "-1";
877
877
  const s1 = toAttribute(x0, "tabindex");
878
878
  writeAttribute(r.n, "tabindex", r.v1 = s1);
879
- const x1 = textCall("concat", ["looma-editor", (truthy(v[5]) ? "" : " looma-editor--readonly"), (truthy(readMember(v[0], "dragOver")) ? " looma-editor--drag-over" : "")]);
880
- if (x1 !== NONCONFORMING) r.g2 = x1;
881
- if (r.g2 !== NONCONFORMING) {
882
- const s2 = toAttribute(r.g2, "class");
883
- writeAttribute(r.n, "class", r.v2 = s2);
884
- }
879
+ const x1 = true;
880
+ const s2 = x1;
881
+ r.n.classList.toggle("looma-editor", r.v2 = s2);
882
+ const x2 = !truthy(v[5]);
883
+ const s3 = x2;
884
+ r.n.classList.toggle("looma-editor--readonly", r.v3 = s3);
885
+ const x3 = readMember(v[0], "dragOver");
886
+ const s4 = truthy(x3);
887
+ r.n.classList.toggle("looma-editor--drag-over", r.v4 = s4);
885
888
  }
886
889
  if (c & 1073741825) {
887
- const x2 = readMember(v[0], "density");
888
- const s3 = toAttribute(x2, "density");
889
- if (s3 !== r.v3) writeAttribute(r.a7, "density", r.v3 = s3);
890
- const x3 = readMember(readMember(v[0], "chip"), "open");
891
- const s5 = toAttribute(x3, "open");
892
- if (s5 !== r.v5) writeAttribute(r.a19, "open", r.v5 = s5);
893
- const x4 = readMember(v[0], "chipAnchorId");
894
- const s6 = toAttribute(x4, "for");
895
- if (s6 !== r.v6) writeAttribute(r.a19, "for", r.v6 = s6);
896
- const x5 = readMember(readMember(v[0], "chip"), "label");
897
- const s7 = toAttribute(x5, "label");
898
- if (s7 !== r.v7) writeAttribute(r.a20, "label", r.v7 = s7);
899
- const x6 = readMember(readMember(v[0], "chip"), "color");
900
- const s8 = toAttribute(x6, "color");
901
- if (s8 !== r.v8) writeAttribute(r.a20, "color", r.v8 = s8);
902
- const x7 = readMember(v[0], "linkOpen");
903
- const s9 = toAttribute(x7, "open");
904
- if (s9 !== r.v9) writeAttribute(r.a23, "open", r.v9 = s9);
905
- const x8 = readMember(v[0], "linkAnchorId");
906
- const s10 = toAttribute(x8, "for");
907
- if (s10 !== r.v10) writeAttribute(r.a23, "for", r.v10 = s10);
908
- const x9 = readMember(v[0], "placement");
909
- const s11 = toAttribute(x9, "placement");
910
- if (s11 !== r.v11) writeAttribute(r.a23, "placement", r.v11 = s11);
911
- const x10 = readMember(v[0], "blockActionAnchorId");
890
+ const x4 = readMember(v[0], "density");
891
+ const s5 = toAttribute(x4, "density");
892
+ if (s5 !== r.v5) writeAttribute(r.a7, "density", r.v5 = s5);
893
+ const x5 = readMember(readMember(v[0], "chip"), "open");
894
+ const s7 = toAttribute(x5, "open");
895
+ if (s7 !== r.v7) writeAttribute(r.a19, "open", r.v7 = s7);
896
+ const x6 = readMember(v[0], "chipAnchorId");
897
+ const s8 = toAttribute(x6, "for");
898
+ if (s8 !== r.v8) writeAttribute(r.a19, "for", r.v8 = s8);
899
+ const x7 = readMember(readMember(v[0], "chip"), "label");
900
+ const s9 = toAttribute(x7, "label");
901
+ if (s9 !== r.v9) writeAttribute(r.a20, "label", r.v9 = s9);
902
+ const x8 = readMember(readMember(v[0], "chip"), "color");
903
+ const s10 = toAttribute(x8, "color");
904
+ if (s10 !== r.v10) writeAttribute(r.a20, "color", r.v10 = s10);
905
+ const x9 = readMember(v[0], "linkOpen");
906
+ const s11 = toAttribute(x9, "open");
907
+ if (s11 !== r.v11) writeAttribute(r.a23, "open", r.v11 = s11);
908
+ const x10 = readMember(v[0], "linkAnchorId");
912
909
  const s12 = toAttribute(x10, "for");
913
- if (s12 !== r.v12) writeAttribute(r.a26, "for", r.v12 = s12);
914
- const s13 = toAttribute(x9, "placement");
915
- if (s13 !== r.v13) writeAttribute(r.a26, "placement", r.v13 = s13);
916
- const x11 = readMember(v[0], "tablePickerOpen");
917
- const s14 = toAttribute(x11, "open");
918
- if (s14 !== r.v14) writeAttribute(r.a27, "open", r.v14 = s14);
919
- const x12 = readMember(v[0], "tablePickerAnchorId");
920
- const s15 = toAttribute(x12, "for");
921
- if (s15 !== r.v15) writeAttribute(r.a27, "for", r.v15 = s15);
922
- const s16 = toAttribute(x9, "placement");
923
- if (s16 !== r.v16) writeAttribute(r.a27, "placement", r.v16 = s16);
910
+ if (s12 !== r.v12) writeAttribute(r.a23, "for", r.v12 = s12);
911
+ const x11 = readMember(v[0], "placement");
912
+ const s13 = toAttribute(x11, "placement");
913
+ if (s13 !== r.v13) writeAttribute(r.a23, "placement", r.v13 = s13);
914
+ const x12 = readMember(v[0], "blockActionAnchorId");
915
+ const s14 = toAttribute(x12, "for");
916
+ if (s14 !== r.v14) writeAttribute(r.a26, "for", r.v14 = s14);
917
+ const s15 = toAttribute(x11, "placement");
918
+ if (s15 !== r.v15) writeAttribute(r.a26, "placement", r.v15 = s15);
919
+ const x13 = readMember(v[0], "tablePickerOpen");
920
+ const s16 = toAttribute(x13, "open");
921
+ if (s16 !== r.v16) writeAttribute(r.a27, "open", r.v16 = s16);
922
+ const x14 = readMember(v[0], "tablePickerAnchorId");
923
+ const s17 = toAttribute(x14, "for");
924
+ if (s17 !== r.v17) writeAttribute(r.a27, "for", r.v17 = s17);
925
+ const s18 = toAttribute(x11, "placement");
926
+ if (s18 !== r.v18) writeAttribute(r.a27, "placement", r.v18 = s18);
924
927
  }
925
928
  if (c === -1) {
926
- const x13 = true;
927
- const s4 = toAttribute(x13, "multiple");
928
- if (s4 !== r.v4) writeAttribute(r.a12, "multiple", r.v4 = s4);
929
+ const x15 = true;
930
+ const s6 = toAttribute(x15, "multiple");
931
+ if (s6 !== r.v6) writeAttribute(r.a12, "multiple", r.v6 = s6);
929
932
  }
930
933
  if (c & 1073741825 && !(truthy(readMember(v[0], "resizeHintFor"))) !== !r.b0) {
931
934
  if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
@@ -1053,7 +1056,7 @@ export function createUiEditor(options = {}, html) {
1053
1056
  const t30 = t29.nextSibling.nextSibling.nextSibling;
1054
1057
  const t31 = t30.nextSibling.nextSibling.nextSibling;
1055
1058
  const t32 = t31.nextSibling.nextSibling.nextSibling;
1056
- const R = { n: element, a7: t6, a12: t11, a19: t18, a20: t19, a23: t22, a26: t25, a27: t26, v0: undefined, v1: undefined, v2: undefined, g2: NONCONFORMING, v3: null, v4: null, v5: null, v6: null, v7: null, v8: null, v9: null, v10: null, v11: null, v12: null, v13: null, v14: null, v15: null, v16: null, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t1, e1: t1.nextSibling, b1: undefined, a3: t2, e2: t2.nextSibling, b2: undefined, a4: t3, e3: t3.nextSibling, b3: undefined, a5: t4, e4: t4.nextSibling, b4: undefined, a6: t5, e5: t5.nextSibling, b5: undefined, a8: t7, e6: t7.nextSibling, b6: undefined, a10: t9, e7: t9.nextSibling, b7: undefined, a11: t10, e8: t10.nextSibling, b8: undefined, a14: t13, e9: t13.nextSibling, b9: undefined, a15: t14, e10: t14.nextSibling, b10: undefined, a16: t15, e11: t15.nextSibling, b11: undefined, a17: t16, e12: t16.nextSibling, b12: undefined, a18: t17, e13: t17.nextSibling, b13: undefined, a21: t20, e14: t20.nextSibling, b14: undefined, a22: t21, e15: t21.nextSibling, b15: undefined, a24: t23, e16: t23.nextSibling, b16: undefined, a25: t24, e17: t24.nextSibling, b17: undefined, a29: t28, e18: t28.nextSibling, b18: undefined, a30: t29, e19: t29.nextSibling, b19: undefined, a31: t30, e20: t30.nextSibling, b20: undefined, a32: t31, e21: t31.nextSibling, b21: undefined, a33: t32, e22: t32.nextSibling, b22: undefined };
1059
+ const R = { n: element, a7: t6, a12: t11, a19: t18, a20: t19, a23: t22, a26: t25, a27: t26, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: null, v6: null, v7: null, v8: null, v9: null, v10: null, v11: null, v12: null, v13: null, v14: null, v15: null, v16: null, v17: null, v18: null, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t1, e1: t1.nextSibling, b1: undefined, a3: t2, e2: t2.nextSibling, b2: undefined, a4: t3, e3: t3.nextSibling, b3: undefined, a5: t4, e4: t4.nextSibling, b4: undefined, a6: t5, e5: t5.nextSibling, b5: undefined, a8: t7, e6: t7.nextSibling, b6: undefined, a10: t9, e7: t9.nextSibling, b7: undefined, a11: t10, e8: t10.nextSibling, b8: undefined, a14: t13, e9: t13.nextSibling, b9: undefined, a15: t14, e10: t14.nextSibling, b10: undefined, a16: t15, e11: t15.nextSibling, b11: undefined, a17: t16, e12: t16.nextSibling, b12: undefined, a18: t17, e13: t17.nextSibling, b13: undefined, a21: t20, e14: t20.nextSibling, b14: undefined, a22: t21, e15: t21.nextSibling, b15: undefined, a24: t23, e16: t23.nextSibling, b16: undefined, a25: t24, e17: t24.nextSibling, b17: undefined, a29: t28, e18: t28.nextSibling, b18: undefined, a30: t29, e19: t29.nextSibling, b19: undefined, a31: t30, e20: t30.nextSibling, b20: undefined, a32: t31, e21: t31.nextSibling, b21: undefined, a33: t32, e22: t32.nextSibling, b22: undefined };
1057
1060
  const I = { B };
1058
1061
  const J = project(I, children, slots);
1059
1062
  I.R = new Set();