@movable/studio-framework 3.3.1 → 3.3.2-3.4.0-canary.1.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.es.js +17 -5
- package/dist/index.es.js.map +7 -0
- package/dist/index.js +17 -5
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
|
@@ -1903,11 +1903,23 @@ const RichTextSpan = ({
|
|
|
1903
1903
|
fitToOneLine
|
|
1904
1904
|
}) => {
|
|
1905
1905
|
const whiteSpace = fitToOneLine ? 'nowrap' : 'pre-wrap';
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1906
|
+
|
|
1907
|
+
if (attributes.link) {
|
|
1908
|
+
return /*#__PURE__*/React.createElement("a", {
|
|
1909
|
+
href: attributes.link,
|
|
1910
|
+
target: "_blank",
|
|
1911
|
+
rel: "noopener noreferrer",
|
|
1912
|
+
style: { ...normalizeRichTextStyles(attributes),
|
|
1913
|
+
whiteSpace
|
|
1914
|
+
}
|
|
1915
|
+
}, insert);
|
|
1916
|
+
} else {
|
|
1917
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
1918
|
+
style: { ...normalizeRichTextStyles(attributes),
|
|
1919
|
+
whiteSpace
|
|
1920
|
+
}
|
|
1921
|
+
}, insert);
|
|
1922
|
+
}
|
|
1911
1923
|
};
|
|
1912
1924
|
|
|
1913
1925
|
const isNewLine = ({
|