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.
- package/.github/workflows/npm-publish.yml +66 -0
- package/Dockerfile +15 -0
- package/LICENSE.txt +17 -0
- package/MicroboardLicense.txt +84 -0
- package/README.md +23 -0
- package/bun.lock +1079 -0
- package/bunPlugins/copyPlugin.ts +81 -0
- package/bunfig.toml +1 -0
- package/docker-compose.yml +7 -0
- package/package.json +49 -0
- package/scripts/buildPkg.ts +29 -0
- package/scripts/buildSpa.ts +29 -0
- package/server.ts +18 -0
- package/src/App/App.ts +502 -0
- package/src/App/BoardsList.ts +752 -0
- package/src/App/Clipboard.ts +22 -0
- package/src/App/Connection.ts +758 -0
- package/src/App/Location.ts +23 -0
- package/src/App/MediaHelpers.ts +221 -0
- package/src/App/Paste/index.ts +5 -0
- package/src/App/Paste/pasteTextToTheBoard.ts +19 -0
- package/src/App/Paste/tryToGetMarkdownFromDataTransfer.ts +60 -0
- package/src/App/Paste/tryToPasteAsItemOrReturnText.ts +72 -0
- package/src/App/Paste/tryToPasteAudioByLink.ts +35 -0
- package/src/App/Paste/tryToPasteFromMicroboard.ts +15 -0
- package/src/App/Paste/tryToPasteFromMiro.ts +75 -0
- package/src/App/Paste/tryToPasteImages.ts +44 -0
- package/src/App/Paste/tryToPasteVideoByLink.ts +68 -0
- package/src/App/Permissions.ts +43 -0
- package/src/App/README.md +58 -0
- package/src/App/SessionStorage.ts +248 -0
- package/src/App/Storage.ts +122 -0
- package/src/App/Wheel/Wheel.spec.ts +40 -0
- package/src/App/Wheel/Wheel.ts +229 -0
- package/src/App/Wheel/WheelEventLogger.ts +70 -0
- package/src/App/Wheel/WheelEvents.spec.ts +418 -0
- package/src/App/Wheel/index.ts +1 -0
- package/src/App/Wheel/mockedWheelData.ts +77658 -0
- package/src/App/getController.ts +878 -0
- package/src/App/getSubscriptions.ts +155 -0
- package/src/App/index.ts +1 -0
- package/src/App/isFirefox.ts +3 -0
- package/src/App/isMacos.ts +2 -0
- package/src/App/isSafari.ts +17 -0
- package/src/App/router.tsx +149 -0
- package/src/App/testRecorder.ts +393 -0
- package/src/App/throttlePointerEvent.ts +27 -0
- package/src/App/useAccount.ts +19 -0
- package/src/App/useBoardSubscription.ts +14 -0
- package/src/App/useBoardsList.ts +18 -0
- package/src/App/useDomMbr.ts +65 -0
- package/src/Config.ts +41 -0
- package/src/Globals.d.ts +6 -0
- package/src/WhiteBoardModule/Readme.md +21 -0
- package/src/WhiteBoardModule/WhiteBoardModuleNative.tsx +60 -0
- package/src/WhiteBoardModule/WhiteboardModuleReact.tsx +61 -0
- package/src/development.entrypoint.ts +38 -0
- package/src/entities/AIInput/AIContext.tsx +377 -0
- package/src/entities/AIInput/AIDropdown.tsx +296 -0
- package/src/entities/AIInput/AIGenerationButton.tsx +54 -0
- package/src/entities/AIInput/AIInput.module.css +488 -0
- package/src/entities/AIInput/AIInput.tsx +427 -0
- package/src/entities/AIInput/StarIcon.tsx +201 -0
- package/src/entities/AIInput/index.ts +12 -0
- package/src/entities/AIInput/utils.ts +384 -0
- package/src/entities/BoardMenu/BoardMenu.module.css +38 -0
- package/src/entities/BoardMenu/BoardMenu.tsx +86 -0
- package/src/entities/BoardMenu/MouseOrTracpadModal/MouseOrTrackpadModal.tsx +138 -0
- package/src/entities/BoardMenu/MouseOrTracpadModal/MouseOrTracpadModal.module.css +93 -0
- package/src/entities/BoardMenu/index.ts +1 -0
- package/src/entities/BoardMenu/sections/Comments.tsx +65 -0
- package/src/entities/BoardMenu/sections/Items.tsx +85 -0
- package/src/entities/BoardMenu/sections/MouseOrTrackpad.tsx +108 -0
- package/src/entities/BoardName/BoardName.module.css +61 -0
- package/src/entities/BoardName/BoardName.tsx +66 -0
- package/src/entities/BoardName/BoardRename.module.css +15 -0
- package/src/entities/BoardName/BoardRename.tsx +93 -0
- package/src/entities/BoardName/index.ts +3 -0
- package/src/entities/Canvas/Canvas.tsx +250 -0
- package/src/entities/Canvas/CanvasNoRouter.tsx +216 -0
- package/src/entities/Canvas/index.ts +2 -0
- package/src/entities/Folder/DragOverlay.tsx +52 -0
- package/src/entities/Folder/DragPlaceholder.module.css +5 -0
- package/src/entities/Folder/DragPlaceholder.tsx +6 -0
- package/src/entities/Folder/DraggingItem.module.css +8 -0
- package/src/entities/Folder/DraggingWrapper.tsx +18 -0
- package/src/entities/Folder/Folder.module.css +113 -0
- package/src/entities/Folder/Folder.tsx +356 -0
- package/src/entities/Folder/FolderItem.module.css +89 -0
- package/src/entities/Folder/FolderItem.tsx +165 -0
- package/src/entities/Folder/FoldersDndContext.tsx +129 -0
- package/src/entities/Folder/OpenedFoldersContext.tsx +33 -0
- package/src/entities/Folder/index.ts +8 -0
- package/src/entities/account/Account.ts +542 -0
- package/src/entities/account/AuthForm.module.css +150 -0
- package/src/entities/account/AuthForm.tsx +48 -0
- package/src/entities/account/AuthGuard.tsx +17 -0
- package/src/entities/account/AuthInterceptor.ts +21 -0
- package/src/entities/account/UnauthGuard.tsx +17 -0
- package/src/entities/account/index.ts +5 -0
- package/src/entities/comments/Cluster/Cluster.module.css +43 -0
- package/src/entities/comments/Cluster/Cluster.tsx +100 -0
- package/src/entities/comments/CommentContainer/CommentContainer.module.css +51 -0
- package/src/entities/comments/CommentContainer/CommentContainer.tsx +232 -0
- package/src/entities/comments/CommentContainer/CommentPreview/CommentPreview.module.css +89 -0
- package/src/entities/comments/CommentContainer/CommentPreview/CommentPreview.tsx +92 -0
- package/src/entities/comments/CommentInput/CommentInput.module.css +69 -0
- package/src/entities/comments/CommentInput/CommentInput.tsx +122 -0
- package/src/entities/comments/CommentsContext.tsx +65 -0
- package/src/entities/comments/CommentsPanel/CommentCard/CommentCard.module.css +36 -0
- package/src/entities/comments/CommentsPanel/CommentCard/CommentCard.tsx +132 -0
- package/src/entities/comments/CommentsPanel/CommentCard/Message/Message.module.css +73 -0
- package/src/entities/comments/CommentsPanel/CommentCard/Message/Message.tsx +72 -0
- package/src/entities/comments/CommentsPanel/CommentsPanel.module.css +143 -0
- package/src/entities/comments/CommentsPanel/CommentsPanel.tsx +278 -0
- package/src/entities/comments/CommentsPanel/CommentsPanelContext.tsx +37 -0
- package/src/entities/comments/CommentsProvider.module.css +4 -0
- package/src/entities/comments/CommentsProvider.tsx +73 -0
- package/src/entities/comments/CreateComment/CreateComment.module.css +8 -0
- package/src/entities/comments/CreateComment/CreateComment.tsx +66 -0
- package/src/entities/comments/Thread/ExtraOptions/ExtraOptions.module.css +44 -0
- package/src/entities/comments/Thread/ExtraOptions/ExtraOptions.tsx +127 -0
- package/src/entities/comments/Thread/OptionsPanel/OptionsPanel.module.css +32 -0
- package/src/entities/comments/Thread/OptionsPanel/OptionsPanel.tsx +38 -0
- package/src/entities/comments/Thread/ThreadPanel.module.css +82 -0
- package/src/entities/comments/Thread/ThreadPanel.tsx +298 -0
- package/src/entities/comments/Thread/message/Message.module.css +71 -0
- package/src/entities/comments/Thread/message/Message.tsx +137 -0
- package/src/entities/comments/index.ts +7 -0
- package/src/entities/comments/lib.ts +22 -0
- package/src/entities/comments/useCommentsMerge.ts +88 -0
- package/src/entities/comments/useIntersectionObserver.ts +58 -0
- package/src/entities/comments/useScrollToUnreadMessage.ts +24 -0
- package/src/env.d.ts +12 -0
- package/src/features/AccessDeniedModal/AccessDeniedModal.module.css +56 -0
- package/src/features/AccessDeniedModal/AccessDeniedModal.tsx +94 -0
- package/src/features/AccessDeniedModal/index.ts +1 -0
- package/src/features/AiUnavailableModal/AiUnavailableModal.module.css +52 -0
- package/src/features/AiUnavailableModal/AiUnavailableModal.tsx +59 -0
- package/src/features/AiUnavailableModal/index.ts +1 -0
- package/src/features/AppContext.tsx +17 -0
- package/src/features/AppView/AppView.module.css +18 -0
- package/src/features/AppView/AppView.tsx +302 -0
- package/src/features/AppView/InactiveBoardHidder.tsx +14 -0
- package/src/features/AppView/LocalAppView.tsx +177 -0
- package/src/features/AppView/NoBoardIsOpen.module.css +29 -0
- package/src/features/AppView/NoBoardIsOpen.tsx +69 -0
- package/src/features/AppView/QuickAddPanel/QuickAddPanel.module.css +12 -0
- package/src/features/AppView/QuickAddPanel/QuickAddPanel.tsx +171 -0
- package/src/features/AppView/QuickAddPanel/index.ts +1 -0
- package/src/features/AppView/index.ts +2 -0
- package/src/features/AppView/listeners.ts +0 -0
- package/src/features/AudioPlayer/AudioPlayer.module.css +213 -0
- package/src/features/AudioPlayer/AudioPlayer.tsx +517 -0
- package/src/features/AudioPlayer/index.ts +1 -0
- package/src/features/ChangePasswordModal/ChangePassword.module.css +129 -0
- package/src/features/ChangePasswordModal/ChangePasswordModal.tsx +247 -0
- package/src/features/ChangePasswordModal/index.ts +4 -0
- package/src/features/ContextMenu/ContextMenu.module.css +38 -0
- package/src/features/ContextMenu/ContextMenu.tsx +507 -0
- package/src/features/ContextMenu/ContextMenuContext.tsx +77 -0
- package/src/features/ContextMenu/index.ts +5 -0
- package/src/features/ContextPanel/Buttons/AIGeneration.tsx +72 -0
- package/src/features/ContextPanel/Buttons/AIModel/AIModel.module.css +5 -0
- package/src/features/ContextPanel/Buttons/AIModel/AIModel.tsx +97 -0
- package/src/features/ContextPanel/Buttons/AIModel/index.ts +1 -0
- package/src/features/ContextPanel/Buttons/AIModel.tsx +95 -0
- package/src/features/ContextPanel/Buttons/AddList/AddList.tsx +83 -0
- package/src/features/ContextPanel/Buttons/AddList/index.ts +1 -0
- package/src/features/ContextPanel/Buttons/ButtonWithMenu/ButtonWithMenu.tsx +107 -0
- package/src/features/ContextPanel/Buttons/ButtonWithMenu/UiButtonWithMenu.module.css +49 -0
- package/src/features/ContextPanel/Buttons/ButtonWithMenu/index.ts +1 -0
- package/src/features/ContextPanel/Buttons/CardGame/Card/CreateDeck.tsx +65 -0
- package/src/features/ContextPanel/Buttons/CardGame/Card/FlipCard.tsx +41 -0
- package/src/features/ContextPanel/Buttons/CardGame/Deck/GetCard.tsx +61 -0
- package/src/features/ContextPanel/Buttons/CardGame/Deck/ShuffleDeck.tsx +39 -0
- package/src/features/ContextPanel/Buttons/CardGame/Dice/ChangeRange/ChangeRange.module.css +53 -0
- package/src/features/ContextPanel/Buttons/CardGame/Dice/ChangeRange/ChangeRange.tsx +133 -0
- package/src/features/ContextPanel/Buttons/CardGame/Dice/ThrowDice.tsx +38 -0
- package/src/features/ContextPanel/Buttons/ConnectorAddText.tsx +55 -0
- package/src/features/ContextPanel/Buttons/ConnectorFontStyle.tsx +28 -0
- package/src/features/ContextPanel/Buttons/ConnectorLineColor.tsx +96 -0
- package/src/features/ContextPanel/Buttons/ConnectorTextColor.tsx +22 -0
- package/src/features/ContextPanel/Buttons/ConnectorTextHighlight.tsx +28 -0
- package/src/features/ContextPanel/Buttons/ConnectorType/ConnectorType.module.css +5 -0
- package/src/features/ContextPanel/Buttons/ConnectorType/ConnectorType.tsx +108 -0
- package/src/features/ContextPanel/Buttons/ConnectorType/index.ts +1 -0
- package/src/features/ContextPanel/Buttons/ContextPanelButton.module.css +19 -0
- package/src/features/ContextPanel/Buttons/Delete.tsx +32 -0
- package/src/features/ContextPanel/Buttons/DrawFillStyle.tsx +107 -0
- package/src/features/ContextPanel/Buttons/DrawStrokeWidth/DrawStrokeWidth.module.css +4 -0
- package/src/features/ContextPanel/Buttons/DrawStrokeWidth/DrawStrokeWidth.tsx +32 -0
- package/src/features/ContextPanel/Buttons/DrawStrokeWidth/index.ts +1 -0
- package/src/features/ContextPanel/Buttons/Duplicate.tsx +25 -0
- package/src/features/ContextPanel/Buttons/Edit.tsx +23 -0
- package/src/features/ContextPanel/Buttons/EndPointer/EndPointer.module.css +14 -0
- package/src/features/ContextPanel/Buttons/EndPointer/EndPointer.tsx +80 -0
- package/src/features/ContextPanel/Buttons/EndPointer/index.ts +1 -0
- package/src/features/ContextPanel/Buttons/FillStyle.tsx +91 -0
- package/src/features/ContextPanel/Buttons/FontSize/ConnectorFontSize.tsx +34 -0
- package/src/features/ContextPanel/Buttons/FontSize/FontSize.module.css +53 -0
- package/src/features/ContextPanel/Buttons/FontSize/FontSize.tsx +217 -0
- package/src/features/ContextPanel/Buttons/FontSize/index.ts +2 -0
- package/src/features/ContextPanel/Buttons/FontStyle.tsx +68 -0
- package/src/features/ContextPanel/Buttons/FrameFill.tsx +91 -0
- package/src/features/ContextPanel/Buttons/FrameNavNext.tsx +33 -0
- package/src/features/ContextPanel/Buttons/FrameNavPrev.tsx +37 -0
- package/src/features/ContextPanel/Buttons/FrameRatio/FrameRatio.module.css +14 -0
- package/src/features/ContextPanel/Buttons/FrameRatio/FrameRatio.tsx +113 -0
- package/src/features/ContextPanel/Buttons/FrameRatio/index.ts +1 -0
- package/src/features/ContextPanel/Buttons/HyperLinkBtn.tsx +53 -0
- package/src/features/ContextPanel/Buttons/ItemType/ItemType.module.css +15 -0
- package/src/features/ContextPanel/Buttons/ItemType/ItemType.tsx +115 -0
- package/src/features/ContextPanel/Buttons/ItemType/index.ts +1 -0
- package/src/features/ContextPanel/Buttons/Lock.tsx +98 -0
- package/src/features/ContextPanel/Buttons/RestOptionsMenu/Items/BringToFront.tsx +28 -0
- package/src/features/ContextPanel/Buttons/RestOptionsMenu/Items/CopyFrameLink.tsx +50 -0
- package/src/features/ContextPanel/Buttons/RestOptionsMenu/Items/CopyItemLink.tsx +48 -0
- package/src/features/ContextPanel/Buttons/RestOptionsMenu/Items/ExportFrame.tsx +32 -0
- package/src/features/ContextPanel/Buttons/RestOptionsMenu/Items/SaveImg.tsx +32 -0
- package/src/features/ContextPanel/Buttons/RestOptionsMenu/Items/SaveVideoOrAudio.tsx +45 -0
- package/src/features/ContextPanel/Buttons/RestOptionsMenu/Items/SendToBack.tsx +28 -0
- package/src/features/ContextPanel/Buttons/RestOptionsMenu/Items/SetLinkTo.tsx +35 -0
- package/src/features/ContextPanel/Buttons/RestOptionsMenu/Items/getLinkToItem.tsx +3 -0
- package/src/features/ContextPanel/Buttons/RestOptionsMenu/Items/index.ts +5 -0
- package/src/features/ContextPanel/Buttons/RestOptionsMenu/RestOptionsMenu.module.css +51 -0
- package/src/features/ContextPanel/Buttons/RestOptionsMenu/RestOptionsMenu.tsx +96 -0
- package/src/features/ContextPanel/Buttons/RestOptionsMenu/RestOptionsMenuItem.tsx +29 -0
- package/src/features/ContextPanel/Buttons/RestOptionsMenu/index.ts +1 -0
- package/src/features/ContextPanel/Buttons/StartPointer/StartPointer.module.css +18 -0
- package/src/features/ContextPanel/Buttons/StartPointer/StartPointer.tsx +87 -0
- package/src/features/ContextPanel/Buttons/StartPointer/index.ts +1 -0
- package/src/features/ContextPanel/Buttons/StickerFillStyle.tsx +74 -0
- package/src/features/ContextPanel/Buttons/StrokeStyle/StrokeStyle.module.css +19 -0
- package/src/features/ContextPanel/Buttons/StrokeStyle/StrokeStyle.tsx +144 -0
- package/src/features/ContextPanel/Buttons/StrokeStyle/index.ts +1 -0
- package/src/features/ContextPanel/Buttons/SwitchPointers.tsx +28 -0
- package/src/features/ContextPanel/Buttons/TextAlignment/TextAlignment.module.css +6 -0
- package/src/features/ContextPanel/Buttons/TextAlignment/TextAlignment.tsx +98 -0
- package/src/features/ContextPanel/Buttons/TextAlignment/index.ts +1 -0
- package/src/features/ContextPanel/Buttons/TextAlignmentSticker.tsx +87 -0
- package/src/features/ContextPanel/Buttons/TextColor.tsx +86 -0
- package/src/features/ContextPanel/Buttons/TextHighlight.tsx +85 -0
- package/src/features/ContextPanel/Buttons/ToggleFrameRatio.tsx +38 -0
- package/src/features/ContextPanel/Buttons/ToggleIsShining.tsx +36 -0
- package/src/features/ContextPanel/ContextPanel.module.css +9 -0
- package/src/features/ContextPanel/ContextPanel.tsx +531 -0
- package/src/features/ContextPanel/PanelContext.ts +17 -0
- package/src/features/ContextPanel/index.ts +1 -0
- package/src/features/ContextWrapper.tsx +47 -0
- package/src/features/Counter/Counter.module.css +20 -0
- package/src/features/Counter/Counter.tsx +49 -0
- package/src/features/CryptoWrapper/CryptoWrapper.tsx +79 -0
- package/src/features/CryptoWrapper/index.ts +1 -0
- package/src/features/Cursors/comment.svg +22 -0
- package/src/features/Cursors/customCursors.ts +31 -0
- package/src/features/Cursors/eraser.svg +3 -0
- package/src/features/Cursors/index.ts +1 -0
- package/src/features/Cursors/pencil.svg +3 -0
- package/src/features/Cursors/sticker/sticker-black.svg +27 -0
- package/src/features/Cursors/sticker/sticker-blue.svg +27 -0
- package/src/features/Cursors/sticker/sticker-gray.svg +27 -0
- package/src/features/Cursors/sticker/sticker-green.svg +27 -0
- package/src/features/Cursors/sticker/sticker-light-blue.svg +28 -0
- package/src/features/Cursors/sticker/sticker-light-gray.svg +27 -0
- package/src/features/Cursors/sticker/sticker-light-green.svg +27 -0
- package/src/features/Cursors/sticker/sticker-orange.svg +27 -0
- package/src/features/Cursors/sticker/sticker-pink.svg +27 -0
- package/src/features/Cursors/sticker/sticker-purple.svg +27 -0
- package/src/features/Cursors/sticker/sticker-sky-blue.svg +27 -0
- package/src/features/Cursors/sticker/sticker-yellow.svg +27 -0
- package/src/features/ErrorBoundary/ErrorBoundary.module.css +64 -0
- package/src/features/ErrorBoundary/ErrorBoundary.tsx +112 -0
- package/src/features/ErrorBoundary/index.ts +1 -0
- package/src/features/ExportPanel/ExportPanel.module.css +55 -0
- package/src/features/ExportPanel/ExportPanel.tsx +73 -0
- package/src/features/ExportPanel/ExportVisible.tsx +18 -0
- package/src/features/ExportPanel/index.ts +1 -0
- package/src/features/GameItems/CreateCardsModal.tsx +178 -0
- package/src/features/GameItems/CreateDiceModal.tsx +213 -0
- package/src/features/GameItems/Modal.module.css +148 -0
- package/src/features/GameItems/index.ts +1 -0
- package/src/features/GenerateChart/AIChat.module.css +162 -0
- package/src/features/GenerateChart/AIChat.tsx +198 -0
- package/src/features/GenerateChart/AIChatPanel.module.css +34 -0
- package/src/features/GenerateChart/AIChatPanel.tsx +72 -0
- package/src/features/GenerateChart/lib/engine/index.ts +616 -0
- package/src/features/GenerateChart/lib/transformOutput.ts +338 -0
- package/src/features/GoogleAuthBtn/GoogleAuthBtn.module.css +19 -0
- package/src/features/GoogleAuthBtn/GoogleAuthBtn.tsx +19 -0
- package/src/features/GoogleAuthBtn/icons.tsx +301 -0
- package/src/features/GoogleAuthBtn/index.ts +1 -0
- package/src/features/ImportMiro/AuthClipboardModal/AuthClipboardModal.module.css +26 -0
- package/src/features/ImportMiro/AuthClipboardModal/AuthClipboardModal.tsx +38 -0
- package/src/features/ImportMiro/ImgAuthClipboardModal/ImgAuthClipboardModal.module.css +36 -0
- package/src/features/ImportMiro/ImgAuthClipboardModal/ImgAuthClipboardModal.tsx +74 -0
- package/src/features/ImportMiro/ImportMiroBoards/ImportBoardItem/MiroClipboardTransformer.ts +765 -0
- package/src/features/ImportMiro/ImportMiroBoards/ImportBoardItem/index.ts +1 -0
- package/src/features/ImportMiro/ImportMiroBoards/ImportBoardItem/useCopyBoardItems.tsx +1156 -0
- package/src/features/ImportMiro/ImportMiroBoards/ImportMiro.module.css +157 -0
- package/src/features/ImportMiro/ImportMiroBoards/ImportMiro.tsx +95 -0
- package/src/features/ImportMiro/ImportMiroBoards/MiroModels.ts +250 -0
- package/src/features/ImportMiro/ImportMiroBoards/Notifications/ErrorNotification.tsx +48 -0
- package/src/features/ImportMiro/ImportMiroBoards/Notifications/LoadingNotification.tsx +53 -0
- package/src/features/ImportMiro/ImportMiroBoards/Notifications/SuccessNotification.tsx +54 -0
- package/src/features/ImportMiro/ImportMiroBoards/Notifications/WarnClipboardNotification.tsx +57 -0
- package/src/features/ImportMiro/ImportMiroBoards/Notifications/WarnNotification.tsx +68 -0
- package/src/features/ImportMiro/ImportMiroBoards/Notifications/index.ts +5 -0
- package/src/features/ImportMiro/ImportMiroStartModal/ImportMiroStartModal.module.css +35 -0
- package/src/features/ImportMiro/ImportMiroStartModal/ImportMiroStartModal.tsx +47 -0
- package/src/features/ImportMiro/index.ts +5 -0
- package/src/features/ItemTooltip/ItemTooltip.tsx +77 -0
- package/src/features/ItemTooltip/index.ts +1 -0
- package/src/features/ItemsProvider/ItemsProvider.tsx +45 -0
- package/src/features/ItemsProvider/index.ts +1 -0
- package/src/features/LandingMenu/LandingMenu.module.css +54 -0
- package/src/features/LandingMenu/LandingMenu.tsx +88 -0
- package/src/features/LandingMenu/MobileLandingMenu.module.css +78 -0
- package/src/features/LandingMenu/MobileLandingMenu.tsx +133 -0
- package/src/features/LandingMenu/const.ts +2 -0
- package/src/features/LandingMenu/index.ts +2 -0
- package/src/features/LinksProvider/LinkToButton/LinkToButton.module.css +34 -0
- package/src/features/LinksProvider/LinkToButton/LinkToButton.tsx +175 -0
- package/src/features/LinksProvider/LinksProvider.tsx +84 -0
- package/src/features/LinksProvider/index.ts +1 -0
- package/src/features/LocalFileSavingProgress/LocalFileSaveProgress.module.css +6 -0
- package/src/features/LocalFileSavingProgress/LocalFileSaveProgress.tsx +30 -0
- package/src/features/LocalFileSavingProgress/index.ts +1 -0
- package/src/features/LoginWith/LoginWith.module.css +18 -0
- package/src/features/LoginWith/LoginWith.tsx +15 -0
- package/src/features/MediaUnavailableModal/MediaUnavailableModal.module.css +52 -0
- package/src/features/MediaUnavailableModal/MediaUnavailableModal.tsx +64 -0
- package/src/features/MediaUnavailableModal/index.ts +4 -0
- package/src/features/Modal/ConfirmModal.module.css +71 -0
- package/src/features/Modal/ConfirmModal.tsx +199 -0
- package/src/features/Modal/CookiesModal.module.css +32 -0
- package/src/features/Modal/CookiesModal.tsx +75 -0
- package/src/features/Modal/InfoModal.module.css +49 -0
- package/src/features/Modal/InfoModal.tsx +90 -0
- package/src/features/Modal/ModalsWrapper.tsx +13 -0
- package/src/features/Modal/SetLinkToModal.module.css +49 -0
- package/src/features/Modal/SetLinkToModal.tsx +112 -0
- package/src/features/Notifications/Notifications.module.css +14 -0
- package/src/features/Notifications/SigninErrorNotification.tsx +34 -0
- package/src/features/Notifications/SignupErrorNotification.tsx +33 -0
- package/src/features/Notifications/index.ts +8 -0
- package/src/features/Pickers/ColorPicker/ColorItem.module.css +44 -0
- package/src/features/Pickers/ColorPicker/ColorItem.tsx +33 -0
- package/src/features/Pickers/ColorPicker/ColorPicker.module.css +12 -0
- package/src/features/Pickers/ColorPicker/ColorPicker.tsx +43 -0
- package/src/features/Pickers/ColorPicker/SquareColorItem.module.css +41 -0
- package/src/features/Pickers/ColorPicker/SquareColorItem.tsx +27 -0
- package/src/features/Pickers/ColorPicker/index.ts +1 -0
- package/src/features/Pickers/ConnectorLineStylePicker.tsx +52 -0
- package/src/features/Pickers/ConnectorPointerPicker/ConnectorPointerPicker.module.css +4 -0
- package/src/features/Pickers/ConnectorPointerPicker/ConnectorPointerPicker.tsx +39 -0
- package/src/features/Pickers/ConnectorPointerPicker/index.ts +1 -0
- package/src/features/Pickers/DrawingToolPicker.tsx +31 -0
- package/src/features/Pickers/FontSizePicker/FontSizePicker.module.css +8 -0
- package/src/features/Pickers/FontSizePicker/FontSizePicker.tsx +61 -0
- package/src/features/Pickers/FontSizePicker/index.ts +1 -0
- package/src/features/Pickers/FontStylePicker.tsx +88 -0
- package/src/features/Pickers/FramePicker/FramePicker.module.css +11 -0
- package/src/features/Pickers/FramePicker/FramePicker.tsx +40 -0
- package/src/features/Pickers/FramePicker/index.ts +1 -0
- package/src/features/Pickers/HorizontalAlignmentPicker.tsx +49 -0
- package/src/features/Pickers/ShapeTypePicker.tsx +80 -0
- package/src/features/Pickers/SliderPicker/SliderPicker.module.css +13 -0
- package/src/features/Pickers/SliderPicker/SliderPicker.tsx +43 -0
- package/src/features/Pickers/SliderPicker/index.ts +1 -0
- package/src/features/Pickers/StrokeStylePicker/StrokeStylePicker.module.css +4 -0
- package/src/features/Pickers/StrokeStylePicker/StrokeStylePicker.tsx +59 -0
- package/src/features/Pickers/StrokeStylePicker/index.ts +1 -0
- package/src/features/Pickers/VerticalAlignmentPicker.tsx +48 -0
- package/src/features/Presence/BringToMe/BringToMe.module.css +134 -0
- package/src/features/Presence/BringToMe/BringToMe.tsx +363 -0
- package/src/features/Presence/PresenceUsers/Dropdown.tsx +70 -0
- package/src/features/Presence/PresenceUsers/EyeIcon.tsx +16 -0
- package/src/features/Presence/PresenceUsers/PresenceUserAvatar.tsx +93 -0
- package/src/features/Presence/PresenceUsers/PresenceUsers.module.css +366 -0
- package/src/features/Presence/PresenceUsers/PresenceUsers.tsx +239 -0
- package/src/features/Presence/PresenceUsers/UserAvatar.tsx +92 -0
- package/src/features/Presence/PresenceUsers/mock.ts +34 -0
- package/src/features/Presence/UserTracking/UserTracking.module.css +72 -0
- package/src/features/Presence/UserTracking/UserTracking.tsx +67 -0
- package/src/features/ProfileSettingsModal/ProfileSettingsModal.module.css +100 -0
- package/src/features/ProfileSettingsModal/ProfileSettingsModal.tsx +333 -0
- package/src/features/ProfileSettingsModal/index.ts +4 -0
- package/src/features/QuickAddButtons/QuickAddButtonsClear.tsx +12 -0
- package/src/features/README.md +36 -0
- package/src/features/Rename/RenameContext.tsx +54 -0
- package/src/features/Rename/RenameInput.module.css +15 -0
- package/src/features/Rename/RenameInput.tsx +78 -0
- package/src/features/Rename/index.ts +2 -0
- package/src/features/ShapesPanel/ShapesCategory/ShapesCategory.module.css +29 -0
- package/src/features/ShapesPanel/ShapesCategory/ShapesCategory.tsx +70 -0
- package/src/features/ShapesPanel/ShapesPanel.module.css +75 -0
- package/src/features/ShapesPanel/ShapesPanel.tsx +69 -0
- package/src/features/ShapesPanel/ShapesPanelContext.tsx +109 -0
- package/src/features/ShapesPanel/index.ts +5 -0
- package/src/features/ShareModal/SaveShareModal.module.css +31 -0
- package/src/features/ShareModal/SaveShareModal.tsx +63 -0
- package/src/features/ShareModal/SearchInput.module.css +188 -0
- package/src/features/ShareModal/SearchInput.tsx +441 -0
- package/src/features/ShareModal/ShareModal.module.css +297 -0
- package/src/features/ShareModal/ShareModal.tsx +627 -0
- package/src/features/ShareModal/SharePanel.module.css +74 -0
- package/src/features/ShareModal/SharePanel.tsx +258 -0
- package/src/features/ShareModal/index.ts +1 -0
- package/src/features/ShareSnapshotModal/ShareSnapshotModal.module.css +286 -0
- package/src/features/ShareSnapshotModal/ShareSnapshotModal.tsx +41 -0
- package/src/features/ShareSnapshotModal/SnapshotNameInput.module.css +92 -0
- package/src/features/ShareSnapshotModal/SnapshotNameInput.tsx +225 -0
- package/src/features/ShareSnapshotModal/index.ts +1 -0
- package/src/features/SidePanel/LocalSidePanelContext.tsx +66 -0
- package/src/features/SidePanel/ResizableEdge.module.css +9 -0
- package/src/features/SidePanel/ResizableEdge.tsx +77 -0
- package/src/features/SidePanel/SidePanel.module.css +140 -0
- package/src/features/SidePanel/SidePanel.tsx +179 -0
- package/src/features/SidePanel/SidePanelContext.tsx +108 -0
- package/src/features/SidePanel/index.ts +3 -0
- package/src/features/SidePanelsContainer/SidePanelsContainer.module.css +15 -0
- package/src/features/SidePanelsContainer/SidePanelsContainer.tsx +61 -0
- package/src/features/SidePanelsContainer/index.ts +1 -0
- package/src/features/Templates/CreateTemplateModal/CreateTemplateModal.module.css +34 -0
- package/src/features/Templates/CreateTemplateModal/CreateTemplateModal.tsx +463 -0
- package/src/features/Templates/SelectTemplateModal/CategoriesMenu/CategoriesMenu.module.css +48 -0
- package/src/features/Templates/SelectTemplateModal/CategoriesMenu/CategoriesMenu.tsx +62 -0
- package/src/features/Templates/SelectTemplateModal/LanguagesDropdown/LanguagesDropdown.module.css +61 -0
- package/src/features/Templates/SelectTemplateModal/LanguagesDropdown/LanguagesDropdown.tsx +72 -0
- package/src/features/Templates/SelectTemplateModal/SelectTemplateModal.module.css +152 -0
- package/src/features/Templates/SelectTemplateModal/SelectTemplateModal.tsx +206 -0
- package/src/features/Templates/SelectTemplateModal/TemplateItemPreview/TemplateItemPreview.module.css +151 -0
- package/src/features/Templates/SelectTemplateModal/TemplateItemPreview/TemplateItemPreview.tsx +77 -0
- package/src/features/Templates/SelectTemplateModal/TemplateItemsGrid/TemplateItem/TemplateItem.tsx +119 -0
- package/src/features/Templates/SelectTemplateModal/TemplateItemsGrid/TemplateItem/templateItem.module.css +88 -0
- package/src/features/Templates/SelectTemplateModal/TemplateItemsGrid/TemplateItemsGrid.module.css +51 -0
- package/src/features/Templates/SelectTemplateModal/TemplateItemsGrid/TemplateItemsGrid.tsx +39 -0
- package/src/features/Templates/TolgeeProvider.tsx +29 -0
- package/src/features/Templates/config.ts +6 -0
- package/src/features/Templates/index.ts +2 -0
- package/src/features/Templates/lib.ts +59 -0
- package/src/features/TextEditor/Element.tsx +204 -0
- package/src/features/TextEditor/Leaf.tsx +72 -0
- package/src/features/TextEditor/README.md +3 -0
- package/src/features/TextEditor/TextEditor.module.css +115 -0
- package/src/features/TextEditor/TextEditor.tsx +610 -0
- package/src/features/TextEditor/index.ts +1 -0
- package/src/features/TextEditor/verticalAlignmentToFlex.tsx +14 -0
- package/src/features/TitlePanel/TitlePanel.module.css +123 -0
- package/src/features/TitlePanel/TitlePanel.tsx +341 -0
- package/src/features/TitlePanel/index.ts +1 -0
- package/src/features/ToastProvider.tsx +33 -0
- package/src/features/ToolsPanel/Buttons/AddConnector.tsx +73 -0
- package/src/features/ToolsPanel/Buttons/AddCounter.tsx +29 -0
- package/src/features/ToolsPanel/Buttons/AddDrawing/AddDrawing.module.css +13 -0
- package/src/features/ToolsPanel/Buttons/AddDrawing/AddDrawing.tsx +115 -0
- package/src/features/ToolsPanel/Buttons/AddDrawing/AddDrawingContext.tsx +15 -0
- package/src/features/ToolsPanel/Buttons/AddDrawing/AddHighlighter/AddHighlighter.module.css +26 -0
- package/src/features/ToolsPanel/Buttons/AddDrawing/AddHighlighter/AddHighlighter.tsx +138 -0
- package/src/features/ToolsPanel/Buttons/AddDrawing/AddPen/AddPen.module.css +26 -0
- package/src/features/ToolsPanel/Buttons/AddDrawing/AddPen/AddPen.tsx +126 -0
- package/src/features/ToolsPanel/Buttons/AddDrawing/Eraser/Eraser.tsx +47 -0
- package/src/features/ToolsPanel/Buttons/AddDrawing/index.ts +1 -0
- package/src/features/ToolsPanel/Buttons/AddFrame.tsx +57 -0
- package/src/features/ToolsPanel/Buttons/AddGameItem/AddCard.tsx +31 -0
- package/src/features/ToolsPanel/Buttons/AddGameItem/AddDice.tsx +32 -0
- package/src/features/ToolsPanel/Buttons/AddGameItem/AddGameItem.module.css +3 -0
- package/src/features/ToolsPanel/Buttons/AddGameItem/AddGameItem.tsx +39 -0
- package/src/features/ToolsPanel/Buttons/AddMedia/AddMedia.module.css +3 -0
- package/src/features/ToolsPanel/Buttons/AddMedia/AddMedia.tsx +72 -0
- package/src/features/ToolsPanel/Buttons/AddMedia/AddMediaButton.tsx +146 -0
- package/src/features/ToolsPanel/Buttons/AddShape/AddShape.module.css +18 -0
- package/src/features/ToolsPanel/Buttons/AddShape/AddShape.tsx +97 -0
- package/src/features/ToolsPanel/Buttons/AddShape/index.ts +1 -0
- package/src/features/ToolsPanel/Buttons/AddSticker.tsx +73 -0
- package/src/features/ToolsPanel/Buttons/AddTemplate.tsx +28 -0
- package/src/features/ToolsPanel/Buttons/AddText.tsx +31 -0
- package/src/features/ToolsPanel/Buttons/ButtonWithMenu/ButtonWithMenu.module.css +9 -0
- package/src/features/ToolsPanel/Buttons/ButtonWithMenu/ButtonWithMenu.tsx +24 -0
- package/src/features/ToolsPanel/Buttons/ButtonWithMenu/index.ts +1 -0
- package/src/features/ToolsPanel/Buttons/EventList/EventList.module.css +5 -0
- package/src/features/ToolsPanel/Buttons/EventList/EventList.tsx +144 -0
- package/src/features/ToolsPanel/Buttons/EventList/History.tsx +140 -0
- package/src/features/ToolsPanel/Buttons/EventList/HistoryEvent.tsx +28 -0
- package/src/features/ToolsPanel/Buttons/EventList/PrettifiedEvent.tsx +212 -0
- package/src/features/ToolsPanel/Buttons/EventList/SyncJournal.tsx +89 -0
- package/src/features/ToolsPanel/Buttons/EventList/index.ts +1 -0
- package/src/features/ToolsPanel/Buttons/Grab.tsx +29 -0
- package/src/features/ToolsPanel/Buttons/Redo.tsx +40 -0
- package/src/features/ToolsPanel/Buttons/Select.tsx +37 -0
- package/src/features/ToolsPanel/Buttons/Star.tsx +31 -0
- package/src/features/ToolsPanel/Buttons/Undo.tsx +39 -0
- package/src/features/ToolsPanel/PanelContext.ts +13 -0
- package/src/features/ToolsPanel/ToolsPanel.module.css +33 -0
- package/src/features/ToolsPanel/ToolsPanel.tsx +84 -0
- package/src/features/ToolsPanel/ViewToolsPanel.tsx +30 -0
- package/src/features/ToolsPanel/index.ts +1 -0
- package/src/features/UserPanel/ActionButtons/ActionButtons.module.css +9 -0
- package/src/features/UserPanel/ActionButtons/ActionButtons.tsx +22 -0
- package/src/features/UserPanel/Avatar/Avatar.module.css +21 -0
- package/src/features/UserPanel/Avatar/Avatar.tsx +44 -0
- package/src/features/UserPanel/Buttons/AddComment/AddComment.module.css +14 -0
- package/src/features/UserPanel/Buttons/AddComment/AddComment.tsx +61 -0
- package/src/features/UserPanel/Buttons/AddComment/index.ts +1 -0
- package/src/features/UserPanel/Buttons/ButtonWithMenu/ButtonWithMenu.module.css +8 -0
- package/src/features/UserPanel/Buttons/ButtonWithMenu/ButtonWithMenu.tsx +24 -0
- package/src/features/UserPanel/Buttons/ButtonWithMenu/index.ts +1 -0
- package/src/features/UserPanel/Buttons/ShareBtn/ShareBtn.tsx +49 -0
- package/src/features/UserPanel/Buttons/TogglePresenceRender/TogglePresenceRender.module.css +48 -0
- package/src/features/UserPanel/Buttons/TogglePresenceRender/TogglePresenceRender.tsx +38 -0
- package/src/features/UserPanel/UserAvatar/UserAvatar.tsx +66 -0
- package/src/features/UserPanel/UserDropdown/UserDropdown.tsx +75 -0
- package/src/features/UserPanel/UserPanel.module.css +516 -0
- package/src/features/UserPanel/UserPanel.tsx +153 -0
- package/src/features/UserPanel/UserPic/UserPic.tsx +171 -0
- package/src/features/UserPanel/icons/ChangePassword.tsx +22 -0
- package/src/features/UserPanel/icons/Click.tsx +20 -0
- package/src/features/UserPanel/icons/Logout.tsx +22 -0
- package/src/features/UserPanel/icons/Ring.tsx +18 -0
- package/src/features/UserPanel/icons/Thumb.tsx +18 -0
- package/src/features/UserPanel/icons/Upgrade.tsx +20 -0
- package/src/features/UserPanel/icons/UserShare.tsx +18 -0
- package/src/features/UserPlan/HistoryModal.tsx +30 -0
- package/src/features/UserPlan/HistoryTable.tsx +114 -0
- package/src/features/UserPlan/LimitsModal.tsx +102 -0
- package/src/features/UserPlan/LimitsTable.module.css +131 -0
- package/src/features/UserPlan/LimitsTable.tsx +171 -0
- package/src/features/UserPlan/PlanCard.module.css +184 -0
- package/src/features/UserPlan/PlanCard.tsx +245 -0
- package/src/features/UserPlan/PlanCards.module.css +26 -0
- package/src/features/UserPlan/PlanCards.tsx +476 -0
- package/src/features/UserPlan/SelectPaymentModal.module.css +206 -0
- package/src/features/UserPlan/SelectPaymentModal.tsx +810 -0
- package/src/features/UserPlan/UserPlanModal.module.css +145 -0
- package/src/features/UserPlan/UserPlanModal.tsx +124 -0
- package/src/features/UserPlan/UserPlanUsage.module.css +101 -0
- package/src/features/UserPlan/UserPlanUsage.tsx +186 -0
- package/src/features/UserPlan/index.ts +1 -0
- package/src/features/VideoPlayer/VideoCanvasControls.tsx +59 -0
- package/src/features/VideoPlayer/VideoPlayer.module.css +3 -0
- package/src/features/VideoPlayer/VideoPlayer.tsx +158 -0
- package/src/features/VideoPlayer/index.ts +2 -0
- package/src/features/ViewModeGuard.tsx +62 -0
- package/src/features/WalletLoginButton/WalletLoginButton.module.css +7 -0
- package/src/features/WalletLoginButton/WalletLoginButton.tsx +77 -0
- package/src/features/WalletLoginButton/index.ts +1 -0
- package/src/features/Widgets/Navbar/Navbar.css +148 -0
- package/src/features/Widgets/Navbar/Navbar.tsx +75 -0
- package/src/features/Widgets/Navbar/lead-icon.tsx +25 -0
- package/src/features/Widgets/form-notifications/password-changed.module.css +39 -0
- package/src/features/Widgets/form-notifications/password-changed.tsx +28 -0
- package/src/features/ZoomPanel/ZoomPanel.module.css +32 -0
- package/src/features/ZoomPanel/ZoomPanel.tsx +105 -0
- package/src/features/ZoomPanel/index.ts +1 -0
- package/src/features/hotkeys.json +315 -0
- package/src/features/hyperLink/HyperLink.module.css +20 -0
- package/src/features/hyperLink/HyperLink.tsx +77 -0
- package/src/features/hyperLink/HyperLinkContext.tsx +57 -0
- package/src/features/hyperLink/HyperLinkInput/HyperLinkInput.module.css +47 -0
- package/src/features/hyperLink/HyperLinkInput/HyperLinkInput.tsx +196 -0
- package/src/features/hyperLink/index.ts +6 -0
- package/src/features/index.drawio +115 -0
- package/src/features/index.svg +1 -0
- package/src/features/modules.d.ts +22 -0
- package/src/index.css +65 -0
- package/src/index.html +74 -0
- package/src/index.ts +4 -0
- package/src/initI18N.ts +42 -0
- package/src/pages/AddEmailView/AddEmailPage.module.css +136 -0
- package/src/pages/AddEmailView/AddEmailPage.tsx +125 -0
- package/src/pages/AddEmailView/index.ts +1 -0
- package/src/pages/BindEmailPage/BindEmailPage.module.css +73 -0
- package/src/pages/BindEmailPage/BindEmailPage.tsx +263 -0
- package/src/pages/BindEmailPage/index.ts +1 -0
- package/src/pages/BoardPage.tsx +161 -0
- package/src/pages/ForgotPasswordPage/ForgotPasswordPage.module.css +82 -0
- package/src/pages/ForgotPasswordPage/ForgotPasswordPage.tsx +148 -0
- package/src/pages/ForgotPasswordPage/SuccessIcon.tsx +20 -0
- package/src/pages/ForgotPasswordPage/index.ts +1 -0
- package/src/pages/HTMLSnapshot/HTMLSnapshot.tsx +60 -0
- package/src/pages/HTMLSnapshot/index.ts +1 -0
- package/src/pages/RestorePasswordPage/RestorePasswordPage.module.css +46 -0
- package/src/pages/RestorePasswordPage/RestorePasswordPage.tsx +197 -0
- package/src/pages/RestorePasswordPage/index.ts +1 -0
- package/src/pages/SelectBoardPage/SelectBoardPage.module.css +247 -0
- package/src/pages/SelectBoardPage/SelectBoardPage.tsx +419 -0
- package/src/pages/SelectBoardPage/getEmbedUrl.ts +3 -0
- package/src/pages/SelectBoardPage/index.ts +1 -0
- package/src/pages/SigninPage/SigninPage.module.css +17 -0
- package/src/pages/SigninPage/SigninPage.tsx +201 -0
- package/src/pages/SigninPage/index.ts +1 -0
- package/src/pages/SignupPage/EmailIcon.tsx +24 -0
- package/src/pages/SignupPage/LockIcon.tsx +24 -0
- package/src/pages/SignupPage/PeopleIcon.tsx +23 -0
- package/src/pages/SignupPage/SignupPage.module.css +52 -0
- package/src/pages/SignupPage/SignupPage.tsx +282 -0
- package/src/pages/SignupPage/index.ts +1 -0
- package/src/pages/TestPage.tsx +52 -0
- package/src/pages/VerifyMailPage/VerifyMailPage.module.css +20 -0
- package/src/pages/VerifyMailPage/VerifyMailPage.tsx +287 -0
- package/src/pages/VerifyMailPage/index.ts +1 -0
- package/src/pages/WelcomePage/WelcomePage.tsx +76 -0
- package/src/pages/WelcomePage/index.ts +1 -0
- package/src/pages/WelcomePage/welcomeBoard.json +8727 -0
- package/src/pages/WelcomePage/welcomeBoardEn.json +9683 -0
- package/src/pages/WheelLogger/WheelLogger.module.css +32 -0
- package/src/pages/WheelLogger/WheelLogger.tsx +94 -0
- package/src/pages/layouts/AppLayout.tsx +86 -0
- package/src/pages/layouts/AuthLayout/AuthLayout.module.css +80 -0
- package/src/pages/layouts/AuthLayout/AuthLayout.tsx +74 -0
- package/src/pages/layouts/AuthLayout/Tail.tsx +23 -0
- package/src/pages/layouts/AuthLayout/index.ts +1 -0
- package/src/production.entrypoint.ts +39 -0
- package/src/public/customWebComponents.js +323 -0
- package/src/public/favicon.svg +20 -0
- package/src/public/favicons/apple-touch-icon.png +0 -0
- package/src/public/favicons/favicon-16x16.png +0 -0
- package/src/public/favicons/favicon-32x32.png +0 -0
- package/src/public/favicons/favicon.ico +0 -0
- package/src/public/favicons/favicon.svg +6 -0
- package/src/public/favicons/site.webmanifest +21 -0
- package/src/public/favicons/web-app-manifest-192x192.png +0 -0
- package/src/public/favicons/web-app-manifest-512x512.png +0 -0
- package/src/public/fonts/NotoColorEmoji-Regular.ttf +0 -0
- package/src/public/fonts/OpenSans-Bold.ttf +0 -0
- package/src/public/fonts/OpenSans-BoldItalic.ttf +0 -0
- package/src/public/fonts/OpenSans-Italic.ttf +0 -0
- package/src/public/fonts/OpenSans-Regular.ttf +0 -0
- package/src/public/fonts/RobotoMono-Regular.ttf +0 -0
- package/src/public/loadLinksImages.js +26 -0
- package/src/public/loader.svg +26 -0
- package/src/public/pdf/installiation_ru.pdf +0 -0
- package/src/public/pdf/lifecycle_ru.pdf +0 -0
- package/src/public/pdf/personal_data_policy_ru.pdf +0 -0
- package/src/public/pdf/privacy_policy_en.pdf +0 -0
- package/src/public/pdf/privacy_policy_ru.pdf +0 -0
- package/src/public/pdf/terms_conditions_en.pdf +0 -0
- package/src/public/pdf/terms_conditions_ru.pdf +0 -0
- package/src/public/pdf/user_agreement_ru.pdf +0 -0
- package/src/public/pdf/user_manual_ru.pdf +0 -0
- package/src/shared/Lang/en.json +1227 -0
- package/src/shared/Lang/i18n.d.ts +8 -0
- package/src/shared/Lang/index.ts +32 -0
- package/src/shared/Lang/ru.json +1226 -0
- package/src/shared/Logger.ts +72 -0
- package/src/shared/RawEvents.ts +7 -0
- package/src/shared/Subject.ts +29 -0
- package/src/shared/SubjectOperation.ts +31 -0
- package/src/shared/ViewSettings.tsx +9 -0
- package/src/shared/api/ai/api.ts +6 -0
- package/src/shared/api/ai/index.ts +3 -0
- package/src/shared/api/ai/requestMap.ts +22 -0
- package/src/shared/api/ai/types.ts +6 -0
- package/src/shared/api/auth/api.ts +78 -0
- package/src/shared/api/auth/index.ts +2 -0
- package/src/shared/api/auth/types.ts +51 -0
- package/src/shared/api/base/base.ts +244 -0
- package/src/shared/api/base/httpError.ts +10 -0
- package/src/shared/api/base/httpResponse.ts +7 -0
- package/src/shared/api/base/interceptors.ts +64 -0
- package/src/shared/api/base/types.ts +18 -0
- package/src/shared/api/billing/api.ts +79 -0
- package/src/shared/api/billing/index.ts +2 -0
- package/src/shared/api/billing/types.ts +155 -0
- package/src/shared/api/boards/api.ts +128 -0
- package/src/shared/api/boards/index.ts +2 -0
- package/src/shared/api/boards/types.ts +15 -0
- package/src/shared/api/index.ts +8 -0
- package/src/shared/api/media/index.ts +3 -0
- package/src/shared/api/media/uploadAudio.ts +53 -0
- package/src/shared/api/media/uploadImage.ts +180 -0
- package/src/shared/api/media/uploadVideo.ts +48 -0
- package/src/shared/api/types.ts +3 -0
- package/src/shared/api/users/api.ts +37 -0
- package/src/shared/api/users/index.ts +2 -0
- package/src/shared/api/users/types.ts +17 -0
- package/src/shared/apiV2/base.ts +9 -0
- package/src/shared/apiV2/boards/api.ts +143 -0
- package/src/shared/apiV2/boards/index.ts +2 -0
- package/src/shared/apiV2/boards/types.ts +66 -0
- package/src/shared/apiV2/folders/api.ts +81 -0
- package/src/shared/apiV2/folders/index.ts +2 -0
- package/src/shared/apiV2/folders/types.ts +35 -0
- package/src/shared/apiV2/index.ts +2 -0
- package/src/shared/assets/imgs/default-user-icon.svg +12 -0
- package/src/shared/assets/imgs/no-img-icon.svg +3 -0
- package/src/shared/lib/IframeModule.ts +223 -0
- package/src/shared/lib/convertColors.ts +51 -0
- package/src/shared/lib/debounce.ts +9 -0
- package/src/shared/lib/getCorrectEnding.ts +19 -0
- package/src/shared/lib/getEmailPrefix.ts +13 -0
- package/src/shared/lib/handleClickDetection.ts +25 -0
- package/src/shared/lib/isIframe.ts +3 -0
- package/src/shared/lib/isMicroboardIframe.ts +3 -0
- package/src/shared/lib/queryStringParser.ts +18 -0
- package/src/shared/lib/regex.ts +4 -0
- package/src/shared/lib/strictContext.ts +14 -0
- package/src/shared/lib/throttle.ts +59 -0
- package/src/shared/lib/useClickOutside.ts +50 -0
- package/src/shared/lib/useClientRect.ts +34 -0
- package/src/shared/lib/useDebounce.ts +22 -0
- package/src/shared/lib/useForceUpdate.ts +7 -0
- package/src/shared/lib/useHoverState.ts +14 -0
- package/src/shared/lib/useIsPhoneScreen.ts +21 -0
- package/src/shared/lib/useMediaQuery.tsx +19 -0
- package/src/shared/lib/withRouter.tsx +21 -0
- package/src/shared/sha256.ts +22 -0
- package/src/shared/ui-lib/Button/Button.module.css +179 -0
- package/src/shared/ui-lib/Button/Button.tsx +43 -0
- package/src/shared/ui-lib/Button/Loader.tsx +20 -0
- package/src/shared/ui-lib/Button/index.ts +1 -0
- package/src/shared/ui-lib/Checkbox/Checkbox.module.css +44 -0
- package/src/shared/ui-lib/Checkbox/Checkbox.tsx +42 -0
- package/src/shared/ui-lib/Checkbox/index.ts +1 -0
- package/src/shared/ui-lib/Dropdown/Chevron.tsx +24 -0
- package/src/shared/ui-lib/Dropdown/Dropdown.module.css +48 -0
- package/src/shared/ui-lib/Dropdown/Dropdown.tsx +42 -0
- package/src/shared/ui-lib/Icon/ConnectorIcon.tsx +33 -0
- package/src/shared/ui-lib/Icon/ConnectorPointerIcon.tsx +50 -0
- package/src/shared/ui-lib/Icon/EyeClosed.tsx +34 -0
- package/src/shared/ui-lib/Icon/EyeOpened.tsx +56 -0
- package/src/shared/ui-lib/Icon/FillColorIndicator/FillColorIndicator.module.css +11 -0
- package/src/shared/ui-lib/Icon/FillColorIndicator/FillColorIndicator.tsx +26 -0
- package/src/shared/ui-lib/Icon/FillColorIndicator/bg.png +0 -0
- package/src/shared/ui-lib/Icon/FillColorIndicator/index.ts +1 -0
- package/src/shared/ui-lib/Icon/FrameIcon.tsx +33 -0
- package/src/shared/ui-lib/Icon/Icon.module.css +11 -0
- package/src/shared/ui-lib/Icon/Icon.tsx +212 -0
- package/src/shared/ui-lib/Icon/Logo.tsx +23 -0
- package/src/shared/ui-lib/Icon/ShapeIcon.tsx +33 -0
- package/src/shared/ui-lib/Icon/StrokeColorIndicator.tsx +51 -0
- package/src/shared/ui-lib/Icon/TextColorIndicator/TextColorIndicator.module.css +14 -0
- package/src/shared/ui-lib/Icon/TextColorIndicator/TextColorIndicator.tsx +22 -0
- package/src/shared/ui-lib/Icon/TextColorIndicator/index.ts +1 -0
- package/src/shared/ui-lib/Icon/TextHighlightIndicator/TextHighlightIndicator.module.css +15 -0
- package/src/shared/ui-lib/Icon/TextHighlightIndicator/TextHighlightIndicator.tsx +22 -0
- package/src/shared/ui-lib/Icon/TextHighlightIndicator/index.ts +1 -0
- package/src/shared/ui-lib/Icon/index.ts +11 -0
- package/src/shared/ui-lib/Icon/sprite.svg +1707 -0
- package/src/shared/ui-lib/Input/EyeClose.tsx +22 -0
- package/src/shared/ui-lib/Input/EyeOpen.tsx +23 -0
- package/src/shared/ui-lib/Input/Input.css +130 -0
- package/src/shared/ui-lib/Input/Input.tsx +205 -0
- package/src/shared/ui-lib/Input/index.ts +1 -0
- package/src/shared/ui-lib/Link/Link.module.css +38 -0
- package/src/shared/ui-lib/Link/Link.tsx +19 -0
- package/src/shared/ui-lib/Link/index.ts +1 -0
- package/src/shared/ui-lib/Loader/Loader.module.css +9 -0
- package/src/shared/ui-lib/Loader/Loader.tsx +27 -0
- package/src/shared/ui-lib/Message/Message.module.css +26 -0
- package/src/shared/ui-lib/Message/Message.tsx +37 -0
- package/src/shared/ui-lib/Notification/Notification.module.css +58 -0
- package/src/shared/ui-lib/Notification/Notification.tsx +75 -0
- package/src/shared/ui-lib/Notification/index.ts +1 -0
- package/src/shared/ui-lib/OuterLink/OuterLink.module.css +38 -0
- package/src/shared/ui-lib/OuterLink/OuterLink.tsx +16 -0
- package/src/shared/ui-lib/OuterLink/index.ts +1 -0
- package/src/shared/ui-lib/Progress/Progress.module.css +16 -0
- package/src/shared/ui-lib/Progress/Progress.tsx +35 -0
- package/src/shared/ui-lib/Selector/Selector.module.css +91 -0
- package/src/shared/ui-lib/Selector/Selector.tsx +170 -0
- package/src/shared/ui-lib/Selector/index.ts +1 -0
- package/src/shared/ui-lib/Toast/Toast.module.css +142 -0
- package/src/shared/ui-lib/Toast/index.ts +2 -0
- package/src/shared/ui-lib/Toast/notify.tsx +119 -0
- package/src/shared/ui-lib/ToggleMark/ToggleMark.module.css +22 -0
- package/src/shared/ui-lib/ToggleMark/ToggleMark.tsx +15 -0
- package/src/shared/ui-lib/Tooltip/Tooltip.module.css +195 -0
- package/src/shared/ui-lib/Tooltip/Tooltip.tsx +99 -0
- package/src/shared/ui-lib/Tooltip/index.tsx +1 -0
- package/src/shared/ui-lib/Transitions/FadeTransition.module.css +22 -0
- package/src/shared/ui-lib/Transitions/FadeTransition.tsx +25 -0
- package/src/shared/ui-lib/Transitions/OpacityTransition.module.css +17 -0
- package/src/shared/ui-lib/Transitions/OpacityTransition.tsx +27 -0
- package/src/shared/ui-lib/Transitions/TopFade.module.css +25 -0
- package/src/shared/ui-lib/Transitions/TopFade.tsx +27 -0
- package/src/shared/ui-lib/Transitions/index.ts +2 -0
- package/src/shared/ui-lib/Transitions/types.ts +7 -0
- package/src/shared/ui-lib/UIMainLoader/UIMainLoader.module.css +8 -0
- package/src/shared/ui-lib/UIMainLoader/UIMainLoader.tsx +10 -0
- package/src/shared/ui-lib/UiAccordion/UiAccordion.module.css +4 -0
- package/src/shared/ui-lib/UiAccordion/UiAccordion.tsx +47 -0
- package/src/shared/ui-lib/UiAccordion/index.ts +1 -0
- package/src/shared/ui-lib/UiAdaptiveAccordion/UiAdaptiveAccordion.module.css +22 -0
- package/src/shared/ui-lib/UiAdaptiveAccordion/UiAdaptiveAccordion.tsx +90 -0
- package/src/shared/ui-lib/UiAdaptiveAccordion/index.ts +2 -0
- package/src/shared/ui-lib/UiButton/Loader.tsx +20 -0
- package/src/shared/ui-lib/UiButton/Tooltip.tsx +98 -0
- package/src/shared/ui-lib/UiButton/UiButton.module.css +306 -0
- package/src/shared/ui-lib/UiButton/UiButton.tsx +119 -0
- package/src/shared/ui-lib/UiButton/index.ts +1 -0
- package/src/shared/ui-lib/UiColorInput/UiColorInput.module.css +66 -0
- package/src/shared/ui-lib/UiColorInput/UiColorInput.tsx +66 -0
- package/src/shared/ui-lib/UiColorInput/index.ts +1 -0
- package/src/shared/ui-lib/UiColorInput/palette.png +0 -0
- package/src/shared/ui-lib/UiLink/UiLink.module.css +175 -0
- package/src/shared/ui-lib/UiLink/UiLink.tsx +72 -0
- package/src/shared/ui-lib/UiLink/index.ts +1 -0
- package/src/shared/ui-lib/UiLoader/UiLoader.module.css +19 -0
- package/src/shared/ui-lib/UiLoader/UiLoader.tsx +31 -0
- package/src/shared/ui-lib/UiLoader/index.ts +1 -0
- package/src/shared/ui-lib/UiModal/UiModal.module.css +188 -0
- package/src/shared/ui-lib/UiModal/UiModal.tsx +182 -0
- package/src/shared/ui-lib/UiModal/UiModalBackground.tsx +62 -0
- package/src/shared/ui-lib/UiModal/UiModalContext.tsx +90 -0
- package/src/shared/ui-lib/UiModal/index.ts +2 -0
- package/src/shared/ui-lib/UiPanel/UiPanel.module.css +52 -0
- package/src/shared/ui-lib/UiPanel/UiPanel.tsx +70 -0
- package/src/shared/ui-lib/UiPanel/index.ts +1 -0
- package/src/shared/ui-lib/UiSelector/UiSelector.module.css +143 -0
- package/src/shared/ui-lib/UiSelector/UiSelector.tsx +202 -0
- package/src/shared/ui-lib/UiSelector/index.ts +2 -0
- package/src/shared/ui-lib/UiSeparator/UiSeparator.module.css +18 -0
- package/src/shared/ui-lib/UiSeparator/UiSeparator.tsx +33 -0
- package/src/shared/ui-lib/UiSeparator/index.ts +1 -0
- package/src/shared/ui-lib/UiSkeleton/UiSkeleton.module.css +37 -0
- package/src/shared/ui-lib/UiSkeleton/UiSkeleton.tsx +10 -0
- package/src/shared/ui-lib/UiSkeleton/index.ts +1 -0
- package/src/shared/ui-lib/UiSlider/UiSlider.module.css +75 -0
- package/src/shared/ui-lib/UiSlider/UiSlider.tsx +50 -0
- package/src/shared/ui-lib/UiSlider/index.ts +1 -0
- package/src/shared/ui-lib/UiSwitch/UiSwitch.module.css +48 -0
- package/src/shared/ui-lib/UiSwitch/UiSwitch.tsx +103 -0
- package/src/shared/ui-lib/UiSwitch/index.ts +1 -0
- package/src/staticResources.ts +410 -0
- package/src/version.ts +1 -0
- package/tsconfig.json +42 -0
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AiChatMsg,
|
|
3
|
+
GenerateAudioRequest,
|
|
4
|
+
GenerateImageRequest,
|
|
5
|
+
UserRequest,
|
|
6
|
+
} from "App/Connection";
|
|
7
|
+
import { SessionStorage } from "App/SessionStorage";
|
|
8
|
+
import { useAccount } from "App/useAccount";
|
|
9
|
+
import { useAppSubscription } from "App/useBoardSubscription";
|
|
10
|
+
import clsx from "clsx";
|
|
11
|
+
import {
|
|
12
|
+
getContextItems,
|
|
13
|
+
getIdeaFromSelection,
|
|
14
|
+
PossibleParentNode,
|
|
15
|
+
useAIContext,
|
|
16
|
+
} from "entities/AIInput";
|
|
17
|
+
import { useAppContext } from "features/AppContext";
|
|
18
|
+
import { USER_PLAN_MODAL_ID } from "features/UserPlan";
|
|
19
|
+
import React, { useEffect, useRef, useState, type SyntheticEvent } from "react";
|
|
20
|
+
import { useTranslation } from "react-i18next";
|
|
21
|
+
import { getCorrectEnding } from "shared/lib/getCorrectEnding";
|
|
22
|
+
import { useForceUpdate } from "shared/lib/useForceUpdate";
|
|
23
|
+
import { Icon } from "shared/ui-lib/Icon";
|
|
24
|
+
import { Tooltip } from "shared/ui-lib/Tooltip";
|
|
25
|
+
import { UiButton } from "shared/ui-lib/UiButton";
|
|
26
|
+
import { useUiModalContext } from "shared/ui-lib/UiModal";
|
|
27
|
+
import { UiPanel } from "shared/ui-lib/UiPanel";
|
|
28
|
+
import { AIDropdown } from "./AIDropdown";
|
|
29
|
+
import styles from "./AIInput.module.css";
|
|
30
|
+
|
|
31
|
+
const sessionStorage = new SessionStorage();
|
|
32
|
+
|
|
33
|
+
export const AIInput = () => {
|
|
34
|
+
const { t } = useTranslation();
|
|
35
|
+
const { app, board } = useAppContext();
|
|
36
|
+
const [inputValue, setInputValue] = useState("");
|
|
37
|
+
const disabledRef = useRef<boolean>(!!board.aiGeneratingOnItem);
|
|
38
|
+
const inputRef = useRef<HTMLTextAreaElement | null>(null);
|
|
39
|
+
const [isDropdownOpen, setIsDropdownOpen] = useState(false);
|
|
40
|
+
const forceUpdate = useForceUpdate();
|
|
41
|
+
const selectedItemsCount = board.selection.items.list().length;
|
|
42
|
+
const account = useAccount();
|
|
43
|
+
const { openModal } = useUiModalContext();
|
|
44
|
+
const [isShaking, setIsShaking] = useState(false);
|
|
45
|
+
const {
|
|
46
|
+
stopStream,
|
|
47
|
+
responseNodeId,
|
|
48
|
+
model,
|
|
49
|
+
createNodesWithConnectors,
|
|
50
|
+
quotedText,
|
|
51
|
+
setQuotedText,
|
|
52
|
+
tryToSendGenerationRequest,
|
|
53
|
+
} = useAIContext();
|
|
54
|
+
|
|
55
|
+
const ideaFromSelection = getIdeaFromSelection(
|
|
56
|
+
board.selection.items.list(),
|
|
57
|
+
);
|
|
58
|
+
const isEditable = board.getInterfaceType() !== "view";
|
|
59
|
+
const isSendBtnDisabled =
|
|
60
|
+
!inputValue.trim() && !ideaFromSelection && !board.aiGeneratingOnItem;
|
|
61
|
+
|
|
62
|
+
const isPhoneScreenCheck = (): boolean =>
|
|
63
|
+
matchMedia("screen and (max-width: 640px)").matches;
|
|
64
|
+
const [isPhoneScreen, setIsPhoneScreen] = useState(isPhoneScreenCheck);
|
|
65
|
+
useEffect(() => {
|
|
66
|
+
const setScreen = (): void => {
|
|
67
|
+
setIsPhoneScreen(isPhoneScreenCheck());
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
window.addEventListener("resize", setScreen);
|
|
71
|
+
|
|
72
|
+
const lastRequest = sessionStorage.getLastAIRequest();
|
|
73
|
+
if (lastRequest) {
|
|
74
|
+
setInputValue(lastRequest);
|
|
75
|
+
}
|
|
76
|
+
return () => {
|
|
77
|
+
window.removeEventListener("resize", setScreen);
|
|
78
|
+
};
|
|
79
|
+
}, []);
|
|
80
|
+
|
|
81
|
+
useEffect(() => {
|
|
82
|
+
if (disabledRef.current && !board.aiGeneratingOnItem) {
|
|
83
|
+
inputRef.current?.focus();
|
|
84
|
+
}
|
|
85
|
+
disabledRef.current = !!board.aiGeneratingOnItem;
|
|
86
|
+
}, [board.aiGeneratingOnItem]);
|
|
87
|
+
|
|
88
|
+
useAppSubscription({
|
|
89
|
+
subjects: ["selectionItems", "selectionItem", "selection"],
|
|
90
|
+
observer: forceUpdate,
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
const handleInputChange = (
|
|
94
|
+
event: React.ChangeEvent<HTMLTextAreaElement>,
|
|
95
|
+
): void => {
|
|
96
|
+
setInputValue(event.target.value);
|
|
97
|
+
sessionStorage.setLastAIRequest(event.target.value);
|
|
98
|
+
event.target.style.height = "auto";
|
|
99
|
+
event.target.style.height = `${Math.min(event.target.scrollHeight, 120)}px`;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
const handleSendClick = async (ev: SyntheticEvent): Promise<void> => {
|
|
103
|
+
ev.stopPropagation();
|
|
104
|
+
if (!inputValue.trim() && !ideaFromSelection) {
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
const fallback = () => {
|
|
109
|
+
setIsShaking(true);
|
|
110
|
+
setTimeout(() => {
|
|
111
|
+
setIsShaking(false);
|
|
112
|
+
openModal(USER_PLAN_MODAL_ID);
|
|
113
|
+
}, 1000);
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
await tryToSendGenerationRequest(fallback, sendInputData);
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
const handleInputClick = (
|
|
120
|
+
event: React.MouseEvent<HTMLTextAreaElement>,
|
|
121
|
+
): void => {
|
|
122
|
+
event.stopPropagation();
|
|
123
|
+
if (board.selection.getContext() === "EditTextUnderPointer") {
|
|
124
|
+
board.selection.setContext("EditUnderPointer");
|
|
125
|
+
}
|
|
126
|
+
if (isDropdownOpen) {
|
|
127
|
+
setIsDropdownOpen(false);
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
const handleKeyDown = async (
|
|
132
|
+
event: React.KeyboardEvent<HTMLTextAreaElement>,
|
|
133
|
+
): Promise<void> => {
|
|
134
|
+
event.stopPropagation();
|
|
135
|
+
if (event.key === "Enter" && !event.shiftKey) {
|
|
136
|
+
event.preventDefault();
|
|
137
|
+
await handleSendClick(event);
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
const sendInputData = async (): Promise<void> => {
|
|
142
|
+
const connection = app.getConnection();
|
|
143
|
+
if (!connection) {
|
|
144
|
+
console.error("Ws no open");
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
if (!inputValue.trim().length && !ideaFromSelection) {
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
const nodeWithParents =
|
|
153
|
+
board.selection.getMostNestedAINodeWithParents();
|
|
154
|
+
|
|
155
|
+
const parentNodes = nodeWithParents
|
|
156
|
+
? [nodeWithParents.node, ...nodeWithParents.parents]
|
|
157
|
+
: [];
|
|
158
|
+
|
|
159
|
+
const selectedItems = board.selection.items.list();
|
|
160
|
+
|
|
161
|
+
const { boardContext, contextItems } = getContextItems(
|
|
162
|
+
[
|
|
163
|
+
...selectedItems,
|
|
164
|
+
...parentNodes.filter(node => node.getIsUserRequest()),
|
|
165
|
+
],
|
|
166
|
+
parentNodes.filter(node => !node.getIsUserRequest()),
|
|
167
|
+
inputValue.trim().length
|
|
168
|
+
? undefined
|
|
169
|
+
: ideaFromSelection?.item.getId(),
|
|
170
|
+
);
|
|
171
|
+
|
|
172
|
+
if (quotedText) {
|
|
173
|
+
boardContext.unshift(quotedText);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
let idea = inputValue;
|
|
177
|
+
let itemToContinueThread: PossibleParentNode | undefined =
|
|
178
|
+
nodeWithParents?.node;
|
|
179
|
+
let isIdeaFromSelection = false;
|
|
180
|
+
if (idea.trim().length === 0) {
|
|
181
|
+
if (!ideaFromSelection) {
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
idea = ideaFromSelection.idea;
|
|
185
|
+
isIdeaFromSelection = true;
|
|
186
|
+
if (!itemToContinueThread) {
|
|
187
|
+
itemToContinueThread = ideaFromSelection.item;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
const { responseAdded, requestAdded } = createNodesWithConnectors(
|
|
192
|
+
idea,
|
|
193
|
+
itemToContinueThread,
|
|
194
|
+
contextItems.map(item => item.getId()),
|
|
195
|
+
!isIdeaFromSelection,
|
|
196
|
+
);
|
|
197
|
+
|
|
198
|
+
board.aiGeneratingOnItem = responseAdded.getId();
|
|
199
|
+
board.camera.subscribeToItem(responseAdded);
|
|
200
|
+
|
|
201
|
+
if (model === "flux-schnell" || model === "flux-pro") {
|
|
202
|
+
const options = {
|
|
203
|
+
model: model === "flux-pro" ? "flux-pro" : "flux-schnell",
|
|
204
|
+
aspect_ratio: "1:1",
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
const message: AiChatMsg<GenerateImageRequest> = {
|
|
208
|
+
type: "AiChat",
|
|
209
|
+
boardId: board.getBoardId(),
|
|
210
|
+
event: {
|
|
211
|
+
method: "GenerateImage",
|
|
212
|
+
prompt: idea,
|
|
213
|
+
itemId: responseAdded.getId(),
|
|
214
|
+
options,
|
|
215
|
+
},
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
connection.send(message);
|
|
219
|
+
} else if (model === "tts-1-hd") {
|
|
220
|
+
const message: AiChatMsg<GenerateAudioRequest> = {
|
|
221
|
+
type: "AiChat",
|
|
222
|
+
boardId: board.getBoardId(),
|
|
223
|
+
event: {
|
|
224
|
+
method: "GenerateAudio",
|
|
225
|
+
text: idea,
|
|
226
|
+
model: "tts-1-hd",
|
|
227
|
+
},
|
|
228
|
+
};
|
|
229
|
+
connection.send(message);
|
|
230
|
+
} else {
|
|
231
|
+
const contextRequest = nodeWithParents?.lastAssistantMessageId
|
|
232
|
+
? {
|
|
233
|
+
range: 5,
|
|
234
|
+
messageId: nodeWithParents.lastAssistantMessageId,
|
|
235
|
+
}
|
|
236
|
+
: undefined;
|
|
237
|
+
|
|
238
|
+
const message: AiChatMsg<UserRequest> = {
|
|
239
|
+
type: "AiChat",
|
|
240
|
+
boardId: board.getBoardId(),
|
|
241
|
+
event: {
|
|
242
|
+
method: "UserRequest",
|
|
243
|
+
context: [],
|
|
244
|
+
boardContext,
|
|
245
|
+
idea: quotedText ? idea + " " + quotedText : idea,
|
|
246
|
+
model,
|
|
247
|
+
itemId: responseAdded.getId(),
|
|
248
|
+
requestItemId: requestAdded.getId(),
|
|
249
|
+
contextRequest,
|
|
250
|
+
},
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
connection.send(message);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
setInputValue("");
|
|
257
|
+
|
|
258
|
+
if (inputRef.current) {
|
|
259
|
+
inputRef.current.style.height = "auto";
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
const itemsInView = board.items.getInView();
|
|
263
|
+
const viewport = board.camera.getMbr();
|
|
264
|
+
const isAiNodesInView = itemsInView.some(item => {
|
|
265
|
+
const itemMbr = item.getMbr();
|
|
266
|
+
return (
|
|
267
|
+
item.getId() === responseAdded.getId() &&
|
|
268
|
+
itemMbr.right < viewport.right &&
|
|
269
|
+
itemMbr.left > viewport.left
|
|
270
|
+
);
|
|
271
|
+
});
|
|
272
|
+
|
|
273
|
+
if (!isAiNodesInView) {
|
|
274
|
+
const mbrToFit = responseAdded
|
|
275
|
+
.getMbr()
|
|
276
|
+
.combine(requestAdded.getMbr());
|
|
277
|
+
board.camera.zoomToFit(mbrToFit, (600 / mbrToFit.getWidth()) * 30);
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
const handleStopClick = async (): Promise<void> => {
|
|
282
|
+
const boardId = app.getBoard().getBoardId();
|
|
283
|
+
|
|
284
|
+
if (responseNodeId) {
|
|
285
|
+
await stopStream(boardId, responseNodeId, account);
|
|
286
|
+
board.aiGeneratingOnItem = undefined;
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
const getInputPlaceholder = (): string => {
|
|
291
|
+
if (!!board.aiGeneratingOnItem) {
|
|
292
|
+
return t("AIInput.disableWhenGenerating");
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
if (isPhoneScreen) {
|
|
296
|
+
return t("AIInput.selectMobileContext");
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
return t("AIInput.selectContext");
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
const boardId = board.getBoardId();
|
|
303
|
+
if (!boardId || boardId === "blank") {
|
|
304
|
+
return null;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
return (
|
|
308
|
+
<div className={clsx(styles.inputContainer, isShaking && styles.shake)}>
|
|
309
|
+
{!isEditable && (
|
|
310
|
+
<Tooltip
|
|
311
|
+
tooltip={t("AIInput.disable")}
|
|
312
|
+
tooltipPosition="top"
|
|
313
|
+
tooltipAlign="left"
|
|
314
|
+
className={styles.tooltip}
|
|
315
|
+
/>
|
|
316
|
+
)}
|
|
317
|
+
<div
|
|
318
|
+
className={clsx(styles.contentWrapper, {
|
|
319
|
+
[styles.disabled]: !!board.aiGeneratingOnItem,
|
|
320
|
+
})}
|
|
321
|
+
>
|
|
322
|
+
<AIDropdown
|
|
323
|
+
board={board}
|
|
324
|
+
isPhoneScreen={isPhoneScreen}
|
|
325
|
+
account={account}
|
|
326
|
+
isDropdownOpen={isDropdownOpen}
|
|
327
|
+
setIsDropdownOpen={setIsDropdownOpen}
|
|
328
|
+
/>
|
|
329
|
+
<UiPanel className={clsx(styles.inputWrapper, styles.panel)}>
|
|
330
|
+
{quotedText && (
|
|
331
|
+
<div className={styles.quoteContainer}>
|
|
332
|
+
<Icon
|
|
333
|
+
width={16}
|
|
334
|
+
height={14}
|
|
335
|
+
iconName={"quotedText"}
|
|
336
|
+
/>
|
|
337
|
+
<p className={styles.quoteText}>{quotedText}</p>
|
|
338
|
+
<button
|
|
339
|
+
style={{
|
|
340
|
+
color: "rgba(15, 19, 36, 0.6)",
|
|
341
|
+
cursor: "pointer",
|
|
342
|
+
}}
|
|
343
|
+
onClick={() => setQuotedText(undefined)}
|
|
344
|
+
>
|
|
345
|
+
<Icon
|
|
346
|
+
width={20}
|
|
347
|
+
height={20}
|
|
348
|
+
iconName={"Close"}
|
|
349
|
+
/>
|
|
350
|
+
</button>
|
|
351
|
+
</div>
|
|
352
|
+
)}
|
|
353
|
+
<div className={styles.inputWithSelection}>
|
|
354
|
+
<textarea
|
|
355
|
+
value={inputValue}
|
|
356
|
+
onClick={event => handleInputClick(event)}
|
|
357
|
+
onPaste={event => event.stopPropagation()}
|
|
358
|
+
onKeyDown={event => handleKeyDown(event)}
|
|
359
|
+
onFocus={event => event.currentTarget.select()}
|
|
360
|
+
onChange={event => handleInputChange(event)}
|
|
361
|
+
placeholder={getInputPlaceholder()}
|
|
362
|
+
className={styles.aiInput}
|
|
363
|
+
ref={inputRef}
|
|
364
|
+
rows={1}
|
|
365
|
+
disabled={!!board.aiGeneratingOnItem}
|
|
366
|
+
/>
|
|
367
|
+
<div
|
|
368
|
+
className={clsx(
|
|
369
|
+
styles.selectionInfo,
|
|
370
|
+
selectedItemsCount && styles.activeSelection,
|
|
371
|
+
)}
|
|
372
|
+
>
|
|
373
|
+
<Tooltip
|
|
374
|
+
id="selection-info-tooltip"
|
|
375
|
+
tooltip={t(
|
|
376
|
+
`AIInput.selectedItems.${getCorrectEnding(selectedItemsCount)}`,
|
|
377
|
+
{ count: selectedItemsCount },
|
|
378
|
+
)}
|
|
379
|
+
className={styles.itemsCountTooltip}
|
|
380
|
+
tooltipPosition="top"
|
|
381
|
+
/>
|
|
382
|
+
{selectedItemsCount}
|
|
383
|
+
</div>
|
|
384
|
+
</div>
|
|
385
|
+
</UiPanel>
|
|
386
|
+
<UiButton
|
|
387
|
+
id={"send-ai-input-data"}
|
|
388
|
+
disabled={isSendBtnDisabled}
|
|
389
|
+
tooltip={
|
|
390
|
+
isSendBtnDisabled
|
|
391
|
+
? t("AIInput.sendBtnTooltip")
|
|
392
|
+
: board.aiGeneratingOnItem
|
|
393
|
+
? t("contextPanel.ai.stop")
|
|
394
|
+
: undefined
|
|
395
|
+
}
|
|
396
|
+
tooltipPosition={"top"}
|
|
397
|
+
className={clsx(styles.sendButton, styles.panel)}
|
|
398
|
+
onClick={
|
|
399
|
+
!!board.aiGeneratingOnItem
|
|
400
|
+
? handleStopClick
|
|
401
|
+
: handleSendClick
|
|
402
|
+
}
|
|
403
|
+
variant="secondary"
|
|
404
|
+
rounded="full"
|
|
405
|
+
>
|
|
406
|
+
<Icon
|
|
407
|
+
width={20}
|
|
408
|
+
height={20}
|
|
409
|
+
iconName={
|
|
410
|
+
isSendBtnDisabled
|
|
411
|
+
? "AIChatArrowDisabled"
|
|
412
|
+
: !!board.aiGeneratingOnItem
|
|
413
|
+
? "StopAiGeneration"
|
|
414
|
+
: "AIChatSendArrow"
|
|
415
|
+
}
|
|
416
|
+
className={clsx(styles.icon, {
|
|
417
|
+
[styles.activeIcon]:
|
|
418
|
+
inputValue.trim() ||
|
|
419
|
+
ideaFromSelection ||
|
|
420
|
+
!!board.aiGeneratingOnItem,
|
|
421
|
+
})}
|
|
422
|
+
/>
|
|
423
|
+
</UiButton>
|
|
424
|
+
</div>
|
|
425
|
+
</div>
|
|
426
|
+
);
|
|
427
|
+
};
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
export const StarIcon: React.FC<{
|
|
4
|
+
width?: number;
|
|
5
|
+
height?: number;
|
|
6
|
+
className?: string;
|
|
7
|
+
}> = ({ width = 24, height = 24, className }) => (
|
|
8
|
+
<svg
|
|
9
|
+
className={className}
|
|
10
|
+
width={width}
|
|
11
|
+
height={height}
|
|
12
|
+
viewBox="0 0 24 24"
|
|
13
|
+
fill="none"
|
|
14
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
+
>
|
|
16
|
+
<rect width="24" height="24" fill="none" />
|
|
17
|
+
<g id="main screen">
|
|
18
|
+
<path
|
|
19
|
+
d="M-116411 -4926C-116411 -4927.1 -116410 -4928 -116409 -4928H16473C16474.1 -4928 16475 -4927.1 16475 -4926V27968C16475 27969.1 16474.1 27970 16473 27970H-116409C-116410 27970 -116411 27969.1 -116411 27968V-4926Z"
|
|
20
|
+
fill="none"
|
|
21
|
+
/>
|
|
22
|
+
<path
|
|
23
|
+
d="M-116409 -4927H16473V-4929H-116409V-4927ZM16474 -4926V27968H16476V-4926H16474ZM16473 27969H-116409V27971H16473V27969ZM-116410 27968V-4926H-116412V27968H-116410ZM-116409 27969C-116410 27969 -116410 27968.6 -116410 27968H-116412C-116412 27969.7 -116411 27971 -116409 27971V27969ZM16474 27968C16474 27968.6 16473.5 27969 16473 27969V27971C16474.7 27971 16476 27969.7 16476 27968H16474ZM16473 -4927C16473.5 -4927 16474 -4926.55 16474 -4926H16476C16476 -4927.65 16474.7 -4929 16473 -4929V-4927ZM-116409 -4929C-116411 -4929 -116412 -4927.66 -116412 -4926H-116410C-116410 -4926.55 -116410 -4927 -116409 -4927V-4929Z"
|
|
24
|
+
fill="none"
|
|
25
|
+
/>
|
|
26
|
+
<g id="Chatgpt">
|
|
27
|
+
<path
|
|
28
|
+
d="M-1231 -2587C-1231 -2588.1 -1230.1 -2589 -1229 -2589H4254C4255.1 -2589 4256 -2588.1 4256 -2587V7118C4256 7119.1 4255.1 7120 4254 7120H-1229C-1230.1 7120 -1231 7119.1 -1231 7118V-2587Z"
|
|
29
|
+
fill="none"
|
|
30
|
+
/>
|
|
31
|
+
<path
|
|
32
|
+
d="M-1229 -2588H4254V-2590H-1229V-2588ZM4255 -2587V7118H4257V-2587H4255ZM4254 7119H-1229V7121H4254V7119ZM-1230 7118V-2587H-1232V7118H-1230ZM-1229 7119C-1229.55 7119 -1230 7118.55 -1230 7118H-1232C-1232 7119.66 -1230.66 7121 -1229 7121V7119ZM4255 7118C4255 7118.55 4254.55 7119 4254 7119V7121C4255.66 7121 4257 7119.66 4257 7118H4255ZM4254 -2588C4254.55 -2588 4255 -2587.55 4255 -2587H4257C4257 -2588.66 4255.66 -2590 4254 -2590V-2588ZM-1229 -2590C-1230.66 -2590 -1232 -2588.66 -1232 -2587H-1230C-1230 -2587.55 -1229.55 -2588 -1229 -2588V-2590Z"
|
|
33
|
+
fill="none"
|
|
34
|
+
/>
|
|
35
|
+
<g id="main screen_2" clipPath="url(#clip0_2_12152)">
|
|
36
|
+
<rect
|
|
37
|
+
width="1280"
|
|
38
|
+
height="1080"
|
|
39
|
+
transform="translate(-1083 -24)"
|
|
40
|
+
fill="none"
|
|
41
|
+
/>
|
|
42
|
+
<g id="Frame 22070" filter="url(#filter0_dd_2_12152)">
|
|
43
|
+
<rect
|
|
44
|
+
x="-156"
|
|
45
|
+
y="-12"
|
|
46
|
+
width="341"
|
|
47
|
+
height="48"
|
|
48
|
+
rx="12"
|
|
49
|
+
fill="none"
|
|
50
|
+
/>
|
|
51
|
+
<rect
|
|
52
|
+
x="-156.5"
|
|
53
|
+
y="-12.5"
|
|
54
|
+
width="342"
|
|
55
|
+
height="49"
|
|
56
|
+
rx="12.5"
|
|
57
|
+
stroke="none"
|
|
58
|
+
/>
|
|
59
|
+
<g id="Item">
|
|
60
|
+
<path
|
|
61
|
+
d="M-12 -12H36V16.8C36 23.5206 36 26.8809 34.6921 29.4479C33.5416 31.7058 31.7058 33.5416 29.4479 34.6921C26.8809 36 23.5206 36 16.8 36H7.2C0.47937 36 -2.88095 36 -5.44789 34.6921C-7.70583 33.5416 -9.5416 31.7058 -10.6921 29.4479C-12 26.8809 -12 23.5206 -12 16.8V-12Z"
|
|
62
|
+
fill="none"
|
|
63
|
+
/>
|
|
64
|
+
<g id="icon" clipPath="url(#clip1_2_12152)">
|
|
65
|
+
<g id="Vector">
|
|
66
|
+
<path
|
|
67
|
+
fillRule="evenodd"
|
|
68
|
+
clipRule="evenodd"
|
|
69
|
+
d="M15.6776 6.30758C15.7733 5.93544 16.098 5.65002 16.4984 5.65002C16.8989 5.65002 17.2235 5.93543 17.3193 6.30759C17.8516 8.38444 18.286 9.53701 19.0174 10.3247C19.745 11.1083 20.8063 11.5729 22.7316 12.1456C23.1103 12.2586 23.3484 12.6179 23.3484 13C23.3484 13.3822 23.1106 13.7414 22.7319 13.8544C20.8065 14.4271 19.7452 14.8916 19.0177 15.675C18.2864 16.4626 17.8521 17.6148 17.3194 19.6922C17.2236 20.0643 16.8989 20.35 16.4984 20.35C16.098 20.35 15.7733 20.0646 15.6776 19.6925C15.1448 17.615 14.7104 16.4623 13.9791 15.6746C13.2516 14.891 12.1906 14.4266 10.2653 13.8545C9.88663 13.7415 9.64844 13.3822 9.64844 13C9.64844 12.6179 9.88624 12.2587 10.2649 12.1457C12.1903 11.573 13.2519 11.1082 13.9796 10.3246C14.7109 9.53695 15.1453 8.38439 15.6776 6.30758ZM16.4985 9.40395C16.1443 10.2838 15.7355 10.9841 15.198 11.563C14.6438 12.1597 13.9685 12.6104 13.1143 13.0012C13.9688 13.3922 14.6442 13.8432 15.1983 14.4399C15.7357 15.0187 16.1444 15.7188 16.4984 16.5982C16.8525 15.7183 17.2613 15.018 17.7988 14.4392C18.353 13.8425 19.0284 13.3917 19.8826 13.001C19.028 12.6099 18.3526 12.1589 17.7985 11.5622C17.2611 10.9835 16.8525 10.2834 16.4985 9.40395Z"
|
|
70
|
+
fill="url(#paint0_linear_2_12152)"
|
|
71
|
+
/>
|
|
72
|
+
<path
|
|
73
|
+
fillRule="evenodd"
|
|
74
|
+
clipRule="evenodd"
|
|
75
|
+
d="M6.64858 1.34661C6.74531 0.958714 7.07714 0.650024 7.49844 0.650024C7.9186 0.650024 8.25254 0.957556 8.34845 1.34727C8.69242 2.73197 8.95756 3.45802 9.39627 3.94549C9.82963 4.42701 10.4706 4.71718 11.713 5.09848C12.1083 5.22019 12.3484 5.60277 12.3484 6.00002C12.3484 6.39727 12.1087 6.77977 11.7133 6.90148C10.4709 7.28274 9.82957 7.573 9.39621 8.05453C8.95745 8.54206 8.6923 9.26821 8.34837 10.6531C8.25255 11.0435 7.91745 11.35 7.49844 11.35C7.07852 11.35 6.74541 11.0418 6.64858 10.6534C6.30458 9.26851 6.03935 8.54207 5.6006 8.05455C5.16725 7.57304 4.52628 7.28287 3.28389 6.90157C2.88853 6.77986 2.64844 6.39728 2.64844 6.00002C2.64844 5.60278 2.88822 5.22028 3.2836 5.09857C4.52557 4.71729 5.16658 4.42731 5.59995 3.9459C6.03872 3.45849 6.30416 2.73207 6.64858 1.34661ZM5.94791 5.99895C6.29954 6.21506 6.6026 6.46132 6.8677 6.75587C7.11155 7.02681 7.31763 7.33236 7.49927 7.68175C7.68072 7.33238 7.8867 7.02683 8.13056 6.75588C8.39572 6.46125 8.69897 6.21496 9.05089 5.99882C8.69935 5.78274 8.39635 5.53653 8.13131 5.24204C7.88735 4.97097 7.6812 4.66528 7.4995 4.3157C7.31781 4.66527 7.11167 4.97096 6.86771 5.24202C6.60261 5.53658 6.29954 5.78284 5.94791 5.99895Z"
|
|
76
|
+
fill="url(#paint1_linear_2_12152)"
|
|
77
|
+
/>
|
|
78
|
+
<path
|
|
79
|
+
fillRule="evenodd"
|
|
80
|
+
clipRule="evenodd"
|
|
81
|
+
d="M5.12573 13.314C5.23434 12.9219 5.59092 12.65 5.99844 12.65C6.40595 12.65 6.76254 12.9219 6.87115 13.314C7.25322 14.6982 7.55839 15.4373 8.05969 15.9386C8.561 16.4399 9.29988 16.745 10.6843 17.1271C11.0743 17.2357 11.3484 17.5919 11.3484 18C11.3484 18.4075 11.0767 18.7642 10.6846 18.8728C9.30012 19.2549 8.56086 19.5599 8.05957 20.0611C7.5583 20.5622 7.25324 21.301 6.87125 22.6857C6.76264 23.0778 6.40596 23.35 5.99844 23.35C5.59092 23.35 5.23434 23.0782 5.12573 22.6861C4.74366 21.3019 4.4385 20.563 3.93721 20.0619C3.43587 19.5606 2.69695 19.2555 1.31248 18.8729C0.920397 18.7642 0.648438 18.4075 0.648438 18C0.648438 17.5926 0.920141 17.2359 1.31225 17.1272C2.69668 16.7452 3.43597 16.4399 3.93728 15.9386C4.43859 15.4373 4.74374 14.6981 5.12573 13.314ZM5.99855 16.1593C5.7779 16.5672 5.52536 16.917 5.22032 17.222C4.91521 17.5271 4.56537 17.7796 4.15754 18.0002C4.56538 18.2211 4.91522 18.4737 5.22032 18.7788C5.52535 19.0838 5.77789 19.4335 5.99855 19.8412C6.21939 19.4331 6.47196 19.0832 6.77701 18.778C7.0819 18.4731 7.43143 18.2207 7.83896 18.0001C7.43099 17.7794 7.0812 17.5267 6.7762 17.2216C6.47136 16.9166 6.21905 16.5669 5.99855 16.1593Z"
|
|
82
|
+
fill="url(#paint2_linear_2_12152)"
|
|
83
|
+
/>
|
|
84
|
+
</g>
|
|
85
|
+
</g>
|
|
86
|
+
</g>
|
|
87
|
+
</g>
|
|
88
|
+
</g>
|
|
89
|
+
</g>
|
|
90
|
+
</g>
|
|
91
|
+
<defs>
|
|
92
|
+
<filter
|
|
93
|
+
id="filter0_dd_2_12152"
|
|
94
|
+
x="-170"
|
|
95
|
+
y="-16"
|
|
96
|
+
width="369"
|
|
97
|
+
height="76"
|
|
98
|
+
filterUnits="userSpaceOnUse"
|
|
99
|
+
colorInterpolationFilters="sRGB"
|
|
100
|
+
>
|
|
101
|
+
<feFlood floodOpacity="0" result="BackgroundImageFix" />
|
|
102
|
+
<feColorMatrix
|
|
103
|
+
in="SourceAlpha"
|
|
104
|
+
type="matrix"
|
|
105
|
+
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
106
|
+
result="hardAlpha"
|
|
107
|
+
/>
|
|
108
|
+
<feMorphology
|
|
109
|
+
radius="2"
|
|
110
|
+
operator="erode"
|
|
111
|
+
in="SourceAlpha"
|
|
112
|
+
result="effect1_dropShadow_2_12152"
|
|
113
|
+
/>
|
|
114
|
+
<feOffset dy="3" />
|
|
115
|
+
<feGaussianBlur stdDeviation="3" />
|
|
116
|
+
<feColorMatrix
|
|
117
|
+
type="matrix"
|
|
118
|
+
values="0 0 0 0 0.0784314 0 0 0 0 0.0823529 0 0 0 0 0.101961 0 0 0 0.05 0"
|
|
119
|
+
/>
|
|
120
|
+
<feBlend
|
|
121
|
+
mode="normal"
|
|
122
|
+
in2="BackgroundImageFix"
|
|
123
|
+
result="effect1_dropShadow_2_12152"
|
|
124
|
+
/>
|
|
125
|
+
<feColorMatrix
|
|
126
|
+
in="SourceAlpha"
|
|
127
|
+
type="matrix"
|
|
128
|
+
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
129
|
+
result="hardAlpha"
|
|
130
|
+
/>
|
|
131
|
+
<feMorphology
|
|
132
|
+
radius="3"
|
|
133
|
+
operator="erode"
|
|
134
|
+
in="SourceAlpha"
|
|
135
|
+
result="effect2_dropShadow_2_12152"
|
|
136
|
+
/>
|
|
137
|
+
<feOffset dy="10" />
|
|
138
|
+
<feGaussianBlur stdDeviation="8" />
|
|
139
|
+
<feColorMatrix
|
|
140
|
+
type="matrix"
|
|
141
|
+
values="0 0 0 0 0.0784314 0 0 0 0 0.0823529 0 0 0 0 0.101961 0 0 0 0.08 0"
|
|
142
|
+
/>
|
|
143
|
+
<feBlend
|
|
144
|
+
mode="normal"
|
|
145
|
+
in2="effect1_dropShadow_2_12152"
|
|
146
|
+
result="effect2_dropShadow_2_12152"
|
|
147
|
+
/>
|
|
148
|
+
<feBlend
|
|
149
|
+
mode="normal"
|
|
150
|
+
in="SourceGraphic"
|
|
151
|
+
in2="effect2_dropShadow_2_12152"
|
|
152
|
+
result="shape"
|
|
153
|
+
/>
|
|
154
|
+
</filter>
|
|
155
|
+
<linearGradient
|
|
156
|
+
id="paint0_linear_2_12152"
|
|
157
|
+
x1="11.9984"
|
|
158
|
+
y1="0.650024"
|
|
159
|
+
x2="11.9984"
|
|
160
|
+
y2="23.35"
|
|
161
|
+
gradientUnits="userSpaceOnUse"
|
|
162
|
+
>
|
|
163
|
+
<stop stopColor="#CD4FF2" />
|
|
164
|
+
<stop offset="1" stopColor="#5F4AFF" />
|
|
165
|
+
</linearGradient>
|
|
166
|
+
<linearGradient
|
|
167
|
+
id="paint1_linear_2_12152"
|
|
168
|
+
x1="11.9984"
|
|
169
|
+
y1="0.650024"
|
|
170
|
+
x2="11.9984"
|
|
171
|
+
y2="23.35"
|
|
172
|
+
gradientUnits="userSpaceOnUse"
|
|
173
|
+
>
|
|
174
|
+
<stop stopColor="#CD4FF2" />
|
|
175
|
+
<stop offset="1" stopColor="#5F4AFF" />
|
|
176
|
+
</linearGradient>
|
|
177
|
+
<linearGradient
|
|
178
|
+
id="paint2_linear_2_12152"
|
|
179
|
+
x1="11.9984"
|
|
180
|
+
y1="0.650024"
|
|
181
|
+
x2="11.9984"
|
|
182
|
+
y2="23.35"
|
|
183
|
+
gradientUnits="userSpaceOnUse"
|
|
184
|
+
>
|
|
185
|
+
<stop stopColor="#CD4FF2" />
|
|
186
|
+
<stop offset="1" stopColor="#5F4AFF" />
|
|
187
|
+
</linearGradient>
|
|
188
|
+
<clipPath id="clip0_2_12152">
|
|
189
|
+
<rect
|
|
190
|
+
width="1280"
|
|
191
|
+
height="1080"
|
|
192
|
+
fill="white"
|
|
193
|
+
transform="translate(-1083 -24)"
|
|
194
|
+
/>
|
|
195
|
+
</clipPath>
|
|
196
|
+
<clipPath id="clip1_2_12152">
|
|
197
|
+
<rect width="24" height="24" fill="white" />
|
|
198
|
+
</clipPath>
|
|
199
|
+
</defs>
|
|
200
|
+
</svg>
|
|
201
|
+
);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { AIInput } from "./AIInput.tsx";
|
|
2
|
+
export {
|
|
3
|
+
getIdeaFromSelection,
|
|
4
|
+
getContextItems,
|
|
5
|
+
getTextFromItem,
|
|
6
|
+
} from "./utils.ts";
|
|
7
|
+
export type {
|
|
8
|
+
PossibleParentNode,
|
|
9
|
+
} from "./utils.ts";
|
|
10
|
+
export { useAIContext, AIContextProvider } from "./AIContext.tsx";
|
|
11
|
+
export { StarIcon } from "./StarIcon.tsx";
|
|
12
|
+
export { Dropdown } from "./AIDropdown.tsx";
|