easy-email-extensions 3.1.20 → 3.1.27
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/AttributePanel/AttributePanel.d.ts +3 -3
- package/lib/AttributePanel/components/UI/Help/index.d.ts +7 -7
- package/lib/AttributePanel/components/UI/HtmlEditor.d.ts +5 -5
- package/lib/AttributePanel/components/attributes/Align.d.ts +3 -3
- package/lib/AttributePanel/components/attributes/AttributesPanelWrapper/index.d.ts +6 -6
- package/lib/AttributePanel/components/attributes/Background.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/BackgroundColor.d.ts +3 -3
- package/lib/AttributePanel/components/attributes/Border.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/BorderColor.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/BorderStyle.d.ts +5 -5
- package/lib/AttributePanel/components/attributes/BorderWidth.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/Color.d.ts +4 -4
- package/lib/AttributePanel/components/attributes/ContainerBackgroundColor.d.ts +3 -3
- package/lib/AttributePanel/components/attributes/Decoration.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/Direction.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/FontFamily.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/FontSize.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/FontStyle.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/FontWeight.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/Height.d.ts +3 -3
- package/lib/AttributePanel/components/attributes/LetterSpacing.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/LineHeight.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/Link.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/Margin.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/MergeTags.d.ts +6 -6
- package/lib/AttributePanel/components/attributes/NavbarLinkPadding.d.ts +3 -3
- package/lib/AttributePanel/components/attributes/Padding.d.ts +5 -5
- package/lib/AttributePanel/components/attributes/TextAlign.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/TextDecoration.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/TextTransform.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/VerticalAlign.d.ts +3 -3
- package/lib/AttributePanel/components/attributes/Width.d.ts +5 -5
- package/lib/AttributePanel/components/attributes/index.d.ts +29 -29
- package/lib/AttributePanel/components/blocks/Accordion/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/AccordionElement/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/AccordionText/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/AccordionTitle/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Button/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Carousel/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Column/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Divider/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Group/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Hero/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Image/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Navbar/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Page/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Raw/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Section/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Social/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Spacer/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Table/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Text/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Wrapper/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/index.d.ts +42 -42
- package/lib/AttributePanel/components/provider/PresetColorsProvider/index.d.ts +6 -6
- package/lib/AttributePanel/components/provider/SelectionRangeProvider/index.d.ts +6 -6
- package/lib/AttributePanel/hooks/useSelectionRange.d.ts +6 -6
- package/lib/AttributePanel/index.d.ts +3 -3
- package/lib/AttributePanel/utils/BlockAttributeConfigurationManager.d.ts +10 -10
- package/lib/AttributePanel/utils/InputNumberAdapter.d.ts +2 -2
- package/lib/AttributePanel/utils/PromiseEach.d.ts +1 -1
- package/lib/AttributePanel/utils/Uploader.d.ts +35 -35
- package/lib/AttributePanel/utils/awaitForElement.d.ts +4 -4
- package/lib/AttributePanel/utils/classnames.d.ts +1 -1
- package/lib/AttributePanel/utils/getIconNameByBlockType.d.ts +1 -1
- package/lib/AttributePanel/utils/getImg.d.ts +8 -8
- package/lib/AttributePanel/utils/onDrag.d.ts +10 -10
- package/lib/AttributePanel/utils/previewLoadImage.d.ts +1 -1
- package/lib/BlockLayer/components/BlockTree/index.d.ts +51 -51
- package/lib/BlockLayer/components/BlockTree/transparentImage.d.ts +1 -1
- package/lib/BlockLayer/components/ContextMenu/index.d.ts +14 -14
- package/lib/BlockLayer/components/EyeIcon/index.d.ts +7 -7
- package/lib/BlockLayer/hooks/useAvatarWrapperDrop.d.ts +24 -24
- package/lib/BlockLayer/index.d.ts +10 -10
- package/lib/InteractivePrompt/components/FocusTooltip.d.ts +1 -1
- package/lib/InteractivePrompt/components/HoverTooltip.d.ts +1 -1
- package/lib/InteractivePrompt/components/Toolbar.d.ts +5 -5
- package/lib/InteractivePrompt/index.d.ts +1 -1
- package/lib/InteractivePrompt/utils/awaitForElement.d.ts +4 -4
- package/lib/ShortcutToolbar/ShortcutToolbar.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlockMaskWrapper/index.d.ts +6 -6
- package/lib/ShortcutToolbar/components/BlocksPanel/index.d.ts +2 -2
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/AccordionBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ButtonBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/CarouselBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ColumnBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/DividerBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/GroupBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/HeroBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ImageBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/NavbarBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/RawBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SectionBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SocialBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SpacerBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/TextBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/WrapperBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/index.d.ts +18 -18
- package/lib/ShortcutToolbar/components/Picture/index.d.ts +7 -7
- package/lib/ShortcutToolbar/index.d.ts +4 -4
- package/lib/ShortcutToolbar/utils/BlockMarketManager.d.ts +32 -32
- package/lib/ShortcutToolbar/utils/getImg.d.ts +68 -68
- package/lib/SimpleLayout/SimpleLayout.d.ts +4 -4
- package/lib/SimpleLayout/index.d.ts +1 -1
- package/lib/SourceCodePanel/index.d.ts +1 -1
- package/lib/components/AddToCollection/index.d.ts +5 -5
- package/lib/components/Form/AddFont.d.ts +1 -1
- package/lib/components/Form/AutoComplete.d.ts +11 -11
- package/lib/components/Form/CheckBoxGroup.d.ts +14 -14
- package/lib/components/Form/CodemirrorEditor/index.d.ts +8 -8
- package/lib/components/Form/ColorPicker.d.ts +10 -10
- package/lib/components/Form/EditTab.d.ts +10 -10
- package/lib/components/Form/ImageUploader/index.d.ts +8 -8
- package/lib/components/Form/InlineTextField/index.d.ts +7 -7
- package/lib/components/Form/Input.d.ts +7 -7
- package/lib/components/Form/InputWithUnit.d.ts +10 -10
- package/lib/components/Form/RadioGroup.d.ts +13 -13
- package/lib/components/Form/RichTextField/index.d.ts +2 -2
- package/lib/components/Form/RichTextToolBar/RichTextToolBar.d.ts +3 -3
- package/lib/components/Form/RichTextToolBar/components/FontFamily/index.d.ts +3 -3
- package/lib/components/Form/RichTextToolBar/components/FontSizeList/index.d.ts +3 -3
- package/lib/components/Form/RichTextToolBar/components/Heading/index.d.ts +3 -3
- package/lib/components/Form/RichTextToolBar/components/Link/index.d.ts +12 -12
- package/lib/components/Form/RichTextToolBar/components/ToolItem/index.d.ts +7 -7
- package/lib/components/Form/RichTextToolBar/components/Tools/Tools.d.ts +5 -5
- package/lib/components/Form/RichTextToolBar/components/Tools/index.d.ts +1 -1
- package/lib/components/Form/RichTextToolBar/index.d.ts +1 -1
- package/lib/components/Form/Select.d.ts +11 -11
- package/lib/components/Form/UploadField.d.ts +8 -8
- package/lib/components/Form/enhancer.d.ts +20 -20
- package/lib/components/Form/index.d.ts +32 -32
- package/lib/components/RenderCount/index.d.ts +1 -1
- package/lib/components/ShadowDom/index.d.ts +2 -2
- package/lib/hooks/useAddToCollection.d.ts +6 -6
- package/lib/index.d.ts +9 -9
- package/lib/index2.js +36246 -2052
- package/lib/index2.js.map +1 -1
- package/lib/index3.js +23 -12
- package/lib/index3.js.map +1 -1
- package/lib/style.css +1 -1
- package/lib/utils/awaitForElement.d.ts +4 -4
- package/lib/utils/classnames.d.ts +1 -1
- package/lib/utils/getContextMergeTags.d.ts +7 -7
- package/lib/utils/getPreviewClassName.d.ts +1 -1
- package/package.json +2 -2
- package/readme.md +138 -138
package/lib/style.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
[arco-theme=dark] .easy-email-editor-tabWrapper,[arco-theme=dark] .arco-layout{background-color:var(--color-bg-3)}[arco-theme=dark] .easy-email-editor-button{background-color:var(--color-secondary);color:var(--color-text-2);border:1px solid transparent}[arco-theme=dark] .easy-email-editor-button:hover{border-color:var(--color-neutral-4);color:var(--color-text-2);background-color:var(--color-fill-3)}[arco-theme=dark] .easy-email-editor-button[disabled],[arco-theme=dark] .easy-email-editor-button[disabled]:hover{background-color:var(--color-secondary);color:var(--color-text-2);border:1px solid transparent}._title_pteer_1{display:flex;flex:1;justify-content:space-between;align-items:center;position:relative}._title_pteer_1:hover .icon-eye{opacity:1}._title_pteer_1 .icon-eye{transition:opacity .3s;position:absolute;top:50%;transform:translateY(-50%);right:30px;opacity:0;font-size:14px}._title_pteer_1 .icon-eye-invisible{position:absolute;top:50%;transform:translateY(-50%);font-size:14px;right:30px;opacity:1!important}#BlockLayerManager .arco-tree-node-selected .arco-tree-node-title{background-color:rgb(var(--primary-1))}._wrap_aul3a_1{position:fixed;left:500px;top:200px;z-index:9999;background-color:#fff;box-shadow:1px 1px 4px #0000004d;border-radius:8px;overflow:hidden;font-family:"Lato",sans-serif;font-weight:500}._wrap_aul3a_1 ._listItem_aul3a_13{padding:5px 15px;display:flex;flex-wrap:nowrap;cursor:default!important}._wrap_aul3a_1 ._listItem_aul3a_13:hover{background-color:#0000001a}._contextmenuMark_aul3a_23{position:fixed;width:100vw;height:100vh;left:0;top:0;z-index:9998}._container_jzksr_1{display:flex;flex-wrap:wrap}._error_jzksr_6{border-color:#ff4d4f!important}._item_jzksr_10{margin:0 8px 8px 0;border-radius:4px;border:1px solid #d9d9d9;padding:8px;width:104px;height:104px}._item_jzksr_10 ._info_jzksr_18{position:relative;height:100%;width:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}._item_jzksr_10 ._info_jzksr_18:before{content:" ";position:absolute;z-index:1;background-color:#00000080;-webkit-transition:all .3s;transition:all .3s;width:100%;height:100%;opacity:0}._item_jzksr_10 ._info_jzksr_18 img{width:100%;border:1px solid #f2f2f2;transition:all .3s}._item_jzksr_10 ._info_jzksr_18 ._btn-wrap_jzksr_43{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:10;white-space:nowrap;-webkit-transition:all .3s;transition:all .3s;opacity:0}._item_jzksr_10 ._info_jzksr_18 ._btn-wrap_jzksr_43 a{color:#eee;margin:0 4px}._item_jzksr_10 ._info_jzksr_18 ._btn-wrap_jzksr_43 a:hover{color:#fff}._item_jzksr_10 ._info_jzksr_18:hover:before,._item_jzksr_10 ._info_jzksr_18:hover ._btn-wrap_jzksr_43{opacity:1}._upload_jzksr_68{margin:0 8px 8px 0;border:1px dotted;width:104px;height:104px;display:flex;justify-content:center;align-items:center;flex-direction:column;cursor:pointer}._wrap_jzksr_80 ._urlInput_jzksr_80{display:flex;align-items:center}._helperText_uw61l_1{color:#6d7175;font-weight:400;line-height:1.3;text-transform:none;letter-spacing:normal}._label-hidden_uw61l_9{position:absolute!important;top:0;clip:rect(1px,1px,1px,1px)!important;overflow:hidden!important;height:1px!important;width:1px!important;padding:0!important;border:0!important}._editTab_uw61l_20 .arco-tabs-content{border:none}._inputWithUnit_uw61l_24 .arco-select-view{padding:0 5px!important;text-align:center}._inputWithUnit_uw61l_24 .arco-select-view .arco-select-view-value{overflow:visible}._inputWithUnitSelectOption_uw61l_32{padding:0 5px!important;text-align:center!important}._BlocksPanel_15fho_1 img{max-width:100%}._blockItem_15fho_5{text-align:center;padding:3px 12px;border-radius:15px;min-width:60px}._closeBtn_15fho_12{width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:50%}._closeBtn_15fho_12:hover{background-color:#f7f8f8}._mask_1a0xw_1{width:270px;display:flex;justify-content:flex-end;align-items:center;cursor:default;position:relative;transition:all .3s;pointer-events:auto}._drag_1a0xw_12{background-color:#000000a6}._SimpleLayout_3z8xk_1 .arco-layout-sider-children{overflow-x:hidden}._customScrollBar_3z8xk_5{overflow:scroll}._customScrollBar_3z8xk_5::-webkit-scrollbar{-webkit-appearance:none;width:8px!important}._customScrollBar_3z8xk_5::-webkit-scrollbar-thumb{border-radius:5px;background-color:#00000080;box-shadow:0 0 1px #ffffff80;-webkit-box-shadow:0 0 1px rgba(255,255,255,.5)}._customScrollBar_3z8xk_5 .arco-tabs-content{padding:0}.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:#14ff1480;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:bold}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection,.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection,.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.cm-s-material.CodeMirror{background-color:#263238;color:#eff}.cm-s-material .CodeMirror-gutters{background:#263238;color:#546e7a;border:none}.cm-s-material .CodeMirror-guttermarker,.cm-s-material .CodeMirror-guttermarker-subtle,.cm-s-material .CodeMirror-linenumber{color:#546e7a}.cm-s-material .CodeMirror-cursor{border-left:1px solid #FFCC00}.cm-s-material.cm-fat-cursor .CodeMirror-cursor,.cm-s-material .cm-animate-fat-cursor{background-color:#5d6d5c80!important}.cm-s-material div.CodeMirror-selected,.cm-s-material.CodeMirror-focused div.CodeMirror-selected,.cm-s-material .CodeMirror-line::selection,.cm-s-material .CodeMirror-line>span::selection,.cm-s-material .CodeMirror-line>span>span::selection,.cm-s-material .CodeMirror-line::-moz-selection,.cm-s-material .CodeMirror-line>span::-moz-selection,.cm-s-material .CodeMirror-line>span>span::-moz-selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-activeline-background{background:rgba(0,0,0,.5)}.cm-s-material .cm-keyword{color:#c792ea}.cm-s-material .cm-operator{color:#89ddff}.cm-s-material .cm-variable-2{color:#eff}.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#f07178}.cm-s-material .cm-builtin{color:#ffcb6b}.cm-s-material .cm-atom{color:#f78c6c}.cm-s-material .cm-number{color:#ff5370}.cm-s-material .cm-def{color:#82aaff}.cm-s-material .cm-string{color:#c3e88d}.cm-s-material .cm-string-2{color:#f07178}.cm-s-material .cm-comment{color:#546e7a}.cm-s-material .cm-variable{color:#f07178}.cm-s-material .cm-tag{color:#ff5370}.cm-s-material .cm-meta{color:#ffcb6b}.cm-s-material .cm-attribute,.cm-s-material .cm-property{color:#c792ea}.cm-s-material .cm-qualifier,.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#decb6b}.cm-s-material .cm-error{color:#fff;background-color:#ff5370}.cm-s-material .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}.cm-s-neat span.cm-comment{color:#a86}.cm-s-neat span.cm-keyword{line-height:1em;font-weight:bold;color:#00f}.cm-s-neat span.cm-string{color:#a22}.cm-s-neat span.cm-builtin{line-height:1em;font-weight:bold;color:#077}.cm-s-neat span.cm-special{line-height:1em;font-weight:bold;color:#0aa}.cm-s-neat span.cm-variable{color:#000}.cm-s-neat span.cm-number,.cm-s-neat span.cm-atom{color:#3a3}.cm-s-neat span.cm-meta{color:#555}.cm-s-neat span.cm-link{color:#3a3}.cm-s-neat .CodeMirror-activeline-background{background:#e8f2ff}.cm-s-neat .CodeMirror-matchingbracket{outline:1px solid grey;color:#000!important}._container_13rz9_1,._container_13rz9_1 .CodeMirror{height:100%}
|
1
|
+
[arco-theme=dark] .easy-email-editor-tabWrapper,[arco-theme=dark] .arco-layout{background-color:var(--color-bg-3)}[arco-theme=dark] .easy-email-editor-button{background-color:var(--color-secondary);color:var(--color-text-2);border:1px solid transparent}[arco-theme=dark] .easy-email-editor-button:hover{border-color:var(--color-neutral-4);color:var(--color-text-2);background-color:var(--color-fill-3)}[arco-theme=dark] .easy-email-editor-button[disabled],[arco-theme=dark] .easy-email-editor-button[disabled]:hover{background-color:var(--color-secondary);color:var(--color-text-2);border:1px solid transparent}._title_pteer_1{display:flex;flex:1;justify-content:space-between;align-items:center;position:relative}._title_pteer_1:hover .icon-eye{opacity:1}._title_pteer_1 .icon-eye{transition:opacity .3s;position:absolute;top:50%;transform:translateY(-50%);right:30px;opacity:0;font-size:14px}._title_pteer_1 .icon-eye-invisible{position:absolute;top:50%;transform:translateY(-50%);font-size:14px;right:30px;opacity:1!important}#BlockLayerManager .arco-tree-node-selected .arco-tree-node-title{background-color:rgb(var(--primary-1))}._wrap_aul3a_1{position:fixed;left:500px;top:200px;z-index:9999;background-color:#fff;box-shadow:1px 1px 4px #0000004d;border-radius:8px;overflow:hidden;font-family:Lato,sans-serif;font-weight:500}._wrap_aul3a_1 ._listItem_aul3a_13{padding:5px 15px;display:flex;flex-wrap:nowrap;cursor:default!important}._wrap_aul3a_1 ._listItem_aul3a_13:hover{background-color:#0000001a}._contextmenuMark_aul3a_23{position:fixed;width:100vw;height:100vh;left:0;top:0;z-index:9998}._container_jzksr_1{display:flex;flex-wrap:wrap}._error_jzksr_6{border-color:#ff4d4f!important}._item_jzksr_10{margin:0 8px 8px 0;border-radius:4px;border:1px solid #d9d9d9;padding:8px;width:104px;height:104px}._item_jzksr_10 ._info_jzksr_18{position:relative;height:100%;width:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}._item_jzksr_10 ._info_jzksr_18:before{content:" ";position:absolute;z-index:1;background-color:#00000080;-webkit-transition:all .3s;transition:all .3s;width:100%;height:100%;opacity:0}._item_jzksr_10 ._info_jzksr_18 img{width:100%;border:1px solid #f2f2f2;transition:all .3s}._item_jzksr_10 ._info_jzksr_18 ._btn-wrap_jzksr_43{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:10;white-space:nowrap;-webkit-transition:all .3s;transition:all .3s;opacity:0}._item_jzksr_10 ._info_jzksr_18 ._btn-wrap_jzksr_43 a{color:#eee;margin:0 4px}._item_jzksr_10 ._info_jzksr_18 ._btn-wrap_jzksr_43 a:hover{color:#fff}._item_jzksr_10 ._info_jzksr_18:hover:before{opacity:1}._item_jzksr_10 ._info_jzksr_18:hover ._btn-wrap_jzksr_43{opacity:1}._upload_jzksr_68{margin:0 8px 8px 0;border:1px dotted;width:104px;height:104px;display:flex;justify-content:center;align-items:center;flex-direction:column;cursor:pointer}._wrap_jzksr_80 ._urlInput_jzksr_80{display:flex;align-items:center}._helperText_uw61l_1{color:#6d7175;font-weight:400;line-height:1.3;text-transform:none;letter-spacing:normal}._label-hidden_uw61l_9{position:absolute!important;top:0;clip:rect(1px,1px,1px,1px)!important;overflow:hidden!important;height:1px!important;width:1px!important;padding:0!important;border:0!important}._editTab_uw61l_20 .arco-tabs-content{border:none}._inputWithUnit_uw61l_24 .arco-select-view{padding:0 5px!important;text-align:center}._inputWithUnit_uw61l_24 .arco-select-view .arco-select-view-value{overflow:visible}._inputWithUnitSelectOption_uw61l_32{padding:0 5px!important;text-align:center!important}._BlocksPanel_15fho_1 img{max-width:100%}._blockItem_15fho_5{text-align:center;padding:3px 12px;border-radius:15px;min-width:60px}._closeBtn_15fho_12{width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:50%}._closeBtn_15fho_12:hover{background-color:#f7f8f8}._mask_1a0xw_1{width:270px;display:flex;justify-content:flex-end;align-items:center;cursor:default;position:relative;transition:all .3s;pointer-events:auto}._drag_1a0xw_12{background-color:#000000a6}._SimpleLayout_3z8xk_1 .arco-layout-sider-children{overflow-x:hidden}._customScrollBar_3z8xk_5{overflow:scroll}._customScrollBar_3z8xk_5::-webkit-scrollbar{-webkit-appearance:none;width:8px!important}._customScrollBar_3z8xk_5::-webkit-scrollbar-thumb{border-radius:5px;background-color:#00000080;box-shadow:0 0 1px #ffffff80;-webkit-box-shadow:0 0 1px rgba(255,255,255,.5)}._customScrollBar_3z8xk_5 .arco-tabs-content{padding:0}.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.cm-s-material.CodeMirror{background-color:#263238;color:#eff}.cm-s-material .CodeMirror-gutters{background:#263238;color:#546e7a;border:none}.cm-s-material .CodeMirror-guttermarker,.cm-s-material .CodeMirror-guttermarker-subtle,.cm-s-material .CodeMirror-linenumber{color:#546e7a}.cm-s-material .CodeMirror-cursor{border-left:1px solid #FFCC00}.cm-s-material.cm-fat-cursor .CodeMirror-cursor,.cm-s-material .cm-animate-fat-cursor{background-color:#5d6d5c80!important}.cm-s-material div.CodeMirror-selected,.cm-s-material.CodeMirror-focused div.CodeMirror-selected{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::selection,.cm-s-material .CodeMirror-line>span::selection,.cm-s-material .CodeMirror-line>span>span::selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::-moz-selection,.cm-s-material .CodeMirror-line>span::-moz-selection,.cm-s-material .CodeMirror-line>span>span::-moz-selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-activeline-background{background:rgba(0,0,0,.5)}.cm-s-material .cm-keyword{color:#c792ea}.cm-s-material .cm-operator{color:#89ddff}.cm-s-material .cm-variable-2{color:#eff}.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#f07178}.cm-s-material .cm-builtin{color:#ffcb6b}.cm-s-material .cm-atom{color:#f78c6c}.cm-s-material .cm-number{color:#ff5370}.cm-s-material .cm-def{color:#82aaff}.cm-s-material .cm-string{color:#c3e88d}.cm-s-material .cm-string-2{color:#f07178}.cm-s-material .cm-comment{color:#546e7a}.cm-s-material .cm-variable{color:#f07178}.cm-s-material .cm-tag{color:#ff5370}.cm-s-material .cm-meta{color:#ffcb6b}.cm-s-material .cm-attribute,.cm-s-material .cm-property{color:#c792ea}.cm-s-material .cm-qualifier,.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#decb6b}.cm-s-material .cm-error{color:#fff;background-color:#ff5370}.cm-s-material .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}.cm-s-neat span.cm-comment{color:#a86}.cm-s-neat span.cm-keyword{line-height:1em;font-weight:700;color:#00f}.cm-s-neat span.cm-string{color:#a22}.cm-s-neat span.cm-builtin{line-height:1em;font-weight:700;color:#077}.cm-s-neat span.cm-special{line-height:1em;font-weight:700;color:#0aa}.cm-s-neat span.cm-variable{color:#000}.cm-s-neat span.cm-number,.cm-s-neat span.cm-atom{color:#3a3}.cm-s-neat span.cm-meta{color:#555}.cm-s-neat span.cm-link{color:#3a3}.cm-s-neat .CodeMirror-activeline-background{background:#e8f2ff}.cm-s-neat .CodeMirror-matchingbracket{outline:1px solid grey;color:#000!important}._container_13rz9_1,._container_13rz9_1 .CodeMirror{height:100%}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare function awaitForElement<T extends HTMLElement>(idx: string): {
|
2
|
-
cancel: () => void;
|
3
|
-
promise: Promise<T>;
|
4
|
-
};
|
1
|
+
export declare function awaitForElement<T extends HTMLElement>(idx: string): {
|
2
|
+
cancel: () => void;
|
3
|
+
promise: Promise<T>;
|
4
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
export declare function classnames(...rest: any[]): string;
|
1
|
+
export declare function classnames(...rest: any[]): string;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
export declare function getContextMergeTags(mergeTags: {
|
2
|
-
[key: string]: any;
|
3
|
-
}, context: {
|
4
|
-
[key: string]: any;
|
5
|
-
}, idx: string): {
|
6
|
-
[key: string]: any;
|
7
|
-
};
|
1
|
+
export declare function getContextMergeTags(mergeTags: {
|
2
|
+
[key: string]: any;
|
3
|
+
}, context: {
|
4
|
+
[key: string]: any;
|
5
|
+
}, idx: string): {
|
6
|
+
[key: string]: any;
|
7
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
export declare function getPreviewClassName(idx: string | null, type: string): string;
|
1
|
+
export declare function getPreviewClassName(idx: string | null, type: string): string;
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "easy-email-extensions",
|
3
3
|
"license": "MIT",
|
4
4
|
"description": "Email editor",
|
5
|
-
"version": "3.1.
|
5
|
+
"version": "3.1.27",
|
6
6
|
"author": "m-Ryan",
|
7
7
|
"repository": {
|
8
8
|
"type": "git",
|
@@ -82,5 +82,5 @@
|
|
82
82
|
"react-dom": "^17.0.2",
|
83
83
|
"react-final-form": "^6.5.7"
|
84
84
|
},
|
85
|
-
"gitHead": "
|
85
|
+
"gitHead": "306e5f5f609d3fb61ba7e36fa9027078f902320e"
|
86
86
|
}
|
package/readme.md
CHANGED
@@ -1,138 +1,138 @@
|
|
1
|
-
# Easy-email-extensions
|
2
|
-
|
3
|
-
## Introduction
|
4
|
-
|
5
|
-
Provide default UI components, when they don’t meet your needs, you can refer to it and write your own
|
6
|
-
|
7
|
-
## usage
|
8
|
-
|
9
|
-
```sh
|
10
|
-
$ npm install --save easy-email-extensions
|
11
|
-
```
|
12
|
-
|
13
|
-
or
|
14
|
-
|
15
|
-
```sh
|
16
|
-
$ yarn add easy-email-extensions
|
17
|
-
```
|
18
|
-
|
19
|
-
```js
|
20
|
-
import React from 'react';
|
21
|
-
import { BlockManager, BasicType } from 'easy-email-core';
|
22
|
-
import { EmailEditor, EmailEditorProvider } from 'easy-email-editor';
|
23
|
-
import { SimpleLayout } from 'easy-email-extensions';
|
24
|
-
|
25
|
-
import 'easy-email-editor/lib/style.css';
|
26
|
-
import 'easy-email-extensions/lib/style.css';
|
27
|
-
|
28
|
-
const initialValues = {
|
29
|
-
subject: 'Welcome to Easy-email',
|
30
|
-
subTitle: 'Nice to meet you!',
|
31
|
-
content: BlockManager.getBlockByType(BasicType.PAGE)!.create({}),
|
32
|
-
};
|
33
|
-
|
34
|
-
export function App() {
|
35
|
-
return (
|
36
|
-
<EmailEditorProvider
|
37
|
-
data={initialValues}
|
38
|
-
height={'calc(100vh - 72px)'}
|
39
|
-
autoComplete
|
40
|
-
dashed={false}
|
41
|
-
>
|
42
|
-
{({ values }) => {
|
43
|
-
return (
|
44
|
-
<SimpleLayout>
|
45
|
-
<EmailEditor />
|
46
|
-
</SimpleLayout>
|
47
|
-
);
|
48
|
-
}}
|
49
|
-
</EmailEditorProvider>
|
50
|
-
);
|
51
|
-
}
|
52
|
-
```
|
53
|
-
|
54
|
-
## Extensions
|
55
|
-
|
56
|
-
- `AttributePanel`
|
57
|
-
|
58
|
-
- Basic block configuration panel
|
59
|
-
|
60
|
-
- <img src="https://assets.maocanhua.cn/3e74a61d-ab22-4cf3-afc9-d511b82e08cd-image.png" alt="AttributePanel">
|
61
|
-
|
62
|
-
- You can add or overwrite
|
63
|
-
|
64
|
-
```tsx
|
65
|
-
import { BlockAttributeConfigurationManager } from "easy-email-extensions";
|
66
|
-
|
67
|
-
BlockAttributeConfigurationManager.add({
|
68
|
-
[BasicType.TEXT]: () => <div>will be overwrite `Text`</div>,
|
69
|
-
});
|
70
|
-
```
|
71
|
-
|
72
|
-
- `InteractivePrompt`
|
73
|
-
|
74
|
-
- block hover and focus style
|
75
|
-
|
76
|
-
- <img src="https://assets.maocanhua.cn/298d72d6-a509-4cd2-85c7-dfb915971620-image.png" alt="InteractivePrompt">
|
77
|
-
|
78
|
-
- No configuration items
|
79
|
-
|
80
|
-
- `BlockLayer`
|
81
|
-
|
82
|
-
- <img src="https://assets.maocanhua.cn/de1f5211-350e-43c9-9c99-d97a2f196e04-image.png" alt="ShortcutToolbar">
|
83
|
-
- No configuration items
|
84
|
-
|
85
|
-
- `ShortcutToolbar`
|
86
|
-
|
87
|
-
- <img src="https://assets.maocanhua.cn/f0e2ccc6-0627-472b-ad78-bc92bdb46ad1-image.png">
|
88
|
-
- You can add or overwrite popover's preset blocks
|
89
|
-
|
90
|
-
```tsx
|
91
|
-
import { BasicType } from "easy-email-core";
|
92
|
-
import {
|
93
|
-
BlockMarketManager,
|
94
|
-
BlockMaskWrapper,
|
95
|
-
} from "easy-email-extensions";
|
96
|
-
|
97
|
-
BlockMarketManager.addCategories([
|
98
|
-
{
|
99
|
-
title: "Custom",
|
100
|
-
name: "custom",
|
101
|
-
blocks: [
|
102
|
-
{
|
103
|
-
type: BasicType.TEXT,
|
104
|
-
title: "Text",
|
105
|
-
description: "This block allows you to display text in your email.",
|
106
|
-
component: () => {
|
107
|
-
return (
|
108
|
-
<BlockMaskWrapper
|
109
|
-
type={BasicType.TEXT}
|
110
|
-
payload={{
|
111
|
-
attributes: {
|
112
|
-
"font-size": "20px",
|
113
|
-
align: "center",
|
114
|
-
padding: "0px 0px 0px 0px",
|
115
|
-
color: "#4A90E2",
|
116
|
-
},
|
117
|
-
data: {
|
118
|
-
value: {
|
119
|
-
content: "20px",
|
120
|
-
},
|
121
|
-
},
|
122
|
-
}}
|
123
|
-
>
|
124
|
-
<div style={{ fontSize: 20, width: "100%", paddingLeft: 20 }}>
|
125
|
-
20px
|
126
|
-
</div>
|
127
|
-
</BlockMaskWrapper>
|
128
|
-
);
|
129
|
-
},
|
130
|
-
},
|
131
|
-
],
|
132
|
-
},
|
133
|
-
]);
|
134
|
-
```
|
135
|
-
|
136
|
-
- `SimpleLayout`
|
137
|
-
|
138
|
-
- All in one extension, provide basic and complete layout example. Refer to the above extension for configuration items.
|
1
|
+
# Easy-email-extensions
|
2
|
+
|
3
|
+
## Introduction
|
4
|
+
|
5
|
+
Provide default UI components, when they don’t meet your needs, you can refer to it and write your own
|
6
|
+
|
7
|
+
## usage
|
8
|
+
|
9
|
+
```sh
|
10
|
+
$ npm install --save easy-email-extensions
|
11
|
+
```
|
12
|
+
|
13
|
+
or
|
14
|
+
|
15
|
+
```sh
|
16
|
+
$ yarn add easy-email-extensions
|
17
|
+
```
|
18
|
+
|
19
|
+
```js
|
20
|
+
import React from 'react';
|
21
|
+
import { BlockManager, BasicType } from 'easy-email-core';
|
22
|
+
import { EmailEditor, EmailEditorProvider } from 'easy-email-editor';
|
23
|
+
import { SimpleLayout } from 'easy-email-extensions';
|
24
|
+
|
25
|
+
import 'easy-email-editor/lib/style.css';
|
26
|
+
import 'easy-email-extensions/lib/style.css';
|
27
|
+
|
28
|
+
const initialValues = {
|
29
|
+
subject: 'Welcome to Easy-email',
|
30
|
+
subTitle: 'Nice to meet you!',
|
31
|
+
content: BlockManager.getBlockByType(BasicType.PAGE)!.create({}),
|
32
|
+
};
|
33
|
+
|
34
|
+
export function App() {
|
35
|
+
return (
|
36
|
+
<EmailEditorProvider
|
37
|
+
data={initialValues}
|
38
|
+
height={'calc(100vh - 72px)'}
|
39
|
+
autoComplete
|
40
|
+
dashed={false}
|
41
|
+
>
|
42
|
+
{({ values }) => {
|
43
|
+
return (
|
44
|
+
<SimpleLayout>
|
45
|
+
<EmailEditor />
|
46
|
+
</SimpleLayout>
|
47
|
+
);
|
48
|
+
}}
|
49
|
+
</EmailEditorProvider>
|
50
|
+
);
|
51
|
+
}
|
52
|
+
```
|
53
|
+
|
54
|
+
## Extensions
|
55
|
+
|
56
|
+
- `AttributePanel`
|
57
|
+
|
58
|
+
- Basic block configuration panel
|
59
|
+
|
60
|
+
- <img src="https://assets.maocanhua.cn/3e74a61d-ab22-4cf3-afc9-d511b82e08cd-image.png" alt="AttributePanel">
|
61
|
+
|
62
|
+
- You can add or overwrite
|
63
|
+
|
64
|
+
```tsx
|
65
|
+
import { BlockAttributeConfigurationManager } from "easy-email-extensions";
|
66
|
+
|
67
|
+
BlockAttributeConfigurationManager.add({
|
68
|
+
[BasicType.TEXT]: () => <div>will be overwrite `Text`</div>,
|
69
|
+
});
|
70
|
+
```
|
71
|
+
|
72
|
+
- `InteractivePrompt`
|
73
|
+
|
74
|
+
- block hover and focus style
|
75
|
+
|
76
|
+
- <img src="https://assets.maocanhua.cn/298d72d6-a509-4cd2-85c7-dfb915971620-image.png" alt="InteractivePrompt">
|
77
|
+
|
78
|
+
- No configuration items
|
79
|
+
|
80
|
+
- `BlockLayer`
|
81
|
+
|
82
|
+
- <img src="https://assets.maocanhua.cn/de1f5211-350e-43c9-9c99-d97a2f196e04-image.png" alt="ShortcutToolbar">
|
83
|
+
- No configuration items
|
84
|
+
|
85
|
+
- `ShortcutToolbar`
|
86
|
+
|
87
|
+
- <img src="https://assets.maocanhua.cn/f0e2ccc6-0627-472b-ad78-bc92bdb46ad1-image.png">
|
88
|
+
- You can add or overwrite popover's preset blocks
|
89
|
+
|
90
|
+
```tsx
|
91
|
+
import { BasicType } from "easy-email-core";
|
92
|
+
import {
|
93
|
+
BlockMarketManager,
|
94
|
+
BlockMaskWrapper,
|
95
|
+
} from "easy-email-extensions";
|
96
|
+
|
97
|
+
BlockMarketManager.addCategories([
|
98
|
+
{
|
99
|
+
title: "Custom",
|
100
|
+
name: "custom",
|
101
|
+
blocks: [
|
102
|
+
{
|
103
|
+
type: BasicType.TEXT,
|
104
|
+
title: "Text",
|
105
|
+
description: "This block allows you to display text in your email.",
|
106
|
+
component: () => {
|
107
|
+
return (
|
108
|
+
<BlockMaskWrapper
|
109
|
+
type={BasicType.TEXT}
|
110
|
+
payload={{
|
111
|
+
attributes: {
|
112
|
+
"font-size": "20px",
|
113
|
+
align: "center",
|
114
|
+
padding: "0px 0px 0px 0px",
|
115
|
+
color: "#4A90E2",
|
116
|
+
},
|
117
|
+
data: {
|
118
|
+
value: {
|
119
|
+
content: "20px",
|
120
|
+
},
|
121
|
+
},
|
122
|
+
}}
|
123
|
+
>
|
124
|
+
<div style={{ fontSize: 20, width: "100%", paddingLeft: 20 }}>
|
125
|
+
20px
|
126
|
+
</div>
|
127
|
+
</BlockMaskWrapper>
|
128
|
+
);
|
129
|
+
},
|
130
|
+
},
|
131
|
+
],
|
132
|
+
},
|
133
|
+
]);
|
134
|
+
```
|
135
|
+
|
136
|
+
- `SimpleLayout`
|
137
|
+
|
138
|
+
- All in one extension, provide basic and complete layout example. Refer to the above extension for configuration items.
|