@octaviaflow/core 3.0.18-beta.43 → 3.0.18-beta.45
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/dist/workflow/types.d.ts +83 -0
- package/dist/workflow/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -33204,8 +33204,8 @@ function XmlNodeRow({
|
|
|
33204
33204
|
const attrs = Object.entries(node.attributes ?? {});
|
|
33205
33205
|
const inlineTextChild = children.length === 1 && children[0].type === "text" ? children[0].text ?? "" : null;
|
|
33206
33206
|
if (inlineTextChild !== null) {
|
|
33207
|
-
|
|
33208
|
-
|
|
33207
|
+
const isMultiLine = inlineTextChild.includes("\n");
|
|
33208
|
+
const openTag = /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)(import_jsx_runtime138.Fragment, { children: [
|
|
33209
33209
|
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__bracket", children: "<" }),
|
|
33210
33210
|
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__tag", children: node.name }),
|
|
33211
33211
|
showAttributes && attrs.map(([k, v]) => /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)("span", { className: "ods-xml-viewer__attr", children: [
|
|
@@ -33213,12 +33213,40 @@ function XmlNodeRow({
|
|
|
33213
33213
|
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__attr-eq", children: "=" }),
|
|
33214
33214
|
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__attr-value", children: `"${v}"` })
|
|
33215
33215
|
] }, k)),
|
|
33216
|
-
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__bracket", children: ">" })
|
|
33217
|
-
|
|
33216
|
+
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__bracket", children: ">" })
|
|
33217
|
+
] });
|
|
33218
|
+
const closeTag = /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)(import_jsx_runtime138.Fragment, { children: [
|
|
33218
33219
|
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__bracket", children: "</" }),
|
|
33219
33220
|
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__tag", children: node.name }),
|
|
33220
33221
|
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__bracket", children: ">" })
|
|
33221
33222
|
] });
|
|
33223
|
+
if (isMultiLine) {
|
|
33224
|
+
const innerPad = pad2 + 12;
|
|
33225
|
+
return /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)("div", { children: [
|
|
33226
|
+
/* @__PURE__ */ (0, import_jsx_runtime138.jsxs)("div", { className: "ods-xml-viewer__row", style: { paddingLeft: pad2 }, children: [
|
|
33227
|
+
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__caret-spacer" }),
|
|
33228
|
+
openTag
|
|
33229
|
+
] }),
|
|
33230
|
+
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
|
|
33231
|
+
"div",
|
|
33232
|
+
{
|
|
33233
|
+
className: "ods-xml-viewer__row ods-xml-viewer__row--multiline",
|
|
33234
|
+
style: { paddingLeft: innerPad },
|
|
33235
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__text", children: inlineTextChild })
|
|
33236
|
+
}
|
|
33237
|
+
),
|
|
33238
|
+
/* @__PURE__ */ (0, import_jsx_runtime138.jsxs)("div", { className: "ods-xml-viewer__row", style: { paddingLeft: pad2 }, children: [
|
|
33239
|
+
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__caret-spacer" }),
|
|
33240
|
+
closeTag
|
|
33241
|
+
] })
|
|
33242
|
+
] });
|
|
33243
|
+
}
|
|
33244
|
+
return /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)("div", { className: "ods-xml-viewer__row", style: { paddingLeft: pad2 }, children: [
|
|
33245
|
+
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__caret-spacer" }),
|
|
33246
|
+
openTag,
|
|
33247
|
+
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__text", children: inlineTextChild }),
|
|
33248
|
+
closeTag
|
|
33249
|
+
] });
|
|
33222
33250
|
}
|
|
33223
33251
|
return /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)("div", { children: [
|
|
33224
33252
|
/* @__PURE__ */ (0, import_jsx_runtime138.jsxs)(
|