fcr-ui-scene 3.8.2 → 3.9.0-alpha

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 (872) hide show
  1. package/lib/base.js +2 -2
  2. package/lib/creator/index.js +25 -10
  3. package/lib/creator/provider-initializer.browser.js +28 -3
  4. package/lib/creator/provider-initializer.electron.js +28 -5
  5. package/lib/electron/app.js +26 -9
  6. package/lib/electron/asar-validation.js +5 -1
  7. package/lib/electron/env.d.ts +1 -0
  8. package/lib/electron/env.js +2 -2
  9. package/lib/electron/injections.d.ts +2 -1
  10. package/lib/electron/injections.js +23 -17
  11. package/lib/electron/ipc/type.d.ts +2 -1
  12. package/lib/electron/ipc/type.js +1 -0
  13. package/lib/electron/ipc-protocol.d.ts +2 -0
  14. package/lib/electron/main.js +6 -6
  15. package/lib/electron/plugins/main-window-display.d.ts +8 -0
  16. package/lib/electron/plugins/main-window-display.js +23 -0
  17. package/lib/electron/preload.js +2 -1
  18. package/lib/electron/process-manager/index.d.ts +1 -0
  19. package/lib/electron/process-manager/index.js +37 -0
  20. package/lib/electron/process-manager/state-manager.d.ts +10 -0
  21. package/lib/electron/process-manager/state-manager.js +46 -4
  22. package/lib/electron/sdk-helper.js +4 -0
  23. package/lib/electron/window-proxy/browser-window-proxy-factory.d.ts +7 -0
  24. package/lib/electron/window-proxy/browser-window-proxy-factory.js +46 -0
  25. package/lib/electron/window-proxy/{browser-window-proxy.d.ts → implementations/browser-window-proxy.d.ts} +3 -24
  26. package/lib/electron/window-proxy/implementations/browser-window-proxy.js +335 -0
  27. package/lib/electron/window-proxy/implementations/electron-event-broadcaster.d.ts +9 -0
  28. package/lib/electron/window-proxy/implementations/electron-event-broadcaster.js +32 -0
  29. package/lib/electron/window-proxy/implementations/electron-ipc-handler.d.ts +6 -0
  30. package/lib/electron/window-proxy/implementations/electron-ipc-handler.js +27 -0
  31. package/lib/electron/window-proxy/implementations/electron-logger.d.ts +7 -0
  32. package/lib/electron/window-proxy/implementations/electron-logger.js +34 -0
  33. package/lib/electron/window-proxy/{main-process-handler.d.ts → implementations/main-process-handler.d.ts} +16 -9
  34. package/lib/electron/window-proxy/{main-process-handler.js → implementations/main-process-handler.js} +111 -111
  35. package/lib/electron/window-proxy/interfaces.d.ts +52 -0
  36. package/lib/electron/window-proxy/interfaces.js +6 -0
  37. package/lib/fragments/annotation/cursor.css +77 -0
  38. package/lib/fragments/annotation/index.d.ts +2 -4
  39. package/lib/fragments/annotation/index.js +4 -82
  40. package/lib/fragments/annotation/libs.d.ts +15 -11
  41. package/lib/fragments/annotation/libs.js +75 -26
  42. package/lib/fragments/annotation/store.d.ts +23 -43
  43. package/lib/fragments/annotation/store.js +319 -709
  44. package/lib/fragments/annotation/style.css +5 -6
  45. package/lib/fragments/annotation/view.d.ts +1 -0
  46. package/lib/fragments/annotation/view.js +8 -48
  47. package/lib/fragments/base.js +1 -1
  48. package/lib/fragments/whiteboard/libs.d.ts +72 -0
  49. package/lib/fragments/whiteboard/libs.js +155 -0
  50. package/lib/fragments/whiteboard/store.d.ts +1 -4
  51. package/lib/fragments/whiteboard/store.js +64 -128
  52. package/lib/modules/action-bar/components/apps/index.js +2 -2
  53. package/lib/modules/action-bar/components/collapse/index.js +8 -3
  54. package/lib/modules/action-bar/components/{confirm-leave-meeting → confirm-end-meeting}/index.d.ts +1 -1
  55. package/lib/modules/action-bar/components/{confirm-leave-meeting → confirm-end-meeting}/index.js +14 -33
  56. package/lib/modules/action-bar/components/leave/index.js +1 -1
  57. package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.css +6 -0
  58. package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.d.ts +3 -7
  59. package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.js +66 -42
  60. package/lib/modules/action-bar/components/notification-bar/components/virtual-image/index.d.ts +2 -2
  61. package/lib/modules/action-bar/components/notification-bar/components/virtual-image/index.js +11 -7
  62. package/lib/modules/action-bar/components/notification-bar/index.js +12 -70
  63. package/lib/modules/action-bar/components/screen-share/submenu.js +39 -2
  64. package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.css +1 -0
  65. package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.js +10 -7
  66. package/lib/modules/action-bar/index.css +1 -1
  67. package/lib/modules/action-bar/main-scene/index.d.ts +1 -1
  68. package/lib/modules/action-bar/main-scene/index.js +4 -4
  69. package/lib/modules/action-bar/main-scene/store.base.d.ts +16 -9
  70. package/lib/modules/action-bar/main-scene/store.base.js +165 -94
  71. package/lib/modules/action-bar/type.d.ts +1 -15
  72. package/lib/modules/action-bar/type.js +14 -0
  73. package/lib/modules/action-bar/waiting-scene/view.js +1 -1
  74. package/lib/modules/annotation/board-cursor.css +77 -0
  75. package/lib/modules/annotation/components/color-picker/components/color.d.ts +5 -0
  76. package/lib/modules/annotation/components/color-picker/components/color.js +37 -0
  77. package/lib/modules/annotation/components/color-picker/components/panel.d.ts +1 -0
  78. package/lib/modules/annotation/components/color-picker/components/panel.js +108 -0
  79. package/lib/modules/annotation/components/color-picker/components/picker.d.ts +1 -0
  80. package/lib/modules/annotation/components/color-picker/components/picker.js +75 -0
  81. package/lib/modules/annotation/components/color-picker/index.d.ts +2 -0
  82. package/lib/modules/annotation/components/color-picker/index.js +45 -0
  83. package/lib/modules/annotation/components/eraser-picker.d.ts +4 -0
  84. package/lib/modules/annotation/components/eraser-picker.js +142 -0
  85. package/lib/modules/annotation/components/expansion/index.d.ts +1 -0
  86. package/lib/modules/annotation/components/expansion/index.js +100 -0
  87. package/lib/modules/annotation/components/extra-tool-picker.d.ts +1 -0
  88. package/lib/modules/annotation/components/extra-tool-picker.js +62 -0
  89. package/lib/modules/annotation/components/history.d.ts +2 -0
  90. package/lib/modules/annotation/components/history.js +76 -0
  91. package/lib/modules/annotation/components/icons/fold-icon.d.ts +2 -0
  92. package/lib/modules/annotation/components/icons/fold-icon.js +41 -0
  93. package/lib/modules/annotation/components/icons/move-icon.d.ts +1 -0
  94. package/lib/modules/annotation/components/icons/move-icon.js +66 -0
  95. package/lib/modules/annotation/components/item/index.d.ts +1 -0
  96. package/lib/modules/annotation/components/item/index.js +43 -0
  97. package/lib/modules/annotation/components/move-handle.d.ts +5 -0
  98. package/lib/modules/annotation/components/move-handle.js +134 -0
  99. package/lib/modules/annotation/components/pen-picker.d.ts +4 -0
  100. package/lib/modules/annotation/components/pen-picker.js +150 -0
  101. package/lib/modules/annotation/components/screen-capture-picker.d.ts +4 -0
  102. package/lib/modules/annotation/components/screen-capture-picker.js +84 -0
  103. package/lib/modules/annotation/components/shape-picker.d.ts +4 -0
  104. package/lib/modules/annotation/components/shape-picker.js +201 -0
  105. package/lib/modules/annotation/hooks/index.d.ts +14 -0
  106. package/lib/modules/annotation/hooks/index.js +164 -0
  107. package/lib/modules/annotation/index.d.ts +31 -0
  108. package/lib/modules/annotation/index.js +152 -0
  109. package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/color-panel/index.js +2 -2
  110. package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/index.js +22 -9
  111. package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/index.js +2 -3
  112. package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/index.js +22 -9
  113. package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/index.js +22 -9
  114. package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/pen-panel/index.js +1 -1
  115. package/lib/modules/annotation/standalone-toolbar/components/permission-tool/index.d.ts +1 -0
  116. package/lib/modules/annotation/standalone-toolbar/components/permission-tool/index.js +52 -0
  117. package/lib/modules/annotation/standalone-toolbar/store.d.ts +104 -0
  118. package/lib/modules/annotation/standalone-toolbar/store.js +618 -0
  119. package/{lib-es/fragments/annotation/toolbar → lib/modules/annotation/standalone-toolbar}/style.css +4 -1
  120. package/lib/modules/annotation/standalone-toolbar/view.js +193 -0
  121. package/lib/modules/annotation/store.base.d.ts +27 -0
  122. package/lib/modules/annotation/store.base.js +185 -0
  123. package/lib/modules/annotation/store.browser.d.ts +3 -0
  124. package/lib/modules/annotation/store.browser.js +25 -0
  125. package/lib/modules/annotation/store.electron.d.ts +8 -0
  126. package/lib/modules/annotation/store.electron.js +75 -0
  127. package/lib/modules/annotation/style.css +36 -0
  128. package/lib/modules/annotation/toolbar-store.d.ts +86 -0
  129. package/lib/modules/annotation/toolbar-store.js +473 -0
  130. package/lib/modules/annotation/type.d.ts +7 -0
  131. package/lib/modules/annotation/type.js +6 -0
  132. package/lib/modules/annotation/view.d.ts +5 -0
  133. package/lib/modules/annotation/view.js +107 -0
  134. package/lib/modules/chat/chat-room-store.d.ts +8 -1
  135. package/lib/modules/chat/chat-room-store.js +152 -72
  136. package/lib/modules/chat/components/message-list/index.js +123 -93
  137. package/lib/modules/chat/components/message-list/message-item/index.js +89 -67
  138. package/lib/modules/chat/components/message-list/scroll-bottom-button/index.js +6 -8
  139. package/lib/modules/chat/index.css +1 -9
  140. package/lib/modules/chat/store.js +7 -5
  141. package/lib/modules/chat/view.js +4 -9
  142. package/lib/modules/components/annotation-menu/index.d.ts +5 -3
  143. package/lib/modules/components/annotation-menu/index.js +29 -34
  144. package/lib/modules/components/apps/index.css +3 -2
  145. package/lib/modules/components/caption-menu/translation-setting-options.js +2 -2
  146. package/lib/modules/components/confirm-wrapper/index.css +48 -0
  147. package/lib/modules/components/confirm-wrapper/index.d.ts +25 -0
  148. package/lib/modules/components/confirm-wrapper/index.js +87 -0
  149. package/lib/modules/components/control-bar/index.d.ts +40 -8
  150. package/lib/modules/components/control-bar/index.js +350 -200
  151. package/lib/modules/components/device-control/components/audio-menu/index.js +3 -2
  152. package/lib/modules/components/device-control/components/video-menu/index.js +5 -3
  153. package/lib/modules/components/device-control/store.base.d.ts +5 -0
  154. package/lib/modules/components/device-control/store.base.js +17 -1
  155. package/lib/modules/components/leave-meeting/index.css +21 -0
  156. package/lib/modules/components/leave-meeting/index.d.ts +0 -2
  157. package/lib/modules/components/leave-meeting/index.js +63 -103
  158. package/lib/modules/components/leave-meeting/portal.d.ts +0 -1
  159. package/lib/modules/components/leave-meeting/portal.js +4 -6
  160. package/lib/modules/components/leave-meeting/store.base.d.ts +3 -4
  161. package/lib/modules/components/leave-meeting/store.base.js +49 -55
  162. package/lib/modules/components/leave-meeting/style.css +0 -1
  163. package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +2 -1
  164. package/lib/modules/components/member-window/components/member-actions/provider.js +1 -1
  165. package/lib/modules/components/member-window/index.d.ts +1 -1
  166. package/lib/modules/components/member-window/index.js +3 -3
  167. package/lib/modules/components/security-menu/store.js +7 -9
  168. package/lib/modules/components/tab-frame/index.css +2 -2
  169. package/lib/modules/connection-gateway/components/phone/index.js +1 -1
  170. package/lib/modules/connection-gateway/store.js +6 -8
  171. package/lib/modules/control-bar/components/annotation-button/index.d.ts +11 -0
  172. package/lib/modules/control-bar/components/annotation-button/index.js +51 -0
  173. package/lib/modules/control-bar/components/apps-popover/index.css +3 -0
  174. package/lib/modules/control-bar/components/apps-popover/index.d.ts +1 -0
  175. package/lib/modules/control-bar/components/apps-popover/index.js +2 -0
  176. package/lib/modules/control-bar/components/carmera/index.js +1 -1
  177. package/lib/modules/control-bar/components/meeting-details/index.js +14 -20
  178. package/lib/modules/control-bar/components/microphone/index.js +2 -2
  179. package/lib/modules/control-bar/hooks.js +1 -1
  180. package/lib/modules/control-bar/index.css +11 -0
  181. package/lib/modules/control-bar/store.d.ts +20 -5
  182. package/lib/modules/control-bar/store.js +190 -59
  183. package/lib/modules/control-bar/view.js +72 -39
  184. package/lib/modules/device-pretest/audio-preview/microphone-detection.js +3 -9
  185. package/lib/modules/device-pretest/audio-preview/speaker-detection.js +1 -1
  186. package/lib/modules/device-pretest/index.js +1 -1
  187. package/lib/modules/device-pretest/settings/beauty.js +1 -1
  188. package/lib/modules/device-pretest/settings/video-effect.d.ts +2 -0
  189. package/lib/modules/device-pretest/settings/video-effect.js +27 -12
  190. package/lib/modules/device-pretest/settings/video-settings-basic.js +1 -1
  191. package/lib/modules/device-pretest/settings/virtual-background-setting.js +1 -1
  192. package/lib/modules/dialog/components/confirm/index.css +0 -18
  193. package/lib/modules/dialog/components/confirm/index.d.ts +1 -0
  194. package/lib/modules/dialog/components/confirm/index.js +2 -2
  195. package/lib/modules/dialog/components/dialog-container/index.css +3 -4
  196. package/lib/modules/dialog/components/dialog-container/index.d.ts +6 -21
  197. package/lib/modules/dialog/components/dialog-container/index.js +80 -132
  198. package/lib/modules/dialog/components/normal-window/index.d.ts +8 -20
  199. package/lib/modules/dialog/components/normal-window/index.js +14 -34
  200. package/lib/modules/dialog/dialogConfig/browser.d.ts +12 -0
  201. package/lib/modules/dialog/dialogConfig/browser.js +11 -0
  202. package/lib/modules/dialog/dialogConfig/electron.d.ts +4 -0
  203. package/lib/modules/dialog/dialogConfig/electron.js +15 -0
  204. package/lib/modules/dialog/dialogs/annotation-mask/index.d.ts +8 -0
  205. package/lib/modules/dialog/dialogs/annotation-mask/index.js +41 -0
  206. package/lib/modules/dialog/dialogs/annotation-tool/index.d.ts +5 -4
  207. package/lib/modules/dialog/dialogs/annotation-tool/index.js +19 -35
  208. package/lib/modules/dialog/dialogs/caption/index.d.ts +4 -16
  209. package/lib/modules/dialog/dialogs/caption/index.js +25 -19
  210. package/lib/modules/dialog/dialogs/chat/index.d.ts +4 -18
  211. package/lib/modules/dialog/dialogs/chat/index.js +33 -54
  212. package/lib/modules/dialog/dialogs/confirm/index.css +2 -13
  213. package/lib/modules/dialog/dialogs/confirm/index.d.ts +2 -17
  214. package/lib/modules/dialog/dialogs/confirm/index.js +5 -7
  215. package/lib/modules/dialog/dialogs/confirm-leave-meeting/index.d.ts +5 -16
  216. package/lib/modules/dialog/dialogs/confirm-leave-meeting/index.js +4 -24
  217. package/lib/modules/dialog/dialogs/connection-gateway/index.d.ts +4 -20
  218. package/lib/modules/dialog/dialogs/connection-gateway/index.js +6 -29
  219. package/lib/modules/dialog/dialogs/control-bar/index.d.ts +2 -16
  220. package/lib/modules/dialog/dialogs/control-bar/index.js +4 -6
  221. package/lib/modules/dialog/dialogs/control-bar-leave-meeting/index.d.ts +4 -14
  222. package/lib/modules/dialog/dialogs/control-bar-leave-meeting/index.js +3 -21
  223. package/lib/modules/dialog/dialogs/device-setting/index.d.ts +4 -13
  224. package/lib/modules/dialog/dialogs/device-setting/index.js +4 -20
  225. package/lib/modules/dialog/dialogs/end-meeting-notice/index.d.ts +8 -0
  226. package/lib/modules/dialog/dialogs/{end-meeting → end-meeting-notice}/index.js +4 -14
  227. package/lib/modules/dialog/dialogs/interpreter/index.d.ts +4 -14
  228. package/lib/modules/dialog/dialogs/interpreter/index.js +33 -24
  229. package/lib/modules/dialog/dialogs/invite/index.d.ts +4 -18
  230. package/lib/modules/dialog/dialogs/invite/index.js +25 -24
  231. package/lib/modules/dialog/dialogs/live-streaming/index.d.ts +4 -8
  232. package/lib/modules/dialog/dialogs/live-streaming/index.js +7 -11
  233. package/lib/modules/dialog/dialogs/mute-all/index.d.ts +4 -15
  234. package/lib/modules/dialog/dialogs/mute-all/index.js +4 -20
  235. package/lib/modules/dialog/dialogs/participant/index.d.ts +4 -18
  236. package/lib/modules/dialog/dialogs/participant/index.js +31 -31
  237. package/lib/modules/dialog/dialogs/rename/index.d.ts +2 -14
  238. package/lib/modules/dialog/dialogs/rename/index.js +2 -13
  239. package/lib/modules/dialog/dialogs/sample-dialog/index.d.ts +2 -13
  240. package/lib/modules/dialog/dialogs/sample-dialog/index.js +2 -2
  241. package/lib/modules/dialog/dialogs/share-screen-selection/index.d.ts +2 -14
  242. package/lib/modules/dialog/dialogs/share-screen-selection/index.js +3 -12
  243. package/lib/modules/dialog/dialogs/sub-window/index.d.ts +2 -17
  244. package/lib/modules/dialog/dialogs/sub-window/index.js +4 -3
  245. package/lib/modules/dialog/dialogs/subtitles-history/index.d.ts +4 -19
  246. package/lib/modules/dialog/dialogs/subtitles-history/index.js +32 -25
  247. package/lib/modules/dialog/dialogs/system-preference/index.css +3 -2
  248. package/lib/modules/dialog/dialogs/system-preference/index.d.ts +5 -28
  249. package/lib/modules/dialog/dialogs/system-preference/index.js +13 -13
  250. package/lib/modules/dialog/dialogs/toast/index.d.ts +2 -16
  251. package/lib/modules/dialog/dialogs/toast/index.js +5 -5
  252. package/lib/modules/dialog/dialogs/video-window/index.d.ts +2 -18
  253. package/lib/modules/dialog/dialogs/video-window/index.js +4 -4
  254. package/lib/modules/dialog/dialogs/whiteboard/index.d.ts +2 -18
  255. package/lib/modules/dialog/dialogs/whiteboard/index.js +2 -2
  256. package/lib/modules/dialog/dialogs/widget/index.d.ts +4 -14
  257. package/lib/modules/dialog/dialogs/widget/index.js +22 -26
  258. package/lib/modules/dialog/index.css +4 -11
  259. package/lib/modules/dialog/level-config.d.ts +1 -0
  260. package/lib/modules/dialog/level-config.js +1 -0
  261. package/lib/modules/dialog/store.base.js +0 -3
  262. package/lib/modules/dialog/store.electron.d.ts +1 -0
  263. package/lib/modules/dialog/store.electron.js +16 -9
  264. package/lib/modules/dialog/type.d.ts +3 -1
  265. package/lib/modules/dialog/view.js +25 -1
  266. package/lib/modules/dialog/web-dialog-wrapper.d.ts +3 -0
  267. package/lib/modules/dialog/web-dialog-wrapper.js +154 -0
  268. package/lib/modules/event-toast/index.css +5 -2
  269. package/lib/modules/event-toast/store.browser.js +1 -1
  270. package/lib/modules/event-toast/store.electron.js +1 -1
  271. package/lib/modules/interpreter/index.css +1 -2
  272. package/lib/modules/interpreter/store.js +22 -19
  273. package/lib/modules/interpreter/utils.js +1 -1
  274. package/lib/modules/invite/components/pstn-invite.js +5 -5
  275. package/lib/modules/invite/store.d.ts +2 -2
  276. package/lib/modules/invite/store.js +1 -1
  277. package/lib/modules/layout/components/Aside.js +1 -1
  278. package/lib/modules/layout/components/Carousel.js +1 -1
  279. package/lib/modules/layout/components/CommonVideoRenderer.js +14 -4
  280. package/lib/modules/layout/components/Gallery.js +1 -1
  281. package/lib/modules/layout/index.css +0 -31
  282. package/lib/modules/layout/store.base.d.ts +9 -15
  283. package/lib/modules/layout/store.base.js +69 -198
  284. package/lib/modules/layout/store.browser.d.ts +2 -1
  285. package/lib/modules/layout/store.browser.js +62 -2
  286. package/lib/modules/layout/store.electron.d.ts +1 -3
  287. package/lib/modules/layout/store.electron.js +10 -28
  288. package/lib/modules/layout/view.js +1 -3
  289. package/lib/modules/live-streaming/index.dev.js +1 -1
  290. package/lib/modules/live-streaming/store.js +3 -4
  291. package/lib/modules/participant/components/confirm-input/index.css +15 -0
  292. package/lib/modules/participant/components/confirm-input/index.js +10 -13
  293. package/lib/modules/participant/components/mute-all/index.css +34 -0
  294. package/lib/modules/participant/components/mute-all/index.d.ts +1 -0
  295. package/lib/modules/participant/components/mute-all/index.js +21 -15
  296. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.js +16 -2
  297. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.d.ts +2 -1
  298. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.js +3 -1
  299. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.js +3 -2
  300. package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.js +1 -1
  301. package/lib/modules/participant/index.css +0 -16
  302. package/lib/modules/participant/store.base.d.ts +18 -5
  303. package/lib/modules/participant/store.base.js +219 -127
  304. package/lib/modules/participant/store.browser.d.ts +2 -1
  305. package/lib/modules/participant/store.browser.js +2 -2
  306. package/lib/modules/participant/store.electron.d.ts +2 -1
  307. package/lib/modules/participant/store.electron.js +2 -2
  308. package/lib/modules/pc-audio-connect/waiting-scene/index.js +6 -1
  309. package/lib/modules/phone-audio-connect/store.js +1 -1
  310. package/lib/modules/phone-audio-connect/view.js +1 -1
  311. package/lib/modules/secondary-window/index.d.ts +14 -7
  312. package/lib/modules/secondary-window/index.js +51 -25
  313. package/lib/modules/secondary-window/store.d.ts +4 -2
  314. package/lib/modules/secondary-window/store.js +39 -8
  315. package/lib/modules/secondary-window/type.d.ts +16 -25
  316. package/lib/modules/secondary-window/type.js +1 -0
  317. package/lib/modules/secondary-window/view.js +59 -58
  318. package/lib/modules/setting/audio-settings/audio-settings.js +2 -2
  319. package/lib/modules/setting/audio-whiteList/audio-device-adaptation.js +2 -2
  320. package/lib/modules/setting/audio-whiteList/audio-whiteList-manager.js +1 -1
  321. package/lib/modules/setting/caption_and_transcribing/index.js +1 -1
  322. package/lib/modules/setting/general-settings/general-settings.js +4 -4
  323. package/lib/modules/setting/index.css +2 -3
  324. package/lib/modules/setting/index.d.ts +1 -2
  325. package/lib/modules/setting/index.js +3 -10
  326. package/lib/modules/setting/minutes-settings/minutes-settings.js +1 -1
  327. package/lib/modules/setting/state/index.js +1 -1
  328. package/lib/modules/setting/storage-settings/storage-settings.js +1 -1
  329. package/lib/modules/setting/store.base.d.ts +11 -9
  330. package/lib/modules/setting/store.base.js +103 -88
  331. package/lib/modules/setting/store.electron.d.ts +2 -1
  332. package/lib/modules/setting/store.electron.js +19 -1
  333. package/lib/modules/setting/translate-settings/translate-settings.js +1 -1
  334. package/lib/modules/setting/type.d.ts +1 -9
  335. package/lib/modules/setting/video-settings/video-settings-basic.js +1 -1
  336. package/lib/modules/setting/video-settings/video-settings.js +11 -7
  337. package/lib/modules/setting/view.js +1 -1
  338. package/lib/modules/share-screen/components/control-bar/index.js +0 -86
  339. package/lib/modules/share-screen/components/selection/index.js +3 -1
  340. package/lib/modules/share-screen/store.base.d.ts +1 -1
  341. package/lib/modules/share-screen/store.base.js +10 -14
  342. package/lib/modules/share-screen/store.electron.d.ts +4 -0
  343. package/lib/modules/share-screen/store.electron.js +108 -34
  344. package/lib/modules/state-bar/layout-config.js +1 -1
  345. package/lib/modules/state-bar/live-streaming-state.js +6 -7
  346. package/lib/modules/state-bar/main-scene/store.browser.js +1 -1
  347. package/lib/modules/state-bar/main-scene/store.electron.js +1 -1
  348. package/lib/modules/state-bar/meeting-details.js +14 -21
  349. package/lib/modules/state-bar/meeting-network-state.css +5 -1
  350. package/lib/modules/state-bar/meeting-network-state.js +7 -1
  351. package/lib/modules/state-bar/meeting-time.js +1 -1
  352. package/lib/modules/state-bar/network-quality.js +1 -1
  353. package/lib/modules/state-bar/recording.js +1 -1
  354. package/lib/modules/state-bar/store.base.d.ts +3 -3
  355. package/lib/modules/state-bar/store.base.js +15 -24
  356. package/lib/modules/state-bar/view.js +6 -7
  357. package/lib/modules/subtitles-history/components/list-item.js +6 -1
  358. package/lib/modules/subtitles-history/index.css +2 -5
  359. package/lib/modules/subtitles-history/store.base.js +24 -12
  360. package/lib/modules/subtitles-history/store.electron.js +8 -2
  361. package/lib/modules/subtitles-history/view.js +7 -5
  362. package/lib/modules/toast-manager/index.d.ts +8 -0
  363. package/lib/modules/toast-manager/index.js +58 -0
  364. package/lib/modules/toast-manager/store.d.ts +28 -0
  365. package/lib/modules/toast-manager/store.js +391 -0
  366. package/lib/modules/toast-manager/toast-params.d.ts +7 -0
  367. package/lib/modules/toast-manager/toast-params.js +89 -0
  368. package/lib/modules/toast-manager/type.d.ts +112 -0
  369. package/lib/modules/toast-manager/type.js +337 -0
  370. package/lib/modules/video-window/store.d.ts +2 -2
  371. package/lib/modules/video-window/store.js +28 -50
  372. package/lib/modules/whiteboard/components/control-bar/store.d.ts +0 -1
  373. package/lib/modules/whiteboard/components/control-bar/store.js +0 -6
  374. package/lib/modules/whiteboard/components/toolbar/store.d.ts +1 -0
  375. package/lib/modules/whiteboard/components/toolbar/store.js +25 -14
  376. package/lib/modules/whiteboard/store.js +10 -9
  377. package/lib/modules/whiteboard/view.js +0 -1
  378. package/lib/modules/widget/store.electron.d.ts +0 -4
  379. package/lib/modules/widget/store.electron.js +3 -38
  380. package/lib/modules/widget/view.js +1 -1
  381. package/lib/modules/widget/web-widget.d.ts +1 -1
  382. package/lib/object-manager.d.ts +2 -0
  383. package/lib/object-manager.js +2 -0
  384. package/lib/plugins/multi-lang-plugin.js +1 -1
  385. package/lib/providers/ability-provider.d.ts +33 -1
  386. package/lib/providers/ability-provider.js +29 -1
  387. package/lib/providers/annotation/provider.base.d.ts +39 -0
  388. package/lib/providers/annotation/provider.base.js +270 -0
  389. package/lib/providers/annotation/provider.browser.d.ts +3 -0
  390. package/lib/providers/annotation/provider.browser.js +25 -0
  391. package/lib/providers/annotation/provider.electron.d.ts +34 -0
  392. package/lib/providers/annotation/provider.electron.js +231 -0
  393. package/lib/providers/annotation/standalone-toolbar-control/index.d.ts +26 -0
  394. package/lib/{fragments/annotation/toolbar/store.js → providers/annotation/standalone-toolbar-control/index.js} +103 -175
  395. package/lib/providers/annotation/toolbar-control/index.d.ts +31 -0
  396. package/lib/providers/annotation/toolbar-control/index.js +205 -0
  397. package/lib/providers/annotation/type.d.ts +64 -21
  398. package/lib/providers/app-list-provider.d.ts +4 -1
  399. package/lib/providers/app-list-provider.js +13 -7
  400. package/lib/providers/board-share/bar-control/base.d.ts +6 -8
  401. package/lib/providers/board-share/bar-control/base.js +7 -36
  402. package/lib/providers/board-share/bar-control/browser.d.ts +4 -1
  403. package/lib/providers/board-share/bar-control/browser.js +76 -3
  404. package/lib/providers/board-share/bar-control/electron.d.ts +4 -6
  405. package/lib/providers/board-share/bar-control/electron.js +36 -12
  406. package/lib/providers/board-share/provider.base.d.ts +11 -8
  407. package/lib/providers/board-share/provider.base.js +72 -13
  408. package/lib/providers/board-share/type.d.ts +11 -12
  409. package/lib/providers/device-privilege-provider.d.ts +5 -4
  410. package/lib/providers/device-privilege-provider.js +85 -62
  411. package/lib/providers/device-provider.d.ts +32 -1
  412. package/lib/providers/device-provider.js +412 -161
  413. package/lib/providers/device-stream-provider.d.ts +3 -3
  414. package/lib/providers/device-stream-provider.js +37 -111
  415. package/lib/providers/dialog/provider.electron.js +6 -1
  416. package/lib/providers/interpreter-provider.js +5 -5
  417. package/lib/providers/message/provider.d.ts +3 -1
  418. package/lib/providers/message/provider.js +12 -0
  419. package/lib/providers/message/type.d.ts +15 -0
  420. package/lib/providers/mouse-detect/provider.js +2 -2
  421. package/lib/providers/mouse-detect/struct.d.ts +2 -1
  422. package/lib/providers/mouse-detect/struct.js +1 -0
  423. package/lib/providers/multi-display-provider.d.ts +1 -0
  424. package/lib/providers/multi-display-provider.js +13 -0
  425. package/lib/providers/phone-audio-provider.d.ts +15 -0
  426. package/lib/providers/phone-audio-provider.js +17 -10
  427. package/lib/providers/privilege-provider.d.ts +15 -15
  428. package/lib/providers/room-provider/room-provider.d.ts +23 -11
  429. package/lib/providers/room-provider/room-provider.js +93 -199
  430. package/lib/providers/room-provider/waiting-room-control-manager.d.ts +2 -2
  431. package/lib/providers/room-provider/waiting-room-control-manager.js +2 -2
  432. package/lib/providers/screen-share/provider.base.d.ts +1 -0
  433. package/lib/providers/screen-share/provider.base.js +6 -1
  434. package/lib/providers/screen-share/provider.browser.js +13 -9
  435. package/lib/providers/screen-share/provider.electron.d.ts +1 -1
  436. package/lib/providers/screen-share/provider.electron.js +54 -44
  437. package/lib/providers/screen-share/strategy/electron.js +18 -3
  438. package/lib/providers/screen-share/stream-state-sync.d.ts +1 -1
  439. package/lib/providers/screen-share/stream-state-sync.js +4 -4
  440. package/lib/providers/screen-share/type.d.ts +9 -1
  441. package/lib/providers/session-provider.d.ts +1 -1
  442. package/lib/providers/stt-provider/stt-provider.d.ts +1 -1
  443. package/lib/providers/stt-provider/stt-provider.js +40 -77
  444. package/lib/providers/stt-provider/type.d.ts +5 -3
  445. package/lib/providers/stt-provider/type.js +4 -2
  446. package/lib/providers/user-audio-volume-provider.d.ts +47 -0
  447. package/lib/providers/user-audio-volume-provider.js +319 -0
  448. package/lib/providers/window/provider.d.ts +1 -1
  449. package/lib/providers/window/provider.js +23 -12
  450. package/lib/providers/window/renderer-window.d.ts +8 -2
  451. package/lib/providers/window/renderer-window.js +118 -33
  452. package/lib/providers/window/type.d.ts +1 -3
  453. package/lib/runtime.d.ts +12 -13
  454. package/lib/scenes/main-scene.js +98 -69
  455. package/lib/scenes/waiting-scene.js +4 -4
  456. package/lib/shared-data/member-data.d.ts +0 -9
  457. package/lib/shared-data/member-data.js +35 -61
  458. package/lib/shared-data/pin-data.d.ts +3 -2
  459. package/lib/shared-data/pin-data.js +8 -11
  460. package/lib/shared-data/setting.js +1 -1
  461. package/lib/shared-data/user-audio-volume.d.ts +19 -0
  462. package/lib/shared-data/user-audio-volume.js +104 -0
  463. package/lib/shared-data/video-window.js +49 -60
  464. package/lib/translations/enUS.d.ts +10 -0
  465. package/lib/translations/enUS.js +13 -3
  466. package/lib/translations/zhCN.d.ts +10 -0
  467. package/lib/translations/zhCN.js +12 -2
  468. package/lib/type.d.ts +27 -19
  469. package/lib/type.js +20 -2
  470. package/lib/ui-manager.js +1 -1
  471. package/lib/ui-scene-switch.d.ts +1 -0
  472. package/lib/ui-scene-switch.js +197 -87
  473. package/lib/utilities/browser-api.d.ts +0 -1
  474. package/lib/utilities/browser-api.js +0 -42
  475. package/lib/utilities/constant.d.ts +4 -4
  476. package/lib/utilities/constant.js +4 -5
  477. package/lib/utilities/default-config.d.ts +2 -8
  478. package/lib/utilities/default-config.js +8 -48
  479. package/lib/utilities/dialog-utils.js +1 -2
  480. package/lib/utilities/focus-helper.js +2 -2
  481. package/lib/utilities/logger.d.ts +1 -2
  482. package/lib/utilities/logger.js +12 -40
  483. package/lib/utilities/package-info.d.ts +1 -2
  484. package/lib/utilities/package-info.js +5 -6
  485. package/lib/utilities/renderer.d.ts +1 -0
  486. package/lib/utilities/renderer.js +7 -1
  487. package/lib/utilities/shared-storage.d.ts +2 -3
  488. package/lib/utilities/shared-storage.js +15 -11
  489. package/lib/utilities/tools.d.ts +1 -44
  490. package/lib/utilities/tools.js +28 -193
  491. package/lib/utilities/validate-params.js +3 -5
  492. package/lib-es/base.js +2 -2
  493. package/lib-es/creator/index.js +28 -12
  494. package/lib-es/creator/provider-initializer.browser.js +28 -3
  495. package/lib-es/creator/provider-initializer.electron.js +28 -5
  496. package/lib-es/electron/app.js +24 -7
  497. package/lib-es/electron/asar-validation.js +5 -1
  498. package/lib-es/electron/env.js +1 -1
  499. package/lib-es/electron/injections.js +22 -17
  500. package/lib-es/electron/ipc/type.js +1 -0
  501. package/lib-es/electron/main.js +3 -2
  502. package/lib-es/electron/plugins/main-window-display.js +16 -0
  503. package/lib-es/electron/preload.js +3 -2
  504. package/lib-es/electron/process-manager/index.js +37 -0
  505. package/lib-es/electron/process-manager/state-manager.js +46 -4
  506. package/lib-es/electron/sdk-helper.js +4 -0
  507. package/lib-es/electron/window-proxy/browser-window-proxy-factory.js +38 -0
  508. package/lib-es/electron/window-proxy/implementations/browser-window-proxy.js +328 -0
  509. package/lib-es/electron/window-proxy/implementations/electron-event-broadcaster.js +24 -0
  510. package/lib-es/electron/window-proxy/implementations/electron-ipc-handler.js +19 -0
  511. package/lib-es/electron/window-proxy/implementations/electron-logger.js +26 -0
  512. package/lib-es/electron/window-proxy/{main-process-handler.js → implementations/main-process-handler.js} +110 -113
  513. package/lib-es/electron/window-proxy/interfaces.js +1 -0
  514. package/lib-es/fragments/annotation/cursor.css +77 -0
  515. package/lib-es/fragments/annotation/index.js +5 -83
  516. package/lib-es/fragments/annotation/libs.js +63 -14
  517. package/lib-es/fragments/annotation/store.js +321 -711
  518. package/lib-es/fragments/annotation/style.css +5 -6
  519. package/lib-es/fragments/annotation/view.js +9 -48
  520. package/lib-es/fragments/base.js +1 -1
  521. package/lib-es/fragments/whiteboard/libs.js +147 -0
  522. package/lib-es/fragments/whiteboard/store.js +65 -129
  523. package/lib-es/modules/action-bar/components/apps/index.js +2 -2
  524. package/lib-es/modules/action-bar/components/collapse/index.js +8 -3
  525. package/lib-es/modules/action-bar/components/{confirm-leave-meeting → confirm-end-meeting}/index.js +14 -33
  526. package/lib-es/modules/action-bar/components/leave/index.js +1 -1
  527. package/lib-es/modules/action-bar/components/notification-bar/components/interpreter/index.css +6 -0
  528. package/lib-es/modules/action-bar/components/notification-bar/components/interpreter/index.js +66 -42
  529. package/lib-es/modules/action-bar/components/notification-bar/components/virtual-image/index.js +11 -7
  530. package/lib-es/modules/action-bar/components/notification-bar/index.js +13 -71
  531. package/lib-es/modules/action-bar/components/screen-share/submenu.js +39 -2
  532. package/lib-es/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.css +1 -0
  533. package/lib-es/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.js +11 -8
  534. package/lib-es/modules/action-bar/index.css +1 -1
  535. package/lib-es/modules/action-bar/main-scene/index.js +4 -4
  536. package/lib-es/modules/action-bar/main-scene/store.base.js +165 -94
  537. package/lib-es/modules/action-bar/type.js +15 -0
  538. package/lib-es/modules/action-bar/waiting-scene/view.js +1 -1
  539. package/lib-es/modules/annotation/board-cursor.css +77 -0
  540. package/lib-es/modules/annotation/components/color-picker/components/color.js +29 -0
  541. package/lib-es/modules/annotation/components/color-picker/components/panel.js +100 -0
  542. package/lib-es/modules/annotation/components/color-picker/components/picker.js +67 -0
  543. package/lib-es/modules/annotation/components/color-picker/index.js +38 -0
  544. package/lib-es/modules/annotation/components/eraser-picker.js +134 -0
  545. package/lib-es/modules/annotation/components/expansion/index.js +85 -0
  546. package/lib-es/modules/annotation/components/extra-tool-picker.js +46 -0
  547. package/lib-es/modules/annotation/components/history.js +68 -0
  548. package/lib-es/modules/annotation/components/icons/fold-icon.js +33 -0
  549. package/lib-es/modules/annotation/components/icons/move-icon.js +59 -0
  550. package/lib-es/modules/annotation/components/item/index.js +35 -0
  551. package/lib-es/modules/annotation/components/move-handle.js +127 -0
  552. package/lib-es/modules/annotation/components/pen-picker.js +142 -0
  553. package/lib-es/modules/annotation/components/screen-capture-picker.js +77 -0
  554. package/lib-es/modules/annotation/components/shape-picker.js +193 -0
  555. package/lib-es/modules/annotation/hooks/index.js +156 -0
  556. package/lib-es/modules/annotation/index.js +144 -0
  557. package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/color-panel/index.js +2 -2
  558. package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/index.js +23 -10
  559. package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/index.js +2 -3
  560. package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/index.js +23 -10
  561. package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/index.js +23 -10
  562. package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/pen-panel/index.js +2 -2
  563. package/lib-es/modules/annotation/standalone-toolbar/components/permission-tool/index.js +44 -0
  564. package/lib-es/modules/annotation/standalone-toolbar/store.js +611 -0
  565. package/{lib/fragments/annotation/toolbar → lib-es/modules/annotation/standalone-toolbar}/style.css +4 -1
  566. package/lib-es/modules/annotation/standalone-toolbar/view.js +186 -0
  567. package/lib-es/modules/annotation/store.base.js +178 -0
  568. package/lib-es/modules/annotation/store.browser.js +17 -0
  569. package/lib-es/modules/annotation/store.electron.js +67 -0
  570. package/lib-es/modules/annotation/style.css +36 -0
  571. package/lib-es/modules/annotation/toolbar-store.js +466 -0
  572. package/lib-es/modules/annotation/type.js +1 -0
  573. package/lib-es/modules/annotation/view.js +99 -0
  574. package/lib-es/modules/chat/chat-room-store.js +152 -72
  575. package/lib-es/modules/chat/components/message-list/index.js +123 -89
  576. package/lib-es/modules/chat/components/message-list/message-item/index.js +89 -67
  577. package/lib-es/modules/chat/components/message-list/scroll-bottom-button/index.js +6 -8
  578. package/lib-es/modules/chat/index.css +1 -9
  579. package/lib-es/modules/chat/store.js +7 -5
  580. package/lib-es/modules/chat/view.js +2 -7
  581. package/lib-es/modules/components/annotation-menu/index.js +28 -33
  582. package/lib-es/modules/components/apps/index.css +3 -2
  583. package/lib-es/modules/components/caption-menu/translation-setting-options.js +2 -2
  584. package/lib-es/modules/components/confirm-wrapper/index.css +48 -0
  585. package/lib-es/modules/components/confirm-wrapper/index.js +80 -0
  586. package/lib-es/modules/components/control-bar/index.js +349 -199
  587. package/lib-es/modules/components/device-control/components/audio-menu/index.js +3 -2
  588. package/lib-es/modules/components/device-control/components/video-menu/index.js +5 -3
  589. package/lib-es/modules/components/device-control/store.base.js +17 -1
  590. package/lib-es/modules/components/leave-meeting/index.css +21 -0
  591. package/lib-es/modules/components/leave-meeting/index.js +63 -102
  592. package/lib-es/modules/components/leave-meeting/portal.js +3 -5
  593. package/lib-es/modules/components/leave-meeting/store.base.js +49 -55
  594. package/lib-es/modules/components/leave-meeting/style.css +0 -1
  595. package/lib-es/modules/components/member-window/components/member-actions/components/more-actions.js +2 -1
  596. package/lib-es/modules/components/member-window/components/member-actions/provider.js +1 -1
  597. package/lib-es/modules/components/member-window/index.js +3 -3
  598. package/lib-es/modules/components/security-menu/store.js +7 -9
  599. package/lib-es/modules/components/tab-frame/index.css +2 -2
  600. package/lib-es/modules/connection-gateway/components/phone/index.js +1 -1
  601. package/lib-es/modules/connection-gateway/store.js +6 -8
  602. package/lib-es/modules/control-bar/components/annotation-button/index.js +43 -0
  603. package/lib-es/modules/control-bar/components/apps-popover/index.css +3 -0
  604. package/lib-es/modules/control-bar/components/apps-popover/index.js +2 -0
  605. package/lib-es/modules/control-bar/components/carmera/index.js +1 -1
  606. package/lib-es/modules/control-bar/components/meeting-details/index.js +10 -16
  607. package/lib-es/modules/control-bar/components/microphone/index.js +2 -2
  608. package/lib-es/modules/control-bar/hooks.js +1 -1
  609. package/lib-es/modules/control-bar/index.css +11 -0
  610. package/lib-es/modules/control-bar/store.js +184 -53
  611. package/lib-es/modules/control-bar/view.js +72 -39
  612. package/lib-es/modules/device-pretest/audio-preview/microphone-detection.js +4 -10
  613. package/lib-es/modules/device-pretest/audio-preview/speaker-detection.js +1 -1
  614. package/lib-es/modules/device-pretest/index.js +1 -1
  615. package/lib-es/modules/device-pretest/settings/beauty.js +1 -1
  616. package/lib-es/modules/device-pretest/settings/video-effect.js +27 -12
  617. package/lib-es/modules/device-pretest/settings/video-settings-basic.js +1 -1
  618. package/lib-es/modules/device-pretest/settings/virtual-background-setting.js +1 -1
  619. package/lib-es/modules/dialog/components/confirm/index.css +0 -18
  620. package/lib-es/modules/dialog/components/confirm/index.js +2 -1
  621. package/lib-es/modules/dialog/components/dialog-container/index.css +3 -4
  622. package/lib-es/modules/dialog/components/dialog-container/index.js +80 -126
  623. package/lib-es/modules/dialog/components/normal-window/index.js +15 -35
  624. package/lib-es/modules/dialog/dialogConfig/browser.js +4 -0
  625. package/lib-es/modules/dialog/dialogConfig/electron.js +8 -0
  626. package/lib-es/modules/dialog/dialogs/annotation-mask/index.js +34 -0
  627. package/lib-es/modules/dialog/dialogs/annotation-tool/index.js +18 -34
  628. package/lib-es/modules/dialog/dialogs/caption/index.js +24 -18
  629. package/lib-es/modules/dialog/dialogs/chat/index.js +32 -53
  630. package/lib-es/modules/dialog/dialogs/confirm/index.css +2 -13
  631. package/lib-es/modules/dialog/dialogs/confirm/index.js +4 -6
  632. package/lib-es/modules/dialog/dialogs/confirm-leave-meeting/index.js +3 -23
  633. package/lib-es/modules/dialog/dialogs/connection-gateway/index.js +5 -28
  634. package/lib-es/modules/dialog/dialogs/control-bar/index.js +3 -5
  635. package/lib-es/modules/dialog/dialogs/control-bar-leave-meeting/index.js +2 -20
  636. package/lib-es/modules/dialog/dialogs/device-setting/index.js +3 -19
  637. package/lib-es/modules/dialog/dialogs/{end-meeting → end-meeting-notice}/index.js +3 -13
  638. package/lib-es/modules/dialog/dialogs/interpreter/index.js +32 -23
  639. package/lib-es/modules/dialog/dialogs/invite/index.js +24 -23
  640. package/lib-es/modules/dialog/dialogs/live-streaming/index.js +6 -10
  641. package/lib-es/modules/dialog/dialogs/mute-all/index.js +3 -19
  642. package/lib-es/modules/dialog/dialogs/participant/index.js +31 -30
  643. package/lib-es/modules/dialog/dialogs/rename/index.js +1 -12
  644. package/lib-es/modules/dialog/dialogs/sample-dialog/index.js +1 -1
  645. package/lib-es/modules/dialog/dialogs/share-screen-selection/index.js +2 -11
  646. package/lib-es/modules/dialog/dialogs/sub-window/index.js +3 -2
  647. package/lib-es/modules/dialog/dialogs/subtitles-history/index.js +31 -24
  648. package/lib-es/modules/dialog/dialogs/system-preference/index.css +3 -2
  649. package/lib-es/modules/dialog/dialogs/system-preference/index.js +12 -12
  650. package/lib-es/modules/dialog/dialogs/toast/index.js +4 -4
  651. package/lib-es/modules/dialog/dialogs/video-window/index.js +3 -3
  652. package/lib-es/modules/dialog/dialogs/whiteboard/index.js +1 -1
  653. package/lib-es/modules/dialog/dialogs/widget/index.js +21 -25
  654. package/lib-es/modules/dialog/index.css +4 -11
  655. package/lib-es/modules/dialog/level-config.js +1 -0
  656. package/lib-es/modules/dialog/store.base.js +0 -3
  657. package/lib-es/modules/dialog/store.electron.js +16 -9
  658. package/lib-es/modules/dialog/view.js +25 -1
  659. package/lib-es/modules/dialog/web-dialog-wrapper.js +147 -0
  660. package/lib-es/modules/event-toast/index.css +5 -2
  661. package/lib-es/modules/event-toast/store.browser.js +1 -1
  662. package/lib-es/modules/event-toast/store.electron.js +1 -1
  663. package/lib-es/modules/interpreter/index.css +1 -2
  664. package/lib-es/modules/interpreter/store.js +22 -19
  665. package/lib-es/modules/interpreter/utils.js +1 -1
  666. package/lib-es/modules/invite/components/pstn-invite.js +4 -4
  667. package/lib-es/modules/invite/store.js +1 -1
  668. package/lib-es/modules/layout/components/Aside.js +1 -1
  669. package/lib-es/modules/layout/components/Carousel.js +1 -1
  670. package/lib-es/modules/layout/components/CommonVideoRenderer.js +15 -5
  671. package/lib-es/modules/layout/components/Gallery.js +1 -1
  672. package/lib-es/modules/layout/index.css +0 -31
  673. package/lib-es/modules/layout/store.base.js +71 -200
  674. package/lib-es/modules/layout/store.browser.js +62 -1
  675. package/lib-es/modules/layout/store.electron.js +10 -28
  676. package/lib-es/modules/layout/view.js +1 -3
  677. package/lib-es/modules/live-streaming/index.dev.js +1 -1
  678. package/lib-es/modules/live-streaming/store.js +3 -4
  679. package/lib-es/modules/participant/components/confirm-input/index.css +15 -0
  680. package/lib-es/modules/participant/components/confirm-input/index.js +10 -13
  681. package/lib-es/modules/participant/components/mute-all/index.css +34 -0
  682. package/lib-es/modules/participant/components/mute-all/index.js +21 -15
  683. package/lib-es/modules/participant/components/participants/components/footer/components/drop-menu/index.js +17 -3
  684. package/lib-es/modules/participant/components/participants/components/footer/components/drop-menu/util.js +3 -1
  685. package/lib-es/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.js +3 -2
  686. package/lib-es/modules/participant/components/participants/components/render-user/components/user-action/index.js +1 -1
  687. package/lib-es/modules/participant/index.css +0 -16
  688. package/lib-es/modules/participant/store.base.js +219 -127
  689. package/lib-es/modules/participant/store.browser.js +2 -2
  690. package/lib-es/modules/participant/store.electron.js +2 -2
  691. package/lib-es/modules/pc-audio-connect/waiting-scene/index.js +6 -1
  692. package/lib-es/modules/phone-audio-connect/store.js +1 -1
  693. package/lib-es/modules/phone-audio-connect/view.js +1 -1
  694. package/lib-es/modules/secondary-window/index.js +51 -25
  695. package/lib-es/modules/secondary-window/store.js +40 -9
  696. package/lib-es/modules/secondary-window/type.js +1 -0
  697. package/lib-es/modules/secondary-window/view.js +60 -59
  698. package/lib-es/modules/setting/audio-settings/audio-settings.js +2 -2
  699. package/lib-es/modules/setting/audio-whiteList/audio-device-adaptation.js +2 -2
  700. package/lib-es/modules/setting/audio-whiteList/audio-whiteList-manager.js +1 -1
  701. package/lib-es/modules/setting/caption_and_transcribing/index.js +1 -1
  702. package/lib-es/modules/setting/general-settings/general-settings.js +5 -5
  703. package/lib-es/modules/setting/index.css +2 -3
  704. package/lib-es/modules/setting/index.js +3 -10
  705. package/lib-es/modules/setting/minutes-settings/minutes-settings.js +1 -1
  706. package/lib-es/modules/setting/state/index.js +1 -1
  707. package/lib-es/modules/setting/storage-settings/storage-settings.js +1 -1
  708. package/lib-es/modules/setting/store.base.js +103 -88
  709. package/lib-es/modules/setting/store.electron.js +19 -1
  710. package/lib-es/modules/setting/translate-settings/translate-settings.js +1 -1
  711. package/lib-es/modules/setting/video-settings/video-settings-basic.js +1 -1
  712. package/lib-es/modules/setting/video-settings/video-settings.js +11 -7
  713. package/lib-es/modules/setting/view.js +1 -1
  714. package/lib-es/modules/share-screen/components/control-bar/index.js +0 -86
  715. package/lib-es/modules/share-screen/components/selection/index.js +3 -1
  716. package/lib-es/modules/share-screen/store.base.js +10 -14
  717. package/lib-es/modules/share-screen/store.electron.js +109 -35
  718. package/lib-es/modules/state-bar/layout-config.js +1 -1
  719. package/lib-es/modules/state-bar/live-streaming-state.js +5 -6
  720. package/lib-es/modules/state-bar/main-scene/store.browser.js +1 -1
  721. package/lib-es/modules/state-bar/main-scene/store.electron.js +1 -1
  722. package/lib-es/modules/state-bar/meeting-details.js +10 -17
  723. package/lib-es/modules/state-bar/meeting-network-state.css +5 -1
  724. package/lib-es/modules/state-bar/meeting-network-state.js +7 -1
  725. package/lib-es/modules/state-bar/meeting-time.js +1 -1
  726. package/lib-es/modules/state-bar/network-quality.js +1 -1
  727. package/lib-es/modules/state-bar/recording.js +1 -1
  728. package/lib-es/modules/state-bar/store.base.js +15 -24
  729. package/lib-es/modules/state-bar/view.js +5 -6
  730. package/lib-es/modules/subtitles-history/components/list-item.js +6 -1
  731. package/lib-es/modules/subtitles-history/index.css +2 -5
  732. package/lib-es/modules/subtitles-history/store.base.js +24 -12
  733. package/lib-es/modules/subtitles-history/store.electron.js +8 -2
  734. package/lib-es/modules/subtitles-history/view.js +7 -5
  735. package/lib-es/modules/toast-manager/index.js +50 -0
  736. package/lib-es/modules/toast-manager/store.js +383 -0
  737. package/lib-es/modules/toast-manager/toast-params.js +82 -0
  738. package/lib-es/modules/toast-manager/type.js +329 -0
  739. package/lib-es/modules/video-window/store.js +28 -50
  740. package/lib-es/modules/whiteboard/components/control-bar/store.js +0 -6
  741. package/lib-es/modules/whiteboard/components/toolbar/store.js +25 -14
  742. package/lib-es/modules/whiteboard/store.js +10 -9
  743. package/lib-es/modules/whiteboard/view.js +0 -1
  744. package/lib-es/modules/widget/store.electron.js +12 -47
  745. package/lib-es/modules/widget/view.js +1 -1
  746. package/lib-es/object-manager.js +2 -0
  747. package/lib-es/plugins/multi-lang-plugin.js +1 -1
  748. package/lib-es/providers/ability-provider.js +29 -1
  749. package/lib-es/providers/annotation/provider.base.js +263 -0
  750. package/lib-es/providers/annotation/provider.browser.js +17 -0
  751. package/lib-es/providers/annotation/provider.electron.js +224 -0
  752. package/lib-es/{fragments/annotation/toolbar/store.js → providers/annotation/standalone-toolbar-control/index.js} +102 -174
  753. package/lib-es/providers/annotation/toolbar-control/index.js +198 -0
  754. package/lib-es/providers/app-list-provider.js +13 -7
  755. package/lib-es/providers/board-share/bar-control/base.js +7 -36
  756. package/lib-es/providers/board-share/bar-control/browser.js +78 -4
  757. package/lib-es/providers/board-share/bar-control/electron.js +36 -12
  758. package/lib-es/providers/board-share/provider.base.js +73 -14
  759. package/lib-es/providers/device-privilege-provider.js +85 -62
  760. package/lib-es/providers/device-provider.js +413 -162
  761. package/lib-es/providers/device-stream-provider.js +37 -111
  762. package/lib-es/providers/dialog/provider.electron.js +6 -1
  763. package/lib-es/providers/interpreter-provider.js +5 -5
  764. package/lib-es/providers/message/provider.js +12 -0
  765. package/lib-es/providers/mouse-detect/provider.js +1 -1
  766. package/lib-es/providers/mouse-detect/struct.js +1 -0
  767. package/lib-es/providers/multi-display-provider.js +15 -2
  768. package/lib-es/providers/phone-audio-provider.js +17 -10
  769. package/lib-es/providers/room-provider/room-provider.js +95 -201
  770. package/lib-es/providers/room-provider/waiting-room-control-manager.js +1 -1
  771. package/lib-es/providers/screen-share/provider.base.js +6 -1
  772. package/lib-es/providers/screen-share/provider.browser.js +13 -9
  773. package/lib-es/providers/screen-share/provider.electron.js +54 -44
  774. package/lib-es/providers/screen-share/strategy/electron.js +18 -3
  775. package/lib-es/providers/screen-share/stream-state-sync.js +4 -4
  776. package/lib-es/providers/stt-provider/stt-provider.js +65 -102
  777. package/lib-es/providers/stt-provider/type.js +4 -2
  778. package/lib-es/providers/user-audio-volume-provider.js +312 -0
  779. package/lib-es/providers/window/provider.js +23 -13
  780. package/lib-es/providers/window/renderer-window.js +118 -33
  781. package/lib-es/scenes/main-scene.js +113 -83
  782. package/lib-es/scenes/waiting-scene.js +5 -5
  783. package/lib-es/shared-data/member-data.js +35 -61
  784. package/lib-es/shared-data/pin-data.js +8 -11
  785. package/lib-es/shared-data/setting.js +1 -1
  786. package/lib-es/shared-data/user-audio-volume.js +97 -0
  787. package/lib-es/shared-data/video-window.js +49 -60
  788. package/lib-es/translations/enUS.js +13 -3
  789. package/lib-es/translations/zhCN.js +12 -2
  790. package/lib-es/type.js +19 -1
  791. package/lib-es/ui-manager.js +1 -1
  792. package/lib-es/ui-scene-switch.js +199 -88
  793. package/lib-es/utilities/browser-api.js +0 -40
  794. package/lib-es/utilities/constant.js +4 -5
  795. package/lib-es/utilities/default-config.js +8 -48
  796. package/lib-es/utilities/dialog-utils.js +1 -1
  797. package/lib-es/utilities/focus-helper.js +1 -1
  798. package/lib-es/utilities/logger.js +12 -40
  799. package/lib-es/utilities/package-info.js +5 -6
  800. package/lib-es/utilities/renderer.js +7 -1
  801. package/lib-es/utilities/shared-storage.js +16 -12
  802. package/lib-es/utilities/tools.js +2 -188
  803. package/lib-es/utilities/validate-params.js +3 -5
  804. package/package.json +7 -8
  805. package/public/js/meeting-manager.js +13 -11
  806. package/lib/electron/window-proxy/browser-window-proxy.js +0 -728
  807. package/lib/fragments/annotation/toolbar/store.d.ts +0 -64
  808. package/lib/fragments/annotation/toolbar/view.js +0 -148
  809. package/lib/fragments/annotation/utils.d.ts +0 -1
  810. package/lib/fragments/annotation/utils.js +0 -27
  811. package/lib/modules/dialog/components/dialog-container/component/body.d.ts +0 -20
  812. package/lib/modules/dialog/components/dialog-container/component/body.js +0 -111
  813. package/lib/modules/dialog/components/host-area-container/index.d.ts +0 -12
  814. package/lib/modules/dialog/components/host-area-container/index.js +0 -153
  815. package/lib/modules/dialog/dialogs/end-meeting/index.d.ts +0 -13
  816. package/lib/modules/dialog/dialogs/interpreter/index.css +0 -30
  817. package/lib/modules/dialog/dialogs/mute-all/index.css +0 -20
  818. package/lib/modules/whiteboard/components/multi-window/index.css +0 -63
  819. package/lib/modules/whiteboard/components/multi-window/index.d.ts +0 -5
  820. package/lib/modules/whiteboard/components/multi-window/index.js +0 -39
  821. package/lib/providers/annotation/provider.d.ts +0 -15
  822. package/lib/providers/annotation/provider.js +0 -69
  823. package/lib/utilities/hooks.d.ts +0 -14
  824. package/lib/utilities/hooks.js +0 -100
  825. package/lib/utilities/mute-action.d.ts +0 -4
  826. package/lib/utilities/mute-action.js +0 -48
  827. package/lib/utilities/platform.d.ts +0 -2
  828. package/lib/utilities/platform.js +0 -14
  829. package/lib/utilities/regex.d.ts +0 -1
  830. package/lib/utilities/regex.js +0 -14
  831. package/lib/utilities/useNamespace.d.ts +0 -15
  832. package/lib/utilities/useNamespace.js +0 -66
  833. package/lib-es/electron/window-proxy/browser-window-proxy.js +0 -720
  834. package/lib-es/fragments/annotation/toolbar/view.js +0 -140
  835. package/lib-es/fragments/annotation/utils.js +0 -20
  836. package/lib-es/modules/dialog/components/dialog-container/component/body.js +0 -103
  837. package/lib-es/modules/dialog/components/host-area-container/index.js +0 -146
  838. package/lib-es/modules/dialog/dialogs/interpreter/index.css +0 -30
  839. package/lib-es/modules/dialog/dialogs/mute-all/index.css +0 -20
  840. package/lib-es/modules/whiteboard/components/multi-window/index.css +0 -63
  841. package/lib-es/modules/whiteboard/components/multi-window/index.js +0 -31
  842. package/lib-es/providers/annotation/provider.js +0 -61
  843. package/lib-es/utilities/hooks.js +0 -82
  844. package/lib-es/utilities/mute-action.js +0 -41
  845. package/lib-es/utilities/platform.js +0 -7
  846. package/lib-es/utilities/regex.js +0 -7
  847. package/lib-es/utilities/useNamespace.js +0 -59
  848. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/color-panel/index.d.ts +0 -0
  849. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/index.d.ts +0 -0
  850. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/index.d.ts +0 -0
  851. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/libs.d.ts +0 -0
  852. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/libs.js +0 -0
  853. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/index.d.ts +0 -0
  854. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/item/item.d.ts +0 -0
  855. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/item/item.js +0 -0
  856. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/item/style.css +0 -0
  857. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/panel/index.d.ts +0 -0
  858. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/panel/index.js +0 -0
  859. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/panel/style.css +0 -0
  860. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/index.d.ts +0 -0
  861. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/pen-panel/index.d.ts +0 -0
  862. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/tips/index.d.ts +0 -0
  863. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/tips/index.js +0 -0
  864. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/tips/style.css +0 -0
  865. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/view.d.ts +0 -0
  866. /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/libs.js +0 -0
  867. /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/item/item.js +0 -0
  868. /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/item/style.css +0 -0
  869. /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/panel/index.js +0 -0
  870. /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/panel/style.css +0 -0
  871. /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/tips/index.js +0 -0
  872. /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/tips/style.css +0 -0
@@ -5,10 +5,9 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
5
5
  import _createClass from "@babel/runtime/helpers/createClass";
6
6
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
7
7
  var _FragmentAnnotationStore;
8
- var _initProto, _init_joined, _init_bounds, _init_currentTool, _init_drawing, _handleBoardDomLoadDecs, _closeDecs, _hideDecs, _showDecs, _handleSetToolDecs, _ref;
8
+ var _initProto, _init_currentTool;
9
9
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
10
10
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
11
- import _regeneratorRuntime from "@babel/runtime/regenerator";
12
11
  import "core-js/modules/es.symbol.js";
13
12
  import "core-js/modules/es.symbol.description.js";
14
13
  import "core-js/modules/es.symbol.to-primitive.js";
@@ -20,7 +19,6 @@ import "core-js/modules/es.array.for-each.js";
20
19
  import "core-js/modules/es.array.is-array.js";
21
20
  import "core-js/modules/es.array.iterator.js";
22
21
  import "core-js/modules/es.array.push.js";
23
- import "core-js/modules/es.date.now.js";
24
22
  import "core-js/modules/es.date.to-json.js";
25
23
  import "core-js/modules/es.date.to-primitive.js";
26
24
  import "core-js/modules/es.function.bind.js";
@@ -35,8 +33,6 @@ import "core-js/modules/es.object.get-own-property-descriptor.js";
35
33
  import "core-js/modules/es.object.get-own-property-descriptors.js";
36
34
  import "core-js/modules/es.object.keys.js";
37
35
  import "core-js/modules/es.object.to-string.js";
38
- import "core-js/modules/es.promise.js";
39
- import "core-js/modules/es.regexp.exec.js";
40
36
  import "core-js/modules/es.string.iterator.js";
41
37
  import "core-js/modules/es.weak-map.js";
42
38
  import "core-js/modules/esnext.function.metadata.js";
@@ -62,7 +58,7 @@ import "core-js/modules/esnext.weak-map.delete-all.js";
62
58
  import "core-js/modules/esnext.weak-map.emplace.js";
63
59
  import "core-js/modules/web.dom-collections.for-each.js";
64
60
  import "core-js/modules/web.dom-collections.iterator.js";
65
- import "core-js/modules/web.timers.js";
61
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
66
62
  function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
67
63
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
68
64
  function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
@@ -73,61 +69,134 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
73
69
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
74
70
  function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
75
71
  function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); return e; }
72
+ import { bound } from 'agora-foundation/lib/decorator';
73
+ import { FcrConnectionState, FcrCoreEngine, FcrCoreEngineConfig, FcrRegion } from 'fcr-core';
74
+ import { FcrAnnotationControlFactoryImpl } from 'fcr-core/lib/imports';
75
+ import { FcrBoardToolType } from 'fcr-core/lib/room-control/whiteboard-control-v2/enum';
76
+ import { observable } from 'mobx';
76
77
  import { createContext } from 'react';
77
- import { FcrRoom, FcrWhiteboardApplication, FcrRTMProvider_2_2, jsonstring, AgoraScheduler } from 'fcr-core/lib/imports';
78
- import { action, observable } from 'mobx';
79
- import { ToolbarEvents } from '../../modules/whiteboard/type';
80
- import { FcrConnectionState, FcrCoreEngine, FcrRegion, registerPlugin } from 'fcr-core';
81
- import { bound, debounced } from 'agora-foundation/lib/decorator';
82
- import { convertTool, engineRestConfig } from './libs';
83
- import { retryAttempt } from 'agora-foundation/lib/utilities/async-retry';
78
+ import tinycolor from 'tinycolor2';
79
+ import { WhiteboardToolAction } from '../../modules/secondary-window/type';
80
+ import '../../plugins/rtm-plugin';
84
81
  import { createFragmentLogger } from '../../utilities/logger';
85
- import { startPolling } from './utils';
86
- import { ElectronRtcPlugin } from 'fcr-core/lib/plugins/electron-rtc-plugin';
87
- import { RtmPlugin } from 'fcr-core/lib/plugins/rtm-plugin';
88
- import { getBoardOptions, setAnnotationEngineState } from '../../utilities/shared-storage';
82
+ import { getAnnotationViewportSize, getBoardOptions } from '../../utilities/shared-storage';
83
+ import { convertShapeToBoardToolType, engineRestConfig } from './libs';
89
84
  var _A = /*#__PURE__*/new WeakMap();
90
- var _B = /*#__PURE__*/new WeakMap();
91
- var _C = /*#__PURE__*/new WeakMap();
92
- var _D = /*#__PURE__*/new WeakMap();
93
- _ref = (_handleBoardDomLoadDecs = [action, action.bound], _closeDecs = [action, action.bound], _hideDecs = [action, action.bound], _showDecs = [action, action.bound], _handleSetToolDecs = [debounced(300), bound], "logger");
94
85
  export var FragmentAnnotationStore = /*#__PURE__*/function () {
95
86
  function FragmentAnnotationStore() {
96
87
  var _this = this;
97
88
  _classCallCheck(this, FragmentAnnotationStore);
98
- _defineProperty(this, _ref, (_initProto(this), createFragmentLogger({
99
- prefix: 'AnnotationFragmentStore'
89
+ _defineProperty(this, "logger", (_initProto(this), createFragmentLogger({
90
+ prefix: 'FragmentWhiteboardStore'
100
91
  })));
101
92
  _defineProperty(this, "_engine", null);
102
- _defineProperty(this, "_FORGE_WHITEBOARD_APP_ID", 'Annotation');
103
- _defineProperty(this, "_boardInstance", null);
104
- _defineProperty(this, "_boardRoom", null);
105
- _defineProperty(this, "_boardView", document.createElement('div'));
106
- _classPrivateFieldInitSpec(this, _A, _init_joined(this, false));
107
- _classPrivateFieldInitSpec(this, _B, _init_bounds(this, {
108
- x: 0,
109
- y: 0,
110
- width: 800,
111
- height: 600
112
- }));
113
- _classPrivateFieldInitSpec(this, _C, _init_currentTool(this, 'none'));
114
- _classPrivateFieldInitSpec(this, _D, _init_drawing(this, false));
115
- _defineProperty(this, "_hasWaitingOpen", false);
116
- _defineProperty(this, "_lastViewPortSet", {
117
- width: 0,
118
- height: 0
93
+ _defineProperty(this, "_engineObserver", {});
94
+ _defineProperty(this, "_isMounted", false);
95
+ _defineProperty(this, "_boardObserver", {
96
+ onConnectionStateUpdated: this._handleConnectionStateUpdated
97
+ });
98
+ _defineProperty(this, "_boardMainWindowObserver", {
99
+ onUndoStateUpdated: function onUndoStateUpdated(enable) {
100
+ _this.logger.info("[annotation-fragment]: undo state updated, enable ".concat(enable));
101
+ _this.mainWindowRenderer.notifyObservers('onUndoStateUpdated', enable);
102
+ },
103
+ onRedoStateUpdated: function onRedoStateUpdated(enable) {
104
+ _this.logger.info("[annotation-fragment]: redo state updated, enable ".concat(enable));
105
+ _this.mainWindowRenderer.notifyObservers('onRedoStateUpdated', enable);
106
+ }
107
+ });
108
+ _defineProperty(this, "_mainWindowObserver", {
109
+ onPermissionUpdated: function onPermissionUpdated(hasWriteBoardPermission) {
110
+ _this.logger.info("[annotation-fragment]: onPermissionUpdated ".concat(hasWriteBoardPermission));
111
+ if (_this._annotationControl) {
112
+ _this._annotationControl.setOperationPrivilege(hasWriteBoardPermission);
113
+ }
114
+ },
115
+ onViewportSizeUpdated: function onViewportSizeUpdated(size) {
116
+ _this.setViewportSize(size);
117
+ },
118
+ onWhiteboardStrokeColorChanged: function onWhiteboardStrokeColorChanged(color) {
119
+ var _this$_boardInstance;
120
+ _this.logger.info("[annotation-fragment]: onWhiteboardStrokeColorChanged ".concat(color));
121
+ _this._lastStrokeColor = color;
122
+ (_this$_boardInstance = _this._boardInstance) === null || _this$_boardInstance === void 0 || _this$_boardInstance.setStrokeColor(tinycolor(color).toRgb());
123
+ },
124
+ onWhiteboardStrokeWidthChanged: function onWhiteboardStrokeWidthChanged(width) {
125
+ var _this$_boardInstance2;
126
+ _this.logger.info("[annotation-fragment]: onWhiteboardStrokeWidthChanged ".concat(width));
127
+ _this._lastStrokeWidth = width;
128
+ (_this$_boardInstance2 = _this._boardInstance) === null || _this$_boardInstance2 === void 0 || _this$_boardInstance2.setStrokeWidth(width);
129
+ },
130
+ onWhiteboardToolSelected: function onWhiteboardToolSelected(_ref) {
131
+ var _this$_boardInstance5, _this$_boardInstance6, _this$_boardInstance7;
132
+ var tool = _ref.tool,
133
+ shape = _ref.shape,
134
+ action = _ref.action;
135
+ if (tool !== undefined || shape !== undefined) {
136
+ _this._lastToolPayload = {
137
+ tool: tool,
138
+ shape: shape
139
+ };
140
+ }
141
+ if (tool !== undefined) {
142
+ var _this$_boardInstance3;
143
+ _this.currentTool = tool;
144
+ (_this$_boardInstance3 = _this._boardInstance) === null || _this$_boardInstance3 === void 0 || _this$_boardInstance3.setToolType(tool);
145
+ }
146
+ if (shape !== undefined) {
147
+ var _this$_boardInstance4;
148
+ _this.currentTool = convertShapeToBoardToolType(shape);
149
+ (_this$_boardInstance4 = _this._boardInstance) === null || _this$_boardInstance4 === void 0 || _this$_boardInstance4.setToolType(convertShapeToBoardToolType(shape));
150
+ }
151
+ if (action) {
152
+ switch (action) {
153
+ case WhiteboardToolAction.UNDO:
154
+ (_this$_boardInstance5 = _this._boardInstance) === null || _this$_boardInstance5 === void 0 || _this$_boardInstance5.undo();
155
+ break;
156
+ case WhiteboardToolAction.REDO:
157
+ (_this$_boardInstance6 = _this._boardInstance) === null || _this$_boardInstance6 === void 0 || _this$_boardInstance6.redo();
158
+ break;
159
+ case WhiteboardToolAction.CLEAR:
160
+ (_this$_boardInstance7 = _this._boardInstance) === null || _this$_boardInstance7 === void 0 || _this$_boardInstance7.clean();
161
+ break;
162
+ }
163
+ }
164
+ },
165
+ onSaveDraft: function () {
166
+ var _onSaveDraft = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
167
+ var _this$_boardInstance8;
168
+ var image;
169
+ return _regeneratorRuntime.wrap(function (_context) {
170
+ while (1) switch (_context.prev = _context.next) {
171
+ case 0:
172
+ _this.logger.info("[annotation-fragment]: onSaveDraft");
173
+ _context.next = 1;
174
+ return (_this$_boardInstance8 = _this._boardInstance) === null || _this$_boardInstance8 === void 0 ? void 0 : _this$_boardInstance8.getSnapshotImage();
175
+ case 1:
176
+ image = _context.sent;
177
+ _this.logger.info("[annotation-fragment]: save draft image: ".concat(image));
178
+ if (image) {
179
+ _this.mainWindowRenderer.notifyObservers('onDraftSaved', image);
180
+ }
181
+ case 2:
182
+ case "end":
183
+ return _context.stop();
184
+ }
185
+ }, _callee);
186
+ }));
187
+ function onSaveDraft() {
188
+ return _onSaveDraft.apply(this, arguments);
189
+ }
190
+ return onSaveDraft;
191
+ }()
119
192
  });
120
- _defineProperty(this, "_pollingCancelHandler", function () {});
121
- _defineProperty(this, "_checkForConnectTaskInterval", AgoraScheduler.Duration.second(1));
122
- _defineProperty(this, "_isEngineInitialized", false);
123
- _defineProperty(this, "_openAbortController", null);
124
- _defineProperty(this, "_openLock", false);
125
- this._checkForConnectTask = AgoraScheduler.shared.addIntervalTask(function () {
126
- _this._checkForConnect();
127
- }, this._checkForConnectTaskInterval);
193
+ _classPrivateFieldInitSpec(this, _A, _init_currentTool(this, FcrBoardToolType.NONE));
194
+ window.require = parent.window.require;
195
+ this._viewportSize = getAnnotationViewportSize();
196
+ this._init();
128
197
  }
129
198
  return _createClass(FragmentAnnotationStore, [{
130
- key: "joined",
199
+ key: "currentTool",
131
200
  get: function get() {
132
201
  return _classPrivateFieldGet(_A, this);
133
202
  },
@@ -135,732 +204,273 @@ export var FragmentAnnotationStore = /*#__PURE__*/function () {
135
204
  _classPrivateFieldSet(_A, this, v);
136
205
  }
137
206
  }, {
138
- key: "bounds",
207
+ key: "boardDom",
139
208
  get: function get() {
140
- return _classPrivateFieldGet(_B, this);
141
- },
142
- set: function set(v) {
143
- _classPrivateFieldSet(_B, this, v);
209
+ return this._boardDom;
144
210
  }
145
211
  }, {
146
- key: "currentTool",
212
+ key: "mainWindowRenderer",
147
213
  get: function get() {
148
- return _classPrivateFieldGet(_C, this);
149
- },
150
- set: function set(v) {
151
- _classPrivateFieldSet(_C, this, v);
214
+ // @ts-ignore
215
+ var mainWindowRenderer = window.parent.FcrUIMainWindowRenderer;
216
+ if (!mainWindowRenderer) {
217
+ console.log(window.parent);
218
+ throw new Error('main window renderer is not found');
219
+ }
220
+ return mainWindowRenderer;
152
221
  }
153
222
  }, {
154
- key: "drawing",
155
- get: function get() {
156
- return _classPrivateFieldGet(_D, this);
157
- },
158
- set: function set(v) {
159
- _classPrivateFieldSet(_D, this, v);
223
+ key: "setViewportSize",
224
+ value: function setViewportSize(viewportSize) {
225
+ var _this$_boardInstance9;
226
+ this._viewportSize = viewportSize;
227
+ (_this$_boardInstance9 = this._boardInstance) === null || _this$_boardInstance9 === void 0 || _this$_boardInstance9.updateWindowSize(viewportSize);
160
228
  }
161
- }, {
162
- key: "open",
163
- value: function () {
164
- var _open = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
165
- var _this2 = this;
166
- var visible, boardRoom, _this$_resizeToMax, boundsWidth, boundsHeight, width, height, whiteboard, _t;
167
- return _regeneratorRuntime.wrap(function (_context) {
168
- while (1) switch (_context.prev = _context.next) {
169
- case 0:
170
- if (!(this._openLock || this.joined)) {
171
- _context.next = 1;
172
- break;
173
- }
174
- return _context.abrupt("return");
175
- case 1:
176
- this._openLock = true;
177
- _context.prev = 2;
178
- // TODO: window
179
- // @ts-ignore
180
- visible = window.runtime.browserWindow.isVisible();
181
- this.logger.info("open method is called, the init bounds is =>, ".concat(JSON.stringify(this.bounds), ", visible ").concat(visible));
182
- if (!visible) {
183
- _context.next = 3;
184
- break;
185
- }
186
- return _context.abrupt("return");
187
- case 3:
188
- this._cancelCurrentUpdateWindowSizeTimber('send-fragment-close');
189
- this.currentTool = 'curve';
190
- // TODO: window
191
- this.logger.info('windows_index setAlwaysOnTop in annotation');
192
- // @ts-ignore
193
- window.runtime.browserWindow.setAlwaysOnTop(true, 'pop-up-menu');
194
- this.setIgnore(true);
195
- this._hasWaitingOpen = !this._engine;
196
- if (this._engine) {
197
- _context.next = 4;
198
- break;
199
- }
200
- this.logger.info("this._engine is null, so open fail, cannot draw, we will reopen after engine connected");
201
- return _context.abrupt("return");
202
- case 4:
203
- this.logger.info('this._engine is initialized, show annotation window');
204
- // TODO: window
205
- // @ts-ignore
206
- window.runtime.browserWindow.show();
207
- case 5:
208
- if (!this._boardRoom) {
209
- _context.next = 6;
210
- break;
211
- }
212
- throw new Error('state is not in sync, joined state is false, but boardRoom is not null');
213
- case 6:
214
- _context.next = 7;
215
- return this._initBoardRoom();
216
- case 7:
217
- boardRoom = _context.sent;
218
- this._boardRoom = boardRoom;
219
- _this$_resizeToMax = this._resizeToMax(this.bounds.width, this.bounds.height, 1920), boundsWidth = _this$_resizeToMax.width, boundsHeight = _this$_resizeToMax.height;
220
- width = boundsWidth;
221
- height = boundsHeight;
222
- if (!boundsWidth) {
223
- this.logger.warn("boundsWidth is a invalid value: ".concat(boundsWidth, ", use default width 800"));
224
- width = 800;
225
- }
226
- if (!boundsHeight) {
227
- this.logger.warn("boundsHeight is a invalid value: ".concat(boundsHeight, ", use default height 600"));
228
- height = 600;
229
- }
230
- _context.next = 8;
231
- return boardRoom.applicationManager.launchApplication(FcrWhiteboardApplication, {
232
- width: width,
233
- height: height,
234
- defaultToolbarStyle: {
235
- tool: 'curve',
236
- strokeColor: '#FFC908',
237
- strokeWidth: 2
238
- },
239
- maxScaleRatio: 1
240
- }, this._FORGE_WHITEBOARD_APP_ID);
241
- case 8:
242
- whiteboard = _context.sent;
243
- this._boardInstance = whiteboard;
244
- this.logger.info("whiteboard launch success");
245
- this._boardView.classList.add('fcr-whiteboard-window-view');
246
- this._boardView.appendChild(whiteboard.view);
247
- if (this._boardDom) {
248
- _context.next = 9;
249
- break;
250
- }
251
- throw new Error('cannot mount board view, boardDom is not set');
252
- case 9:
253
- this._boardDom.appendChild(this._boardView);
254
-
255
- // @ts-ignore
256
- window._boardInstance = this._boardInstance;
257
- this._initBoardStyle(whiteboard);
258
-
259
- // 共享发起端 开启标注时,重置30s轮询updateWindowSize
260
- this._handlePollingUpdateWindowSize('sender-board-room-init');
261
- this._syncScreenShareOwnerOpenDone();
262
- boardRoom.applicationManager.on('launch', this._launchHandler);
263
- boardRoom.applicationManager.on('terminal', this._terminalHandler);
264
- // workaround
265
- setTimeout(function () {
266
- _this2.logger.info('clear page');
267
- whiteboard.clearPage();
268
- });
269
- this.joined = true;
270
- _context.next = 11;
271
- break;
272
- case 10:
273
- _context.prev = 10;
274
- _t = _context["catch"](2);
275
- this._boardInstance = null;
276
- this._boardRoom = null;
277
- this.joined = false;
278
- this.logger.error("open failed, error: ".concat(_t));
279
- throw _t;
280
- case 11:
281
- _context.prev = 11;
282
- this._openLock = false;
283
- this.logger.info("open method is finished");
284
- return _context.finish(11);
285
- case 12:
286
- case "end":
287
- return _context.stop();
288
- }
289
- }, _callee, this, [[2, 10, 11, 12]]);
290
- }));
291
- function open() {
292
- return _open.apply(this, arguments);
293
- }
294
- return open;
295
- }()
296
229
  }, {
297
230
  key: "handleBoardDomLoad",
298
231
  value: function handleBoardDomLoad(dom) {
299
232
  this._boardDom = dom;
300
233
  }
301
234
  }, {
302
- key: "close",
303
- value: function () {
304
- var _close = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
305
- var boardInstance, boardRoom;
306
- return _regeneratorRuntime.wrap(function (_context2) {
307
- while (1) switch (_context2.prev = _context2.next) {
308
- case 0:
309
- try {
310
- if (this._openAbortController) {
311
- this._openAbortController.abort();
312
- this._openAbortController = null;
313
- }
314
- this._cancelCurrentUpdateWindowSizeTimber('send-fragment-close');
315
- boardInstance = this._boardInstance;
316
- boardRoom = this._boardRoom;
317
- if (boardInstance) {
318
- try {
319
- this._boardView.removeChild(boardInstance.view);
320
- } catch (domError) {
321
- this.logger.warn('failed to remove board view', domError);
322
- }
323
- boardInstance.clearPage();
324
- }
325
- if (boardRoom) {
326
- boardRoom.applicationManager.removeListener('launch', this._launchHandler);
327
- boardRoom.applicationManager.removeListener('terminal', this._terminalHandler);
328
- boardRoom.leaveRoom();
329
- this.logger.info(// @ts-ignore
330
- "leaveRoom, ".concat(boardRoom['traceId']));
331
- }
332
- this._boardInstance = null;
333
- this._boardRoom = null;
334
- this.joined = false;
335
- this.currentTool = 'curve';
336
- } catch (e) {
337
- this.logger.error('catch error', e);
338
- } finally {
339
- // TODO: window
340
- // @ts-ignore
341
- window.runtime.browserWindow.hide();
342
- this.logger.info('close annotation window');
343
- }
344
- case 1:
345
- case "end":
346
- return _context2.stop();
347
- }
348
- }, _callee2, this);
349
- }));
350
- function close() {
351
- return _close.apply(this, arguments);
352
- }
353
- return close;
354
- }()
355
- }, {
356
- key: "hide",
357
- value: function hide() {
358
- // TODO: window
359
- // @ts-ignore
360
- window.runtime.browserWindow.hide();
361
- this.logger.info('hide annotation window');
362
- }
363
- }, {
364
- key: "show",
365
- value: function show() {
366
- // TODO: window
367
- this.logger.info('windows_index setAlwaysOnTop in annotation show');
368
- // @ts-ignore
369
- window.runtime.browserWindow.setAlwaysOnTop(true, 'pop-up-menu');
370
-
371
- // TODO: window
372
- // @ts-ignore
373
- window.runtime.browserWindow.show();
374
- this.logger.info('show annotation window');
235
+ key: "log",
236
+ value: function log(message) {
237
+ this.logger.info(message);
375
238
  }
376
239
  }, {
377
- key: "focus",
378
- value: function focus() {
379
- this.logger.info('focus annotation window');
380
-
381
- // TODO: window
382
- // @ts-ignore
383
- window.runtime.browserWindow.focus();
384
- }
385
- }, {
386
- key: "setBounds",
387
- value: function setBounds(bounds) {
388
- this.bounds = bounds;
389
- this.logger.info("bounds is changed =>, ".concat(JSON.stringify(bounds)));
390
-
391
- // TODO: window
392
- // @ts-ignore
393
- window.runtime.browserWindow.setBounds(bounds);
394
- this._updateBoardElBySize({
395
- width: bounds.width,
396
- height: bounds.height
397
- });
398
- }
399
- }, {
400
- key: "updateWindowSize",
401
- value: function updateWindowSize(paramWidth, paramHeight) {
402
- this._updateWindowSize(paramWidth, paramHeight);
403
- }
404
- }, {
405
- key: "_updateWindowSizeWithCurrentBounds",
406
- value: function _updateWindowSizeWithCurrentBounds() {
407
- if (this.bounds && this.bounds.width > 0 && this.bounds.height > 0) {
408
- this._updateWindowSize(this.bounds.width, this.bounds.height);
409
- }
410
- }
411
- }, {
412
- key: "_updateWindowSize",
413
- value: function _updateWindowSize(paramWidth, paramHeight) {
414
- if (!paramWidth || !paramHeight) {
415
- return;
416
- }
417
- this._lastViewPortSet.width = paramWidth;
418
- this._lastViewPortSet.height = paramHeight;
419
- if (this._boardInstance) {
420
- this.logger.info("updateViewport width:".concat(paramWidth, " height:").concat(paramHeight));
421
- this._boardInstance.updateViewport(paramWidth, paramHeight);
422
- } else {
423
- this.logger.error('cannot updateViewport, _boardInstance is null');
424
- }
425
- }
426
- }, {
427
- key: "_updateBoardElBySize",
428
- value: function _updateBoardElBySize(size) {
429
- if (size) {
430
- var _this$_boardInstance;
431
- this.logger.info('update board element size', size);
432
- this._boardView.style.width = "".concat(size.width, "px");
433
- this._boardView.style.height = "".concat(size.height, "px");
434
- var currentBoardInstanceView = (_this$_boardInstance = this._boardInstance) === null || _this$_boardInstance === void 0 ? void 0 : _this$_boardInstance.view;
435
- if (currentBoardInstanceView) {
436
- currentBoardInstanceView.style.width = "".concat(size.width, "px");
437
- currentBoardInstanceView.style.height = "".concat(size.height, "px");
438
- }
439
- this._updateWindowSize(size.width, size.height);
240
+ key: "_mount",
241
+ value: function _mount() {
242
+ this.logger.info("[annotation-fragment]: mounted board dom");
243
+ if (this._boardDom && this._boardInstance && !this._isMounted) {
244
+ this._boardDom.appendChild(this._boardInstance.getContentView());
245
+ this._isMounted = true;
440
246
  }
441
247
  }
442
248
  }, {
443
- key: "setIgnore",
444
- value: function setIgnore(ignore) {
445
- this.logger.info("setIgnore method is called, the ignore is => ".concat(ignore));
446
-
447
- // TODO: window
249
+ key: "_handleConnectionStateUpdated",
250
+ value: function _handleConnectionStateUpdated(state) {
251
+ this.logger.info("[whitebaord-fragment]: connection state updated: ".concat(FcrConnectionState[state]));
448
252
  // @ts-ignore
449
- window.runtime.browserWindow.setIgnoreMouseEvents(ignore);
450
- }
451
- }, {
452
- key: "toolChanged",
453
- value: function toolChanged(event) {
454
- if (!this._boardInstance) return;
455
- this.logger.info("toolChanged method is called, the event is => ".concat(JSON.stringify(event)));
456
- var board = this._boardInstance;
457
- var payload = event.payload;
458
- switch (event.action) {
459
- case ToolbarEvents.SET_TOOL:
460
- this._handleSetTool(payload);
461
- break;
462
- case ToolbarEvents.SET_STROKE_COLOR:
463
- board.strokeColor = payload;
464
- break;
465
- case ToolbarEvents.SET_STROKE_WIDTH:
466
- this._boardInstance.strokeWidth = payload;
467
- break;
468
- case ToolbarEvents.CLEAN:
469
- board.clearPage();
470
- break;
471
- case ToolbarEvents.REDO:
472
- board.redo();
473
- break;
474
- case ToolbarEvents.UNDO:
475
- board.undo();
476
- break;
477
- case ToolbarEvents.SET_PEN:
478
- board.setInputType('pen');
479
- break;
480
- case ToolbarEvents.SET_SHAPE:
481
- board.setCurrentTool(convertTool(payload));
482
- break;
483
- // case ToolbarEvents.CAPTURE_SCREEN:
484
- // window.runtime.captureScreen({ hideWindow: true });
485
- // break;
486
- }
487
- }
488
- }, {
489
- key: "setDrawing",
490
- value: function setDrawing(drawing) {
491
- this.logger.info("setDrawing method is called, the drawing is => ".concat(drawing));
492
- this.drawing = drawing;
493
- }
494
- }, {
495
- key: "_initBoardStyle",
496
- value: function _initBoardStyle(whiteboard) {
497
- var frameWidth = this.bounds.width;
498
- var frameHeight = this.bounds.height;
499
- this.logger.info("mount success, width: ".concat(frameWidth, " , height: ").concat(frameHeight));
500
- this._boardView.style.width = "".concat(frameWidth, "px");
501
- this._boardView.style.height = "".concat(frameHeight, "px");
502
- whiteboard.view.style.height = "".concat(frameHeight, "px");
503
- whiteboard.view.style.width = "".concat(frameWidth, "px");
504
- whiteboard.setCanvasBackgroundColor('rgba(0, 0, 0, 0)');
505
- whiteboard.enableCameraByMouse = false;
506
- whiteboard.enableCameraByTouch = false;
507
- // whiteboard.cameraBoundaryColor = 'rgba(0, 0, 0, 0)';
508
- whiteboard.enableCameraBoundaryHighlight = false;
509
- whiteboard.strokeColor = '#FFC908';
510
- whiteboard.setCurrentTool('curve');
511
- this._updateWindowSize(frameWidth, frameHeight);
512
- this.logger.info("mount success current tool, ".concat(whiteboard.getCurrentTool(), ", updateViewport width: ").concat(frameWidth, " height: ").concat(frameHeight));
513
- whiteboard.on('undoStackLength', function (steps) {
514
- // isWindows() && window.runtime.browserWindow.blur();
515
- // renderer.sendEvent({
516
- // action: FcrUIRendererEventAction.SET_ANNOTATION_UNDO,
517
- // payload: steps > 0,
518
- // });
519
- });
520
- whiteboard.on('redoStackLength', function (steps) {
521
- // isWindows() && window.runtime.browserWindow.blur();
522
- // renderer.sendEvent({
523
- // action: FcrUIRendererEventAction.SET_ANNOTATION_REDO,
524
- // payload: steps > 0,
525
- // });
526
- });
527
- }
528
- }, {
529
- key: "_handleSetTool",
530
- value: function _handleSetTool(payload) {
531
- var _this3 = this;
532
- var board = this._boardInstance;
533
- this.currentTool = 'none';
534
- var currentTool = convertTool(payload);
535
- if (board) {
536
- board.setCurrentTool(currentTool);
537
- var timber = setTimeout(function () {
538
- var _this3$_boardDom;
539
- (_this3$_boardDom = _this3._boardDom) === null || _this3$_boardDom === void 0 || _this3$_boardDom.getBoundingClientRect();
540
- _this3.currentTool = currentTool;
541
- clearTimeout(timber);
542
- }, 600);
253
+ window.parent.FcrUIMainWindowRenderer.notifyObservers('onConnectionStateUpdated', state);
254
+ if (state === FcrConnectionState.CONNECTED) {
255
+ var _this$_annotationCont, _this$_boardInstance0, _this$_boardInstance1;
256
+ this.logger.info(// @ts-ignore
257
+ "[annotation-fragment]: connection state updated: ".concat(FcrConnectionState[state], ", background color: ").concat(window.parent.FcrUIMainWindowRenderer.backgroundColor));
258
+ this._boardInstance = (_this$_annotationCont = this._annotationControl) === null || _this$_annotationCont === void 0 ? void 0 : _this$_annotationCont.getMainWindow();
259
+ var backgroundColor = 'transparent';
260
+ (_this$_boardInstance0 = this._boardInstance) === null || _this$_boardInstance0 === void 0 || _this$_boardInstance0.setBackgroundColor(backgroundColor);
261
+ (_this$_boardInstance1 = this._boardInstance) === null || _this$_boardInstance1 === void 0 || _this$_boardInstance1.clean();
262
+ this._boardInstance && this._boardInstance.addObserver(this._boardMainWindowObserver);
263
+ this._applyCachedToolState();
264
+ this._mount();
543
265
  }
544
266
  }
545
267
  }, {
546
268
  key: "_init",
547
269
  value: function () {
548
- var _init2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(engine) {
549
- var _this4 = this;
550
- return _regeneratorRuntime.wrap(function (_context3) {
551
- while (1) switch (_context3.prev = _context3.next) {
270
+ var _init2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
271
+ var _this2 = this;
272
+ var boardOptions, _ref2, nickName, token, userId, appId, boardAppId, boardId, boardRegion, boardToken, config, engineConfig, engine;
273
+ return _regeneratorRuntime.wrap(function (_context2) {
274
+ while (1) switch (_context2.prev = _context2.next) {
552
275
  case 0:
553
- engine.addObserver({
276
+ boardOptions = getBoardOptions();
277
+ _ref2 = boardOptions || {}, nickName = _ref2.nickName, token = _ref2.boardUserToken, userId = _ref2.boardUserUuid, appId = _ref2.rtmAppId, boardAppId = _ref2.boardAppId, boardId = _ref2.boardId, boardRegion = _ref2.boardRegion, boardToken = _ref2.boardToken;
278
+ if (token) {
279
+ _context2.next = 1;
280
+ break;
281
+ }
282
+ this.logger.error("[annotation-fragment]: room token is not found");
283
+ return _context2.abrupt("return");
284
+ case 1:
285
+ if (userId) {
286
+ _context2.next = 2;
287
+ break;
288
+ }
289
+ this.logger.error("[annotation-fragment]: user id is not found");
290
+ return _context2.abrupt("return");
291
+ case 2:
292
+ if (appId) {
293
+ _context2.next = 3;
294
+ break;
295
+ }
296
+ this.logger.error("[annotation-fragment]: app id is not found");
297
+ return _context2.abrupt("return");
298
+ case 3:
299
+ config = {
300
+ userId: userId,
301
+ nickName: nickName,
302
+ boardConfig: {
303
+ boardAppId: boardAppId,
304
+ boardId: boardId,
305
+ boardRegion: boardRegion,
306
+ boardToken: boardToken
307
+ }
308
+ };
309
+ this.logger.info("[annotation-fragment][initEngine]: init engine with config => ".concat(JSON.stringify(config)));
310
+ engineConfig = new FcrCoreEngineConfig(_objectSpread({
311
+ appId: appId,
312
+ token: token,
313
+ userId: userId,
314
+ region: FcrRegion.CN
315
+ }, engineRestConfig));
316
+ engine = new FcrCoreEngine(engineConfig);
317
+ this._engineObserver = {
554
318
  onConnectionStateUpdated: function onConnectionStateUpdated(state) {
555
- setAnnotationEngineState(state);
556
- // renderer.sendEvent({
557
- // action: FcrUIRendererEventAction.FRAGMENT_ANNOTATION_ENGINE_STATE,
558
- // payload: state,
559
- // });
560
319
  if (state === FcrConnectionState.CONNECTED) {
561
- _this4._engine = engine;
562
- _this4.logger.info("engine connection state updated => CONNECTED, hasWaitingOpen ".concat(_this4._hasWaitingOpen));
563
- if (_this4._hasWaitingOpen) {
564
- _this4._hasWaitingOpen = false;
565
- _this4.open();
320
+ _this2._engine = engine;
321
+
322
+ // 只需要初始化一次, 网络断开重连时不需要重复初始化
323
+ if (!_this2._annotationControl) {
324
+ _this2._initAnnotationControl();
566
325
  }
326
+ _this2.logger.info("[annotation-fragment][initEngine]: engine connection state updated => CONNECTED}");
567
327
  }
568
328
  if (state === FcrConnectionState.DISCONNECTED) {
569
- _this4.logger.info("engine connection state updated => DISCONNECTED, the engine is ".concat(_this4._engine));
570
- _this4._engine && engine.login();
329
+ _this2.logger.info("[annotation-fragment][initEngine]: engine connection state updated => DISCONNECTED, the engine is ".concat(_this2._engine));
330
+ _this2._engine && engine.login();
571
331
  }
572
332
  if (state === FcrConnectionState.CONNECTING) {
573
- _this4.logger.info("engine connection state updated => CONNECTING");
333
+ _this2.logger.info("[annotation-fragment][initEngine]: engine connection state updated => CONNECTING");
574
334
  }
575
335
  if (state === FcrConnectionState.RECONNECTING) {
576
- _this4.logger.info("engine connection state updated => RECONNECTING");
336
+ _this2.logger.info("[annotation-fragment][initEngine]: engine connection state updated => RECONNECTING");
577
337
  }
578
338
  if (state === FcrConnectionState.ABORTED) {
579
- _this4.logger.info("engine connection state updated => ABORTED, the engine is ".concat(_this4._engine));
580
- _this4._engine && engine.login();
339
+ _this2.logger.info("[annotation-fragment][initEngine]: engine connection state updated => ABORTED, the engine is ".concat(_this2._engine));
340
+ _this2._engine && engine.login();
581
341
  }
582
342
  }
583
- });
343
+ };
344
+ engine.addObserver(this._engineObserver);
584
345
  engine.login();
585
-
586
- // TODO: window
587
- // @ts-ignore
588
- window.runtime.browserWindow.hide();
589
- case 1:
346
+ case 4:
590
347
  case "end":
591
- return _context3.stop();
348
+ return _context2.stop();
592
349
  }
593
- }, _callee3);
350
+ }, _callee2, this);
594
351
  }));
595
- function _init(_x) {
352
+ function _init() {
596
353
  return _init2.apply(this, arguments);
597
354
  }
598
355
  return _init;
599
356
  }()
600
357
  }, {
601
- key: "_initBoardRoom",
358
+ key: "_initAnnotationControl",
602
359
  value: function () {
603
- var _initBoardRoom2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7() {
604
- var _this5 = this;
605
- var _this$_config, userId, boardToken, region, appIdentifier, boardId, nickName, rtmClient, rtmProvider, wbRoom, currentTimeStamp, abortController;
606
- return _regeneratorRuntime.wrap(function (_context7) {
607
- while (1) switch (_context7.prev = _context7.next) {
360
+ var _initAnnotationControl2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
361
+ var boardOptions, nickName, boardAppId, userId, boardId, region, boardToken, config, hasPrivilege;
362
+ return _regeneratorRuntime.wrap(function (_context3) {
363
+ while (1) switch (_context3.prev = _context3.next) {
608
364
  case 0:
609
- if (this._config) {
610
- _context7.next = 1;
365
+ boardOptions = getBoardOptions(); // 字段校验
366
+ if (boardOptions) {
367
+ _context3.next = 1;
611
368
  break;
612
369
  }
613
- throw new Error('cannot init board room, config is not set');
370
+ this.logger.error("[annotation-fragment]: board options is not found");
371
+ return _context3.abrupt("return");
614
372
  case 1:
615
- _this$_config = this._config, userId = _this$_config.userId, boardToken = _this$_config.boardToken, region = _this$_config.region, appIdentifier = _this$_config.appIdentifier, boardId = _this$_config.boardId, nickName = _this$_config.nickName;
616
- this.logger.info("start init board room with config => ".concat(JSON.stringify(this._config), " - ").concat(nickName));
617
- // @ts-ignore
618
- rtmClient = this._engine._rteEngine._rtmClient._client;
619
- rtmProvider = new FcrRTMProvider_2_2(rtmClient);
620
- wbRoom = new FcrRoom(boardId, rtmProvider);
621
- this._boardRoom = wbRoom;
622
- currentTimeStamp = Date.now(); // @ts-ignore
623
- this._boardRoom['traceId'] = "".concat(boardToken, "-").concat(boardId, "-").concat(userId, "-").concat(currentTimeStamp);
624
- wbRoom.applicationManager.registerApplication(FcrWhiteboardApplication);
625
- this.logger.info("bordRoom instance is created, start join room");
626
- abortController = new AbortController();
627
- this._openAbortController = abortController;
628
- return _context7.abrupt("return", new Promise(/*#__PURE__*/function () {
629
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(resolve, reject) {
630
- var retriesMax, _t2;
631
- return _regeneratorRuntime.wrap(function (_context6) {
632
- while (1) switch (_context6.prev = _context6.next) {
633
- case 0:
634
- // 监听中止信号
635
- abortController.signal.addEventListener('abort', function () {
636
- reject(new Error('join board room aborted'));
637
- });
638
- _context6.prev = 1;
639
- retriesMax = 10;
640
- _context6.next = 2;
641
- return retryAttempt(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
642
- return _regeneratorRuntime.wrap(function (_context4) {
643
- while (1) switch (_context4.prev = _context4.next) {
644
- case 0:
645
- _context4.next = 1;
646
- return wbRoom.joinRoom({
647
- userId: userId,
648
- nickName: nickName,
649
- roomToken: boardToken,
650
- sdkConfig: {
651
- // @ts-ignore
652
- region: region,
653
- appIdentifier: appIdentifier
654
- }
655
- });
656
- case 1:
657
- case "end":
658
- return _context4.stop();
659
- }
660
- }, _callee4);
661
- })), [], {
662
- retriesMax: retriesMax
663
- }).fail(/*#__PURE__*/function () {
664
- var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(_ref4) {
665
- var error, timeFn, currentRetry;
666
- return _regeneratorRuntime.wrap(function (_context5) {
667
- while (1) switch (_context5.prev = _context5.next) {
668
- case 0:
669
- error = _ref4.error, timeFn = _ref4.timeFn, currentRetry = _ref4.currentRetry;
670
- if (!abortController.signal.aborted) {
671
- _context5.next = 1;
672
- break;
673
- }
674
- throw new Error('join board room aborted');
675
- case 1:
676
- _this5.logger.info("retry to join board room, ".concat(error.message, ", retry ").concat(currentRetry, " times"));
677
- _context5.next = 2;
678
- return timeFn();
679
- case 2:
680
- return _context5.abrupt("return", true);
681
- case 3:
682
- case "end":
683
- return _context5.stop();
684
- }
685
- }, _callee5);
686
- }));
687
- return function (_x4) {
688
- return _ref5.apply(this, arguments);
689
- };
690
- }()).exec();
691
- case 2:
692
- if (!abortController.signal.aborted) {
693
- _context6.next = 3;
694
- break;
695
- }
696
- throw new Error('join board room aborted');
697
- case 3:
698
- _this5.logger.info(// @ts-ignore
699
- "join room success, traceId ".concat(_this5._boardRoom['traceId']));
700
- wbRoom.userManager.on('join', _this5._handleBoardRoomUserJoin);
701
- resolve(wbRoom);
702
- _context6.next = 5;
703
- break;
704
- case 4:
705
- _context6.prev = 4;
706
- _t2 = _context6["catch"](1);
707
- _this5.logger.error("join room failed");
708
- reject(_t2);
709
- case 5:
710
- _context6.prev = 5;
711
- _this5._openAbortController = null;
712
- return _context6.finish(5);
713
- case 6:
714
- return _context6.abrupt("return", wbRoom);
715
- case 7:
716
- case "end":
717
- return _context6.stop();
718
- }
719
- }, _callee6, null, [[1, 4, 5, 6]]);
720
- }));
721
- return function (_x2, _x3) {
722
- return _ref2.apply(this, arguments);
723
- };
724
- }()));
373
+ nickName = boardOptions.nickName, boardAppId = boardOptions.boardAppId, userId = boardOptions.boardUserUuid, boardId = boardOptions.boardId, region = boardOptions.boardRegion, boardToken = boardOptions.boardToken; // 校验必需字段
374
+ if (userId) {
375
+ _context3.next = 2;
376
+ break;
377
+ }
378
+ this.logger.error("[annotation-fragment]: boardUserUuid is required");
379
+ return _context3.abrupt("return");
725
380
  case 2:
381
+ if (boardAppId) {
382
+ _context3.next = 3;
383
+ break;
384
+ }
385
+ this.logger.error("[annotation-fragment]: boardAppId is required");
386
+ return _context3.abrupt("return");
387
+ case 3:
388
+ if (boardId) {
389
+ _context3.next = 4;
390
+ break;
391
+ }
392
+ this.logger.error("[annotation-fragment]: boardId is required");
393
+ return _context3.abrupt("return");
394
+ case 4:
395
+ if (region) {
396
+ _context3.next = 5;
397
+ break;
398
+ }
399
+ this.logger.error("[annotation-fragment]: boardRegion is required");
400
+ return _context3.abrupt("return");
401
+ case 5:
402
+ if (boardToken) {
403
+ _context3.next = 6;
404
+ break;
405
+ }
406
+ this.logger.error("[annotation-fragment]: boardToken is required");
407
+ return _context3.abrupt("return");
408
+ case 6:
409
+ // 可选字段校验和默认值处理
410
+ if (!nickName) {
411
+ this.logger.warn("[annotation-fragment]: nickName is not provided, using default value");
412
+ }
413
+ config = {
414
+ userId: userId,
415
+ userName: nickName,
416
+ size: this._viewportSize
417
+ };
418
+ this.logger.info("[annotation-fragment]: start create annotation sub process with config: ".concat(JSON.stringify(config)));
419
+ hasPrivilege = this.mainWindowRenderer.hasWriteBoardPermission;
420
+ this._annotationControl = new FcrAnnotationControlFactoryImpl().createForSubProcess(
421
+ // @ts-ignore
422
+ this._engine._rteEngine._rtmClient._client, hasPrivilege,
423
+ // @ts-ignore
424
+ config);
425
+ this.logger.info("[annotation-fragment]: annotation sub process created, the control is ".concat(this._annotationControl));
426
+ this.mainWindowRenderer.addObserver(this._mainWindowObserver);
427
+ this._annotationControl.addObserver(this._boardObserver);
428
+ this._lastToolPayload = this.mainWindowRenderer.toolPayload;
429
+ this._lastStrokeColor = this.mainWindowRenderer.strokeColor;
430
+ this._lastStrokeWidth = this.mainWindowRenderer.strokeWidth;
431
+ _context3.next = 7;
432
+ return this._annotationControl.open();
433
+ case 7:
434
+ this.logger.info("[annotation-fragment]: annotation opened, the instance");
435
+ case 8:
726
436
  case "end":
727
- return _context7.stop();
437
+ return _context3.stop();
728
438
  }
729
- }, _callee7, this);
439
+ }, _callee3, this);
730
440
  }));
731
- function _initBoardRoom() {
732
- return _initBoardRoom2.apply(this, arguments);
441
+ function _initAnnotationControl() {
442
+ return _initAnnotationControl2.apply(this, arguments);
733
443
  }
734
- return _initBoardRoom;
444
+ return _initAnnotationControl;
735
445
  }()
736
446
  }, {
737
- key: "_createEngine",
738
- value: function _createEngine(config) {
739
- var userId = config.userId,
740
- token = config.roomToken,
741
- appId = config.appId;
742
- this.logger.debug('before create engine');
743
- try {
744
- registerPlugin(new RtmPlugin());
745
- registerPlugin(new ElectronRtcPlugin());
746
- var engine = new FcrCoreEngine(_objectSpread({
747
- appId: appId,
748
- token: token,
749
- userId: userId,
750
- region: FcrRegion.CN
751
- }, engineRestConfig));
752
- this.logger.debug('after create engine');
753
- return engine;
754
- } catch (e) {
755
- this.logger.error("create engine failed, error: ".concat(e));
756
- throw e;
757
- }
758
- }
759
- }, {
760
- key: "_launchHandler",
761
- value: function _launchHandler(appId, app) {
762
- if (appId === this._FORGE_WHITEBOARD_APP_ID) {
763
- this.logger.info("launch event is triggered => ".concat(app.selfUserId));
764
- this._boardView.appendChild(app.view);
765
- this._initBoardStyle(app);
447
+ key: "_applyCachedToolState",
448
+ value: function _applyCachedToolState() {
449
+ if (!this._boardInstance) return;
450
+ if (this._lastToolPayload) {
451
+ var _this$_lastToolPayloa = this._lastToolPayload,
452
+ tool = _this$_lastToolPayloa.tool,
453
+ shape = _this$_lastToolPayloa.shape;
454
+ if (shape !== undefined) {
455
+ var convertedTool = convertShapeToBoardToolType(shape);
456
+ this.currentTool = convertedTool;
457
+ this._boardInstance.setToolType(convertedTool);
458
+ } else if (tool !== undefined) {
459
+ this.currentTool = tool;
460
+ this._boardInstance.setToolType(tool);
461
+ }
766
462
  }
767
- }
768
- }, {
769
- key: "_terminalHandler",
770
- value: function _terminalHandler(appId, app) {
771
- if (appId === this._FORGE_WHITEBOARD_APP_ID) {
772
- var _this$_boardView;
773
- this.logger.info("terminal event is triggered => ".concat(app.selfUserId));
774
- (app === null || app === void 0 ? void 0 : app.view) && this._boardView.hasChildNodes() && ((_this$_boardView = this._boardView) === null || _this$_boardView === void 0 ? void 0 : _this$_boardView.removeChild(app.view));
463
+ if (this._lastStrokeColor) {
464
+ this._boardInstance.setStrokeColor(tinycolor(this._lastStrokeColor).toRgb());
775
465
  }
776
- }
777
- }, {
778
- key: "_resizeToMax",
779
- value: function _resizeToMax(w, h) {
780
- var scaleBase = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1920;
781
- var scale = scaleBase / Math.max(w, h);
782
- return {
783
- width: Math.round(w * scale),
784
- height: Math.round(h * scale)
785
- };
786
- }
787
- }, {
788
- key: "_cancelCurrentUpdateWindowSizeTimber",
789
- value: function _cancelCurrentUpdateWindowSizeTimber(stage) {
790
- if (this._pollingCancelHandler && typeof this._pollingCancelHandler === 'function') {
791
- this._pollingCancelHandler();
792
- this.logger.info("end a new 30s polling to updateWindowSize, when ".concat(stage));
793
- }
794
- }
795
- }, {
796
- key: "_handlePollingUpdateWindowSize",
797
- value: function _handlePollingUpdateWindowSize(stage) {
798
- this._cancelCurrentUpdateWindowSizeTimber(stage);
799
- this._pollingCancelHandler = startPolling(this._updateWindowSizeWithCurrentBounds);
800
- this.logger.info("start a new 30s polling to updateWindowSize, after ".concat(stage));
801
- }
802
- }, {
803
- key: "_handleBoardRoomUserJoin",
804
- value: function _handleBoardRoomUserJoin(user) {
805
- // 共享发起端 监听白板房间有用户加入时,重置30s轮询updateWindowSize
806
- this._handlePollingUpdateWindowSize('send-board-room-user-join');
807
- }
808
- }, {
809
- key: "_syncScreenShareOwnerOpenDone",
810
- value: function _syncScreenShareOwnerOpenDone() {
811
- this.logger.info('syncScreenShareOwnerOpenDone');
812
- // renderer.sendEvent({
813
- // action: FcrUIRendererEventAction.FRAGMENT_ANNOTATION_SYNC_OWNER_OPEN_DONE,
814
- // payload: null,
815
- // });
816
- }
817
- }, {
818
- key: "_checkForConnect",
819
- value: function _checkForConnect() {
820
- var boardOptions = getBoardOptions();
821
- var readyToConnect = !!boardOptions;
822
- var isEngineInitialized = this._isEngineInitialized;
823
- this.logger.info("check for connect, readyToConnect: ".concat(readyToConnect, ", isEngineInitialized: ").concat(isEngineInitialized));
824
- if (!isEngineInitialized && readyToConnect) {
825
- this._checkForConnectTask.stop();
826
- var rtmAppId = boardOptions.rtmAppId,
827
- boardAppId = boardOptions.boardAppId,
828
- boardId = boardOptions.boardId,
829
- boardRegion = boardOptions.boardRegion,
830
- boardToken = boardOptions.boardToken,
831
- boardUserToken = boardOptions.boardUserToken,
832
- userId = boardOptions.boardUserUuid,
833
- nickName = boardOptions.nickName;
834
- this._config = {
835
- appId: rtmAppId,
836
- userId: userId,
837
- region: boardRegion,
838
- appIdentifier: boardAppId,
839
- boardId: boardId,
840
- boardToken: boardToken,
841
- nickName: nickName
842
- };
843
- this.logger.info("boardinfo => ".concat(jsonstring(this._config)));
844
- var engine = this._createEngine({
845
- userId: userId,
846
- roomToken: boardUserToken,
847
- appId: rtmAppId
848
- });
849
-
850
- // @ts-ignore
851
- window._coreEngine = engine;
852
- this.logger.info("login engine with the following config: annotationRtmAppId => ".concat(rtmAppId, ", boardOptions => ").concat(jsonstring(boardOptions)));
853
- this._init(engine);
854
- this._isEngineInitialized = true;
466
+ if (this._lastStrokeWidth !== undefined) {
467
+ this._boardInstance.setStrokeWidth(this._lastStrokeWidth);
855
468
  }
856
469
  }
857
470
  }]);
858
471
  }();
859
472
  _FragmentAnnotationStore = FragmentAnnotationStore;
860
- var _applyDecs$e = _slicedToArray(_applyDecs(_FragmentAnnotationStore, [[observable, 1, "joined"], [observable, 1, "bounds"], [observable, 1, "currentTool"], [observable, 1, "drawing"], [bound, 2, "open"], [_handleBoardDomLoadDecs, 18, "handleBoardDomLoad"], [_closeDecs, 18, "close"], [_hideDecs, 18, "hide"], [_showDecs, 18, "show"], [bound, 2, "focus"], [bound, 2, "updateWindowSize"], [bound, 2, "_updateWindowSizeWithCurrentBounds"], [bound, 2, "_updateWindowSize"], [bound, 2, "_updateBoardElBySize"], [bound, 2, "setIgnore"], [bound, 2, "toolChanged"], [bound, 2, "setDrawing"], [bound, 2, "_initBoardStyle"], [_handleSetToolDecs, 2, "_handleSetTool"], [bound, 2, "_init"], [bound, 2, "_initBoardRoom"], [bound, 2, "_launchHandler"], [bound, 2, "_terminalHandler"], [bound, 2, "_resizeToMax"], [bound, 2, "_cancelCurrentUpdateWindowSizeTimber"], [bound, 2, "_handlePollingUpdateWindowSize"], [bound, 2, "_handleBoardRoomUserJoin"], [bound, 2, "_syncScreenShareOwnerOpenDone"]], []).e, 5);
861
- _init_joined = _applyDecs$e[0];
862
- _init_bounds = _applyDecs$e[1];
863
- _init_currentTool = _applyDecs$e[2];
864
- _init_drawing = _applyDecs$e[3];
865
- _initProto = _applyDecs$e[4];
473
+ var _applyDecs$e = _slicedToArray(_applyDecs(_FragmentAnnotationStore, [[observable, 1, "currentTool"], [bound, 2, "setViewportSize"], [bound, 2, "handleBoardDomLoad"], [bound, 2, "_mount"], [bound, 2, "_handleConnectionStateUpdated"], [bound, 2, "_init"], [bound, 2, "_initAnnotationControl"]], []).e, 2);
474
+ _init_currentTool = _applyDecs$e[0];
475
+ _initProto = _applyDecs$e[1];
866
476
  export var FragmentAnnotationStoreContext = /*#__PURE__*/createContext(null);