@octaviaflow/core 3.0.18-beta.42 → 3.0.18-beta.43

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.js CHANGED
@@ -9001,11 +9001,17 @@ function CsvTable({
9001
9001
  error.message
9002
9002
  ] }),
9003
9003
  /* @__PURE__ */ jsxs33("table", { className: "ods-csv-viewer__table", "aria-label": "CSV data", children: [
9004
- headerRow && /* @__PURE__ */ jsx34("thead", { children: /* @__PURE__ */ jsx34("tr", { children: Array.from({ length: colCount }).map((_, i) => /* @__PURE__ */ jsx34("th", { scope: "col", children: headerRow[i] ?? "" }, i)) }) }),
9004
+ headerRow && /* @__PURE__ */ jsx34("thead", { children: /* @__PURE__ */ jsx34("tr", { children: Array.from({ length: colCount }).map((_, i) => {
9005
+ const v = headerRow[i] ?? "";
9006
+ return /* @__PURE__ */ jsx34("th", { scope: "col", title: v, children: v }, i);
9007
+ }) }) }),
9005
9008
  /* @__PURE__ */ jsx34("tbody", { children: rows.map((row, ri) => (
9006
9009
  // CSV rows have no stable id — `ri` is the only key we have.
9007
9010
  // Acceptable since CSVs are read-only data.
9008
- /* @__PURE__ */ jsx34("tr", { children: Array.from({ length: colCount }).map((_, ci) => /* @__PURE__ */ jsx34("td", { children: row[ci] ?? "" }, ci)) }, ri)
9011
+ /* @__PURE__ */ jsx34("tr", { children: Array.from({ length: colCount }).map((_, ci) => {
9012
+ const v = row[ci] ?? "";
9013
+ return /* @__PURE__ */ jsx34("td", { title: v, children: v }, ci);
9014
+ }) }, ri)
9009
9015
  )) })
9010
9016
  ] })
9011
9017
  ] });
@@ -30818,6 +30824,24 @@ function XmlNodeRow({
30818
30824
  const children = node.children ?? [];
30819
30825
  const isSelfClosing = children.length === 0;
30820
30826
  const attrs = Object.entries(node.attributes ?? {});
30827
+ const inlineTextChild = children.length === 1 && children[0].type === "text" ? children[0].text ?? "" : null;
30828
+ if (inlineTextChild !== null) {
30829
+ return /* @__PURE__ */ jsxs123("div", { className: "ods-xml-viewer__row", style: { paddingLeft: pad2 }, children: [
30830
+ /* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__caret-spacer" }),
30831
+ /* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__bracket", children: "<" }),
30832
+ /* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__tag", children: node.name }),
30833
+ showAttributes && attrs.map(([k, v]) => /* @__PURE__ */ jsxs123("span", { className: "ods-xml-viewer__attr", children: [
30834
+ /* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__attr-name", children: k }),
30835
+ /* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__attr-eq", children: "=" }),
30836
+ /* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__attr-value", children: `"${v}"` })
30837
+ ] }, k)),
30838
+ /* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__bracket", children: ">" }),
30839
+ /* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__text", children: inlineTextChild }),
30840
+ /* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__bracket", children: "</" }),
30841
+ /* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__tag", children: node.name }),
30842
+ /* @__PURE__ */ jsx130("span", { className: "ods-xml-viewer__bracket", children: ">" })
30843
+ ] });
30844
+ }
30821
30845
  return /* @__PURE__ */ jsxs123("div", { children: [
30822
30846
  /* @__PURE__ */ jsxs123(
30823
30847
  "div",