@ceed/ads 1.37.0 → 1.37.1

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
@@ -7278,7 +7278,14 @@ var Markdown = (props) => {
7278
7278
  return /* @__PURE__ */ import_react50.default.createElement(Typography, { component: "div", color, textColor, level: defaultLevel, ...innerProps }, /* @__PURE__ */ import_react50.default.createElement(
7279
7279
  import_react50.Suspense,
7280
7280
  {
7281
- fallback: fallback || /* @__PURE__ */ import_react50.default.createElement(Typography, null, /* @__PURE__ */ import_react50.default.createElement(import_joy61.Skeleton, null, content || ""))
7281
+ fallback: (
7282
+ // While in the fallback state, prevent browser auto-translation (e.g. Chrome/Google Translate)
7283
+ // from wrapping text nodes in <font> tags. Once the lazy react-markdown chunk arrives, React
7284
+ // swaps the fallback for the real content via insertBefore; if the browser has mutated the DOM
7285
+ // in the meantime, the reference node's parent changes and React throws a DOMException
7286
+ // ("Failed to execute 'insertBefore' on 'Node'"), crashing the subtree. (cf. facebook/react#11538)
7287
+ fallback || /* @__PURE__ */ import_react50.default.createElement(Typography, { translate: "no", className: "notranslate" }, /* @__PURE__ */ import_react50.default.createElement(import_joy61.Skeleton, null, content || ""))
7288
+ )
7282
7289
  },
7283
7290
  /* @__PURE__ */ import_react50.default.createElement(
7284
7291
  LazyReactMarkdown,
package/dist/index.js CHANGED
@@ -7164,7 +7164,14 @@ var Markdown = (props) => {
7164
7164
  return /* @__PURE__ */ React47.createElement(Typography, { component: "div", color, textColor, level: defaultLevel, ...innerProps }, /* @__PURE__ */ React47.createElement(
7165
7165
  Suspense,
7166
7166
  {
7167
- fallback: fallback || /* @__PURE__ */ React47.createElement(Typography, null, /* @__PURE__ */ React47.createElement(Skeleton, null, content || ""))
7167
+ fallback: (
7168
+ // While in the fallback state, prevent browser auto-translation (e.g. Chrome/Google Translate)
7169
+ // from wrapping text nodes in <font> tags. Once the lazy react-markdown chunk arrives, React
7170
+ // swaps the fallback for the real content via insertBefore; if the browser has mutated the DOM
7171
+ // in the meantime, the reference node's parent changes and React throws a DOMException
7172
+ // ("Failed to execute 'insertBefore' on 'Node'"), crashing the subtree. (cf. facebook/react#11538)
7173
+ fallback || /* @__PURE__ */ React47.createElement(Typography, { translate: "no", className: "notranslate" }, /* @__PURE__ */ React47.createElement(Skeleton, null, content || ""))
7174
+ )
7168
7175
  },
7169
7176
  /* @__PURE__ */ React47.createElement(
7170
7177
  LazyReactMarkdown,