@movable/studio-framework 3.3.0 → 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 +19 -6
- package/dist/index.es.js.map +7 -0
- package/dist/index.js +19 -6
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1910,14 +1910,27 @@ const getYPosition = justifyContent => {
|
|
|
1910
1910
|
const RichTextSpan = ({
|
|
1911
1911
|
attributes,
|
|
1912
1912
|
insert,
|
|
1913
|
-
fitToOneLine
|
|
1913
|
+
fitToOneLine,
|
|
1914
|
+
link
|
|
1914
1915
|
}) => {
|
|
1915
1916
|
const whiteSpace = fitToOneLine ? 'nowrap' : 'pre-wrap';
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1917
|
+
|
|
1918
|
+
if (link) {
|
|
1919
|
+
return /*#__PURE__*/React__default['default'].createElement("a", {
|
|
1920
|
+
href: link,
|
|
1921
|
+
target: "_blank",
|
|
1922
|
+
rel: "noopener noreferrer",
|
|
1923
|
+
style: { ...normalizeRichTextStyles(attributes),
|
|
1924
|
+
whiteSpace
|
|
1925
|
+
}
|
|
1926
|
+
}, insert);
|
|
1927
|
+
} else {
|
|
1928
|
+
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
1929
|
+
style: { ...normalizeRichTextStyles(attributes),
|
|
1930
|
+
whiteSpace
|
|
1931
|
+
}
|
|
1932
|
+
}, insert);
|
|
1933
|
+
}
|
|
1921
1934
|
};
|
|
1922
1935
|
|
|
1923
1936
|
const isNewLine = ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@movable/studio-framework",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0-canary.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.
|
|
35
|
-
"@movable/studio-framework-test-helpers": "^3.
|
|
34
|
+
"@movable/framework-types": "^3.4.0-canary.0",
|
|
35
|
+
"@movable/studio-framework-test-helpers": "^3.4.0-canary.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": "
|
|
67
|
+
"gitHead": "139170fa454a898d64c1e92a564f0a7877019d6e"
|
|
68
68
|
}
|