@ceed/ads 1.38.0-next.1 → 1.38.0

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