@edifice.io/react 2.0.0-develop-rc.4 → 2.0.0-develop-rc.10
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/README.md +17 -88
- package/dist/audience.js +15 -14
- package/dist/audience.js.map +1 -0
- package/dist/components/ActionBar/ActionBar.js +8 -7
- package/dist/components/ActionBar/ActionBar.js.map +1 -0
- package/dist/components/Alert/Alert.js +62 -61
- package/dist/components/Alert/Alert.js.map +1 -0
- package/dist/components/AppHeader/AppHeader.js +19 -18
- package/dist/components/AppHeader/AppHeader.js.map +1 -0
- package/dist/components/AppIcon/AppIcon.d.ts +1 -1
- package/dist/components/AppIcon/AppIcon.js +45 -44
- package/dist/components/AppIcon/AppIcon.js.map +1 -0
- package/dist/components/Attachment/Attachment.js +14 -13
- package/dist/components/Attachment/Attachment.js.map +1 -0
- package/dist/components/Avatar/Avatar.js +28 -27
- package/dist/components/Avatar/Avatar.js.map +1 -0
- package/dist/components/Badge/Badge.js +21 -20
- package/dist/components/Badge/Badge.js.map +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +24 -23
- package/dist/components/Breadcrumb/Breadcrumb.js.map +1 -0
- package/dist/components/Breadcrumb/BreadcrumbItem.js +12 -11
- package/dist/components/Breadcrumb/BreadcrumbItem.js.map +1 -0
- package/dist/components/Breadcrumb/BreadcrumbList.js +11 -10
- package/dist/components/Breadcrumb/BreadcrumbList.js.map +1 -0
- package/dist/components/Breadcrumb/BreadcrumbNav.d.ts +1 -1
- package/dist/components/Breadcrumb/BreadcrumbNav.js +16 -15
- package/dist/components/Breadcrumb/BreadcrumbNav.js.map +1 -0
- package/dist/components/Button/Button.js +33 -32
- package/dist/components/Button/Button.js.map +1 -0
- package/dist/components/Button/IconButton.js +16 -15
- package/dist/components/Button/IconButton.js.map +1 -0
- package/dist/components/Button/SearchButton.js +16 -15
- package/dist/components/Button/SearchButton.js.map +1 -0
- package/dist/components/Card/Card.d.ts +1 -1
- package/dist/components/Card/Card.js +48 -47
- package/dist/components/Card/Card.js.map +1 -0
- package/dist/components/Card/CardBody.js +14 -13
- package/dist/components/Card/CardBody.js.map +1 -0
- package/dist/components/Card/CardContext.d.ts +1 -1
- package/dist/components/Card/CardContext.js +8 -7
- package/dist/components/Card/CardContext.js.map +1 -0
- package/dist/components/Card/CardFooter.js +6 -5
- package/dist/components/Card/CardFooter.js.map +1 -0
- package/dist/components/Card/CardHeader.js +15 -14
- package/dist/components/Card/CardHeader.js.map +1 -0
- package/dist/components/Card/CardImage.js +14 -13
- package/dist/components/Card/CardImage.js.map +1 -0
- package/dist/components/Card/CardText.js +9 -8
- package/dist/components/Card/CardText.js.map +1 -0
- package/dist/components/Card/CardTitle.js +9 -8
- package/dist/components/Card/CardTitle.js.map +1 -0
- package/dist/components/Card/CardUser.js +9 -8
- package/dist/components/Card/CardUser.js.map +1 -0
- package/dist/components/Checkbox/Checkbox.js +31 -30
- package/dist/components/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/ColorPicker/ColorPalette.js +5 -4
- package/dist/components/ColorPicker/ColorPalette.js.map +1 -0
- package/dist/components/ColorPicker/ColorPicker.js +29 -28
- package/dist/components/ColorPicker/ColorPicker.js.map +1 -0
- package/dist/components/ColorPicker/ColorPickerItem.js +12 -11
- package/dist/components/ColorPicker/ColorPickerItem.js.map +1 -0
- package/dist/components/Combobox/Combobox.js +36 -35
- package/dist/components/Combobox/Combobox.js.map +1 -0
- package/dist/components/Combobox/ComboboxTrigger.js +22 -21
- package/dist/components/Combobox/ComboboxTrigger.js.map +1 -0
- package/dist/components/Dropdown/Dropdown.js +56 -55
- package/dist/components/Dropdown/Dropdown.js.map +1 -0
- package/dist/components/Dropdown/DropdownCheckboxItem.js +27 -26
- package/dist/components/Dropdown/DropdownCheckboxItem.js.map +1 -0
- package/dist/components/Dropdown/DropdownContext.js +8 -7
- package/dist/components/Dropdown/DropdownContext.js.map +1 -0
- package/dist/components/Dropdown/DropdownItem.js +28 -27
- package/dist/components/Dropdown/DropdownItem.js.map +1 -0
- package/dist/components/Dropdown/DropdownMenu.js +22 -21
- package/dist/components/Dropdown/DropdownMenu.js.map +1 -0
- package/dist/components/Dropdown/DropdownMenuGroup.js +10 -9
- package/dist/components/Dropdown/DropdownMenuGroup.js.map +1 -0
- package/dist/components/Dropdown/DropdownRadioItem.js +27 -26
- package/dist/components/Dropdown/DropdownRadioItem.js.map +1 -0
- package/dist/components/Dropdown/DropdownSeparator.js +4 -3
- package/dist/components/Dropdown/DropdownSeparator.js.map +1 -0
- package/dist/components/Dropdown/DropdownTrigger.js +29 -28
- package/dist/components/Dropdown/DropdownTrigger.js.map +1 -0
- package/dist/components/Dropzone/Dropzone.js +48 -47
- package/dist/components/Dropzone/Dropzone.js.map +1 -0
- package/dist/components/Dropzone/DropzoneContext.js +9 -8
- package/dist/components/Dropzone/DropzoneContext.js.map +1 -0
- package/dist/components/Dropzone/DropzoneDrag.js +8 -7
- package/dist/components/Dropzone/DropzoneDrag.js.map +1 -0
- package/dist/components/Dropzone/DropzoneFile.js +26 -25
- package/dist/components/Dropzone/DropzoneFile.js.map +1 -0
- package/dist/components/Dropzone/DropzoneImport.js +21 -20
- package/dist/components/Dropzone/DropzoneImport.js.map +1 -0
- package/dist/components/EmptyScreen/EmptyScreen.js +17 -16
- package/dist/components/EmptyScreen/EmptyScreen.js.map +1 -0
- package/dist/components/FileCard/FileCard.d.ts +1 -1
- package/dist/components/FileCard/FileCard.js +38 -37
- package/dist/components/FileCard/FileCard.js.map +1 -0
- package/dist/components/FileCard/FileIcon.d.ts +1 -1
- package/dist/components/FileCard/FileIcon.js +12 -11
- package/dist/components/FileCard/FileIcon.js.map +1 -0
- package/dist/components/Form/FormContext.js +8 -7
- package/dist/components/Form/FormContext.js.map +1 -0
- package/dist/components/Form/FormControl.js +31 -30
- package/dist/components/Form/FormControl.js.map +1 -0
- package/dist/components/Form/FormText.js +13 -12
- package/dist/components/Form/FormText.js.map +1 -0
- package/dist/components/Grid/Grid.js +28 -27
- package/dist/components/Grid/Grid.js.map +1 -0
- package/dist/components/Heading/Heading.js +15 -14
- package/dist/components/Heading/Heading.js.map +1 -0
- package/dist/components/Icon/Icon.js +9 -8
- package/dist/components/Icon/Icon.js.map +1 -0
- package/dist/components/Image/Image.js +40 -39
- package/dist/components/Image/Image.js.map +1 -0
- package/dist/components/ImagePicker/ImagePicker.d.ts +1 -1
- package/dist/components/ImagePicker/ImagePicker.js +52 -51
- package/dist/components/ImagePicker/ImagePicker.js.map +1 -0
- package/dist/components/Input/Input.js +29 -28
- package/dist/components/Input/Input.js.map +1 -0
- package/dist/components/Label/Label.js +31 -30
- package/dist/components/Label/Label.js.map +1 -0
- package/dist/components/Loading/Loading.js +24 -23
- package/dist/components/Loading/Loading.js.map +1 -0
- package/dist/components/LoadingScreen/LoadingScreen.js +21 -20
- package/dist/components/LoadingScreen/LoadingScreen.js.map +1 -0
- package/dist/components/Logo/Logo.js +13 -12
- package/dist/components/Logo/Logo.js.map +1 -0
- package/dist/components/Menu/Menu.js +40 -39
- package/dist/components/Menu/Menu.js.map +1 -0
- package/dist/components/Menu/MenuButton.js +18 -17
- package/dist/components/Menu/MenuButton.js.map +1 -0
- package/dist/components/Menu/MenuContext.js +9 -8
- package/dist/components/Menu/MenuContext.js.map +1 -0
- package/dist/components/Menu/MenuItem.js +15 -14
- package/dist/components/Menu/MenuItem.js.map +1 -0
- package/dist/components/Modal/Modal.js +50 -49
- package/dist/components/Modal/Modal.js.map +1 -0
- package/dist/components/Modal/ModalBody.js +12 -11
- package/dist/components/Modal/ModalBody.js.map +1 -0
- package/dist/components/Modal/ModalContext.js +9 -8
- package/dist/components/Modal/ModalContext.js.map +1 -0
- package/dist/components/Modal/ModalFooter.js +4 -3
- package/dist/components/Modal/ModalFooter.js.map +1 -0
- package/dist/components/Modal/ModalHeader.js +23 -22
- package/dist/components/Modal/ModalHeader.js.map +1 -0
- package/dist/components/Modal/ModalSubtitle.js +4 -3
- package/dist/components/Modal/ModalSubtitle.js.map +1 -0
- package/dist/components/Popover/Popover.js +34 -33
- package/dist/components/Popover/Popover.js.map +1 -0
- package/dist/components/Radio/Radio.js +27 -26
- package/dist/components/Radio/Radio.js.map +1 -0
- package/dist/components/SearchBar/SearchBar.js +30 -29
- package/dist/components/SearchBar/SearchBar.js.map +1 -0
- package/dist/components/Select/Select.js +32 -31
- package/dist/components/Select/Select.js.map +1 -0
- package/dist/components/Select/SelectTrigger.js +5 -4
- package/dist/components/Select/SelectTrigger.js.map +1 -0
- package/dist/components/Table/TableExplorer.js +8 -7
- package/dist/components/Table/TableExplorer.js.map +1 -0
- package/dist/components/Tabs/Tabs.js +59 -58
- package/dist/components/Tabs/Tabs.js.map +1 -0
- package/dist/components/Tabs/TabsContext.js +9 -8
- package/dist/components/Tabs/TabsContext.js.map +1 -0
- package/dist/components/Tabs/TabsItem.js +21 -20
- package/dist/components/Tabs/TabsItem.js.map +1 -0
- package/dist/components/Tabs/TabsList.js +19 -18
- package/dist/components/Tabs/TabsList.js.map +1 -0
- package/dist/components/Tabs/TabsPanel.js +10 -9
- package/dist/components/Tabs/TabsPanel.js.map +1 -0
- package/dist/components/TextArea/TextArea.js +32 -31
- package/dist/components/TextArea/TextArea.js.map +1 -0
- package/dist/components/TextArea/TextareaCounter.js +7 -6
- package/dist/components/TextArea/TextareaCounter.js.map +1 -0
- package/dist/components/Toolbar/Toolbar.js +61 -60
- package/dist/components/Toolbar/Toolbar.js.map +1 -0
- package/dist/components/Tooltip/Tooltip.js +29 -28
- package/dist/components/Tooltip/Tooltip.js.map +1 -0
- package/dist/components/TreeView/TreeItem.js +47 -46
- package/dist/components/TreeView/TreeItem.js.map +1 -0
- package/dist/components/TreeView/TreeView.js +34 -33
- package/dist/components/TreeView/TreeView.js.map +1 -0
- package/dist/components/TreeView/hooks/useTreeItemEvents.js +19 -18
- package/dist/components/TreeView/hooks/useTreeItemEvents.js.map +1 -0
- package/dist/components/UploadCard/UploadCard.js +53 -52
- package/dist/components/UploadCard/UploadCard.js.map +1 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.js +8 -7
- package/dist/components/VisuallyHidden/VisuallyHidden.js.map +1 -0
- package/dist/core/OdeClientProvider/OdeClientProvider.d.ts +1 -1
- package/dist/core/OdeClientProvider/OdeClientProvider.js +45 -44
- package/dist/core/OdeClientProvider/OdeClientProvider.js.map +1 -0
- package/dist/core/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/dist/core/ThemeProvider/ThemeProvider.js +36 -35
- package/dist/core/ThemeProvider/ThemeProvider.js.map +1 -0
- package/dist/core/useAvatar/useAvatar.d.ts +1 -1
- package/dist/core/useAvatar/useAvatar.js +22 -21
- package/dist/core/useAvatar/useAvatar.js.map +1 -0
- package/dist/core/useBookmark/useBookmark.d.ts +1 -1
- package/dist/core/useBookmark/useBookmark.js +10 -9
- package/dist/core/useBookmark/useBookmark.js.map +1 -0
- package/dist/core/useConf/useConf.d.ts +1 -1
- package/dist/core/useConf/useConf.js +8 -7
- package/dist/core/useConf/useConf.js.map +1 -0
- package/dist/core/useConversation/useConversation.js +30 -29
- package/dist/core/useConversation/useConversation.js.map +1 -0
- package/dist/core/useCookiesConsent/useCookiesConsent.js +17 -16
- package/dist/core/useCookiesConsent/useCookiesConsent.js.map +1 -0
- package/dist/core/useDate/useDate.js +36 -35
- package/dist/core/useDate/useDate.js.map +1 -0
- package/dist/core/useHasWorkflow/useHasWorkflow.js +16 -15
- package/dist/core/useHasWorkflow/useHasWorkflow.js.map +1 -0
- package/dist/core/useHeader/useHeader.d.ts +1 -1
- package/dist/core/useHeader/useHeader.js +42 -41
- package/dist/core/useHeader/useHeader.js.map +1 -0
- package/dist/core/useHttpErrorToast/useHttpErrorToast.js +18 -17
- package/dist/core/useHttpErrorToast/useHttpErrorToast.js.map +1 -0
- package/dist/core/useIsAdml/useIsAdml.js +12 -11
- package/dist/core/useIsAdml/useIsAdml.js.map +1 -0
- package/dist/core/useLibraryUrl/useLibraryUrl.js +17 -16
- package/dist/core/useLibraryUrl/useLibraryUrl.js.map +1 -0
- package/dist/core/useMediaLibrary/useMediaLibrary.d.ts +1 -1
- package/dist/core/useMediaLibrary/useMediaLibrary.js +33 -32
- package/dist/core/useMediaLibrary/useMediaLibrary.js.map +1 -0
- package/dist/core/useOdeIcons/useOdeIcons.d.ts +1 -1
- package/dist/core/useOdeIcons/useOdeIcons.js +38 -37
- package/dist/core/useOdeIcons/useOdeIcons.js.map +1 -0
- package/dist/core/usePaths/usePaths.js +3 -2
- package/dist/core/usePaths/usePaths.js.map +1 -0
- package/dist/core/usePreferences/usePreferences.js +6 -5
- package/dist/core/usePreferences/usePreferences.js.map +1 -0
- package/dist/core/useResource/useResource.d.ts +1 -1
- package/dist/core/useResource/useResource.js +15 -14
- package/dist/core/useResource/useResource.js.map +1 -0
- package/dist/core/useResourceSearch/useResourceSearch.d.ts +1 -1
- package/dist/core/useResourceSearch/useResourceSearch.js +23 -22
- package/dist/core/useResourceSearch/useResourceSearch.js.map +1 -0
- package/dist/core/useSession/useSession.js +7 -6
- package/dist/core/useSession/useSession.js.map +1 -0
- package/dist/core/useTrashedResource/useTrashedResource.js +19 -18
- package/dist/core/useTrashedResource/useTrashedResource.js.map +1 -0
- package/dist/core/useUpload/useUpload.d.ts +1 -1
- package/dist/core/useUpload/useUpload.js +69 -68
- package/dist/core/useUpload/useUpload.js.map +1 -0
- package/dist/core/useUploadFiles/useUploadFiles.d.ts +1 -1
- package/dist/core/useUploadFiles/useUploadFiles.js +83 -82
- package/dist/core/useUploadFiles/useUploadFiles.js.map +1 -0
- package/dist/core/useUser/useUser.d.ts +1 -1
- package/dist/core/useUser/useUser.js +16 -15
- package/dist/core/useUser/useUser.js.map +1 -0
- package/dist/core/useWorkspaceFile/useWorkspaceFile.d.ts +1 -1
- package/dist/core/useWorkspaceFile/useWorkspaceFile.js +32 -31
- package/dist/core/useWorkspaceFile/useWorkspaceFile.js.map +1 -0
- package/dist/core/useWorkspaceSearch/useWorkspaceSearch.d.ts +1 -1
- package/dist/core/useWorkspaceSearch/useWorkspaceSearch.js +42 -41
- package/dist/core/useWorkspaceSearch/useWorkspaceSearch.js.map +1 -0
- package/dist/core/useXitiTrackPageLoad/useXitiTrackPageLoad.js +18 -17
- package/dist/core/useXitiTrackPageLoad/useXitiTrackPageLoad.js.map +1 -0
- package/dist/core/useZendeskGuide/useZendeskGuide.js +47 -46
- package/dist/core/useZendeskGuide/useZendeskGuide.js.map +1 -0
- package/dist/editor.js +57 -56
- package/dist/editor.js.map +1 -0
- package/dist/hooks/useBrowserInfo/useBrowserInfo.js +12 -11
- package/dist/hooks/useBrowserInfo/useBrowserInfo.js.map +1 -0
- package/dist/hooks/useClickOutside/useClickOutside.js +19 -18
- package/dist/hooks/useClickOutside/useClickOutside.js.map +1 -0
- package/dist/hooks/useDebounce/useDebounce.js +11 -10
- package/dist/hooks/useDebounce/useDebounce.js.map +1 -0
- package/dist/hooks/useDropdown/useDropdown.d.ts +1 -1
- package/dist/hooks/useDropdown/useDropdown.js +97 -96
- package/dist/hooks/useDropdown/useDropdown.js.map +1 -0
- package/dist/hooks/useDropzone/useDropzone.js +54 -53
- package/dist/hooks/useDropzone/useDropzone.js.map +1 -0
- package/dist/hooks/useHover/useHover.js +15 -14
- package/dist/hooks/useHover/useHover.js.map +1 -0
- package/dist/hooks/useImage/useImage.js +14 -13
- package/dist/hooks/useImage/useImage.js.map +1 -0
- package/dist/hooks/useImageResizer/useImageResizer.js +32 -31
- package/dist/hooks/useImageResizer/useImageResizer.js.map +1 -0
- package/dist/hooks/useKeyPress/useKeyPress.js +11 -10
- package/dist/hooks/useKeyPress/useKeyPress.js.map +1 -0
- package/dist/hooks/useScrollToTop/useScrollToTop.js +5 -4
- package/dist/hooks/useScrollToTop/useScrollToTop.js.map +1 -0
- package/dist/hooks/useThumbnail/useThumbnail.js +22 -21
- package/dist/hooks/useThumbnail/useThumbnail.js.map +1 -0
- package/dist/hooks/useTitle/useTitle.js +8 -7
- package/dist/hooks/useTitle/useTitle.js.map +1 -0
- package/dist/hooks/useToast/useToast.js +26 -25
- package/dist/hooks/useToast/useToast.js.map +1 -0
- package/dist/hooks/useToggle/useToggle.js +7 -6
- package/dist/hooks/useToggle/useToggle.js.map +1 -0
- package/dist/hooks/useTrapFocus/useTrapFocus.js +12 -11
- package/dist/hooks/useTrapFocus/useTrapFocus.js.map +1 -0
- package/dist/index.js +226 -225
- package/dist/index.js.map +1 -0
- package/dist/modals.js +15 -14
- package/dist/modals.js.map +1 -0
- package/dist/modules/audience/ReactionChoice.d.ts +1 -1
- package/dist/modules/audience/ReactionChoice.js +25 -24
- package/dist/modules/audience/ReactionChoice.js.map +1 -0
- package/dist/modules/audience/ReactionModal.Card.d.ts +1 -1
- package/dist/modules/audience/ReactionModal.Card.js +26 -25
- package/dist/modules/audience/ReactionModal.Card.js.map +1 -0
- package/dist/modules/audience/ReactionModal.d.ts +1 -1
- package/dist/modules/audience/ReactionModal.js +59 -59
- package/dist/modules/audience/ReactionModal.js.map +1 -0
- package/dist/modules/audience/ReactionSummary.d.ts +1 -1
- package/dist/modules/audience/ReactionSummary.js +20 -19
- package/dist/modules/audience/ReactionSummary.js.map +1 -0
- package/dist/modules/audience/ViewsByProfileCard.d.ts +1 -1
- package/dist/modules/audience/ViewsByProfileCard.js +23 -22
- package/dist/modules/audience/ViewsByProfileCard.js.map +1 -0
- package/dist/modules/audience/ViewsCounter.js +15 -14
- package/dist/modules/audience/ViewsCounter.js.map +1 -0
- package/dist/modules/audience/ViewsModal.d.ts +1 -1
- package/dist/modules/audience/ViewsModal.js +33 -32
- package/dist/modules/audience/ViewsModal.js.map +1 -0
- package/dist/modules/audience/hooks/useReactionIcons.d.ts +1 -1
- package/dist/modules/audience/hooks/useReactionIcons.js +14 -13
- package/dist/modules/audience/hooks/useReactionIcons.js.map +1 -0
- package/dist/modules/audience/hooks/useReactions.d.ts +3 -3
- package/dist/modules/audience/hooks/useReactions.js +25 -24
- package/dist/modules/audience/hooks/useReactions.js.map +1 -0
- package/dist/modules/audience/hooks/useViews.d.ts +2 -2
- package/dist/modules/editor/components/BubbleMenuEditImage/BubbleMenuEditImage.js +60 -59
- package/dist/modules/editor/components/BubbleMenuEditImage/BubbleMenuEditImage.js.map +1 -0
- package/dist/modules/editor/components/Editor/Editor.d.ts +1 -1
- package/dist/modules/editor/components/Editor/Editor.js +71 -70
- package/dist/modules/editor/components/Editor/Editor.js.map +1 -0
- package/dist/modules/editor/components/Editor/MathsModal.d.ts +0 -1
- package/dist/modules/editor/components/Editor/MathsModal.js +38 -37
- package/dist/modules/editor/components/Editor/MathsModal.js.map +1 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.DropdownMenu.js +15 -14
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.DropdownMenu.js.map +1 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Emoji.js +38 -37
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Emoji.js.map +1 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.HighlightColor.js +34 -33
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.HighlightColor.js.map +1 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.PlusMenu.js +13 -12
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.PlusMenu.js.map +1 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.TextColor.js +37 -36
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.TextColor.js.map +1 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.TextSize.js +36 -35
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.TextSize.js.map +1 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Typography.js +31 -30
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Typography.js.map +1 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.js +96 -95
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.js.map +1 -0
- package/dist/modules/editor/components/NodeView/AttachmentNodeView.js +7 -6
- package/dist/modules/editor/components/NodeView/AttachmentNodeView.js.map +1 -0
- package/dist/modules/editor/components/NodeView/AudioNodeView.js +7 -6
- package/dist/modules/editor/components/NodeView/AudioNodeView.js.map +1 -0
- package/dist/modules/editor/components/NodeView/ImageNodeView.js +7 -6
- package/dist/modules/editor/components/NodeView/ImageNodeView.js.map +1 -0
- package/dist/modules/editor/components/NodeView/LinkerNodeView.js +7 -6
- package/dist/modules/editor/components/NodeView/LinkerNodeView.js.map +1 -0
- package/dist/modules/editor/components/NodeView/VideoNodeView.js +7 -6
- package/dist/modules/editor/components/NodeView/VideoNodeView.js.map +1 -0
- package/dist/modules/editor/components/Renderer/AttachmentRenderer.js +25 -24
- package/dist/modules/editor/components/Renderer/AttachmentRenderer.js.map +1 -0
- package/dist/modules/editor/components/Renderer/AudioRenderer.js +8 -7
- package/dist/modules/editor/components/Renderer/AudioRenderer.js.map +1 -0
- package/dist/modules/editor/components/Renderer/LinkerRenderer.js +27 -26
- package/dist/modules/editor/components/Renderer/LinkerRenderer.js.map +1 -0
- package/dist/modules/editor/components/Renderer/MediaRenderer.js +38 -37
- package/dist/modules/editor/components/Renderer/MediaRenderer.js.map +1 -0
- package/dist/modules/editor/components/Toolbar/LinkToolbar.TippyOptions.js +3 -2
- package/dist/modules/editor/components/Toolbar/LinkToolbar.TippyOptions.js.map +1 -0
- package/dist/modules/editor/components/Toolbar/LinkToolbar.d.ts +1 -1
- package/dist/modules/editor/components/Toolbar/LinkToolbar.js +33 -32
- package/dist/modules/editor/components/Toolbar/LinkToolbar.js.map +1 -0
- package/dist/modules/editor/components/Toolbar/TableToolbar.AddMenu.js +22 -21
- package/dist/modules/editor/components/Toolbar/TableToolbar.AddMenu.js.map +1 -0
- package/dist/modules/editor/components/Toolbar/TableToolbar.CellColor.js +31 -30
- package/dist/modules/editor/components/Toolbar/TableToolbar.CellColor.js.map +1 -0
- package/dist/modules/editor/components/Toolbar/TableToolbar.DelMenu.js +21 -20
- package/dist/modules/editor/components/Toolbar/TableToolbar.DelMenu.js.map +1 -0
- package/dist/modules/editor/components/Toolbar/TableToolbar.d.ts +1 -1
- package/dist/modules/editor/components/Toolbar/TableToolbar.js +42 -41
- package/dist/modules/editor/components/Toolbar/TableToolbar.js.map +1 -0
- package/dist/modules/editor/hooks/useActionOptions.js +48 -47
- package/dist/modules/editor/hooks/useActionOptions.js.map +1 -0
- package/dist/modules/editor/hooks/useCommentEditor.js +28 -27
- package/dist/modules/editor/hooks/useCommentEditor.js.map +1 -0
- package/dist/modules/editor/hooks/useEditorContext.js +9 -8
- package/dist/modules/editor/hooks/useEditorContext.js.map +1 -0
- package/dist/modules/editor/hooks/useImageModal.d.ts +1 -1
- package/dist/modules/editor/hooks/useImageModal.js +33 -32
- package/dist/modules/editor/hooks/useImageModal.js.map +1 -0
- package/dist/modules/editor/hooks/useImageSelection.js +32 -31
- package/dist/modules/editor/hooks/useImageSelection.js.map +1 -0
- package/dist/modules/editor/hooks/useLinkToolbar.js +25 -24
- package/dist/modules/editor/hooks/useLinkToolbar.js.map +1 -0
- package/dist/modules/editor/hooks/useMathsModal.js +10 -9
- package/dist/modules/editor/hooks/useMathsModal.js.map +1 -0
- package/dist/modules/editor/hooks/useMathsStyles.js +14 -13
- package/dist/modules/editor/hooks/useMathsStyles.js.map +1 -0
- package/dist/modules/editor/hooks/useMediaLibraryEditor.d.ts +1 -1
- package/dist/modules/editor/hooks/useMediaLibraryEditor.js +97 -96
- package/dist/modules/editor/hooks/useMediaLibraryEditor.js.map +1 -0
- package/dist/modules/editor/hooks/useResizeMedia.js +32 -31
- package/dist/modules/editor/hooks/useResizeMedia.js.map +1 -0
- package/dist/modules/editor/hooks/useSpeechRecognition.js +13 -12
- package/dist/modules/editor/hooks/useSpeechRecognition.js.map +1 -0
- package/dist/modules/editor/hooks/useSpeechSynthetisis.js +14 -13
- package/dist/modules/editor/hooks/useSpeechSynthetisis.js.map +1 -0
- package/dist/modules/editor/hooks/useTipTapEditor.js +58 -57
- package/dist/modules/editor/hooks/useTipTapEditor.js.map +1 -0
- package/dist/modules/editor/utils/has-extension.js +3 -2
- package/dist/modules/editor/utils/has-extension.js.map +1 -0
- package/dist/modules/editor/utils/has-mark.js +3 -2
- package/dist/modules/editor/utils/has-mark.js.map +1 -0
- package/dist/modules/editor/utils/has-text-style.js +4 -3
- package/dist/modules/editor/utils/has-text-style.js.map +1 -0
- package/dist/modules/modals/OnboardingModal/OnboardingModal.d.ts +0 -1
- package/dist/modules/modals/OnboardingModal/OnboardingModal.js +50 -49
- package/dist/modules/modals/OnboardingModal/OnboardingModal.js.map +1 -0
- package/dist/modules/modals/OnboardingModal/useOnboardingModal.js +19 -18
- package/dist/modules/modals/OnboardingModal/useOnboardingModal.js.map +1 -0
- package/dist/modules/modals/PublishModal/PublishModal.d.ts +1 -1
- package/dist/modules/modals/PublishModal/PublishModal.js +98 -97
- package/dist/modules/modals/PublishModal/PublishModal.js.map +1 -0
- package/dist/modules/modals/PublishModal/components/ActivitiesDropdown.js +20 -19
- package/dist/modules/modals/PublishModal/components/ActivitiesDropdown.js.map +1 -0
- package/dist/modules/modals/PublishModal/components/AgeSelect.js +15 -14
- package/dist/modules/modals/PublishModal/components/AgeSelect.js.map +1 -0
- package/dist/modules/modals/PublishModal/components/LangSelect.js +12 -11
- package/dist/modules/modals/PublishModal/components/LangSelect.js.map +1 -0
- package/dist/modules/modals/PublishModal/components/PublishModalFooter.js +17 -16
- package/dist/modules/modals/PublishModal/components/PublishModalFooter.js.map +1 -0
- package/dist/modules/modals/PublishModal/components/SubjectsDropdown.js +20 -19
- package/dist/modules/modals/PublishModal/components/SubjectsDropdown.js.map +1 -0
- package/dist/modules/modals/PublishModal/components/ToastError.js +18 -17
- package/dist/modules/modals/PublishModal/components/ToastError.js.map +1 -0
- package/dist/modules/modals/PublishModal/components/ToastSuccess.d.ts +1 -1
- package/dist/modules/modals/PublishModal/components/ToastSuccess.js +13 -12
- package/dist/modules/modals/PublishModal/components/ToastSuccess.js.map +1 -0
- package/dist/modules/modals/PublishModal/constants/ageOptions.js +3 -2
- package/dist/modules/modals/PublishModal/constants/ageOptions.js.map +1 -0
- package/dist/modules/modals/PublishModal/hooks/useActivitiesOptions.js +5 -4
- package/dist/modules/modals/PublishModal/hooks/useActivitiesOptions.js.map +1 -0
- package/dist/modules/modals/PublishModal/hooks/useLanguageOptions.js +17 -16
- package/dist/modules/modals/PublishModal/hooks/useLanguageOptions.js.map +1 -0
- package/dist/modules/modals/PublishModal/hooks/usePublishModal.d.ts +1 -1
- package/dist/modules/modals/PublishModal/hooks/usePublishModal.js +80 -79
- package/dist/modules/modals/PublishModal/hooks/usePublishModal.js.map +1 -0
- package/dist/modules/modals/PublishModal/hooks/useSubjectsOptions.js +42 -41
- package/dist/modules/modals/PublishModal/hooks/useSubjectsOptions.js.map +1 -0
- package/dist/modules/modals/ResourceModal/ResourceModal.d.ts +1 -1
- package/dist/modules/modals/ResourceModal/ResourceModal.js +116 -115
- package/dist/modules/modals/ResourceModal/ResourceModal.js.map +1 -0
- package/dist/modules/modals/ResourceModal/apps/BlogPublic.d.ts +1 -1
- package/dist/modules/modals/ResourceModal/apps/BlogPublic.js +48 -47
- package/dist/modules/modals/ResourceModal/apps/BlogPublic.js.map +1 -0
- package/dist/modules/modals/ResourceModal/hooks/useSlug.d.ts +1 -1
- package/dist/modules/modals/ResourceModal/hooks/useSlug.js +33 -32
- package/dist/modules/modals/ResourceModal/hooks/useSlug.js.map +1 -0
- package/dist/modules/modals/ResourceModal/hooks/useThumb.d.ts +1 -1
- package/dist/modules/modals/ResourceModal/hooks/useThumb.js +13 -12
- package/dist/modules/modals/ResourceModal/hooks/useThumb.js.map +1 -0
- package/dist/modules/modals/ResourceModal/hooks/useUpdateMutation.d.ts +1 -1
- package/dist/modules/modals/ResourceModal/hooks/useUpdateMutation.js +11 -10
- package/dist/modules/modals/ResourceModal/hooks/useUpdateMutation.js.map +1 -0
- package/dist/modules/modals/ShareModal/ShareBookmarkLine.d.ts +1 -1
- package/dist/modules/modals/ShareModal/ShareModal.d.ts +1 -1
- package/dist/modules/modals/ShareModal/apps/ShareBlog.d.ts +1 -1
- package/dist/modules/modals/ShareModal/apps/ShareBlog.js +34 -33
- package/dist/modules/modals/ShareModal/apps/ShareBlog.js.map +1 -0
- package/dist/modules/modals/ShareModal/hooks/useSearch.d.ts +1 -1
- package/dist/modules/modals/ShareModal/hooks/useShare.d.ts +1 -1
- package/dist/modules/modals/ShareModal/hooks/useShareBookmark.d.ts +1 -1
- package/dist/modules/modals/ShareModal/hooks/useShareMutation.d.ts +1 -1
- package/dist/modules/modals/ShareModal/hooks/useShareMutation.js +13 -12
- package/dist/modules/modals/ShareModal/hooks/useShareMutation.js.map +1 -0
- package/dist/modules/modals/ShareModal/utils/hasRight.d.ts +1 -1
- package/dist/modules/modals/ShareModal/utils/showShareRightLine.d.ts +1 -1
- package/dist/modules/multimedia/AudioRecorder/AudioRecorder.d.ts +1 -1
- package/dist/modules/multimedia/AudioRecorder/AudioRecorder.js +44 -43
- package/dist/modules/multimedia/AudioRecorder/AudioRecorder.js.map +1 -0
- package/dist/modules/multimedia/AudioRecorder/AudioRecorderTimer.js +19 -18
- package/dist/modules/multimedia/AudioRecorder/AudioRecorderTimer.js.map +1 -0
- package/dist/modules/multimedia/AudioRecorder/useAudioRecorder.d.ts +1 -1
- package/dist/modules/multimedia/AudioRecorder/useAudioRecorder.js +158 -157
- package/dist/modules/multimedia/AudioRecorder/useAudioRecorder.js.map +1 -0
- package/dist/modules/multimedia/Embed/Embed.js +23 -22
- package/dist/modules/multimedia/Embed/Embed.js.map +1 -0
- package/dist/modules/multimedia/ImageEditor/components/ImageEditor.js +80 -79
- package/dist/modules/multimedia/ImageEditor/components/ImageEditor.js.map +1 -0
- package/dist/modules/multimedia/ImageEditor/components/ImageEditorToolbar.js +38 -37
- package/dist/modules/multimedia/ImageEditor/components/ImageEditorToolbar.js.map +1 -0
- package/dist/modules/multimedia/ImageEditor/effects/blur.js +50 -49
- package/dist/modules/multimedia/ImageEditor/effects/blur.js.map +1 -0
- package/dist/modules/multimedia/ImageEditor/effects/crop.js +100 -99
- package/dist/modules/multimedia/ImageEditor/effects/crop.js.map +1 -0
- package/dist/modules/multimedia/ImageEditor/effects/misc.js +108 -107
- package/dist/modules/multimedia/ImageEditor/effects/misc.js.map +1 -0
- package/dist/modules/multimedia/ImageEditor/effects/resize.js +97 -96
- package/dist/modules/multimedia/ImageEditor/effects/resize.js.map +1 -0
- package/dist/modules/multimedia/ImageEditor/effects/rotate.js +26 -25
- package/dist/modules/multimedia/ImageEditor/effects/rotate.js.map +1 -0
- package/dist/modules/multimedia/ImageEditor/hooks/useHistoryTool.js +56 -57
- package/dist/modules/multimedia/ImageEditor/hooks/useHistoryTool.js.map +1 -0
- package/dist/modules/multimedia/ImageEditor/hooks/useImageEditor.js +57 -56
- package/dist/modules/multimedia/ImageEditor/hooks/useImageEditor.js.map +1 -0
- package/dist/modules/multimedia/ImageEditor/hooks/useImageEffects.js +29 -28
- package/dist/modules/multimedia/ImageEditor/hooks/useImageEffects.js.map +1 -0
- package/dist/modules/multimedia/ImageEditor/utils/aggregate.js +10 -9
- package/dist/modules/multimedia/ImageEditor/utils/aggregate.js.map +1 -0
- package/dist/modules/multimedia/ImagePickerWorkspace/ImagePickerWorkspace.d.ts +1 -1
- package/dist/modules/multimedia/ImagePickerWorkspace/ImagePickerWorkspace.js +34 -33
- package/dist/modules/multimedia/ImagePickerWorkspace/ImagePickerWorkspace.js.map +1 -0
- package/dist/modules/multimedia/Linker/ExternalLinker.js +37 -36
- package/dist/modules/multimedia/Linker/ExternalLinker.js.map +1 -0
- package/dist/modules/multimedia/Linker/InternalLinker.d.ts +1 -1
- package/dist/modules/multimedia/Linker/InternalLinker.js +89 -88
- package/dist/modules/multimedia/Linker/InternalLinker.js.map +1 -0
- package/dist/modules/multimedia/LinkerCard/LinkerCard.d.ts +1 -1
- package/dist/modules/multimedia/LinkerCard/LinkerCard.js +32 -31
- package/dist/modules/multimedia/LinkerCard/LinkerCard.js.map +1 -0
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.d.ts +1 -1
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +119 -118
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js.map +1 -0
- package/dist/modules/multimedia/MediaLibrary/MediaLibraryContext.d.ts +2 -2
- package/dist/modules/multimedia/MediaLibrary/MediaLibraryContext.js +9 -8
- package/dist/modules/multimedia/MediaLibrary/MediaLibraryContext.js.map +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Audio.js +16 -15
- package/dist/modules/multimedia/MediaLibrary/innertabs/Audio.js.map +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/ExternalLink.js +13 -12
- package/dist/modules/multimedia/MediaLibrary/innertabs/ExternalLink.js.map +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Iframe.js +10 -9
- package/dist/modules/multimedia/MediaLibrary/innertabs/Iframe.js.map +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/InternalLink.d.ts +1 -1
- package/dist/modules/multimedia/MediaLibrary/innertabs/InternalLink.js +29 -28
- package/dist/modules/multimedia/MediaLibrary/innertabs/InternalLink.js.map +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Upload.js +23 -22
- package/dist/modules/multimedia/MediaLibrary/innertabs/Upload.js.map +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Video.js +18 -17
- package/dist/modules/multimedia/MediaLibrary/innertabs/Video.js.map +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/VideoEmbedder.js +10 -9
- package/dist/modules/multimedia/MediaLibrary/innertabs/VideoEmbedder.js.map +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Workspace.js +17 -16
- package/dist/modules/multimedia/MediaLibrary/innertabs/Workspace.js.map +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/index.js +19 -18
- package/dist/modules/multimedia/MediaLibrary/innertabs/index.js.map +1 -0
- package/dist/modules/multimedia/UploadFiles/UploadFiles.d.ts +1 -1
- package/dist/modules/multimedia/UploadFiles/UploadFiles.js +42 -41
- package/dist/modules/multimedia/UploadFiles/UploadFiles.js.map +1 -0
- package/dist/modules/multimedia/VideoEmbed/VideoEmbed.js +60 -59
- package/dist/modules/multimedia/VideoEmbed/VideoEmbed.js.map +1 -0
- package/dist/modules/multimedia/VideoRecorder/VideoRecorder.d.ts +1 -1
- package/dist/modules/multimedia/VideoRecorder/VideoRecorder.js +154 -153
- package/dist/modules/multimedia/VideoRecorder/VideoRecorder.js.map +1 -0
- package/dist/modules/multimedia/Workspace/Workspace.d.ts +1 -1
- package/dist/modules/multimedia/Workspace/Workspace.js +113 -112
- package/dist/modules/multimedia/Workspace/Workspace.js.map +1 -0
- package/dist/multimedia.js +19 -18
- package/dist/multimedia.js.map +1 -0
- package/dist/portal/Header/Badge.js +6 -5
- package/dist/portal/Header/Badge.js.map +1 -0
- package/dist/portal/Header/Header.js +138 -137
- package/dist/portal/Header/Header.js.map +1 -0
- package/dist/portal/Header/NavItem.js +12 -11
- package/dist/portal/Header/NavItem.js.map +1 -0
- package/dist/portal/Header/NavLink.js +15 -14
- package/dist/portal/Header/NavLink.js.map +1 -0
- package/dist/portal/Header/Navbar.js +10 -9
- package/dist/portal/Header/Navbar.js.map +1 -0
- package/dist/portal/Header/NavbarNav.js +10 -9
- package/dist/portal/Header/NavbarNav.js.map +1 -0
- package/dist/portal/Header/WidgetApps.d.ts +1 -1
- package/dist/portal/Header/WidgetApps.js +17 -16
- package/dist/portal/Header/WidgetApps.js.map +1 -0
- package/dist/portal/Help/Help.d.ts +0 -1
- package/dist/portal/Help/Help.js +19 -18
- package/dist/portal/Help/Help.js.map +1 -0
- package/dist/portal/Help/hooks/useHelp.js +64 -63
- package/dist/portal/Help/hooks/useHelp.js.map +1 -0
- package/dist/portal/Layout/Layout.js +36 -35
- package/dist/portal/Layout/Layout.js.map +1 -0
- package/dist/portal/SearchEngine/SearchEngine.js +26 -25
- package/dist/portal/SearchEngine/SearchEngine.js.map +1 -0
- package/dist/utils/MockedDataProvider/MockedDataProvider.d.ts +1 -1
- package/dist/utils/MockedDataProvider/MockedDataProvider.js +22 -21
- package/dist/utils/MockedDataProvider/MockedDataProvider.js.map +1 -0
- package/dist/utils/StringUtils.js +9 -8
- package/dist/utils/StringUtils.js.map +1 -0
- package/dist/utils/addTimestampToUrl.js +5 -4
- package/dist/utils/addTimestampToUrl.js.map +1 -0
- package/dist/utils/blob.js +10 -9
- package/dist/utils/blob.js.map +1 -0
- package/dist/utils/checkUserRight.d.ts +1 -1
- package/dist/utils/checkUserRight.js +28 -27
- package/dist/utils/checkUserRight.js.map +1 -0
- package/dist/utils/fileSize.js +6 -5
- package/dist/utils/fileSize.js.map +1 -0
- package/dist/utils/findTreeNode.js +8 -7
- package/dist/utils/findTreeNode.js.map +1 -0
- package/dist/utils/isActionAvailable.d.ts +1 -1
- package/dist/utils/isActionAvailable.js +5 -4
- package/dist/utils/isActionAvailable.js.map +1 -0
- package/dist/utils/libraryMaps.js +3 -2
- package/dist/utils/libraryMaps.js.map +1 -0
- package/dist/utils/noop.js +3 -2
- package/dist/utils/noop.js.map +1 -0
- package/dist/utils/ref.js +9 -8
- package/dist/utils/ref.js.map +1 -0
- package/dist/utils/thumbnail.js +4 -3
- package/dist/utils/thumbnail.js.map +1 -0
- package/dist/utils/time.js +8 -7
- package/dist/utils/time.js.map +1 -0
- package/dist/utils/treeview.d.ts +1 -1
- package/dist/utils/treeview.js +97 -96
- package/dist/utils/treeview.js.map +1 -0
- package/dist/utils/video.js +3 -2
- package/dist/utils/video.js.map +1 -0
- package/dist/widgets/BookmarkedApps/BookmarkedApps.d.ts +1 -1
- package/dist/widgets/BookmarkedApps/BookmarkedApps.js +7 -6
- package/dist/widgets/BookmarkedApps/BookmarkedApps.js.map +1 -0
- package/dist/widgets/Widget/Widget.js +19 -18
- package/dist/widgets/Widget/Widget.js.map +1 -0
- package/package.json +19 -28
|
@@ -1,116 +1,117 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useState } from "react";
|
|
3
|
-
import { Stage } from "@pixi/react";
|
|
4
|
-
import { useTranslation } from "react-i18next";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { Modal } from "../../../../components/Modal/Modal.js";
|
|
8
|
-
import { LoadingScreen } from "../../../../components/LoadingScreen/LoadingScreen.js";
|
|
9
|
-
import { FormControl } from "../../../../components/Form/FormControl.js";
|
|
10
|
-
import { Label } from "../../../../components/Label/Label.js";
|
|
11
|
-
import { Input } from "../../../../components/Input/Input.js";
|
|
12
|
-
import { Button } from "../../../../components/Button/Button.js";
|
|
13
|
-
const
|
|
14
|
-
altText:
|
|
15
|
-
legend:
|
|
16
|
-
image:
|
|
17
|
-
isOpen,
|
|
18
|
-
onCancel,
|
|
19
|
-
onError,
|
|
20
|
-
onSave
|
|
1
|
+
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as l } from "react";
|
|
3
|
+
import { Stage as $ } from "@pixi/react";
|
|
4
|
+
import { useTranslation as q } from "react-i18next";
|
|
5
|
+
import G from "../hooks/useImageEditor.js";
|
|
6
|
+
import J from "./ImageEditorToolbar.js";
|
|
7
|
+
import { Modal as r } from "../../../../components/Modal/Modal.js";
|
|
8
|
+
import { LoadingScreen as K } from "../../../../components/LoadingScreen/LoadingScreen.js";
|
|
9
|
+
import { FormControl as u } from "../../../../components/Form/FormControl.js";
|
|
10
|
+
import { Label as h } from "../../../../components/Label/Label.js";
|
|
11
|
+
import { Input as x } from "../../../../components/Input/Input.js";
|
|
12
|
+
import { Button as b } from "../../../../components/Button/Button.js";
|
|
13
|
+
const ie = ({
|
|
14
|
+
altText: v,
|
|
15
|
+
legend: y,
|
|
16
|
+
image: w,
|
|
17
|
+
isOpen: C,
|
|
18
|
+
onCancel: k,
|
|
19
|
+
onError: i,
|
|
20
|
+
onSave: N
|
|
21
21
|
}) => {
|
|
22
22
|
const {
|
|
23
|
-
t
|
|
24
|
-
} =
|
|
25
|
-
toBlob,
|
|
26
|
-
setApplication,
|
|
27
|
-
startBlur,
|
|
28
|
-
stopBlur,
|
|
29
|
-
restore,
|
|
30
|
-
rotate,
|
|
31
|
-
startCrop,
|
|
32
|
-
stopCrop,
|
|
33
|
-
startResize,
|
|
34
|
-
stopResize,
|
|
35
|
-
historyCount,
|
|
36
|
-
loading
|
|
37
|
-
} =
|
|
38
|
-
imageSrc
|
|
39
|
-
}),
|
|
40
|
-
|
|
41
|
-
},
|
|
23
|
+
t: a
|
|
24
|
+
} = q(), [c, R] = l(void 0), [d, m] = l(!1), [p, S] = l(v ?? ""), [g, B] = l(y ?? ""), [O, n] = l(!1), {
|
|
25
|
+
toBlob: T,
|
|
26
|
+
setApplication: I,
|
|
27
|
+
startBlur: z,
|
|
28
|
+
stopBlur: A,
|
|
29
|
+
restore: L,
|
|
30
|
+
rotate: j,
|
|
31
|
+
startCrop: E,
|
|
32
|
+
stopCrop: M,
|
|
33
|
+
startResize: D,
|
|
34
|
+
stopResize: F,
|
|
35
|
+
historyCount: P,
|
|
36
|
+
loading: U
|
|
37
|
+
} = G({
|
|
38
|
+
imageSrc: w
|
|
39
|
+
}), f = () => {
|
|
40
|
+
A(), M(c === "CROP"), F(c === "RESIZE");
|
|
41
|
+
}, Z = async () => {
|
|
42
42
|
try {
|
|
43
|
-
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
blob,
|
|
47
|
-
altText,
|
|
48
|
-
legend
|
|
43
|
+
m(!0), f();
|
|
44
|
+
const e = await T();
|
|
45
|
+
e && await N({
|
|
46
|
+
blob: e,
|
|
47
|
+
altText: p,
|
|
48
|
+
legend: g
|
|
49
49
|
});
|
|
50
50
|
} catch (e) {
|
|
51
|
-
|
|
51
|
+
i == null || i(`${e}`);
|
|
52
52
|
} finally {
|
|
53
|
-
|
|
53
|
+
m(!1);
|
|
54
54
|
}
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
switch (
|
|
55
|
+
}, s = () => {
|
|
56
|
+
k();
|
|
57
|
+
}, H = async (e) => {
|
|
58
|
+
switch (f(), R(e), n(!0), e) {
|
|
59
59
|
case "ROTATE": {
|
|
60
|
-
await
|
|
60
|
+
await j();
|
|
61
61
|
break;
|
|
62
62
|
}
|
|
63
63
|
case "UNDO": {
|
|
64
|
-
await
|
|
64
|
+
await L();
|
|
65
65
|
break;
|
|
66
66
|
}
|
|
67
67
|
case "CROP": {
|
|
68
|
-
|
|
68
|
+
E();
|
|
69
69
|
break;
|
|
70
70
|
}
|
|
71
71
|
case "RESIZE": {
|
|
72
|
-
await
|
|
72
|
+
await D();
|
|
73
73
|
break;
|
|
74
74
|
}
|
|
75
75
|
case "BLUR": {
|
|
76
|
-
await
|
|
76
|
+
await z();
|
|
77
77
|
break;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
|
-
return /* @__PURE__ */
|
|
82
|
-
/* @__PURE__ */
|
|
83
|
-
/* @__PURE__ */
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
-
/* @__PURE__ */
|
|
81
|
+
return /* @__PURE__ */ o(r, { id: "image-editor", isOpen: C, onModalClose: s, size: "lg", children: [
|
|
82
|
+
/* @__PURE__ */ t(r.Header, { onModalClose: s, children: /* @__PURE__ */ t("span", { className: "h2", children: a("imageeditor.title") }) }),
|
|
83
|
+
/* @__PURE__ */ t(r.Body, { className: "d-flex flex-column align-items-center", children: /* @__PURE__ */ o("div", { className: "d-flex flex-column gap-12 w-100 flex-grow-1", children: [
|
|
84
|
+
/* @__PURE__ */ t(J, { handle: H, historyCount: P }),
|
|
85
|
+
/* @__PURE__ */ o("div", { className: "position-relative d-flex flex-column align-items-center justify-content-center flex-grow-1 w-100 image-editor", children: [
|
|
86
|
+
/* @__PURE__ */ t($, { onMount: (e) => I(e), options: {
|
|
87
87
|
preserveDrawingBuffer: !0,
|
|
88
88
|
backgroundAlpha: 0,
|
|
89
89
|
resolution: 1
|
|
90
90
|
} }),
|
|
91
|
-
!!
|
|
91
|
+
!!U && /* @__PURE__ */ t("div", { className: "position-absolute top-0 start-0 bottom-0 end-0 m-10 d-flex align-items-center justify-content-center bg-black opacity-25", children: /* @__PURE__ */ t(K, {}) })
|
|
92
92
|
] }),
|
|
93
|
-
/* @__PURE__ */
|
|
94
|
-
/* @__PURE__ */
|
|
95
|
-
/* @__PURE__ */
|
|
96
|
-
/* @__PURE__ */
|
|
97
|
-
|
|
98
|
-
}, placeholder:
|
|
93
|
+
/* @__PURE__ */ o("div", { className: "d-flex flex-column flex-md-row m-10 gap-12 w-100", children: [
|
|
94
|
+
/* @__PURE__ */ o(u, { id: "alt", className: "flex-grow-1", children: [
|
|
95
|
+
/* @__PURE__ */ t(h, { children: a("alttext") }),
|
|
96
|
+
/* @__PURE__ */ t(x, { value: p, onChange: (e) => {
|
|
97
|
+
n(!0), S(e.target.value);
|
|
98
|
+
}, placeholder: a("alttext.help"), size: "md", type: "text" })
|
|
99
99
|
] }),
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
-
/* @__PURE__ */
|
|
102
|
-
/* @__PURE__ */
|
|
103
|
-
|
|
104
|
-
}, placeholder:
|
|
100
|
+
/* @__PURE__ */ o(u, { id: "legend", className: "flex-grow-1", children: [
|
|
101
|
+
/* @__PURE__ */ t(h, { children: a("legend") }),
|
|
102
|
+
/* @__PURE__ */ t(x, { value: g, onChange: (e) => {
|
|
103
|
+
n(!0), B(e.target.value);
|
|
104
|
+
}, placeholder: a("legend.help"), size: "md", type: "text" })
|
|
105
105
|
] })
|
|
106
106
|
] })
|
|
107
107
|
] }) }),
|
|
108
|
-
/* @__PURE__ */
|
|
109
|
-
/* @__PURE__ */
|
|
110
|
-
/* @__PURE__ */
|
|
108
|
+
/* @__PURE__ */ o(r.Footer, { children: [
|
|
109
|
+
/* @__PURE__ */ t(b, { color: "tertiary", onClick: s, type: "button", variant: "ghost", children: a("imageeditor.cancel") }),
|
|
110
|
+
/* @__PURE__ */ t(b, { color: "primary", onClick: Z, type: "button", variant: "filled", isLoading: d, disabled: d || !O, children: a("imageeditor.save") })
|
|
111
111
|
] })
|
|
112
112
|
] });
|
|
113
|
-
}
|
|
113
|
+
};
|
|
114
114
|
export {
|
|
115
|
-
|
|
115
|
+
ie as default
|
|
116
116
|
};
|
|
117
|
+
//# sourceMappingURL=ImageEditor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageEditor.js","sources":["../../../../../src/modules/multimedia/ImageEditor/components/ImageEditor.tsx"],"sourcesContent":["import { useState } from 'react';\n\nimport { Stage } from '@pixi/react';\nimport { useTranslation } from 'react-i18next';\n\nimport {\n Button,\n FormControl,\n Input,\n Label,\n LoadingScreen,\n Modal,\n} from '../../../../components';\nimport useImageEditor from '../hooks/useImageEditor';\nimport ImageEditorToolbar, { ImageEditorAction } from './ImageEditorToolbar';\n\ninterface ImageEditorProps {\n image: string;\n isOpen: boolean;\n legend?: string;\n altText?: string;\n onCancel(): void;\n onSave(arg: {\n blob: Blob;\n legend: string;\n altText: string;\n }): void | Promise<void>;\n onError?(err: string): void;\n}\n/**\n * This component display the Image Editor as a Modal\n *\n * @param param.altText the initial alternative text of the image\n * @param param.legend the initial title text of the image\n * @param param.image the URL of the image to edit\n * @param param.isOpen whether the modal is visible\n * @param param.onCancel callback when the modal is closed without saving\n * @param param.onError callback when the save action failed\n * @param param.onSave callback when the save action succeed and receive as params the new image as blob and also the new legend and alt\n * @returns A React Component\n */\nconst ImageEditor = ({\n altText: altTextParam,\n legend: legendParam,\n image: imageSrc,\n isOpen,\n onCancel,\n onError,\n onSave,\n}: ImageEditorProps) => {\n const { t } = useTranslation();\n // Store the current operation in a state\n const [currentOperation, setCurrentOperation] = useState<\n ImageEditorAction | undefined\n >(undefined);\n // Whether we are saving or not\n const [isSaving, setSaving] = useState(false);\n // Store the alt text modofied by the input text\n const [altText, setAltText] = useState(altTextParam ?? '');\n // Store the legend text modofied by the input text\n const [legend, setLegend] = useState(legendParam ?? '');\n // Whether the image has been edited or the text has been changed\n const [dirty, setDirty] = useState<boolean>(false);\n // Load Image Editor action\n const {\n toBlob,\n setApplication,\n startBlur,\n stopBlur,\n restore,\n rotate,\n startCrop,\n stopCrop,\n startResize,\n stopResize,\n historyCount,\n loading,\n } = useImageEditor({\n imageSrc,\n });\n // A function to remove all opened controllers and backup changes if needed\n const stopAll = () => {\n stopBlur();\n stopCrop(currentOperation === 'CROP');\n stopResize(currentOperation === 'RESIZE');\n };\n // A handle to save edited image as Blob\n const handleSave = async () => {\n try {\n setSaving(true);\n stopAll();\n const blob = await toBlob();\n if (blob) {\n await onSave({ blob, altText, legend });\n }\n } catch (e) {\n onError?.(`${e}`);\n } finally {\n setSaving(false);\n }\n };\n // A handle to cancel without saving\n const handleCancel = () => {\n onCancel();\n };\n // A handle to trigger actions on toolbar action\n const handleOperation = async (operation: ImageEditorAction) => {\n // Stop Remove all previous graphical controllers\n stopAll();\n // Save the current operation\n setCurrentOperation(operation);\n // Update the dirty state because image is going to change\n setDirty(true);\n // Call action according to the selected operation\n switch (operation) {\n case 'ROTATE': {\n await rotate();\n break;\n }\n case 'UNDO': {\n await restore();\n break;\n }\n case 'CROP': {\n startCrop();\n break;\n }\n case 'RESIZE': {\n await startResize();\n break;\n }\n case 'BLUR': {\n await startBlur();\n break;\n }\n }\n };\n return (\n <Modal\n id=\"image-editor\"\n isOpen={isOpen}\n onModalClose={handleCancel}\n size=\"lg\"\n >\n <Modal.Header onModalClose={handleCancel}>\n <span className=\"h2\">{t('imageeditor.title')}</span>\n </Modal.Header>\n <Modal.Body className=\"d-flex flex-column align-items-center\">\n <div className=\"d-flex flex-column gap-12 w-100 flex-grow-1\">\n <ImageEditorToolbar\n handle={handleOperation}\n historyCount={historyCount}\n />\n <div className=\"position-relative d-flex flex-column align-items-center justify-content-center flex-grow-1 w-100 image-editor\">\n <Stage\n onMount={(app) => setApplication(app)}\n options={{\n preserveDrawingBuffer: true,\n backgroundAlpha: 0,\n resolution: 1,\n }}\n ></Stage>\n {!!loading && (\n <div className=\"position-absolute top-0 start-0 bottom-0 end-0 m-10 d-flex align-items-center justify-content-center bg-black opacity-25\">\n <LoadingScreen />\n </div>\n )}\n </div>\n <div className=\"d-flex flex-column flex-md-row m-10 gap-12 w-100\">\n <FormControl id=\"alt\" className=\"flex-grow-1\">\n <Label>{t('alttext')}</Label>\n <Input\n value={altText}\n onChange={(e) => {\n setDirty(true);\n setAltText(e.target.value);\n }}\n placeholder={t('alttext.help')}\n size=\"md\"\n type=\"text\"\n />\n </FormControl>\n <FormControl id=\"legend\" className=\"flex-grow-1\">\n <Label>{t('legend')}</Label>\n <Input\n value={legend}\n onChange={(e) => {\n setDirty(true);\n setLegend(e.target.value);\n }}\n placeholder={t('legend.help')}\n size=\"md\"\n type=\"text\"\n />\n </FormControl>\n </div>\n </div>\n </Modal.Body>\n <Modal.Footer>\n <Button\n color=\"tertiary\"\n onClick={handleCancel}\n type=\"button\"\n variant=\"ghost\"\n >\n {t('imageeditor.cancel')}\n </Button>\n <Button\n color=\"primary\"\n onClick={handleSave}\n type=\"button\"\n variant=\"filled\"\n isLoading={isSaving}\n disabled={isSaving || !dirty}\n >\n {t('imageeditor.save')}\n </Button>\n </Modal.Footer>\n </Modal>\n );\n};\n\nexport default ImageEditor;\n"],"names":["ImageEditor","altText","altTextParam","legend","legendParam","image","imageSrc","isOpen","onCancel","onError","onSave","t","useTranslation","currentOperation","setCurrentOperation","useState","undefined","isSaving","setSaving","setAltText","setLegend","dirty","setDirty","toBlob","setApplication","startBlur","stopBlur","restore","rotate","startCrop","stopCrop","startResize","stopResize","historyCount","loading","useImageEditor","stopAll","handleSave","blob","e","handleCancel","handleOperation","operation","jsxs","Modal","jsx","ImageEditorToolbar","Stage","app","preserveDrawingBuffer","backgroundAlpha","resolution","LoadingScreen","FormControl","Label","Input","target","value","Button"],"mappings":";;;;;;;;;;;;AAyCA,MAAM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jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useState } from "react";
|
|
3
|
-
import { useTranslation } from "react-i18next";
|
|
4
|
-
import { Icon } from "../../../../components/Icon/Icon.js";
|
|
5
|
-
import { Toolbar } from "../../../../components/Toolbar/Toolbar.js";
|
|
6
|
-
const
|
|
7
|
-
historyCount,
|
|
8
|
-
handle
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as p } from "react";
|
|
3
|
+
import { useTranslation as m } from "react-i18next";
|
|
4
|
+
import { Icon as r } from "../../../../components/Icon/Icon.js";
|
|
5
|
+
import { Toolbar as d } from "../../../../components/Toolbar/Toolbar.js";
|
|
6
|
+
const h = ({
|
|
7
|
+
historyCount: n,
|
|
8
|
+
handle: i
|
|
9
9
|
}) => {
|
|
10
10
|
const {
|
|
11
|
-
t
|
|
12
|
-
} =
|
|
13
|
-
|
|
14
|
-
},
|
|
11
|
+
t: o
|
|
12
|
+
} = m(), [a, c] = p(void 0), e = (l) => {
|
|
13
|
+
c(l), i(l);
|
|
14
|
+
}, s = [{
|
|
15
15
|
type: "button",
|
|
16
16
|
name: "undo",
|
|
17
17
|
props: {
|
|
18
18
|
color: "tertiary",
|
|
19
|
-
leftIcon: /* @__PURE__ */
|
|
20
|
-
"aria-label":
|
|
21
|
-
children:
|
|
22
|
-
onClick: () =>
|
|
23
|
-
disabled:
|
|
19
|
+
leftIcon: /* @__PURE__ */ t(r, { name: "undo" }),
|
|
20
|
+
"aria-label": o("cancel"),
|
|
21
|
+
children: o("cancel"),
|
|
22
|
+
onClick: () => e("UNDO"),
|
|
23
|
+
disabled: n === 0
|
|
24
24
|
},
|
|
25
|
-
tooltip:
|
|
25
|
+
tooltip: o("cancel")
|
|
26
26
|
}, {
|
|
27
27
|
type: "divider",
|
|
28
28
|
name: "div-1"
|
|
@@ -31,39 +31,40 @@ const ImageEditorToolbar = ({
|
|
|
31
31
|
name: "reset",
|
|
32
32
|
props: {
|
|
33
33
|
color: "tertiary",
|
|
34
|
-
leftIcon: /* @__PURE__ */
|
|
35
|
-
"aria-label":
|
|
36
|
-
children:
|
|
37
|
-
onClick: () =>
|
|
34
|
+
leftIcon: /* @__PURE__ */ t(r, { name: "reset" }),
|
|
35
|
+
"aria-label": o("rotate"),
|
|
36
|
+
children: o("rotate"),
|
|
37
|
+
onClick: () => e("ROTATE")
|
|
38
38
|
},
|
|
39
|
-
tooltip:
|
|
39
|
+
tooltip: o("rotate")
|
|
40
40
|
}, {
|
|
41
41
|
type: "button",
|
|
42
42
|
name: "crop",
|
|
43
43
|
props: {
|
|
44
44
|
color: "tertiary",
|
|
45
|
-
leftIcon: /* @__PURE__ */
|
|
46
|
-
"aria-label":
|
|
47
|
-
children:
|
|
48
|
-
className:
|
|
49
|
-
onClick: () =>
|
|
45
|
+
leftIcon: /* @__PURE__ */ t(r, { name: "crop" }),
|
|
46
|
+
"aria-label": o("crop"),
|
|
47
|
+
children: o("crop"),
|
|
48
|
+
className: a === "CROP" ? "is-selected" : "",
|
|
49
|
+
onClick: () => e("CROP")
|
|
50
50
|
},
|
|
51
|
-
tooltip:
|
|
51
|
+
tooltip: o("crop")
|
|
52
52
|
}, {
|
|
53
53
|
type: "button",
|
|
54
54
|
name: "blur",
|
|
55
55
|
props: {
|
|
56
56
|
color: "tertiary",
|
|
57
|
-
leftIcon: /* @__PURE__ */
|
|
58
|
-
"aria-label":
|
|
59
|
-
children:
|
|
60
|
-
className:
|
|
61
|
-
onClick: () =>
|
|
57
|
+
leftIcon: /* @__PURE__ */ t(r, { name: "blur" }),
|
|
58
|
+
"aria-label": o("blur"),
|
|
59
|
+
children: o("blur"),
|
|
60
|
+
className: a === "BLUR" ? "is-selected" : "",
|
|
61
|
+
onClick: () => e("BLUR")
|
|
62
62
|
},
|
|
63
|
-
tooltip:
|
|
63
|
+
tooltip: o("blur")
|
|
64
64
|
}];
|
|
65
|
-
return /* @__PURE__ */
|
|
65
|
+
return /* @__PURE__ */ t(d, { variant: "no-shadow", align: "left", isBlock: !0, items: s });
|
|
66
66
|
};
|
|
67
67
|
export {
|
|
68
|
-
|
|
68
|
+
h as default
|
|
69
69
|
};
|
|
70
|
+
//# sourceMappingURL=ImageEditorToolbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageEditorToolbar.js","sources":["../../../../../src/modules/multimedia/ImageEditor/components/ImageEditorToolbar.tsx"],"sourcesContent":["import { useState } from 'react';\n\nimport { useTranslation } from 'react-i18next';\n\nimport { Icon, Toolbar, ToolbarItem } from '../../../../components';\n\nexport type ImageEditorAction = 'ROTATE' | 'UNDO' | 'CROP' | 'BLUR' | 'RESIZE';\ninterface ImageEditorToolbarProps {\n historyCount: number;\n handle(operation: ImageEditorAction): void;\n}\n\nconst ImageEditorToolbar = ({\n historyCount,\n handle,\n}: ImageEditorToolbarProps) => {\n const { t } = useTranslation();\n const [action, setAction] = useState<ImageEditorAction | undefined>(\n undefined,\n );\n const handleAndSave = (action: ImageEditorAction) => {\n setAction(action);\n handle(action);\n };\n\n const ImageEditorItems: ToolbarItem[] = [\n {\n type: 'button',\n name: 'undo',\n props: {\n color: 'tertiary',\n leftIcon: <Icon name=\"undo\" />,\n 'aria-label': t('cancel'),\n children: t('cancel'),\n onClick: () => handleAndSave('UNDO'),\n disabled: historyCount === 0,\n },\n tooltip: t('cancel'),\n },\n {\n type: 'divider',\n name: 'div-1',\n },\n {\n type: 'button',\n name: 'reset',\n props: {\n color: 'tertiary',\n leftIcon: <Icon name=\"reset\" />,\n 'aria-label': t('rotate'),\n children: t('rotate'),\n onClick: () => handleAndSave('ROTATE'),\n },\n tooltip: t('rotate'),\n },\n {\n type: 'button',\n name: 'crop',\n props: {\n color: 'tertiary',\n leftIcon: <Icon name=\"crop\" />,\n 'aria-label': t('crop'),\n children: t('crop'),\n className: action === 'CROP' ? 'is-selected' : '',\n onClick: () => handleAndSave('CROP'),\n },\n tooltip: t('crop'),\n },\n {\n type: 'button',\n name: 'blur',\n props: {\n color: 'tertiary',\n leftIcon: <Icon name=\"blur\" />,\n 'aria-label': t('blur'),\n children: t('blur'),\n className: action === 'BLUR' ? 'is-selected' : '',\n onClick: () => handleAndSave('BLUR'),\n },\n tooltip: t('blur'),\n },\n ];\n\n return (\n <Toolbar\n variant=\"no-shadow\"\n align=\"left\"\n isBlock\n items={ImageEditorItems}\n />\n );\n};\nexport default ImageEditorToolbar;\n"],"names":["ImageEditorToolbar","historyCount","handle","t","useTranslation","action","setAction","useState","undefined","handleAndSave","ImageEditorItems","type","name","props","color","leftIcon","jsx","Icon","children","onClick","disabled","tooltip","className","Toolbar"],"mappings":";;;;;AAYA,MAAMA,IAAqBA,CAAC;AAAA,EAC1BC,cAAAA;AAAAA,EACAC,QAAAA;AACuB,MAAM;AACvB,QAAA;AAAA,IAAEC,GAAAA;AAAAA,MAAMC,EAAe,GACvB,CAACC,GAAQC,CAAS,IAAIC,EAC1BC,MACF,GACMC,IAAgBA,CAACJ,MAA8B;AACnDC,IAAAA,EAAUD,CAAM,GAChBH,EAAOG,CAAM;AAAA,EAAA,GAGTK,IAAkC,CACtC;AAAA,IACEC,MAAM;AAAA,IACNC,MAAM;AAAA,IACNC,OAAO;AAAA,MACLC,OAAO;AAAA,MACPC,UAAU,gBAAAC,EAACC,GAAK,EAAA,MAAK,OAAS,CAAA;AAAA,MAC9B,cAAcd,EAAE,QAAQ;AAAA,MACxBe,UAAUf,EAAE,QAAQ;AAAA,MACpBgB,SAASA,MAAMV,EAAc,MAAM;AAAA,MACnCW,UAAUnB,MAAiB;AAAA,IAC7B;AAAA,IACAoB,SAASlB,EAAE,QAAQ;AAAA,EAAA,GAErB;AAAA,IACEQ,MAAM;AAAA,IACNC,MAAM;AAAA,EAAA,GAER;AAAA,IACED,MAAM;AAAA,IACNC,MAAM;AAAA,IACNC,OAAO;AAAA,MACLC,OAAO;AAAA,MACPC,UAAU,gBAAAC,EAACC,GAAK,EAAA,MAAK,QAAU,CAAA;AAAA,MAC/B,cAAcd,EAAE,QAAQ;AAAA,MACxBe,UAAUf,EAAE,QAAQ;AAAA,MACpBgB,SAASA,MAAMV,EAAc,QAAQ;AAAA,IACvC;AAAA,IACAY,SAASlB,EAAE,QAAQ;AAAA,EAAA,GAErB;AAAA,IACEQ,MAAM;AAAA,IACNC,MAAM;AAAA,IACNC,OAAO;AAAA,MACLC,OAAO;AAAA,MACPC,UAAU,gBAAAC,EAACC,GAAK,EAAA,MAAK,OAAS,CAAA;AAAA,MAC9B,cAAcd,EAAE,MAAM;AAAA,MACtBe,UAAUf,EAAE,MAAM;AAAA,MAClBmB,WAAWjB,MAAW,SAAS,gBAAgB;AAAA,MAC/Cc,SAASA,MAAMV,EAAc,MAAM;AAAA,IACrC;AAAA,IACAY,SAASlB,EAAE,MAAM;AAAA,EAAA,GAEnB;AAAA,IACEQ,MAAM;AAAA,IACNC,MAAM;AAAA,IACNC,OAAO;AAAA,MACLC,OAAO;AAAA,MACPC,UAAU,gBAAAC,EAACC,GAAK,EAAA,MAAK,OAAS,CAAA;AAAA,MAC9B,cAAcd,EAAE,MAAM;AAAA,MACtBe,UAAUf,EAAE,MAAM;AAAA,MAClBmB,WAAWjB,MAAW,SAAS,gBAAgB;AAAA,MAC/Cc,SAASA,MAAMV,EAAc,MAAM;AAAA,IACrC;AAAA,IACAY,SAASlB,EAAE,MAAM;AAAA,EAAA,CAClB;AAID,SAAA,gBAAAa,EAACO,KACC,SAAQ,aACR,OAAM,QACN,SAAO,IACP,OAAOb,EACP,CAAA;AAEN;"}
|
|
@@ -1,72 +1,73 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { getApplicationScale } from "./misc.js";
|
|
3
|
-
import { aggregate } from "../utils/aggregate.js";
|
|
4
|
-
const
|
|
5
|
-
function
|
|
6
|
-
const
|
|
7
|
-
for (const
|
|
8
|
-
|
|
9
|
-
return
|
|
1
|
+
import * as i from "pixi.js";
|
|
2
|
+
import { getApplicationScale as d } from "./misc.js";
|
|
3
|
+
import { aggregate as l } from "../utils/aggregate.js";
|
|
4
|
+
const g = 20, h = 50, u = "BRUSH_CURSOR";
|
|
5
|
+
function m(e, n) {
|
|
6
|
+
const t = new i.Graphics();
|
|
7
|
+
for (const r of e)
|
|
8
|
+
r && (t.beginFill(16777215, 1), t.drawCircle(r.x, r.y, g / n), t.lineStyle(0), t.endFill());
|
|
9
|
+
return t;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
spriteName
|
|
11
|
+
function w(e, {
|
|
12
|
+
spriteName: n
|
|
13
13
|
}) {
|
|
14
|
-
return
|
|
15
|
-
const
|
|
16
|
-
if (
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
new
|
|
14
|
+
return l(h, (t) => e.stage.toLocal(t.global), (t) => {
|
|
15
|
+
const r = e.stage.getChildByName(n), s = d(e);
|
|
16
|
+
if (r == null) return;
|
|
17
|
+
const o = new i.Sprite(r.texture);
|
|
18
|
+
o.filters = [
|
|
19
|
+
new i.BlurFilter(
|
|
20
20
|
8,
|
|
21
21
|
// PIXI Default value for strength of the blur effect
|
|
22
22
|
4,
|
|
23
23
|
// Quality of the blur effect depending on the scale (4 is the PIXI default value)
|
|
24
|
-
Math.min(
|
|
24
|
+
Math.min(s, 1)
|
|
25
25
|
)
|
|
26
26
|
// Resolution of the blur effect depending on the scale
|
|
27
|
-
],
|
|
27
|
+
], o.width = r.width, o.height = r.height, o.scale = new i.Point(1, 1), o.anchor = r.anchor, o.mask = m(t, s), r.addChild(o);
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
|
|
32
|
-
const
|
|
33
|
-
return
|
|
30
|
+
function a(e) {
|
|
31
|
+
f(e);
|
|
32
|
+
const n = d(e), t = new i.Graphics();
|
|
33
|
+
return t.lineStyle(Math.max(1, 1 / n), 16711680), t.drawCircle(0, 0, g / n), t.endFill(), t.name = u, e.stage.addChild(t), t;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
const
|
|
37
|
-
|
|
35
|
+
function f(e) {
|
|
36
|
+
const n = e.stage.getChildByName(u);
|
|
37
|
+
n && n.removeFromParent();
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
return (
|
|
41
|
-
if (!
|
|
42
|
-
const
|
|
43
|
-
|
|
39
|
+
function C(e) {
|
|
40
|
+
return (n) => {
|
|
41
|
+
if (!e) return;
|
|
42
|
+
const t = e.stage.toLocal(n.global), r = e.stage.getChildByName(u, !0);
|
|
43
|
+
r && (r.position.x = t.x, r.position.y = t.y);
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
spriteName
|
|
46
|
+
function y(e, {
|
|
47
|
+
spriteName: n
|
|
48
48
|
}) {
|
|
49
|
-
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
const
|
|
53
|
-
spriteName
|
|
49
|
+
e.stage.interactive = !0;
|
|
50
|
+
const t = a(e), r = C(e);
|
|
51
|
+
e.stage.on("pointermove", r);
|
|
52
|
+
const s = w(e, {
|
|
53
|
+
spriteName: n
|
|
54
54
|
});
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
e.stage.on("pointerdown", () => {
|
|
56
|
+
e.stage.on("pointermove", s);
|
|
57
57
|
});
|
|
58
|
-
const
|
|
59
|
-
var
|
|
60
|
-
(
|
|
58
|
+
const o = () => {
|
|
59
|
+
var c;
|
|
60
|
+
(c = e == null ? void 0 : e.stage) == null || c.off("pointermove", s);
|
|
61
61
|
};
|
|
62
|
-
globalThis.addEventListener("pointerup",
|
|
63
|
-
globalThis.removeEventListener("pointerup",
|
|
62
|
+
globalThis.addEventListener("pointerup", o), t.once("destroyed", () => {
|
|
63
|
+
globalThis.removeEventListener("pointerup", o);
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
|
|
66
|
+
function B(e) {
|
|
67
|
+
f(e), e.stage.off("pointerdown"), e.stage.off("pointermove");
|
|
68
68
|
}
|
|
69
69
|
export {
|
|
70
|
-
start,
|
|
71
|
-
stop
|
|
70
|
+
y as start,
|
|
71
|
+
B as stop
|
|
72
72
|
};
|
|
73
|
+
//# sourceMappingURL=blur.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blur.js","sources":["../../../../../src/modules/multimedia/ImageEditor/effects/blur.ts"],"sourcesContent":["import * as PIXI from 'pixi.js';\n\nimport { getApplicationScale } from './misc';\nimport { aggregate } from '../utils/aggregate';\n\n//\n// Global constants used for crop effects\n//\n\n// Define the radius (pixel) of the brush used to apply blur\nconst BRUSH_SIZE = 20;\n// Define the delay (in ms) of the debounce to avoid lags\nconst DEBOUNCE = 50;\n// Define the name of brush object in the PIXI context\nconst CURSOR_NAME = 'BRUSH_CURSOR';\n\n//\n// Implementation\n//\n\n/**\n * This function draw brush graphical object for each points\n *\n * @param points a list of PIXI.Point used to draw brush\n * @returns a graphical object that draw brush for each of theses points\n */\nfunction drawBrush(\n points: Array<PIXI.Point | undefined>,\n scale: number,\n): PIXI.Graphics {\n const container = new PIXI.Graphics();\n for (const point of points) {\n if (point) {\n container.beginFill(0xffffff, 1);\n container.drawCircle(point.x, point.y, BRUSH_SIZE / scale);\n container.lineStyle(0);\n container.endFill();\n }\n }\n return container;\n}\n\n/**\n * This function create a mouse event listener that merge and aggregate mouse events\n * The aggregated events are used to draw brush and apply blur filter to the stage\n * If the spriteName has not been found in the context, the listener do nothing\n *\n * @param application The PIXI.Application context\n * @param {spriteName} arg The name of the sprite identifying the original image\n * @returns A mouse event listener\n */\nfunction drawBlurListener(\n application: PIXI.Application,\n { spriteName }: { spriteName: string },\n) {\n return aggregate(\n DEBOUNCE,\n (event: PIXI.FederatedMouseEvent) => {\n return application.stage.toLocal(event.global);\n },\n (points: Array<PIXI.Point | undefined>) => {\n // Search for sprite\n const child = application.stage.getChildByName(spriteName);\n const scale = getApplicationScale(application);\n if (child === undefined || child === null) return;\n // Create a sprite by copying texture and apply blurFilter\n const newSprite = new PIXI.Sprite((child as PIXI.Sprite).texture);\n // Apply blur filter to the new sprite, quality for big image (fix lag issue)\n\n newSprite.filters = [\n new PIXI.BlurFilter(\n 8, // PIXI Default value for strength of the blur effect\n (Math.min(Math.round(4 * scale)), 4), // Quality of the blur effect depending on the scale (4 is the PIXI default value)\n Math.min(scale, 1), // Resolution of the blur effect depending on the scale\n ),\n ];\n newSprite.width = (child as PIXI.Sprite).width;\n newSprite.height = (child as PIXI.Sprite).height;\n // Resize the new sprite to match the original\n newSprite.scale = new PIXI.Point(1, 1);\n newSprite.anchor = (child as PIXI.Sprite).anchor;\n newSprite.mask = drawBrush(points, scale);\n (child as PIXI.Sprite).addChild(newSprite);\n },\n );\n}\n/**\n * This function draw the graphical cursor use to apply the blur effect\n *\n * @param application The PIXI.Application context\n * @returns the PIXI.Graphics object representing the cursor\n */\nfunction drawCursor(application: PIXI.Application): PIXI.Graphics {\n // Remove cursor if exists before draw\n removeCursor(application);\n const scale = getApplicationScale(application);\n const circle = new PIXI.Graphics();\n circle.lineStyle(Math.max(1, 1 / scale), 0xff0000);\n circle.drawCircle(0, 0, BRUSH_SIZE / scale);\n circle.endFill();\n circle.name = CURSOR_NAME;\n application.stage.addChild(circle);\n return circle;\n}\n/**\n * This function remove cursor if exists in context\n *\n * @param application The PIXI.Application context\n */\nfunction removeCursor(application: PIXI.Application) {\n const child = application.stage.getChildByName(CURSOR_NAME);\n if (child) {\n child.removeFromParent();\n }\n}\n/**\n * Move the cursor graphical controler while mouse is moving\n *\n * @param application the PIXI.Application context\n * @returns A mouse event listener\n */\nfunction moveCursorListener(application: PIXI.Application) {\n return (event: PIXI.FederatedMouseEvent) => {\n if (!application) return;\n const point = application.stage.toLocal(event.global);\n const child = application.stage.getChildByName(CURSOR_NAME, true);\n if (child) {\n child.position.x = point.x;\n child.position.y = point.y;\n }\n };\n}\n/**\n * This function start the blur controler\n * - drawing cursor\n * - listening mouse move to move cursor\n * - listening\n *\n * @param application\n * @param param1\n */\nexport function start(\n application: PIXI.Application,\n { spriteName }: { spriteName: string },\n) {\n application.stage.interactive = true;\n // Draw cursor\n const cursor = drawCursor(application);\n // Apply blur effect and move cursor while mouse moving\n const cursorListener = moveCursorListener(application);\n application.stage.on('pointermove', cursorListener);\n const blurListener = drawBlurListener(application, { spriteName });\n application.stage.on('pointerdown', () => {\n application.stage.on('pointermove', blurListener);\n });\n // Stop listening move when cursor is up\n const stopListening = () => {\n application?.stage?.off('pointermove', blurListener);\n };\n globalThis.addEventListener('pointerup', stopListening);\n // Remove global listener when cursor is destroyed\n cursor.once('destroyed', () => {\n globalThis.removeEventListener('pointerup', stopListening);\n });\n}\n/**\n * This function remove cursor and all mouse event listeners\n *\n * @param application the PIXI.Application context\n */\nexport function stop(application: PIXI.Application): void {\n removeCursor(application);\n application.stage.off('pointerdown');\n application.stage.off('pointermove');\n}\n"],"names":["BRUSH_SIZE","DEBOUNCE","CURSOR_NAME","drawBrush","points","scale","container","PIXI","Graphics","point","beginFill","drawCircle","x","y","lineStyle","endFill","drawBlurListener","application","spriteName","aggregate","event","stage","toLocal","global","child","getChildByName","getApplicationScale","newSprite","Sprite","texture","filters","BlurFilter","Math","min","width","height","Point","anchor","mask","addChild","drawCursor","removeCursor","circle","max","name","removeFromParent","moveCursorListener","position","start","interactive","cursor","cursorListener","on","blurListener","stopListening","off","addEventListener","once","removeEventListener","stop"],"mappings":";;;AAUA,MAAMA,IAAa,IAEbC,IAAW,IAEXC,IAAc;AAYpB,SAASC,EACPC,GACAC,GACe;AACTC,QAAAA,IAAY,IAAIC,EAAKC;AAC3B,aAAWC,KAASL;AAClB,IAAIK,MACQC,EAAAA,UAAU,UAAU,CAAC,GAC/BJ,EAAUK,WAAWF,EAAMG,GAAGH,EAAMI,GAAGb,IAAaK,CAAK,GACzDC,EAAUQ,UAAU,CAAC,GACrBR,EAAUS,QAAQ;AAGfT,SAAAA;AACT;AAWA,SAASU,EACPC,GACA;AAAA,EAAEC,YAAAA;AAAmC,GACrC;AACOC,SAAAA,EACLlB,GACA,CAACmB,MACQH,EAAYI,MAAMC,QAAQF,EAAMG,MAAM,G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