box-annotations 5.3.0 → 5.3.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.
Files changed (94) hide show
  1. package/dist/annotations.css +1 -1
  2. package/dist/annotations.js +1 -1
  3. package/dist/annotations.js.LICENSE.txt +0 -9
  4. package/i18n/bn-IN.js +6 -0
  5. package/i18n/bn-IN.properties +12 -0
  6. package/i18n/da-DK.js +6 -0
  7. package/i18n/da-DK.properties +12 -0
  8. package/i18n/de-DE.js +6 -0
  9. package/i18n/de-DE.properties +12 -0
  10. package/i18n/en-AU.js +6 -0
  11. package/i18n/en-AU.properties +12 -0
  12. package/i18n/en-CA.js +6 -0
  13. package/i18n/en-CA.properties +12 -0
  14. package/i18n/en-GB.js +6 -0
  15. package/i18n/en-GB.properties +12 -0
  16. package/i18n/es-419.js +6 -0
  17. package/i18n/es-419.properties +12 -0
  18. package/i18n/es-ES.js +6 -0
  19. package/i18n/es-ES.properties +12 -0
  20. package/i18n/fi-FI.js +6 -0
  21. package/i18n/fi-FI.properties +12 -0
  22. package/i18n/fr-CA.js +6 -0
  23. package/i18n/fr-CA.properties +12 -0
  24. package/i18n/fr-FR.js +6 -0
  25. package/i18n/fr-FR.properties +12 -0
  26. package/i18n/hi-IN.js +6 -0
  27. package/i18n/hi-IN.properties +12 -0
  28. package/i18n/it-IT.js +6 -0
  29. package/i18n/it-IT.properties +12 -0
  30. package/i18n/ja-JP.js +7 -1
  31. package/i18n/ja-JP.properties +13 -1
  32. package/i18n/ko-KR.js +6 -0
  33. package/i18n/ko-KR.properties +12 -0
  34. package/i18n/nb-NO.js +6 -0
  35. package/i18n/nb-NO.properties +12 -0
  36. package/i18n/nl-NL.js +6 -0
  37. package/i18n/nl-NL.properties +12 -0
  38. package/i18n/pl-PL.js +6 -0
  39. package/i18n/pl-PL.properties +12 -0
  40. package/i18n/pt-BR.js +6 -0
  41. package/i18n/pt-BR.properties +12 -0
  42. package/i18n/ru-RU.js +6 -0
  43. package/i18n/ru-RU.properties +12 -0
  44. package/i18n/sv-SE.js +6 -0
  45. package/i18n/sv-SE.properties +12 -0
  46. package/i18n/tr-TR.js +6 -0
  47. package/i18n/tr-TR.properties +12 -0
  48. package/i18n/zh-CN.js +6 -0
  49. package/i18n/zh-CN.properties +12 -0
  50. package/i18n/zh-TW.js +6 -0
  51. package/i18n/zh-TW.properties +12 -0
  52. package/package.json +23 -22
  53. package/src/BoxAnnotations.ts +1 -1
  54. package/src/adapters/threadedAnnotationsAdapters.ts +10 -2
  55. package/src/boundingBoxHighlight/BoundingBoxHighlightContainer.tsx +4 -1
  56. package/src/common/BaseAnnotator.scss +1 -1
  57. package/src/common/DeselectListener.tsx +1 -1
  58. package/src/components/BoundingBoxHighlight/BoundingBoxHighlightNav.scss +3 -3
  59. package/src/components/BoundingBoxHighlight/BoundingBoxHighlightRect.scss +11 -6
  60. package/src/components/Popups/PopupBase.scss +2 -2
  61. package/src/components/Popups/PopupDrawingToolbar.scss +4 -4
  62. package/src/components/Popups/PopupList.scss +1 -1
  63. package/src/components/Popups/PopupV2.scss +2 -2
  64. package/src/components/Popups/PopupV2.tsx +30 -43
  65. package/src/components/ReplyForm/ReplyForm.tsx +1 -8
  66. package/src/constants.ts +2 -3
  67. package/src/document/DocumentAnnotator.ts +28 -5
  68. package/src/document/docUtil.ts +7 -1
  69. package/src/drawing/DrawingAnnotations.tsx +24 -24
  70. package/src/drawing/DrawingCursor.ts +2 -1
  71. package/src/drawing/DrawingManager.tsx +9 -1
  72. package/src/highlight/HighlightAnnotations.tsx +23 -22
  73. package/src/highlight/HighlightCreator.scss +9 -2
  74. package/src/media/MediaAnnotator.ts +38 -16
  75. package/src/popup/PopupLayer.tsx +1 -5
  76. package/src/region/RegionAnnotations.tsx +2 -3
  77. package/src/region/RegionCreation.tsx +4 -1
  78. package/src/region/RegionCreationManager.tsx +8 -1
  79. package/src/region/RegionCreator.scss +9 -3
  80. package/src/region/RegionManager.tsx +8 -1
  81. package/src/region/RegionRect.scss +17 -9
  82. package/src/store/annotations/actions.ts +86 -104
  83. package/src/store/annotations/reducer.ts +4 -4
  84. package/src/store/creator/selectors.ts +6 -6
  85. package/src/store/eventing/create.ts +4 -2
  86. package/src/store/eventing/delete.ts +4 -5
  87. package/src/store/eventing/middleware.ts +13 -11
  88. package/src/store/eventing/replyCreate.ts +6 -10
  89. package/src/store/eventing/replyDelete.ts +5 -9
  90. package/src/store/eventing/replyUpdate.ts +6 -10
  91. package/src/store/eventing/update.ts +5 -6
  92. package/src/store/highlight/actions.ts +43 -41
  93. package/src/test-utils/videoAnnotations.tsx +11 -11
  94. package/src/utils/useVideoTiming.ts +9 -13
@@ -8,6 +8,18 @@ ba.annotationsLoadError = Przepraszamy, nie można wczytać uwag dla tego pliku.
8
8
  ba.annotationsPost = Opublikuj
9
9
  # Label for the save button
10
10
  ba.annotationsSave = Zapisz
11
+ # Aria label for the button to view the next reference
12
+ ba.boundingBoxHighlight.viewNextReference = Wyświetl następne odniesienie
13
+ # Aria label for the button to view the previous reference
14
+ ba.boundingBoxHighlight.viewPrevReference = Wyświetl poprzednie odniesienie
15
+ # Aria label description for reply popup
16
+ ba.popup.reply.comment = Komentarz
17
+ # Aria label description for annotation comment field
18
+ ba.popup.reply.field = Wpisz komentarz
19
+ # Aria label for mention selector loading state
20
+ ba.popup.reply.mentionLoading = Trwa wczytywanie użytkowników…
21
+ # Aria role description for mention user selector
22
+ ba.popup.reply.mentionSelector = Wspomnij o współpracowniku
11
23
  # Button label for cancelling the creation of a description, comment, or reply
12
24
  ba.popups.cancel = Anuluj
13
25
  # Button label for adding a comment in the drawing toolbar
package/i18n/pt-BR.js CHANGED
@@ -4,6 +4,12 @@ export default {
4
4
  "ba.annotationsLoadError": "Não foi possível carregar as anotações deste arquivo.",
5
5
  "ba.annotationsPost": "Publicar",
6
6
  "ba.annotationsSave": "Salvar",
7
+ "ba.boundingBoxHighlight.viewNextReference": "Visualizar próxima referência",
8
+ "ba.boundingBoxHighlight.viewPrevReference": "Visualizar referência anterior",
9
+ "ba.popup.reply.comment": "Comentário",
10
+ "ba.popup.reply.field": "Digite um comentário",
11
+ "ba.popup.reply.mentionLoading": "Carregando usuários…",
12
+ "ba.popup.reply.mentionSelector": "Mencionar um colaborador",
7
13
  "ba.popups.cancel": "Cancelar",
8
14
  "ba.popups.drawing.addComment": "Adicionar comentário",
9
15
  "ba.popups.drawing.delete": "Excluir",
@@ -8,6 +8,18 @@ ba.annotationsLoadError = Não foi possível carregar as anotações deste arqui
8
8
  ba.annotationsPost = Publicar
9
9
  # Label for the save button
10
10
  ba.annotationsSave = Salvar
11
+ # Aria label for the button to view the next reference
12
+ ba.boundingBoxHighlight.viewNextReference = Visualizar próxima referência
13
+ # Aria label for the button to view the previous reference
14
+ ba.boundingBoxHighlight.viewPrevReference = Visualizar referência anterior
15
+ # Aria label description for reply popup
16
+ ba.popup.reply.comment = Comentário
17
+ # Aria label description for annotation comment field
18
+ ba.popup.reply.field = Digite um comentário
19
+ # Aria label for mention selector loading state
20
+ ba.popup.reply.mentionLoading = Carregando usuários…
21
+ # Aria role description for mention user selector
22
+ ba.popup.reply.mentionSelector = Mencionar um colaborador
11
23
  # Button label for cancelling the creation of a description, comment, or reply
12
24
  ba.popups.cancel = Cancelar
13
25
  # Button label for adding a comment in the drawing toolbar
package/i18n/ru-RU.js CHANGED
@@ -4,6 +4,12 @@ export default {
4
4
  "ba.annotationsLoadError": "Сбой при загрузке примечаний для этого файла.",
5
5
  "ba.annotationsPost": "Отправить",
6
6
  "ba.annotationsSave": "Сохранить",
7
+ "ba.boundingBoxHighlight.viewNextReference": "Посмотреть следующую ссылку",
8
+ "ba.boundingBoxHighlight.viewPrevReference": "Посмотреть предыдущую ссылку",
9
+ "ba.popup.reply.comment": "Комментарий",
10
+ "ba.popup.reply.field": "Введите комментарий",
11
+ "ba.popup.reply.mentionLoading": "Загрузка пользователей…",
12
+ "ba.popup.reply.mentionSelector": "Упомянуть соавтора",
7
13
  "ba.popups.cancel": "Отмена",
8
14
  "ba.popups.drawing.addComment": "Добавить комментарий",
9
15
  "ba.popups.drawing.delete": "Удалить",
@@ -8,6 +8,18 @@ ba.annotationsLoadError = Сбой при загрузке примечаний
8
8
  ba.annotationsPost = Отправить
9
9
  # Label for the save button
10
10
  ba.annotationsSave = Сохранить
11
+ # Aria label for the button to view the next reference
12
+ ba.boundingBoxHighlight.viewNextReference = Посмотреть следующую ссылку
13
+ # Aria label for the button to view the previous reference
14
+ ba.boundingBoxHighlight.viewPrevReference = Посмотреть предыдущую ссылку
15
+ # Aria label description for reply popup
16
+ ba.popup.reply.comment = Комментарий
17
+ # Aria label description for annotation comment field
18
+ ba.popup.reply.field = Введите комментарий
19
+ # Aria label for mention selector loading state
20
+ ba.popup.reply.mentionLoading = Загрузка пользователей…
21
+ # Aria role description for mention user selector
22
+ ba.popup.reply.mentionSelector = Упомянуть соавтора
11
23
  # Button label for cancelling the creation of a description, comment, or reply
12
24
  ba.popups.cancel = Отмена
13
25
  # Button label for adding a comment in the drawing toolbar
package/i18n/sv-SE.js CHANGED
@@ -4,6 +4,12 @@ export default {
4
4
  "ba.annotationsLoadError": "Det gick inte att ladda anteckningar för den här filen.",
5
5
  "ba.annotationsPost": "Publicera",
6
6
  "ba.annotationsSave": "Spara",
7
+ "ba.boundingBoxHighlight.viewNextReference": "Visa nästa referens",
8
+ "ba.boundingBoxHighlight.viewPrevReference": "Visa föregående referens",
9
+ "ba.popup.reply.comment": "Kommentar",
10
+ "ba.popup.reply.field": "Skriv en kommentar",
11
+ "ba.popup.reply.mentionLoading": "Läser in användare …",
12
+ "ba.popup.reply.mentionSelector": "Nämn en medarbetare",
7
13
  "ba.popups.cancel": "Avbryt",
8
14
  "ba.popups.drawing.addComment": "Lägg till kommentar",
9
15
  "ba.popups.drawing.delete": "Radera",
@@ -8,6 +8,18 @@ ba.annotationsLoadError = Det gick inte att ladda anteckningar för den här fil
8
8
  ba.annotationsPost = Publicera
9
9
  # Label for the save button
10
10
  ba.annotationsSave = Spara
11
+ # Aria label for the button to view the next reference
12
+ ba.boundingBoxHighlight.viewNextReference = Visa nästa referens
13
+ # Aria label for the button to view the previous reference
14
+ ba.boundingBoxHighlight.viewPrevReference = Visa föregående referens
15
+ # Aria label description for reply popup
16
+ ba.popup.reply.comment = Kommentar
17
+ # Aria label description for annotation comment field
18
+ ba.popup.reply.field = Skriv en kommentar
19
+ # Aria label for mention selector loading state
20
+ ba.popup.reply.mentionLoading = Läser in användare …
21
+ # Aria role description for mention user selector
22
+ ba.popup.reply.mentionSelector = Nämn en medarbetare
11
23
  # Button label for cancelling the creation of a description, comment, or reply
12
24
  ba.popups.cancel = Avbryt
13
25
  # Button label for adding a comment in the drawing toolbar
package/i18n/tr-TR.js CHANGED
@@ -4,6 +4,12 @@ export default {
4
4
  "ba.annotationsLoadError": "Üzgünüz, açıklamalar bu dosya için yüklenemedi.",
5
5
  "ba.annotationsPost": "Gönder",
6
6
  "ba.annotationsSave": "Kaydet",
7
+ "ba.boundingBoxHighlight.viewNextReference": "Sonraki referansı görüntüleyin",
8
+ "ba.boundingBoxHighlight.viewPrevReference": "Önceki referansı görüntüleyin",
9
+ "ba.popup.reply.comment": "Yorum",
10
+ "ba.popup.reply.field": "Bir yorum yazın",
11
+ "ba.popup.reply.mentionLoading": "Kullanıcılar yükleniyor…",
12
+ "ba.popup.reply.mentionSelector": "Bir ortak çalışandan bahsedin",
7
13
  "ba.popups.cancel": "İptal",
8
14
  "ba.popups.drawing.addComment": "Yorum Ekle",
9
15
  "ba.popups.drawing.delete": "Sil",
@@ -8,6 +8,18 @@ ba.annotationsLoadError = Üzgünüz, açıklamalar bu dosya için yüklenemedi.
8
8
  ba.annotationsPost = Gönder
9
9
  # Label for the save button
10
10
  ba.annotationsSave = Kaydet
11
+ # Aria label for the button to view the next reference
12
+ ba.boundingBoxHighlight.viewNextReference = Sonraki referansı görüntüleyin
13
+ # Aria label for the button to view the previous reference
14
+ ba.boundingBoxHighlight.viewPrevReference = Önceki referansı görüntüleyin
15
+ # Aria label description for reply popup
16
+ ba.popup.reply.comment = Yorum
17
+ # Aria label description for annotation comment field
18
+ ba.popup.reply.field = Bir yorum yazın
19
+ # Aria label for mention selector loading state
20
+ ba.popup.reply.mentionLoading = Kullanıcılar yükleniyor…
21
+ # Aria role description for mention user selector
22
+ ba.popup.reply.mentionSelector = Bir ortak çalışandan bahsedin
11
23
  # Button label for cancelling the creation of a description, comment, or reply
12
24
  ba.popups.cancel = İptal
13
25
  # Button label for adding a comment in the drawing toolbar
package/i18n/zh-CN.js CHANGED
@@ -4,6 +4,12 @@ export default {
4
4
  "ba.annotationsLoadError": "抱歉,无法为此文件加载批注。",
5
5
  "ba.annotationsPost": "发布",
6
6
  "ba.annotationsSave": "保存",
7
+ "ba.boundingBoxHighlight.viewNextReference": "查看下一个引用",
8
+ "ba.boundingBoxHighlight.viewPrevReference": "查看先前引用",
9
+ "ba.popup.reply.comment": "评论",
10
+ "ba.popup.reply.field": "键入注释",
11
+ "ba.popup.reply.mentionLoading": "正在加载用户…",
12
+ "ba.popup.reply.mentionSelector": "提及协作者",
7
13
  "ba.popups.cancel": "取消",
8
14
  "ba.popups.drawing.addComment": "添加评论",
9
15
  "ba.popups.drawing.delete": "删除",
@@ -8,6 +8,18 @@ ba.annotationsLoadError = 抱歉,无法为此文件加载批注。
8
8
  ba.annotationsPost = 发布
9
9
  # Label for the save button
10
10
  ba.annotationsSave = 保存
11
+ # Aria label for the button to view the next reference
12
+ ba.boundingBoxHighlight.viewNextReference = 查看下一个引用
13
+ # Aria label for the button to view the previous reference
14
+ ba.boundingBoxHighlight.viewPrevReference = 查看先前引用
15
+ # Aria label description for reply popup
16
+ ba.popup.reply.comment = 评论
17
+ # Aria label description for annotation comment field
18
+ ba.popup.reply.field = 键入注释
19
+ # Aria label for mention selector loading state
20
+ ba.popup.reply.mentionLoading = 正在加载用户…
21
+ # Aria role description for mention user selector
22
+ ba.popup.reply.mentionSelector = 提及协作者
11
23
  # Button label for cancelling the creation of a description, comment, or reply
12
24
  ba.popups.cancel = 取消
13
25
  # Button label for adding a comment in the drawing toolbar
package/i18n/zh-TW.js CHANGED
@@ -4,6 +4,12 @@ export default {
4
4
  "ba.annotationsLoadError": "很抱歉,無法載入此檔案的註解。",
5
5
  "ba.annotationsPost": "張貼",
6
6
  "ba.annotationsSave": "儲存",
7
+ "ba.boundingBoxHighlight.viewNextReference": "檢視下一個參考項目",
8
+ "ba.boundingBoxHighlight.viewPrevReference": "檢視先前的參考項目",
9
+ "ba.popup.reply.comment": "留言",
10
+ "ba.popup.reply.field": "鍵入留言",
11
+ "ba.popup.reply.mentionLoading": "正在載入使用者…",
12
+ "ba.popup.reply.mentionSelector": "提及共同作業者",
7
13
  "ba.popups.cancel": "取消",
8
14
  "ba.popups.drawing.addComment": "新增留言",
9
15
  "ba.popups.drawing.delete": "刪除",
@@ -8,6 +8,18 @@ ba.annotationsLoadError = 很抱歉,無法載入此檔案的註解。
8
8
  ba.annotationsPost = 張貼
9
9
  # Label for the save button
10
10
  ba.annotationsSave = 儲存
11
+ # Aria label for the button to view the next reference
12
+ ba.boundingBoxHighlight.viewNextReference = 檢視下一個參考項目
13
+ # Aria label for the button to view the previous reference
14
+ ba.boundingBoxHighlight.viewPrevReference = 檢視先前的參考項目
15
+ # Aria label description for reply popup
16
+ ba.popup.reply.comment = 留言
17
+ # Aria label description for annotation comment field
18
+ ba.popup.reply.field = 鍵入留言
19
+ # Aria label for mention selector loading state
20
+ ba.popup.reply.mentionLoading = 正在載入使用者…
21
+ # Aria role description for mention user selector
22
+ ba.popup.reply.mentionSelector = 提及共同作業者
11
23
  # Button label for cancelling the creation of a description, comment, or reply
12
24
  ba.popups.cancel = 取消
13
25
  # Button label for adding a comment in the drawing toolbar
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "box-annotations",
3
- "version": "5.3.0",
3
+ "version": "5.3.1-beta.0",
4
4
  "description": "Box Annotations",
5
5
  "author": "Box (https://www.box.com/)",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -36,7 +36,7 @@
36
36
  "@box/blueprint-web-assets": "^5.5.12",
37
37
  "@box/collaboration-popover": "^2.1.32",
38
38
  "@box/combobox-with-api": "^1.42.22",
39
- "@box/frontend": "^10.0.0",
39
+ "@box/frontend": "^11.0.1",
40
40
  "@box/item-icon": "^3.2.0",
41
41
  "@box/languages": "^1.1.0",
42
42
  "@box/readable-time": "^2.1.32",
@@ -44,8 +44,8 @@
44
44
  "@box/types": "^2.1.8",
45
45
  "@box/user-selector": "^2.1.35",
46
46
  "@cfaester/enzyme-adapter-react-18": "^0.8.0",
47
- "@commitlint/cli": "^8.3.5",
48
- "@commitlint/config-conventional": "^8.2.0",
47
+ "@commitlint/cli": "^19.8.0",
48
+ "@commitlint/config-conventional": "^19.8.0",
49
49
  "@formatjs/intl-pluralrules": "^1.5.5",
50
50
  "@formatjs/intl-relativetimeformat": "^4.5.12",
51
51
  "@popperjs/core": "^2.4.0",
@@ -65,24 +65,23 @@
65
65
  "@typescript-eslint/eslint-plugin": "^7.3.1",
66
66
  "@typescript-eslint/parser": "^7.3.1",
67
67
  "autoprefixer": "^10.4.19",
68
- "axios": "^0.24.0",
69
- "babel-eslint": "^10.1.0",
68
+ "axios": "^0.33.0",
70
69
  "babel-jest": "^29.7.0",
71
70
  "babel-loader": "^9.2.1",
72
71
  "babel-plugin-istanbul": "^6.0.0",
73
72
  "babel-plugin-react-intl": "^7.5.1",
74
73
  "babel-plugin-transform-require-ignore": "^0.1.1",
75
- "box-node-sdk": "^1.33.0",
76
74
  "box-ui-elements": "^20.0.0",
77
75
  "circular-dependency-plugin": "^5.2.0",
78
76
  "classnames": "^2.2.5",
79
77
  "clsx": "^2.1.1",
80
- "conventional-github-releaser": "^3.1.3",
78
+ "conventional-changelog": "^8.1.3",
79
+ "conventional-changelog-conventionalcommits": "^10.3.0",
81
80
  "core-js": "^3.38.1",
82
81
  "css-loader": "^7.1.2",
83
- "css-minimizer-webpack-plugin": "^7.0.4",
82
+ "css-minimizer-webpack-plugin": "^8.0.0",
84
83
  "cypress": "^15.20.1",
85
- "draft-js": "0.10.5",
84
+ "draft-js": "^0.11.7",
86
85
  "enzyme": "^3.11.0",
87
86
  "enzyme-to-json": "^3.4.4",
88
87
  "eslint": "^8.57.0",
@@ -99,7 +98,7 @@
99
98
  "eslint-plugin-prettier": "^5.2.1",
100
99
  "eslint-plugin-react": "^7.34.3",
101
100
  "eslint-plugin-react-hooks": "^4.6.0",
102
- "formik": "^2.1.4",
101
+ "formik": "^2.4.9",
103
102
  "husky": "^3.1.0",
104
103
  "jest": "^29.7.0",
105
104
  "jest-canvas-mock": "^2.5.2",
@@ -108,8 +107,9 @@
108
107
  "lodash": "^4.17.15",
109
108
  "mini-css-extract-plugin": "^2.10.1",
110
109
  "npm-run-all": "^4.1.5",
110
+ "postcss": "^8.5.18",
111
111
  "postcss-loader": "^8.1.1",
112
- "prettier": "^1.19.1",
112
+ "prettier": "^3.2.5",
113
113
  "react": "18.3.1",
114
114
  "react-dom": "18.3.1",
115
115
  "react-intl": "6.4.2",
@@ -118,21 +118,21 @@
118
118
  "react-textarea-autosize": "^7.1.2",
119
119
  "redux": "^4.0.5",
120
120
  "regenerator-runtime": "^0.13.9",
121
- "sass": "^1.64.1",
121
+ "sass": "1.77.6",
122
122
  "sass-loader": "^16.0.4",
123
123
  "scroll-into-view-if-needed": "^2.2.24",
124
124
  "style-loader": "^4.0.0",
125
- "stylelint": "^12.0.0",
126
- "stylelint-config-rational-order": "^0.1.2",
127
- "stylelint-config-standard": "^19.0.0",
128
- "stylelint-order": "^3.1.1",
125
+ "stylelint": "^16.26.1",
126
+ "stylelint-config-standard": "^38.0.0",
127
+ "stylelint-config-standard-scss": "^14.0.0",
128
+ "stylelint-order": "^6.0.4",
129
129
  "tabbable": "^1.1.3",
130
- "typescript": "4.9.5",
130
+ "typescript": "5.2.2",
131
131
  "uuid": "^8.3.1",
132
132
  "wait-on": "^9.0.5",
133
133
  "webpack": "^5.105.4",
134
134
  "webpack-cli": "^5.1.4",
135
- "webpack-dev-server": "^5.2.3",
135
+ "webpack-dev-server": "^5.2.6",
136
136
  "worker-farm": "^1.7.0"
137
137
  },
138
138
  "peerDependencies": {
@@ -144,7 +144,8 @@
144
144
  "@box/readable-time": "^2.1.32",
145
145
  "@box/threaded-annotations": "^4.11.0",
146
146
  "@box/types": "^2.1.8",
147
- "@box/user-selector": "^2.1.35"
147
+ "@box/user-selector": "^2.1.35",
148
+ "axios": "^0.33.0"
148
149
  },
149
150
  "scripts": {
150
151
  "build": "yarn setup && yarn build:prod:dist",
@@ -157,7 +158,7 @@
157
158
  "cy:wait": "wait-on http-get://127.0.0.1:8001",
158
159
  "lint": "npm-run-all lint:*",
159
160
  "lint:js": "eslint .",
160
- "lint:scss": "stylelint \"src/**/*.scss\" --syntax scss",
161
+ "lint:scss": "stylelint \"src/**/*.scss\"",
161
162
  "lint:ts": "tsc && eslint --ext=.tsx,.ts --max-warnings=0 .",
162
163
  "release:cdn": "yarn setup; node ./scripts/prod.js",
163
164
  "release:custom": "scripts/release.sh -c",
@@ -185,6 +186,6 @@
185
186
  "**/react-intl/**/@types/react": "^18.3.12",
186
187
  "**/@types/react": "^18.3.12",
187
188
  "**/@types/react-dom": "^18.2.0",
188
- "acorn": "8.14.0"
189
+ "draft-js/immutable": "^3.8.3"
189
190
  }
190
191
  }
@@ -70,7 +70,7 @@ const ANNOTATORS: Annotator[] = [
70
70
  CONSTRUCTOR: MediaAnnotator,
71
71
  NAME: 'Media',
72
72
  TYPES: [Type.region],
73
- VIEWERS: ['Dash','MP4'],
73
+ VIEWERS: ['Dash', 'MP4'],
74
74
  },
75
75
  ];
76
76
 
@@ -1,4 +1,10 @@
1
- import type { DocumentNodeV2, MentionNodeV2, ParagraphNodeV2, TextMessageTypeV2, TextNodeV2 } from '@box/threaded-annotations';
1
+ import type {
2
+ DocumentNodeV2,
3
+ MentionNodeV2,
4
+ ParagraphNodeV2,
5
+ TextMessageTypeV2,
6
+ TextNodeV2,
7
+ } from '@box/threaded-annotations';
2
8
  import { parseMessageMarkdown } from '@box/threaded-annotations';
3
9
 
4
10
  import type { Annotation, Collaborator, Reply, UserMini } from '../@types';
@@ -151,7 +157,9 @@ export const annotationToMessages = (annotation: Annotation, isRichTextEnabled =
151
157
  /**
152
158
  * Converts a box-annotations Collaborator to a @box/user-selector UserContactType.
153
159
  */
154
- export const collaboratorToUserContact = (collaborator: Collaborator): {
160
+ export const collaboratorToUserContact = (
161
+ collaborator: Collaborator,
162
+ ): {
155
163
  email: string;
156
164
  id: number;
157
165
  name: string;
@@ -15,7 +15,10 @@ export type Props = {
15
15
  location: number;
16
16
  };
17
17
 
18
- const mapStateToProps = (state: AppState, { location }: Props): {
18
+ const mapStateToProps = (
19
+ state: AppState,
20
+ { location }: Props,
21
+ ): {
19
22
  allBoundingBoxes: BoundingBox[];
20
23
  boundingBoxes: BoundingBox[];
21
24
  selectedId: string | null;
@@ -35,7 +35,7 @@
35
35
  pointer-events: none;
36
36
 
37
37
  .ba-Popup,
38
- .ba-PopupV2 {
38
+ .ba-PopupAnnotation {
39
39
  z-index: 150;
40
40
  pointer-events: auto;
41
41
  }
@@ -8,7 +8,7 @@ export default function DeselectListener(): null {
8
8
  React.useEffect(() => {
9
9
  const handleMouseDown = (event: MouseEvent): void => {
10
10
  // Popup is portaled outside .ba-Layer; native mousedown still bubbles here.
11
- if ((event.target as Element | null)?.closest?.('.ba-PopupV2, .ba-Popup')) return;
11
+ if ((event.target as Element | null)?.closest?.('.ba-PopupAnnotation, .ba-Popup')) return;
12
12
  dispatch(setActiveAnnotationIdAction(null));
13
13
  };
14
14
 
@@ -1,5 +1,5 @@
1
1
  $ba-BoundingBoxHighlightNav-bg: #fff;
2
- $ba-BoundingBoxHighlightNav-shadow: 0 6px 20px rgba(0, 0, 0, .1);
2
+ $ba-BoundingBoxHighlightNav-shadow: 0 6px 20px rgb(0 0 0 / 10%);
3
3
  $ba-BoundingBoxHighlightNav-arrow: #909090;
4
4
  $ba-BoundingBoxHighlightNav-border: #e8e8e8;
5
5
  $ba-BoundingBoxHighlightNav-counter: #222;
@@ -45,11 +45,11 @@ $ba-BoundingBoxHighlightNav-counter: #222;
45
45
  }
46
46
 
47
47
  &:hover:not(:disabled) {
48
- background: rgba(0, 0, 0, .06);
48
+ background: rgb(0 0 0 / 6%);
49
49
  }
50
50
 
51
51
  &:active:not(:disabled) {
52
- background: rgba(0, 0, 0, .12);
52
+ background: rgb(0 0 0 / 12%);
53
53
  }
54
54
 
55
55
  &:disabled {
@@ -1,22 +1,27 @@
1
1
  $ba-BoundingBoxHighlight-color: #0061d5;
2
- $ba-BoundingBoxHighlight-bgColor--default: rgba($ba-BoundingBoxHighlight-color, .05);
3
- $ba-BoundingBoxHighlight-bgColor--hover: rgba($ba-BoundingBoxHighlight-color, .16);
4
- $ba-BoundingBoxHighlight-bgColor--selected: rgba($ba-BoundingBoxHighlight-color, .1);
2
+ $ba-BoundingBoxHighlight-bgColor--default: rgba($ba-BoundingBoxHighlight-color, 0.05);
3
+ $ba-BoundingBoxHighlight-bgColor--hover: rgba($ba-BoundingBoxHighlight-color, 0.16);
4
+ $ba-BoundingBoxHighlight-bgColor--selected: rgba($ba-BoundingBoxHighlight-color, 0.1);
5
5
 
6
6
  .ba-BoundingBoxHighlightRect {
7
7
  position: absolute;
8
8
  box-sizing: border-box;
9
9
  background-color: $ba-BoundingBoxHighlight-bgColor--default;
10
- border: 2px solid rgba($ba-BoundingBoxHighlight-color, .2);
10
+ border: 2px solid rgba($ba-BoundingBoxHighlight-color, 0.2);
11
11
  border-radius: 8px;
12
12
  outline: none;
13
13
  cursor: pointer;
14
- transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
14
+ transition:
15
+ background-color 200ms ease,
16
+ border-color 200ms ease,
17
+ box-shadow 200ms ease;
15
18
  pointer-events: auto;
16
19
 
17
20
  &.is-selected {
18
21
  background-color: $ba-BoundingBoxHighlight-bgColor--selected;
19
22
  border-color: $ba-BoundingBoxHighlight-color;
20
- box-shadow: 0 0 0 2px rgba($ba-BoundingBoxHighlight-color, .3), 0 4px 12px rgba(0, 0, 0, .15);
23
+ box-shadow:
24
+ 0 0 0 2px rgba($ba-BoundingBoxHighlight-color, 0.3),
25
+ 0 4px 12px rgb(0 0 0 / 15%);
21
26
  }
22
27
  }
@@ -25,7 +25,7 @@
25
25
  }
26
26
 
27
27
  .ba-ReplyForm {
28
- opacity: .99; // Creates a new stacking context so that the collaborators list shows on top of the ba-Popup-footer
28
+ opacity: 0.99; // Creates a new stacking context so that the collaborators list shows on top of the ba-Popup-footer
29
29
  }
30
30
  }
31
31
 
@@ -34,7 +34,7 @@
34
34
  background-color: $popup-content-bg;
35
35
  border: 1px solid $popup-border-color;
36
36
  border-radius: 6px;
37
- box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .15);
37
+ box-shadow: 0 2px 12px 0 rgb(0 0 0 / 15%);
38
38
  }
39
39
 
40
40
  .ba-Popup-footer {
@@ -13,7 +13,7 @@
13
13
  border-radius: $bdl-border-radius-size;
14
14
  outline: none;
15
15
  cursor: pointer;
16
- opacity: .7;
16
+ opacity: 0.7;
17
17
  transition: opacity 200ms ease;
18
18
 
19
19
  &:focus,
@@ -23,7 +23,7 @@
23
23
 
24
24
  &[disabled] {
25
25
  cursor: default;
26
- opacity: .2;
26
+ opacity: 0.2;
27
27
  }
28
28
  }
29
29
 
@@ -53,7 +53,7 @@
53
53
  .ba-Popup-content {
54
54
  gap: 4px;
55
55
  padding: 8px;
56
- background-color: rgba(0, 0, 0, .8);
56
+ background-color: rgb(0 0 0 / 80%);
57
57
  border-radius: 46px;
58
58
  }
59
59
  }
@@ -75,7 +75,7 @@
75
75
 
76
76
  // Modernized border-left for adjacent groups
77
77
  .ba-PopupDrawingToolbar--modernized .ba-PopupDrawingToolbar-group + .ba-PopupDrawingToolbar-group {
78
- border-left: 1px solid rgb(255, 255, 255, 8%);
78
+ border-left: 1px solid rgb(255 255 255 / 8%);
79
79
  }
80
80
 
81
81
  .ba-PopupDrawingToolbar-delete,
@@ -8,7 +8,7 @@
8
8
  .ba-Popup-content {
9
9
  border: solid 1px $bdl-gray-30;
10
10
  border-radius: $bdl-border-radius-size;
11
- box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
11
+ box-shadow: 0 1px 2px 0 rgb(0 0 0 / 5%);
12
12
  }
13
13
 
14
14
  .ba-PopupList-prompt {
@@ -1,4 +1,4 @@
1
- .ba-PopupV2 {
1
+ .ba-PopupAnnotation {
2
2
  position: absolute;
3
3
  top: 0;
4
4
  left: 0;
@@ -8,7 +8,7 @@
8
8
 
9
9
  // Specificity must beat .ba selectors from box-ui-elements globals
10
10
  // (forms, buttons, links) that cascade into threaded-annotations components.
11
- .ba .ba-PopupV2 {
11
+ .ba .ba-PopupAnnotation {
12
12
  div[contenteditable='true'],
13
13
  div[contenteditable='true']:hover,
14
14
  div[contenteditable='true']:focus {