@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.js CHANGED
@@ -1913,11 +1913,23 @@ const RichTextSpan = ({
1913
1913
  fitToOneLine
1914
1914
  }) => {
1915
1915
  const whiteSpace = fitToOneLine ? 'nowrap' : 'pre-wrap';
1916
- return /*#__PURE__*/React__default['default'].createElement("span", {
1917
- style: { ...normalizeRichTextStyles(attributes),
1918
- whiteSpace
1919
- }
1920
- }, insert);
1916
+
1917
+ if (attributes.link) {
1918
+ return /*#__PURE__*/React__default['default'].createElement("a", {
1919
+ href: attributes.link,
1920
+ target: "_blank",
1921
+ rel: "noopener noreferrer",
1922
+ style: { ...normalizeRichTextStyles(attributes),
1923
+ whiteSpace
1924
+ }
1925
+ }, insert);
1926
+ } else {
1927
+ return /*#__PURE__*/React__default['default'].createElement("span", {
1928
+ style: { ...normalizeRichTextStyles(attributes),
1929
+ whiteSpace
1930
+ }
1931
+ }, insert);
1932
+ }
1921
1933
  };
1922
1934
 
1923
1935
  const isNewLine = ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movable/studio-framework",
3
- "version": "3.3.1",
3
+ "version": "3.3.2-3.4.0-canary.1.0",
4
4
  "description": "A Component library for reactive Studio apps.",
5
5
  "author": "Movable Ink",
6
6
  "repository": "movableink/studio-framework",
@@ -31,8 +31,8 @@
31
31
  "@babel/preset-react": "^7.14.5",
32
32
  "@babel/preset-typescript": "^7.13.0",
33
33
  "@movable/eslint-config-react": "^1.0.1",
34
- "@movable/framework-types": "^3.3.1",
35
- "@movable/studio-framework-test-helpers": "^3.3.1",
34
+ "@movable/framework-types": "^3.3.2-3.4.0-canary.1.0",
35
+ "@movable/studio-framework-test-helpers": "^3.3.2-3.4.0-canary.1.0",
36
36
  "@types/qunit": "^2.11.1",
37
37
  "@types/qunit-dom": "^0.7.0",
38
38
  "@types/react": "^17.0.6",
@@ -64,5 +64,5 @@
64
64
  "volta": {
65
65
  "extends": "../../package.json"
66
66
  },
67
- "gitHead": "f4c320cc4cdfd3b1acb3ed1f5309f272b4f01da0"
67
+ "gitHead": "2fc08b78b3a67c5ce1531206c5cb186140b4cbf3"
68
68
  }