@ebl-vue/editor-render 2.31.63 → 2.31.65

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.
Files changed (2) hide show
  1. package/dist/index.mjs +105 -105
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  (function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode('.cdx-alert{position:relative;padding:10px;border-radius:5px;margin-bottom:10px;margin-top:10px}.cdx-alert-primary{background-color:#ebf8ff;border:1px solid #4299e1;color:#2b6cb0}.cdx-alert-secondary{background-color:#f7fafc;border:1px solid #cbd5e0;color:#222731}.cdx-alert-info{background-color:#e6fdff;border:1px solid #4cd4ce;color:#00727c}.cdx-alert-success{background-color:#f0fff4;border:1px solid #68d391;color:#2f855a}.cdx-alert-warning{background-color:#fffaf0;border:1px solid #ed8936;color:#c05621}.cdx-alert-danger{background-color:#fff5f5;border:1px solid #fc8181;color:#c53030}.cdx-alert-light{background-color:#fff;border:1px solid #edf2f7;color:#1a202c}.cdx-alert-dark{background-color:#2d3748;border:1px solid #1a202c;color:#d3d3d3}.cdx-alert-align-left{text-align:left}.cdx-alert-align-center{text-align:center}.cdx-alert-align-right{text-align:right}.cdx-alert__message{outline:none}.cdx-alert [contentEditable=true][data-placeholder]:before{position:absolute;content:attr(data-placeholder);color:#707684;font-weight:400;opacity:0}.cdx-alert [contentEditable=true][data-placeholder]:empty:before{opacity:1}.cdx-alert [contentEditable=true][data-placeholder]:empty:focus:before{opacity:0}.ce-popover__item[data-item-name=alert-primary] .ce-popover__item-icon svg #background{fill:#ebf8ff;stroke:#4299e1}.ce-popover__item[data-item-name=alert-primary] .ce-popover__item-icon svg #content{fill:#2b6cb0}.ce-popover__item[data-item-name=alert-secondary] .ce-popover__item-icon svg #background{fill:#f7fafc;stroke:#cbd5e0}.ce-popover__item[data-item-name=alert-secondary] .ce-popover__item-icon svg #content{fill:#222731}.ce-popover__item[data-item-name=alert-info] .ce-popover__item-icon svg #background{fill:#e6fdff;stroke:#4cd4ce}.ce-popover__item[data-item-name=alert-info] .ce-popover__item-icon svg #content{fill:#00727c}.ce-popover__item[data-item-name=alert-success] .ce-popover__item-icon svg #background{fill:#f0fff4;stroke:#68d391}.ce-popover__item[data-item-name=alert-success] .ce-popover__item-icon svg #content{fill:#2f855a}.ce-popover__item[data-item-name=alert-warning] .ce-popover__item-icon svg #background{fill:#fffaf0;stroke:#ed8936}.ce-popover__item[data-item-name=alert-warning] .ce-popover__item-icon svg #content{fill:#c05621}.ce-popover__item[data-item-name=alert-danger] .ce-popover__item-icon svg #background{fill:#fff5f5;stroke:#fc8181}.ce-popover__item[data-item-name=alert-danger] .ce-popover__item-icon svg #content{fill:#c53030}.ce-popover__item[data-item-name=alert-light] .ce-popover__item-icon svg #background{fill:#fff;stroke:#edf2f7}.ce-popover__item[data-item-name=alert-light] .ce-popover__item-icon svg #content{fill:#1a202c}.ce-popover__item[data-item-name=alert-dark] .ce-popover__item-icon svg #background{fill:#2d3748;stroke:#1a202c}.ce-popover__item[data-item-name=alert-dark] .ce-popover__item-icon svg #content{fill:#d3d3d3}.cdx-alert_setting__icon_wrapper{display:flex;flex-direction:row;flex-wrap:wrap;gap:10px}.cdx-alert_setting__icon_wrapper_align{margin-top:10px}.cdx-alert_setting__icon{display:inline-block;width:24px;height:24px;text-align:center;line-height:24px;cursor:pointer}.cdx-alert_setting__icon_active{opacity:.3}.ce-block--selected .cdx-alert{outline:2px solid #4299e1}.ce-tune-alignment--right{text-align:right}.ce-tune-alignment--center{text-align:center}.ce-tune-alignment--left{text-align:left}.ce-editorjs-x-shiki{border-radius:10px;display:flex;flex-direction:column;margin:10px 0;border:2px solid transparent;position:relative}.ce-editorjs-x-shiki.editable:hover{border:2px solid #C0C0C0}.ce-editorjs-x-shiki__lang{display:flex;justify-content:space-between;padding:8px}.ce-editorjs-x-shiki__code{position:relative;float:left;min-width:100%;overflow:hidden;height:auto;min-height:60px}.ce-editorjs-x-shiki__code__dragHandler{position:absolute;left:50%;transform:translate(-50%);bottom:-5px;cursor:ns-resize;user-select:none;height:8px;width:60px;background-color:silver;border-radius:5px;display:none}.ce-editorjs-x-shiki:hover .ce-editorjs-x-shiki__code__dragHandler{display:block}.ce-editorjs-x-shiki__selector{display:flex;gap:15px;justify-content:space-between;border-bottom-style:solid;border-color:#9ca3af0d;border-bottom-width:1px;padding:0 8px 8px}.ce-editorjs-x-shiki__selector-language,.ce-editorjs-x-shiki__selector-theme{font-size:13px;font-family:inherit}.ce-editorjs-x-shiki__selector-language{width:90px}.ce-editorjs-x-shiki__selector select{border:none;outline:none}.ce-editorjs-x-shiki__span{position:relative;z-index:0;padding:20px 20px 20px 55px;margin:0;white-space:pre;font-size:13px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.ce-editorjs-x-shiki__span code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.ce-editorjs-x-shiki__textarea{all:unset;white-space:pre;background-color:transparent;position:absolute;padding:20px 20px 20px 55px;inset:0;color:transparent;z-index:0;font-size:13px;caret-color:#999;resize:none;border:none;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.ce-editorjs-x-shiki__textarea::selection{background-color:#083ca9;color:#fff}.ce-editorjs-x-shiki__copy{width:24px;height:24px;cursor:pointer;position:relative;margin-right:0}.ce-editorjs-x-shiki__copy_tip{font-size:12px;width:60px;margin-left:-20px;background-color:#0c0c0c;color:#ececec;text-align:center;border-radius:6px;padding:5px 10px;position:absolute;z-index:1;top:125%;transition:opacity .3s;visibility:hidden;opacity:0}.ce-editorjs-x-shiki__copy_tip:after{content:"";position:absolute;bottom:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent transparent #0c0c0c transparent}.ce-editorjs-x-shiki__copy_tip.visible{visibility:visible;opacity:1}.ce-editorjs-x-shiki__span.shiki .line:before{content:attr(data-line);width:40px;display:inline-block;text-align:right;color:#888;position:absolute;left:0}.ce-editorjs-x-shiki__code ::-webkit-scrollbar{width:8px;height:8px}.ce-editorjs-x-shiki__code ::-webkit-scrollbar-track{background:#22272e;border-radius:1px}.ce-editorjs-x-shiki__code ::-webkit-scrollbar-thumb{background:silver;border-radius:10px;border:2px solid #22272e}.ce-editorjs-x-shiki__code ::-webkit-scrollbar-thumb:hover{background:#555}.ce-block--selected .ce-editorjs-x-shiki{outline:2px solid #4299e1}.ce-block--selected .ce-editorjs-x-shiki,.ce-block--selected .ce-editorjs-x-shiki__selector-language,.ce-block--selected .ce-editorjs-x-shiki__span{background-color:#e1f2ff!important}.ce-delimiter__line__wrapper{height:24px;display:flex;align-items:center;justify-content:center}.ce-delimiter__line{flex:1;height:2px;background-color:#eff0f1}.ce-header{padding:15px 0 3px;margin:0;line-height:1.25;outline:none}.ce-header p,.ce-header div{padding:0!important;margin:0!important}.image-tool{--bg-color: #cdd1e0;--front-color: #388ae5;--border-color: #e8e8eb;display:inline-block}.image-tool__image{border-radius:3px;overflow:hidden;margin-bottom:10px;padding-bottom:0;user-select:none;pointer-events:none}.image-tool__image-picture{max-width:100%;vertical-align:bottom;display:inline-block;user-select:none;pointer-events:none}.image-tool__image-preloader{width:150px;height:150px;border-radius:50%;background-size:cover;margin:auto;position:relative;background-color:var(--bg-color);background-position:center center}.image-tool__image-preloader:after{content:"";position:absolute;z-index:3;width:60px;height:60px;border-radius:50%;border:2px solid var(--bg-color);border-top-color:var(--front-color);left:50%;top:50%;margin-top:-30px;margin-left:-30px;animation:image-preloader-spin 2s infinite linear;box-sizing:border-box}.image-tool__caption{visibility:hidden;position:absolute;bottom:0;left:0;margin-bottom:10px}.image-tool__caption[contentEditable=true][data-placeholder]:before{position:absolute!important;content:attr(data-placeholder);color:#707684;font-weight:400;display:none}.image-tool__caption[contentEditable=true][data-placeholder]:empty:before{display:block}.image-tool__caption[contentEditable=true][data-placeholder]:empty:focus:before{display:none}.image-tool--empty .image-tool__image,.image-tool--empty .image-tool__image-preloader{display:none}.image-tool--empty .image-tool__caption,.image-tool--uploading .image-tool__caption{visibility:hidden!important}.image-tool .cdx-button{display:none;align-items:center;justify-content:center}.image-tool .cdx-button svg{height:auto;margin:0 6px 0 0}.image-tool--filled .cdx-button,.image-tool--filled .image-tool__image-preloader{display:none}.image-tool--uploading{width:100%}.image-tool--uploading .resizable{display:none!important}.image-tool--uploading .image-tool__image{min-height:200px;display:flex;background-color:#fff}.image-tool--uploading .image-tool__image-picture,.image-tool--uploading .cdx-button{display:none}.image-tool--withBorder .image-tool__image{border:1px solid var(--border-color)}.image-tool--withBackground .image-tool__image{padding:15px;background:var(--bg-color)}.image-tool--withBackground .image-tool__image-picture{max-width:60%;margin:0 auto}.image-tool--stretched .image-tool__image-picture{width:100%}.image-tool--caption .image-tool__caption{visibility:visible}.image-tool--caption{padding-bottom:50px}@keyframes image-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ce-popover-indent-item{cursor:default!important;display:flex;align-items:center;padding:3px}.ce-popover-indent-item[version^="2.26"]{gap:10px}.ce-popover-indent-item:hover{background-color:transparent!important}.ce-popover-indent-item .ce-popover-item__icon{width:26px;height:26px;cursor:pointer;will-change:background-color,color;transition:.3s background-color,.3s color;padding-block:0px;padding-inline:0px;border-width:0px;color:var(--color-text-primary, black);background-color:#fff;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;-webkit-transition:.3s background-color,.3s color;-moz-transition:.3s background-color,.3s color;-ms-transition:.3s background-color,.3s color;-o-transition:.3s background-color,.3s color}.ce-popover-indent-item .ce-popover-item--disabled{color:var(--color-text-secondary, #707684);opacity:.3;cursor:default}.ce-popover-indent-item .ce-popover-item__icon:focus{outline:none}.ce-popover-indent-item:is([version^="2.26"],[version^="2.27"],[version^="2.28"],[version^="2.29"]):hover .ce-popover-item__icon{box-shadow:0 0 0 1px var(--color-border-icon, rgba(201, 201, 204, .48))!important;-webkit-box-shadow:0 0 0 1px var(--color-border-icon, rgba(201, 201, 204, .48))!important}.ce-popover-indent-item:is([version^="2.26"],[version^="2.27"],[version^="2.28"],[version^="2.29"]) .ce-popover-item__icon{box-shadow:0 0 0 1px var(--color-border-icon, rgba(201, 201, 204, .48))!important;-webkit-box-shadow:0 0 0 1px var(--color-border-icon, rgba(201, 201, 204, .48))!important}.ce-popover-indent-item:is([version^="2.26"],[version^="2.27"],[version^="2.28"],[version^="2.29"]) .ce-popover-item__icon:hover{background-color:var(--color-background-item-hover, #eff2f5)}.ce-highlight-indent{display:inline-block;height:1.6em;top:50%;position:absolute;transform:translateY(-50%);-webkit-transform:translate(0px,-50%);-moz-transform:translate(0px,-50%);-ms-transform:translate(0px,-50%);-o-transform:translate(0px,-50%)}.ce-popover-indent-item[version^="2.3"] .ce-popover-item__title{margin-left:4px}.cdx-list{margin:0;padding:0;outline:none;display:grid;counter-reset:item;gap:var(--spacing-s);padding:var(--spacing-xs);--spacing-s: 8px;--spacing-xs: 6px;--list-counter-type: numeric;--radius-border: 5px;--checkbox-background: #fff;--color-border: #C9C9C9;--color-bg-checked: #369FFF;--line-height: 1.45em;--color-bg-checked-hover: #0059AB;--color-tick: #fff;--size-checkbox: 1.2em}.cdx-list ol{padding-inline-start:0}.cdx-list__item{line-height:var(--line-height);display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;grid-template-areas:"checkbox content" ". child"}.cdx-list__item-children{display:grid;grid-area:child;gap:var(--spacing-s);padding-top:var(--spacing-s)}.cdx-list__item [contenteditable]{outline:none}.cdx-list__item-content{word-break:break-word;white-space:pre-wrap;grid-area:content;padding-left:var(--spacing-s)}.cdx-list__item:before{counter-increment:item;white-space:nowrap}.cdx-list-ordered .cdx-list__item:before{content:counters(item,".",var(--list-counter-type)) "."}.cdx-list-ordered{counter-reset:item}.cdx-list-unordered{padding-inline-start:0}.cdx-list-unordered .cdx-list__item:before{content:"•"}.cdx-list-checklist .cdx-list__item:before{content:""}.cdx-list__settings .cdx-settings-button{width:50%}.cdx-list__checkbox{padding-top:calc((var(--line-height) - var(--size-checkbox)) / 2);grid-area:checkbox;width:var(--size-checkbox);height:var(--size-checkbox);display:flex;cursor:pointer}.cdx-list__checkbox svg{opacity:0;height:var(--size-checkbox);width:var(--size-checkbox);left:-1px;top:-1px;position:absolute}@media (hover: hover){.cdx-list__checkbox:not(.cdx-list__checkbox--no-hover):hover .cdx-list__checkbox-check svg{opacity:1}}.cdx-list__checkbox--checked{line-height:var(--line-height)}@media (hover: hover){.cdx-list__checkbox--checked:not(.cdx-list__checkbox--checked--no-hover):hover .cdx-checklist__checkbox-check{background:var(--color-bg-checked-hover);border-color:var(--color-bg-checked-hover)}}.cdx-list__checkbox--checked .cdx-list__checkbox-check{background:var(--color-bg-checked);border-color:var(--color-bg-checked)}.cdx-list__checkbox--checked .cdx-list__checkbox-check svg{opacity:1}.cdx-list__checkbox--checked .cdx-list__checkbox-check svg path{stroke:var(--color-tick)}.cdx-list__checkbox--checked .cdx-list__checkbox-check:before{opacity:0;visibility:visible;transform:scale(2.5)}.cdx-list__checkbox-check{cursor:pointer;display:inline-block;position:relative;margin:0 auto;width:var(--size-checkbox);height:var(--size-checkbox);box-sizing:border-box;border-radius:var(--radius-border);border:1px solid var(--color-border);background:var(--checkbox-background)}.cdx-list__checkbox-check:before{content:"";position:absolute;inset:0;border-radius:100%;background-color:var(--color-bg-checked);visibility:hidden;pointer-events:none;transform:scale(1);transition:transform .4s ease-out,opacity .4s}.cdx-list__checkbox-check--disabled{pointer-events:none}.cdx-list-start-with-field{display:flex;flex-direction:row;overflow:hidden;align-items:center}.cdx-list-start-with-field--invalid{background:#ffeced;border:1px solid #E13F3F}.cdx-list-start-with-field:hover{background-color:#f8f8f8}.cdx-list-start-with-field--invalid .cdx-list-start-with-field__input{color:#e13f3f}.cdx-list-start-with-field__startlabel{width:70px;font-size:14px}.cdx-list-start-with-field__input-wrapper{flex:1;overflow:hidden}.cdx-list-start-with-field__input{font-size:14px;outline:none;font-weight:500;font-family:inherit;border:0;background:transparent;margin:0;line-height:22px;flex:1;border:1px solid rgba(226,226,229,1);border-radius:6px;padding:0 10px;width:50px;text-align:center}.cdx-list-start-with-field__input::placeholder{color:var(--grayText);font-weight:500}.ce-paragraph{line-height:2!important;outline:none}.ce-block:only-of-type .ce-paragraph[data-placeholder-active]:empty:before,.ce-block:only-of-type .ce-paragraph[data-placeholder-active][data-empty=true]:before{content:attr(data-placeholder-active)}.ce-paragraph p:first-of-type{margin-top:0}.ce-paragraph p:last-of-type{margin-bottom:0}.cdx-quote{overflow:hidden;overflow-wrap:break-word;margin:0;box-sizing:border-box;word-wrap:break-word;word-break:break-all}.cdx-quote blockquote{margin:0}.cdx-block-quote{border:solid #acacac;border-width:0 0 0 3px;box-shadow:none;color:#666;line-height:1.6em;padding:1px 0 0 12px}.tc-wrap{--color-background: #f9f9fb;--color-text-secondary: #7b7e89;--color-border: #e8e8eb;--cell-size: 34px;--toolbox-icon-size: 18px;--toolbox-padding: 6px;--toolbox-aiming-field-size: calc(var(--toolbox-icon-size) + var(--toolbox-padding)*2);--col-width: 100px 100px 100px;position:relative;height:100%;margin-top:var(--toolbox-icon-size);box-sizing:border-box;display:inline-grid;z-index:0}.tc-wrap svg{vertical-align:top}@media print{.tc-wrap{border-left-color:var(--color-border);border-left-style:solid;border-left-width:1px}}@media print{.tc-wrap .tc-row:after{display:none}}.tc-table{position:relative;width:100%;height:100%;display:grid;font-size:14px;border-top:1px solid var(--color-border);border-left:1px solid var(--color-border);line-height:1.4;overflow-x:auto}.tc-table:after{width:calc(var(--cell-size));height:100%;left:calc(var(--cell-size)*-1);top:0}.tc-table:after,.tc-table:before{position:absolute;content:""}.tc-table:before{width:100%;height:var(--toolbox-aiming-field-size);top:calc(var(--toolbox-aiming-field-size)*-1);left:0}.tc-table--heading .tc-row:first-child{font-weight:600;border-bottom:2px solid var(--color-border);position:sticky;top:0;z-index:2;background:var(--color-background)}.tc-table--heading .tc-row:first-child [contenteditable]:empty:before{content:attr(heading);color:var(--color-text-secondary)}.tc-table--heading .tc-row:first-child:after{bottom:-2px;border-bottom:2px solid var(--color-border)}.tc-add-column,.tc-add-row{display:flex;color:var(--color-text-secondary)}@media print{.tc-add{display:none}}.tc-add-column{display:grid;border-top:1px solid var(--color-border);grid-auto-rows:var(--cell-size);place-items:center}.tc-add-column svg{padding:5px;position:sticky;top:0;background-color:var(--color-background)}.tc-add-column--disabled{visibility:hidden}@media print{.tc-add-column{display:none}}.tc-add-row{height:var(--cell-size);align-items:center;padding-left:4px;position:relative}.tc-add-row--disabled{display:none}.tc-add-row:before{content:"";position:absolute;right:calc(var(--cell-size)*-1);width:var(--cell-size);height:100%}@media print{.tc-add-row{display:none}}.tc-add-column,.tc-add-row{transition:0s;cursor:pointer;will-change:background-color}.tc-add-column:hover,.tc-add-row:hover{transition:background-color .1s ease;background-color:var(--color-background)}.tc-add-row{margin-top:1px}.tc-add-row:hover:before{transition:.1s;background-color:var(--color-background)}.tc-row{display:grid;grid-template-columns:var(--col-width);position:relative;border-bottom:1px solid var(--color-border)}.tc-row--selected{background:var(--color-background)}.tc-row--selected:after{background:var(--color-background)}.tc-cell{border-right:1px solid var(--color-border);padding:6px 12px;overflow:hidden;outline:none;line-break:normal}.tc-cell--selected{background:var(--color-background)}.tc-wrap--readonly .tc-row:after{display:none}.tc-toolbox{--toolbox-padding: 6px;--popover-margin: 30px;--toggler-click-zone-size: 30px;--toggler-dots-color: #7b7e89;--toggler-dots-color-hovered: #1d202b;position:absolute;cursor:pointer;z-index:1;opacity:0;transition:opacity .1s;will-change:left,opacity}.tc-toolbox--column{top:calc(var(--toggler-click-zone-size)*-1);transform:translate(calc(var(--toggler-click-zone-size)*-1/2));will-change:left,opacity}.tc-toolbox--row{left:calc(var(--popover-margin)*-1);transform:translateY(calc(var(--toggler-click-zone-size)*-1/2));margin-top:-1px;will-change:top,opacity}.tc-toolbox--showed{opacity:1}.tc-toolbox .tc-popover{position:absolute;top:0;left:var(--popover-margin)}.tc-toolbox__toggler{display:flex;align-items:center;justify-content:center;width:var(--toggler-click-zone-size);height:var(--toggler-click-zone-size);color:var(--toggler-dots-color);opacity:0;transition:opacity .15s ease;will-change:opacity}.tc-toolbox__toggler:hover{color:var(--toggler-dots-color-hovered)}.tc-toolbox__toggler svg{fill:currentColor}.tc-wrap:hover .tc-toolbox__toggler{opacity:1}.tc-settings .cdx-settings-button{width:50%;margin:0}.tc-popover{--color-border: #eaeaea;--color-background: #fff;--color-background-hover: rgba(232, 232, 235, .49);--color-background-confirm: #e24a4a;--color-background-confirm-hover: #d54040;--color-text-confirm: #fff;background:var(--color-background);border:1px solid var(--color-border);box-shadow:0 3px 15px -3px #0d142121;border-radius:6px;padding:6px;display:none;will-change:opacity,transform}.tc-popover--opened{display:flex;animation:menuShowing .1s cubic-bezier(.215,.61,.355,1) forwards}.tc-popover__item{display:flex;align-items:center;padding:2px 14px 2px 2px;border-radius:5px;cursor:pointer;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tc-popover__item:hover{background:var(--color-background-hover)}.tc-popover__item:not(:last-of-type){margin-bottom:2px}.tc-popover__item-icon{display:inline-flex;width:26px;height:26px;align-items:center;justify-content:center;background:var(--color-background);border-radius:5px;border:1px solid var(--color-border);margin-right:8px}.tc-popover__item-label{line-height:22px;font-size:14px;font-weight:500}.tc-popover__item--confirm{background:var(--color-background-confirm);color:var(--color-text-confirm)}.tc-popover__item--confirm:hover{background-color:var(--color-background-confirm-hover)}.tc-popover__item--confirm .tc-popover__item-icon{background:var(--color-background-confirm);border-color:#0000001a}.tc-popover__item--confirm .tc-popover__item-icon svg{transition:transform .2s ease-in;transform:rotate(90deg) scale(1.2)}.tc-popover__item--hidden{display:none}@keyframes menuShowing{0%{opacity:0;transform:translateY(-8px) scale(.9)}70%{opacity:1;transform:translateY(2px)}to{transform:translateY(0)}}.cell-resizable{cursor:col-resize}.ce-popover--inline .ce-popover--nested .ce-popover__container{width:min-content!important;min-width:unset!important}.ce-popover--inline .ce-popover--nested .ce-popover__items{width:max-content}.editorjs__color-selector-container{display:grid;gap:10px;padding:4px}.editorjs__color-selector__container-item{width:30px;height:30px;display:block;cursor:pointer;border-radius:100%;transition:transform .2s ease}.editorjs__color-selector__container-item:hover{transform:scale(1.1)}.cel-inline-bold{font-weight:700}.cel-inline-strikethrough{text-decoration:line-through}.cel-inline-italic{font-style:italic}.cel-inline-code{margin-left:2px;margin-right:2px;background-color:#f5f6f7;border:1px solid #dee0e3;border-color:#dee0e3;border-width:1px 0;border-radius:4px;padding:1px 5px 1px 4px}.cel-inline-underline{text-decoration:underline}.cel-inline-underline.cel-inline-strikethrough{text-decoration:underline line-through}.cel-inline-mark{background-color:#ff0;padding:2px}.cel-inline-link.cel-inline-strikethrough{text-decoration:line-through underline}.cel-inline-link-input-wrap{display:flex;flex-direction:row;gap:5px}.cel-inline-link-input{flex:1;background:#f8f8f8;border:1px solid rgba(226,226,229,.2);border-radius:6px;padding:4px 8px;font-size:14px;line-height:22px;outline:none;margin:0;width:100%;box-sizing:border-box;font-weight:500;font-family:inherit}.cel-inline-link-input-btn{width:50px;border-radius:5px;background-color:#161c27;color:#fff;border:none;cursor:pointer}.cel-inline-link-input-btn.disabled{opacity:.4;cursor:not-allowed}.cel-fake-background{background-color:#a8d6ff}.editorjs__color-selector__input{width:1px;height:1px;opacity:0}.editorjs__color-selector__container-item-none{background-color:transparent;border:1px solid #e6e6e6;position:relative}.editorjs__color-selector__container-item-none:before{content:"";position:absolute;top:50%;left:50%;width:1px;height:35px;background-color:#e6e6e6;transform:translate(-50%,-50%) rotate(45deg)}.cel-inline-gray-text{color:#646a73}.cel-inline-pink-text{color:#d83931}.cel-inline-orange-text{color:#de7802}.cel-inline-yellow-text{color:#dc9b04}.cel-inline-green-text{color:#2ea121}.cel-inline-blue-text{color:#245bdb}.cel-inline-purple-text{color:#6425d0}.ebl-er-doc{font-family:var(--font-family);font-size:16px;font-weight:400;box-sizing:border-box}.ebl-er-header{height:var(--ebl-er-header-height);box-sizing:border-box;position:sticky;top:0;z-index:10}.ebl-er-footer{height:var(--ebl-er-footer-height);box-sizing:border-box}.ebl-er-container{display:flex;flex-direction:row;min-height:calc(100vh - var(--ebl-er-header-height))}.ebl-er-doc-menu{width:var(--ebl-er-doc-menu-width);box-sizing:border-box;flex-shrink:0;height:calc(100vh - var(--ebl-er-header-height));position:sticky;top:var(--ebl-er-header-height)}.ebl-er-doc-menu-content{box-sizing:border-box}.ebl-er-doc-content{box-sizing:border-box;display:flex;flex-direction:row;max-width:calc(100% - var(--ebl-er-doc-menu-width));flex-grow:1}.ebl-er-doc-content-container{box-sizing:border-box;flex:1;padding:0 50px 50px;width:100%;overflow-x:hidden;white-space:normal;word-wrap:break-word}.ebl-er-doc-content-inner-wrap{margin:0 auto}.ebl-er-doc-content-inner .ce-block{width:100%}.ebl-er-doc-outline{width:280px;box-sizing:border-box;height:calc(100vh - var(--ebl-er-header-height));position:sticky;top:var(--ebl-er-header-height);overflow:auto;padding:12px}.ebl-er-doc-pre-next{display:flex;justify-content:space-between;align-items:center;padding:33px 0}@media (max-width:960px){.ebl-er-doc-outline{display:none}}.ebl-er-doc ::-webkit-scrollbar{width:6px;height:6px}.ebl-er-doc ::-webkit-scrollbar-track{background:#f1f1f1;border-radius:1px}.ebl-er-doc ::-webkit-scrollbar-thumb{background:silver;border-radius:10px;border:1px solid #fff}.ebl-er-doc ::-webkit-scrollbar-thumb:hover{background:#555}.ce-editorjs-x-shiki__code[data-v-f867b955]{overflow:auto}.ce-editorjs-x-shiki__selector[data-v-f867b955]{padding:0 8px;align-items:center}.ce-editorjs-x-shiki__copy_tip[data-v-f867b955]{visibility:visible;opacity:.9;width:40px;padding:5px;margin-left:-15px}.tc-wrap--readonly[data-v-0627102b]{margin-bottom:var(--toolbox-icon-size)}.image-tool__image[data-v-ff96876e]{margin-top:15px}.ebl-er-doc-outline-item{padding:7px 24px;cursor:pointer;white-space:normal;word-wrap:break-word}.ebl-er-doc-outline-item:hover{background-color:#f6f6f6}.ebl-er-doc-outline-item.selected{background-color:#ebebeb}.ebl-outline .level_1{padding-left:24px}.ebl-outline .level_2{padding-left:42px}.ebl-outline .level_3{padding-left:60px}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- import { defineComponent as m, computed as C, resolveComponent as W, createElementBlock as s, openBlock as o, normalizeStyle as M, createCommentVNode as _, createElementVNode as i, renderSlot as x, Fragment as g, renderList as w, normalizeClass as H, createBlock as Z, resolveDynamicComponent as J, createVNode as V, withCtx as Q, useModel as k, isRef as X, shallowRef as D, ref as T, watchEffect as ee, unref as O, toDisplayString as Y, createStaticVNode as te, watch as le, onMounted as ae, nextTick as oe, onUnmounted as se } from "vue";
3
- import { codeToHtml as ne } from "shiki";
4
- const N = Symbol("INSTALLED_KEY"), ie = (a, e) => (a.install = (l) => {
2
+ import { defineComponent as v, computed as C, resolveComponent as P, createElementBlock as s, openBlock as o, normalizeStyle as M, createCommentVNode as y, createElementVNode as i, renderSlot as x, Fragment as g, renderList as w, normalizeClass as H, createBlock as U, resolveDynamicComponent as Z, createVNode as J, useModel as m, isRef as Q, shallowRef as W, ref as T, watchEffect as X, unref as V, toDisplayString as O, createStaticVNode as ee, watch as te, onMounted as le, nextTick as ae, onUnmounted as oe } from "vue";
3
+ import { codeToHtml as se } from "shiki";
4
+ const D = Symbol("INSTALLED_KEY"), ne = (a, e) => (a.install = (l) => {
5
5
  for (const c of [a, ...Object.values({})]) l.component(c.name, c);
6
- }, a), ce = { key: 0, class: "ebl-er-header" }, re = { class: "ebl-er-container" }, de = { key: 0, class: "ebl-er-doc-menu" }, ue = { class: "ebl-er-doc-content" }, pe = { class: "ebl-er-doc-content-container" }, he = { class: "ebl-er-doc-content-inner-wrap" }, ve = { class: "ebl-er-doc-title" }, me = { class: "ebl-er-doc-content-inner" }, be = ["data-id", "data-type"], ke = { class: "ebl-er-doc-pre-next" }, fe = { key: 0, class: "ebl-er-doc-outline" }, _e = { key: 1, class: "ebl-er-footer" }, ye = m({ name: "EblEditorRender", inheritAttrs: !1, __name: "EditorRender", props: { data: { default: () => ({ blocks: [] }) }, showHeader: { type: Boolean, default: !0 }, showFooter: { type: Boolean, default: !0 }, showDocMenu: { type: Boolean, default: !0 }, showOutline: { type: Boolean, default: !0 }, headerHeight: { default: 84 }, docMenuWidth: { default: 280 } }, setup(a) {
6
+ }, a), ie = { key: 0, class: "ebl-er-header" }, ce = { class: "ebl-er-container" }, re = { key: 0, class: "ebl-er-doc-menu" }, de = { class: "ebl-er-doc-content" }, ue = { class: "ebl-er-doc-content-container" }, pe = { class: "ebl-er-doc-content-inner-wrap" }, he = { class: "ebl-er-doc-title" }, ve = { class: "ebl-er-doc-content-inner" }, be = ["data-id", "data-type"], me = { class: "ebl-er-doc-pre-next" }, ke = { key: 0, class: "ebl-er-doc-outline" }, fe = { key: 1, class: "ebl-er-footer" }, _e = v({ name: "EblEditorRender", inheritAttrs: !1, __name: "EditorRender", props: { data: { default: () => ({ blocks: [] }) }, showHeader: { type: Boolean, default: !0 }, showFooter: { type: Boolean, default: !0 }, showDocMenu: { type: Boolean, default: !0 }, showOutline: { type: Boolean, default: !0 }, headerHeight: { default: 84 }, docMenuWidth: { default: 280 } }, setup(a) {
7
7
  const e = a, l = C(() => ({ "--ebl-er-header-height": `${e.headerHeight}px`, "--ebl-er-doc-menu-width": `${e.docMenuWidth}px` }));
8
8
  function c(t) {
9
9
  return t.tunes && t.tunes.blockAlignment && t.tunes.blockAlignment.alignment ? t.tunes.blockAlignment.alignment : "";
@@ -13,83 +13,83 @@ const N = Symbol("INSTALLED_KEY"), ie = (a, e) => (a.install = (l) => {
13
13
  return t.tunes && t.tunes.indent && t.tunes.indent.indentLevel && (b = { "padding-left": 48 * t.tunes.indent.indentLevel + "px" }), b;
14
14
  }
15
15
  return (t, b) => {
16
- const d = W("ebloutline"), y = W("ClientOnly");
17
- return o(), s("div", { class: "ebl-er-doc", style: M(l.value) }, [t.showHeader ? (o(), s("div", ce, [x(t.$slots, "header")])) : _("", !0), i("div", re, [t.showDocMenu ? (o(), s("div", de, [x(t.$slots, "docMenu")])) : _("", !0), i("div", ue, [i("div", pe, [i("div", he, [i("div", ve, [x(t.$slots, "docTitle")]), i("article", me, [(o(!0), s(g, null, w(t.data.blocks, (h) => (o(), s("section", { class: "ce-block", "data-id": h.id, "data-type": h.type }, [i("div", { class: H(`ce-tune-alignment--${c(h)}`) }, [i("div", { style: M(r(h)) }, [(o(), Z(J("ebl" + h.type), { block: h }, null, 8, ["block"]))], 4)], 2)], 8, be))), 256)), !t.data || !t.data.blocks || t.data.blocks.length <= 0 ? x(t.$slots, "noDoc", { key: 0 }) : _("", !0)]), i("div", ke, [i("div", null, [x(t.$slots, "previous")]), i("div", null, [x(t.$slots, "next")])]), x(t.$slots, "doContentBottom")])]), t.showOutline ? (o(), s("aside", fe, [V(y, null, { default: Q(() => [V(d, { blocks: t.data.blocks, headerHeight: t.headerHeight }, null, 8, ["blocks", "headerHeight"])]), _: 1 })])) : _("", !0)])]), t.showFooter ? (o(), s("div", _e, [x(t.$slots, "footer")])) : _("", !0)], 4);
16
+ const d = P("ebloutline");
17
+ return o(), s("div", { class: "ebl-er-doc", style: M(l.value) }, [t.showHeader ? (o(), s("div", ie, [x(t.$slots, "header")])) : y("", !0), i("div", ce, [t.showDocMenu ? (o(), s("div", re, [x(t.$slots, "docMenu")])) : y("", !0), i("div", de, [i("div", ue, [i("div", pe, [i("div", he, [x(t.$slots, "docTitle")]), i("article", ve, [(o(!0), s(g, null, w(t.data.blocks, (k) => (o(), s("section", { class: "ce-block", "data-id": k.id, "data-type": k.type }, [i("div", { class: H(`ce-tune-alignment--${c(k)}`) }, [i("div", { style: M(r(k)) }, [(o(), U(Z("ebl" + k.type), { block: k }, null, 8, ["block"]))], 4)], 2)], 8, be))), 256)), !t.data || !t.data.blocks || t.data.blocks.length <= 0 ? x(t.$slots, "noDoc", { key: 0 }) : y("", !0)]), i("div", me, [i("div", null, [x(t.$slots, "previous")]), i("div", null, [x(t.$slots, "next")])]), x(t.$slots, "doContentBottom")])]), t.showOutline ? (o(), s("aside", ke, [J(d, { blocks: t.data.blocks, headerHeight: t.headerHeight }, null, 8, ["blocks", "headerHeight"])])) : y("", !0)])]), t.showFooter ? (o(), s("div", fe, [x(t.$slots, "footer")])) : y("", !0)], 4);
18
18
  };
19
- } }), xe = ["innerHTML"], ge = m({ name: "eblparagraph", inheritAttrs: !1, __name: "paragraph", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
20
- const e = k(a, "block");
21
- return (l, c) => (o(), s("div", { class: "ce-paragraph cdx-block", innerHTML: e.value.data.text }, null, 8, xe));
22
- } }), we = ["innerHTML"], Me = m({ name: "eblh1", inheritAttrs: !1, __name: "h1", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
23
- const e = k(a, "block");
24
- return (l, c) => (o(), s("h1", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, we));
25
- } }), Le = ["innerHTML"], He = m({ name: "eblh2", inheritAttrs: !1, __name: "h2", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
26
- const e = k(a, "block");
27
- return (l, c) => (o(), s("h2", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, Le));
28
- } }), Te = ["innerHTML"], Ce = m({ name: "eblh3", inheritAttrs: !1, __name: "h3", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
29
- const e = k(a, "block");
30
- return (l, c) => (o(), s("h3", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, Te));
31
- } }), Ae = ["innerHTML"], Ee = m({ name: "eblh4", inheritAttrs: !1, __name: "h4", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
32
- const e = k(a, "block");
33
- return (l, c) => (o(), s("h4", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, Ae));
34
- } }), Se = ["innerHTML"], ze = m({ name: "eblh5", inheritAttrs: !1, __name: "h5", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
35
- const e = k(a, "block");
36
- return (l, c) => (o(), s("h5", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, Se));
37
- } }), $e = ["innerHTML"], je = m({ name: "eblh6", inheritAttrs: !1, __name: "h6", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
38
- const e = k(a, "block");
39
- return (l, c) => (o(), s("h6", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, $e));
40
- } }), Be = ["innerHTML"], qe = m({ name: "eblalert", inheritAttrs: !1, __name: "alert", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
41
- const e = k(a, "block");
42
- return (l, c) => (o(), s("div", { class: H(`cdx-alert cdx-alert-${e.value.data.type} cdx-alert-align-${e.value.data.align}`) }, [i("div", { class: "cdx-alert__message", innerHTML: e.value.data.message }, null, 8, Be)], 2));
19
+ } }), ye = ["innerHTML"], xe = v({ name: "eblparagraph", inheritAttrs: !1, __name: "paragraph", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
20
+ const e = m(a, "block");
21
+ return (l, c) => (o(), s("div", { class: "ce-paragraph cdx-block", innerHTML: e.value.data.text }, null, 8, ye));
22
+ } }), ge = ["innerHTML"], we = v({ name: "eblh1", inheritAttrs: !1, __name: "h1", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
23
+ const e = m(a, "block");
24
+ return (l, c) => (o(), s("h1", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, ge));
25
+ } }), Me = ["innerHTML"], Le = v({ name: "eblh2", inheritAttrs: !1, __name: "h2", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
26
+ const e = m(a, "block");
27
+ return (l, c) => (o(), s("h2", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, Me));
28
+ } }), He = ["innerHTML"], Te = v({ name: "eblh3", inheritAttrs: !1, __name: "h3", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
29
+ const e = m(a, "block");
30
+ return (l, c) => (o(), s("h3", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, He));
31
+ } }), Ce = ["innerHTML"], Ae = v({ name: "eblh4", inheritAttrs: !1, __name: "h4", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
32
+ const e = m(a, "block");
33
+ return (l, c) => (o(), s("h4", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, Ce));
34
+ } }), Ee = ["innerHTML"], Se = v({ name: "eblh5", inheritAttrs: !1, __name: "h5", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
35
+ const e = m(a, "block");
36
+ return (l, c) => (o(), s("h5", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, Ee));
37
+ } }), ze = ["innerHTML"], $e = v({ name: "eblh6", inheritAttrs: !1, __name: "h6", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
38
+ const e = m(a, "block");
39
+ return (l, c) => (o(), s("h6", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, ze));
40
+ } }), je = ["innerHTML"], Be = v({ name: "eblalert", inheritAttrs: !1, __name: "alert", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
41
+ const e = m(a, "block");
42
+ return (l, c) => (o(), s("div", { class: H(`cdx-alert cdx-alert-${e.value.data.type} cdx-alert-align-${e.value.data.align}`) }, [i("div", { class: "cdx-alert__message", innerHTML: e.value.data.message }, null, 8, je)], 2));
43
43
  } });
44
- const Re = () => {
45
- }, Ie = { class: "ce-editorjs-x-shiki__selector" }, We = { class: "ce-editorjs-x-shiki__lang" }, Ve = { key: 0, class: "ce-editorjs-x-shiki__copy_tip" }, De = { key: 0, width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, Oe = { key: 1, width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, Ne = ["innerHTML"], Fe = m({ name: "eblcode", inheritAttrs: !1, __name: "code", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
46
- const e = T(null), l = k(a, "block"), c = C(() => l.value.data.resizeSize ? { height: l.value.data.resizeSize + "px" } : {}), r = function(p, n, u) {
47
- let v;
48
- v = X(u) ? { evaluating: u } : {};
49
- const { lazy: A = !1, flush: E = "pre", evaluating: f, shallow: z = !0, onError: $ = Re } = v, L = D(!A), j = z ? D(n) : T(n);
44
+ const qe = () => {
45
+ }, Ie = { class: "ce-editorjs-x-shiki__selector" }, Re = { class: "ce-editorjs-x-shiki__lang" }, We = { key: 0, class: "ce-editorjs-x-shiki__copy_tip" }, Ve = { key: 0, width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, De = { key: 1, width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, Ne = ["innerHTML"], Oe = v({ name: "eblcode", inheritAttrs: !1, __name: "code", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
46
+ const e = T(null), l = m(a, "block"), c = C(() => l.value.data.resizeSize ? { height: l.value.data.resizeSize + "px" } : {}), r = function(p, n, u) {
47
+ let h;
48
+ h = Q(u) ? { evaluating: u } : {};
49
+ const { lazy: A = !1, flush: E = "pre", evaluating: _, shallow: z = !0, onError: $ = qe } = h, L = W(!A), j = z ? W(n) : T(n);
50
50
  let S = 0;
51
- return ee(async (P) => {
51
+ return X(async (G) => {
52
52
  if (!L.value) return;
53
53
  S++;
54
- const R = S;
55
- let I = !1;
56
- f && Promise.resolve().then(() => {
57
- f.value = !0;
54
+ const I = S;
55
+ let R = !1;
56
+ _ && Promise.resolve().then(() => {
57
+ _.value = !0;
58
58
  });
59
59
  try {
60
- const B = await p((U) => {
61
- P(() => {
62
- f && (f.value = !1), I || U();
60
+ const B = await p((K) => {
61
+ G(() => {
62
+ _ && (_.value = !1), R || K();
63
63
  });
64
64
  });
65
- R === S && (j.value = B);
65
+ I === S && (j.value = B);
66
66
  } catch (B) {
67
67
  $(B);
68
68
  } finally {
69
- f && R === S && (f.value = !1), I = !0;
69
+ _ && I === S && (_.value = !1), R = !0;
70
70
  }
71
71
  }, { flush: E }), A ? C(() => (L.value = !0, j.value)) : j;
72
72
  }(async () => {
73
73
  let p = "";
74
- return { html: await ne(l.value.data.code, { lang: l.value.data.lang, theme: l.value.data.theme || "github-dark-dimmed", transformers: [{ preprocess: (u) => `${u}
74
+ return { html: await se(l.value.data.code, { lang: l.value.data.lang, theme: l.value.data.theme || "github-dark-dimmed", transformers: [{ preprocess: (u) => `${u}
75
75
  `, pre(u) {
76
- var v;
77
- this.addClassToHast(u, "ce-editorjs-x-shiki__span"), p = ((v = u.properties) == null ? void 0 : v.style) || "";
78
- }, line(u, v) {
79
- u.properties = u.properties || {}, u.properties["data-line"] = v;
76
+ var h;
77
+ this.addClassToHast(u, "ce-editorjs-x-shiki__span"), p = ((h = u.properties) == null ? void 0 : h.style) || "";
78
+ }, line(u, h) {
79
+ u.properties = u.properties || {}, u.properties["data-line"] = h;
80
80
  } }] }), preStyle: p };
81
81
  });
82
82
  function t(p) {
83
83
  e.value && function(n, u) {
84
- let v = u.clientY, A = parseInt(window.getComputedStyle(n).height, 10);
84
+ let h = u.clientY, A = parseInt(window.getComputedStyle(n).height, 10);
85
85
  const E = (z) => {
86
- const $ = z.clientY - v;
86
+ const $ = z.clientY - h;
87
87
  let L = A + $;
88
88
  L < 100 && (L = 100), n.style.height = L + "px";
89
- }, f = () => {
90
- document.removeEventListener("mousemove", E), document.removeEventListener("mouseup", f);
89
+ }, _ = () => {
90
+ document.removeEventListener("mousemove", E), document.removeEventListener("mouseup", _);
91
91
  };
92
- document.addEventListener("mousemove", E), document.addEventListener("mouseup", f);
92
+ document.addEventListener("mousemove", E), document.addEventListener("mouseup", _);
93
93
  }(e.value, p);
94
94
  }
95
95
  function b() {
@@ -97,56 +97,56 @@ const Re = () => {
97
97
  const p = l.value.data.code;
98
98
  if (navigator.clipboard && window.isSecureContext) try {
99
99
  navigator.clipboard.writeText(p).then(() => {
100
- h(!0);
100
+ f(!0);
101
101
  }).catch((n) => {
102
- h(!1);
102
+ f(!1);
103
103
  });
104
104
  } catch (n) {
105
- h(!1);
105
+ f(!1);
106
106
  }
107
107
  else {
108
108
  const n = document.createElement("textarea");
109
109
  n.value = p, n.style.top = "0", n.style.left = "0", n.style.position = "fixed", n.style.opacity = "0", n.style.pointerEvents = "none", n.style.zIndex = "-1000", document.body.appendChild(n), n.focus(), n.select();
110
110
  try {
111
- document.execCommand("copy"), document.body.removeChild(n), h(!0);
111
+ document.execCommand("copy"), document.body.removeChild(n), f(!0);
112
112
  } catch (u) {
113
- h(!1), document.body.removeChild(n);
113
+ f(!1), document.body.removeChild(n);
114
114
  }
115
115
  }
116
116
  }
117
117
  }
118
- const d = T(!1), y = T(!1);
119
- function h(p) {
120
- d.value = !0, y.value = p, setTimeout(() => {
118
+ const d = T(!1), k = T(!1);
119
+ function f(p) {
120
+ d.value = !0, k.value = p, setTimeout(() => {
121
121
  d.value = !1;
122
122
  }, 2e3);
123
123
  }
124
124
  return (p, n) => {
125
- var u, v;
126
- return o(), s("div", { class: H("cdx-block ce-editorjs-x-shiki"), style: M(`${(u = O(r)) == null ? void 0 : u.preStyle}`) }, [i("div", Ie, [i("div", We, Y(l.value.data.lang), 1), i("div", { class: "ce-editorjs-x-shiki__copy", ref: "copyRef", onClick: b }, [n[2] || (n[2] = te('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" data-v-f867b955><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.25 8.5H10.25C9.2835 8.5 8.5 9.2835 8.5 10.25V17.25C8.5 18.2165 9.2835 19 10.25 19H17.25C18.2165 19 19 18.2165 19 17.25V10.25C19 9.2835 18.2165 8.5 17.25 8.5Z" data-v-f867b955></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.5 8.5V6.75C15.5 6.28587 15.3156 5.84075 14.9874 5.51256C14.6592 5.18437 14.2141 5 13.75 5H6.75C6.28587 5 5.84075 5.18437 5.51256 5.51256C5.18437 5.84075 5 6.28587 5 6.75V13.75C5 14.2141 5.18437 14.6592 5.51256 14.9874C5.84075 15.3156 6.28587 15.5 6.75 15.5H8.5" data-v-f867b955></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 12L15.5 12" data-v-f867b955></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15.5L15.5 15.5" data-v-f867b955></path></svg>', 1)), d.value ? (o(), s("div", Ve, [y.value ? (o(), s("svg", De, [...n[0] || (n[0] = [i("path", { d: "M7 12L10.4884 15.8372C10.5677 15.9245 10.705 15.9245 10.7844 15.8372L17 9", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round" }, null, -1)])])) : (o(), s("svg", Oe, [...n[1] || (n[1] = [i("path", { d: "M8 8L12 12M12 12L16 16M12 12L16 8M12 12L8 16", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round" }, null, -1)])]))])) : _("", !0)], 512)]), i("div", { ref_key: "codeRef", ref: e, class: "ce-editorjs-x-shiki__code", style: M(c.value) }, [i("span", { innerHTML: (v = O(r)) == null ? void 0 : v.html }, null, 8, Ne)], 4), i("div", { class: "ce-editorjs-x-shiki__code__dragHandler", onMousedown: t }, null, 32)], 4);
125
+ var u, h;
126
+ return o(), s("div", { class: H("cdx-block ce-editorjs-x-shiki"), style: M(`${(u = V(r)) == null ? void 0 : u.preStyle}`) }, [i("div", Ie, [i("div", Re, O(l.value.data.lang), 1), i("div", { class: "ce-editorjs-x-shiki__copy", ref: "copyRef", onClick: b }, [n[2] || (n[2] = ee('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" data-v-f867b955><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.25 8.5H10.25C9.2835 8.5 8.5 9.2835 8.5 10.25V17.25C8.5 18.2165 9.2835 19 10.25 19H17.25C18.2165 19 19 18.2165 19 17.25V10.25C19 9.2835 18.2165 8.5 17.25 8.5Z" data-v-f867b955></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.5 8.5V6.75C15.5 6.28587 15.3156 5.84075 14.9874 5.51256C14.6592 5.18437 14.2141 5 13.75 5H6.75C6.28587 5 5.84075 5.18437 5.51256 5.51256C5.18437 5.84075 5 6.28587 5 6.75V13.75C5 14.2141 5.18437 14.6592 5.51256 14.9874C5.84075 15.3156 6.28587 15.5 6.75 15.5H8.5" data-v-f867b955></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 12L15.5 12" data-v-f867b955></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15.5L15.5 15.5" data-v-f867b955></path></svg>', 1)), d.value ? (o(), s("div", We, [k.value ? (o(), s("svg", Ve, [...n[0] || (n[0] = [i("path", { d: "M7 12L10.4884 15.8372C10.5677 15.9245 10.705 15.9245 10.7844 15.8372L17 9", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round" }, null, -1)])])) : (o(), s("svg", De, [...n[1] || (n[1] = [i("path", { d: "M8 8L12 12M12 12L16 16M12 12L16 8M12 12L8 16", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round" }, null, -1)])]))])) : y("", !0)], 512)]), i("div", { ref_key: "codeRef", ref: e, class: "ce-editorjs-x-shiki__code", style: M(c.value) }, [i("span", { innerHTML: (h = V(r)) == null ? void 0 : h.html }, null, 8, Ne)], 4), i("div", { class: "ce-editorjs-x-shiki__code__dragHandler", onMousedown: t }, null, 32)], 4);
127
127
  };
128
128
  } }), q = (a, e) => {
129
129
  const l = a.__vccOpts || a;
130
130
  for (const [c, r] of e) l[c] = r;
131
131
  return l;
132
- }, Ye = q(Fe, [["__scopeId", "data-v-f867b955"]]), Ge = { class: "ce-delimiter cdx-block" }, Ke = m({ name: "ebldelimiter", inheritAttrs: !1, __name: "delimiter", setup: (a) => (e, l) => (o(), s("div", Ge, [...l[0] || (l[0] = [i("div", { class: "ce-delimiter__line__wrapper" }, [i("div", { class: "ce-delimiter__line" })], -1)])])) }), Pe = { key: 0, class: "cdx-list cdx-list-unordered" }, Ue = ["innerHTML"], Ze = ["innerHTML"], Je = { key: 2, class: "cdx-list cdx-list-checklist" }, Qe = ["innerHTML"], Xe = m({ name: "eblList", inheritAttrs: !1, __name: "List", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
133
- const e = k(a, "block");
134
- return (l, c) => (o(), s(g, null, [e.value.data.style === "unordered" ? (o(), s("ul", Pe, [(o(!0), s(g, null, w(e.value.data.items, (r, t) => (o(), s("li", { class: "cdx-list__item", key: t }, [i("div", { class: "cdx-list__item-content", innerHTML: r.content }, null, 8, Ue)]))), 128))])) : _("", !0), e.value.data.style === "ordered" ? (o(), s("ol", { key: 1, class: "cdx-list cdx-list-ordered", style: M(`--list-counter-type: ${e.value.data.meta.counterType};`) }, [(o(!0), s(g, null, w(e.value.data.items, (r, t) => (o(), s("li", { class: "cdx-list__item", key: t }, [i("div", { class: "cdx-list__item-content", innerHTML: r.content }, null, 8, Ze)]))), 128))], 4)) : _("", !0), e.value.data.style === "checklist" ? (o(), s("ul", Je, [(o(!0), s(g, null, w(e.value.data.items, (r, t) => (o(), s("li", { class: "cdx-list__item", key: t }, [i("div", { class: H(["cdx-list__checkbox cdx-list__checkbox-check--disabled", { "cdx-list__checkbox--checked": r.meta.checked }]) }, [...c[0] || (c[0] = [i("span", { class: "cdx-list__checkbox-check" }, [i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24" }, [i("path", { stroke: "currentColor", "stroke-linecap": "round", "stroke-width": "2", d: "M7 12L10.4884 15.8372C10.5677 15.9245 10.705 15.9245 10.7844 15.8372L17 9" })])], -1)])], 2), i("div", { class: "cdx-list__item-content", innerHTML: r.content }, null, 8, Qe)]))), 128))])) : _("", !0)], 64));
135
- } }), et = { class: "cdx-block cdx-quote" }, tt = ["innerHTML"], lt = m({ name: "eblquote", inheritAttrs: !1, __name: "quote", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
136
- const e = k(a, "block");
137
- return (l, c) => (o(), s("div", et, [i("blockquote", { class: "cdx-input cdx-quote__text cdx-block-quote", innerHTML: e.value.data.text }, null, 8, tt)]));
138
- } }), at = { class: "tc-row" }, ot = ["innerHTML"], st = q(m({ name: "ebltable", inheritAttrs: !1, __name: "table", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
139
- const e = k(a, "block"), l = C(() => {
132
+ }, Fe = q(Oe, [["__scopeId", "data-v-f867b955"]]), Ye = { class: "ce-delimiter cdx-block" }, Ge = v({ name: "ebldelimiter", inheritAttrs: !1, __name: "delimiter", setup: (a) => (e, l) => (o(), s("div", Ye, [...l[0] || (l[0] = [i("div", { class: "ce-delimiter__line__wrapper" }, [i("div", { class: "ce-delimiter__line" })], -1)])])) }), Ke = { key: 0, class: "cdx-list cdx-list-unordered" }, Pe = ["innerHTML"], Ue = ["innerHTML"], Ze = { key: 2, class: "cdx-list cdx-list-checklist" }, Je = ["innerHTML"], Qe = v({ name: "eblList", inheritAttrs: !1, __name: "List", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
133
+ const e = m(a, "block");
134
+ return (l, c) => (o(), s(g, null, [e.value.data.style === "unordered" ? (o(), s("ul", Ke, [(o(!0), s(g, null, w(e.value.data.items, (r, t) => (o(), s("li", { class: "cdx-list__item", key: t }, [i("div", { class: "cdx-list__item-content", innerHTML: r.content }, null, 8, Pe)]))), 128))])) : y("", !0), e.value.data.style === "ordered" ? (o(), s("ol", { key: 1, class: "cdx-list cdx-list-ordered", style: M(`--list-counter-type: ${e.value.data.meta.counterType};`) }, [(o(!0), s(g, null, w(e.value.data.items, (r, t) => (o(), s("li", { class: "cdx-list__item", key: t }, [i("div", { class: "cdx-list__item-content", innerHTML: r.content }, null, 8, Ue)]))), 128))], 4)) : y("", !0), e.value.data.style === "checklist" ? (o(), s("ul", Ze, [(o(!0), s(g, null, w(e.value.data.items, (r, t) => (o(), s("li", { class: "cdx-list__item", key: t }, [i("div", { class: H(["cdx-list__checkbox cdx-list__checkbox-check--disabled", { "cdx-list__checkbox--checked": r.meta.checked }]) }, [...c[0] || (c[0] = [i("span", { class: "cdx-list__checkbox-check" }, [i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24" }, [i("path", { stroke: "currentColor", "stroke-linecap": "round", "stroke-width": "2", d: "M7 12L10.4884 15.8372C10.5677 15.9245 10.705 15.9245 10.7844 15.8372L17 9" })])], -1)])], 2), i("div", { class: "cdx-list__item-content", innerHTML: r.content }, null, 8, Je)]))), 128))])) : y("", !0)], 64));
135
+ } }), Xe = { class: "cdx-block cdx-quote" }, et = ["innerHTML"], tt = v({ name: "eblquote", inheritAttrs: !1, __name: "quote", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
136
+ const e = m(a, "block");
137
+ return (l, c) => (o(), s("div", Xe, [i("blockquote", { class: "cdx-input cdx-quote__text cdx-block-quote", innerHTML: e.value.data.text }, null, 8, et)]));
138
+ } }), lt = { class: "tc-row" }, at = ["innerHTML"], ot = q(v({ name: "ebltable", inheritAttrs: !1, __name: "table", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
139
+ const e = m(a, "block"), l = C(() => {
140
140
  let c = "";
141
141
  if (e.value.data.colWidth && e.value.data.colWidth.length > 0) for (let r = 0; r < e.value.data.colWidth.length; r++) c += " " + e.value.data.colWidth[r] + "px";
142
142
  return c ? { "--col-width": c } : {};
143
143
  });
144
- return (c, r) => (o(), s("div", { class: "tc-wrap tc-wrap--readonly", style: M(l.value) }, [i("div", { class: H(["tc-table", { "tc-table--heading": e.value.data.withHeadings }]) }, [(o(!0), s(g, null, w(e.value.data.content, (t) => (o(), s("div", at, [(o(!0), s(g, null, w(t, (b) => (o(), s("div", { class: "tc-cell", innerHTML: b }, null, 8, ot))), 256))]))), 256))], 2)], 4));
145
- } }), [["__scopeId", "data-v-0627102b"]]), nt = { class: "image-tool__image" }, it = ["src"], ct = q(m({ name: "eblimage", inheritAttrs: !1, __name: "image", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
146
- const e = k(a, "block"), l = C(() => e.value.tunes.imageResize.resizeSize && e.value.tunes.imageResize.resizeSize > 0 ? e.value.tunes.imageResize.resizeSize || 300 : {});
147
- return (c, r) => (o(), s("div", { class: "cdx-block image-tool image-tool--filled", style: M(l.value) }, [i("div", nt, [i("img", { class: "image-tool__image-picture", src: e.value.data.file.url }, null, 8, it)]), r[0] || (r[0] = i("div", { class: "cdx-input image-tool__caption", contenteditable: "true", "data-placeholder": "Caption", "data-empty": "true" }, null, -1))], 4));
148
- } }), [["__scopeId", "data-v-ff96876e"]]), rt = ["onClick"], dt = m({ name: "ebloutline", inheritAttrs: !1, __name: "outline", props: { blocks: { default: [] }, blocksModifiers: {} }, emits: ["update:blocks"], setup(a) {
149
- const e = k(a, "blocks"), l = T([]);
144
+ return (c, r) => (o(), s("div", { class: "tc-wrap tc-wrap--readonly", style: M(l.value) }, [i("div", { class: H(["tc-table", { "tc-table--heading": e.value.data.withHeadings }]) }, [(o(!0), s(g, null, w(e.value.data.content, (t) => (o(), s("div", lt, [(o(!0), s(g, null, w(t, (b) => (o(), s("div", { class: "tc-cell", innerHTML: b }, null, 8, at))), 256))]))), 256))], 2)], 4));
145
+ } }), [["__scopeId", "data-v-0627102b"]]), st = { class: "image-tool__image" }, nt = ["src"], it = q(v({ name: "eblimage", inheritAttrs: !1, __name: "image", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
146
+ const e = m(a, "block"), l = C(() => e.value.tunes.imageResize.resizeSize && e.value.tunes.imageResize.resizeSize > 0 ? e.value.tunes.imageResize.resizeSize || 300 : {});
147
+ return (c, r) => (o(), s("div", { class: "cdx-block image-tool image-tool--filled", style: M(l.value) }, [i("div", st, [i("img", { class: "image-tool__image-picture", src: e.value.data.file.url }, null, 8, nt)]), r[0] || (r[0] = i("div", { class: "cdx-input image-tool__caption", contenteditable: "true", "data-placeholder": "Caption", "data-empty": "true" }, null, -1))], 4));
148
+ } }), [["__scopeId", "data-v-ff96876e"]]), ct = ["onClick"], rt = v({ name: "ebloutline", inheritAttrs: !1, __name: "outline", props: { blocks: { default: [] }, blocksModifiers: {} }, emits: ["update:blocks"], setup(a) {
149
+ const e = m(a, "blocks"), l = T([]);
150
150
  function c(t) {
151
151
  return t.data.text.replace(/<[^>]+>/g, "").replace(/&nbsp;/g, "");
152
152
  }
@@ -154,17 +154,17 @@ const Re = () => {
154
154
  let b = `level_${t.level}`;
155
155
  return t.selected && (b += " selected"), b;
156
156
  }
157
- return l.value = e.value.filter((t) => t.type == "h1" || t.type == "h2" || t.type == "h3").map((t) => ({ id: t.id, level: t.data.level, text: c(t), selected: !1 })), l.value && l.value.length > 0 && (l.value[0].selected = !0), le(() => e, (t, b) => {
157
+ return l.value = e.value.filter((t) => t.type == "h1" || t.type == "h2" || t.type == "h3").map((t) => ({ id: t.id, level: t.data.level, text: c(t), selected: !1 })), l.value && l.value.length > 0 && (l.value[0].selected = !0), te(() => e, (t, b) => {
158
158
  t && (l.value = t.value.filter((d) => d.type == "h1" || d.type == "h2" || d.type == "h3").map((d) => ({ id: d.id, level: d.data.level, text: c(d), selected: !1 })));
159
- }, { deep: !0 }), ae(() => {
160
- oe(() => {
159
+ }, { deep: !0 }), le(() => {
160
+ ae(() => {
161
161
  (function() {
162
162
  const t = document.querySelectorAll('.ebl-er-doc .ce-block[data-type="h1"],.ebl-er-doc .ce-block[data-type="h2"],.ebl-er-doc .ce-block[data-type="h3"]'), b = new IntersectionObserver((d) => {
163
- d.forEach((y) => {
164
- if (y.isIntersecting) {
165
- const h = y.target;
163
+ d.forEach((k) => {
164
+ if (k.isIntersecting) {
165
+ const f = k.target;
166
166
  l.value.forEach((n) => n.selected = !1);
167
- const p = l.value.find((n) => n.id == h.dataset.id);
167
+ const p = l.value.find((n) => n.id == f.dataset.id);
168
168
  p && (p.selected = !0);
169
169
  }
170
170
  });
@@ -174,26 +174,26 @@ const Re = () => {
174
174
  });
175
175
  })();
176
176
  });
177
- }), se(() => {
178
- }), (t, b) => (o(!0), s(g, null, w(l.value, (d) => (o(), s("div", { key: d.id, class: H(["ebl-er-doc-outline-item", r(d)]), onClick: (y) => function(h) {
179
- l.value.forEach((v) => v.selected = !1), h.selected = !0;
180
- const p = document.querySelector('.ebl-er-doc .ce-block[data-id="' + h.id + '"]'), n = document.querySelector(".ebl-er-header"), u = (n == null ? void 0 : n.offsetHeight) || 0;
177
+ }), oe(() => {
178
+ }), (t, b) => (o(!0), s(g, null, w(l.value, (d) => (o(), s("div", { key: d.id, class: H(["ebl-er-doc-outline-item", r(d)]), onClick: (k) => function(f) {
179
+ l.value.forEach((h) => h.selected = !1), f.selected = !0;
180
+ const p = document.querySelector('.ebl-er-doc .ce-block[data-id="' + f.id + '"]'), n = document.querySelector(".ebl-er-header"), u = (n == null ? void 0 : n.offsetHeight) || 0;
181
181
  if (p) {
182
- const v = p.offsetTop;
183
- window.scrollTo({ top: v - u, behavior: "smooth" });
182
+ const h = p.offsetTop;
183
+ window.scrollTo({ top: h - u, behavior: "smooth" });
184
184
  }
185
- }(d) }, [i("span", null, Y(d.text), 1)], 10, rt))), 128));
186
- } }), F = [ye, ge, Me, He, Ce, Ee, ze, je, qe, Ye, Ke, Xe, lt, st, ct, dt];
187
- let G = [];
188
- for (let a in F) {
189
- const e = ie(F[a]);
190
- G.push(e);
185
+ }(d) }, [i("span", null, O(d.text), 1)], 10, ct))), 128));
186
+ } }), N = [_e, xe, we, Le, Te, Ae, Se, $e, Be, Fe, Ge, Qe, tt, ot, it, rt];
187
+ let F = [];
188
+ for (let a in N) {
189
+ const e = ne(N[a]);
190
+ F.push(e);
191
191
  }
192
- const K = /* @__PURE__ */ ((a = []) => ({ version: "2.31.62", install: (e) => {
193
- e[N] || (e[N] = !0, a.forEach((l) => e.use(l)));
194
- } }))(G), ht = K.install, vt = K.version;
192
+ const Y = /* @__PURE__ */ ((a = []) => ({ version: "2.31.64", install: (e) => {
193
+ e[D] || (e[D] = !0, a.forEach((l) => e.use(l)));
194
+ } }))(F), pt = Y.install, ht = Y.version;
195
195
  export {
196
- K as default,
197
- ht as install,
198
- vt as version
196
+ Y as default,
197
+ pt as install,
198
+ ht as version
199
199
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebl-vue/editor-render",
3
- "version": "2.31.63",
3
+ "version": "2.31.65",
4
4
  "type": "module",
5
5
  "author": "lrj525@sina.com",
6
6
  "description": "用于渲染editor-full编辑器内容",
@@ -51,5 +51,5 @@
51
51
  "vite-plugin-css-injected-by-js": "^3.5.2",
52
52
  "vite-plugin-static-copy": "^3.1.4"
53
53
  },
54
- "gitHead": "58755beff1516d27e657e873390b55a35b776d41"
54
+ "gitHead": "8b2ff6fc909fd26f809e897528db1e4f58cb5ded"
55
55
  }