@ixo/editor 7.5.2 → 7.6.0

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.
Files changed (37) hide show
  1. package/dist/{CollectionLifecycleFlowDetail-2SRQUN4V.js → CollectionLifecycleFlowDetail-UL2HCPDI.js} +3 -6
  2. package/dist/CollectionLifecycleFlowDetail-UL2HCPDI.js.map +1 -0
  3. package/dist/{EvalEngineFlowDetail-FQAX4PJ5.js → EvalEngineFlowDetail-JTZWOUTV.js} +3 -6
  4. package/dist/EvalEngineFlowDetail-JTZWOUTV.js.map +1 -0
  5. package/dist/{chunk-5JEXVSJG.js → chunk-2SKTQGH5.js} +2 -2
  6. package/dist/chunk-H3UJUFQJ.js +344 -0
  7. package/dist/chunk-H3UJUFQJ.js.map +1 -0
  8. package/dist/{chunk-6S3WBLXO.js → chunk-KKTYO345.js} +2641 -2098
  9. package/dist/chunk-KKTYO345.js.map +1 -0
  10. package/dist/{chunk-FYPDR7DJ.js → chunk-QHZMBOXS.js} +13 -9
  11. package/dist/chunk-QHZMBOXS.js.map +1 -0
  12. package/dist/{connections-Cs5-9hGz.d.ts → connections-o7kw2vBI.d.ts} +1 -1
  13. package/dist/core/index.cjs +566 -215
  14. package/dist/core/index.cjs.map +1 -1
  15. package/dist/core/index.d.ts +9 -7
  16. package/dist/core/index.js +16 -2
  17. package/dist/core/index.js.map +1 -1
  18. package/dist/graphql-client-D7Mnaei-.d.ts +536 -0
  19. package/dist/index-D99iLwsk.d.ts +112 -0
  20. package/dist/index.d.ts +4 -4
  21. package/dist/index.js +3 -3
  22. package/dist/mantine/index.d.ts +98 -105
  23. package/dist/mantine/index.js +54 -249
  24. package/dist/mantine/index.js.map +1 -1
  25. package/dist/{types-C6MmkH69.d.ts → types-6w9s8P5j.d.ts} +851 -1848
  26. package/package.json +18 -13
  27. package/style-core.css +286 -0
  28. package/style-mantine.css +8856 -19
  29. package/style-scoped.css +1478 -255
  30. package/style.css +8856 -19
  31. package/dist/CollectionLifecycleFlowDetail-2SRQUN4V.js.map +0 -1
  32. package/dist/EvalEngineFlowDetail-FQAX4PJ5.js.map +0 -1
  33. package/dist/chunk-6S3WBLXO.js.map +0 -1
  34. package/dist/chunk-FYPDR7DJ.js.map +0 -1
  35. package/dist/graphql-client-BanLWXV8.d.ts +0 -766
  36. package/dist/nodeContext-CV9D4s3X.d.ts +0 -45
  37. /package/dist/{chunk-5JEXVSJG.js.map → chunk-2SKTQGH5.js.map} +0 -0
@@ -357,10 +357,11 @@ function readContainerProps(container, out) {
357
357
  addAll(asRecord(attrs?.props));
358
358
  const content = container.get(0);
359
359
  if (content instanceof Y.XmlElement && content.nodeName !== "blockGroup") addAll(content.getAttributes());
360
- const textColor = container.getAttribute("textColor");
361
- if (typeof textColor === "string" && textColor !== "default") props.textColor = textColor;
362
- const backgroundColor = container.getAttribute("backgroundColor");
363
- if (typeof backgroundColor === "string" && backgroundColor !== "default") props.backgroundColor = backgroundColor;
360
+ for (const key of ["textColor", "backgroundColor"]) {
361
+ if (props[key] === "default") delete props[key];
362
+ const legacy = container.getAttribute(key);
363
+ if (props[key] === void 0 && typeof legacy === "string" && legacy !== "default") props[key] = legacy;
364
+ }
364
365
  if (Object.keys(props).length > 0) out.set(blockId, props);
365
366
  }
366
367
  function adoptDraftShape(yDoc) {
@@ -632,10 +633,11 @@ function readBlocksFromFragment(fragment) {
632
633
  const content = container.get(0);
633
634
  if (!isYXmlElementLike(content)) continue;
634
635
  const props = { ...content.getAttributes() };
635
- const textColor = container.getAttribute("textColor");
636
- if (typeof textColor === "string" && textColor !== "default") props.textColor = textColor;
637
- const backgroundColor = container.getAttribute("backgroundColor");
638
- if (typeof backgroundColor === "string" && backgroundColor !== "default") props.backgroundColor = backgroundColor;
636
+ for (const key of ["textColor", "backgroundColor"]) {
637
+ if (props[key] === "default") delete props[key];
638
+ const legacy = container.getAttribute(key);
639
+ if (props[key] === void 0 && typeof legacy === "string" && legacy !== "default") props[key] = legacy;
640
+ }
639
641
  blocks.push({ id, type: content.nodeName, props });
640
642
  }
641
643
  return blocks;
@@ -652,6 +654,8 @@ function createBlockContainer(block) {
652
654
  blockContent.setAttribute(key, value);
653
655
  }
654
656
  }
657
+ if (rawTextColor && rawTextColor !== "default") blockContent.setAttribute("textColor", rawTextColor);
658
+ if (rawBackgroundColor && rawBackgroundColor !== "default") blockContent.setAttribute("backgroundColor", rawBackgroundColor);
655
659
  blockContainer.insert(0, [blockContent]);
656
660
  return blockContainer;
657
661
  }
@@ -3513,4 +3517,4 @@ export {
3513
3517
  executeQueuedFlowAgentCoreCommands,
3514
3518
  FlowAgentService
3515
3519
  };
3516
- //# sourceMappingURL=chunk-FYPDR7DJ.js.map
3520
+ //# sourceMappingURL=chunk-QHZMBOXS.js.map