@webiny/app-admin 0.0.0-mt-1
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/LICENSE +21 -0
- package/README.md +21 -0
- package/assets/icons/add-18px.svg +3 -0
- package/assets/icons/arrow_drop_down-24px.svg +4 -0
- package/assets/icons/attach_file_black_24dp.svg +1 -0
- package/assets/icons/baseline-menu-24px.svg +4 -0
- package/assets/icons/baseline-notification_important-24px.svg +4 -0
- package/assets/icons/baseline-security-24px.svg +4 -0
- package/assets/icons/filter-24px.svg +8 -0
- package/assets/icons/github-brands.svg +1 -0
- package/assets/icons/highlight-24px.svg +1 -0
- package/assets/icons/icon-community.svg +16 -0
- package/assets/icons/icon-documentation.svg +16 -0
- package/assets/icons/info.svg +1 -0
- package/assets/icons/insert_drive_file-24px.svg +1 -0
- package/assets/icons/insert_photo-24px.svg +1 -0
- package/assets/icons/label-24px.svg +1 -0
- package/assets/icons/round-account_circle-24px.svg +1 -0
- package/assets/icons/round-add-24px.svg +16 -0
- package/assets/icons/round-arrow_drop_down-24px.svg +1 -0
- package/assets/icons/round-chevron_right-24px.svg +12 -0
- package/assets/icons/round-feedback-24px.svg +54 -0
- package/assets/icons/round-help-24px.svg +1 -0
- package/assets/icons/round-invert_colors-24px.svg +52 -0
- package/assets/icons/round-keyboard_arrow_down-24px.svg +16 -0
- package/assets/icons/round-keyboard_arrow_up-24px.svg +16 -0
- package/assets/icons/round-lock_open-24px.svg +60 -0
- package/assets/icons/round-more_vert-24px.svg +12 -0
- package/assets/icons/round-open_in_new-24px.svg +44 -0
- package/assets/icons/round-settings-24px.svg +4 -0
- package/assets/icons/search-24px.svg +20 -0
- package/assets/icons/slack-logo.svg +1 -0
- package/assets/icons/today-24px.svg +1 -0
- package/assets/icons/touch_app.svg +1 -0
- package/assets/images/arr.png +0 -0
- package/assets/images/arr_2.png +0 -0
- package/assets/images/header_bg.jpg +0 -0
- package/assets/images/icons.png +0 -0
- package/assets/images/icons_retina.png +0 -0
- package/assets/images/logo.png +0 -0
- package/assets/images/logo_orange.png +0 -0
- package/assets/images/public/bg-login.png +0 -0
- package/assets/images/public/favicon.ico +0 -0
- package/assets/images/public/logo_orange.png +0 -0
- package/assets/images/public/preloader_2.png +0 -0
- package/assets/images/swich.png +0 -0
- package/assets/images/table_img.jpg +0 -0
- package/assets/images/webiny-logo.svg +20 -0
- package/assets/images/webiny-orange-logo.svg +20 -0
- package/components/AdminLayout.d.ts +7 -0
- package/components/AdminLayout.js +35 -0
- package/components/AppInstaller/Sidebar.d.ts +7 -0
- package/components/AppInstaller/Sidebar.js +158 -0
- package/components/AppInstaller/assets/sign-in-divider.svg +19 -0
- package/components/AppInstaller/index.d.ts +5 -0
- package/components/AppInstaller/index.js +134 -0
- package/components/AppInstaller/styled.d.ts +7 -0
- package/components/AppInstaller/styled.js +73 -0
- package/components/AppInstaller/useInstaller.d.ts +11 -0
- package/components/AppInstaller/useInstaller.js +279 -0
- package/components/EmptyView.d.ts +8 -0
- package/components/EmptyView.js +56 -0
- package/components/FileManager/BottomInfoBar/SupportedFileTypes.d.ts +5 -0
- package/components/FileManager/BottomInfoBar/SupportedFileTypes.js +35 -0
- package/components/FileManager/BottomInfoBar/UploadStatus.d.ts +5 -0
- package/components/FileManager/BottomInfoBar/UploadStatus.js +47 -0
- package/components/FileManager/BottomInfoBar.d.ts +3 -0
- package/components/FileManager/BottomInfoBar.js +42 -0
- package/components/FileManager/DropFilesHere.d.ts +8 -0
- package/components/FileManager/DropFilesHere.js +58 -0
- package/components/FileManager/File.d.ts +18 -0
- package/components/FileManager/File.js +129 -0
- package/components/FileManager/FileDetails/Name.d.ts +6 -0
- package/components/FileManager/FileDetails/Name.js +113 -0
- package/components/FileManager/FileDetails/Tags.d.ts +6 -0
- package/components/FileManager/FileDetails/Tags.js +241 -0
- package/components/FileManager/FileDetails.d.ts +23 -0
- package/components/FileManager/FileDetails.js +392 -0
- package/components/FileManager/FileManagerContext.d.ts +23 -0
- package/components/FileManager/FileManagerContext.js +174 -0
- package/components/FileManager/FileManagerView.d.ts +23 -0
- package/components/FileManager/FileManagerView.js +632 -0
- package/components/FileManager/LeftSidebar.d.ts +8 -0
- package/components/FileManager/LeftSidebar.js +95 -0
- package/components/FileManager/NoPermissionView.d.ts +3 -0
- package/components/FileManager/NoPermissionView.js +70 -0
- package/components/FileManager/NoResults.d.ts +2 -0
- package/components/FileManager/NoResults.js +13 -0
- package/components/FileManager/getFileTypePlugin.d.ts +1 -0
- package/components/FileManager/getFileTypePlugin.js +27 -0
- package/components/FileManager/getFileUploader.d.ts +2 -0
- package/components/FileManager/getFileUploader.js +10 -0
- package/components/FileManager/graphql.d.ts +6 -0
- package/components/FileManager/graphql.js +17 -0
- package/components/FileManager/icons/content_copy-black-24px.svg +1 -0
- package/components/FileManager/icons/delete.svg +12 -0
- package/components/FileManager/icons/privacy_tip-24px.svg +10 -0
- package/components/FileManager/icons/round-check_box-24px.svg +4 -0
- package/components/FileManager/icons/round-check_box_outline_blank-24px.svg +4 -0
- package/components/FileManager/icons/round-cloud_download-24px.svg +4 -0
- package/components/FileManager/icons/round-cloud_upload-24px.svg +4 -0
- package/components/FileManager/icons/round-description-24px.svg +4 -0
- package/components/FileManager/icons/round-edit-24px.svg +4 -0
- package/components/FileManager/icons/round-info-24px.svg +4 -0
- package/components/FileManager/icons/round-label-24px.svg +4 -0
- package/components/FileManager/icons/round-more_vert-24px.svg +4 -0
- package/components/FileManager/icons/round-search-24px.svg +20 -0
- package/components/FileManager/outputFileSelectionError.d.ts +2 -0
- package/components/FileManager/outputFileSelectionError.js +39 -0
- package/components/FileManager.d.ts +18 -0
- package/components/FileManager.js +133 -0
- package/components/FloatingActionButton.d.ts +3 -0
- package/components/FloatingActionButton.js +17 -0
- package/components/MultiImageUpload.d.ts +4 -0
- package/components/MultiImageUpload.js +20 -0
- package/components/OverlayLayout/OverlayLayout.d.ts +25 -0
- package/components/OverlayLayout/OverlayLayout.js +159 -0
- package/components/OverlayLayout/icons/close.svg +13 -0
- package/components/OverlayLayout/icons/navigate_before.svg +16 -0
- package/components/OverlayLayout/index.d.ts +1 -0
- package/components/OverlayLayout/index.js +1 -0
- package/components/Permissions/Permissions.d.ts +7 -0
- package/components/Permissions/Permissions.js +37 -0
- package/components/Permissions/StyledComponents.d.ts +6 -0
- package/components/Permissions/StyledComponents.js +19 -0
- package/components/Permissions/index.d.ts +2 -0
- package/components/Permissions/index.js +2 -0
- package/components/RichTextEditor/RichTextEditor.d.ts +3 -0
- package/components/RichTextEditor/RichTextEditor.js +15 -0
- package/components/RichTextEditor/index.d.ts +2 -0
- package/components/RichTextEditor/index.js +2 -0
- package/components/RichTextEditor/styles.scss +64 -0
- package/components/RichTextEditor/tools/header/index.d.ts +228 -0
- package/components/RichTextEditor/tools/header/index.js +731 -0
- package/components/RichTextEditor/tools/header/styles.scss +48 -0
- package/components/RichTextEditor/tools/image/index.d.ts +97 -0
- package/components/RichTextEditor/tools/image/index.js +257 -0
- package/components/RichTextEditor/tools/image/styles.scss +90 -0
- package/components/RichTextEditor/tools/image/svgs.d.ts +6 -0
- package/components/RichTextEditor/tools/image/svgs.js +5 -0
- package/components/RichTextEditor/tools/image/tunes.d.ts +58 -0
- package/components/RichTextEditor/tools/image/tunes.js +134 -0
- package/components/RichTextEditor/tools/image/ui.d.ts +111 -0
- package/components/RichTextEditor/tools/image/ui.js +281 -0
- package/components/RichTextEditor/tools/paragraph/index.d.ts +211 -0
- package/components/RichTextEditor/tools/paragraph/index.js +520 -0
- package/components/RichTextEditor/tools/paragraph/styles.scss +29 -0
- package/components/RichTextEditor/tools/textColor/index.d.ts +58 -0
- package/components/RichTextEditor/tools/textColor/index.js +232 -0
- package/components/RichTextEditor/tools/textColor/styles.scss +21 -0
- package/components/RichTextEditor/tools/utils.d.ts +19 -0
- package/components/RichTextEditor/tools/utils.js +24 -0
- package/components/SearchUI.d.ts +8 -0
- package/components/SearchUI.js +59 -0
- package/components/SimpleForm/SimpleForm.d.ts +21 -0
- package/components/SimpleForm/SimpleForm.js +75 -0
- package/components/SimpleForm/index.d.ts +1 -0
- package/components/SimpleForm/index.js +1 -0
- package/components/SimpleUI/InputField.d.ts +9 -0
- package/components/SimpleUI/InputField.js +97 -0
- package/components/SingleImageUpload.d.ts +25 -0
- package/components/SingleImageUpload.js +102 -0
- package/components/SplitView/SplitView.d.ts +10 -0
- package/components/SplitView/SplitView.js +76 -0
- package/components/SplitView/index.d.ts +1 -0
- package/components/SplitView/index.js +1 -0
- package/components/index.d.ts +1 -0
- package/components/index.js +1 -0
- package/hooks/useConfirmationDialog.d.ts +10 -0
- package/hooks/useConfirmationDialog.js +47 -0
- package/hooks/useDialog.d.ts +5 -0
- package/hooks/useDialog.js +27 -0
- package/hooks/useSnackbar.d.ts +4 -0
- package/hooks/useSnackbar.js +25 -0
- package/package.json +101 -0
- package/plugins/FileManagerFileTypePlugin.d.ts +33 -0
- package/plugins/FileManagerFileTypePlugin.js +46 -0
- package/plugins/MenuPlugin.d.ts +20 -0
- package/plugins/MenuPlugin.js +41 -0
- package/plugins/PermissionRendererPlugin.d.ts +22 -0
- package/plugins/PermissionRendererPlugin.js +41 -0
- package/plugins/fileManager/fileDefault.d.ts +3 -0
- package/plugins/fileManager/fileDefault.js +20 -0
- package/plugins/fileManager/fileImage/DeleteAction.d.ts +3 -0
- package/plugins/fileManager/fileImage/DeleteAction.js +62 -0
- package/plugins/fileManager/fileImage/EditAction.d.ts +9 -0
- package/plugins/fileManager/fileImage/EditAction.js +143 -0
- package/plugins/fileManager/fileImage/index.d.ts +3 -0
- package/plugins/fileManager/fileImage/index.js +29 -0
- package/plugins/fileManager/icons/edit.svg +17 -0
- package/plugins/fileManager/icons/round-description-24px.svg +1 -0
- package/plugins/fileManager/index.d.ts +2 -0
- package/plugins/fileManager/index.js +3 -0
- package/plugins/globalSearch/SearchBar.d.ts +3 -0
- package/plugins/globalSearch/SearchBar.js +241 -0
- package/plugins/globalSearch/SearchBarDropdown.d.ts +5 -0
- package/plugins/globalSearch/SearchBarDropdown.js +82 -0
- package/plugins/globalSearch/icons/round-search-24px.svg +20 -0
- package/plugins/globalSearch/index.d.ts +8 -0
- package/plugins/globalSearch/index.js +30 -0
- package/plugins/globalSearch/styled.d.ts +9 -0
- package/plugins/globalSearch/styled.js +115 -0
- package/plugins/index.d.ts +6 -0
- package/plugins/index.js +8 -0
- package/plugins/logo/Logo.d.ts +22 -0
- package/plugins/logo/Logo.js +108 -0
- package/plugins/logo/index.d.ts +5 -0
- package/plugins/logo/index.js +32 -0
- package/plugins/menu/documentation.d.ts +4 -0
- package/plugins/menu/documentation.js +16 -0
- package/plugins/menu/fileManager.d.ts +4 -0
- package/plugins/menu/fileManager.js +64 -0
- package/plugins/menu/index.d.ts +6 -0
- package/plugins/menu/index.js +24 -0
- package/plugins/menu/renderers/MenuGroupRenderer.d.ts +7 -0
- package/plugins/menu/renderers/MenuGroupRenderer.js +126 -0
- package/plugins/menu/renderers/MenuLinkRenderer.d.ts +7 -0
- package/plugins/menu/renderers/MenuLinkRenderer.js +52 -0
- package/plugins/menu/renderers/MenuSectionItemRenderer.d.ts +7 -0
- package/plugins/menu/renderers/MenuSectionItemRenderer.js +77 -0
- package/plugins/menu/renderers/MenuSectionRenderer.d.ts +7 -0
- package/plugins/menu/renderers/MenuSectionRenderer.js +51 -0
- package/plugins/menu/slack.d.ts +4 -0
- package/plugins/menu/slack.js +16 -0
- package/plugins/menu/source.d.ts +4 -0
- package/plugins/menu/source.js +16 -0
- package/plugins/uiLayoutRenderer/index.d.ts +3 -0
- package/plugins/uiLayoutRenderer/index.js +63 -0
- package/plugins/userMenu/UserMenuElement.d.ts +7 -0
- package/plugins/userMenu/UserMenuElement.js +43 -0
- package/plugins/userMenu/UserMenuRenderer.d.ts +6 -0
- package/plugins/userMenu/UserMenuRenderer.js +47 -0
- package/plugins/userMenu/index.d.ts +4 -0
- package/plugins/userMenu/index.js +16 -0
- package/styles/material-theme-assignments.scss +333 -0
- package/styles/material.scss +74 -0
- package/styles/theme.scss +43 -0
- package/styles.scss +2 -0
- package/types.d.ts +100 -0
- package/types.js +1 -0
- package/ui/UIElement.d.ts +2 -0
- package/ui/UIElement.js +1 -0
- package/ui/UILayout.d.ts +1 -0
- package/ui/UILayout.js +1 -0
- package/ui/UIRenderer.d.ts +2 -0
- package/ui/UIRenderer.js +1 -0
- package/ui/UIView.d.ts +2 -0
- package/ui/UIView.js +1 -0
- package/ui/elements/AccordionElement.d.ts +27 -0
- package/ui/elements/AccordionElement.js +86 -0
- package/ui/elements/ButtonElement.d.ts +24 -0
- package/ui/elements/ButtonElement.js +78 -0
- package/ui/elements/ButtonGroupElement.d.ts +6 -0
- package/ui/elements/ButtonGroupElement.js +48 -0
- package/ui/elements/GenericElement.d.ts +1 -0
- package/ui/elements/GenericElement.js +1 -0
- package/ui/elements/LabelElement.d.ts +16 -0
- package/ui/elements/LabelElement.js +47 -0
- package/ui/elements/NavigationMenuElement.d.ts +32 -0
- package/ui/elements/NavigationMenuElement.js +158 -0
- package/ui/elements/PanelElement.d.ts +3 -0
- package/ui/elements/PanelElement.js +17 -0
- package/ui/elements/PlaceholderElement.d.ts +5 -0
- package/ui/elements/PlaceholderElement.js +30 -0
- package/ui/elements/SmallButtonElement.d.ts +6 -0
- package/ui/elements/SmallButtonElement.js +47 -0
- package/ui/elements/TypographyElement.d.ts +13 -0
- package/ui/elements/TypographyElement.js +49 -0
- package/ui/elements/ViewElement.d.ts +1 -0
- package/ui/elements/ViewElement.js +1 -0
- package/ui/elements/form/DynamicFieldsetElement/DynamicFieldsetRowElement.d.ts +6 -0
- package/ui/elements/form/DynamicFieldsetElement/DynamicFieldsetRowElement.js +44 -0
- package/ui/elements/form/DynamicFieldsetElement.d.ts +42 -0
- package/ui/elements/form/DynamicFieldsetElement.js +127 -0
- package/ui/elements/form/FileManagerElement/EmptyStateElement.d.ts +4 -0
- package/ui/elements/form/FileManagerElement/EmptyStateElement.js +24 -0
- package/ui/elements/form/FileManagerElement/EmptyStateElementRenderer.d.ts +7 -0
- package/ui/elements/form/FileManagerElement/EmptyStateElementRenderer.js +72 -0
- package/ui/elements/form/FileManagerElement/FileManagerElementRenderer.d.ts +13 -0
- package/ui/elements/form/FileManagerElement/FileManagerElementRenderer.js +95 -0
- package/ui/elements/form/FileManagerElement/styled.d.ts +14 -0
- package/ui/elements/form/FileManagerElement/styled.js +106 -0
- package/ui/elements/form/FileManagerElement.d.ts +24 -0
- package/ui/elements/form/FileManagerElement.js +91 -0
- package/ui/elements/form/FormElement.d.ts +21 -0
- package/ui/elements/form/FormElement.js +45 -0
- package/ui/elements/form/FormFieldElement.d.ts +55 -0
- package/ui/elements/form/FormFieldElement.js +183 -0
- package/ui/elements/form/HiddenElement.d.ts +6 -0
- package/ui/elements/form/HiddenElement.js +49 -0
- package/ui/elements/form/InputElement.d.ts +6 -0
- package/ui/elements/form/InputElement.js +55 -0
- package/ui/elements/form/PasswordElement.d.ts +6 -0
- package/ui/elements/form/PasswordElement.js +50 -0
- package/ui/elements/form/README.md +2 -0
- package/ui/elements/form/SelectElement.d.ts +15 -0
- package/ui/elements/form/SelectElement.js +71 -0
- package/ui/elements/form/TextareaElement.d.ts +15 -0
- package/ui/elements/form/TextareaElement.js +56 -0
- package/ui/views/AdminView/ContentElement.d.ts +4 -0
- package/ui/views/AdminView/ContentElement.js +62 -0
- package/ui/views/AdminView/HeaderElement.d.ts +13 -0
- package/ui/views/AdminView/HeaderElement.js +111 -0
- package/ui/views/AdminView/HeaderSectionCenterElement.d.ts +6 -0
- package/ui/views/AdminView/HeaderSectionCenterElement.js +42 -0
- package/ui/views/AdminView/HeaderSectionLeftElement.d.ts +6 -0
- package/ui/views/AdminView/HeaderSectionLeftElement.js +42 -0
- package/ui/views/AdminView/HeaderSectionRightElement.d.ts +6 -0
- package/ui/views/AdminView/HeaderSectionRightElement.js +42 -0
- package/ui/views/AdminView/components/Dialog.d.ts +2 -0
- package/ui/views/AdminView/components/Dialog.js +40 -0
- package/ui/views/AdminView/components/Hamburger.d.ts +3 -0
- package/ui/views/AdminView/components/Hamburger.js +25 -0
- package/ui/views/AdminView/components/Snackbar.d.ts +3 -0
- package/ui/views/AdminView/components/Snackbar.js +28 -0
- package/ui/views/AdminView.d.ts +12 -0
- package/ui/views/AdminView.js +90 -0
- package/ui/views/FormView/FormContainerElement.d.ts +12 -0
- package/ui/views/FormView/FormContainerElement.js +51 -0
- package/ui/views/FormView/FormContentElement.d.ts +3 -0
- package/ui/views/FormView/FormContentElement.js +17 -0
- package/ui/views/FormView/FormFooterElement.d.ts +6 -0
- package/ui/views/FormView/FormFooterElement.js +49 -0
- package/ui/views/FormView/FormHeaderElement.d.ts +14 -0
- package/ui/views/FormView/FormHeaderElement.js +81 -0
- package/ui/views/FormView.d.ts +40 -0
- package/ui/views/FormView.js +160 -0
- package/ui/views/NavigationView/ContentElement.d.ts +10 -0
- package/ui/views/NavigationView/ContentElement.js +86 -0
- package/ui/views/NavigationView/FooterElement.d.ts +13 -0
- package/ui/views/NavigationView/FooterElement.js +57 -0
- package/ui/views/NavigationView/HeaderElement.d.ts +16 -0
- package/ui/views/NavigationView/HeaderElement.js +66 -0
- package/ui/views/NavigationView/NavigationViewRenderer.d.ts +6 -0
- package/ui/views/NavigationView/NavigationViewRenderer.js +38 -0
- package/ui/views/NavigationView/Styled.d.ts +7 -0
- package/ui/views/NavigationView/Styled.js +47 -0
- package/ui/views/NavigationView/legacyMenu.d.ts +22 -0
- package/ui/views/NavigationView/legacyMenu.js +1 -0
- package/ui/views/NavigationView/useNavigation.d.ts +6 -0
- package/ui/views/NavigationView/useNavigation.js +22 -0
- package/ui/views/NavigationView.d.ts +26 -0
- package/ui/views/NavigationView.js +204 -0
- package/ui/views/OverlayView/ContentElement.d.ts +6 -0
- package/ui/views/OverlayView/ContentElement.js +42 -0
- package/ui/views/OverlayView/HeaderElement.d.ts +24 -0
- package/ui/views/OverlayView/HeaderElement.js +115 -0
- package/ui/views/OverlayView/HeaderTitleElement.d.ts +13 -0
- package/ui/views/OverlayView/HeaderTitleElement.js +54 -0
- package/ui/views/OverlayView/useOverlayView.d.ts +6 -0
- package/ui/views/OverlayView/useOverlayView.js +38 -0
- package/ui/views/OverlayView.d.ts +31 -0
- package/ui/views/OverlayView.js +176 -0
- package/ui/views/SplitView/SplitViewPanelElement.d.ts +11 -0
- package/ui/views/SplitView/SplitViewPanelElement.js +72 -0
- package/ui/views/SplitView.d.ts +21 -0
- package/ui/views/SplitView.js +142 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
4
|
+
import _createClass from "@babel/runtime/helpers/createClass";
|
|
5
|
+
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
6
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
7
|
+
import _createSuper from "@babel/runtime/helpers/createSuper";
|
|
8
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
|
+
var _excluded = ["onExited", "barLeft", "barMiddle", "barRight", "children", "style"];
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
import { Transition } from "react-transition-group";
|
|
12
|
+
import styled from "@emotion/styled";
|
|
13
|
+
import { css } from "emotion";
|
|
14
|
+
import { TopAppBarSecondary, TopAppBarSection } from "@webiny/ui/TopAppBar";
|
|
15
|
+
import { IconButton } from "@webiny/ui/Button";
|
|
16
|
+
import noop from "lodash/noop";
|
|
17
|
+
import { ReactComponent as CloseIcon } from "@svgr/webpack!./icons/close.svg";
|
|
18
|
+
import { OverlayView } from "../../ui/views/OverlayView";
|
|
19
|
+
var OverlayLayoutWrapper = /*#__PURE__*/styled("div", {
|
|
20
|
+
target: "e1inqa580",
|
|
21
|
+
label: "OverlayLayoutWrapper"
|
|
22
|
+
})({
|
|
23
|
+
position: "fixed",
|
|
24
|
+
width: "100%",
|
|
25
|
+
height: "100vh",
|
|
26
|
+
backgroundColor: "var(--mdc-theme-background)",
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Has to be higher than 5 so it's above advanced settings dialog,
|
|
30
|
+
* and below 20, so the image editor & Dialogs can be displayed above.
|
|
31
|
+
*/
|
|
32
|
+
zIndex: 18,
|
|
33
|
+
paddingTop: 65,
|
|
34
|
+
top: 0,
|
|
35
|
+
left: 0
|
|
36
|
+
});
|
|
37
|
+
var noScroll = /*#__PURE__*/css({
|
|
38
|
+
overflow: "hidden",
|
|
39
|
+
height: "100vh"
|
|
40
|
+
}, "label:noScroll;");
|
|
41
|
+
var defaultStyle = {
|
|
42
|
+
transform: "translateY(75vh)",
|
|
43
|
+
opacity: 0,
|
|
44
|
+
transitionProperty: "transform, opacity",
|
|
45
|
+
transitionTimingFunction: "cubic-bezier(0, 0, .2, 1)",
|
|
46
|
+
transitionDuration: "225ms",
|
|
47
|
+
willChange: "opacity, transform"
|
|
48
|
+
};
|
|
49
|
+
var transitionStyles = {
|
|
50
|
+
entering: {
|
|
51
|
+
transform: "translateY(75vh)",
|
|
52
|
+
opacity: 0
|
|
53
|
+
},
|
|
54
|
+
entered: {
|
|
55
|
+
transform: "translateY(0px)",
|
|
56
|
+
opacity: 1
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
export var OverlayLayout = /*#__PURE__*/function (_React$Component) {
|
|
60
|
+
_inherits(OverlayLayout, _React$Component);
|
|
61
|
+
|
|
62
|
+
var _super = _createSuper(OverlayLayout);
|
|
63
|
+
|
|
64
|
+
function OverlayLayout(props) {
|
|
65
|
+
var _this;
|
|
66
|
+
|
|
67
|
+
_classCallCheck(this, OverlayLayout);
|
|
68
|
+
|
|
69
|
+
_this = _super.call(this, props);
|
|
70
|
+
|
|
71
|
+
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
72
|
+
isVisible: true
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
document.body.classList.add(noScroll);
|
|
76
|
+
return _this;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
_createClass(OverlayLayout, [{
|
|
80
|
+
key: "hideComponent",
|
|
81
|
+
value: function hideComponent() {
|
|
82
|
+
this.setState({
|
|
83
|
+
isVisible: false
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
if (OverlayView.openedViews === 0) {
|
|
87
|
+
document.body.classList.remove(noScroll);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}, {
|
|
91
|
+
key: "componentWillUnmount",
|
|
92
|
+
value: function componentWillUnmount() {
|
|
93
|
+
if (OverlayView.openedViews === 0) {
|
|
94
|
+
document.body.classList.remove(noScroll);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}, {
|
|
98
|
+
key: "render",
|
|
99
|
+
value: function render() {
|
|
100
|
+
var _this2 = this;
|
|
101
|
+
|
|
102
|
+
var _this$props = this.props,
|
|
103
|
+
onExited = _this$props.onExited,
|
|
104
|
+
barLeft = _this$props.barLeft,
|
|
105
|
+
barMiddle = _this$props.barMiddle,
|
|
106
|
+
barRight = _this$props.barRight,
|
|
107
|
+
children = _this$props.children,
|
|
108
|
+
style = _this$props.style,
|
|
109
|
+
rest = _objectWithoutProperties(_this$props, _excluded);
|
|
110
|
+
|
|
111
|
+
return /*#__PURE__*/React.createElement(Transition, {
|
|
112
|
+
in: this.state.isVisible,
|
|
113
|
+
timeout: 100,
|
|
114
|
+
appear: true,
|
|
115
|
+
onExited: onExited
|
|
116
|
+
}, function (state) {
|
|
117
|
+
return /*#__PURE__*/React.createElement(OverlayLayoutWrapper, Object.assign({}, rest, {
|
|
118
|
+
style: _objectSpread(_objectSpread(_objectSpread({}, defaultStyle), style), transitionStyles[state])
|
|
119
|
+
}), /*#__PURE__*/React.createElement(TopAppBarSecondary, {
|
|
120
|
+
fixed: true,
|
|
121
|
+
style: {
|
|
122
|
+
top: 0
|
|
123
|
+
}
|
|
124
|
+
}, /*#__PURE__*/React.createElement(TopAppBarSection, {
|
|
125
|
+
style: {
|
|
126
|
+
width: "33%"
|
|
127
|
+
},
|
|
128
|
+
alignStart: true
|
|
129
|
+
}, barLeft), /*#__PURE__*/React.createElement(TopAppBarSection, {
|
|
130
|
+
style: {
|
|
131
|
+
width: "33%"
|
|
132
|
+
}
|
|
133
|
+
}, barMiddle), /*#__PURE__*/React.createElement(TopAppBarSection, {
|
|
134
|
+
style: {
|
|
135
|
+
width: "33%"
|
|
136
|
+
},
|
|
137
|
+
alignEnd: true
|
|
138
|
+
}, barRight, /*#__PURE__*/React.createElement(IconButton, {
|
|
139
|
+
ripple: false,
|
|
140
|
+
onClick: function onClick() {
|
|
141
|
+
return _this2.hideComponent();
|
|
142
|
+
},
|
|
143
|
+
icon: /*#__PURE__*/React.createElement(CloseIcon, {
|
|
144
|
+
style: {
|
|
145
|
+
width: 24,
|
|
146
|
+
height: 24
|
|
147
|
+
}
|
|
148
|
+
})
|
|
149
|
+
}))), children);
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
}]);
|
|
153
|
+
|
|
154
|
+
return OverlayLayout;
|
|
155
|
+
}(React.Component);
|
|
156
|
+
|
|
157
|
+
_defineProperty(OverlayLayout, "defaultProps", {
|
|
158
|
+
onExited: noop
|
|
159
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="24px"
|
|
4
|
+
height="24px" viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve">
|
|
5
|
+
<g id="Bounding_Boxes">
|
|
6
|
+
<path fill="none" d="M0,0h24v24H0V0z"/>
|
|
7
|
+
</g>
|
|
8
|
+
<g id="Rounded">
|
|
9
|
+
<path d="M18.3,5.71L18.3,5.71c-0.39-0.39-1.02-0.39-1.41,0L12,10.59L7.11,5.7c-0.39-0.39-1.02-0.39-1.41,0l0,0
|
|
10
|
+
c-0.39,0.39-0.39,1.02,0,1.41L10.59,12L5.7,16.89c-0.39,0.39-0.39,1.02,0,1.41h0c0.39,0.39,1.02,0.39,1.41,0L12,13.41l4.89,4.89
|
|
11
|
+
c0.39,0.39,1.02,0.39,1.41,0l0,0c0.39-0.39,0.39-1.02,0-1.41L13.41,12l4.89-4.89C18.68,6.73,18.68,6.09,18.3,5.71z"/>
|
|
12
|
+
</g>
|
|
13
|
+
</svg>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="24px"
|
|
4
|
+
height="24px" viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve">
|
|
5
|
+
<g id="Bounding_Boxes">
|
|
6
|
+
<g id="ui_x5F_spec_x5F_header_copy_2">
|
|
7
|
+
</g>
|
|
8
|
+
<path fill="none" d="M0,0h24v24H0V0z"/>
|
|
9
|
+
</g>
|
|
10
|
+
<g id="Rounded">
|
|
11
|
+
<g id="ui_x5F_spec_x5F_header_copy_6">
|
|
12
|
+
</g>
|
|
13
|
+
<path d="M14.91,6.71L14.91,6.71c-0.39-0.39-1.02-0.39-1.41,0l-4.59,4.59c-0.39,0.39-0.39,1.02,0,1.41l4.59,4.59
|
|
14
|
+
c0.39,0.39,1.02,0.39,1.41,0l0,0c0.39-0.39,0.39-1.02,0-1.41L11.03,12l3.88-3.88C15.29,7.73,15.29,7.09,14.91,6.71z"/>
|
|
15
|
+
</g>
|
|
16
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { OverlayLayout } from "./OverlayLayout";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { OverlayLayout } from "./OverlayLayout";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
+
import React, { useMemo } from "react";
|
|
3
|
+
import { Accordion } from "@webiny/ui/Accordion";
|
|
4
|
+
import { plugins } from "@webiny/plugins";
|
|
5
|
+
export var Permissions = function Permissions(_ref) {
|
|
6
|
+
var id = _ref.id,
|
|
7
|
+
value = _ref.value,
|
|
8
|
+
onChange = _ref.onChange;
|
|
9
|
+
|
|
10
|
+
var _useMemo = useMemo(function () {
|
|
11
|
+
return plugins.byType("admin-app-permissions-renderer").reduce(function (acc, plugin) {
|
|
12
|
+
if (plugin.system === true) {
|
|
13
|
+
acc.systemPlugins.push(plugin);
|
|
14
|
+
} else {
|
|
15
|
+
acc.permissionPlugins.push(plugin);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
return acc;
|
|
19
|
+
}, {
|
|
20
|
+
systemPlugins: [],
|
|
21
|
+
permissionPlugins: []
|
|
22
|
+
});
|
|
23
|
+
}, []),
|
|
24
|
+
systemPlugins = _useMemo.systemPlugins,
|
|
25
|
+
permissionPlugins = _useMemo.permissionPlugins;
|
|
26
|
+
|
|
27
|
+
return /*#__PURE__*/React.createElement(Accordion, {
|
|
28
|
+
elevation: 0
|
|
29
|
+
}, [].concat(_toConsumableArray(systemPlugins), _toConsumableArray(permissionPlugins)).map(function (pl) {
|
|
30
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
31
|
+
key: pl.name + "." + id
|
|
32
|
+
}, pl.render({
|
|
33
|
+
value: value,
|
|
34
|
+
onChange: onChange
|
|
35
|
+
}));
|
|
36
|
+
}));
|
|
37
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { css } from "emotion";
|
|
3
|
+
import { Typography } from "@webiny/ui/Typography";
|
|
4
|
+
export var flexClass = /*#__PURE__*/css({
|
|
5
|
+
display: "flex",
|
|
6
|
+
alignItems: "center",
|
|
7
|
+
height: "100%"
|
|
8
|
+
}, "label:flexClass;");
|
|
9
|
+
export var gridNoPaddingClass = /*#__PURE__*/css({
|
|
10
|
+
padding: "0px !important"
|
|
11
|
+
}, "label:gridNoPaddingClass;");
|
|
12
|
+
export var PermissionInfo = function PermissionInfo(_ref) {
|
|
13
|
+
var title = _ref.title;
|
|
14
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
15
|
+
className: flexClass
|
|
16
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
17
|
+
use: "subtitle2"
|
|
18
|
+
}, title));
|
|
19
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { RichTextEditor as UiRichTextEditor } from "@webiny/ui/RichTextEditor";
|
|
4
|
+
import { FileManager } from "../FileManager";
|
|
5
|
+
export var RichTextEditor = function RichTextEditor(props) {
|
|
6
|
+
return /*#__PURE__*/React.createElement(FileManager, null, function (_ref) {
|
|
7
|
+
var showFileManager = _ref.showFileManager;
|
|
8
|
+
return /*#__PURE__*/React.createElement(UiRichTextEditor, Object.assign({}, props, {
|
|
9
|
+
placeholder: props.placeholder || "Click here to type",
|
|
10
|
+
context: _objectSpread(_objectSpread({}, props.context), {}, {
|
|
11
|
+
showFileManager: showFileManager
|
|
12
|
+
})
|
|
13
|
+
}));
|
|
14
|
+
});
|
|
15
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
.codex-editor {
|
|
2
|
+
/**
|
|
3
|
+
* The context menu of the rich text editor is getting obscured if directly below is another rich text editor.
|
|
4
|
+
* This change help us fix that visual issue.
|
|
5
|
+
*/
|
|
6
|
+
z-index: unset;
|
|
7
|
+
|
|
8
|
+
.codex-editor__redactor {
|
|
9
|
+
padding-bottom: 0 !important;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.ce-delimiter {
|
|
13
|
+
line-height: 1.6em;
|
|
14
|
+
width: 100%;
|
|
15
|
+
text-align: center;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.ce-delimiter:before {
|
|
19
|
+
display: inline-block;
|
|
20
|
+
content: "***";
|
|
21
|
+
font-size: 30px;
|
|
22
|
+
line-height: 65px;
|
|
23
|
+
height: 30px;
|
|
24
|
+
letter-spacing: 0.2em;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// Reset default styles
|
|
28
|
+
.ce-block__content:focus {
|
|
29
|
+
outline: none;
|
|
30
|
+
}
|
|
31
|
+
*:focus {
|
|
32
|
+
outline: none;
|
|
33
|
+
}
|
|
34
|
+
.ce-block__content {
|
|
35
|
+
max-width: 100% !important;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Reset drop target styles for block
|
|
39
|
+
.ce-block--drop-target .ce-block__content:before {
|
|
40
|
+
content: none !important;
|
|
41
|
+
}
|
|
42
|
+
.ce-block--drop-target .ce-block__content:after {
|
|
43
|
+
content: none !important;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Reset Toolbar style
|
|
47
|
+
.ce-toolbar__content {
|
|
48
|
+
max-width: 92%;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@media (min-width: 651px) {
|
|
53
|
+
.codex-editor--narrow .codex-editor__redactor {
|
|
54
|
+
margin-right: 0 !important;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.codex-editor--narrow .ce-toolbar__plus {
|
|
58
|
+
left: -35px !important;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.codex-editor--narrow .ce-toolbar__actions {
|
|
62
|
+
right: -30px !important;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { API } from "@editorjs/editorjs";
|
|
2
|
+
import { TextAlign, Alignment } from "../utils";
|
|
3
|
+
declare type Typography = {
|
|
4
|
+
[key: string]: {
|
|
5
|
+
label: string;
|
|
6
|
+
component: string;
|
|
7
|
+
className: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
declare type HeaderData = {
|
|
11
|
+
text: string;
|
|
12
|
+
level: any;
|
|
13
|
+
textAlign: TextAlign;
|
|
14
|
+
};
|
|
15
|
+
declare type HeaderConfig = {
|
|
16
|
+
levels: number[];
|
|
17
|
+
typography: Typography;
|
|
18
|
+
};
|
|
19
|
+
interface HeaderArgs {
|
|
20
|
+
data: HeaderData;
|
|
21
|
+
config: HeaderConfig;
|
|
22
|
+
api: any;
|
|
23
|
+
readOnly: boolean;
|
|
24
|
+
}
|
|
25
|
+
declare class Header {
|
|
26
|
+
api: API;
|
|
27
|
+
readOnly: boolean;
|
|
28
|
+
settingsButtons: any[];
|
|
29
|
+
_CSS: any;
|
|
30
|
+
_settings: any;
|
|
31
|
+
_data: any;
|
|
32
|
+
_element: any;
|
|
33
|
+
alignments: Alignment[];
|
|
34
|
+
typography: Typography;
|
|
35
|
+
/**
|
|
36
|
+
* Render plugin`s main Element and fill it with saved data
|
|
37
|
+
*
|
|
38
|
+
* @param {{data: HeaderData, config: HeaderConfig, api: object}}
|
|
39
|
+
* data — previously saved data
|
|
40
|
+
* config - user config for Tool
|
|
41
|
+
* api - Editor.js API
|
|
42
|
+
* readOnly - read only mode flag
|
|
43
|
+
*/
|
|
44
|
+
constructor({ data, config, api, readOnly }: HeaderArgs);
|
|
45
|
+
/**
|
|
46
|
+
* Normalize input data
|
|
47
|
+
*
|
|
48
|
+
* @param {HeaderData} data - saved data to process
|
|
49
|
+
*
|
|
50
|
+
* @returns {HeaderData}
|
|
51
|
+
* @private
|
|
52
|
+
*/
|
|
53
|
+
normalizeData(data: any): any;
|
|
54
|
+
/**
|
|
55
|
+
* Return Tool's view
|
|
56
|
+
*
|
|
57
|
+
* @returns {HTMLHeadingElement}
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
render(): any;
|
|
61
|
+
/**
|
|
62
|
+
* Create Block's settings block
|
|
63
|
+
*
|
|
64
|
+
* @returns {HTMLElement}
|
|
65
|
+
*/
|
|
66
|
+
renderSettings(): HTMLElement;
|
|
67
|
+
/**
|
|
68
|
+
* Callback for Block's settings buttons
|
|
69
|
+
*
|
|
70
|
+
* @param {number} level - level to set
|
|
71
|
+
*/
|
|
72
|
+
setLevel(level: any): void;
|
|
73
|
+
/**
|
|
74
|
+
* Callback for Block's settings buttons
|
|
75
|
+
*
|
|
76
|
+
* @param {number} alignment - level to set
|
|
77
|
+
*/
|
|
78
|
+
setAlignment(alignment: any): void;
|
|
79
|
+
/**
|
|
80
|
+
* Method that specified how to merge two Text blocks.
|
|
81
|
+
* Called by Editor.js by backspace at the beginning of the Block
|
|
82
|
+
*
|
|
83
|
+
* @param {HeaderData} data - saved data to merger with current block
|
|
84
|
+
* @public
|
|
85
|
+
*/
|
|
86
|
+
merge(data: any): void;
|
|
87
|
+
/**
|
|
88
|
+
* Validate Text block data:
|
|
89
|
+
* - check for emptiness
|
|
90
|
+
*
|
|
91
|
+
* @param {HeaderData} blockData — data received after saving
|
|
92
|
+
* @returns {boolean} false if saved data is not correct, otherwise true
|
|
93
|
+
* @public
|
|
94
|
+
*/
|
|
95
|
+
validate(blockData: any): boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Extract Tool's data from the view
|
|
98
|
+
*
|
|
99
|
+
* @param {HTMLHeadingElement} toolsContent - Text tools rendered view
|
|
100
|
+
* @returns {HeaderData} - saved data
|
|
101
|
+
* @public
|
|
102
|
+
*/
|
|
103
|
+
save(toolsContent: any): {
|
|
104
|
+
text: any;
|
|
105
|
+
level: number;
|
|
106
|
+
textAlign: TextAlign.START;
|
|
107
|
+
className: any;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Extract textAlign from className
|
|
111
|
+
*
|
|
112
|
+
* @param {string} className - heading element className
|
|
113
|
+
* @returns {TextAlign} textAlign
|
|
114
|
+
*/
|
|
115
|
+
getTextAlign(className: any): TextAlign.START;
|
|
116
|
+
/**
|
|
117
|
+
* Allow Header to be converted to/from other blocks
|
|
118
|
+
*/
|
|
119
|
+
static get conversionConfig(): {
|
|
120
|
+
export: string;
|
|
121
|
+
import: string;
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* Sanitizer Rules
|
|
125
|
+
*/
|
|
126
|
+
static get sanitize(): {
|
|
127
|
+
level: boolean;
|
|
128
|
+
text: {};
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Returns true to notify core that read-only is supported
|
|
132
|
+
*
|
|
133
|
+
* @returns {boolean}
|
|
134
|
+
*/
|
|
135
|
+
static get isReadOnlySupported(): boolean;
|
|
136
|
+
/**
|
|
137
|
+
* Get current Tools`s data
|
|
138
|
+
*
|
|
139
|
+
* @returns {HeaderData} Current data
|
|
140
|
+
* @private
|
|
141
|
+
*/
|
|
142
|
+
get data(): any;
|
|
143
|
+
/**
|
|
144
|
+
* Store data in plugin:
|
|
145
|
+
* - at the this._data property
|
|
146
|
+
* - at the HTML
|
|
147
|
+
*
|
|
148
|
+
* @param {HeaderData} data — data to set
|
|
149
|
+
* @private
|
|
150
|
+
*/
|
|
151
|
+
set data(data: any);
|
|
152
|
+
/**
|
|
153
|
+
* Get tag for target level
|
|
154
|
+
* By default returns second-leveled header
|
|
155
|
+
*
|
|
156
|
+
* @returns {HTMLElement}
|
|
157
|
+
*/
|
|
158
|
+
getTag(): HTMLElement;
|
|
159
|
+
/**
|
|
160
|
+
* Get current level
|
|
161
|
+
*
|
|
162
|
+
* @returns {level}
|
|
163
|
+
*/
|
|
164
|
+
get currentLevel(): {
|
|
165
|
+
number: number;
|
|
166
|
+
tag: string;
|
|
167
|
+
svg: string;
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* Get current alignment
|
|
171
|
+
*
|
|
172
|
+
* @returns {alignment}
|
|
173
|
+
*/
|
|
174
|
+
get currentAlignment(): Alignment;
|
|
175
|
+
/**
|
|
176
|
+
* Return default level
|
|
177
|
+
*
|
|
178
|
+
* @returns {level}
|
|
179
|
+
*/
|
|
180
|
+
get defaultLevel(): {
|
|
181
|
+
number: number;
|
|
182
|
+
tag: string;
|
|
183
|
+
svg: string;
|
|
184
|
+
};
|
|
185
|
+
/**
|
|
186
|
+
* @typedef {object} level
|
|
187
|
+
* @property {number} number - level number
|
|
188
|
+
* @property {string} tag - tag corresponds with level number
|
|
189
|
+
* @property {string} svg - icon
|
|
190
|
+
*/
|
|
191
|
+
/**
|
|
192
|
+
* Available header levels
|
|
193
|
+
*
|
|
194
|
+
* @returns {level[]}
|
|
195
|
+
*/
|
|
196
|
+
get levels(): {
|
|
197
|
+
number: number;
|
|
198
|
+
tag: string;
|
|
199
|
+
svg: string;
|
|
200
|
+
}[];
|
|
201
|
+
/**
|
|
202
|
+
* Handle H1-H6 tags on paste to substitute it with header Tool
|
|
203
|
+
*
|
|
204
|
+
* @param {PasteEvent} event - event with pasted content
|
|
205
|
+
*/
|
|
206
|
+
onPaste(event: any): void;
|
|
207
|
+
/**
|
|
208
|
+
* Used by Editor.js paste handling API.
|
|
209
|
+
* Provides configuration to handle H1-H6 tags.
|
|
210
|
+
*
|
|
211
|
+
* @returns {{handler: (function(HTMLElement): {text: string}), tags: string[]}}
|
|
212
|
+
*/
|
|
213
|
+
static get pasteConfig(): {
|
|
214
|
+
tags: string[];
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* Get Tool toolbox settings
|
|
218
|
+
* icon - Tool icon's SVG
|
|
219
|
+
* title - title to show in toolbox
|
|
220
|
+
*
|
|
221
|
+
* @returns {{icon: string, title: string}}
|
|
222
|
+
*/
|
|
223
|
+
static get toolbox(): {
|
|
224
|
+
icon: string;
|
|
225
|
+
title: string;
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
export default Header;
|