@octaviaflow/core 3.0.18-beta.43 → 3.0.18-beta.44
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/index.cjs +32 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +32 -4
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30826,8 +30826,8 @@ function XmlNodeRow({
|
|
|
30826
30826
|
const attrs = Object.entries(node.attributes ?? {});
|
|
30827
30827
|
const inlineTextChild = children.length === 1 && children[0].type === "text" ? children[0].text ?? "" : null;
|
|
30828
30828
|
if (inlineTextChild !== null) {
|
|
30829
|
-
|
|
30830
|
-
|
|
30829
|
+
const isMultiLine = inlineTextChild.includes("\n");
|
|
30830
|
+
const openTag = /* @__PURE__ */ jsxs123(Fragment50, { children: [
|
|
30831
30831
|
/* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__bracket", children: "<" }),
|
|
30832
30832
|
/* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__tag", children: node.name }),
|
|
30833
30833
|
showAttributes && attrs.map(([k, v]) => /* @__PURE__ */ jsxs123("span", { className: "ods-xml-viewer__attr", children: [
|
|
@@ -30835,12 +30835,40 @@ function XmlNodeRow({
|
|
|
30835
30835
|
/* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__attr-eq", children: "=" }),
|
|
30836
30836
|
/* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__attr-value", children: `"${v}"` })
|
|
30837
30837
|
] }, k)),
|
|
30838
|
-
/* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__bracket", children: ">" })
|
|
30839
|
-
|
|
30838
|
+
/* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__bracket", children: ">" })
|
|
30839
|
+
] });
|
|
30840
|
+
const closeTag = /* @__PURE__ */ jsxs123(Fragment50, { children: [
|
|
30840
30841
|
/* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__bracket", children: "</" }),
|
|
30841
30842
|
/* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__tag", children: node.name }),
|
|
30842
30843
|
/* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__bracket", children: ">" })
|
|
30843
30844
|
] });
|
|
30845
|
+
if (isMultiLine) {
|
|
30846
|
+
const innerPad = pad2 + 12;
|
|
30847
|
+
return /* @__PURE__ */ jsxs123("div", { children: [
|
|
30848
|
+
/* @__PURE__ */ jsxs123("div", { className: "ods-xml-viewer__row", style: { paddingLeft: pad2 }, children: [
|
|
30849
|
+
/* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__caret-spacer" }),
|
|
30850
|
+
openTag
|
|
30851
|
+
] }),
|
|
30852
|
+
/* @__PURE__ */ jsx130(
|
|
30853
|
+
"div",
|
|
30854
|
+
{
|
|
30855
|
+
className: "ods-xml-viewer__row ods-xml-viewer__row--multiline",
|
|
30856
|
+
style: { paddingLeft: innerPad },
|
|
30857
|
+
children: /* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__text", children: inlineTextChild })
|
|
30858
|
+
}
|
|
30859
|
+
),
|
|
30860
|
+
/* @__PURE__ */ jsxs123("div", { className: "ods-xml-viewer__row", style: { paddingLeft: pad2 }, children: [
|
|
30861
|
+
/* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__caret-spacer" }),
|
|
30862
|
+
closeTag
|
|
30863
|
+
] })
|
|
30864
|
+
] });
|
|
30865
|
+
}
|
|
30866
|
+
return /* @__PURE__ */ jsxs123("div", { className: "ods-xml-viewer__row", style: { paddingLeft: pad2 }, children: [
|
|
30867
|
+
/* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__caret-spacer" }),
|
|
30868
|
+
openTag,
|
|
30869
|
+
/* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__text", children: inlineTextChild }),
|
|
30870
|
+
closeTag
|
|
30871
|
+
] });
|
|
30844
30872
|
}
|
|
30845
30873
|
return /* @__PURE__ */ jsxs123("div", { children: [
|
|
30846
30874
|
/* @__PURE__ */ jsxs123(
|