box-annotations 5.2.1-beta.17 → 5.2.1-beta.19

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import './dist/annotations.css';
2
- import './dist/annotations.js';
2
+ import BoxAnnotations from './dist/annotations.js';
3
3
 
4
4
  export default BoxAnnotations;
package/package.json CHANGED
@@ -1,9 +1,14 @@
1
1
  {
2
2
  "name": "box-annotations",
3
- "version": "5.2.1-beta.17",
3
+ "version": "5.2.1-beta.19",
4
4
  "description": "Box Annotations",
5
5
  "author": "Box (https://www.box.com/)",
6
6
  "license": "SEE LICENSE IN LICENSE",
7
+ "sideEffects": [
8
+ "./dist/annotations.js",
9
+ "**/*.css",
10
+ "**/*.scss"
11
+ ],
7
12
  "repository": {
8
13
  "type": "git",
9
14
  "url": "git@github.com:box/box-annotations.git"
@@ -28,13 +33,13 @@
28
33
  "@babel/preset-react": "^7.25.9",
29
34
  "@babel/preset-typescript": "^7.25.9",
30
35
  "@box/frontend": "^10.0.0",
31
- "@box/blueprint-web": "^14.38.0",
32
- "@box/blueprint-web-assets": "^4.120.5",
33
- "@box/collaboration-popover": "^1.62.27",
36
+ "@box/blueprint-web": "^16.8.2",
37
+ "@box/blueprint-web-assets": "^5.5.0",
38
+ "@box/collaboration-popover": "^2.1.25",
34
39
  "@box/languages": "^1.1.0",
35
- "@box/readable-time": "^1.41.27",
36
- "@box/threaded-annotations": "^1.93.2",
37
- "@box/user-selector": "^1.76.27",
40
+ "@box/readable-time": "^2.1.25",
41
+ "@box/threaded-annotations": "^4.0.6",
42
+ "@box/user-selector": "^2.1.27",
38
43
  "@cfaester/enzyme-adapter-react-18": "^0.8.0",
39
44
  "@commitlint/cli": "^8.3.5",
40
45
  "@commitlint/config-conventional": "^8.2.0",
@@ -128,12 +133,12 @@
128
133
  "worker-farm": "^1.7.0"
129
134
  },
130
135
  "peerDependencies": {
131
- "@box/blueprint-web": "^14.38.0",
132
- "@box/blueprint-web-assets": "^4.120.5",
133
- "@box/collaboration-popover": "^1.62.27",
134
- "@box/readable-time": "^1.41.27",
135
- "@box/threaded-annotations": "^1.93.2",
136
- "@box/user-selector": "^1.76.27"
136
+ "@box/blueprint-web": "^16.8.2",
137
+ "@box/blueprint-web-assets": "^5.5.0",
138
+ "@box/collaboration-popover": "^2.1.25",
139
+ "@box/readable-time": "^2.1.25",
140
+ "@box/threaded-annotations": "^4.0.6",
141
+ "@box/user-selector": "^2.1.27"
137
142
  },
138
143
  "scripts": {
139
144
  "build": "yarn setup && yarn build:prod:dist",
@@ -179,8 +179,8 @@ const DrawingAnnotations = (props: Props): JSX.Element => {
179
179
  />
180
180
  )}
181
181
 
182
- {isCreating && hasPathGroups && drawingSVGGroup && canShowPopupToolbar && popupPortalEl &&
183
- ReactDOM.createPortal(
182
+ {isCreating && hasPathGroups && drawingSVGGroup && canShowPopupToolbar && (() => {
183
+ const toolbar = (
184
184
  <PopupDrawingToolbar
185
185
  ref={popupDrawingToolbarRef}
186
186
  canComment={hasDrawnPathGroups}
@@ -192,9 +192,10 @@ const DrawingAnnotations = (props: Props): JSX.Element => {
192
192
  onReply={handleReply}
193
193
  onUndo={handleUndo}
194
194
  reference={drawingSVGGroup}
195
- />,
196
- popupPortalEl,
197
- )}
195
+ />
196
+ );
197
+ return popupPortalEl ? ReactDOM.createPortal(toolbar, popupPortalEl) : toolbar;
198
+ })()}
198
199
  </>
199
200
  );
200
201
  };