box-annotations 4.0.1-beta.0 → 4.1.1-beta.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/annotations.css +1 -1
- package/dist/annotations.js +1 -1
- package/i18n/ja-JP.js +1 -1
- package/i18n/ja-JP.properties +1 -1
- package/package.json +20 -22
- package/src/highlight/highlightUtil.ts +5 -0
package/i18n/ja-JP.js
CHANGED
|
@@ -7,7 +7,7 @@ export default {
|
|
|
7
7
|
"ba.popups.cancel": "キャンセル",
|
|
8
8
|
"ba.popups.drawing.addComment": "コメントを追加",
|
|
9
9
|
"ba.popups.drawing.delete": "削除",
|
|
10
|
-
"ba.popups.drawing.redo": "
|
|
10
|
+
"ba.popups.drawing.redo": "やり直す",
|
|
11
11
|
"ba.popups.drawing.undo": "元に戻す",
|
|
12
12
|
"ba.popups.popupCursor.regionPrompt": "四角を描いてコメント",
|
|
13
13
|
"ba.popups.popupHighlight.promoter": "ハイライトとコメント",
|
package/i18n/ja-JP.properties
CHANGED
|
@@ -15,7 +15,7 @@ ba.popups.drawing.addComment = コメントを追加
|
|
|
15
15
|
# Button title for deleting a staged drawing
|
|
16
16
|
ba.popups.drawing.delete = 削除
|
|
17
17
|
# Button title for redoing a staged drawing
|
|
18
|
-
ba.popups.drawing.redo =
|
|
18
|
+
ba.popups.drawing.redo = やり直す
|
|
19
19
|
# Button title for undoing a staged drawing
|
|
20
20
|
ba.popups.drawing.undo = 元に戻す
|
|
21
21
|
# Prompt message following cursor in region annotations mode
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "box-annotations",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.1-beta.0",
|
|
4
4
|
"description": "Box Annotations",
|
|
5
5
|
"author": "Box (https://www.box.com/)",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -15,27 +15,6 @@
|
|
|
15
15
|
"node": ">=10.x",
|
|
16
16
|
"yarn": ">=1.10.x"
|
|
17
17
|
},
|
|
18
|
-
"dependencies": {
|
|
19
|
-
"@formatjs/intl-pluralrules": "^1.5.5",
|
|
20
|
-
"@formatjs/intl-relativetimeformat": "^4.5.12",
|
|
21
|
-
"@popperjs/core": "^2.4.0",
|
|
22
|
-
"@reduxjs/toolkit": "^1.3.5",
|
|
23
|
-
"axios": "^0.19.2",
|
|
24
|
-
"box-ui-elements": "^12.1.0-beta.42",
|
|
25
|
-
"classnames": "^2.2.5",
|
|
26
|
-
"draft-js": "0.10.5",
|
|
27
|
-
"formik": "^2.1.4",
|
|
28
|
-
"lodash": "^4.17.15",
|
|
29
|
-
"react": "^17.0.1",
|
|
30
|
-
"react-dom": "^17.0.1",
|
|
31
|
-
"react-intl": "^3.12.0",
|
|
32
|
-
"react-redux": "^7.2.2",
|
|
33
|
-
"react-tether": "1.0.5",
|
|
34
|
-
"react-textarea-autosize": "^7.1.2",
|
|
35
|
-
"redux": "^4.0.5",
|
|
36
|
-
"scroll-into-view-if-needed": "^2.2.24",
|
|
37
|
-
"uuid": "^8.3.1"
|
|
38
|
-
},
|
|
39
18
|
"devDependencies": {
|
|
40
19
|
"@babel/cli": "^7.8.4",
|
|
41
20
|
"@babel/core": "^7.9.0",
|
|
@@ -51,6 +30,10 @@
|
|
|
51
30
|
"@box/languages": "^1.1.0",
|
|
52
31
|
"@commitlint/cli": "^8.3.5",
|
|
53
32
|
"@commitlint/config-conventional": "^8.2.0",
|
|
33
|
+
"@formatjs/intl-pluralrules": "^1.5.5",
|
|
34
|
+
"@formatjs/intl-relativetimeformat": "^4.5.12",
|
|
35
|
+
"@popperjs/core": "^2.4.0",
|
|
36
|
+
"@reduxjs/toolkit": "^1.3.5",
|
|
54
37
|
"@types/classnames": "^2.2.10",
|
|
55
38
|
"@types/draft-js": "^0.10.40",
|
|
56
39
|
"@types/enzyme": "^3.10.5",
|
|
@@ -64,6 +47,7 @@
|
|
|
64
47
|
"@typescript-eslint/parser": "^2.29.0",
|
|
65
48
|
"@wojtekmaj/enzyme-adapter-react-17": "^0.4.1",
|
|
66
49
|
"autoprefixer": "^9.7.6",
|
|
50
|
+
"axios": "^0.24.0",
|
|
67
51
|
"babel-eslint": "^10.1.0",
|
|
68
52
|
"babel-jest": "^24.9.0",
|
|
69
53
|
"babel-loader": "^8.1.0",
|
|
@@ -71,11 +55,14 @@
|
|
|
71
55
|
"babel-plugin-react-intl": "^7.5.1",
|
|
72
56
|
"babel-plugin-transform-require-ignore": "^0.1.1",
|
|
73
57
|
"box-node-sdk": "^1.33.0",
|
|
58
|
+
"box-ui-elements": "^15.0.0-beta.6",
|
|
74
59
|
"circular-dependency-plugin": "^5.2.0",
|
|
60
|
+
"classnames": "^2.2.5",
|
|
75
61
|
"conventional-github-releaser": "^3.1.3",
|
|
76
62
|
"core-js": "^3.6.5",
|
|
77
63
|
"css-loader": "^3.5.2",
|
|
78
64
|
"cypress": "^4.4.1",
|
|
65
|
+
"draft-js": "0.10.5",
|
|
79
66
|
"enzyme": "^3.11.0",
|
|
80
67
|
"enzyme-to-json": "^3.4.4",
|
|
81
68
|
"eslint": "^6.7.2",
|
|
@@ -92,11 +79,13 @@
|
|
|
92
79
|
"eslint-plugin-prettier": "^3.1.3",
|
|
93
80
|
"eslint-plugin-react": "^7.19.0",
|
|
94
81
|
"eslint-plugin-react-hooks": "^1.7.0",
|
|
82
|
+
"formik": "^2.1.4",
|
|
95
83
|
"husky": "^3.1.0",
|
|
96
84
|
"jest": "^24.9.0",
|
|
97
85
|
"jest-canvas-mock": "^2.2.0",
|
|
98
86
|
"jest-environment-jsdom-sixteen": "^1.0.3",
|
|
99
87
|
"lint-staged": "^9.5.0",
|
|
88
|
+
"lodash": "^4.17.15",
|
|
100
89
|
"mini-css-extract-plugin": "^0.9.0",
|
|
101
90
|
"node-sass": "^4.13.1",
|
|
102
91
|
"npm-run-all": "^4.1.5",
|
|
@@ -104,7 +93,15 @@
|
|
|
104
93
|
"postcss-loader": "^3.0.0",
|
|
105
94
|
"prettier": "^1.19.1",
|
|
106
95
|
"raw-loader": "^4.0.1",
|
|
96
|
+
"react": "^17.0.1",
|
|
97
|
+
"react-dom": "^17.0.1",
|
|
98
|
+
"react-intl": "^3.12.0",
|
|
99
|
+
"react-redux": "^7.2.2",
|
|
100
|
+
"react-tether": "1.0.5",
|
|
101
|
+
"react-textarea-autosize": "^7.1.2",
|
|
102
|
+
"redux": "^4.0.5",
|
|
107
103
|
"sass-loader": "^8.0.2",
|
|
104
|
+
"scroll-into-view-if-needed": "^2.2.24",
|
|
108
105
|
"style-loader": "^1.1.4",
|
|
109
106
|
"stylelint": "^12.0.0",
|
|
110
107
|
"stylelint-config-rational-order": "^0.1.2",
|
|
@@ -112,6 +109,7 @@
|
|
|
112
109
|
"stylelint-order": "^3.1.1",
|
|
113
110
|
"typescript": "^3.8.3",
|
|
114
111
|
"uglifyjs-webpack-plugin": "^2.2.0",
|
|
112
|
+
"uuid": "^8.3.1",
|
|
115
113
|
"wait-on": "^4.0.2",
|
|
116
114
|
"webpack": "^4.43.0",
|
|
117
115
|
"webpack-cli": "^3.3.11",
|
|
@@ -10,6 +10,11 @@ export const getBoundingRect = (shapes: Shape[]): Shape => {
|
|
|
10
10
|
const x2 = x + width;
|
|
11
11
|
const y2 = y + height;
|
|
12
12
|
|
|
13
|
+
// Ignore empty rects with a width or height of 0
|
|
14
|
+
if (width === 0 || height === 0) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
|
|
13
18
|
if (x < minX) {
|
|
14
19
|
minX = x;
|
|
15
20
|
}
|