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