@movable/studio-framework 3.4.2 → 3.5.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.js CHANGED
@@ -1622,6 +1622,7 @@ class StudioTool extends React__default['default'].Component {
1622
1622
 
1623
1623
  function trimTextOverflow(element) {
1624
1624
  const parentElement = element.parentElement;
1625
+ parentElement.style.overflowWrap = 'break-word';
1625
1626
  const parentBox = parentElement.getBoundingClientRect(); // It fits already; no need to resize.
1626
1627
 
1627
1628
  if (!overflowsParent$1(element, parentBox)) {
@@ -1691,8 +1692,7 @@ function findOverlappingElement(element, parentBox) {
1691
1692
 
1692
1693
  function overflowsParent$1(element, parentBox) {
1693
1694
  const selfBox = element.getBoundingClientRect();
1694
- const isOutside = !(selfBox.left >= parentBox.left && selfBox.right <= parentBox.right && selfBox.bottom <= parentBox.bottom && element.scrollHeight <= parentBox.height && element.scrollWidth <= parentBox.width);
1695
- return isOutside;
1695
+ return selfBox.bottom > parentBox.bottom;
1696
1696
  }
1697
1697
 
1698
1698
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movable/studio-framework",
3
- "version": "3.4.2",
3
+ "version": "3.5.0-canary.0",
4
4
  "description": "A Component library for reactive Studio apps.",
5
5
  "author": "Movable Ink",
6
6
  "repository": "movableink/studio-framework",
@@ -9,8 +9,8 @@
9
9
  "module": "dist/index.es.js",
10
10
  "jsnext:main": "dist/index.es.js",
11
11
  "scripts": {
12
- "test": "tsc && karma start --single-run",
13
- "develop-test": "karma start --autoWatch true",
12
+ "test": "tsc && npx karma start --single-run",
13
+ "develop-test": "npx karma start --autoWatch true",
14
14
  "build": "rollup -c",
15
15
  "start": "rollup -c -w",
16
16
  "prepublish": "yarn run build"
@@ -31,18 +31,20 @@
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.4.2",
35
- "@movable/studio-framework-test-helpers": "^3.4.2",
34
+ "@movable/framework-types": "^3.5.0-canary.0",
35
+ "@movable/studio-framework-test-helpers": "^3.5.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",
39
39
  "@types/react-dom": "^17.0.8",
40
40
  "cross-env": "^7.0.3",
41
41
  "htm": "^3.0.2",
42
- "karma": "^6.3.4",
42
+ "karma": "^6.4.4",
43
43
  "karma-chrome-launcher": "^3.1.0",
44
- "karma-qunit": "^4.1.2",
45
- "karma-rollup-preprocessor": "^7.0.7",
44
+ "karma-puppeteer-launcher": "^1.0.4",
45
+ "karma-qunit": "^4.2.0",
46
+ "karma-rollup-preprocessor": "^7.0.8",
47
+ "puppeteer": "^22.14.0",
46
48
  "qunit": "^2.16.0",
47
49
  "react": "^17.0.2",
48
50
  "react-dom": "^17.0.2",
@@ -64,5 +66,5 @@
64
66
  "volta": {
65
67
  "extends": "../../package.json"
66
68
  },
67
- "gitHead": "7b7c0cd166ace6b4ab6bd0331180fce1176fbdd6"
69
+ "gitHead": "a1e30a20251fd44185d22a791e0d783ef1f65817"
68
70
  }