microboard-ui-temp 0.0.3

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 (828) hide show
  1. package/.github/workflows/npm-publish.yml +66 -0
  2. package/Dockerfile +15 -0
  3. package/LICENSE.txt +17 -0
  4. package/MicroboardLicense.txt +84 -0
  5. package/README.md +23 -0
  6. package/bun.lock +1079 -0
  7. package/bunPlugins/copyPlugin.ts +81 -0
  8. package/bunfig.toml +1 -0
  9. package/docker-compose.yml +7 -0
  10. package/package.json +49 -0
  11. package/scripts/buildPkg.ts +29 -0
  12. package/scripts/buildSpa.ts +29 -0
  13. package/server.ts +18 -0
  14. package/src/App/App.ts +502 -0
  15. package/src/App/BoardsList.ts +752 -0
  16. package/src/App/Clipboard.ts +22 -0
  17. package/src/App/Connection.ts +758 -0
  18. package/src/App/Location.ts +23 -0
  19. package/src/App/MediaHelpers.ts +221 -0
  20. package/src/App/Paste/index.ts +5 -0
  21. package/src/App/Paste/pasteTextToTheBoard.ts +19 -0
  22. package/src/App/Paste/tryToGetMarkdownFromDataTransfer.ts +60 -0
  23. package/src/App/Paste/tryToPasteAsItemOrReturnText.ts +72 -0
  24. package/src/App/Paste/tryToPasteAudioByLink.ts +35 -0
  25. package/src/App/Paste/tryToPasteFromMicroboard.ts +15 -0
  26. package/src/App/Paste/tryToPasteFromMiro.ts +75 -0
  27. package/src/App/Paste/tryToPasteImages.ts +44 -0
  28. package/src/App/Paste/tryToPasteVideoByLink.ts +68 -0
  29. package/src/App/Permissions.ts +43 -0
  30. package/src/App/README.md +58 -0
  31. package/src/App/SessionStorage.ts +248 -0
  32. package/src/App/Storage.ts +122 -0
  33. package/src/App/Wheel/Wheel.spec.ts +40 -0
  34. package/src/App/Wheel/Wheel.ts +229 -0
  35. package/src/App/Wheel/WheelEventLogger.ts +70 -0
  36. package/src/App/Wheel/WheelEvents.spec.ts +418 -0
  37. package/src/App/Wheel/index.ts +1 -0
  38. package/src/App/Wheel/mockedWheelData.ts +77658 -0
  39. package/src/App/getController.ts +878 -0
  40. package/src/App/getSubscriptions.ts +155 -0
  41. package/src/App/index.ts +1 -0
  42. package/src/App/isFirefox.ts +3 -0
  43. package/src/App/isMacos.ts +2 -0
  44. package/src/App/isSafari.ts +17 -0
  45. package/src/App/router.tsx +149 -0
  46. package/src/App/testRecorder.ts +393 -0
  47. package/src/App/throttlePointerEvent.ts +27 -0
  48. package/src/App/useAccount.ts +19 -0
  49. package/src/App/useBoardSubscription.ts +14 -0
  50. package/src/App/useBoardsList.ts +18 -0
  51. package/src/App/useDomMbr.ts +65 -0
  52. package/src/Config.ts +41 -0
  53. package/src/Globals.d.ts +6 -0
  54. package/src/WhiteBoardModule/Readme.md +21 -0
  55. package/src/WhiteBoardModule/WhiteBoardModuleNative.tsx +60 -0
  56. package/src/WhiteBoardModule/WhiteboardModuleReact.tsx +61 -0
  57. package/src/development.entrypoint.ts +38 -0
  58. package/src/entities/AIInput/AIContext.tsx +377 -0
  59. package/src/entities/AIInput/AIDropdown.tsx +296 -0
  60. package/src/entities/AIInput/AIGenerationButton.tsx +54 -0
  61. package/src/entities/AIInput/AIInput.module.css +488 -0
  62. package/src/entities/AIInput/AIInput.tsx +427 -0
  63. package/src/entities/AIInput/StarIcon.tsx +201 -0
  64. package/src/entities/AIInput/index.ts +12 -0
  65. package/src/entities/AIInput/utils.ts +384 -0
  66. package/src/entities/BoardMenu/BoardMenu.module.css +38 -0
  67. package/src/entities/BoardMenu/BoardMenu.tsx +86 -0
  68. package/src/entities/BoardMenu/MouseOrTracpadModal/MouseOrTrackpadModal.tsx +138 -0
  69. package/src/entities/BoardMenu/MouseOrTracpadModal/MouseOrTracpadModal.module.css +93 -0
  70. package/src/entities/BoardMenu/index.ts +1 -0
  71. package/src/entities/BoardMenu/sections/Comments.tsx +65 -0
  72. package/src/entities/BoardMenu/sections/Items.tsx +85 -0
  73. package/src/entities/BoardMenu/sections/MouseOrTrackpad.tsx +108 -0
  74. package/src/entities/BoardName/BoardName.module.css +61 -0
  75. package/src/entities/BoardName/BoardName.tsx +66 -0
  76. package/src/entities/BoardName/BoardRename.module.css +15 -0
  77. package/src/entities/BoardName/BoardRename.tsx +93 -0
  78. package/src/entities/BoardName/index.ts +3 -0
  79. package/src/entities/Canvas/Canvas.tsx +250 -0
  80. package/src/entities/Canvas/CanvasNoRouter.tsx +216 -0
  81. package/src/entities/Canvas/index.ts +2 -0
  82. package/src/entities/Folder/DragOverlay.tsx +52 -0
  83. package/src/entities/Folder/DragPlaceholder.module.css +5 -0
  84. package/src/entities/Folder/DragPlaceholder.tsx +6 -0
  85. package/src/entities/Folder/DraggingItem.module.css +8 -0
  86. package/src/entities/Folder/DraggingWrapper.tsx +18 -0
  87. package/src/entities/Folder/Folder.module.css +113 -0
  88. package/src/entities/Folder/Folder.tsx +356 -0
  89. package/src/entities/Folder/FolderItem.module.css +89 -0
  90. package/src/entities/Folder/FolderItem.tsx +165 -0
  91. package/src/entities/Folder/FoldersDndContext.tsx +129 -0
  92. package/src/entities/Folder/OpenedFoldersContext.tsx +33 -0
  93. package/src/entities/Folder/index.ts +8 -0
  94. package/src/entities/account/Account.ts +542 -0
  95. package/src/entities/account/AuthForm.module.css +150 -0
  96. package/src/entities/account/AuthForm.tsx +48 -0
  97. package/src/entities/account/AuthGuard.tsx +17 -0
  98. package/src/entities/account/AuthInterceptor.ts +21 -0
  99. package/src/entities/account/UnauthGuard.tsx +17 -0
  100. package/src/entities/account/index.ts +5 -0
  101. package/src/entities/comments/Cluster/Cluster.module.css +43 -0
  102. package/src/entities/comments/Cluster/Cluster.tsx +100 -0
  103. package/src/entities/comments/CommentContainer/CommentContainer.module.css +51 -0
  104. package/src/entities/comments/CommentContainer/CommentContainer.tsx +232 -0
  105. package/src/entities/comments/CommentContainer/CommentPreview/CommentPreview.module.css +89 -0
  106. package/src/entities/comments/CommentContainer/CommentPreview/CommentPreview.tsx +92 -0
  107. package/src/entities/comments/CommentInput/CommentInput.module.css +69 -0
  108. package/src/entities/comments/CommentInput/CommentInput.tsx +122 -0
  109. package/src/entities/comments/CommentsContext.tsx +65 -0
  110. package/src/entities/comments/CommentsPanel/CommentCard/CommentCard.module.css +36 -0
  111. package/src/entities/comments/CommentsPanel/CommentCard/CommentCard.tsx +132 -0
  112. package/src/entities/comments/CommentsPanel/CommentCard/Message/Message.module.css +73 -0
  113. package/src/entities/comments/CommentsPanel/CommentCard/Message/Message.tsx +72 -0
  114. package/src/entities/comments/CommentsPanel/CommentsPanel.module.css +143 -0
  115. package/src/entities/comments/CommentsPanel/CommentsPanel.tsx +278 -0
  116. package/src/entities/comments/CommentsPanel/CommentsPanelContext.tsx +37 -0
  117. package/src/entities/comments/CommentsProvider.module.css +4 -0
  118. package/src/entities/comments/CommentsProvider.tsx +73 -0
  119. package/src/entities/comments/CreateComment/CreateComment.module.css +8 -0
  120. package/src/entities/comments/CreateComment/CreateComment.tsx +66 -0
  121. package/src/entities/comments/Thread/ExtraOptions/ExtraOptions.module.css +44 -0
  122. package/src/entities/comments/Thread/ExtraOptions/ExtraOptions.tsx +127 -0
  123. package/src/entities/comments/Thread/OptionsPanel/OptionsPanel.module.css +32 -0
  124. package/src/entities/comments/Thread/OptionsPanel/OptionsPanel.tsx +38 -0
  125. package/src/entities/comments/Thread/ThreadPanel.module.css +82 -0
  126. package/src/entities/comments/Thread/ThreadPanel.tsx +298 -0
  127. package/src/entities/comments/Thread/message/Message.module.css +71 -0
  128. package/src/entities/comments/Thread/message/Message.tsx +137 -0
  129. package/src/entities/comments/index.ts +7 -0
  130. package/src/entities/comments/lib.ts +22 -0
  131. package/src/entities/comments/useCommentsMerge.ts +88 -0
  132. package/src/entities/comments/useIntersectionObserver.ts +58 -0
  133. package/src/entities/comments/useScrollToUnreadMessage.ts +24 -0
  134. package/src/env.d.ts +12 -0
  135. package/src/features/AccessDeniedModal/AccessDeniedModal.module.css +56 -0
  136. package/src/features/AccessDeniedModal/AccessDeniedModal.tsx +94 -0
  137. package/src/features/AccessDeniedModal/index.ts +1 -0
  138. package/src/features/AiUnavailableModal/AiUnavailableModal.module.css +52 -0
  139. package/src/features/AiUnavailableModal/AiUnavailableModal.tsx +59 -0
  140. package/src/features/AiUnavailableModal/index.ts +1 -0
  141. package/src/features/AppContext.tsx +17 -0
  142. package/src/features/AppView/AppView.module.css +18 -0
  143. package/src/features/AppView/AppView.tsx +302 -0
  144. package/src/features/AppView/InactiveBoardHidder.tsx +14 -0
  145. package/src/features/AppView/LocalAppView.tsx +177 -0
  146. package/src/features/AppView/NoBoardIsOpen.module.css +29 -0
  147. package/src/features/AppView/NoBoardIsOpen.tsx +69 -0
  148. package/src/features/AppView/QuickAddPanel/QuickAddPanel.module.css +12 -0
  149. package/src/features/AppView/QuickAddPanel/QuickAddPanel.tsx +171 -0
  150. package/src/features/AppView/QuickAddPanel/index.ts +1 -0
  151. package/src/features/AppView/index.ts +2 -0
  152. package/src/features/AppView/listeners.ts +0 -0
  153. package/src/features/AudioPlayer/AudioPlayer.module.css +213 -0
  154. package/src/features/AudioPlayer/AudioPlayer.tsx +517 -0
  155. package/src/features/AudioPlayer/index.ts +1 -0
  156. package/src/features/ChangePasswordModal/ChangePassword.module.css +129 -0
  157. package/src/features/ChangePasswordModal/ChangePasswordModal.tsx +247 -0
  158. package/src/features/ChangePasswordModal/index.ts +4 -0
  159. package/src/features/ContextMenu/ContextMenu.module.css +38 -0
  160. package/src/features/ContextMenu/ContextMenu.tsx +507 -0
  161. package/src/features/ContextMenu/ContextMenuContext.tsx +77 -0
  162. package/src/features/ContextMenu/index.ts +5 -0
  163. package/src/features/ContextPanel/Buttons/AIGeneration.tsx +72 -0
  164. package/src/features/ContextPanel/Buttons/AIModel/AIModel.module.css +5 -0
  165. package/src/features/ContextPanel/Buttons/AIModel/AIModel.tsx +97 -0
  166. package/src/features/ContextPanel/Buttons/AIModel/index.ts +1 -0
  167. package/src/features/ContextPanel/Buttons/AIModel.tsx +95 -0
  168. package/src/features/ContextPanel/Buttons/AddList/AddList.tsx +83 -0
  169. package/src/features/ContextPanel/Buttons/AddList/index.ts +1 -0
  170. package/src/features/ContextPanel/Buttons/ButtonWithMenu/ButtonWithMenu.tsx +107 -0
  171. package/src/features/ContextPanel/Buttons/ButtonWithMenu/UiButtonWithMenu.module.css +49 -0
  172. package/src/features/ContextPanel/Buttons/ButtonWithMenu/index.ts +1 -0
  173. package/src/features/ContextPanel/Buttons/CardGame/Card/CreateDeck.tsx +65 -0
  174. package/src/features/ContextPanel/Buttons/CardGame/Card/FlipCard.tsx +41 -0
  175. package/src/features/ContextPanel/Buttons/CardGame/Deck/GetCard.tsx +61 -0
  176. package/src/features/ContextPanel/Buttons/CardGame/Deck/ShuffleDeck.tsx +39 -0
  177. package/src/features/ContextPanel/Buttons/CardGame/Dice/ChangeRange/ChangeRange.module.css +53 -0
  178. package/src/features/ContextPanel/Buttons/CardGame/Dice/ChangeRange/ChangeRange.tsx +133 -0
  179. package/src/features/ContextPanel/Buttons/CardGame/Dice/ThrowDice.tsx +38 -0
  180. package/src/features/ContextPanel/Buttons/ConnectorAddText.tsx +55 -0
  181. package/src/features/ContextPanel/Buttons/ConnectorFontStyle.tsx +28 -0
  182. package/src/features/ContextPanel/Buttons/ConnectorLineColor.tsx +96 -0
  183. package/src/features/ContextPanel/Buttons/ConnectorTextColor.tsx +22 -0
  184. package/src/features/ContextPanel/Buttons/ConnectorTextHighlight.tsx +28 -0
  185. package/src/features/ContextPanel/Buttons/ConnectorType/ConnectorType.module.css +5 -0
  186. package/src/features/ContextPanel/Buttons/ConnectorType/ConnectorType.tsx +108 -0
  187. package/src/features/ContextPanel/Buttons/ConnectorType/index.ts +1 -0
  188. package/src/features/ContextPanel/Buttons/ContextPanelButton.module.css +19 -0
  189. package/src/features/ContextPanel/Buttons/Delete.tsx +32 -0
  190. package/src/features/ContextPanel/Buttons/DrawFillStyle.tsx +107 -0
  191. package/src/features/ContextPanel/Buttons/DrawStrokeWidth/DrawStrokeWidth.module.css +4 -0
  192. package/src/features/ContextPanel/Buttons/DrawStrokeWidth/DrawStrokeWidth.tsx +32 -0
  193. package/src/features/ContextPanel/Buttons/DrawStrokeWidth/index.ts +1 -0
  194. package/src/features/ContextPanel/Buttons/Duplicate.tsx +25 -0
  195. package/src/features/ContextPanel/Buttons/Edit.tsx +23 -0
  196. package/src/features/ContextPanel/Buttons/EndPointer/EndPointer.module.css +14 -0
  197. package/src/features/ContextPanel/Buttons/EndPointer/EndPointer.tsx +80 -0
  198. package/src/features/ContextPanel/Buttons/EndPointer/index.ts +1 -0
  199. package/src/features/ContextPanel/Buttons/FillStyle.tsx +91 -0
  200. package/src/features/ContextPanel/Buttons/FontSize/ConnectorFontSize.tsx +34 -0
  201. package/src/features/ContextPanel/Buttons/FontSize/FontSize.module.css +53 -0
  202. package/src/features/ContextPanel/Buttons/FontSize/FontSize.tsx +217 -0
  203. package/src/features/ContextPanel/Buttons/FontSize/index.ts +2 -0
  204. package/src/features/ContextPanel/Buttons/FontStyle.tsx +68 -0
  205. package/src/features/ContextPanel/Buttons/FrameFill.tsx +91 -0
  206. package/src/features/ContextPanel/Buttons/FrameNavNext.tsx +33 -0
  207. package/src/features/ContextPanel/Buttons/FrameNavPrev.tsx +37 -0
  208. package/src/features/ContextPanel/Buttons/FrameRatio/FrameRatio.module.css +14 -0
  209. package/src/features/ContextPanel/Buttons/FrameRatio/FrameRatio.tsx +113 -0
  210. package/src/features/ContextPanel/Buttons/FrameRatio/index.ts +1 -0
  211. package/src/features/ContextPanel/Buttons/HyperLinkBtn.tsx +53 -0
  212. package/src/features/ContextPanel/Buttons/ItemType/ItemType.module.css +15 -0
  213. package/src/features/ContextPanel/Buttons/ItemType/ItemType.tsx +115 -0
  214. package/src/features/ContextPanel/Buttons/ItemType/index.ts +1 -0
  215. package/src/features/ContextPanel/Buttons/Lock.tsx +98 -0
  216. package/src/features/ContextPanel/Buttons/RestOptionsMenu/Items/BringToFront.tsx +28 -0
  217. package/src/features/ContextPanel/Buttons/RestOptionsMenu/Items/CopyFrameLink.tsx +50 -0
  218. package/src/features/ContextPanel/Buttons/RestOptionsMenu/Items/CopyItemLink.tsx +48 -0
  219. package/src/features/ContextPanel/Buttons/RestOptionsMenu/Items/ExportFrame.tsx +32 -0
  220. package/src/features/ContextPanel/Buttons/RestOptionsMenu/Items/SaveImg.tsx +32 -0
  221. package/src/features/ContextPanel/Buttons/RestOptionsMenu/Items/SaveVideoOrAudio.tsx +45 -0
  222. package/src/features/ContextPanel/Buttons/RestOptionsMenu/Items/SendToBack.tsx +28 -0
  223. package/src/features/ContextPanel/Buttons/RestOptionsMenu/Items/SetLinkTo.tsx +35 -0
  224. package/src/features/ContextPanel/Buttons/RestOptionsMenu/Items/getLinkToItem.tsx +3 -0
  225. package/src/features/ContextPanel/Buttons/RestOptionsMenu/Items/index.ts +5 -0
  226. package/src/features/ContextPanel/Buttons/RestOptionsMenu/RestOptionsMenu.module.css +51 -0
  227. package/src/features/ContextPanel/Buttons/RestOptionsMenu/RestOptionsMenu.tsx +96 -0
  228. package/src/features/ContextPanel/Buttons/RestOptionsMenu/RestOptionsMenuItem.tsx +29 -0
  229. package/src/features/ContextPanel/Buttons/RestOptionsMenu/index.ts +1 -0
  230. package/src/features/ContextPanel/Buttons/StartPointer/StartPointer.module.css +18 -0
  231. package/src/features/ContextPanel/Buttons/StartPointer/StartPointer.tsx +87 -0
  232. package/src/features/ContextPanel/Buttons/StartPointer/index.ts +1 -0
  233. package/src/features/ContextPanel/Buttons/StickerFillStyle.tsx +74 -0
  234. package/src/features/ContextPanel/Buttons/StrokeStyle/StrokeStyle.module.css +19 -0
  235. package/src/features/ContextPanel/Buttons/StrokeStyle/StrokeStyle.tsx +144 -0
  236. package/src/features/ContextPanel/Buttons/StrokeStyle/index.ts +1 -0
  237. package/src/features/ContextPanel/Buttons/SwitchPointers.tsx +28 -0
  238. package/src/features/ContextPanel/Buttons/TextAlignment/TextAlignment.module.css +6 -0
  239. package/src/features/ContextPanel/Buttons/TextAlignment/TextAlignment.tsx +98 -0
  240. package/src/features/ContextPanel/Buttons/TextAlignment/index.ts +1 -0
  241. package/src/features/ContextPanel/Buttons/TextAlignmentSticker.tsx +87 -0
  242. package/src/features/ContextPanel/Buttons/TextColor.tsx +86 -0
  243. package/src/features/ContextPanel/Buttons/TextHighlight.tsx +85 -0
  244. package/src/features/ContextPanel/Buttons/ToggleFrameRatio.tsx +38 -0
  245. package/src/features/ContextPanel/Buttons/ToggleIsShining.tsx +36 -0
  246. package/src/features/ContextPanel/ContextPanel.module.css +9 -0
  247. package/src/features/ContextPanel/ContextPanel.tsx +531 -0
  248. package/src/features/ContextPanel/PanelContext.ts +17 -0
  249. package/src/features/ContextPanel/index.ts +1 -0
  250. package/src/features/ContextWrapper.tsx +47 -0
  251. package/src/features/Counter/Counter.module.css +20 -0
  252. package/src/features/Counter/Counter.tsx +49 -0
  253. package/src/features/CryptoWrapper/CryptoWrapper.tsx +79 -0
  254. package/src/features/CryptoWrapper/index.ts +1 -0
  255. package/src/features/Cursors/comment.svg +22 -0
  256. package/src/features/Cursors/customCursors.ts +31 -0
  257. package/src/features/Cursors/eraser.svg +3 -0
  258. package/src/features/Cursors/index.ts +1 -0
  259. package/src/features/Cursors/pencil.svg +3 -0
  260. package/src/features/Cursors/sticker/sticker-black.svg +27 -0
  261. package/src/features/Cursors/sticker/sticker-blue.svg +27 -0
  262. package/src/features/Cursors/sticker/sticker-gray.svg +27 -0
  263. package/src/features/Cursors/sticker/sticker-green.svg +27 -0
  264. package/src/features/Cursors/sticker/sticker-light-blue.svg +28 -0
  265. package/src/features/Cursors/sticker/sticker-light-gray.svg +27 -0
  266. package/src/features/Cursors/sticker/sticker-light-green.svg +27 -0
  267. package/src/features/Cursors/sticker/sticker-orange.svg +27 -0
  268. package/src/features/Cursors/sticker/sticker-pink.svg +27 -0
  269. package/src/features/Cursors/sticker/sticker-purple.svg +27 -0
  270. package/src/features/Cursors/sticker/sticker-sky-blue.svg +27 -0
  271. package/src/features/Cursors/sticker/sticker-yellow.svg +27 -0
  272. package/src/features/ErrorBoundary/ErrorBoundary.module.css +64 -0
  273. package/src/features/ErrorBoundary/ErrorBoundary.tsx +112 -0
  274. package/src/features/ErrorBoundary/index.ts +1 -0
  275. package/src/features/ExportPanel/ExportPanel.module.css +55 -0
  276. package/src/features/ExportPanel/ExportPanel.tsx +73 -0
  277. package/src/features/ExportPanel/ExportVisible.tsx +18 -0
  278. package/src/features/ExportPanel/index.ts +1 -0
  279. package/src/features/GameItems/CreateCardsModal.tsx +178 -0
  280. package/src/features/GameItems/CreateDiceModal.tsx +213 -0
  281. package/src/features/GameItems/Modal.module.css +148 -0
  282. package/src/features/GameItems/index.ts +1 -0
  283. package/src/features/GenerateChart/AIChat.module.css +162 -0
  284. package/src/features/GenerateChart/AIChat.tsx +198 -0
  285. package/src/features/GenerateChart/AIChatPanel.module.css +34 -0
  286. package/src/features/GenerateChart/AIChatPanel.tsx +72 -0
  287. package/src/features/GenerateChart/lib/engine/index.ts +616 -0
  288. package/src/features/GenerateChart/lib/transformOutput.ts +338 -0
  289. package/src/features/GoogleAuthBtn/GoogleAuthBtn.module.css +19 -0
  290. package/src/features/GoogleAuthBtn/GoogleAuthBtn.tsx +19 -0
  291. package/src/features/GoogleAuthBtn/icons.tsx +301 -0
  292. package/src/features/GoogleAuthBtn/index.ts +1 -0
  293. package/src/features/ImportMiro/AuthClipboardModal/AuthClipboardModal.module.css +26 -0
  294. package/src/features/ImportMiro/AuthClipboardModal/AuthClipboardModal.tsx +38 -0
  295. package/src/features/ImportMiro/ImgAuthClipboardModal/ImgAuthClipboardModal.module.css +36 -0
  296. package/src/features/ImportMiro/ImgAuthClipboardModal/ImgAuthClipboardModal.tsx +74 -0
  297. package/src/features/ImportMiro/ImportMiroBoards/ImportBoardItem/MiroClipboardTransformer.ts +765 -0
  298. package/src/features/ImportMiro/ImportMiroBoards/ImportBoardItem/index.ts +1 -0
  299. package/src/features/ImportMiro/ImportMiroBoards/ImportBoardItem/useCopyBoardItems.tsx +1156 -0
  300. package/src/features/ImportMiro/ImportMiroBoards/ImportMiro.module.css +157 -0
  301. package/src/features/ImportMiro/ImportMiroBoards/ImportMiro.tsx +95 -0
  302. package/src/features/ImportMiro/ImportMiroBoards/MiroModels.ts +250 -0
  303. package/src/features/ImportMiro/ImportMiroBoards/Notifications/ErrorNotification.tsx +48 -0
  304. package/src/features/ImportMiro/ImportMiroBoards/Notifications/LoadingNotification.tsx +53 -0
  305. package/src/features/ImportMiro/ImportMiroBoards/Notifications/SuccessNotification.tsx +54 -0
  306. package/src/features/ImportMiro/ImportMiroBoards/Notifications/WarnClipboardNotification.tsx +57 -0
  307. package/src/features/ImportMiro/ImportMiroBoards/Notifications/WarnNotification.tsx +68 -0
  308. package/src/features/ImportMiro/ImportMiroBoards/Notifications/index.ts +5 -0
  309. package/src/features/ImportMiro/ImportMiroStartModal/ImportMiroStartModal.module.css +35 -0
  310. package/src/features/ImportMiro/ImportMiroStartModal/ImportMiroStartModal.tsx +47 -0
  311. package/src/features/ImportMiro/index.ts +5 -0
  312. package/src/features/ItemTooltip/ItemTooltip.tsx +77 -0
  313. package/src/features/ItemTooltip/index.ts +1 -0
  314. package/src/features/ItemsProvider/ItemsProvider.tsx +45 -0
  315. package/src/features/ItemsProvider/index.ts +1 -0
  316. package/src/features/LandingMenu/LandingMenu.module.css +54 -0
  317. package/src/features/LandingMenu/LandingMenu.tsx +88 -0
  318. package/src/features/LandingMenu/MobileLandingMenu.module.css +78 -0
  319. package/src/features/LandingMenu/MobileLandingMenu.tsx +133 -0
  320. package/src/features/LandingMenu/const.ts +2 -0
  321. package/src/features/LandingMenu/index.ts +2 -0
  322. package/src/features/LinksProvider/LinkToButton/LinkToButton.module.css +34 -0
  323. package/src/features/LinksProvider/LinkToButton/LinkToButton.tsx +175 -0
  324. package/src/features/LinksProvider/LinksProvider.tsx +84 -0
  325. package/src/features/LinksProvider/index.ts +1 -0
  326. package/src/features/LocalFileSavingProgress/LocalFileSaveProgress.module.css +6 -0
  327. package/src/features/LocalFileSavingProgress/LocalFileSaveProgress.tsx +30 -0
  328. package/src/features/LocalFileSavingProgress/index.ts +1 -0
  329. package/src/features/LoginWith/LoginWith.module.css +18 -0
  330. package/src/features/LoginWith/LoginWith.tsx +15 -0
  331. package/src/features/MediaUnavailableModal/MediaUnavailableModal.module.css +52 -0
  332. package/src/features/MediaUnavailableModal/MediaUnavailableModal.tsx +64 -0
  333. package/src/features/MediaUnavailableModal/index.ts +4 -0
  334. package/src/features/Modal/ConfirmModal.module.css +71 -0
  335. package/src/features/Modal/ConfirmModal.tsx +199 -0
  336. package/src/features/Modal/CookiesModal.module.css +32 -0
  337. package/src/features/Modal/CookiesModal.tsx +75 -0
  338. package/src/features/Modal/InfoModal.module.css +49 -0
  339. package/src/features/Modal/InfoModal.tsx +90 -0
  340. package/src/features/Modal/ModalsWrapper.tsx +13 -0
  341. package/src/features/Modal/SetLinkToModal.module.css +49 -0
  342. package/src/features/Modal/SetLinkToModal.tsx +112 -0
  343. package/src/features/Notifications/Notifications.module.css +14 -0
  344. package/src/features/Notifications/SigninErrorNotification.tsx +34 -0
  345. package/src/features/Notifications/SignupErrorNotification.tsx +33 -0
  346. package/src/features/Notifications/index.ts +8 -0
  347. package/src/features/Pickers/ColorPicker/ColorItem.module.css +44 -0
  348. package/src/features/Pickers/ColorPicker/ColorItem.tsx +33 -0
  349. package/src/features/Pickers/ColorPicker/ColorPicker.module.css +12 -0
  350. package/src/features/Pickers/ColorPicker/ColorPicker.tsx +43 -0
  351. package/src/features/Pickers/ColorPicker/SquareColorItem.module.css +41 -0
  352. package/src/features/Pickers/ColorPicker/SquareColorItem.tsx +27 -0
  353. package/src/features/Pickers/ColorPicker/index.ts +1 -0
  354. package/src/features/Pickers/ConnectorLineStylePicker.tsx +52 -0
  355. package/src/features/Pickers/ConnectorPointerPicker/ConnectorPointerPicker.module.css +4 -0
  356. package/src/features/Pickers/ConnectorPointerPicker/ConnectorPointerPicker.tsx +39 -0
  357. package/src/features/Pickers/ConnectorPointerPicker/index.ts +1 -0
  358. package/src/features/Pickers/DrawingToolPicker.tsx +31 -0
  359. package/src/features/Pickers/FontSizePicker/FontSizePicker.module.css +8 -0
  360. package/src/features/Pickers/FontSizePicker/FontSizePicker.tsx +61 -0
  361. package/src/features/Pickers/FontSizePicker/index.ts +1 -0
  362. package/src/features/Pickers/FontStylePicker.tsx +88 -0
  363. package/src/features/Pickers/FramePicker/FramePicker.module.css +11 -0
  364. package/src/features/Pickers/FramePicker/FramePicker.tsx +40 -0
  365. package/src/features/Pickers/FramePicker/index.ts +1 -0
  366. package/src/features/Pickers/HorizontalAlignmentPicker.tsx +49 -0
  367. package/src/features/Pickers/ShapeTypePicker.tsx +80 -0
  368. package/src/features/Pickers/SliderPicker/SliderPicker.module.css +13 -0
  369. package/src/features/Pickers/SliderPicker/SliderPicker.tsx +43 -0
  370. package/src/features/Pickers/SliderPicker/index.ts +1 -0
  371. package/src/features/Pickers/StrokeStylePicker/StrokeStylePicker.module.css +4 -0
  372. package/src/features/Pickers/StrokeStylePicker/StrokeStylePicker.tsx +59 -0
  373. package/src/features/Pickers/StrokeStylePicker/index.ts +1 -0
  374. package/src/features/Pickers/VerticalAlignmentPicker.tsx +48 -0
  375. package/src/features/Presence/BringToMe/BringToMe.module.css +134 -0
  376. package/src/features/Presence/BringToMe/BringToMe.tsx +363 -0
  377. package/src/features/Presence/PresenceUsers/Dropdown.tsx +70 -0
  378. package/src/features/Presence/PresenceUsers/EyeIcon.tsx +16 -0
  379. package/src/features/Presence/PresenceUsers/PresenceUserAvatar.tsx +93 -0
  380. package/src/features/Presence/PresenceUsers/PresenceUsers.module.css +366 -0
  381. package/src/features/Presence/PresenceUsers/PresenceUsers.tsx +239 -0
  382. package/src/features/Presence/PresenceUsers/UserAvatar.tsx +92 -0
  383. package/src/features/Presence/PresenceUsers/mock.ts +34 -0
  384. package/src/features/Presence/UserTracking/UserTracking.module.css +72 -0
  385. package/src/features/Presence/UserTracking/UserTracking.tsx +67 -0
  386. package/src/features/ProfileSettingsModal/ProfileSettingsModal.module.css +100 -0
  387. package/src/features/ProfileSettingsModal/ProfileSettingsModal.tsx +333 -0
  388. package/src/features/ProfileSettingsModal/index.ts +4 -0
  389. package/src/features/QuickAddButtons/QuickAddButtonsClear.tsx +12 -0
  390. package/src/features/README.md +36 -0
  391. package/src/features/Rename/RenameContext.tsx +54 -0
  392. package/src/features/Rename/RenameInput.module.css +15 -0
  393. package/src/features/Rename/RenameInput.tsx +78 -0
  394. package/src/features/Rename/index.ts +2 -0
  395. package/src/features/ShapesPanel/ShapesCategory/ShapesCategory.module.css +29 -0
  396. package/src/features/ShapesPanel/ShapesCategory/ShapesCategory.tsx +70 -0
  397. package/src/features/ShapesPanel/ShapesPanel.module.css +75 -0
  398. package/src/features/ShapesPanel/ShapesPanel.tsx +69 -0
  399. package/src/features/ShapesPanel/ShapesPanelContext.tsx +109 -0
  400. package/src/features/ShapesPanel/index.ts +5 -0
  401. package/src/features/ShareModal/SaveShareModal.module.css +31 -0
  402. package/src/features/ShareModal/SaveShareModal.tsx +63 -0
  403. package/src/features/ShareModal/SearchInput.module.css +188 -0
  404. package/src/features/ShareModal/SearchInput.tsx +441 -0
  405. package/src/features/ShareModal/ShareModal.module.css +297 -0
  406. package/src/features/ShareModal/ShareModal.tsx +627 -0
  407. package/src/features/ShareModal/SharePanel.module.css +74 -0
  408. package/src/features/ShareModal/SharePanel.tsx +258 -0
  409. package/src/features/ShareModal/index.ts +1 -0
  410. package/src/features/ShareSnapshotModal/ShareSnapshotModal.module.css +286 -0
  411. package/src/features/ShareSnapshotModal/ShareSnapshotModal.tsx +41 -0
  412. package/src/features/ShareSnapshotModal/SnapshotNameInput.module.css +92 -0
  413. package/src/features/ShareSnapshotModal/SnapshotNameInput.tsx +225 -0
  414. package/src/features/ShareSnapshotModal/index.ts +1 -0
  415. package/src/features/SidePanel/LocalSidePanelContext.tsx +66 -0
  416. package/src/features/SidePanel/ResizableEdge.module.css +9 -0
  417. package/src/features/SidePanel/ResizableEdge.tsx +77 -0
  418. package/src/features/SidePanel/SidePanel.module.css +140 -0
  419. package/src/features/SidePanel/SidePanel.tsx +179 -0
  420. package/src/features/SidePanel/SidePanelContext.tsx +108 -0
  421. package/src/features/SidePanel/index.ts +3 -0
  422. package/src/features/SidePanelsContainer/SidePanelsContainer.module.css +15 -0
  423. package/src/features/SidePanelsContainer/SidePanelsContainer.tsx +61 -0
  424. package/src/features/SidePanelsContainer/index.ts +1 -0
  425. package/src/features/Templates/CreateTemplateModal/CreateTemplateModal.module.css +34 -0
  426. package/src/features/Templates/CreateTemplateModal/CreateTemplateModal.tsx +463 -0
  427. package/src/features/Templates/SelectTemplateModal/CategoriesMenu/CategoriesMenu.module.css +48 -0
  428. package/src/features/Templates/SelectTemplateModal/CategoriesMenu/CategoriesMenu.tsx +62 -0
  429. package/src/features/Templates/SelectTemplateModal/LanguagesDropdown/LanguagesDropdown.module.css +61 -0
  430. package/src/features/Templates/SelectTemplateModal/LanguagesDropdown/LanguagesDropdown.tsx +72 -0
  431. package/src/features/Templates/SelectTemplateModal/SelectTemplateModal.module.css +152 -0
  432. package/src/features/Templates/SelectTemplateModal/SelectTemplateModal.tsx +206 -0
  433. package/src/features/Templates/SelectTemplateModal/TemplateItemPreview/TemplateItemPreview.module.css +151 -0
  434. package/src/features/Templates/SelectTemplateModal/TemplateItemPreview/TemplateItemPreview.tsx +77 -0
  435. package/src/features/Templates/SelectTemplateModal/TemplateItemsGrid/TemplateItem/TemplateItem.tsx +119 -0
  436. package/src/features/Templates/SelectTemplateModal/TemplateItemsGrid/TemplateItem/templateItem.module.css +88 -0
  437. package/src/features/Templates/SelectTemplateModal/TemplateItemsGrid/TemplateItemsGrid.module.css +51 -0
  438. package/src/features/Templates/SelectTemplateModal/TemplateItemsGrid/TemplateItemsGrid.tsx +39 -0
  439. package/src/features/Templates/TolgeeProvider.tsx +29 -0
  440. package/src/features/Templates/config.ts +6 -0
  441. package/src/features/Templates/index.ts +2 -0
  442. package/src/features/Templates/lib.ts +59 -0
  443. package/src/features/TextEditor/Element.tsx +204 -0
  444. package/src/features/TextEditor/Leaf.tsx +72 -0
  445. package/src/features/TextEditor/README.md +3 -0
  446. package/src/features/TextEditor/TextEditor.module.css +115 -0
  447. package/src/features/TextEditor/TextEditor.tsx +610 -0
  448. package/src/features/TextEditor/index.ts +1 -0
  449. package/src/features/TextEditor/verticalAlignmentToFlex.tsx +14 -0
  450. package/src/features/TitlePanel/TitlePanel.module.css +123 -0
  451. package/src/features/TitlePanel/TitlePanel.tsx +341 -0
  452. package/src/features/TitlePanel/index.ts +1 -0
  453. package/src/features/ToastProvider.tsx +33 -0
  454. package/src/features/ToolsPanel/Buttons/AddConnector.tsx +73 -0
  455. package/src/features/ToolsPanel/Buttons/AddCounter.tsx +29 -0
  456. package/src/features/ToolsPanel/Buttons/AddDrawing/AddDrawing.module.css +13 -0
  457. package/src/features/ToolsPanel/Buttons/AddDrawing/AddDrawing.tsx +115 -0
  458. package/src/features/ToolsPanel/Buttons/AddDrawing/AddDrawingContext.tsx +15 -0
  459. package/src/features/ToolsPanel/Buttons/AddDrawing/AddHighlighter/AddHighlighter.module.css +26 -0
  460. package/src/features/ToolsPanel/Buttons/AddDrawing/AddHighlighter/AddHighlighter.tsx +138 -0
  461. package/src/features/ToolsPanel/Buttons/AddDrawing/AddPen/AddPen.module.css +26 -0
  462. package/src/features/ToolsPanel/Buttons/AddDrawing/AddPen/AddPen.tsx +126 -0
  463. package/src/features/ToolsPanel/Buttons/AddDrawing/Eraser/Eraser.tsx +47 -0
  464. package/src/features/ToolsPanel/Buttons/AddDrawing/index.ts +1 -0
  465. package/src/features/ToolsPanel/Buttons/AddFrame.tsx +57 -0
  466. package/src/features/ToolsPanel/Buttons/AddGameItem/AddCard.tsx +31 -0
  467. package/src/features/ToolsPanel/Buttons/AddGameItem/AddDice.tsx +32 -0
  468. package/src/features/ToolsPanel/Buttons/AddGameItem/AddGameItem.module.css +3 -0
  469. package/src/features/ToolsPanel/Buttons/AddGameItem/AddGameItem.tsx +39 -0
  470. package/src/features/ToolsPanel/Buttons/AddMedia/AddMedia.module.css +3 -0
  471. package/src/features/ToolsPanel/Buttons/AddMedia/AddMedia.tsx +72 -0
  472. package/src/features/ToolsPanel/Buttons/AddMedia/AddMediaButton.tsx +146 -0
  473. package/src/features/ToolsPanel/Buttons/AddShape/AddShape.module.css +18 -0
  474. package/src/features/ToolsPanel/Buttons/AddShape/AddShape.tsx +97 -0
  475. package/src/features/ToolsPanel/Buttons/AddShape/index.ts +1 -0
  476. package/src/features/ToolsPanel/Buttons/AddSticker.tsx +73 -0
  477. package/src/features/ToolsPanel/Buttons/AddTemplate.tsx +28 -0
  478. package/src/features/ToolsPanel/Buttons/AddText.tsx +31 -0
  479. package/src/features/ToolsPanel/Buttons/ButtonWithMenu/ButtonWithMenu.module.css +9 -0
  480. package/src/features/ToolsPanel/Buttons/ButtonWithMenu/ButtonWithMenu.tsx +24 -0
  481. package/src/features/ToolsPanel/Buttons/ButtonWithMenu/index.ts +1 -0
  482. package/src/features/ToolsPanel/Buttons/EventList/EventList.module.css +5 -0
  483. package/src/features/ToolsPanel/Buttons/EventList/EventList.tsx +144 -0
  484. package/src/features/ToolsPanel/Buttons/EventList/History.tsx +140 -0
  485. package/src/features/ToolsPanel/Buttons/EventList/HistoryEvent.tsx +28 -0
  486. package/src/features/ToolsPanel/Buttons/EventList/PrettifiedEvent.tsx +212 -0
  487. package/src/features/ToolsPanel/Buttons/EventList/SyncJournal.tsx +89 -0
  488. package/src/features/ToolsPanel/Buttons/EventList/index.ts +1 -0
  489. package/src/features/ToolsPanel/Buttons/Grab.tsx +29 -0
  490. package/src/features/ToolsPanel/Buttons/Redo.tsx +40 -0
  491. package/src/features/ToolsPanel/Buttons/Select.tsx +37 -0
  492. package/src/features/ToolsPanel/Buttons/Star.tsx +31 -0
  493. package/src/features/ToolsPanel/Buttons/Undo.tsx +39 -0
  494. package/src/features/ToolsPanel/PanelContext.ts +13 -0
  495. package/src/features/ToolsPanel/ToolsPanel.module.css +33 -0
  496. package/src/features/ToolsPanel/ToolsPanel.tsx +84 -0
  497. package/src/features/ToolsPanel/ViewToolsPanel.tsx +30 -0
  498. package/src/features/ToolsPanel/index.ts +1 -0
  499. package/src/features/UserPanel/ActionButtons/ActionButtons.module.css +9 -0
  500. package/src/features/UserPanel/ActionButtons/ActionButtons.tsx +22 -0
  501. package/src/features/UserPanel/Avatar/Avatar.module.css +21 -0
  502. package/src/features/UserPanel/Avatar/Avatar.tsx +44 -0
  503. package/src/features/UserPanel/Buttons/AddComment/AddComment.module.css +14 -0
  504. package/src/features/UserPanel/Buttons/AddComment/AddComment.tsx +61 -0
  505. package/src/features/UserPanel/Buttons/AddComment/index.ts +1 -0
  506. package/src/features/UserPanel/Buttons/ButtonWithMenu/ButtonWithMenu.module.css +8 -0
  507. package/src/features/UserPanel/Buttons/ButtonWithMenu/ButtonWithMenu.tsx +24 -0
  508. package/src/features/UserPanel/Buttons/ButtonWithMenu/index.ts +1 -0
  509. package/src/features/UserPanel/Buttons/ShareBtn/ShareBtn.tsx +49 -0
  510. package/src/features/UserPanel/Buttons/TogglePresenceRender/TogglePresenceRender.module.css +48 -0
  511. package/src/features/UserPanel/Buttons/TogglePresenceRender/TogglePresenceRender.tsx +38 -0
  512. package/src/features/UserPanel/UserAvatar/UserAvatar.tsx +66 -0
  513. package/src/features/UserPanel/UserDropdown/UserDropdown.tsx +75 -0
  514. package/src/features/UserPanel/UserPanel.module.css +516 -0
  515. package/src/features/UserPanel/UserPanel.tsx +153 -0
  516. package/src/features/UserPanel/UserPic/UserPic.tsx +171 -0
  517. package/src/features/UserPanel/icons/ChangePassword.tsx +22 -0
  518. package/src/features/UserPanel/icons/Click.tsx +20 -0
  519. package/src/features/UserPanel/icons/Logout.tsx +22 -0
  520. package/src/features/UserPanel/icons/Ring.tsx +18 -0
  521. package/src/features/UserPanel/icons/Thumb.tsx +18 -0
  522. package/src/features/UserPanel/icons/Upgrade.tsx +20 -0
  523. package/src/features/UserPanel/icons/UserShare.tsx +18 -0
  524. package/src/features/UserPlan/HistoryModal.tsx +30 -0
  525. package/src/features/UserPlan/HistoryTable.tsx +114 -0
  526. package/src/features/UserPlan/LimitsModal.tsx +102 -0
  527. package/src/features/UserPlan/LimitsTable.module.css +131 -0
  528. package/src/features/UserPlan/LimitsTable.tsx +171 -0
  529. package/src/features/UserPlan/PlanCard.module.css +184 -0
  530. package/src/features/UserPlan/PlanCard.tsx +245 -0
  531. package/src/features/UserPlan/PlanCards.module.css +26 -0
  532. package/src/features/UserPlan/PlanCards.tsx +476 -0
  533. package/src/features/UserPlan/SelectPaymentModal.module.css +206 -0
  534. package/src/features/UserPlan/SelectPaymentModal.tsx +810 -0
  535. package/src/features/UserPlan/UserPlanModal.module.css +145 -0
  536. package/src/features/UserPlan/UserPlanModal.tsx +124 -0
  537. package/src/features/UserPlan/UserPlanUsage.module.css +101 -0
  538. package/src/features/UserPlan/UserPlanUsage.tsx +186 -0
  539. package/src/features/UserPlan/index.ts +1 -0
  540. package/src/features/VideoPlayer/VideoCanvasControls.tsx +59 -0
  541. package/src/features/VideoPlayer/VideoPlayer.module.css +3 -0
  542. package/src/features/VideoPlayer/VideoPlayer.tsx +158 -0
  543. package/src/features/VideoPlayer/index.ts +2 -0
  544. package/src/features/ViewModeGuard.tsx +62 -0
  545. package/src/features/WalletLoginButton/WalletLoginButton.module.css +7 -0
  546. package/src/features/WalletLoginButton/WalletLoginButton.tsx +77 -0
  547. package/src/features/WalletLoginButton/index.ts +1 -0
  548. package/src/features/Widgets/Navbar/Navbar.css +148 -0
  549. package/src/features/Widgets/Navbar/Navbar.tsx +75 -0
  550. package/src/features/Widgets/Navbar/lead-icon.tsx +25 -0
  551. package/src/features/Widgets/form-notifications/password-changed.module.css +39 -0
  552. package/src/features/Widgets/form-notifications/password-changed.tsx +28 -0
  553. package/src/features/ZoomPanel/ZoomPanel.module.css +32 -0
  554. package/src/features/ZoomPanel/ZoomPanel.tsx +105 -0
  555. package/src/features/ZoomPanel/index.ts +1 -0
  556. package/src/features/hotkeys.json +315 -0
  557. package/src/features/hyperLink/HyperLink.module.css +20 -0
  558. package/src/features/hyperLink/HyperLink.tsx +77 -0
  559. package/src/features/hyperLink/HyperLinkContext.tsx +57 -0
  560. package/src/features/hyperLink/HyperLinkInput/HyperLinkInput.module.css +47 -0
  561. package/src/features/hyperLink/HyperLinkInput/HyperLinkInput.tsx +196 -0
  562. package/src/features/hyperLink/index.ts +6 -0
  563. package/src/features/index.drawio +115 -0
  564. package/src/features/index.svg +1 -0
  565. package/src/features/modules.d.ts +22 -0
  566. package/src/index.css +65 -0
  567. package/src/index.html +74 -0
  568. package/src/index.ts +4 -0
  569. package/src/initI18N.ts +42 -0
  570. package/src/pages/AddEmailView/AddEmailPage.module.css +136 -0
  571. package/src/pages/AddEmailView/AddEmailPage.tsx +125 -0
  572. package/src/pages/AddEmailView/index.ts +1 -0
  573. package/src/pages/BindEmailPage/BindEmailPage.module.css +73 -0
  574. package/src/pages/BindEmailPage/BindEmailPage.tsx +263 -0
  575. package/src/pages/BindEmailPage/index.ts +1 -0
  576. package/src/pages/BoardPage.tsx +161 -0
  577. package/src/pages/ForgotPasswordPage/ForgotPasswordPage.module.css +82 -0
  578. package/src/pages/ForgotPasswordPage/ForgotPasswordPage.tsx +148 -0
  579. package/src/pages/ForgotPasswordPage/SuccessIcon.tsx +20 -0
  580. package/src/pages/ForgotPasswordPage/index.ts +1 -0
  581. package/src/pages/HTMLSnapshot/HTMLSnapshot.tsx +60 -0
  582. package/src/pages/HTMLSnapshot/index.ts +1 -0
  583. package/src/pages/RestorePasswordPage/RestorePasswordPage.module.css +46 -0
  584. package/src/pages/RestorePasswordPage/RestorePasswordPage.tsx +197 -0
  585. package/src/pages/RestorePasswordPage/index.ts +1 -0
  586. package/src/pages/SelectBoardPage/SelectBoardPage.module.css +247 -0
  587. package/src/pages/SelectBoardPage/SelectBoardPage.tsx +419 -0
  588. package/src/pages/SelectBoardPage/getEmbedUrl.ts +3 -0
  589. package/src/pages/SelectBoardPage/index.ts +1 -0
  590. package/src/pages/SigninPage/SigninPage.module.css +17 -0
  591. package/src/pages/SigninPage/SigninPage.tsx +201 -0
  592. package/src/pages/SigninPage/index.ts +1 -0
  593. package/src/pages/SignupPage/EmailIcon.tsx +24 -0
  594. package/src/pages/SignupPage/LockIcon.tsx +24 -0
  595. package/src/pages/SignupPage/PeopleIcon.tsx +23 -0
  596. package/src/pages/SignupPage/SignupPage.module.css +52 -0
  597. package/src/pages/SignupPage/SignupPage.tsx +282 -0
  598. package/src/pages/SignupPage/index.ts +1 -0
  599. package/src/pages/TestPage.tsx +52 -0
  600. package/src/pages/VerifyMailPage/VerifyMailPage.module.css +20 -0
  601. package/src/pages/VerifyMailPage/VerifyMailPage.tsx +287 -0
  602. package/src/pages/VerifyMailPage/index.ts +1 -0
  603. package/src/pages/WelcomePage/WelcomePage.tsx +76 -0
  604. package/src/pages/WelcomePage/index.ts +1 -0
  605. package/src/pages/WelcomePage/welcomeBoard.json +8727 -0
  606. package/src/pages/WelcomePage/welcomeBoardEn.json +9683 -0
  607. package/src/pages/WheelLogger/WheelLogger.module.css +32 -0
  608. package/src/pages/WheelLogger/WheelLogger.tsx +94 -0
  609. package/src/pages/layouts/AppLayout.tsx +86 -0
  610. package/src/pages/layouts/AuthLayout/AuthLayout.module.css +80 -0
  611. package/src/pages/layouts/AuthLayout/AuthLayout.tsx +74 -0
  612. package/src/pages/layouts/AuthLayout/Tail.tsx +23 -0
  613. package/src/pages/layouts/AuthLayout/index.ts +1 -0
  614. package/src/production.entrypoint.ts +39 -0
  615. package/src/public/customWebComponents.js +323 -0
  616. package/src/public/favicon.svg +20 -0
  617. package/src/public/favicons/apple-touch-icon.png +0 -0
  618. package/src/public/favicons/favicon-16x16.png +0 -0
  619. package/src/public/favicons/favicon-32x32.png +0 -0
  620. package/src/public/favicons/favicon.ico +0 -0
  621. package/src/public/favicons/favicon.svg +6 -0
  622. package/src/public/favicons/site.webmanifest +21 -0
  623. package/src/public/favicons/web-app-manifest-192x192.png +0 -0
  624. package/src/public/favicons/web-app-manifest-512x512.png +0 -0
  625. package/src/public/fonts/NotoColorEmoji-Regular.ttf +0 -0
  626. package/src/public/fonts/OpenSans-Bold.ttf +0 -0
  627. package/src/public/fonts/OpenSans-BoldItalic.ttf +0 -0
  628. package/src/public/fonts/OpenSans-Italic.ttf +0 -0
  629. package/src/public/fonts/OpenSans-Regular.ttf +0 -0
  630. package/src/public/fonts/RobotoMono-Regular.ttf +0 -0
  631. package/src/public/loadLinksImages.js +26 -0
  632. package/src/public/loader.svg +26 -0
  633. package/src/public/pdf/installiation_ru.pdf +0 -0
  634. package/src/public/pdf/lifecycle_ru.pdf +0 -0
  635. package/src/public/pdf/personal_data_policy_ru.pdf +0 -0
  636. package/src/public/pdf/privacy_policy_en.pdf +0 -0
  637. package/src/public/pdf/privacy_policy_ru.pdf +0 -0
  638. package/src/public/pdf/terms_conditions_en.pdf +0 -0
  639. package/src/public/pdf/terms_conditions_ru.pdf +0 -0
  640. package/src/public/pdf/user_agreement_ru.pdf +0 -0
  641. package/src/public/pdf/user_manual_ru.pdf +0 -0
  642. package/src/shared/Lang/en.json +1227 -0
  643. package/src/shared/Lang/i18n.d.ts +8 -0
  644. package/src/shared/Lang/index.ts +32 -0
  645. package/src/shared/Lang/ru.json +1226 -0
  646. package/src/shared/Logger.ts +72 -0
  647. package/src/shared/RawEvents.ts +7 -0
  648. package/src/shared/Subject.ts +29 -0
  649. package/src/shared/SubjectOperation.ts +31 -0
  650. package/src/shared/ViewSettings.tsx +9 -0
  651. package/src/shared/api/ai/api.ts +6 -0
  652. package/src/shared/api/ai/index.ts +3 -0
  653. package/src/shared/api/ai/requestMap.ts +22 -0
  654. package/src/shared/api/ai/types.ts +6 -0
  655. package/src/shared/api/auth/api.ts +78 -0
  656. package/src/shared/api/auth/index.ts +2 -0
  657. package/src/shared/api/auth/types.ts +51 -0
  658. package/src/shared/api/base/base.ts +244 -0
  659. package/src/shared/api/base/httpError.ts +10 -0
  660. package/src/shared/api/base/httpResponse.ts +7 -0
  661. package/src/shared/api/base/interceptors.ts +64 -0
  662. package/src/shared/api/base/types.ts +18 -0
  663. package/src/shared/api/billing/api.ts +79 -0
  664. package/src/shared/api/billing/index.ts +2 -0
  665. package/src/shared/api/billing/types.ts +155 -0
  666. package/src/shared/api/boards/api.ts +128 -0
  667. package/src/shared/api/boards/index.ts +2 -0
  668. package/src/shared/api/boards/types.ts +15 -0
  669. package/src/shared/api/index.ts +8 -0
  670. package/src/shared/api/media/index.ts +3 -0
  671. package/src/shared/api/media/uploadAudio.ts +53 -0
  672. package/src/shared/api/media/uploadImage.ts +180 -0
  673. package/src/shared/api/media/uploadVideo.ts +48 -0
  674. package/src/shared/api/types.ts +3 -0
  675. package/src/shared/api/users/api.ts +37 -0
  676. package/src/shared/api/users/index.ts +2 -0
  677. package/src/shared/api/users/types.ts +17 -0
  678. package/src/shared/apiV2/base.ts +9 -0
  679. package/src/shared/apiV2/boards/api.ts +143 -0
  680. package/src/shared/apiV2/boards/index.ts +2 -0
  681. package/src/shared/apiV2/boards/types.ts +66 -0
  682. package/src/shared/apiV2/folders/api.ts +81 -0
  683. package/src/shared/apiV2/folders/index.ts +2 -0
  684. package/src/shared/apiV2/folders/types.ts +35 -0
  685. package/src/shared/apiV2/index.ts +2 -0
  686. package/src/shared/assets/imgs/default-user-icon.svg +12 -0
  687. package/src/shared/assets/imgs/no-img-icon.svg +3 -0
  688. package/src/shared/lib/IframeModule.ts +223 -0
  689. package/src/shared/lib/convertColors.ts +51 -0
  690. package/src/shared/lib/debounce.ts +9 -0
  691. package/src/shared/lib/getCorrectEnding.ts +19 -0
  692. package/src/shared/lib/getEmailPrefix.ts +13 -0
  693. package/src/shared/lib/handleClickDetection.ts +25 -0
  694. package/src/shared/lib/isIframe.ts +3 -0
  695. package/src/shared/lib/isMicroboardIframe.ts +3 -0
  696. package/src/shared/lib/queryStringParser.ts +18 -0
  697. package/src/shared/lib/regex.ts +4 -0
  698. package/src/shared/lib/strictContext.ts +14 -0
  699. package/src/shared/lib/throttle.ts +59 -0
  700. package/src/shared/lib/useClickOutside.ts +50 -0
  701. package/src/shared/lib/useClientRect.ts +34 -0
  702. package/src/shared/lib/useDebounce.ts +22 -0
  703. package/src/shared/lib/useForceUpdate.ts +7 -0
  704. package/src/shared/lib/useHoverState.ts +14 -0
  705. package/src/shared/lib/useIsPhoneScreen.ts +21 -0
  706. package/src/shared/lib/useMediaQuery.tsx +19 -0
  707. package/src/shared/lib/withRouter.tsx +21 -0
  708. package/src/shared/sha256.ts +22 -0
  709. package/src/shared/ui-lib/Button/Button.module.css +179 -0
  710. package/src/shared/ui-lib/Button/Button.tsx +43 -0
  711. package/src/shared/ui-lib/Button/Loader.tsx +20 -0
  712. package/src/shared/ui-lib/Button/index.ts +1 -0
  713. package/src/shared/ui-lib/Checkbox/Checkbox.module.css +44 -0
  714. package/src/shared/ui-lib/Checkbox/Checkbox.tsx +42 -0
  715. package/src/shared/ui-lib/Checkbox/index.ts +1 -0
  716. package/src/shared/ui-lib/Dropdown/Chevron.tsx +24 -0
  717. package/src/shared/ui-lib/Dropdown/Dropdown.module.css +48 -0
  718. package/src/shared/ui-lib/Dropdown/Dropdown.tsx +42 -0
  719. package/src/shared/ui-lib/Icon/ConnectorIcon.tsx +33 -0
  720. package/src/shared/ui-lib/Icon/ConnectorPointerIcon.tsx +50 -0
  721. package/src/shared/ui-lib/Icon/EyeClosed.tsx +34 -0
  722. package/src/shared/ui-lib/Icon/EyeOpened.tsx +56 -0
  723. package/src/shared/ui-lib/Icon/FillColorIndicator/FillColorIndicator.module.css +11 -0
  724. package/src/shared/ui-lib/Icon/FillColorIndicator/FillColorIndicator.tsx +26 -0
  725. package/src/shared/ui-lib/Icon/FillColorIndicator/bg.png +0 -0
  726. package/src/shared/ui-lib/Icon/FillColorIndicator/index.ts +1 -0
  727. package/src/shared/ui-lib/Icon/FrameIcon.tsx +33 -0
  728. package/src/shared/ui-lib/Icon/Icon.module.css +11 -0
  729. package/src/shared/ui-lib/Icon/Icon.tsx +212 -0
  730. package/src/shared/ui-lib/Icon/Logo.tsx +23 -0
  731. package/src/shared/ui-lib/Icon/ShapeIcon.tsx +33 -0
  732. package/src/shared/ui-lib/Icon/StrokeColorIndicator.tsx +51 -0
  733. package/src/shared/ui-lib/Icon/TextColorIndicator/TextColorIndicator.module.css +14 -0
  734. package/src/shared/ui-lib/Icon/TextColorIndicator/TextColorIndicator.tsx +22 -0
  735. package/src/shared/ui-lib/Icon/TextColorIndicator/index.ts +1 -0
  736. package/src/shared/ui-lib/Icon/TextHighlightIndicator/TextHighlightIndicator.module.css +15 -0
  737. package/src/shared/ui-lib/Icon/TextHighlightIndicator/TextHighlightIndicator.tsx +22 -0
  738. package/src/shared/ui-lib/Icon/TextHighlightIndicator/index.ts +1 -0
  739. package/src/shared/ui-lib/Icon/index.ts +11 -0
  740. package/src/shared/ui-lib/Icon/sprite.svg +1707 -0
  741. package/src/shared/ui-lib/Input/EyeClose.tsx +22 -0
  742. package/src/shared/ui-lib/Input/EyeOpen.tsx +23 -0
  743. package/src/shared/ui-lib/Input/Input.css +130 -0
  744. package/src/shared/ui-lib/Input/Input.tsx +205 -0
  745. package/src/shared/ui-lib/Input/index.ts +1 -0
  746. package/src/shared/ui-lib/Link/Link.module.css +38 -0
  747. package/src/shared/ui-lib/Link/Link.tsx +19 -0
  748. package/src/shared/ui-lib/Link/index.ts +1 -0
  749. package/src/shared/ui-lib/Loader/Loader.module.css +9 -0
  750. package/src/shared/ui-lib/Loader/Loader.tsx +27 -0
  751. package/src/shared/ui-lib/Message/Message.module.css +26 -0
  752. package/src/shared/ui-lib/Message/Message.tsx +37 -0
  753. package/src/shared/ui-lib/Notification/Notification.module.css +58 -0
  754. package/src/shared/ui-lib/Notification/Notification.tsx +75 -0
  755. package/src/shared/ui-lib/Notification/index.ts +1 -0
  756. package/src/shared/ui-lib/OuterLink/OuterLink.module.css +38 -0
  757. package/src/shared/ui-lib/OuterLink/OuterLink.tsx +16 -0
  758. package/src/shared/ui-lib/OuterLink/index.ts +1 -0
  759. package/src/shared/ui-lib/Progress/Progress.module.css +16 -0
  760. package/src/shared/ui-lib/Progress/Progress.tsx +35 -0
  761. package/src/shared/ui-lib/Selector/Selector.module.css +91 -0
  762. package/src/shared/ui-lib/Selector/Selector.tsx +170 -0
  763. package/src/shared/ui-lib/Selector/index.ts +1 -0
  764. package/src/shared/ui-lib/Toast/Toast.module.css +142 -0
  765. package/src/shared/ui-lib/Toast/index.ts +2 -0
  766. package/src/shared/ui-lib/Toast/notify.tsx +119 -0
  767. package/src/shared/ui-lib/ToggleMark/ToggleMark.module.css +22 -0
  768. package/src/shared/ui-lib/ToggleMark/ToggleMark.tsx +15 -0
  769. package/src/shared/ui-lib/Tooltip/Tooltip.module.css +195 -0
  770. package/src/shared/ui-lib/Tooltip/Tooltip.tsx +99 -0
  771. package/src/shared/ui-lib/Tooltip/index.tsx +1 -0
  772. package/src/shared/ui-lib/Transitions/FadeTransition.module.css +22 -0
  773. package/src/shared/ui-lib/Transitions/FadeTransition.tsx +25 -0
  774. package/src/shared/ui-lib/Transitions/OpacityTransition.module.css +17 -0
  775. package/src/shared/ui-lib/Transitions/OpacityTransition.tsx +27 -0
  776. package/src/shared/ui-lib/Transitions/TopFade.module.css +25 -0
  777. package/src/shared/ui-lib/Transitions/TopFade.tsx +27 -0
  778. package/src/shared/ui-lib/Transitions/index.ts +2 -0
  779. package/src/shared/ui-lib/Transitions/types.ts +7 -0
  780. package/src/shared/ui-lib/UIMainLoader/UIMainLoader.module.css +8 -0
  781. package/src/shared/ui-lib/UIMainLoader/UIMainLoader.tsx +10 -0
  782. package/src/shared/ui-lib/UiAccordion/UiAccordion.module.css +4 -0
  783. package/src/shared/ui-lib/UiAccordion/UiAccordion.tsx +47 -0
  784. package/src/shared/ui-lib/UiAccordion/index.ts +1 -0
  785. package/src/shared/ui-lib/UiAdaptiveAccordion/UiAdaptiveAccordion.module.css +22 -0
  786. package/src/shared/ui-lib/UiAdaptiveAccordion/UiAdaptiveAccordion.tsx +90 -0
  787. package/src/shared/ui-lib/UiAdaptiveAccordion/index.ts +2 -0
  788. package/src/shared/ui-lib/UiButton/Loader.tsx +20 -0
  789. package/src/shared/ui-lib/UiButton/Tooltip.tsx +98 -0
  790. package/src/shared/ui-lib/UiButton/UiButton.module.css +306 -0
  791. package/src/shared/ui-lib/UiButton/UiButton.tsx +119 -0
  792. package/src/shared/ui-lib/UiButton/index.ts +1 -0
  793. package/src/shared/ui-lib/UiColorInput/UiColorInput.module.css +66 -0
  794. package/src/shared/ui-lib/UiColorInput/UiColorInput.tsx +66 -0
  795. package/src/shared/ui-lib/UiColorInput/index.ts +1 -0
  796. package/src/shared/ui-lib/UiColorInput/palette.png +0 -0
  797. package/src/shared/ui-lib/UiLink/UiLink.module.css +175 -0
  798. package/src/shared/ui-lib/UiLink/UiLink.tsx +72 -0
  799. package/src/shared/ui-lib/UiLink/index.ts +1 -0
  800. package/src/shared/ui-lib/UiLoader/UiLoader.module.css +19 -0
  801. package/src/shared/ui-lib/UiLoader/UiLoader.tsx +31 -0
  802. package/src/shared/ui-lib/UiLoader/index.ts +1 -0
  803. package/src/shared/ui-lib/UiModal/UiModal.module.css +188 -0
  804. package/src/shared/ui-lib/UiModal/UiModal.tsx +182 -0
  805. package/src/shared/ui-lib/UiModal/UiModalBackground.tsx +62 -0
  806. package/src/shared/ui-lib/UiModal/UiModalContext.tsx +90 -0
  807. package/src/shared/ui-lib/UiModal/index.ts +2 -0
  808. package/src/shared/ui-lib/UiPanel/UiPanel.module.css +52 -0
  809. package/src/shared/ui-lib/UiPanel/UiPanel.tsx +70 -0
  810. package/src/shared/ui-lib/UiPanel/index.ts +1 -0
  811. package/src/shared/ui-lib/UiSelector/UiSelector.module.css +143 -0
  812. package/src/shared/ui-lib/UiSelector/UiSelector.tsx +202 -0
  813. package/src/shared/ui-lib/UiSelector/index.ts +2 -0
  814. package/src/shared/ui-lib/UiSeparator/UiSeparator.module.css +18 -0
  815. package/src/shared/ui-lib/UiSeparator/UiSeparator.tsx +33 -0
  816. package/src/shared/ui-lib/UiSeparator/index.ts +1 -0
  817. package/src/shared/ui-lib/UiSkeleton/UiSkeleton.module.css +37 -0
  818. package/src/shared/ui-lib/UiSkeleton/UiSkeleton.tsx +10 -0
  819. package/src/shared/ui-lib/UiSkeleton/index.ts +1 -0
  820. package/src/shared/ui-lib/UiSlider/UiSlider.module.css +75 -0
  821. package/src/shared/ui-lib/UiSlider/UiSlider.tsx +50 -0
  822. package/src/shared/ui-lib/UiSlider/index.ts +1 -0
  823. package/src/shared/ui-lib/UiSwitch/UiSwitch.module.css +48 -0
  824. package/src/shared/ui-lib/UiSwitch/UiSwitch.tsx +103 -0
  825. package/src/shared/ui-lib/UiSwitch/index.ts +1 -0
  826. package/src/staticResources.ts +410 -0
  827. package/src/version.ts +1 -0
  828. package/tsconfig.json +42 -0
@@ -0,0 +1,196 @@
1
+ import React, { useEffect, useState } from "react";
2
+ import { Input } from "shared/ui-lib/Input/Input";
3
+ import styles from "./HyperLinkInput.module.css";
4
+ import { useHyperLinkContext } from "features/hyperLink/HyperLinkContext";
5
+ import { useAppContext } from "features/AppContext";
6
+ import { useClickOutside } from "shared/lib/useClickOutside";
7
+ import { Icon } from "shared/ui-lib/Icon/Icon";
8
+ import { useDomMbr } from "App/useDomMbr";
9
+ import { useTranslation } from "react-i18next";
10
+ import { conf } from "microboard-temp";
11
+ import { notify } from "shared/ui-lib/Toast/notify";
12
+
13
+ export const HyperLinkInput = () => {
14
+ const [inputValue, setInputValue] = useState<string>("");
15
+ const { isEditingLink, setIsEditingLink, hyperLinkData, setHyperLinkData } =
16
+ useHyperLinkContext();
17
+ const { board, app } = useAppContext();
18
+ const { t } = useTranslation();
19
+ const containerRef = useClickOutside(
20
+ () => {
21
+ if (isEditingLink) {
22
+ setIsEditingLink(false);
23
+ }
24
+ },
25
+ [],
26
+ true,
27
+ );
28
+
29
+ const mbr = useDomMbr({
30
+ app,
31
+ board,
32
+ ref: containerRef,
33
+ targetMbr: board.selection.items.getSingle()?.getRichText()?.getMbr(),
34
+ subjects: ["pointer"],
35
+ fit: "hyperLink",
36
+ });
37
+
38
+ const richTextEditor = board.selection.items
39
+ .getSingle()
40
+ ?.getRichText()?.editor;
41
+
42
+ useEffect(() => {
43
+ if (hyperLinkData && hyperLinkData.isWatchMode) {
44
+ const link = richTextEditor?.getFirstSelectionLink(
45
+ hyperLinkData.selection,
46
+ );
47
+ if (link !== inputValue) {
48
+ setInputValue(link || "");
49
+ }
50
+ }
51
+ if (hyperLinkData && isEditingLink) {
52
+ (
53
+ document.querySelector(
54
+ "#hyper-link-input",
55
+ ) as HTMLInputElement | null
56
+ )?.focus();
57
+ }
58
+ if (!hyperLinkData) {
59
+ setInputValue("");
60
+ }
61
+ }, [hyperLinkData]);
62
+
63
+ if (!hyperLinkData || (!isEditingLink && !hyperLinkData.isWatchMode)) {
64
+ return null;
65
+ }
66
+
67
+ const handleConfirmBtnClick = () => {
68
+ if (!conf.URL_REGEX.test(inputValue)) {
69
+ notify({
70
+ header: t("hyperLink.errorTitle"),
71
+ body: t("hyperLink.errorBody"),
72
+ variant: "error",
73
+ duration: 3000,
74
+ });
75
+ } else {
76
+ board.selection.setHyperLink(inputValue, hyperLinkData.selection);
77
+ setInputValue("");
78
+ setIsEditingLink(false);
79
+ }
80
+ };
81
+
82
+ const handleInputClick = (
83
+ event: React.MouseEvent<HTMLInputElement>,
84
+ ): void => {
85
+ event.stopPropagation();
86
+ if (board.selection.getContext() === "EditTextUnderPointer") {
87
+ board.selection.setContext("EditUnderPointer");
88
+ }
89
+ };
90
+
91
+ const onPaste = (event: React.ClipboardEvent<HTMLInputElement>): void => {
92
+ event.stopPropagation();
93
+ if (!conf.URL_REGEX.test(event.clipboardData.getData("text/plain"))) {
94
+ event.preventDefault();
95
+ notify({
96
+ header: t("hyperLink.errorTitle"),
97
+ body: t("hyperLink.errorBody"),
98
+ variant: "error",
99
+ duration: 3000,
100
+ });
101
+ }
102
+ };
103
+
104
+ const onKeyDown = (event: React.KeyboardEvent<HTMLInputElement>): void => {
105
+ if (event.key === "Enter") {
106
+ handleConfirmBtnClick();
107
+ }
108
+ event.stopPropagation();
109
+ };
110
+
111
+ const handleEditBtnClick = () => {
112
+ setHyperLinkData({ ...hyperLinkData, isWatchMode: false });
113
+ setIsEditingLink(true);
114
+ };
115
+
116
+ const handleDeleteBtnClick = () => {
117
+ board.selection.setHyperLink(undefined, hyperLinkData.selection);
118
+ };
119
+ let left = hyperLinkData.inputPosition?.left || mbr.left;
120
+ let top = hyperLinkData.inputPosition?.top || mbr.top;
121
+ const width = containerRef.current?.clientWidth || 0;
122
+ const height = containerRef.current?.clientHeight || 0;
123
+ const right = left + width;
124
+ const bottom = top + height;
125
+ const offset = 20;
126
+ const view = board.camera.window.getMbr();
127
+
128
+ if (right >= view.right - offset) {
129
+ left = view.right - offset - width;
130
+ } else if (left <= view.left + offset) {
131
+ left = view.left + offset;
132
+ }
133
+
134
+ if (bottom >= view.bottom - offset) {
135
+ top = view.bottom - offset - height;
136
+ } else if (top <= view.top + offset) {
137
+ top = view.top + offset;
138
+ }
139
+
140
+ return (
141
+ <div
142
+ ref={containerRef}
143
+ className={styles.container}
144
+ style={{
145
+ top,
146
+ left,
147
+ }}
148
+ >
149
+ {hyperLinkData.isWatchMode ? (
150
+ <>
151
+ <a
152
+ className={styles.link}
153
+ target="_blank"
154
+ href={inputValue}
155
+ rel="noreferrer"
156
+ >
157
+ {inputValue}
158
+ </a>
159
+ <button
160
+ className={styles.iconButton}
161
+ onClick={handleEditBtnClick}
162
+ >
163
+ <Icon iconName={"EditPen"} width={16} height={16} />
164
+ </button>
165
+ <button
166
+ className={styles.iconButton}
167
+ onClick={handleDeleteBtnClick}
168
+ >
169
+ <Icon iconName={"Delete"} width={19} height={19} />
170
+ </button>
171
+ </>
172
+ ) : (
173
+ <div className={styles.inputContainer}>
174
+ <Input
175
+ onKeyDown={onKeyDown}
176
+ shouldSelect={true}
177
+ shouldFocus={true}
178
+ id="hyper-link-input"
179
+ placeholder={t("hyperLink.addLink")}
180
+ value={inputValue}
181
+ onClick={handleInputClick}
182
+ onFocus={event => event.currentTarget.select()}
183
+ onPaste={onPaste}
184
+ onChange={e => setInputValue(e.target.value)}
185
+ />
186
+ <button
187
+ onClick={handleConfirmBtnClick}
188
+ className={styles.confirmBtn}
189
+ >
190
+ {t("hyperLink.done")}
191
+ </button>
192
+ </div>
193
+ )}
194
+ </div>
195
+ );
196
+ };
@@ -0,0 +1,6 @@
1
+ export { HyperLink } from "./HyperLink.tsx";
2
+ export {
3
+ HyperLinkContextProvider,
4
+ useHyperLinkContext,
5
+ } from "./HyperLinkContext.tsx";
6
+ export type { HyperLinkCreationData } from "./HyperLinkContext.tsx";
@@ -0,0 +1,115 @@
1
+ <mxfile host="65bd71144e">
2
+ <diagram id="5xD8ex14hHM9CkSOHjqB" name="Page-1">
3
+ <mxGraphModel dx="1533" dy="714" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
4
+ <root>
5
+ <mxCell id="0"/>
6
+ <mxCell id="1" parent="0"/>
7
+ <mxCell id="4" value="" style="edgeStyle=none;html=1;" edge="1" parent="1" source="2" target="3">
8
+ <mxGeometry relative="1" as="geometry"/>
9
+ </mxCell>
10
+ <mxCell id="6" value="" style="edgeStyle=none;html=1;" edge="1" parent="1" source="2" target="5">
11
+ <mxGeometry relative="1" as="geometry"/>
12
+ </mxCell>
13
+ <mxCell id="2" value="window" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
14
+ <mxGeometry x="140" y="20" width="120" height="60" as="geometry"/>
15
+ </mxCell>
16
+ <mxCell id="8" value="" style="edgeStyle=none;html=1;" edge="1" parent="1" source="3" target="7">
17
+ <mxGeometry relative="1" as="geometry"/>
18
+ </mxCell>
19
+ <mxCell id="10" value="" style="edgeStyle=none;html=1;" edge="1" parent="1" source="3" target="9">
20
+ <mxGeometry relative="1" as="geometry"/>
21
+ </mxCell>
22
+ <mxCell id="3" value="container" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
23
+ <mxGeometry x="230" y="130" width="120" height="60" as="geometry"/>
24
+ </mxCell>
25
+ <mxCell id="5" value="offscreen" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
26
+ <mxGeometry x="60" y="130" width="120" height="60" as="geometry"/>
27
+ </mxCell>
28
+ <mxCell id="22" value="" style="edgeStyle=none;html=1;" edge="1" parent="1" source="7" target="21">
29
+ <mxGeometry relative="1" as="geometry"/>
30
+ </mxCell>
31
+ <mxCell id="24" value="" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="1" source="27" target="23">
32
+ <mxGeometry relative="1" as="geometry"/>
33
+ </mxCell>
34
+ <mxCell id="26" value="" style="edgeStyle=none;html=1;" edge="1" parent="1" source="7" target="25">
35
+ <mxGeometry relative="1" as="geometry"/>
36
+ </mxCell>
37
+ <mxCell id="28" value="" style="edgeStyle=none;html=1;" edge="1" parent="1" source="7" target="27">
38
+ <mxGeometry relative="1" as="geometry"/>
39
+ </mxCell>
40
+ <mxCell id="30" value="" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="1" source="27" target="29">
41
+ <mxGeometry relative="1" as="geometry"/>
42
+ </mxCell>
43
+ <mxCell id="36" value="" style="edgeStyle=none;html=1;" edge="1" parent="1" source="7" target="35">
44
+ <mxGeometry relative="1" as="geometry"/>
45
+ </mxCell>
46
+ <mxCell id="7" value="overlays" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
47
+ <mxGeometry x="60" y="240" width="120" height="60" as="geometry"/>
48
+ </mxCell>
49
+ <mxCell id="12" value="" style="edgeStyle=none;html=1;" edge="1" parent="1" source="9" target="11">
50
+ <mxGeometry relative="1" as="geometry"/>
51
+ </mxCell>
52
+ <mxCell id="13" value="" style="edgeStyle=none;html=1;" edge="1" parent="1" source="9" target="11">
53
+ <mxGeometry relative="1" as="geometry"/>
54
+ </mxCell>
55
+ <mxCell id="14" value="" style="edgeStyle=none;html=1;" edge="1" parent="1" source="9" target="11">
56
+ <mxGeometry relative="1" as="geometry"/>
57
+ </mxCell>
58
+ <mxCell id="16" value="" style="edgeStyle=none;html=1;" edge="1" parent="1" source="9" target="15">
59
+ <mxGeometry relative="1" as="geometry"/>
60
+ </mxCell>
61
+ <mxCell id="9" value="canvas" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
62
+ <mxGeometry x="630" y="230" width="120" height="60" as="geometry"/>
63
+ </mxCell>
64
+ <mxCell id="20" value="" style="edgeStyle=none;html=1;" edge="1" parent="1" source="11" target="19">
65
+ <mxGeometry relative="1" as="geometry"/>
66
+ </mxCell>
67
+ <mxCell id="11" value="top" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
68
+ <mxGeometry x="580" y="340" width="120" height="60" as="geometry"/>
69
+ </mxCell>
70
+ <mxCell id="18" value="" style="edgeStyle=none;html=1;" edge="1" parent="1" source="15" target="17">
71
+ <mxGeometry relative="1" as="geometry"/>
72
+ </mxCell>
73
+ <mxCell id="15" value="bottom" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
74
+ <mxGeometry x="730" y="340" width="120" height="60" as="geometry"/>
75
+ </mxCell>
76
+ <mxCell id="17" value="items" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
77
+ <mxGeometry x="730" y="440" width="120" height="60" as="geometry"/>
78
+ </mxCell>
79
+ <mxCell id="19" value="selection, add rect, transformer" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
80
+ <mxGeometry x="580" y="440" width="120" height="60" as="geometry"/>
81
+ </mxCell>
82
+ <mxCell id="21" value="text editor" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
83
+ <mxGeometry x="430" y="410" width="120" height="60" as="geometry"/>
84
+ </mxCell>
85
+ <mxCell id="23" value="context panel" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
86
+ <mxGeometry x="140" y="580" width="120" height="60" as="geometry"/>
87
+ </mxCell>
88
+ <mxCell id="25" value="context menu" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
89
+ <mxGeometry x="270" y="410" width="120" height="60" as="geometry"/>
90
+ </mxCell>
91
+ <mxCell id="32" value="" style="edgeStyle=none;html=1;" edge="1" parent="1" source="27" target="31">
92
+ <mxGeometry relative="1" as="geometry"/>
93
+ </mxCell>
94
+ <mxCell id="34" value="" style="edgeStyle=none;html=1;" edge="1" parent="1" source="27" target="33">
95
+ <mxGeometry relative="1" as="geometry"/>
96
+ </mxCell>
97
+ <mxCell id="27" value="panels" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
98
+ <mxGeometry x="-30" y="410" width="120" height="60" as="geometry"/>
99
+ </mxCell>
100
+ <mxCell id="29" value="tools panel" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
101
+ <mxGeometry x="-10" y="580" width="120" height="60" as="geometry"/>
102
+ </mxCell>
103
+ <mxCell id="31" value="zoom panel" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
104
+ <mxGeometry x="-150" y="580" width="120" height="60" as="geometry"/>
105
+ </mxCell>
106
+ <mxCell id="33" value="title panel" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
107
+ <mxGeometry x="280" y="580" width="120" height="60" as="geometry"/>
108
+ </mxCell>
109
+ <mxCell id="35" value="side panel" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
110
+ <mxGeometry x="120" y="410" width="120" height="60" as="geometry"/>
111
+ </mxCell>
112
+ </root>
113
+ </mxGraphModel>
114
+ </diagram>
115
+ </mxfile>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="1001px" height="621px" viewBox="-0.5 -0.5 1001 621" content="&lt;mxfile&gt;&lt;diagram id=&quot;5xD8ex14hHM9CkSOHjqB&quot; name=&quot;Page-1&quot;&gt;3VpBk5owFP41Hrcjiah7rbvdXnry0PaYwlMyA4kTnor76xskiBi644xtHtOT5CVAvs/vvS8EJnxVVG9G7LJvOoV8wqZpNeEvE8Yizpb2p46cmkhct+rA1sjUDeoCa/kOLjh10b1MoewNRK1zlLt+MNFKQYK9mDBGH/vDNjrv33UntuAF1onI/eh3mWLWRJfxtIt/BbnN2jtHU9dTiHawC5SZSPXxKsRfJ3xltMbmqKhWkNfktbw05335Q+9lYgYU3nPCrDnhIPK9w+bmhacWLKQWu2sqrezP5wyL3LYie+jf0M2h1HuTuEu4i6IwW3CjeBOqL351mpvkG+gC0JzsAAO5QHnoEy/c/7e9jOsg2gOHchjxnApxTIWYeYiPUtWqu8Vt9F6lUJ81tTiPmURY78QZ0tEm8p00HMAgVB9CbHtnLgtcGWiT4tjlVNTGsqt8mk8fJ2UZRAbcl8GCSgZt8QwP+ZkKMvcQW0dAIRUYcvEz3hd/xAOqP/aI0ZtNmRgARU7MnJCXgVr5L3Jk4edIO4zAHh5eA0Al8Uetj0+xa/286nmpnHTOjZNr3MXTIFFkK4dAS4chzHRrhzA+OYSZzCj5w0YZNiHo7JUsIThZQix857TWlotTOTbjZLOAxhmFMc5nXwoRmXFG/vLy/8ccZsNgXJjDlLkhzGRl7tmDnAh1ECMocjePTSzo40GYR+hW6j0pkLl8O5sr0Kh35EKIl30h8KB2F2ZZ3OZ/Twh0G0j+rsEvjagLci0sOKUW/CWhxVvQl8pbVmZBWfEdpIQcEpRaTdiqvnqanlWaYNNGI1S50aYYwebcbXEJSh0bKLhQ4TnnJWp6dma3wopCsjO8qdsQtBOqftVIzM/te42LmoLw41fpjp8C1J6cHrYglA9nHj0eIX/j/d/QpgXZEwwP9Jp3CDTddq3vy+fyQG/MT6T10zfm+tuJcjTV8ykirJ7c9953Xa9wR0NOTMmO770o0XIxFnrYkpId33lLmY6HnAvwAGXHNruPmM59V5+C8dff&lt;/diagram&gt;&lt;/mxfile&gt;"><defs/><g><path d="M 374.55 60 L 411.42 105.07" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 414.75 109.13 L 407.61 105.93 L 411.42 105.07 L 413.02 101.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><path d="M 328.18 60 L 295.56 104.85" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 292.48 109.1 L 293.76 101.38 L 295.56 104.85 L 299.42 105.49 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><rect x="290" y="0" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 30px; margin-left: 291px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">window</div></div></div></foreignObject><text x="350" y="34" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">window</text></switch></g><path d="M 393.64 170 L 321.71 216.54" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 317.3 219.39 L 321.28 212.65 L 321.71 216.54 L 325.08 218.53 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><path d="M 500 155 L 773.82 223.46" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 778.92 224.73 L 771.28 226.43 L 773.82 223.46 L 772.97 219.64 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><rect x="380" y="110" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 140px; margin-left: 381px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">container</div></div></div></foreignObject><text x="440" y="144" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">container</text></switch></g><rect x="210" y="110" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 140px; margin-left: 211px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">offscreen</div></div></div></foreignObject><text x="270" y="144" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">offscreen</text></switch></g><path d="M 330 277.57 L 574.21 389.77" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 578.98 391.97 L 571.16 392.22 L 574.21 389.77 L 574.08 385.86 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><path d="M 180 450 L 308.66 555.95" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 312.71 559.29 L 305.08 557.54 L 308.66 555.95 L 309.53 552.14 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><path d="M 307.06 280 L 437.99 385.99" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 442.07 389.3 L 434.43 387.61 L 437.99 385.99 L 438.83 382.17 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><path d="M 254.12 280 L 198.86 384.37" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 196.41 389.01 L 196.59 381.19 L 198.86 384.37 L 202.77 384.46 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><path d="M 180 450 L 194.81 553.7" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 195.56 558.89 L 191.1 552.46 L 194.81 553.7 L 198.03 551.47 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><path d="M 280.59 280 L 317.29 384" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 319.04 388.95 L 313.41 383.51 L 317.29 384 L 320.01 381.18 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><rect x="210" y="220" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 250px; margin-left: 211px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">overlays</div></div></div></foreignObject><text x="270" y="254" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">overlays</text></switch></g><path d="M 826.36 270 L 806.27 314.2" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 804.1 318.98 L 803.81 311.16 L 806.27 314.2 L 810.18 314.06 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><path d="M 826.36 270 L 806.27 314.2" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 804.1 318.98 L 803.81 311.16 L 806.27 314.2 L 810.18 314.06 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><path d="M 826.36 270 L 806.27 314.2" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 804.1 318.98 L 803.81 311.16 L 806.27 314.2 L 810.18 314.06 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><path d="M 867.27 270 L 908.44 315.29" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 911.98 319.17 L 904.68 316.35 L 908.44 315.29 L 909.86 311.64 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><rect x="780" y="210" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 240px; margin-left: 781px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">canvas</div></div></div></foreignObject><text x="840" y="244" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">canvas</text></switch></g><path d="M 790 380 L 790 413.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 790 418.88 L 786.5 411.88 L 790 413.63 L 793.5 411.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><rect x="730" y="320" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 350px; margin-left: 731px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">top</div></div></div></foreignObject><text x="790" y="354" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">top</text></switch></g><path d="M 940 380 L 940 413.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 940 418.88 L 936.5 411.88 L 940 413.63 L 943.5 411.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><rect x="880" y="320" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 350px; margin-left: 881px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">bottom</div></div></div></foreignObject><text x="940" y="354" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">bottom</text></switch></g><rect x="880" y="420" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 450px; margin-left: 881px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">items</div></div></div></foreignObject><text x="940" y="454" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">items</text></switch></g><rect x="730" y="420" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 450px; margin-left: 731px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">selection, add rect, transformer</div></div></div></foreignObject><text x="790" y="454" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">selection, add rect,...</text></switch></g><rect x="580" y="390" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 420px; margin-left: 581px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">text editor</div></div></div></foreignObject><text x="640" y="424" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">text editor</text></switch></g><rect x="290" y="560" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 590px; margin-left: 291px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">context panel</div></div></div></foreignObject><text x="350" y="594" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">context panel</text></switch></g><rect x="420" y="390" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 420px; margin-left: 421px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">context menu</div></div></div></foreignObject><text x="480" y="424" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">context menu</text></switch></g><path d="M 158.82 450 L 84.85 554.8" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 81.82 559.09 L 83 551.35 L 84.85 554.8 L 88.72 555.39 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><path d="M 234.71 450 L 429.71 556.94" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 434.31 559.46 L 426.49 559.17 L 429.71 556.94 L 429.86 553.03 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><rect x="120" y="390" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 420px; margin-left: 121px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">panels</div></div></div></foreignObject><text x="180" y="424" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">panels</text></switch></g><rect x="140" y="560" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 590px; margin-left: 141px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">tools panel</div></div></div></foreignObject><text x="200" y="594" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">tools panel</text></switch></g><rect x="0" y="560" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 590px; margin-left: 1px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">zoom panel</div></div></div></foreignObject><text x="60" y="594" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">zoom panel</text></switch></g><rect x="430" y="560" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 590px; margin-left: 431px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">title panel</div></div></div></foreignObject><text x="490" y="594" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">title panel</text></switch></g><rect x="270" y="390" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 420px; margin-left: 271px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">side panel</div></div></div></foreignObject><text x="330" y="424" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">side panel</text></switch></g></g><switch><g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/><a transform="translate(0,-5)" xlink:href="https://www.diagrams.net/doc/faq/svg-export-text-problems" target="_blank"><text text-anchor="middle" font-size="10px" x="50%" y="100%">Viewer does not support full SVG 1.1</text></a></switch></svg>
@@ -0,0 +1,22 @@
1
+ declare module "*.css" {
2
+ const content: unknown;
3
+ export default content;
4
+ }
5
+
6
+ declare module "*.module.css" {
7
+ interface IClassNames {
8
+ [className: string]: string;
9
+ }
10
+ const classNames: IClassNames;
11
+ export = classNames;
12
+ }
13
+
14
+ declare module "*.png" {
15
+ const content: unknown;
16
+ export default content;
17
+ }
18
+
19
+ declare module "*.svg" {
20
+ const content: unknown;
21
+ export default content;
22
+ }
package/src/index.css ADDED
@@ -0,0 +1,65 @@
1
+ @import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap");
2
+ @import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap");
3
+ @import "microboard-temp/style";
4
+
5
+ :root {
6
+ --background-surface-default: rgb(255, 255, 255);
7
+ --background-button-secondary: rgb(255, 255, 255);
8
+ --background-button-secondary-hover: rgb(247, 247, 248);
9
+ --background-badge-purple-disabled: rgb(247, 241, 253);
10
+ --background-badge-gray: rgb(233, 234, 236);
11
+ --background-accent-purple: rgb(146, 79, 232);
12
+
13
+ --border-action-normal: rgb(222, 223, 227);
14
+ --border-action-focus: rgb(146, 79, 232);
15
+ --border-select-primary: rgb(146, 79, 232);
16
+
17
+ --text-base-primary: rgb(20, 21, 26);
18
+ --text-base-secondary: rgba(15, 19, 36, 0.6);
19
+ --text-base-quaternary: rgb(10, 15, 41, 0.25);
20
+ --text-accent-purple: rgb(152, 89, 233);
21
+
22
+ --icon-base-primary: rgb(20, 21, 26);
23
+ --icon-base-secondary: rgb(105, 107, 118);
24
+ --icon-accent-purple: rgb(146, 79, 232);
25
+
26
+ --absolute-position-panel-padding: 12px;
27
+ }
28
+
29
+ * {
30
+ box-sizing: border-box;
31
+ padding: 0;
32
+ margin: 0;
33
+ border: none;
34
+ background: none;
35
+ font-family: inherit;
36
+ }
37
+
38
+ *:focus {
39
+ outline: none;
40
+ }
41
+
42
+ html {
43
+ font-size: 62.5%;
44
+ }
45
+
46
+ body {
47
+ color: var(--text-base-primary);
48
+ font-size: 1.6rem;
49
+ font-optical-sizing: auto;
50
+ font-style: normal;
51
+ font-family: "Manrope", sans-serif;
52
+ }
53
+
54
+ html,
55
+ body {
56
+ overscroll-behavior-x: none;
57
+ -webkit-user-select: none;
58
+ }
59
+
60
+ input:-webkit-autofill,
61
+ input:-webkit-autofill:hover,
62
+ input:-webkit-autofill:focus,
63
+ input:-webkit-autofill:active {
64
+ -webkit-box-shadow: 0 0 0 30px white inset !important;
65
+ }
package/src/index.html ADDED
@@ -0,0 +1,74 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="utf-8" />
6
+ <meta name="viewport" content="
7
+ width=device-width,
8
+ initial-scale=1,
9
+ shrink-to-fit=no
10
+ minimum-scale=1.0,
11
+ maximum-scale=1.0,
12
+ user-scalable=no
13
+ " />
14
+ <title>Microboard</title>
15
+ <link rel="icon" type="image/png" sizes="16x16" href="./public/favicons/favicon-16x16.png">
16
+ <link rel="icon" type="image/png" sizes="32x32" href="./public/favicons/favicon-32x32.png">
17
+ <link rel="icon" type="image/svg+xml" href="./public/favicon.svg">
18
+ <link rel="icon" href="./public/favicons/favicon.ico">
19
+ <link rel="apple-touch-icon" sizes="180x180" href="./public/favicons/apple-touch-icon.png">
20
+ <link rel="manifest" href="./public/favicons/site.webmanifest" />
21
+ <link rel="preconnect" href="https://fonts.googleapis.com">
22
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
23
+ <link href="https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap" rel="stylesheet">
24
+ <link
25
+ href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap"
26
+ rel="stylesheet"
27
+ />
28
+ <link rel="stylesheet" type="text/css" href="./index.css">
29
+ </head>
30
+
31
+ <body style="
32
+ margin: 0;
33
+ height: 100%;
34
+ width: 100%;
35
+ /* overflow: hidden; */
36
+ position: fixed;
37
+ padding: 0;
38
+ touch-action: none;
39
+ -ms-touch-action: none;
40
+ background-color: #fff;
41
+ ">
42
+ <div id="root" style="
43
+ height: 100%;
44
+ width: 100%;
45
+ resize: none;
46
+ background: none;
47
+ outline: none;
48
+ border: none;
49
+ padding: 0px;
50
+ margin: 0px;
51
+ overflow: auto;
52
+ ">
53
+ <div style="
54
+ display: flex;
55
+ justify-content: center;
56
+ align-items: center;
57
+ height: 100vh;
58
+ width: 100vw
59
+ ">
60
+ <div style="
61
+ transform: scale(7);
62
+ ">
63
+ <img src="./public/loader.svg" alt="">
64
+ </div>
65
+ </div>
66
+ </div>
67
+ <div id="modal"></div>
68
+ <div id="selector"></div>
69
+ <div id="drag" style="position: fixed; left: 0; top: 0; touch-action: none; height: 100%; width: 100%; z-index: 1000; pointer-events: none;">
70
+ </div>
71
+ <div id="tooltip"></div>
72
+ <script type="module" src="./production.entrypoint.ts"></script>
73
+ </body>
74
+ </html>
package/src/index.ts ADDED
@@ -0,0 +1,4 @@
1
+ export { App, createApp } from "App/App";
2
+ export { initInter } from "initI18N";
3
+ // import "features/Cursors";
4
+ // import "./index.css";
@@ -0,0 +1,42 @@
1
+ import { createInstance } from "i18next";
2
+ import LanguageDetector from "i18next-browser-languagedetector";
3
+ import { conf, initI18N } from "microboard-temp";
4
+ import { initReactI18next } from "react-i18next";
5
+ import en from "shared/Lang/en.json";
6
+ import ru from "shared/Lang/ru.json";
7
+
8
+ let configuredI18n: any = null;
9
+
10
+ export async function initInter(): Promise<void> {
11
+ const defaultNS = "default";
12
+ const resources = {
13
+ en: {
14
+ default: en,
15
+ },
16
+ ru: {
17
+ default: ru,
18
+ },
19
+ };
20
+ const i18Instance = createInstance({
21
+ debug: conf.debug,
22
+ detection: {
23
+ order: ["navigator"],
24
+ },
25
+ supportedLngs: ["en", "ru"],
26
+ defaultNS,
27
+ resources,
28
+ fallbackLng: conf.FALLBACK_LNG,
29
+ interpolation: {
30
+ escapeValue: false,
31
+ },
32
+ });
33
+
34
+ await i18Instance.use(LanguageDetector).use(initReactI18next).init();
35
+
36
+ configuredI18n = i18Instance;
37
+ initI18N(i18Instance);
38
+ }
39
+
40
+ export function getConfiguredI18n() {
41
+ return configuredI18n;
42
+ }