microboard-ui-temp 0.1.38 → 0.1.40
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/dist/index.js +121 -107
- package/dist/types/App/App.d.ts +50 -0
- package/dist/types/App/BoardsList.d.ts +57 -0
- package/dist/types/App/Clipboard.d.ts +14 -0
- package/dist/types/App/Connection.d.ts +91 -0
- package/dist/types/App/Location.d.ts +8 -0
- package/dist/types/App/MediaHelpers.d.ts +6 -0
- package/dist/types/App/Paste/index.d.ts +5 -0
- package/dist/types/App/Paste/pasteTextToTheBoard.d.ts +2 -0
- package/dist/types/App/Paste/tryToGetMarkdownFromDataTransfer.d.ts +2 -0
- package/dist/types/App/Paste/tryToPasteAsItemOrReturnText.d.ts +3 -0
- package/dist/types/App/Paste/tryToPasteAudioByLink.d.ts +2 -0
- package/dist/types/App/Paste/tryToPasteFromMicroboard.d.ts +2 -0
- package/dist/types/App/Paste/tryToPasteFromMiro.d.ts +2 -0
- package/dist/types/App/Paste/tryToPasteImages.d.ts +2 -0
- package/dist/types/App/Paste/tryToPasteVideoByLink.d.ts +2 -0
- package/dist/types/App/Permissions.d.ts +10 -0
- package/dist/types/App/SessionStorage.d.ts +51 -0
- package/dist/types/App/Storage.d.ts +27 -0
- package/dist/types/App/Wheel/Wheel.d.ts +36 -0
- package/dist/types/App/Wheel/WheelEventLogger.d.ts +26 -0
- package/dist/types/App/getController.d.ts +23 -0
- package/dist/types/App/getSubscriptions.d.ts +12 -0
- package/dist/types/App/index.d.ts +1 -0
- package/dist/types/App/isSafari.d.ts +1 -0
- package/dist/types/App/router.d.ts +7 -0
- package/dist/types/App/testRecorder.d.ts +6 -0
- package/dist/types/App/useAccount.d.ts +2 -0
- package/dist/types/App/useBoardSubscription.d.ts +2 -0
- package/dist/types/App/useBoardsList.d.ts +2 -0
- package/dist/types/App/useDomMbr.d.ts +16 -0
- package/dist/types/Config.d.ts +10 -0
- package/dist/types/entities/AIInput/AIContext.d.ts +23 -0
- package/dist/types/entities/AIInput/AIDropdown.d.ts +13 -0
- package/dist/types/entities/AIInput/AIGenerationButton.d.ts +1 -0
- package/dist/types/entities/AIInput/AIInput.d.ts +1 -0
- package/dist/types/entities/AIInput/StarIcon.d.ts +6 -0
- package/dist/types/entities/AIInput/index.d.ts +6 -0
- package/dist/types/entities/AIInput/utils.d.ts +19 -0
- package/dist/types/entities/BoardMenu/BoardMenu.d.ts +1 -0
- package/dist/types/entities/BoardMenu/MouseOrTracpadModal/MouseOrTrackpadModal.d.ts +2 -0
- package/dist/types/entities/BoardMenu/index.d.ts +1 -0
- package/dist/types/entities/BoardMenu/sections/Comments.d.ts +1 -0
- package/dist/types/entities/BoardMenu/sections/Items.d.ts +1 -0
- package/dist/types/entities/BoardMenu/sections/MouseOrTrackpad.d.ts +1 -0
- package/dist/types/entities/BoardName/BoardName.d.ts +10 -0
- package/dist/types/entities/BoardName/BoardRename.d.ts +11 -0
- package/dist/types/entities/BoardName/index.d.ts +2 -0
- package/dist/types/entities/Canvas/Canvas.d.ts +31 -0
- package/dist/types/entities/Canvas/CanvasNoRouter.d.ts +10 -0
- package/dist/types/entities/Canvas/index.d.ts +2 -0
- package/dist/types/entities/Folder/DragOverlay.d.ts +1 -0
- package/dist/types/entities/Folder/DragPlaceholder.d.ts +1 -0
- package/dist/types/entities/Folder/DraggingWrapper.d.ts +4 -0
- package/dist/types/entities/Folder/Folder.d.ts +17 -0
- package/dist/types/entities/Folder/FolderItem.d.ts +9 -0
- package/dist/types/entities/Folder/FoldersDndContext.d.ts +4 -0
- package/dist/types/entities/Folder/OpenedFoldersContext.d.ts +10 -0
- package/dist/types/entities/Folder/index.d.ts +5 -0
- package/dist/types/entities/account/Account.d.ts +99 -0
- package/dist/types/entities/account/AuthForm.d.ts +10 -0
- package/dist/types/entities/account/AuthGuard.d.ts +2 -0
- package/dist/types/entities/account/AuthInterceptor.d.ts +3 -0
- package/dist/types/entities/account/UnauthGuard.d.ts +1 -0
- package/dist/types/entities/account/index.d.ts +5 -0
- package/dist/types/entities/comments/Cluster/Cluster.d.ts +7 -0
- package/dist/types/entities/comments/CommentContainer/CommentContainer.d.ts +6 -0
- package/dist/types/entities/comments/CommentContainer/CommentPreview/CommentPreview.d.ts +11 -0
- package/dist/types/entities/comments/CommentInput/CommentInput.d.ts +13 -0
- package/dist/types/entities/comments/CommentsContext.d.ts +23 -0
- package/dist/types/entities/comments/CommentsPanel/CommentCard/CommentCard.d.ts +7 -0
- package/dist/types/entities/comments/CommentsPanel/CommentCard/Message/Message.d.ts +11 -0
- package/dist/types/entities/comments/CommentsPanel/CommentsPanel.d.ts +2 -0
- package/dist/types/entities/comments/CommentsPanel/CommentsPanelContext.d.ts +12 -0
- package/dist/types/entities/comments/CommentsProvider.d.ts +2 -0
- package/dist/types/entities/comments/CreateComment/CreateComment.d.ts +8 -0
- package/dist/types/entities/comments/Thread/ExtraOptions/ExtraOptions.d.ts +8 -0
- package/dist/types/entities/comments/Thread/OptionsPanel/OptionsPanel.d.ts +9 -0
- package/dist/types/entities/comments/Thread/ThreadPanel.d.ts +8 -0
- package/dist/types/entities/comments/Thread/message/Message.d.ts +17 -0
- package/dist/types/entities/comments/index.d.ts +4 -0
- package/dist/types/entities/comments/lib.d.ts +1 -0
- package/dist/types/entities/comments/useCommentsMerge.d.ts +7 -0
- package/dist/types/entities/comments/useIntersectionObserver.d.ts +10 -0
- package/dist/types/entities/comments/useScrollToUnreadMessage.d.ts +8 -0
- package/dist/types/features/AccessDeniedModal/AccessDeniedModal.d.ts +3 -0
- package/dist/types/features/AccessDeniedModal/index.d.ts +1 -0
- package/dist/types/features/AiUnavailableModal/AiUnavailableModal.d.ts +3 -0
- package/dist/types/features/AppContext.d.ts +9 -0
- package/dist/types/features/AppView/AppView.d.ts +2 -0
- package/dist/types/features/AppView/InactiveBoardHidder.d.ts +2 -0
- package/dist/types/features/AppView/LocalAppView.d.ts +2 -0
- package/dist/types/features/AppView/NoBoardIsOpen.d.ts +3 -0
- package/dist/types/features/AppView/QuickAddPanel/QuickAddPanel.d.ts +2 -0
- package/dist/types/features/AppView/QuickAddPanel/index.d.ts +1 -0
- package/dist/types/features/AppView/index.d.ts +2 -0
- package/dist/types/features/AudioPlayer/AudioPlayer.d.ts +7 -0
- package/dist/types/features/ChangePasswordModal/ChangePasswordModal.d.ts +3 -0
- package/dist/types/features/ChangePasswordModal/index.d.ts +1 -0
- package/dist/types/features/ContextMenu/ContextMenu.d.ts +2 -0
- package/dist/types/features/ContextMenu/ContextMenuContext.d.ts +15 -0
- package/dist/types/features/ContextMenu/index.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/AIGeneration.d.ts +6 -0
- package/dist/types/features/ContextPanel/Buttons/AIModel/AIModel.d.ts +6 -0
- package/dist/types/features/ContextPanel/Buttons/AddList/AddList.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/ButtonWithMenu/ButtonWithMenu.d.ts +16 -0
- package/dist/types/features/ContextPanel/Buttons/ButtonWithMenu/index.d.ts +1 -0
- package/dist/types/features/ContextPanel/Buttons/CardGame/Card/CreateDeck.d.ts +6 -0
- package/dist/types/features/ContextPanel/Buttons/CardGame/Card/FlipCard.d.ts +5 -0
- package/dist/types/features/ContextPanel/Buttons/CardGame/Deck/FlipDeck.d.ts +5 -0
- package/dist/types/features/ContextPanel/Buttons/CardGame/Deck/GetCard.d.ts +6 -0
- package/dist/types/features/ContextPanel/Buttons/CardGame/Deck/ShuffleDeck.d.ts +5 -0
- package/dist/types/features/ContextPanel/Buttons/CardGame/Dice/ChangeRange/ChangeRange.d.ts +7 -0
- package/dist/types/features/ContextPanel/Buttons/CardGame/Dice/ThrowDice.d.ts +5 -0
- package/dist/types/features/ContextPanel/Buttons/ConnectorAddText.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/ConnectorFontStyle.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/ConnectorLineColor.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/ConnectorTextColor.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/ConnectorTextHighlight.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/ConnectorType/ConnectorType.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/ConnectorType/index.d.ts +1 -0
- package/dist/types/features/ContextPanel/Buttons/Delete.d.ts +6 -0
- package/dist/types/features/ContextPanel/Buttons/DrawFillStyle.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/DrawStrokeWidth/DrawStrokeWidth.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/Duplicate.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/Edit.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/EndPointer/EndPointer.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/EndPointer/index.d.ts +1 -0
- package/dist/types/features/ContextPanel/Buttons/FillStyle.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/FontSize/ConnectorFontSize.d.ts +6 -0
- package/dist/types/features/ContextPanel/Buttons/FontSize/FontSize.d.ts +6 -0
- package/dist/types/features/ContextPanel/Buttons/FontSize/index.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/FontStyle.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/FrameFill.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/FrameNavNext.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/FrameNavPrev.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/FrameRatio/FrameRatio.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/FrameRatio/index.d.ts +1 -0
- package/dist/types/features/ContextPanel/Buttons/HyperLinkBtn.d.ts +1 -0
- package/dist/types/features/ContextPanel/Buttons/ItemType/ItemType.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/Lock.d.ts +6 -0
- package/dist/types/features/ContextPanel/Buttons/RestOptionsMenu/Items/BringToFront.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/RestOptionsMenu/Items/CopyFrameLink.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/RestOptionsMenu/Items/CopyItemLink.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/RestOptionsMenu/Items/ExportFrame.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/RestOptionsMenu/Items/SaveImg.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/RestOptionsMenu/Items/SaveVideoOrAudio.d.ts +6 -0
- package/dist/types/features/ContextPanel/Buttons/RestOptionsMenu/Items/SendToBack.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/RestOptionsMenu/Items/SetLinkTo.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/RestOptionsMenu/Items/getLinkToItem.d.ts +1 -0
- package/dist/types/features/ContextPanel/Buttons/RestOptionsMenu/Items/index.d.ts +5 -0
- package/dist/types/features/ContextPanel/Buttons/RestOptionsMenu/RestOptionsMenu.d.ts +6 -0
- package/dist/types/features/ContextPanel/Buttons/RestOptionsMenu/RestOptionsMenuItem.d.ts +9 -0
- package/dist/types/features/ContextPanel/Buttons/RestOptionsMenu/index.d.ts +1 -0
- package/dist/types/features/ContextPanel/Buttons/StartPointer/StartPointer.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/StickerFillStyle.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/StrokeStyle/StrokeStyle.d.ts +6 -0
- package/dist/types/features/ContextPanel/Buttons/StrokeStyle/index.d.ts +1 -0
- package/dist/types/features/ContextPanel/Buttons/SwitchPointers.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/TextAlignment/TextAlignment.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/TextColor.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/TextHighlight.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/ToggleFrameRatio.d.ts +2 -0
- package/dist/types/features/ContextPanel/Buttons/ToggleIsShining.d.ts +1 -0
- package/dist/types/features/ContextPanel/ContextPanel.d.ts +2 -0
- package/dist/types/features/ContextPanel/PanelContext.d.ts +15 -0
- package/dist/types/features/ContextPanel/index.d.ts +1 -0
- package/dist/types/features/CryptoWrapper/CryptoWrapper.d.ts +4 -0
- package/dist/types/features/CryptoWrapper/index.d.ts +1 -0
- package/dist/types/features/ErrorBoundary/ErrorBoundary.d.ts +26 -0
- package/dist/types/features/ExportPanel/ExportPanel.d.ts +2 -0
- package/dist/types/features/ExportPanel/ExportVisible.d.ts +2 -0
- package/dist/types/features/ExportPanel/index.d.ts +1 -0
- package/dist/types/features/GameItems/CreateCardsModal.d.ts +3 -0
- package/dist/types/features/GameItems/CreateDiceModal.d.ts +3 -0
- package/dist/types/features/GenerateChart/AIChat.d.ts +12 -0
- package/dist/types/features/GenerateChart/AIChatPanel.d.ts +7 -0
- package/dist/types/features/GenerateChart/lib/engine/index.d.ts +58 -0
- package/dist/types/features/GoogleAuthBtn/GoogleAuthBtn.d.ts +1 -0
- package/dist/types/features/GoogleAuthBtn/index.d.ts +1 -0
- package/dist/types/features/ImportMiro/AuthClipboardModal/AuthClipboardModal.d.ts +3 -0
- package/dist/types/features/ImportMiro/ImgAuthClipboardModal/ImgAuthClipboardModal.d.ts +3 -0
- package/dist/types/features/ImportMiro/ImportMiroBoards/ImportBoardItem/MiroClipboardTransformer.d.ts +49 -0
- package/dist/types/features/ImportMiro/ImportMiroBoards/ImportBoardItem/useCopyBoardItems.d.ts +3 -0
- package/dist/types/features/ImportMiro/ImportMiroBoards/ImportMiro.d.ts +2 -0
- package/dist/types/features/ImportMiro/ImportMiroBoards/MiroModels.d.ts +211 -0
- package/dist/types/features/ImportMiro/ImportMiroBoards/Notifications/ErrorNotification.d.ts +7 -0
- package/dist/types/features/ImportMiro/ImportMiroBoards/Notifications/LoadingNotification.d.ts +7 -0
- package/dist/types/features/ImportMiro/ImportMiroBoards/Notifications/SuccessNotification.d.ts +7 -0
- package/dist/types/features/ImportMiro/ImportMiroBoards/Notifications/WarnClipboardNotification.d.ts +7 -0
- package/dist/types/features/ImportMiro/ImportMiroBoards/Notifications/WarnNotification.d.ts +7 -0
- package/dist/types/features/ImportMiro/ImportMiroBoards/Notifications/index.d.ts +5 -0
- package/dist/types/features/ImportMiro/ImportMiroStartModal/ImportMiroStartModal.d.ts +3 -0
- package/dist/types/features/ImportMiro/index.d.ts +4 -0
- package/dist/types/features/ItemTooltip/ItemTooltip.d.ts +2 -0
- package/dist/types/features/ItemTooltip/index.d.ts +1 -0
- package/dist/types/features/ItemsProvider/ItemsProvider.d.ts +6 -0
- package/dist/types/features/ItemsProvider/index.d.ts +1 -0
- package/dist/types/features/LandingMenu/LandingMenu.d.ts +2 -0
- package/dist/types/features/LandingMenu/MobileLandingMenu.d.ts +2 -0
- package/dist/types/features/LandingMenu/const.d.ts +2 -0
- package/dist/types/features/LandingMenu/index.d.ts +2 -0
- package/dist/types/features/LinksProvider/LinkToButton/LinkToButton.d.ts +8 -0
- package/dist/types/features/LinksProvider/LinksProvider.d.ts +2 -0
- package/dist/types/features/LocalFileSavingProgress/LocalFileSaveProgress.d.ts +3 -0
- package/dist/types/features/LocalFileSavingProgress/index.d.ts +1 -0
- package/dist/types/features/LoginWith/LoginWith.d.ts +2 -0
- package/dist/types/features/MediaUnavailableModal/MediaUnavailableModal.d.ts +3 -0
- package/dist/types/features/Modal/ConfirmModal.d.ts +27 -0
- package/dist/types/features/Modal/CookiesModal.d.ts +6 -0
- package/dist/types/features/Modal/InfoModal.d.ts +18 -0
- package/dist/types/features/Modal/ModalsWrapper.d.ts +3 -0
- package/dist/types/features/Modal/SetLinkToModal.d.ts +3 -0
- package/dist/types/features/Notifications/SigninErrorNotification.d.ts +3 -0
- package/dist/types/features/Notifications/SignupErrorNotification.d.ts +3 -0
- package/dist/types/features/Notifications/index.d.ts +2 -0
- package/dist/types/features/Pickers/ColorPicker/ColorItem.d.ts +9 -0
- package/dist/types/features/Pickers/ColorPicker/ColorPicker.d.ts +10 -0
- package/dist/types/features/Pickers/ColorPicker/SquareColorItem.d.ts +9 -0
- package/dist/types/features/Pickers/ConnectorLineStylePicker.d.ts +8 -0
- package/dist/types/features/Pickers/ConnectorPointerPicker/ConnectorPointerPicker.d.ts +8 -0
- package/dist/types/features/Pickers/FontSizePicker/FontSizePicker.d.ts +11 -0
- package/dist/types/features/Pickers/FontStylePicker.d.ts +8 -0
- package/dist/types/features/Pickers/FramePicker/FramePicker.d.ts +10 -0
- package/dist/types/features/Pickers/FramePicker/index.d.ts +1 -0
- package/dist/types/features/Pickers/HorizontalAlignmentPicker.d.ts +8 -0
- package/dist/types/features/Pickers/ShapeTypePicker.d.ts +10 -0
- package/dist/types/features/Pickers/SliderPicker/SliderPicker.d.ts +12 -0
- package/dist/types/features/Pickers/SliderPicker/index.d.ts +1 -0
- package/dist/types/features/Pickers/StrokeStylePicker/StrokeStylePicker.d.ts +8 -0
- package/dist/types/features/Pickers/StrokeStylePicker/index.d.ts +1 -0
- package/dist/types/features/Pickers/VerticalAlignmentPicker.d.ts +8 -0
- package/dist/types/features/Presence/BringToMe/BringToMe.d.ts +13 -0
- package/dist/types/features/Presence/PresenceUsers/EyeIcon.d.ts +4 -0
- package/dist/types/features/Presence/PresenceUsers/PresenceUserAvatar.d.ts +17 -0
- package/dist/types/features/Presence/PresenceUsers/PresenceUsers.d.ts +18 -0
- package/dist/types/features/Presence/UserTracking/UserTracking.d.ts +7 -0
- package/dist/types/features/ProfileSettingsModal/ProfileSettingsModal.d.ts +3 -0
- package/dist/types/features/ProfileSettingsModal/index.d.ts +1 -0
- package/dist/types/features/QuickAddButtons/QuickAddButtonsClear.d.ts +5 -0
- package/dist/types/features/Rename/RenameContext.d.ts +9 -0
- package/dist/types/features/Rename/RenameInput.d.ts +1 -0
- package/dist/types/features/Rename/index.d.ts +2 -0
- package/dist/types/features/ShapesPanel/ShapesCategory/ShapesCategory.d.ts +7 -0
- package/dist/types/features/ShapesPanel/ShapesPanel.d.ts +2 -0
- package/dist/types/features/ShapesPanel/ShapesPanelContext.d.ts +13 -0
- package/dist/types/features/ShapesPanel/index.d.ts +2 -0
- package/dist/types/features/ShareModal/SaveShareModal.d.ts +7 -0
- package/dist/types/features/ShareModal/SearchInput.d.ts +17 -0
- package/dist/types/features/ShareModal/ShareModal.d.ts +2 -0
- package/dist/types/features/ShareModal/SharePanel.d.ts +24 -0
- package/dist/types/features/ShareModal/index.d.ts +1 -0
- package/dist/types/features/ShareSnapshotModal/ShareSnapshotModal.d.ts +2 -0
- package/dist/types/features/ShareSnapshotModal/SnapshotNameInput.d.ts +5 -0
- package/dist/types/features/ShareSnapshotModal/index.d.ts +1 -0
- package/dist/types/features/SidePanel/LocalSidePanelContext.d.ts +12 -0
- package/dist/types/features/SidePanel/ResizableEdge.d.ts +7 -0
- package/dist/types/features/SidePanel/SidePanel.d.ts +2 -0
- package/dist/types/features/SidePanel/SidePanelContext.d.ts +14 -0
- package/dist/types/features/SidePanel/index.d.ts +3 -0
- package/dist/types/features/SidePanelsContainer/SidePanelsContainer.d.ts +6 -0
- package/dist/types/features/SidePanelsContainer/index.d.ts +1 -0
- package/dist/types/features/Templates/CreateTemplateModal/CreateTemplateModal.d.ts +2 -0
- package/dist/types/features/Templates/SelectTemplateModal/CategoriesMenu/CategoriesMenu.d.ts +7 -0
- package/dist/types/features/Templates/SelectTemplateModal/LanguagesDropdown/LanguagesDropdown.d.ts +6 -0
- package/dist/types/features/Templates/SelectTemplateModal/SelectTemplateModal.d.ts +3 -0
- package/dist/types/features/Templates/SelectTemplateModal/TemplateItemPreview/TemplateItemPreview.d.ts +14 -0
- package/dist/types/features/Templates/SelectTemplateModal/TemplateItemsGrid/TemplateItem/TemplateItem.d.ts +7 -0
- package/dist/types/features/Templates/SelectTemplateModal/TemplateItemsGrid/TemplateItemsGrid.d.ts +8 -0
- package/dist/types/features/Templates/TolgeeProvider.d.ts +2 -0
- package/dist/types/features/Templates/config.d.ts +1 -0
- package/dist/types/features/Templates/index.d.ts +2 -0
- package/dist/types/features/Templates/lib.d.ts +7 -0
- package/dist/types/features/TextEditor/Element.d.ts +3 -0
- package/dist/types/features/TextEditor/Leaf.d.ts +8 -0
- package/dist/types/features/TextEditor/TextEditor.d.ts +61 -0
- package/dist/types/features/TextEditor/verticalAlignmentToFlex.d.ts +2 -0
- package/dist/types/features/TitlePanel/TitlePanel.d.ts +2 -0
- package/dist/types/features/TitlePanel/index.d.ts +1 -0
- package/dist/types/features/ToastProvider.d.ts +1 -0
- package/dist/types/features/ToolsPanel/Buttons/AddConnector.d.ts +2 -0
- package/dist/types/features/ToolsPanel/Buttons/AddCounter.d.ts +1 -0
- package/dist/types/features/ToolsPanel/Buttons/AddDrawing/AddDrawing.d.ts +1 -0
- package/dist/types/features/ToolsPanel/Buttons/AddDrawing/AddDrawingContext.d.ts +11 -0
- package/dist/types/features/ToolsPanel/Buttons/AddDrawing/AddHighlighter/AddHighlighter.d.ts +1 -0
- package/dist/types/features/ToolsPanel/Buttons/AddDrawing/AddPen/AddPen.d.ts +1 -0
- package/dist/types/features/ToolsPanel/Buttons/AddDrawing/Eraser/Eraser.d.ts +1 -0
- package/dist/types/features/ToolsPanel/Buttons/AddFrame.d.ts +1 -0
- package/dist/types/features/ToolsPanel/Buttons/AddGameItem/AddCard.d.ts +6 -0
- package/dist/types/features/ToolsPanel/Buttons/AddGameItem/AddDice.d.ts +5 -0
- package/dist/types/features/ToolsPanel/Buttons/AddGameItem/AddGameItem.d.ts +1 -0
- package/dist/types/features/ToolsPanel/Buttons/AddGameItem/AddScreen.d.ts +1 -0
- package/dist/types/features/ToolsPanel/Buttons/AddMedia/AddMedia.d.ts +2 -0
- package/dist/types/features/ToolsPanel/Buttons/AddMedia/AddMediaButton.d.ts +8 -0
- package/dist/types/features/ToolsPanel/Buttons/AddShape/AddShape.d.ts +1 -0
- package/dist/types/features/ToolsPanel/Buttons/AddSticker.d.ts +1 -0
- package/dist/types/features/ToolsPanel/Buttons/AddTemplate.d.ts +1 -0
- package/dist/types/features/ToolsPanel/Buttons/AddText.d.ts +1 -0
- package/dist/types/features/ToolsPanel/Buttons/ButtonWithMenu/ButtonWithMenu.d.ts +8 -0
- package/dist/types/features/ToolsPanel/Buttons/ButtonWithMenu/index.d.ts +1 -0
- package/dist/types/features/ToolsPanel/Buttons/EventList/EventList.d.ts +2 -0
- package/dist/types/features/ToolsPanel/Buttons/EventList/History.d.ts +8 -0
- package/dist/types/features/ToolsPanel/Buttons/EventList/HistoryEvent.d.ts +7 -0
- package/dist/types/features/ToolsPanel/Buttons/EventList/PrettifiedEvent.d.ts +8 -0
- package/dist/types/features/ToolsPanel/Buttons/EventList/SyncJournal.d.ts +8 -0
- package/dist/types/features/ToolsPanel/Buttons/EventList/index.d.ts +1 -0
- package/dist/types/features/ToolsPanel/Buttons/Grab.d.ts +1 -0
- package/dist/types/features/ToolsPanel/Buttons/Redo.d.ts +1 -0
- package/dist/types/features/ToolsPanel/Buttons/Select.d.ts +6 -0
- package/dist/types/features/ToolsPanel/Buttons/Star.d.ts +1 -0
- package/dist/types/features/ToolsPanel/Buttons/Undo.d.ts +1 -0
- package/dist/types/features/ToolsPanel/PanelContext.d.ts +8 -0
- package/dist/types/features/ToolsPanel/ToolsPanel.d.ts +2 -0
- package/dist/types/features/ToolsPanel/ViewToolsPanel.d.ts +2 -0
- package/dist/types/features/ToolsPanel/index.d.ts +1 -0
- package/dist/types/features/UserPanel/ActionButtons/ActionButtons.d.ts +2 -0
- package/dist/types/features/UserPanel/Avatar/Avatar.d.ts +10 -0
- package/dist/types/features/UserPanel/Buttons/AddComment/AddComment.d.ts +1 -0
- package/dist/types/features/UserPanel/Buttons/AddComment/index.d.ts +1 -0
- package/dist/types/features/UserPanel/Buttons/ButtonWithMenu/ButtonWithMenu.d.ts +8 -0
- package/dist/types/features/UserPanel/Buttons/ShareBtn/ShareBtn.d.ts +2 -0
- package/dist/types/features/UserPanel/Buttons/TogglePresenceRender/TogglePresenceRender.d.ts +2 -0
- package/dist/types/features/UserPanel/UserAvatar/UserAvatar.d.ts +11 -0
- package/dist/types/features/UserPanel/UserDropdown/UserDropdown.d.ts +15 -0
- package/dist/types/features/UserPanel/UserPanel.d.ts +6 -0
- package/dist/types/features/UserPanel/UserPic/UserPic.d.ts +21 -0
- package/dist/types/features/UserPanel/icons/ChangePassword.d.ts +1 -0
- package/dist/types/features/UserPanel/icons/Logout.d.ts +1 -0
- package/dist/types/features/UserPlan/HistoryModal.d.ts +2 -0
- package/dist/types/features/UserPlan/HistoryTable.d.ts +1 -0
- package/dist/types/features/UserPlan/LimitsModal.d.ts +2 -0
- package/dist/types/features/UserPlan/LimitsTable.d.ts +1 -0
- package/dist/types/features/UserPlan/PlanCard.d.ts +23 -0
- package/dist/types/features/UserPlan/PlanCards.d.ts +5 -0
- package/dist/types/features/UserPlan/SelectPaymentModal.d.ts +4 -0
- package/dist/types/features/UserPlan/UserPlanModal.d.ts +2 -0
- package/dist/types/features/UserPlan/UserPlanUsage.d.ts +11 -0
- package/dist/types/features/UserPlan/index.d.ts +1 -0
- package/dist/types/features/VideoPlayer/VideoCanvasControls.d.ts +1 -0
- package/dist/types/features/VideoPlayer/VideoPlayer.d.ts +6 -0
- package/dist/types/features/ViewModeGuard.d.ts +14 -0
- package/dist/types/features/WalletLoginButton/WalletLoginButton.d.ts +5 -0
- package/dist/types/features/WalletLoginButton/index.d.ts +1 -0
- package/dist/types/features/Widgets/Navbar/Navbar.d.ts +3 -0
- package/dist/types/features/Widgets/Navbar/lead-icon.d.ts +7 -0
- package/dist/types/features/Widgets/form-notifications/password-changed.d.ts +2 -0
- package/dist/types/features/ZoomPanel/ZoomPanel.d.ts +1 -0
- package/dist/types/features/ZoomPanel/index.d.ts +1 -0
- package/dist/types/features/hyperLink/HyperLink.d.ts +1 -0
- package/dist/types/features/hyperLink/HyperLinkContext.d.ts +22 -0
- package/dist/types/features/hyperLink/HyperLinkInput/HyperLinkInput.d.ts +1 -0
- package/dist/types/features/hyperLink/index.d.ts +3 -0
- package/dist/types/initI18N.d.ts +2 -0
- package/dist/types/pages/AddEmailView/AddEmailPage.d.ts +2 -0
- package/dist/types/pages/AddEmailView/index.d.ts +1 -0
- package/dist/types/pages/BindEmailPage/BindEmailPage.d.ts +2 -0
- package/dist/types/pages/BindEmailPage/index.d.ts +1 -0
- package/dist/types/pages/BoardPage.d.ts +2 -0
- package/dist/types/pages/ForgotPasswordPage/ForgotPasswordPage.d.ts +2 -0
- package/dist/types/pages/ForgotPasswordPage/SuccessIcon.d.ts +5 -0
- package/dist/types/pages/ForgotPasswordPage/index.d.ts +1 -0
- package/dist/types/pages/HTMLSnapshot/HTMLSnapshot.d.ts +3 -0
- package/dist/types/pages/HTMLSnapshot/index.d.ts +1 -0
- package/dist/types/pages/RestorePasswordPage/RestorePasswordPage.d.ts +2 -0
- package/dist/types/pages/RestorePasswordPage/index.d.ts +1 -0
- package/dist/types/pages/SelectBoardPage/SelectBoardPage.d.ts +2 -0
- package/dist/types/pages/SelectBoardPage/getEmbedUrl.d.ts +1 -0
- package/dist/types/pages/SelectBoardPage/index.d.ts +1 -0
- package/dist/types/pages/SigninPage/SigninPage.d.ts +2 -0
- package/dist/types/pages/SigninPage/index.d.ts +1 -0
- package/dist/types/pages/SignupPage/EmailIcon.d.ts +7 -0
- package/dist/types/pages/SignupPage/LockIcon.d.ts +7 -0
- package/dist/types/pages/SignupPage/SignupPage.d.ts +2 -0
- package/dist/types/pages/TestPage.d.ts +2 -0
- package/dist/types/pages/VerifyMailPage/VerifyMailPage.d.ts +2 -0
- package/dist/types/pages/VerifyMailPage/index.d.ts +1 -0
- package/dist/types/pages/WelcomePage/WelcomePage.d.ts +4 -0
- package/dist/types/pages/WheelLogger/WheelLogger.d.ts +2 -0
- package/dist/types/pages/layouts/AppLayout.d.ts +10 -0
- package/dist/types/pages/layouts/AuthLayout/AuthLayout.d.ts +5 -0
- package/dist/types/pages/layouts/AuthLayout/Tail.d.ts +7 -0
- package/dist/types/pages/layouts/AuthLayout/index.d.ts +1 -0
- package/dist/types/shared/Lang/index.d.ts +2422 -0
- package/dist/types/shared/Logger.d.ts +19 -0
- package/dist/types/shared/RawEvents.d.ts +6 -0
- package/dist/types/shared/Subject.d.ts +12 -0
- package/dist/types/shared/ViewSettings.d.ts +116 -0
- package/dist/types/shared/api/ai/api.d.ts +2 -0
- package/dist/types/shared/api/ai/index.d.ts +3 -0
- package/dist/types/shared/api/ai/requestMap.d.ts +22 -0
- package/dist/types/shared/api/ai/types.d.ts +7 -0
- package/dist/types/shared/api/auth/api.d.ts +21 -0
- package/dist/types/shared/api/auth/index.d.ts +2 -0
- package/dist/types/shared/api/auth/types.d.ts +40 -0
- package/dist/types/shared/api/base/base.d.ts +23 -0
- package/dist/types/shared/api/base/httpError.d.ts +7 -0
- package/dist/types/shared/api/base/httpResponse.d.ts +4 -0
- package/dist/types/shared/api/base/interceptors.d.ts +21 -0
- package/dist/types/shared/api/base/types.d.ts +11 -0
- package/dist/types/shared/api/billing/api.d.ts +14 -0
- package/dist/types/shared/api/billing/index.d.ts +2 -0
- package/dist/types/shared/api/billing/types.d.ts +133 -0
- package/dist/types/shared/api/boards/api.d.ts +13 -0
- package/dist/types/shared/api/boards/index.d.ts +2 -0
- package/dist/types/shared/api/boards/types.d.ts +53 -0
- package/dist/types/shared/api/folders/api.d.ts +10 -0
- package/dist/types/shared/api/folders/index.d.ts +2 -0
- package/dist/types/shared/api/folders/types.d.ts +31 -0
- package/dist/types/shared/api/index.d.ts +9 -0
- package/dist/types/shared/api/media/index.d.ts +3 -0
- package/dist/types/shared/api/media/uploadAudio.d.ts +3 -0
- package/dist/types/shared/api/media/uploadImage.d.ts +3 -0
- package/dist/types/shared/api/media/uploadVideo.d.ts +3 -0
- package/dist/types/shared/api/types.d.ts +3 -0
- package/dist/types/shared/api/users/api.d.ts +7 -0
- package/dist/types/shared/api/users/index.d.ts +2 -0
- package/dist/types/shared/api/users/types.d.ts +15 -0
- package/dist/types/shared/lib/convertColors.d.ts +4 -0
- package/dist/types/shared/lib/debounce.d.ts +1 -0
- package/dist/types/shared/lib/getCorrectEnding.d.ts +1 -0
- package/dist/types/shared/lib/getEmailPrefix.d.ts +1 -0
- package/dist/types/shared/lib/handleClickDetection.d.ts +2 -0
- package/dist/types/shared/lib/isIframe.d.ts +1 -0
- package/dist/types/shared/lib/isMicroboardIframe.d.ts +1 -0
- package/dist/types/shared/lib/queryStringParser.d.ts +5 -0
- package/dist/types/shared/lib/regex.d.ts +1 -0
- package/dist/types/shared/lib/strictContext.d.ts +3 -0
- package/dist/types/shared/lib/throttle.d.ts +2 -0
- package/dist/types/shared/lib/useClickOutside.d.ts +4 -0
- package/dist/types/shared/lib/useClientRect.d.ts +4 -0
- package/dist/types/shared/lib/useDebounce.d.ts +1 -0
- package/dist/types/shared/lib/useForceUpdate.d.ts +1 -0
- package/dist/types/shared/lib/useHoverState.d.ts +6 -0
- package/dist/types/shared/lib/useIsPhoneScreen.d.ts +1 -0
- package/dist/types/shared/lib/useMediaQuery.d.ts +1 -0
- package/dist/types/shared/lib/withRouter.d.ts +9 -0
- package/dist/types/shared/ui-lib/Button/Button.d.ts +7 -0
- package/dist/types/shared/ui-lib/Button/Loader.d.ts +4 -0
- package/dist/types/shared/ui-lib/Button/index.d.ts +1 -0
- package/dist/types/shared/ui-lib/Checkbox/Checkbox.d.ts +10 -0
- package/dist/types/shared/ui-lib/Checkbox/index.d.ts +1 -0
- package/dist/types/shared/ui-lib/Dropdown/Chevron.d.ts +7 -0
- package/dist/types/shared/ui-lib/Icon/ConnectorIcon.d.ts +10 -0
- package/dist/types/shared/ui-lib/Icon/ConnectorPointerIcon.d.ts +10 -0
- package/dist/types/shared/ui-lib/Icon/EyeClosed.d.ts +2 -0
- package/dist/types/shared/ui-lib/Icon/EyeOpened.d.ts +2 -0
- package/dist/types/shared/ui-lib/Icon/FillColorIndicator/FillColorIndicator.d.ts +8 -0
- package/dist/types/shared/ui-lib/Icon/FillColorIndicator/index.d.ts +1 -0
- package/dist/types/shared/ui-lib/Icon/FrameIcon.d.ts +10 -0
- package/dist/types/shared/ui-lib/Icon/Icon.d.ts +11 -0
- package/dist/types/shared/ui-lib/Icon/Logo.d.ts +4 -0
- package/dist/types/shared/ui-lib/Icon/ShapeIcon.d.ts +10 -0
- package/dist/types/shared/ui-lib/Icon/StrokeColorIndicator.d.ts +6 -0
- package/dist/types/shared/ui-lib/Icon/TextColorIndicator/TextColorIndicator.d.ts +6 -0
- package/dist/types/shared/ui-lib/Icon/TextColorIndicator/index.d.ts +1 -0
- package/dist/types/shared/ui-lib/Icon/TextHighlightIndicator/TextHighlightIndicator.d.ts +6 -0
- package/dist/types/shared/ui-lib/Icon/TextHighlightIndicator/index.d.ts +1 -0
- package/dist/types/shared/ui-lib/Icon/index.d.ts +11 -0
- package/dist/types/shared/ui-lib/Input/EyeClose.d.ts +5 -0
- package/dist/types/shared/ui-lib/Input/EyeOpen.d.ts +6 -0
- package/dist/types/shared/ui-lib/Input/Input.d.ts +33 -0
- package/dist/types/shared/ui-lib/Input/index.d.ts +1 -0
- package/dist/types/shared/ui-lib/Link/Link.d.ts +6 -0
- package/dist/types/shared/ui-lib/Link/index.d.ts +1 -0
- package/dist/types/shared/ui-lib/Loader/Loader.d.ts +9 -0
- package/dist/types/shared/ui-lib/Notification/Notification.d.ts +19 -0
- package/dist/types/shared/ui-lib/Notification/index.d.ts +1 -0
- package/dist/types/shared/ui-lib/OuterLink/OuterLink.d.ts +5 -0
- package/dist/types/shared/ui-lib/OuterLink/index.d.ts +1 -0
- package/dist/types/shared/ui-lib/Selector/Selector.d.ts +28 -0
- package/dist/types/shared/ui-lib/Selector/index.d.ts +1 -0
- package/dist/types/shared/ui-lib/Toast/index.d.ts +2 -0
- package/dist/types/shared/ui-lib/Toast/notify.d.ts +33 -0
- package/dist/types/shared/ui-lib/ToggleMark/ToggleMark.d.ts +6 -0
- package/dist/types/shared/ui-lib/Tooltip/Tooltip.d.ts +16 -0
- package/dist/types/shared/ui-lib/Tooltip/index.d.ts +1 -0
- package/dist/types/shared/ui-lib/Transitions/FadeTransition.d.ts +3 -0
- package/dist/types/shared/ui-lib/Transitions/OpacityTransition.d.ts +2 -0
- package/dist/types/shared/ui-lib/Transitions/TopFade.d.ts +2 -0
- package/dist/types/shared/ui-lib/Transitions/index.d.ts +2 -0
- package/dist/types/shared/ui-lib/Transitions/types.d.ts +6 -0
- package/dist/types/shared/ui-lib/UIMainLoader/UIMainLoader.d.ts +2 -0
- package/dist/types/shared/ui-lib/UiAccordion/UiAccordion.d.ts +10 -0
- package/dist/types/shared/ui-lib/UiAccordion/index.d.ts +1 -0
- package/dist/types/shared/ui-lib/UiAdaptiveAccordion/UiAdaptiveAccordion.d.ts +18 -0
- package/dist/types/shared/ui-lib/UiAdaptiveAccordion/index.d.ts +2 -0
- package/dist/types/shared/ui-lib/UiButton/Loader.d.ts +4 -0
- package/dist/types/shared/ui-lib/UiButton/UiButton.d.ts +19 -0
- package/dist/types/shared/ui-lib/UiButton/index.d.ts +1 -0
- package/dist/types/shared/ui-lib/UiColorInput/UiColorInput.d.ts +11 -0
- package/dist/types/shared/ui-lib/UiColorInput/index.d.ts +1 -0
- package/dist/types/shared/ui-lib/UiLink/UiLink.d.ts +12 -0
- package/dist/types/shared/ui-lib/UiLink/index.d.ts +1 -0
- package/dist/types/shared/ui-lib/UiLoader/UiLoader.d.ts +9 -0
- package/dist/types/shared/ui-lib/UiLoader/index.d.ts +1 -0
- package/dist/types/shared/ui-lib/UiModal/UiModal.d.ts +16 -0
- package/dist/types/shared/ui-lib/UiModal/UiModalBackground.d.ts +2 -0
- package/dist/types/shared/ui-lib/UiModal/UiModalContext.d.ts +25 -0
- package/dist/types/shared/ui-lib/UiModal/index.d.ts +2 -0
- package/dist/types/shared/ui-lib/UiPanel/UiPanel.d.ts +14 -0
- package/dist/types/shared/ui-lib/UiPanel/index.d.ts +1 -0
- package/dist/types/shared/ui-lib/UiSelector/UiSelector.d.ts +20 -0
- package/dist/types/shared/ui-lib/UiSelector/index.d.ts +2 -0
- package/dist/types/shared/ui-lib/UiSeparator/UiSeparator.d.ts +8 -0
- package/dist/types/shared/ui-lib/UiSeparator/index.d.ts +1 -0
- package/dist/types/shared/ui-lib/UiSkeleton/UiSkeleton.d.ts +2 -0
- package/dist/types/shared/ui-lib/UiSkeleton/index.d.ts +1 -0
- package/dist/types/shared/ui-lib/UiSlider/UiSlider.d.ts +11 -0
- package/dist/types/shared/ui-lib/UiSlider/index.d.ts +1 -0
- package/dist/types/shared/ui-lib/UiSwitch/UiSwitch.d.ts +21 -0
- package/dist/types/shared/ui-lib/UiSwitch/index.d.ts +1 -0
- package/dist/types/version.d.ts +1 -0
- package/package.json +7 -5
package/dist/index.js
CHANGED
|
@@ -341173,16 +341173,16 @@ function getController(getBoard2, clipboard, account, appSettings) {
|
|
|
341173
341173
|
const isSelect = tools.getSelect() !== undefined;
|
|
341174
341174
|
const itemsUnderPointer = board.items.getUnderPointer();
|
|
341175
341175
|
if (itemsUnderPointer.length) {
|
|
341176
|
-
if (itemUnderPointer && itemUnderPointer
|
|
341176
|
+
if (itemUnderPointer && itemUnderPointer instanceof VideoItem) {
|
|
341177
341177
|
itemUnderPointer.setShouldShowControls(false);
|
|
341178
341178
|
}
|
|
341179
341179
|
itemUnderPointer = itemsUnderPointer[itemsUnderPointer.length - 1];
|
|
341180
|
-
if (itemUnderPointer
|
|
341180
|
+
if (itemUnderPointer instanceof VideoItem) {
|
|
341181
341181
|
itemUnderPointer.setShouldShowControls(true);
|
|
341182
341182
|
}
|
|
341183
341183
|
board.pointer.subject.publish(board.pointer);
|
|
341184
341184
|
} else if (itemUnderPointer) {
|
|
341185
|
-
if (itemUnderPointer
|
|
341185
|
+
if (itemUnderPointer instanceof VideoItem) {
|
|
341186
341186
|
itemUnderPointer.setShouldShowControls(false);
|
|
341187
341187
|
}
|
|
341188
341188
|
itemUnderPointer = undefined;
|
|
@@ -341589,7 +341589,6 @@ class Location {
|
|
|
341589
341589
|
}
|
|
341590
341590
|
|
|
341591
341591
|
// src/entities/AIInput/utils.ts
|
|
341592
|
-
var { i18n: i18n5 } = conf;
|
|
341593
341592
|
var PLACEHOLDER_OFFSET = "\t\t\t\t\t\t\t\t\t\t\t\t";
|
|
341594
341593
|
var getTextFromItem = (item) => {
|
|
341595
341594
|
const richText = item.getRichText();
|
|
@@ -341763,7 +341762,7 @@ function createNode2(board, inputValue, isUserRequest, parentItem, contextItems
|
|
|
341763
341762
|
nodeRichText.applyMaxWidth(600);
|
|
341764
341763
|
nodeRichText.setSelectionHorisontalAlignment("left");
|
|
341765
341764
|
nodeRichText.container.right = nodeRichText.container.left + 600;
|
|
341766
|
-
nodeRichText.editor.insertCopiedText(
|
|
341765
|
+
nodeRichText.editor.insertCopiedText(conf.i18n.t("AIInput.awaitingImageGeneration"));
|
|
341767
341766
|
node4.setId(crypto.randomUUID());
|
|
341768
341767
|
} else {
|
|
341769
341768
|
node4 = new AINode(board, isUserRequest, parentNodeId, contextItems, threadDirection);
|
|
@@ -341772,7 +341771,7 @@ function createNode2(board, inputValue, isUserRequest, parentItem, contextItems
|
|
|
341772
341771
|
nodeRichText.setSelectionHorisontalAlignment("left");
|
|
341773
341772
|
nodeRichText.container.right = nodeRichText.container.left + 600;
|
|
341774
341773
|
if (withPlaceholder) {
|
|
341775
|
-
nodeRichText.editor.insertCopiedText(
|
|
341774
|
+
nodeRichText.editor.insertCopiedText(conf.i18n.t("AIInput.generatingResponse") + PLACEHOLDER_OFFSET);
|
|
341776
341775
|
} else {
|
|
341777
341776
|
nodeRichText.editor.insertCopiedText(inputValue);
|
|
341778
341777
|
}
|
|
@@ -341960,69 +341959,67 @@ var EyeOpen = ({ isCurrentColor, ...props }) => {
|
|
|
341960
341959
|
};
|
|
341961
341960
|
|
|
341962
341961
|
// src/shared/ui-lib/Input/Input.tsx
|
|
341963
|
-
var Input = ({
|
|
341964
|
-
|
|
341965
|
-
|
|
341966
|
-
|
|
341967
|
-
|
|
341968
|
-
|
|
341969
|
-
|
|
341970
|
-
|
|
341971
|
-
|
|
341972
|
-
|
|
341973
|
-
|
|
341974
|
-
|
|
341975
|
-
|
|
341976
|
-
|
|
341977
|
-
|
|
341978
|
-
|
|
341979
|
-
|
|
341980
|
-
|
|
341981
|
-
|
|
341982
|
-
|
|
341983
|
-
|
|
341984
|
-
|
|
341985
|
-
|
|
341986
|
-
|
|
341987
|
-
|
|
341988
|
-
|
|
341989
|
-
|
|
341990
|
-
|
|
341962
|
+
var Input = (props) => {
|
|
341963
|
+
const {
|
|
341964
|
+
id: id3,
|
|
341965
|
+
prefixIcon,
|
|
341966
|
+
label,
|
|
341967
|
+
tab,
|
|
341968
|
+
keyhint,
|
|
341969
|
+
errorText,
|
|
341970
|
+
helperText,
|
|
341971
|
+
password,
|
|
341972
|
+
isSuccess,
|
|
341973
|
+
hasError,
|
|
341974
|
+
iconColor,
|
|
341975
|
+
postfixButton,
|
|
341976
|
+
inputContainerClassName,
|
|
341977
|
+
shouldFocus,
|
|
341978
|
+
successText,
|
|
341979
|
+
shouldSelect,
|
|
341980
|
+
disabled,
|
|
341981
|
+
onInput,
|
|
341982
|
+
onPaste,
|
|
341983
|
+
onCopy,
|
|
341984
|
+
onKeyDown,
|
|
341985
|
+
onKeyUp,
|
|
341986
|
+
onKeyPress,
|
|
341987
|
+
...restProps
|
|
341988
|
+
} = props;
|
|
341989
|
+
const [inputType, setInputType] = import_react147.useState(password ? "password" : ("type" in props) && props.type || "text");
|
|
341991
341990
|
const inputRef = import_react147.useRef(null);
|
|
341992
341991
|
const textareaRef = import_react147.useRef(null);
|
|
341993
341992
|
const handleInput = () => {
|
|
341994
|
-
|
|
341995
|
-
|
|
341996
|
-
|
|
341993
|
+
const ta4 = textareaRef.current;
|
|
341994
|
+
if (ta4) {
|
|
341995
|
+
ta4.style.height = "auto";
|
|
341996
|
+
ta4.style.height = `${ta4.scrollHeight}px`;
|
|
341997
341997
|
}
|
|
341998
341998
|
};
|
|
341999
341999
|
import_react147.useEffect(() => {
|
|
342000
|
-
if (multiline)
|
|
342000
|
+
if (props.multiline)
|
|
342001
342001
|
handleInput();
|
|
342002
|
-
|
|
342003
|
-
}, [textareaRef.current?.textLength === 0]);
|
|
342002
|
+
}, [textareaRef.current?.textLength]);
|
|
342004
342003
|
import_react147.useEffect(() => {
|
|
342005
|
-
const textarea2 = textareaRef.current;
|
|
342006
|
-
const input2 = inputRef.current;
|
|
342007
342004
|
if (shouldFocus) {
|
|
342008
|
-
if (
|
|
342009
|
-
|
|
342010
|
-
} else
|
|
342011
|
-
|
|
342005
|
+
if (inputRef.current) {
|
|
342006
|
+
inputRef.current.focus();
|
|
342007
|
+
} else {
|
|
342008
|
+
textareaRef.current?.focus();
|
|
342012
342009
|
}
|
|
342013
342010
|
}
|
|
342014
342011
|
if (shouldSelect) {
|
|
342015
|
-
if (
|
|
342016
|
-
|
|
342017
|
-
} else
|
|
342018
|
-
|
|
342012
|
+
if (inputRef.current) {
|
|
342013
|
+
inputRef.current.select();
|
|
342014
|
+
} else {
|
|
342015
|
+
textareaRef.current?.select();
|
|
342019
342016
|
}
|
|
342020
342017
|
}
|
|
342021
342018
|
}, []);
|
|
342022
342019
|
const togglePassword = (ev) => {
|
|
342023
342020
|
ev.stopPropagation();
|
|
342024
342021
|
ev.preventDefault();
|
|
342025
|
-
setInputType(
|
|
342022
|
+
setInputType((t10) => t10 === "text" ? "password" : "text");
|
|
342026
342023
|
};
|
|
342027
342024
|
const stopPropagation2 = (cb) => (ev) => {
|
|
342028
342025
|
ev.stopPropagation();
|
|
@@ -342042,31 +342039,28 @@ var Input = ({
|
|
|
342042
342039
|
}, prefixIcon && /* @__PURE__ */ import_react147.default.createElement("span", {
|
|
342043
342040
|
style: { color: iconColor },
|
|
342044
342041
|
className: "InputPrefix"
|
|
342045
|
-
}, prefixIcon), multiline ? /* @__PURE__ */ import_react147.default.createElement("textarea", {
|
|
342042
|
+
}, prefixIcon), props.multiline ? /* @__PURE__ */ import_react147.default.createElement("textarea", {
|
|
342046
342043
|
ref: textareaRef,
|
|
342047
|
-
className: "textarea",
|
|
342048
|
-
disabled,
|
|
342049
342044
|
id: id3,
|
|
342045
|
+
disabled,
|
|
342050
342046
|
rows: 1,
|
|
342051
|
-
|
|
342052
|
-
onInput: () => {
|
|
342047
|
+
onInput: (ev) => {
|
|
342053
342048
|
handleInput();
|
|
342054
|
-
|
|
342055
|
-
|
|
342056
|
-
|
|
342057
|
-
|
|
342049
|
+
props.onInput?.(ev);
|
|
342050
|
+
},
|
|
342051
|
+
onPaste: (ev) => ev.stopPropagation(),
|
|
342052
|
+
onCopy: (ev) => ev.stopPropagation(),
|
|
342053
|
+
...restProps
|
|
342058
342054
|
}) : /* @__PURE__ */ import_react147.default.createElement("input", {
|
|
342059
342055
|
ref: inputRef,
|
|
342060
|
-
onPaste: (event) => event.stopPropagation(),
|
|
342061
|
-
onCopy: (event) => event.stopPropagation(),
|
|
342062
342056
|
id: id3,
|
|
342063
342057
|
type: inputType,
|
|
342064
342058
|
className: "Input",
|
|
342065
342059
|
disabled,
|
|
342066
|
-
onKeyDown: stopPropagation2(
|
|
342067
|
-
onKeyUp: stopPropagation2(
|
|
342068
|
-
onKeyPress: stopPropagation2(
|
|
342069
|
-
...
|
|
342060
|
+
onKeyDown: stopPropagation2(onKeyDown),
|
|
342061
|
+
onKeyUp: stopPropagation2(onKeyUp),
|
|
342062
|
+
onKeyPress: stopPropagation2(onKeyPress),
|
|
342063
|
+
...restProps
|
|
342070
342064
|
}), password && inputType === "text" && /* @__PURE__ */ import_react147.default.createElement("div", {
|
|
342071
342065
|
className: "Eye"
|
|
342072
342066
|
}, /* @__PURE__ */ import_react147.default.createElement(EyeClose, {
|
|
@@ -342796,7 +342790,12 @@ function UiSwitch({ onChange, options: options3, value: value2 }) {
|
|
|
342796
342790
|
key: label,
|
|
342797
342791
|
className: clsx_default(UiSwitch_module_default.btn, optionValue === value2 && UiSwitch_module_default.active),
|
|
342798
342792
|
onClick: handleOptionClick(optionValue),
|
|
342799
|
-
ref: (ref4) =>
|
|
342793
|
+
ref: (ref4) => {
|
|
342794
|
+
if (!ref4) {
|
|
342795
|
+
return;
|
|
342796
|
+
}
|
|
342797
|
+
optionsRefs.current.push(ref4);
|
|
342798
|
+
}
|
|
342800
342799
|
}, /* @__PURE__ */ import_react158.default.createElement("span", {
|
|
342801
342800
|
className: UiSwitch_module_default.btnText
|
|
342802
342801
|
}, label))));
|
|
@@ -343704,7 +343703,7 @@ var Transition2 = ({
|
|
|
343704
343703
|
};
|
|
343705
343704
|
|
|
343706
343705
|
// src/features/UserPlan/PlanCards.tsx
|
|
343707
|
-
var { i18n:
|
|
343706
|
+
var { i18n: i18n5 } = conf;
|
|
343708
343707
|
var annualToMonthlyPrice = (price) => price ? Math.round(price / 12) : 0;
|
|
343709
343708
|
function BasicPlanCard() {
|
|
343710
343709
|
const { t: t10 } = useTranslation();
|
|
@@ -343739,7 +343738,7 @@ function BasicPlanCard() {
|
|
|
343739
343738
|
className: PlanCards_module_default.downgradeDesc
|
|
343740
343739
|
}, t10("userPlan.downgradeModal.description", {
|
|
343741
343740
|
planName: conf.planNames[account.billingInfo?.plan.name ?? "basic"],
|
|
343742
|
-
currentPeriodEnd: new Intl.DateTimeFormat(
|
|
343741
|
+
currentPeriodEnd: new Intl.DateTimeFormat(i18n5.language, {
|
|
343743
343742
|
year: "numeric",
|
|
343744
343743
|
month: "numeric",
|
|
343745
343744
|
day: "numeric"
|
|
@@ -343750,7 +343749,7 @@ function BasicPlanCard() {
|
|
|
343750
343749
|
header: "Тариф обновлен",
|
|
343751
343750
|
body: t10("userPlan.downgradeModal.description", {
|
|
343752
343751
|
planName: conf.planNames[account.billingInfo?.plan.name ?? "basic"],
|
|
343753
|
-
currentPeriodEnd: new Intl.DateTimeFormat(
|
|
343752
|
+
currentPeriodEnd: new Intl.DateTimeFormat(i18n5.language, {
|
|
343754
343753
|
year: "numeric",
|
|
343755
343754
|
month: "numeric",
|
|
343756
343755
|
day: "numeric"
|
|
@@ -343770,7 +343769,7 @@ function BasicPlanCard() {
|
|
|
343770
343769
|
}),
|
|
343771
343770
|
additionalFeature: t10("userPlan.plans.basic.tokensFeature"),
|
|
343772
343771
|
additionalFeatureTooltip: t10("userPlan.tokensTooltip"),
|
|
343773
|
-
activationDate: new Intl.DateTimeFormat(
|
|
343772
|
+
activationDate: new Intl.DateTimeFormat(i18n5.language, {
|
|
343774
343773
|
year: "numeric",
|
|
343775
343774
|
month: "numeric",
|
|
343776
343775
|
day: "numeric"
|
|
@@ -343818,7 +343817,7 @@ function PlusAIPlanCard() {
|
|
|
343818
343817
|
className: PlanCards_module_default.downgradeDesc
|
|
343819
343818
|
}, t10("userPlan.downgradeModal.description", {
|
|
343820
343819
|
planName: conf.planNames["plusAI"],
|
|
343821
|
-
currentPeriodEnd: new Intl.DateTimeFormat(
|
|
343820
|
+
currentPeriodEnd: new Intl.DateTimeFormat(i18n5.language, {
|
|
343822
343821
|
year: "numeric",
|
|
343823
343822
|
month: "numeric",
|
|
343824
343823
|
day: "numeric"
|
|
@@ -343829,7 +343828,7 @@ function PlusAIPlanCard() {
|
|
|
343829
343828
|
header: "Тариф обновлен",
|
|
343830
343829
|
body: t10("userPlan.downgradeModal.description", {
|
|
343831
343830
|
planName: conf.planNames["plusAI"],
|
|
343832
|
-
currentPeriodEnd: new Intl.DateTimeFormat(
|
|
343831
|
+
currentPeriodEnd: new Intl.DateTimeFormat(i18n5.language, {
|
|
343833
343832
|
year: "numeric",
|
|
343834
343833
|
month: "numeric",
|
|
343835
343834
|
day: "numeric"
|
|
@@ -343915,7 +343914,7 @@ function PlusPlanCard() {
|
|
|
343915
343914
|
className: PlanCards_module_default.downgradeDesc
|
|
343916
343915
|
}, t10("userPlan.downgradeModal.description", {
|
|
343917
343916
|
planName: conf.planNames["plus"],
|
|
343918
|
-
currentPeriodEnd: new Intl.DateTimeFormat(
|
|
343917
|
+
currentPeriodEnd: new Intl.DateTimeFormat(i18n5.language, {
|
|
343919
343918
|
year: "numeric",
|
|
343920
343919
|
month: "numeric",
|
|
343921
343920
|
day: "numeric"
|
|
@@ -343926,7 +343925,7 @@ function PlusPlanCard() {
|
|
|
343926
343925
|
header: "Тариф обновлен",
|
|
343927
343926
|
body: t10("userPlan.downgradeModal.description", {
|
|
343928
343927
|
planName: conf.planNames["plus"],
|
|
343929
|
-
currentPeriodEnd: new Intl.DateTimeFormat(
|
|
343928
|
+
currentPeriodEnd: new Intl.DateTimeFormat(i18n5.language, {
|
|
343930
343929
|
year: "numeric",
|
|
343931
343930
|
month: "numeric",
|
|
343932
343931
|
day: "numeric"
|
|
@@ -344051,7 +344050,7 @@ var LimitsTable_module_default = {
|
|
|
344051
344050
|
};
|
|
344052
344051
|
|
|
344053
344052
|
// src/features/UserPlan/HistoryTable.tsx
|
|
344054
|
-
var { i18n:
|
|
344053
|
+
var { i18n: i18n6 } = conf;
|
|
344055
344054
|
var PAYMENT_TYPE_DISPLAYNAME = {
|
|
344056
344055
|
card: "Card",
|
|
344057
344056
|
crypto: "Crypto"
|
|
@@ -344081,7 +344080,7 @@ function HistoryTable() {
|
|
|
344081
344080
|
})));
|
|
344082
344081
|
}
|
|
344083
344082
|
var centToUsd2 = (cents) => cents / 100;
|
|
344084
|
-
var formatDate = (date) => new Intl.DateTimeFormat(
|
|
344083
|
+
var formatDate = (date) => new Intl.DateTimeFormat(i18n6.language, {
|
|
344085
344084
|
year: "numeric",
|
|
344086
344085
|
month: "numeric",
|
|
344087
344086
|
day: "numeric"
|
|
@@ -344096,7 +344095,7 @@ function ModelRow({
|
|
|
344096
344095
|
}) {
|
|
344097
344096
|
const { t: t10 } = useTranslation();
|
|
344098
344097
|
const getPlanDisplayName = (planName) => {
|
|
344099
|
-
return
|
|
344098
|
+
return i18n6.language === "ru" ? t10(`userPlan.historyTable.planDisplayName.${planName}`, planName) : PLAN_DISPLAYNAME[planName] || planName;
|
|
344100
344099
|
};
|
|
344101
344100
|
return /* @__PURE__ */ import_react168.default.createElement("tr", null, /* @__PURE__ */ import_react168.default.createElement("td", {
|
|
344102
344101
|
className: LimitsTable_module_default.model
|
|
@@ -344245,7 +344244,7 @@ function Tooltip2({ text: text5, x: x9, y: y14, visible }) {
|
|
|
344245
344244
|
// src/features/UserPlan/LimitsModal.tsx
|
|
344246
344245
|
var LIMITS_MODAL_ID = Symbol("limitsModal");
|
|
344247
344246
|
function LimitsModal() {
|
|
344248
|
-
const { t: t10, i18n:
|
|
344247
|
+
const { t: t10, i18n: i18n7 } = useTranslation();
|
|
344249
344248
|
const account = useAccount2();
|
|
344250
344249
|
const { openModal: openModal2 } = useUiModalContext();
|
|
344251
344250
|
const handleBackButton = () => openModal2(USER_PLAN_MODAL_ID);
|
|
@@ -344259,7 +344258,7 @@ function LimitsModal() {
|
|
|
344259
344258
|
className: UserPlanModal_module_default.downgradeDesc
|
|
344260
344259
|
}, t10("userPlan.downgradeModal.description", {
|
|
344261
344260
|
planName: conf.planNames[account.billingInfo?.plan.name ?? "basic"],
|
|
344262
|
-
currentPeriodEnd: new Intl.DateTimeFormat(
|
|
344261
|
+
currentPeriodEnd: new Intl.DateTimeFormat(i18n7.language, {
|
|
344263
344262
|
year: "numeric",
|
|
344264
344263
|
month: "numeric",
|
|
344265
344264
|
day: "numeric"
|
|
@@ -344349,18 +344348,18 @@ function UserPlanUsage({
|
|
|
344349
344348
|
history: history2,
|
|
344350
344349
|
hasHistory
|
|
344351
344350
|
}) {
|
|
344352
|
-
const { t: t10, i18n:
|
|
344351
|
+
const { t: t10, i18n: i18n7 } = useTranslation();
|
|
344353
344352
|
const { openModal: openModal2 } = useUiModalContext();
|
|
344354
344353
|
const account = useAccount2();
|
|
344355
344354
|
const handleOpenLimitsModal = () => openModal2(LIMITS_MODAL_ID);
|
|
344356
344355
|
const handleOpenHistoryModal = () => openModal2(HISTORY_MODAL_ID);
|
|
344357
|
-
const formattedCancellationDate = new Intl.DateTimeFormat(
|
|
344356
|
+
const formattedCancellationDate = new Intl.DateTimeFormat(i18n7.language, {
|
|
344358
344357
|
year: "numeric",
|
|
344359
344358
|
month: "numeric",
|
|
344360
344359
|
day: "numeric"
|
|
344361
344360
|
}).format(new Date(cancellationDate ?? Date.now()));
|
|
344362
344361
|
const previousCancellationDate = new Date(new Date(cancellationDate ?? Date.now()).setDate(new Date(cancellationDate ?? Date.now()).getDate() - 1));
|
|
344363
|
-
const formattedPreviousCancellationDate = new Intl.DateTimeFormat(
|
|
344362
|
+
const formattedPreviousCancellationDate = new Intl.DateTimeFormat(i18n7.language, {
|
|
344364
344363
|
year: "numeric",
|
|
344365
344364
|
month: "numeric",
|
|
344366
344365
|
day: "numeric"
|
|
@@ -344423,7 +344422,7 @@ function UserPlanUsage({
|
|
|
344423
344422
|
var USER_PLAN_MODAL_ID = "USER_PLAN_MODAL_ID";
|
|
344424
344423
|
function UserPlanModal() {
|
|
344425
344424
|
const { openModal: openModal2 } = useUiModalContext();
|
|
344426
|
-
const { t: t10, i18n:
|
|
344425
|
+
const { t: t10, i18n: i18n7 } = useTranslation();
|
|
344427
344426
|
const account = useAccount2();
|
|
344428
344427
|
const currentModelId = account.billingInfo?.plan.name === "plusAI" ? "gpt-4o" : "gpt-4o-mini";
|
|
344429
344428
|
const currentModel = account.billingInfo?.models.find(({ id: id3 }) => id3 === currentModelId);
|
|
@@ -346301,7 +346300,9 @@ var SaveShareModal_module_default = {
|
|
|
346301
346300
|
|
|
346302
346301
|
// src/features/ShareModal/SaveShareModal.tsx
|
|
346303
346302
|
var SAVE_SHARE_MODAL = Symbol("saveShareModal");
|
|
346304
|
-
function SaveShareModal({
|
|
346303
|
+
function SaveShareModal({
|
|
346304
|
+
onSave
|
|
346305
|
+
}) {
|
|
346305
346306
|
const { openModal: openModal2, closeModal: closeModal2 } = useUiModalContext();
|
|
346306
346307
|
const { t: t10 } = useTranslation();
|
|
346307
346308
|
const onBackBtnClick = (ev) => {
|
|
@@ -356506,8 +356507,8 @@ var LandingMenu_module_default = {
|
|
|
356506
356507
|
// src/features/LandingMenu/LandingMenu.tsx
|
|
356507
356508
|
function LandingMenu() {
|
|
356508
356509
|
const [isOpen, setIsOpen] = import_react296.useState(true);
|
|
356509
|
-
const { t: t10, i18n:
|
|
356510
|
-
const isRu =
|
|
356510
|
+
const { t: t10, i18n: i18n7 } = useTranslation();
|
|
356511
|
+
const isRu = i18n7.language === "ru";
|
|
356511
356512
|
const landingUrl = isRu ? LANDING_URL : LANDING_URL_EN;
|
|
356512
356513
|
if (!isMicroboardIframe()) {
|
|
356513
356514
|
return null;
|
|
@@ -356578,8 +356579,8 @@ var MobileLandingMenu_module_default = {
|
|
|
356578
356579
|
// src/features/LandingMenu/MobileLandingMenu.tsx
|
|
356579
356580
|
function MobileLandingMenu() {
|
|
356580
356581
|
const [isOpen, setIsOpen] = import_react297.useState(false);
|
|
356581
|
-
const { t: t10, i18n:
|
|
356582
|
-
const isRu =
|
|
356582
|
+
const { t: t10, i18n: i18n7 } = useTranslation();
|
|
356583
|
+
const isRu = i18n7.language === "ru";
|
|
356583
356584
|
const landingUrl = isRu ? LANDING_URL : LANDING_URL_EN;
|
|
356584
356585
|
if (!isMicroboardIframe()) {
|
|
356585
356586
|
return null;
|
|
@@ -356702,10 +356703,10 @@ var CookiesModal_module_default = {
|
|
|
356702
356703
|
var CookiesModal = ({
|
|
356703
356704
|
className
|
|
356704
356705
|
}) => {
|
|
356705
|
-
const { t: t10, i18n:
|
|
356706
|
+
const { t: t10, i18n: i18n7 } = useTranslation();
|
|
356706
356707
|
const [open, setOpen] = import_react299.useState(false);
|
|
356707
356708
|
const redirectOnPolicy = () => {
|
|
356708
|
-
const policyUrl =
|
|
356709
|
+
const policyUrl = i18n7.language === "ru" ? "https://app.microboard.io/pdf/privacy_policy_ru.pdf" : "https://app.microboard.io/pdf/privacy_policy_en.pdf";
|
|
356709
356710
|
window.location.href = policyUrl;
|
|
356710
356711
|
};
|
|
356711
356712
|
const onAccept = () => {
|
|
@@ -420918,8 +420919,8 @@ var UserDropDown = ({
|
|
|
420918
420919
|
email,
|
|
420919
420920
|
openerRef,
|
|
420920
420921
|
customTop,
|
|
420921
|
-
followers,
|
|
420922
|
-
presenceUsers
|
|
420922
|
+
followers = [],
|
|
420923
|
+
presenceUsers = []
|
|
420923
420924
|
}) => {
|
|
420924
420925
|
const account = useAccount2();
|
|
420925
420926
|
const closeDropdown = () => {
|
|
@@ -421728,7 +421729,10 @@ var ExtraOptions_module_default = {
|
|
|
421728
421729
|
};
|
|
421729
421730
|
|
|
421730
421731
|
// src/entities/comments/Thread/ExtraOptions/ExtraOptions.tsx
|
|
421731
|
-
var ExtraOptions = ({
|
|
421732
|
+
var ExtraOptions = ({
|
|
421733
|
+
comment: comment3,
|
|
421734
|
+
canEdit
|
|
421735
|
+
}) => {
|
|
421732
421736
|
const [isCursorOnButton, setIsCursorOnButton] = import_react376.useState(false);
|
|
421733
421737
|
const [isCursorOnMenu, setIsCursorOnMenu] = import_react376.useState(false);
|
|
421734
421738
|
const { board } = useAppContext();
|
|
@@ -421848,7 +421852,9 @@ var CommentsContext = createStrictContext();
|
|
|
421848
421852
|
function useCommentsContext() {
|
|
421849
421853
|
return useStrictContext(CommentsContext);
|
|
421850
421854
|
}
|
|
421851
|
-
var CommentsContextProvider = ({
|
|
421855
|
+
var CommentsContextProvider = ({
|
|
421856
|
+
children
|
|
421857
|
+
}) => {
|
|
421852
421858
|
const [openedThreadId, setOpenedThreadId] = import_react378.useState(undefined);
|
|
421853
421859
|
const [showResolved, setShowResolved] = import_react378.useState(false);
|
|
421854
421860
|
const [showComments, setShowComments] = import_react378.useState(true);
|
|
@@ -422327,7 +422333,10 @@ var CreateComment_module_default = {
|
|
|
422327
422333
|
};
|
|
422328
422334
|
|
|
422329
422335
|
// src/entities/comments/CreateComment/CreateComment.tsx
|
|
422330
|
-
var CreateComment = ({
|
|
422336
|
+
var CreateComment = ({
|
|
422337
|
+
comment: comment3,
|
|
422338
|
+
className
|
|
422339
|
+
}) => {
|
|
422331
422340
|
const formRef = import_react384.useRef(null);
|
|
422332
422341
|
const [value2, setValue] = import_react384.useState("");
|
|
422333
422342
|
const { app, board } = useAppContext();
|
|
@@ -423094,7 +423103,10 @@ async function getFavicon2(url3) {
|
|
|
423094
423103
|
return;
|
|
423095
423104
|
}
|
|
423096
423105
|
}
|
|
423097
|
-
var LinkToButton = ({
|
|
423106
|
+
var LinkToButton = ({
|
|
423107
|
+
item,
|
|
423108
|
+
handleClick
|
|
423109
|
+
}) => {
|
|
423098
423110
|
const linkToButtonRef = import_react396.useRef(null);
|
|
423099
423111
|
const [iconUrl, setIconUrl] = import_react396.useState(undefined);
|
|
423100
423112
|
const imgRef = import_react396.useRef(null);
|
|
@@ -423877,7 +423889,7 @@ var VideoCanvasControls = () => {
|
|
|
423877
423889
|
const playBtnRef = import_react406.useRef(null);
|
|
423878
423890
|
const hoveredItem = board.items.getUnderPointer().pop();
|
|
423879
423891
|
const getCanvasPlayBtnMbr = () => {
|
|
423880
|
-
if (hoveredItem && hoveredItem
|
|
423892
|
+
if (hoveredItem && hoveredItem instanceof VideoItem && hoveredItem.getShouldShowControls() && hoveredItem.getPreviewUrl()) {
|
|
423881
423893
|
return hoveredItem.getPlayBtnMbr().getTransformed(board.camera.getMatrix());
|
|
423882
423894
|
}
|
|
423883
423895
|
return;
|
|
@@ -423885,7 +423897,7 @@ var VideoCanvasControls = () => {
|
|
|
423885
423897
|
const mbr = getCanvasPlayBtnMbr();
|
|
423886
423898
|
const onClick = (event) => {
|
|
423887
423899
|
event.stopPropagation();
|
|
423888
|
-
if (hoveredItem && hoveredItem
|
|
423900
|
+
if (hoveredItem && hoveredItem instanceof VideoItem) {
|
|
423889
423901
|
hoveredItem.setIsPlaying(true);
|
|
423890
423902
|
}
|
|
423891
423903
|
};
|
|
@@ -423908,7 +423920,9 @@ var VideoCanvasControls = () => {
|
|
|
423908
423920
|
};
|
|
423909
423921
|
|
|
423910
423922
|
// src/features/ItemsProvider/ItemsProvider.tsx
|
|
423911
|
-
var ItemsProvider = ({
|
|
423923
|
+
var ItemsProvider = ({
|
|
423924
|
+
itemsComponents
|
|
423925
|
+
}) => {
|
|
423912
423926
|
const { board } = useAppContext();
|
|
423913
423927
|
const forceUpdate = useForceUpdate2();
|
|
423914
423928
|
useAppSubscription({
|
|
@@ -443826,7 +443840,7 @@ var pasteWelcomeBoardData = (board, lang) => {
|
|
|
443826
443840
|
function WelcomePage() {
|
|
443827
443841
|
const { app } = useAppContext();
|
|
443828
443842
|
const navigate = useNavigate();
|
|
443829
|
-
const { i18n:
|
|
443843
|
+
const { i18n: i18n7, t: t11 } = useTranslation();
|
|
443830
443844
|
const boardsList = useBoardsList();
|
|
443831
443845
|
const createPublicBoard = async (app2) => {
|
|
443832
443846
|
const lastBoardId = app2.getLastBoardId();
|
|
@@ -443837,7 +443851,7 @@ function WelcomePage() {
|
|
|
443837
443851
|
const boardId = await boardsList.createBoard(t11("board.welcomeBoardTitle"), true);
|
|
443838
443852
|
await app2.openBoard(boardId);
|
|
443839
443853
|
const board = app2.getBoard();
|
|
443840
|
-
pasteWelcomeBoardData(board,
|
|
443854
|
+
pasteWelcomeBoardData(board, i18n7.language);
|
|
443841
443855
|
return boardId;
|
|
443842
443856
|
};
|
|
443843
443857
|
import_react417.default.useEffect(() => {
|
|
@@ -443853,7 +443867,7 @@ var BoardPage = () => {
|
|
|
443853
443867
|
const { app } = useAppContext();
|
|
443854
443868
|
const board = app.getBoard();
|
|
443855
443869
|
const params = useParams();
|
|
443856
|
-
const { t: t11, i18n:
|
|
443870
|
+
const { t: t11, i18n: i18n7 } = useTranslation();
|
|
443857
443871
|
const navigate = useNavigate();
|
|
443858
443872
|
const { search: search3 } = useLocation();
|
|
443859
443873
|
const [searchParams] = useSearchParams();
|
|
@@ -443912,7 +443926,7 @@ var BoardPage = () => {
|
|
|
443912
443926
|
});
|
|
443913
443927
|
app.render();
|
|
443914
443928
|
const board2 = app.getBoard();
|
|
443915
|
-
pasteWelcomeBoardData(board2,
|
|
443929
|
+
pasteWelcomeBoardData(board2, i18n7.language);
|
|
443916
443930
|
});
|
|
443917
443931
|
});
|
|
443918
443932
|
} else {
|
|
@@ -444417,7 +444431,7 @@ var AuthLayout_module_default = {
|
|
|
444417
444431
|
var AuthLayout = ({ showPolicies }) => {
|
|
444418
444432
|
const location3 = useLocation();
|
|
444419
444433
|
const navigate = useNavigate();
|
|
444420
|
-
const { t: t11, i18n:
|
|
444434
|
+
const { t: t11, i18n: i18n7 } = useTranslation();
|
|
444421
444435
|
import_react429.useEffect(() => {
|
|
444422
444436
|
const params = new URLSearchParams(location3.search);
|
|
444423
444437
|
if (params.get("authException") === "true") {
|
|
@@ -444441,10 +444455,10 @@ var AuthLayout = ({ showPolicies }) => {
|
|
|
444441
444455
|
}, /* @__PURE__ */ import_react429.default.createElement(Outlet, null)), showPolicies && /* @__PURE__ */ import_react429.default.createElement("div", {
|
|
444442
444456
|
className: AuthLayout_module_default.policy
|
|
444443
444457
|
}, t11("auth.policyWith"), " ", /* @__PURE__ */ import_react429.default.createElement(OuterLink, {
|
|
444444
|
-
href:
|
|
444458
|
+
href: i18n7.language === "ru" ? window.location.origin + "/pdf/terms_conditions_ru.pdf" : window.location.origin + "/pdf/terms_conditions_en.pdf",
|
|
444445
444459
|
className: AuthLayout_module_default.policyLink
|
|
444446
444460
|
}, t11("auth.termsAndConditions")), " ", t11("common.and"), " ", /* @__PURE__ */ import_react429.default.createElement(OuterLink, {
|
|
444447
|
-
href:
|
|
444461
|
+
href: i18n7.language === "ru" ? window.location.origin + "/pdf/privacy_policy_ru.pdf" : window.location.origin + "/pdf/privacy_policy_en.pdf",
|
|
444448
444462
|
className: AuthLayout_module_default.policyLink
|
|
444449
444463
|
}, t11("auth.privacyPolicy")))));
|
|
444450
444464
|
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Board, BoardSnapshot } from "microboard-temp";
|
|
2
|
+
import { Account } from "entities/account";
|
|
3
|
+
import "shared/Lang";
|
|
4
|
+
import { Subject } from "../shared/Subject";
|
|
5
|
+
import { BoardsList } from "./BoardsList";
|
|
6
|
+
import { Clipboard } from "./Clipboard";
|
|
7
|
+
import { Connection } from "./Connection";
|
|
8
|
+
import { Controller } from "./getController";
|
|
9
|
+
import { Subscriptions } from "./getSubscriptions";
|
|
10
|
+
import { Location } from "./Location";
|
|
11
|
+
import { SessionStorage } from "./SessionStorage";
|
|
12
|
+
import { Storage } from "./Storage";
|
|
13
|
+
import { TestRecorder } from "./testRecorder";
|
|
14
|
+
export declare const LAST_BOARD_KEY = "lastSeenBoard";
|
|
15
|
+
export declare const LAST_BOARD_KEY_QS: string;
|
|
16
|
+
type ControlMode = "auto" | "mouse" | "trackpad";
|
|
17
|
+
export type AppSettings = {
|
|
18
|
+
controlMode: ControlMode;
|
|
19
|
+
};
|
|
20
|
+
export interface App {
|
|
21
|
+
connection: Connection;
|
|
22
|
+
clipboard: Clipboard;
|
|
23
|
+
location: Location;
|
|
24
|
+
storage: Storage;
|
|
25
|
+
controller: Controller;
|
|
26
|
+
account: Account;
|
|
27
|
+
boardsList: BoardsList;
|
|
28
|
+
boardSubject: Subject<unknown>;
|
|
29
|
+
subscriptions: Subscriptions;
|
|
30
|
+
openBoard: (id: string, accessKey?: string) => Promise<void>;
|
|
31
|
+
openBoardFromFile: () => Promise<void>;
|
|
32
|
+
getBoard: () => Board;
|
|
33
|
+
getConnection: () => Connection;
|
|
34
|
+
getLastBoardId: () => string | null;
|
|
35
|
+
render: () => void;
|
|
36
|
+
localRender: (id: string) => void;
|
|
37
|
+
test: TestRecorder;
|
|
38
|
+
getSnapshot(boardId: string): BoardSnapshot | null;
|
|
39
|
+
sessionStorage: SessionStorage;
|
|
40
|
+
getConnectedBoard: (boardId: string) => Board | null;
|
|
41
|
+
openAndEditFile(): Promise<string | undefined>;
|
|
42
|
+
enableLogger(): void;
|
|
43
|
+
disableLogger(): void;
|
|
44
|
+
getLocalEditFileHandler: () => FileSystemFileHandle | undefined;
|
|
45
|
+
settings: AppSettings;
|
|
46
|
+
setControlMode: (mode: ControlMode) => void;
|
|
47
|
+
getSettings: () => AppSettings;
|
|
48
|
+
}
|
|
49
|
+
export declare function createApp(isHistory?: boolean): App;
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { Account } from "entities/account";
|
|
2
|
+
import { boardsApi, foldersApi } from "shared/api";
|
|
3
|
+
import { Subject } from "shared/Subject";
|
|
4
|
+
import { Storage } from "./Storage";
|
|
5
|
+
type FolderItem = {
|
|
6
|
+
id: string | number;
|
|
7
|
+
title: string;
|
|
8
|
+
itemType: "board" | "folder";
|
|
9
|
+
type?: foldersApi.FolderType;
|
|
10
|
+
};
|
|
11
|
+
export declare class BoardsList {
|
|
12
|
+
private readonly storage;
|
|
13
|
+
private readonly account;
|
|
14
|
+
subject: Subject<void>;
|
|
15
|
+
private sharedFolder;
|
|
16
|
+
private rootFolder;
|
|
17
|
+
private draftsFolder;
|
|
18
|
+
private activeDndItem;
|
|
19
|
+
private overDndItem;
|
|
20
|
+
isLoading: boolean;
|
|
21
|
+
constructor(storage: Storage, account: Account);
|
|
22
|
+
getSharedFolder(): foldersApi.Folder | null;
|
|
23
|
+
getRootFolder(): foldersApi.Folder | null;
|
|
24
|
+
getDraftsFolder(): foldersApi.Folder | null;
|
|
25
|
+
createFolder(title?: string, parentFolder?: number): Promise<number>;
|
|
26
|
+
createBoard(name?: string, isPublic?: boolean, parentFolder?: number): Promise<string>;
|
|
27
|
+
getBoardInfo(boardId: string | null): foldersApi.NestedBoard | null;
|
|
28
|
+
private findPathToBoard;
|
|
29
|
+
getPathToBoard(boardId: string): number[] | null;
|
|
30
|
+
private findPathToFolder;
|
|
31
|
+
getPathToFolder(folderId: number): number[] | null;
|
|
32
|
+
isFolderContainsBoard(folderId: number, boardId: string): boolean;
|
|
33
|
+
isFolderContainsFolder(folderId: number, targetFolderId: number): boolean;
|
|
34
|
+
getFolder(folderId: number | null): foldersApi.Folder | foldersApi.NestedFolder | null;
|
|
35
|
+
getFolderByType(folderType: foldersApi.FolderType): foldersApi.Folder | foldersApi.NestedFolder | null;
|
|
36
|
+
loadBoards(): Promise<void>;
|
|
37
|
+
updatePrivacySettings(boardId: string, isPublic: boolean, mode: boardsApi.DirectAccessType): Promise<void>;
|
|
38
|
+
private updateEmptyTitles;
|
|
39
|
+
visitBoard(id: string): Promise<Promise<void>>;
|
|
40
|
+
claim(): Promise<void>;
|
|
41
|
+
rename(boardId: string, name: string): Promise<void>;
|
|
42
|
+
renameFolder(folderId: number, name: string): Promise<void>;
|
|
43
|
+
removeBoard(boardId: string): Promise<void>;
|
|
44
|
+
addItemToFolder(folderId: number, item: foldersApi.NestedBoard | foldersApi.NestedFolder, order?: number): Promise<void>;
|
|
45
|
+
getItemIndexInFolder(folderId: number, itemId: string | number): number | null;
|
|
46
|
+
removeItemFromFolder(folderId: number, itemId: string | number): Promise<void>;
|
|
47
|
+
removeFolder(folderId: number): Promise<void>;
|
|
48
|
+
private updateDetails;
|
|
49
|
+
manageAccess(boardId: string, payload: boardsApi.ManageAccessPayload): Promise<void>;
|
|
50
|
+
setDraggableDndItem(item: FolderItem | null): void;
|
|
51
|
+
getDraggableDndItem(): FolderItem;
|
|
52
|
+
setOverDndItem(item: FolderItem | null): void;
|
|
53
|
+
getOverDndItem(): FolderItem;
|
|
54
|
+
private updateList;
|
|
55
|
+
private action;
|
|
56
|
+
}
|
|
57
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Item } from "microboard-temp";
|
|
2
|
+
import type { ItemData } from "microboard-temp";
|
|
3
|
+
export declare class Clipboard {
|
|
4
|
+
items: {
|
|
5
|
+
[key: string]: ItemData;
|
|
6
|
+
};
|
|
7
|
+
list(): Item[];
|
|
8
|
+
set(data: {
|
|
9
|
+
[key: string]: ItemData;
|
|
10
|
+
} | null): void;
|
|
11
|
+
get(): {
|
|
12
|
+
[key: string]: ItemData;
|
|
13
|
+
} | null;
|
|
14
|
+
}
|