microboard-ui-temp 0.1.38 → 0.1.39
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 +89 -74
- 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;
|
|
@@ -341960,69 +341960,67 @@ var EyeOpen = ({ isCurrentColor, ...props }) => {
|
|
|
341960
341960
|
};
|
|
341961
341961
|
|
|
341962
341962
|
// 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
|
-
|
|
341963
|
+
var Input = (props) => {
|
|
341964
|
+
const {
|
|
341965
|
+
id: id3,
|
|
341966
|
+
prefixIcon,
|
|
341967
|
+
label,
|
|
341968
|
+
tab,
|
|
341969
|
+
keyhint,
|
|
341970
|
+
errorText,
|
|
341971
|
+
helperText,
|
|
341972
|
+
password,
|
|
341973
|
+
isSuccess,
|
|
341974
|
+
hasError,
|
|
341975
|
+
iconColor,
|
|
341976
|
+
postfixButton,
|
|
341977
|
+
inputContainerClassName,
|
|
341978
|
+
shouldFocus,
|
|
341979
|
+
successText,
|
|
341980
|
+
shouldSelect,
|
|
341981
|
+
disabled,
|
|
341982
|
+
onInput,
|
|
341983
|
+
onPaste,
|
|
341984
|
+
onCopy,
|
|
341985
|
+
onKeyDown,
|
|
341986
|
+
onKeyUp,
|
|
341987
|
+
onKeyPress,
|
|
341988
|
+
...restProps
|
|
341989
|
+
} = props;
|
|
341990
|
+
const [inputType, setInputType] = import_react147.useState(password ? "password" : ("type" in props) && props.type || "text");
|
|
341991
341991
|
const inputRef = import_react147.useRef(null);
|
|
341992
341992
|
const textareaRef = import_react147.useRef(null);
|
|
341993
341993
|
const handleInput = () => {
|
|
341994
|
-
|
|
341995
|
-
|
|
341996
|
-
|
|
341994
|
+
const ta4 = textareaRef.current;
|
|
341995
|
+
if (ta4) {
|
|
341996
|
+
ta4.style.height = "auto";
|
|
341997
|
+
ta4.style.height = `${ta4.scrollHeight}px`;
|
|
341997
341998
|
}
|
|
341998
341999
|
};
|
|
341999
342000
|
import_react147.useEffect(() => {
|
|
342000
|
-
if (multiline)
|
|
342001
|
+
if (props.multiline)
|
|
342001
342002
|
handleInput();
|
|
342002
|
-
|
|
342003
|
-
}, [textareaRef.current?.textLength === 0]);
|
|
342003
|
+
}, [textareaRef.current?.textLength]);
|
|
342004
342004
|
import_react147.useEffect(() => {
|
|
342005
|
-
const textarea2 = textareaRef.current;
|
|
342006
|
-
const input2 = inputRef.current;
|
|
342007
342005
|
if (shouldFocus) {
|
|
342008
|
-
if (
|
|
342009
|
-
|
|
342010
|
-
} else
|
|
342011
|
-
|
|
342006
|
+
if (inputRef.current) {
|
|
342007
|
+
inputRef.current.focus();
|
|
342008
|
+
} else {
|
|
342009
|
+
textareaRef.current?.focus();
|
|
342012
342010
|
}
|
|
342013
342011
|
}
|
|
342014
342012
|
if (shouldSelect) {
|
|
342015
|
-
if (
|
|
342016
|
-
|
|
342017
|
-
} else
|
|
342018
|
-
|
|
342013
|
+
if (inputRef.current) {
|
|
342014
|
+
inputRef.current.select();
|
|
342015
|
+
} else {
|
|
342016
|
+
textareaRef.current?.select();
|
|
342019
342017
|
}
|
|
342020
342018
|
}
|
|
342021
342019
|
}, []);
|
|
342022
342020
|
const togglePassword = (ev) => {
|
|
342023
342021
|
ev.stopPropagation();
|
|
342024
342022
|
ev.preventDefault();
|
|
342025
|
-
setInputType(
|
|
342023
|
+
setInputType((t10) => t10 === "text" ? "password" : "text");
|
|
342026
342024
|
};
|
|
342027
342025
|
const stopPropagation2 = (cb) => (ev) => {
|
|
342028
342026
|
ev.stopPropagation();
|
|
@@ -342042,31 +342040,28 @@ var Input = ({
|
|
|
342042
342040
|
}, prefixIcon && /* @__PURE__ */ import_react147.default.createElement("span", {
|
|
342043
342041
|
style: { color: iconColor },
|
|
342044
342042
|
className: "InputPrefix"
|
|
342045
|
-
}, prefixIcon), multiline ? /* @__PURE__ */ import_react147.default.createElement("textarea", {
|
|
342043
|
+
}, prefixIcon), props.multiline ? /* @__PURE__ */ import_react147.default.createElement("textarea", {
|
|
342046
342044
|
ref: textareaRef,
|
|
342047
|
-
className: "textarea",
|
|
342048
|
-
disabled,
|
|
342049
342045
|
id: id3,
|
|
342046
|
+
disabled,
|
|
342050
342047
|
rows: 1,
|
|
342051
|
-
|
|
342052
|
-
onInput: () => {
|
|
342048
|
+
onInput: (ev) => {
|
|
342053
342049
|
handleInput();
|
|
342054
|
-
|
|
342055
|
-
|
|
342056
|
-
|
|
342057
|
-
|
|
342050
|
+
props.onInput?.(ev);
|
|
342051
|
+
},
|
|
342052
|
+
onPaste: (ev) => ev.stopPropagation(),
|
|
342053
|
+
onCopy: (ev) => ev.stopPropagation(),
|
|
342054
|
+
...restProps
|
|
342058
342055
|
}) : /* @__PURE__ */ import_react147.default.createElement("input", {
|
|
342059
342056
|
ref: inputRef,
|
|
342060
|
-
onPaste: (event) => event.stopPropagation(),
|
|
342061
|
-
onCopy: (event) => event.stopPropagation(),
|
|
342062
342057
|
id: id3,
|
|
342063
342058
|
type: inputType,
|
|
342064
342059
|
className: "Input",
|
|
342065
342060
|
disabled,
|
|
342066
|
-
onKeyDown: stopPropagation2(
|
|
342067
|
-
onKeyUp: stopPropagation2(
|
|
342068
|
-
onKeyPress: stopPropagation2(
|
|
342069
|
-
...
|
|
342061
|
+
onKeyDown: stopPropagation2(onKeyDown),
|
|
342062
|
+
onKeyUp: stopPropagation2(onKeyUp),
|
|
342063
|
+
onKeyPress: stopPropagation2(onKeyPress),
|
|
342064
|
+
...restProps
|
|
342070
342065
|
}), password && inputType === "text" && /* @__PURE__ */ import_react147.default.createElement("div", {
|
|
342071
342066
|
className: "Eye"
|
|
342072
342067
|
}, /* @__PURE__ */ import_react147.default.createElement(EyeClose, {
|
|
@@ -342796,7 +342791,12 @@ function UiSwitch({ onChange, options: options3, value: value2 }) {
|
|
|
342796
342791
|
key: label,
|
|
342797
342792
|
className: clsx_default(UiSwitch_module_default.btn, optionValue === value2 && UiSwitch_module_default.active),
|
|
342798
342793
|
onClick: handleOptionClick(optionValue),
|
|
342799
|
-
ref: (ref4) =>
|
|
342794
|
+
ref: (ref4) => {
|
|
342795
|
+
if (!ref4) {
|
|
342796
|
+
return;
|
|
342797
|
+
}
|
|
342798
|
+
optionsRefs.current.push(ref4);
|
|
342799
|
+
}
|
|
342800
342800
|
}, /* @__PURE__ */ import_react158.default.createElement("span", {
|
|
342801
342801
|
className: UiSwitch_module_default.btnText
|
|
342802
342802
|
}, label))));
|
|
@@ -346301,7 +346301,9 @@ var SaveShareModal_module_default = {
|
|
|
346301
346301
|
|
|
346302
346302
|
// src/features/ShareModal/SaveShareModal.tsx
|
|
346303
346303
|
var SAVE_SHARE_MODAL = Symbol("saveShareModal");
|
|
346304
|
-
function SaveShareModal({
|
|
346304
|
+
function SaveShareModal({
|
|
346305
|
+
onSave
|
|
346306
|
+
}) {
|
|
346305
346307
|
const { openModal: openModal2, closeModal: closeModal2 } = useUiModalContext();
|
|
346306
346308
|
const { t: t10 } = useTranslation();
|
|
346307
346309
|
const onBackBtnClick = (ev) => {
|
|
@@ -420918,8 +420920,8 @@ var UserDropDown = ({
|
|
|
420918
420920
|
email,
|
|
420919
420921
|
openerRef,
|
|
420920
420922
|
customTop,
|
|
420921
|
-
followers,
|
|
420922
|
-
presenceUsers
|
|
420923
|
+
followers = [],
|
|
420924
|
+
presenceUsers = []
|
|
420923
420925
|
}) => {
|
|
420924
420926
|
const account = useAccount2();
|
|
420925
420927
|
const closeDropdown = () => {
|
|
@@ -421728,7 +421730,10 @@ var ExtraOptions_module_default = {
|
|
|
421728
421730
|
};
|
|
421729
421731
|
|
|
421730
421732
|
// src/entities/comments/Thread/ExtraOptions/ExtraOptions.tsx
|
|
421731
|
-
var ExtraOptions = ({
|
|
421733
|
+
var ExtraOptions = ({
|
|
421734
|
+
comment: comment3,
|
|
421735
|
+
canEdit
|
|
421736
|
+
}) => {
|
|
421732
421737
|
const [isCursorOnButton, setIsCursorOnButton] = import_react376.useState(false);
|
|
421733
421738
|
const [isCursorOnMenu, setIsCursorOnMenu] = import_react376.useState(false);
|
|
421734
421739
|
const { board } = useAppContext();
|
|
@@ -421848,7 +421853,9 @@ var CommentsContext = createStrictContext();
|
|
|
421848
421853
|
function useCommentsContext() {
|
|
421849
421854
|
return useStrictContext(CommentsContext);
|
|
421850
421855
|
}
|
|
421851
|
-
var CommentsContextProvider = ({
|
|
421856
|
+
var CommentsContextProvider = ({
|
|
421857
|
+
children
|
|
421858
|
+
}) => {
|
|
421852
421859
|
const [openedThreadId, setOpenedThreadId] = import_react378.useState(undefined);
|
|
421853
421860
|
const [showResolved, setShowResolved] = import_react378.useState(false);
|
|
421854
421861
|
const [showComments, setShowComments] = import_react378.useState(true);
|
|
@@ -422327,7 +422334,10 @@ var CreateComment_module_default = {
|
|
|
422327
422334
|
};
|
|
422328
422335
|
|
|
422329
422336
|
// src/entities/comments/CreateComment/CreateComment.tsx
|
|
422330
|
-
var CreateComment = ({
|
|
422337
|
+
var CreateComment = ({
|
|
422338
|
+
comment: comment3,
|
|
422339
|
+
className
|
|
422340
|
+
}) => {
|
|
422331
422341
|
const formRef = import_react384.useRef(null);
|
|
422332
422342
|
const [value2, setValue] = import_react384.useState("");
|
|
422333
422343
|
const { app, board } = useAppContext();
|
|
@@ -423094,7 +423104,10 @@ async function getFavicon2(url3) {
|
|
|
423094
423104
|
return;
|
|
423095
423105
|
}
|
|
423096
423106
|
}
|
|
423097
|
-
var LinkToButton = ({
|
|
423107
|
+
var LinkToButton = ({
|
|
423108
|
+
item,
|
|
423109
|
+
handleClick
|
|
423110
|
+
}) => {
|
|
423098
423111
|
const linkToButtonRef = import_react396.useRef(null);
|
|
423099
423112
|
const [iconUrl, setIconUrl] = import_react396.useState(undefined);
|
|
423100
423113
|
const imgRef = import_react396.useRef(null);
|
|
@@ -423877,7 +423890,7 @@ var VideoCanvasControls = () => {
|
|
|
423877
423890
|
const playBtnRef = import_react406.useRef(null);
|
|
423878
423891
|
const hoveredItem = board.items.getUnderPointer().pop();
|
|
423879
423892
|
const getCanvasPlayBtnMbr = () => {
|
|
423880
|
-
if (hoveredItem && hoveredItem
|
|
423893
|
+
if (hoveredItem && hoveredItem instanceof VideoItem && hoveredItem.getShouldShowControls() && hoveredItem.getPreviewUrl()) {
|
|
423881
423894
|
return hoveredItem.getPlayBtnMbr().getTransformed(board.camera.getMatrix());
|
|
423882
423895
|
}
|
|
423883
423896
|
return;
|
|
@@ -423885,7 +423898,7 @@ var VideoCanvasControls = () => {
|
|
|
423885
423898
|
const mbr = getCanvasPlayBtnMbr();
|
|
423886
423899
|
const onClick = (event) => {
|
|
423887
423900
|
event.stopPropagation();
|
|
423888
|
-
if (hoveredItem && hoveredItem
|
|
423901
|
+
if (hoveredItem && hoveredItem instanceof VideoItem) {
|
|
423889
423902
|
hoveredItem.setIsPlaying(true);
|
|
423890
423903
|
}
|
|
423891
423904
|
};
|
|
@@ -423908,7 +423921,9 @@ var VideoCanvasControls = () => {
|
|
|
423908
423921
|
};
|
|
423909
423922
|
|
|
423910
423923
|
// src/features/ItemsProvider/ItemsProvider.tsx
|
|
423911
|
-
var ItemsProvider = ({
|
|
423924
|
+
var ItemsProvider = ({
|
|
423925
|
+
itemsComponents
|
|
423926
|
+
}) => {
|
|
423912
423927
|
const { board } = useAppContext();
|
|
423913
423928
|
const forceUpdate = useForceUpdate2();
|
|
423914
423929
|
useAppSubscription({
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { AiChatMsg, BoardEventMsg, ConfirmationMsg, SnapshotRequestMsg, ModeMsg, SyncBoardEvent } from "microboard-temp";
|
|
2
|
+
import { Board, PresenceEventMsg, PresenceEventType, UserJoinMsg } from "microboard-temp";
|
|
3
|
+
import type { Account } from "entities/account";
|
|
4
|
+
import { Subject } from "shared/Subject";
|
|
5
|
+
import { Storage } from "./Storage";
|
|
6
|
+
export interface AuthMsg {
|
|
7
|
+
type: "Auth";
|
|
8
|
+
jwt: string;
|
|
9
|
+
}
|
|
10
|
+
export interface LogoutMsg {
|
|
11
|
+
type: "Logout";
|
|
12
|
+
}
|
|
13
|
+
export interface InvalidateRightsMsg {
|
|
14
|
+
type: "InvalidateRights";
|
|
15
|
+
boardId: string;
|
|
16
|
+
byUser: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface GetModeMsg {
|
|
19
|
+
type: "GetMode";
|
|
20
|
+
boardId: string;
|
|
21
|
+
}
|
|
22
|
+
export interface SubscribeMsg {
|
|
23
|
+
type: "Subscribe";
|
|
24
|
+
boardId: string;
|
|
25
|
+
userId: string;
|
|
26
|
+
index: number;
|
|
27
|
+
accessKey?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface UnsubscribeMsg {
|
|
30
|
+
type: "Unsubscribe";
|
|
31
|
+
boardId: string;
|
|
32
|
+
}
|
|
33
|
+
export interface ErrorMsg {
|
|
34
|
+
type: "Error";
|
|
35
|
+
message: string;
|
|
36
|
+
deniedBoardId?: string;
|
|
37
|
+
expectedSequence?: number;
|
|
38
|
+
receivedSequence?: number;
|
|
39
|
+
}
|
|
40
|
+
export interface VersionCheckMsg {
|
|
41
|
+
type: "VersionCheck";
|
|
42
|
+
version: string;
|
|
43
|
+
}
|
|
44
|
+
export interface AuthConfirmationMsg {
|
|
45
|
+
type: "AuthConfirmation";
|
|
46
|
+
}
|
|
47
|
+
export interface PingMsg {
|
|
48
|
+
type: "ping";
|
|
49
|
+
}
|
|
50
|
+
export interface BoardAccessDeniedMsg {
|
|
51
|
+
type: "BoardAccessDenied";
|
|
52
|
+
boardId: string;
|
|
53
|
+
}
|
|
54
|
+
export interface BoardSubscriptionCompletedMsg {
|
|
55
|
+
type: "BoardSubscriptionCompleted";
|
|
56
|
+
boardId: string;
|
|
57
|
+
mode: "view" | "edit";
|
|
58
|
+
snapshot: string | null;
|
|
59
|
+
eventsSinceLastSnapshot: SyncBoardEvent[];
|
|
60
|
+
initialSequenceNumber: number;
|
|
61
|
+
}
|
|
62
|
+
export type EventsMsg = ModeMsg | BoardEventMsg | SnapshotRequestMsg | ConfirmationMsg | BoardSubscriptionCompletedMsg | UserJoinMsg | PresenceEventMsg | AiChatMsg;
|
|
63
|
+
export type SocketMsg = EventsMsg | AuthMsg | AuthConfirmationMsg | LogoutMsg | GetModeMsg | InvalidateRightsMsg | UserJoinMsg | SubscribeMsg | UnsubscribeMsg | VersionCheckMsg | ErrorMsg | ModeMsg | PingMsg | AiChatMsg | BoardAccessDeniedMsg;
|
|
64
|
+
export interface Connection {
|
|
65
|
+
connectionId: number;
|
|
66
|
+
getCurrentUser: () => string;
|
|
67
|
+
connect(): Promise<void>;
|
|
68
|
+
subscribe(board: Board): void;
|
|
69
|
+
unsubscribe(board: Board): void;
|
|
70
|
+
publishPresenceEvent(boardId: string, event: PresenceEventType): void;
|
|
71
|
+
publishAuth(): Promise<void>;
|
|
72
|
+
publishLogout(): void;
|
|
73
|
+
onMessage?: (msg: SocketMsg) => void;
|
|
74
|
+
onAccessDenied: (boardId: string, forceUpdate?: boolean) => void;
|
|
75
|
+
notifyAboutLostConnection: () => void;
|
|
76
|
+
dismissNotificationAboutLostConnection: () => void;
|
|
77
|
+
resetConnection: () => void;
|
|
78
|
+
send: (msg: SocketMsg) => void;
|
|
79
|
+
}
|
|
80
|
+
export declare function createConnection(getCurrentBoard: () => Board, getAccount: () => Account, getStorage: () => Storage): Connection;
|
|
81
|
+
interface WsClient {
|
|
82
|
+
onOpenSubject: Subject<unknown>;
|
|
83
|
+
onCloseSubject: Subject<unknown>;
|
|
84
|
+
connect: () => void;
|
|
85
|
+
send: (message: SocketMsg) => void;
|
|
86
|
+
isConnected: () => boolean;
|
|
87
|
+
onConnect: () => void;
|
|
88
|
+
}
|
|
89
|
+
type SocketMsgHandler = (message: SocketMsg) => void;
|
|
90
|
+
export declare function createWsClient(msgHandler: SocketMsgHandler, setConnectionErrorTimeout: () => void, onError: (error: unknown) => void, getCurrentBoard: () => Board, invalidateToken: () => Promise<void>): WsClient;
|
|
91
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare class Location {
|
|
2
|
+
/** Parse current location pathname for board id. */
|
|
3
|
+
getCurrentBoardId(): string | undefined;
|
|
4
|
+
/** Parse pathname for board id. */
|
|
5
|
+
getBoardId(pathname: string): string | undefined;
|
|
6
|
+
/** Get pathname from an url */
|
|
7
|
+
getPathname(id: string): string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Account } from "entities/account/Account";
|
|
2
|
+
export declare const validateMediaFile: (file: File, account: Account) => boolean;
|
|
3
|
+
export declare const catchDuplicateErrorResponse: (response: Response) => Promise<never>;
|
|
4
|
+
export declare const catchMediaErrorResponse: (response: Response, mediaType: "image" | "video" | "audio") => Promise<never>;
|
|
5
|
+
export declare const beforeMediaRemove: (mediaIds: string[], boardId: string) => Promise<void>;
|
|
6
|
+
export declare const beforeMediaUpload: (mediaIds: string[], boardId: string) => Promise<boolean>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Board } from "microboard-temp";
|
|
2
|
+
export declare function tryToPasteAsItemOrReturnText(event: ClipboardEvent | null, dataTransfer: DataTransfer | null, board: Board, isLoggedIn: boolean, accessToken: string | null): Promise<DataTransfer | null>;
|
|
3
|
+
export declare function preventPasteDefault(event: ClipboardEvent): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Account } from "./Account";
|
|
2
|
+
import { Storage } from "./Storage";
|
|
3
|
+
export type Action = "owns" | "edits" | "reads";
|
|
4
|
+
export type Resource = "boards" | "catalogs" | "groups";
|
|
5
|
+
export declare class Permissions {
|
|
6
|
+
private readonly account;
|
|
7
|
+
private readonly storage;
|
|
8
|
+
constructor(account: Account, storage: Storage);
|
|
9
|
+
checkPermissions(action: Action, resource: Resource, resourceId: string | null): boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { ShapeData, ConnectionLineWidth, BorderStyle, ConnectorLineStyle, ConnectorEdge, ConnectorPointerStyle } from "microboard-temp";
|
|
2
|
+
import type { StickerData, TextStyle } from "microboard-temp";
|
|
3
|
+
export declare class SessionStorage {
|
|
4
|
+
private set;
|
|
5
|
+
private get;
|
|
6
|
+
remove(key: string): void;
|
|
7
|
+
setConnectorStrokeStyle(color: BorderStyle): void;
|
|
8
|
+
getConnectorStrokeStyle(): BorderStyle | undefined;
|
|
9
|
+
setConnectorLineWidth(width: number): void;
|
|
10
|
+
getConnectorLineWidth(): ConnectionLineWidth | undefined;
|
|
11
|
+
setConnectorFillColor(color: string): void;
|
|
12
|
+
getConnectorFillColor(): string | undefined;
|
|
13
|
+
setConnectorPointer(type: ConnectorPointerStyle, edge: ConnectorEdge): void;
|
|
14
|
+
getConnectorPointer(edge: ConnectorEdge): ConnectorPointerStyle | undefined;
|
|
15
|
+
setConnectorLineStyle(type: ConnectorLineStyle): void;
|
|
16
|
+
getConnectorLineStyle(): ConnectorLineStyle | undefined;
|
|
17
|
+
setShapeData(data: Partial<ShapeData>): void;
|
|
18
|
+
getShapeData(): ShapeData | undefined;
|
|
19
|
+
setStickerData(data: Partial<StickerData>): void;
|
|
20
|
+
getStickerData(): StickerData | undefined;
|
|
21
|
+
setShapeWidth(width: number): void;
|
|
22
|
+
getShapeWidth(): number | undefined;
|
|
23
|
+
setShapeHeight(height: number): void;
|
|
24
|
+
getShapeHeight(): number | undefined;
|
|
25
|
+
setImageDimensions(dimension: {
|
|
26
|
+
width: number;
|
|
27
|
+
height: number;
|
|
28
|
+
}): void;
|
|
29
|
+
getImageDimensions(): {
|
|
30
|
+
width: number;
|
|
31
|
+
height: number;
|
|
32
|
+
} | undefined;
|
|
33
|
+
setFontSize(itemType: string, size: number | "auto"): void;
|
|
34
|
+
getFontSize(itemType: string): number | "auto" | undefined;
|
|
35
|
+
setFontStyles(itemType: string, styles: TextStyle[]): void;
|
|
36
|
+
getFontStyles(itemType: string): TextStyle[] | undefined;
|
|
37
|
+
setFontColor(itemType: string, color: string): void;
|
|
38
|
+
getFontColor(itemType: string): string | undefined;
|
|
39
|
+
setFontHighlight(itemType: string, highlightColor: string): void;
|
|
40
|
+
getFontHighlight(itemType: string): string | undefined;
|
|
41
|
+
setHorizontalAlignment(itemType: string, horizontalAlignment: "left" | "center" | "right"): void;
|
|
42
|
+
getHorizontalAlignment(itemType: string): "left" | "center" | "right" | undefined;
|
|
43
|
+
setVerticalAlignment(itemType: string, verticalAlignment: "top" | "center" | "bottom"): void;
|
|
44
|
+
getVerticalAlignment(itemType: string): "top" | "center" | "bottom" | undefined;
|
|
45
|
+
setLastAIRequest(request: string): void;
|
|
46
|
+
getLastAIRequest(): string | null;
|
|
47
|
+
removeLastAIRequest(): void;
|
|
48
|
+
clear(): void;
|
|
49
|
+
private getBoardId;
|
|
50
|
+
}
|
|
51
|
+
export declare const tempStorage: SessionStorage;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { boardsApi } from "shared/api";
|
|
2
|
+
export declare class Storage {
|
|
3
|
+
createdBoards: string;
|
|
4
|
+
visitedBoards: string;
|
|
5
|
+
listCreatedBoards(): boardsApi.Board[];
|
|
6
|
+
listVisitedBoards(): boardsApi.Board[];
|
|
7
|
+
setCreatedBoards(boards: boardsApi.Board[]): void;
|
|
8
|
+
setVisitedBoards(boards: boardsApi.Board[]): void;
|
|
9
|
+
private filterCreatedBoards;
|
|
10
|
+
private filterVisitedBoards;
|
|
11
|
+
addCreatedBoard(board: boardsApi.Board): void;
|
|
12
|
+
getCreatedBoard(boardId: string): boardsApi.Board | undefined;
|
|
13
|
+
removeCreatedBoard(boardId: string): void;
|
|
14
|
+
addVisitedBoard(board: boardsApi.Board): void;
|
|
15
|
+
getVisitedBoard(boardId: string): boardsApi.Board | undefined;
|
|
16
|
+
removeVisitedBoard(boardId: string): void;
|
|
17
|
+
hardClean(): void;
|
|
18
|
+
softClean(): void;
|
|
19
|
+
renameCreatedBoard(boardId: string, title: string): void;
|
|
20
|
+
setUser(): string;
|
|
21
|
+
setUserId(id: string): void;
|
|
22
|
+
clearUserId(): void;
|
|
23
|
+
getUserId(): string | null;
|
|
24
|
+
getUser(): string | null;
|
|
25
|
+
setUserColor(color: string): void;
|
|
26
|
+
getUserColor(): string | null;
|
|
27
|
+
}
|