@opengeni/react 5.0.2-canary.0 → 5.0.4
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/{chunk-WRVKY242.js → chunk-SCZ6SUBW.js} +9 -5
- package/dist/chunk-SCZ6SUBW.js.map +1 -0
- package/dist/components/markdown-table-layout.d.ts +4 -1
- package/dist/index.js +1 -1
- package/dist/{markdown-table-layout-3Z3AWBY7.js → markdown-table-layout-PFUEZ2U4.js} +7 -4
- package/dist/{markdown-table-layout-3Z3AWBY7.js.map → markdown-table-layout-PFUEZ2U4.js.map} +1 -1
- package/dist/session-ui.js +1 -1
- package/package.json +3 -3
- package/src/components/markdown-table-layout.ts +6 -3
- package/src/components/markdown.tsx +11 -3
- package/dist/chunk-WRVKY242.js.map +0 -1
|
@@ -1645,20 +1645,24 @@ function MarkdownCodeBlock({ children }) {
|
|
|
1645
1645
|
function MarkdownTable({ children, className, ...props }) {
|
|
1646
1646
|
const wrapperRef = useRef5(null);
|
|
1647
1647
|
const tableRef = useRef5(null);
|
|
1648
|
+
const layoutRef = useRef5(void 0);
|
|
1648
1649
|
useEffect5(() => {
|
|
1649
1650
|
const wrapper = wrapperRef.current;
|
|
1650
1651
|
const table = tableRef.current;
|
|
1651
1652
|
if (!wrapper?.closest("[data-og-wide-table-message]") || !table) return;
|
|
1652
1653
|
let disposed = false;
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
if (!disposed) cleanup = observeMarkdownTableLayout(wrapper, table);
|
|
1654
|
+
void import("./markdown-table-layout-PFUEZ2U4.js").then(({ observeMarkdownTableLayout }) => {
|
|
1655
|
+
if (!disposed) layoutRef.current = observeMarkdownTableLayout(wrapper, table);
|
|
1656
1656
|
}).catch(() => {
|
|
1657
1657
|
});
|
|
1658
1658
|
return () => {
|
|
1659
1659
|
disposed = true;
|
|
1660
|
-
|
|
1660
|
+
layoutRef.current?.disconnect();
|
|
1661
|
+
layoutRef.current = void 0;
|
|
1661
1662
|
};
|
|
1663
|
+
}, []);
|
|
1664
|
+
useEffect5(() => {
|
|
1665
|
+
layoutRef.current?.measure();
|
|
1662
1666
|
}, [children]);
|
|
1663
1667
|
return /* @__PURE__ */ jsxs4("div", { ref: wrapperRef, className: "group/copy relative mt-3 max-w-full first:mt-0", children: [
|
|
1664
1668
|
/* @__PURE__ */ jsx5("div", { className: "pointer-events-none absolute top-0 right-0 z-10", children: /* @__PURE__ */ jsx5("div", { className: "pointer-events-auto", children: /* @__PURE__ */ jsx5(
|
|
@@ -11032,4 +11036,4 @@ export {
|
|
|
11032
11036
|
SessionChrome,
|
|
11033
11037
|
SessionCommandsPanel
|
|
11034
11038
|
};
|
|
11035
|
-
//# sourceMappingURL=chunk-
|
|
11039
|
+
//# sourceMappingURL=chunk-SCZ6SUBW.js.map
|