@ceed/cds 1.36.0 → 1.36.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.browser.js +1 -1
- package/dist/index.browser.js.map +2 -2
- package/dist/index.cjs +8 -1
- package/dist/index.js +8 -1
- package/framer/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5922,7 +5922,14 @@ var Markdown = (props) => {
|
|
|
5922
5922
|
return /* @__PURE__ */ import_react37.default.createElement(Typography, { component: "div", color, textColor, level: defaultLevel, ...innerProps }, /* @__PURE__ */ import_react37.default.createElement(
|
|
5923
5923
|
import_react37.Suspense,
|
|
5924
5924
|
{
|
|
5925
|
-
fallback:
|
|
5925
|
+
fallback: (
|
|
5926
|
+
// While in the fallback state, prevent browser auto-translation (e.g. Chrome/Google Translate)
|
|
5927
|
+
// from wrapping text nodes in <font> tags. Once the lazy react-markdown chunk arrives, React
|
|
5928
|
+
// swaps the fallback for the real content via insertBefore; if the browser has mutated the DOM
|
|
5929
|
+
// in the meantime, the reference node's parent changes and React throws a DOMException
|
|
5930
|
+
// ("Failed to execute 'insertBefore' on 'Node'"), crashing the subtree. (cf. facebook/react#11538)
|
|
5931
|
+
fallback || /* @__PURE__ */ import_react37.default.createElement(Typography, { translate: "no", className: "notranslate" }, /* @__PURE__ */ import_react37.default.createElement(import_joy47.Skeleton, null, content || ""))
|
|
5932
|
+
)
|
|
5926
5933
|
},
|
|
5927
5934
|
/* @__PURE__ */ import_react37.default.createElement(
|
|
5928
5935
|
LazyReactMarkdown,
|
package/dist/index.js
CHANGED
|
@@ -5816,7 +5816,14 @@ var Markdown = (props) => {
|
|
|
5816
5816
|
return /* @__PURE__ */ React34.createElement(Typography, { component: "div", color, textColor, level: defaultLevel, ...innerProps }, /* @__PURE__ */ React34.createElement(
|
|
5817
5817
|
Suspense,
|
|
5818
5818
|
{
|
|
5819
|
-
fallback:
|
|
5819
|
+
fallback: (
|
|
5820
|
+
// While in the fallback state, prevent browser auto-translation (e.g. Chrome/Google Translate)
|
|
5821
|
+
// from wrapping text nodes in <font> tags. Once the lazy react-markdown chunk arrives, React
|
|
5822
|
+
// swaps the fallback for the real content via insertBefore; if the browser has mutated the DOM
|
|
5823
|
+
// in the meantime, the reference node's parent changes and React throws a DOMException
|
|
5824
|
+
// ("Failed to execute 'insertBefore' on 'Node'"), crashing the subtree. (cf. facebook/react#11538)
|
|
5825
|
+
fallback || /* @__PURE__ */ React34.createElement(Typography, { translate: "no", className: "notranslate" }, /* @__PURE__ */ React34.createElement(Skeleton, null, content || ""))
|
|
5826
|
+
)
|
|
5820
5827
|
},
|
|
5821
5828
|
/* @__PURE__ */ React34.createElement(
|
|
5822
5829
|
LazyReactMarkdown,
|