@axiom-lattice/react-sdk 2.1.18 → 2.1.19

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
@@ -1568,6 +1568,7 @@ var mdComponents = {
1568
1568
 
1569
1569
  // src/components/GenUI/MDResponse.tsx
1570
1570
  var import_jsx_runtime9 = require("react/jsx-runtime");
1571
+ var memoizedMdComponents = mdComponents;
1571
1572
  var useStyles = (0, import_antd_style2.createStyles)(({ token, css }) => ({
1572
1573
  markdownTableContainer: css`
1573
1574
  overflow-x: auto;
@@ -1657,10 +1658,11 @@ var MDResponse = ({
1657
1658
  noGenUI
1658
1659
  }) => {
1659
1660
  const { styles } = useStyles();
1661
+ const stableComponents = (0, import_react9.useMemo)(() => memoizedMdComponents, []);
1660
1662
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: styles.markdownContainer, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1661
1663
  import_x_markdown.default,
1662
1664
  {
1663
- components: mdComponents,
1665
+ components: stableComponents,
1664
1666
  content,
1665
1667
  paragraphTag: "div"
1666
1668
  }