@mieweb/ui 0.6.1-dev.154 → 0.6.1-dev.155

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.
@@ -578,7 +578,7 @@ function createImagePlugin() {
578
578
  }
579
579
  };
580
580
  }
581
- var NitroTableGrid = React2__namespace.lazy(() => import('../../../nitroTableGrid-IY75TQJ2.cjs'));
581
+ var NitroTableGrid = React2__namespace.lazy(() => import('../../../nitroTableGrid-J7F6D2QA.cjs'));
582
582
  function textOf3(node) {
583
583
  if (node.type === "text") return node.value ?? "";
584
584
  return (node.children ?? []).map(textOf3).join("");
@@ -551,7 +551,7 @@ function createImagePlugin() {
551
551
  }
552
552
  };
553
553
  }
554
- var NitroTableGrid = React2.lazy(() => import('../../../nitroTableGrid-FWRCDE4N.js'));
554
+ var NitroTableGrid = React2.lazy(() => import('../../../nitroTableGrid-GKJAX3J4.js'));
555
555
  function textOf3(node) {
556
556
  if (node.type === "text") return node.value ?? "";
557
557
  return (node.children ?? []).map(textOf3).join("");
@@ -14,9 +14,9 @@ function NitroTableGrid({ headers, rows }) {
14
14
  return URL.createObjectURL(blob);
15
15
  }, [headers, rows]);
16
16
  React.useEffect(() => () => URL.revokeObjectURL(url), [url]);
17
- return /* @__PURE__ */ jsx("div", { "data-slot": "superchat-nitro-table", className: "my-2", children: /* @__PURE__ */ jsx(DataVisNitroSource, { type: "http", url, children: /* @__PURE__ */ jsx(DataVisNitroGrid, { columns: headers, style: { height: 320 } }) }) });
17
+ return /* @__PURE__ */ jsx("div", { "data-slot": "superchat-nitro-table", className: "my-2", children: /* @__PURE__ */ jsx(DataVisNitroSource, { type: "http", url, children: /* @__PURE__ */ jsx(DataVisNitroGrid, { columns: headers, minimalMode: true, className: "max-h-80" }) }) });
18
18
  }
19
19
 
20
20
  export { NitroTableGrid as default };
21
- //# sourceMappingURL=nitroTableGrid-FWRCDE4N.js.map
22
- //# sourceMappingURL=nitroTableGrid-FWRCDE4N.js.map
21
+ //# sourceMappingURL=nitroTableGrid-GKJAX3J4.js.map
22
+ //# sourceMappingURL=nitroTableGrid-GKJAX3J4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/SuperChat/plugins/nitroTableGrid.tsx"],"names":[],"mappings":";;;;AAqBe,SAAR,cAAA,CAAgC,EAAE,OAAA,EAAS,IAAA,EAAK,EAAwB;AAC7E,EAAA,MAAM,GAAA,GAAY,cAAQ,MAAM;AAC9B,IAAA,MAAM,OAAA,GAAU;AAAA,MACd,QAAA,EAAU,QAAQ,GAAA,CAAI,CAAC,WAAW,EAAE,KAAA,EAAO,IAAA,EAAM,QAAA,EAAS,CAAE,CAAA;AAAA,MAC5D,IAAA,EAAM;AAAA,KACR;AACA,IAAA,MAAM,IAAA,GAAO,IAAI,IAAA,CAAK,CAAC,KAAK,SAAA,CAAU,OAAO,CAAC,CAAA,EAAG;AAAA,MAC/C,IAAA,EAAM;AAAA,KACP,CAAA;AACD,IAAA,OAAO,GAAA,CAAI,gBAAgB,IAAI,CAAA;AAAA,EACjC,CAAA,EAAG,CAAC,OAAA,EAAS,IAAI,CAAC,CAAA;AAElB,EAAM,KAAA,CAAA,SAAA,CAAU,MAAM,MAAM,GAAA,CAAI,gBAAgB,GAAG,CAAA,EAAG,CAAC,GAAG,CAAC,CAAA;AAE3D,EAAA,uBACE,GAAA,CAAC,SAAI,WAAA,EAAU,uBAAA,EAAwB,WAAU,MAAA,EAC/C,QAAA,kBAAA,GAAA,CAAC,sBAAmB,IAAA,EAAK,MAAA,EAAO,KAC9B,QAAA,kBAAA,GAAA,CAAC,gBAAA,EAAA,EAAiB,SAAS,OAAA,EAAS,WAAA,EAAW,MAAC,SAAA,EAAU,UAAA,EAAW,GACvE,CAAA,EACF,CAAA;AAEJ","file":"nitroTableGrid-GKJAX3J4.js","sourcesContent":["/**\n * SuperChat NITRO table grid (lazy chunk).\n *\n * Default-exported so it can be pulled in with `React.lazy` only when a GFM\n * table actually renders — this keeps the heavy `datavis` / `datavis-ace`\n * dependencies out of the SuperChat (and Markdown core) bundle.\n *\n * Data is handed to {@link DataVisNitroSource} through a short-lived object-URL\n * `http` source carrying the `{ typeInfo, data }` shape the engine expects.\n */\n\nimport * as React from 'react';\nimport { DataVisNitroGrid, DataVisNitroSource } from '../../DataVisNITRO';\n\nexport interface NitroTableGridProps {\n /** Column headers, in order. */\n headers: string[];\n /** Row objects keyed by header. */\n rows: Array<Record<string, string>>;\n}\n\nexport default function NitroTableGrid({ headers, rows }: NitroTableGridProps) {\n const url = React.useMemo(() => {\n const payload = {\n typeInfo: headers.map((field) => ({ field, type: 'string' })),\n data: rows,\n };\n const blob = new Blob([JSON.stringify(payload)], {\n type: 'application/json',\n });\n return URL.createObjectURL(blob);\n }, [headers, rows]);\n\n React.useEffect(() => () => URL.revokeObjectURL(url), [url]);\n\n return (\n <div data-slot=\"superchat-nitro-table\" className=\"my-2\">\n <DataVisNitroSource type=\"http\" url={url}>\n <DataVisNitroGrid columns={headers} minimalMode className=\"max-h-80\" />\n </DataVisNitroSource>\n </div>\n );\n}\n"]}
@@ -36,9 +36,9 @@ function NitroTableGrid({ headers, rows }) {
36
36
  return URL.createObjectURL(blob);
37
37
  }, [headers, rows]);
38
38
  React__namespace.useEffect(() => () => URL.revokeObjectURL(url), [url]);
39
- return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "superchat-nitro-table", className: "my-2", children: /* @__PURE__ */ jsxRuntime.jsx(chunkLZPPH5BW_cjs.DataVisNitroSource, { type: "http", url, children: /* @__PURE__ */ jsxRuntime.jsx(chunkLZPPH5BW_cjs.DataVisNitroGrid, { columns: headers, style: { height: 320 } }) }) });
39
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "superchat-nitro-table", className: "my-2", children: /* @__PURE__ */ jsxRuntime.jsx(chunkLZPPH5BW_cjs.DataVisNitroSource, { type: "http", url, children: /* @__PURE__ */ jsxRuntime.jsx(chunkLZPPH5BW_cjs.DataVisNitroGrid, { columns: headers, minimalMode: true, className: "max-h-80" }) }) });
40
40
  }
41
41
 
42
42
  module.exports = NitroTableGrid;
43
- //# sourceMappingURL=nitroTableGrid-IY75TQJ2.cjs.map
44
- //# sourceMappingURL=nitroTableGrid-IY75TQJ2.cjs.map
43
+ //# sourceMappingURL=nitroTableGrid-J7F6D2QA.cjs.map
44
+ //# sourceMappingURL=nitroTableGrid-J7F6D2QA.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/SuperChat/plugins/nitroTableGrid.tsx"],"names":["React","jsx","DataVisNitroSource","DataVisNitroGrid"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAqBe,SAAR,cAAA,CAAgC,EAAE,OAAA,EAAS,IAAA,EAAK,EAAwB;AAC7E,EAAA,MAAM,GAAA,GAAYA,yBAAQ,MAAM;AAC9B,IAAA,MAAM,OAAA,GAAU;AAAA,MACd,QAAA,EAAU,QAAQ,GAAA,CAAI,CAAC,WAAW,EAAE,KAAA,EAAO,IAAA,EAAM,QAAA,EAAS,CAAE,CAAA;AAAA,MAC5D,IAAA,EAAM;AAAA,KACR;AACA,IAAA,MAAM,IAAA,GAAO,IAAI,IAAA,CAAK,CAAC,KAAK,SAAA,CAAU,OAAO,CAAC,CAAA,EAAG;AAAA,MAC/C,IAAA,EAAM;AAAA,KACP,CAAA;AACD,IAAA,OAAO,GAAA,CAAI,gBAAgB,IAAI,CAAA;AAAA,EACjC,CAAA,EAAG,CAAC,OAAA,EAAS,IAAI,CAAC,CAAA;AAElB,EAAMA,gBAAA,CAAA,SAAA,CAAU,MAAM,MAAM,GAAA,CAAI,gBAAgB,GAAG,CAAA,EAAG,CAAC,GAAG,CAAC,CAAA;AAE3D,EAAA,uBACEC,cAAA,CAAC,SAAI,WAAA,EAAU,uBAAA,EAAwB,WAAU,MAAA,EAC/C,QAAA,kBAAAA,cAAA,CAACC,wCAAmB,IAAA,EAAK,MAAA,EAAO,KAC9B,QAAA,kBAAAD,cAAA,CAACE,kCAAA,EAAA,EAAiB,SAAS,OAAA,EAAS,WAAA,EAAW,MAAC,SAAA,EAAU,UAAA,EAAW,GACvE,CAAA,EACF,CAAA;AAEJ","file":"nitroTableGrid-J7F6D2QA.cjs","sourcesContent":["/**\n * SuperChat NITRO table grid (lazy chunk).\n *\n * Default-exported so it can be pulled in with `React.lazy` only when a GFM\n * table actually renders — this keeps the heavy `datavis` / `datavis-ace`\n * dependencies out of the SuperChat (and Markdown core) bundle.\n *\n * Data is handed to {@link DataVisNitroSource} through a short-lived object-URL\n * `http` source carrying the `{ typeInfo, data }` shape the engine expects.\n */\n\nimport * as React from 'react';\nimport { DataVisNitroGrid, DataVisNitroSource } from '../../DataVisNITRO';\n\nexport interface NitroTableGridProps {\n /** Column headers, in order. */\n headers: string[];\n /** Row objects keyed by header. */\n rows: Array<Record<string, string>>;\n}\n\nexport default function NitroTableGrid({ headers, rows }: NitroTableGridProps) {\n const url = React.useMemo(() => {\n const payload = {\n typeInfo: headers.map((field) => ({ field, type: 'string' })),\n data: rows,\n };\n const blob = new Blob([JSON.stringify(payload)], {\n type: 'application/json',\n });\n return URL.createObjectURL(blob);\n }, [headers, rows]);\n\n React.useEffect(() => () => URL.revokeObjectURL(url), [url]);\n\n return (\n <div data-slot=\"superchat-nitro-table\" className=\"my-2\">\n <DataVisNitroSource type=\"http\" url={url}>\n <DataVisNitroGrid columns={headers} minimalMode className=\"max-h-80\" />\n </DataVisNitroSource>\n </div>\n );\n}\n"]}