@octaviaflow/core 3.0.18-beta.42 → 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 CHANGED
@@ -9063,11 +9063,17 @@ function CsvTable({
9063
9063
  error.message
9064
9064
  ] }),
9065
9065
  /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("table", { className: "ods-csv-viewer__table", "aria-label": "CSV data", children: [
9066
- headerRow && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("tr", { children: Array.from({ length: colCount }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("th", { scope: "col", children: headerRow[i] ?? "" }, i)) }) }),
9066
+ headerRow && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("tr", { children: Array.from({ length: colCount }).map((_, i) => {
9067
+ const v = headerRow[i] ?? "";
9068
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("th", { scope: "col", title: v, children: v }, i);
9069
+ }) }) }),
9067
9070
  /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("tbody", { children: rows.map((row, ri) => (
9068
9071
  // CSV rows have no stable id — `ri` is the only key we have.
9069
9072
  // Acceptable since CSVs are read-only data.
9070
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("tr", { children: Array.from({ length: colCount }).map((_, ci) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("td", { children: row[ci] ?? "" }, ci)) }, ri)
9073
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("tr", { children: Array.from({ length: colCount }).map((_, ci) => {
9074
+ const v = row[ci] ?? "";
9075
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("td", { title: v, children: v }, ci);
9076
+ }) }, ri)
9071
9077
  )) })
9072
9078
  ] })
9073
9079
  ] });
@@ -33196,6 +33202,52 @@ function XmlNodeRow({
33196
33202
  const children = node.children ?? [];
33197
33203
  const isSelfClosing = children.length === 0;
33198
33204
  const attrs = Object.entries(node.attributes ?? {});
33205
+ const inlineTextChild = children.length === 1 && children[0].type === "text" ? children[0].text ?? "" : null;
33206
+ if (inlineTextChild !== null) {
33207
+ const isMultiLine = inlineTextChild.includes("\n");
33208
+ const openTag = /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)(import_jsx_runtime138.Fragment, { children: [
33209
+ /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__bracket", children: "<" }),
33210
+ /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__tag", children: node.name }),
33211
+ showAttributes && attrs.map(([k, v]) => /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)("span", { className: "ods-xml-viewer__attr", children: [
33212
+ /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__attr-name", children: k }),
33213
+ /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__attr-eq", children: "=" }),
33214
+ /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__attr-value", children: `"${v}"` })
33215
+ ] }, k)),
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: [
33219
+ /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__bracket", children: "</" }),
33220
+ /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__tag", children: node.name }),
33221
+ /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { className: "ods-xml-viewer__bracket", children: ">" })
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
+ ] });
33250
+ }
33199
33251
  return /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)("div", { children: [
33200
33252
  /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)(
33201
33253
  "div",