@movable/studio-framework 3.3.1 → 3.4.0-canary.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 CHANGED
@@ -1900,14 +1900,27 @@ const getYPosition = justifyContent => {
1900
1900
  const RichTextSpan = ({
1901
1901
  attributes,
1902
1902
  insert,
1903
- fitToOneLine
1903
+ fitToOneLine,
1904
+ link
1904
1905
  }) => {
1905
1906
  const whiteSpace = fitToOneLine ? 'nowrap' : 'pre-wrap';
1906
- return /*#__PURE__*/React.createElement("span", {
1907
- style: { ...normalizeRichTextStyles(attributes),
1908
- whiteSpace
1909
- }
1910
- }, insert);
1907
+
1908
+ if (link) {
1909
+ return /*#__PURE__*/React.createElement("a", {
1910
+ href: link,
1911
+ target: "_blank",
1912
+ rel: "noopener noreferrer",
1913
+ style: { ...normalizeRichTextStyles(attributes),
1914
+ whiteSpace
1915
+ }
1916
+ }, insert);
1917
+ } else {
1918
+ return /*#__PURE__*/React.createElement("span", {
1919
+ style: { ...normalizeRichTextStyles(attributes),
1920
+ whiteSpace
1921
+ }
1922
+ }, insert);
1923
+ }
1911
1924
  };
1912
1925
 
1913
1926
  const isNewLine = ({