@ceed/ads 1.38.0-next.1 → 1.38.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
@@ -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,
@@ -8008,7 +8015,8 @@ function RadioTileGroup(props) {
8008
8015
  label: ({ disabled }) => ({
8009
8016
  sx: (theme) => ({
8010
8017
  ...theme.typography[{ sm: "body-sm", md: "body-md", lg: "body-lg" }[size]],
8011
- color: disabled ? theme.palette.neutral.outlinedDisabledColor : theme.palette.neutral.outlinedColor
8018
+ color: disabled ? theme.palette.neutral.outlinedDisabledColor : theme.palette.neutral.outlinedColor,
8019
+ textAlign
8012
8020
  })
8013
8021
  })
8014
8022
  }
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,
@@ -7907,7 +7914,8 @@ function RadioTileGroup(props) {
7907
7914
  label: ({ disabled }) => ({
7908
7915
  sx: (theme) => ({
7909
7916
  ...theme.typography[{ sm: "body-sm", md: "body-md", lg: "body-lg" }[size]],
7910
- color: disabled ? theme.palette.neutral.outlinedDisabledColor : theme.palette.neutral.outlinedColor
7917
+ color: disabled ? theme.palette.neutral.outlinedDisabledColor : theme.palette.neutral.outlinedColor,
7918
+ textAlign
7911
7919
  })
7912
7920
  })
7913
7921
  }