@bigbinary/neeto-editor 1.39.2 → 1.39.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Editor.js +87 -76
- package/dist/Editor.js.map +1 -1
- package/dist/cjs/Editor.cjs.js +263 -252
- package/dist/cjs/Editor.cjs.js.map +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/editor-output-pdf-email.css +1 -1
- package/dist/editor-stats.html +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/dist/cjs/Editor.cjs.js
CHANGED
|
@@ -5,7 +5,7 @@ var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
|
5
5
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
6
6
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
7
7
|
var React = require('react');
|
|
8
|
-
var Menu$
|
|
8
|
+
var Menu$3 = require('./chunk-bdbd1ab4.cjs.js');
|
|
9
9
|
var classnames = require('classnames');
|
|
10
10
|
var constants = require('./chunk-d5fbc51f.cjs.js');
|
|
11
11
|
var neetoCist = require('@bigbinary/neeto-cist');
|
|
@@ -125,7 +125,7 @@ var useEditorWarnings = function useEditorWarnings(_ref) {
|
|
|
125
125
|
}, [initialValue]);
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
var css = "@charset \"UTF-8\";@import url(\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/styles/github.min.css\");.neeto-editor-slash-commands__wrapper{align-items:flex-start;display:flex;flex-direction:column;gap:4px;justify-content:flex-start;max-height:384px;max-width:100%;overflow-y:auto;padding:12px;width:256px}.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item{align-items:center;border-radius:var(--neeto-ui-rounded);color:rgb(var(--neeto-ui-white));cursor:pointer;display:flex;flex-direction:row;gap:12px;justify-content:flex-start;padding:8px 12px;transition:var(--neeto-ui-transition);width:100%}.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item.active,.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item:hover{background-color:rgb(var(--neeto-ui-gray-700))}.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content h5{font-size:var(--neeto-ui-text-sm);font-weight:var(--neeto-ui-font-semibold);line-height:var(--neeto-ui-leading-normal)}.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content p{color:rgb(var(--neeto-ui-gray-300));font-size:var(--neeto-ui-text-xs)}.tippy-box[data-theme~=neeto-editor-mentions-tooltip]{border:1px solid rgb(var(--neeto-ui-gray-400))}.tippy-box[data-theme~=neeto-editor-mentions-tooltip] .tippy-content{max-height:none;padding:0}.tippy-box[data-theme~=neeto-editor-mentions-tooltip] .tippy-content button.active{background-color:var(--neeto-ui-dropdown-item-focus-bg-color)}.ProseMirror.slash-active p.is-empty:last-child:before{content:url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik0zLjgyMSAxNWgxLjIzVjYuMjQzaDMuMThWNS4xMzZILjY0MnYxLjEwN0gzLjgyVjE1Wm01LjkgMi41ODRjMS4zMDUgMCAxLjkxNC0uNDc5IDIuNTIyLTIuMTMzbDIuODc4LTcuODJoLTEuMjVsLTIuMDE4IDYuMDYzaC0uMTA5TDkuNzIxIDcuNjMxSDguNDQ5bDIuNzI4IDcuMzc2LS4xMzcuNDM3Yy0uMjY3Ljg0OC0uNjc3IDEuMTU2LTEuMzUzIDEuMTU2LS4xNjUgMC0uMzUtLjAwNy0uNDkzLS4wMzV2Ljk3OGMuMTY0LjAyNy4zNy4wNDEuNTI3LjA0MVptNi45NzItLjEyM2gxLjE5di0zLjYyM2guMTFjLjQwMi43ODYgMS4yODQgMS4yOTIgMi4yOTY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LTMuODA4LTEuMDI2IDAtMS44NDYuNDg1LTIuMjk3IDEuMzA2aC0uMTFWNy42M2gtMS4xODl2OS44M1ptMy4zMjItMy4zODRjLTEuMzQgMC0yLjE2LTEuMDUzLTIuMTYtMi43NTV2LS4wMTNjMC0xLjcwMy44Mi0yLjc1NSAyLjE2LTIuNzU1IDEuMzQ3IDAgMi4xNDcgMS4wMzkgMi4xNDcgMi43NTV2LjAxM2MwIDEuNzE2LS44IDIuNzU1LTIuMTQ3IDIuNzU1Wm04LjIzMSAxLjA1M2MxLjczNiAwIDIuNzg5LS45ODUgMy4wNDItMS45ODJsLjAxMy0uMDU1aC0xLjE4OWwtLjAyNy4wNjFjLS4xOTkuNDQ1LS44MTQuOTE2LTEuODEyLjkxNi0xLjMxMiAwLTIuMTUzLS44ODgtMi4xODctMi40MTNoNS4zMDR2LS40NjVjMC0yLjItMS4yMTctMy42OTEtMy4yMi0zLjY5MS0yLjAwMiAwLTMuMzAxIDEuNTU5LTMuMzAxIDMuODM1di4wMDdjMCAyLjMxIDEuMjcxIDMuNzg3IDMuMzc3IDMuNzg3Wm0tLjA4Mi02LjU3YzEuMDg3IDAgMS44OTMuNjkxIDIuMDE2IDIuMTQ3aC00LjA3NGMuMTMtMS40MDEuOTY0LTIuMTQ2IDIuMDU4LTIuMTQ2WiIgZmlsbD0iIzg3OTI5RCIvPjwvc3ZnPg==\");height:0;pointer-events:none;position:absolute;top:-2px;z-index:-1}.neeto-editor,.neeto-editor-content{-moz-tab-size:2;-o-tab-size:2;tab-size:2;white-space:pre-wrap;word-break:break-word}.neeto-editor h1,.neeto-editor h2,.neeto-editor h3,.neeto-editor h4,.neeto-editor h5,.neeto-editor h6,.neeto-editor-content h1,.neeto-editor-content h2,.neeto-editor-content h3,.neeto-editor-content h4,.neeto-editor-content h5,.neeto-editor-content h6{color:rgb(var(--neeto-ui-black));font-weight:var(--neeto-ui-font-semibold)}.neeto-editor h1 strong,.neeto-editor h2 strong,.neeto-editor h3 strong,.neeto-editor h4 strong,.neeto-editor h5 strong,.neeto-editor h6 strong,.neeto-editor-content h1 strong,.neeto-editor-content h2 strong,.neeto-editor-content h3 strong,.neeto-editor-content h4 strong,.neeto-editor-content h5 strong,.neeto-editor-content h6 strong{font-weight:var(--neeto-ui-font-semibold)!important}.neeto-editor h1,.neeto-editor-content h1{font-size:var(--neeto-ui-text-h1);margin:2rem 0 .25rem}.neeto-editor h2,.neeto-editor-content h2{font-size:var(--neeto-ui-text-h2);margin:1.5rem 0 .25rem}.neeto-editor h3,.neeto-editor-content h3{font-size:var(--neeto-ui-text-h3);margin:1rem 0 .25rem}.neeto-editor h4,.neeto-editor-content h4{font-size:var(--neeto-ui-text-h4);margin:.75rem 0 .25rem}.neeto-editor h5,.neeto-editor-content h5{font-size:var(--neeto-ui-text-h5);margin:.75rem 0 .25rem}.neeto-editor h6,.neeto-editor-content h6{font-size:var(--neeto-ui-text-h6);margin:.75rem 0 .25rem}@media only screen and (max-width:720px){.neeto-editor h1,.neeto-editor-content h1{font-size:22px}.neeto-editor h2,.neeto-editor-content h2{font-size:20px}.neeto-editor h3,.neeto-editor-content h3{font-size:18px}.neeto-editor h4,.neeto-editor-content h4{font-size:16px}.neeto-editor h5,.neeto-editor-content h5{font-size:14px}.neeto-editor h6,.neeto-editor-content h6{font-size:12px}}.neeto-editor p,.neeto-editor-content p{color:rgb(var(--neeto-ui-black));font-size:var(--neeto-ui-text-body1);font-weight:var(--neeto-ui-font-normal);line-height:var(--neeto-ui-leading-normal)}.neeto-editor p:empty:after,.neeto-editor-content p:empty:after{content:\" \"}.neeto-editor p:last-child,.neeto-editor-content p:last-child{margin-bottom:0}.neeto-editor p strong,.neeto-editor-content p strong{font-weight:var(--neeto-ui-font-semibold)!important}.neeto-editor div,.neeto-editor-content div{color:rgb(var(--neeto-ui-black));font-size:var(--neeto-ui-text-body1);font-weight:var(--neeto-ui-font-normal);line-height:var(--neeto-ui-leading-normal)}.neeto-editor code,.neeto-editor-content code{background-color:rgb(var(--neeto-ui-gray-100));border-radius:var(--neeto-ui-rounded-sm);font-family:SFMono-Regular,Menlo,Consolas,PT Mono,Liberation Mono,Courier,monospace;font-size:14px;padding:.2em .4em}.neeto-editor h1 code,.neeto-editor h2 code,.neeto-editor h3 code,.neeto-editor h4 code,.neeto-editor h5 code,.neeto-editor h6 code,.neeto-editor p code,.neeto-editor-content h1 code,.neeto-editor-content h2 code,.neeto-editor-content h3 code,.neeto-editor-content h4 code,.neeto-editor-content h5 code,.neeto-editor-content h6 code,.neeto-editor-content p code{font-size:inherit}.neeto-editor pre,.neeto-editor-content pre{background-color:#f7f6f3;border-radius:var(--neeto-ui-rounded-sm);font-size:14px;line-height:1.5;margin-bottom:16px;margin-top:16px;overflow-x:auto;padding:32px 12px 12px;position:relative}.neeto-editor pre .neeto-editor-codeblock-options,.neeto-editor-content pre .neeto-editor-codeblock-options{align-items:center;display:flex;gap:4px;position:absolute;right:4px;top:4px}.neeto-editor pre .neeto-editor-codeblock-options__menu,.neeto-editor-content pre .neeto-editor-codeblock-options__menu{display:flex;flex-direction:column;gap:4px}.neeto-editor pre .neeto-editor-codeblock-options__input,.neeto-editor-content pre .neeto-editor-codeblock-options__input{margin:4px}.neeto-editor pre>code,.neeto-editor-content pre>code{background-color:transparent;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;font-weight:400;line-height:inherit;padding:0;white-space:pre-wrap}.neeto-editor blockquote,.neeto-editor-content blockquote{border-left-color:#e5e7eb;border-left-width:4px;color:rgb(var(--neeto-ui-black));font-weight:var(--neeto-ui-font-medium);margin:8px 0;padding-left:12px;quotes:\"“\" \"”\" \"‘\" \"’\"}.neeto-editor blockquote>p:after,.neeto-editor blockquote>p:before,.neeto-editor-content blockquote>p:after,.neeto-editor-content blockquote>p:before{content:\"\"!important}.neeto-editor ol,.neeto-editor ul,.neeto-editor-content ol,.neeto-editor-content ul{list-style:revert;margin-bottom:1em;padding-left:28px}.neeto-editor ol li:before,.neeto-editor ul li:before,.neeto-editor-content ol li:before,.neeto-editor-content ul li:before{background-color:rgb(var(--neeto-ui-black))}.neeto-editor a[href],.neeto-editor-content a[href]{color:rgb(var(--neeto-ui-accent-800));font-weight:500}.neeto-editor .neeto-editor__video-wrapper,.neeto-editor-content .neeto-editor__video-wrapper{display:flex;margin:16px 0}.neeto-editor .neeto-editor__video-wrapper .neeto-editor__video-iframe,.neeto-editor-content .neeto-editor__video-wrapper .neeto-editor__video-iframe{border:2px solid rgb(var(--neeto-ui-gray-300));border-radius:var(--neeto-ui-rounded-lg);display:inline-block;padding:4px}.neeto-editor .neeto-editor__video-wrapper .neeto-editor__video-iframe iframe,.neeto-editor-content .neeto-editor__video-wrapper .neeto-editor__video-iframe iframe{height:100%;width:100%}.neeto-editor .neeto-editor__video--left,.neeto-editor-content .neeto-editor__video--left{justify-content:flex-start}.neeto-editor .neeto-editor__video--right,.neeto-editor-content .neeto-editor__video--right{justify-content:flex-end}.neeto-editor .neeto-editor__video--center,.neeto-editor-content .neeto-editor__video--center{justify-content:center}.neeto-editor mark,.neeto-editor-content mark{border-radius:var(--neeto-ui-rounded-sm);padding:0}.neeto-editor [data-type=mention],.neeto-editor [data-type=special-mention],.neeto-editor-content [data-type=mention],.neeto-editor-content [data-type=special-mention]{color:rgb(var(--neeto-ui-accent-800))}.neeto-editor table,.neeto-editor-content table{border:1px solid rgba(var(--neeto-ui-gray-300));border-collapse:separate;border-radius:var(--neeto-ui-rounded-sm);border-spacing:0;min-width:300px;overflow:hidden;table-layout:fixed}.neeto-editor table td,.neeto-editor table th,.neeto-editor-content table td,.neeto-editor-content table th{border-left:1px solid rgba(var(--neeto-ui-gray-300));border-top:1px solid rgba(var(--neeto-ui-gray-300));padding:8px 12px;position:relative}.neeto-editor table td:first-child,.neeto-editor table th:first-child,.neeto-editor-content table td:first-child,.neeto-editor-content table th:first-child{border-left:none}.neeto-editor table th,.neeto-editor-content table th{background:rgb(var(--neeto-ui-gray-100));border-top:none}.neeto-editor table td,.neeto-editor-content table td{background:rgb(var(--neeto-ui-white))}.neeto-editor-content--hidden{display:none}.neeto-editor__image-wrapper{color:inherit!important;display:flex;font-weight:400!important;margin:16px 0;text-decoration:none}.neeto-editor__image-wrapper figure{display:inline-block;max-width:100%;overflow:hidden;position:relative}.neeto-editor__image-wrapper .neeto-editor__image{display:inline-block}.neeto-editor__image-wrapper .neeto-editor__image img,.neeto-editor__image-wrapper .neeto-editor__image video{border:2px solid rgb(var(--neeto-ui-gray-300));border-radius:var(--neeto-ui-rounded-lg);display:inline-block;height:auto;min-height:52px;padding:4px;width:100%}.neeto-editor__image-wrapper .neeto-editor__image img{cursor:zoom-in}.neeto-editor__image-wrapper .neeto-editor__image-placeholder{align-items:center;border:1px solid;border-radius:8px;display:flex;height:200px;justify-content:center;width:400px}.neeto-editor__image-wrapper figcaption div{color:rgb(var(--neeto-ui-gray-600));font-size:14px;font-weight:var(--neeto-ui-font-normal);line-height:1.4;text-align:center}.neeto-editor__image-wrapper figcaption div a{display:inline-block;margin:0;text-align:center}.neeto-editor__image-wrapper figcaption.is-empty div:before{color:rgb(var(--neeto-ui-gray-500));content:\"Add a caption\";inset:0;position:absolute}.neeto-editor figcaption,.neeto-editor-content figcaption{color:#6b7280;font-size:14px;font-weight:400;line-height:1.4;text-align:center}.neeto-editor__image--left{justify-content:flex-start}.neeto-editor__image--center{justify-content:center}.neeto-editor__image--right{justify-content:flex-end}.selected-text{background-color:rgb(var(--neeto-ui-gray-300));padding:2px 0}.neeto-editor{background-color:rgb(var(--neeto-ui-white));border-radius:var(--neeto-ui-rounded);color:rgb(var(--neeto-ui-black));max-width:100%!important;padding:16px;white-space:pre-wrap}.neeto-editor:focus{outline:none}.neeto-editor a{pointer-events:none}.neeto-editor [data-variable]{color:rgb(var(--neeto-ui-gray-600));padding:4px 6px}.neeto-editor .ProseMirror-separator{display:none}.neeto-editor.fixed-menu-active{border:thin solid rgb(var(--neeto-ui-gray-300));border-top:none;border-top-left-radius:0;border-top-right-radius:0}.neeto-editor.attachments-active{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.neeto-editor .is-empty{position:relative}.neeto-editor.placeholder-active .is-editor-empty:first-child:before{color:#ced4da;content:attr(data-placeholder);float:left;height:0;pointer-events:none}.neeto-editor hr{margin:8px 0}.neeto-editor .ProseMirror-selectednode{outline:3px solid rgb(var(--neeto-ui-pastel-blue))}.neeto-editor .has-focus{background:var(--focus-background-color);transition:background-color .2s ease}.neeto-editor [data-variable]{background-color:rgb(var(--neeto-ui-gray-200));border-radius:var(--neeto-ui-rounded-sm);color:rgb(var(--neeto-ui-gray-800));display:inline-flex;line-height:1;padding:4px}.neeto-editor-character-count{color:rgb(var(--neeto-ui-gray-600));font-size:12px;padding:4px;text-align:right}.neeto-editor-error{border-color:rgb(var(--neeto-ui-error-500));border-radius:var(--neeto-ui-rounded);border-width:1px;color:rgb(var(--neeto-ui-error-500))}.neeto-editor-error:focus-within{border-color:rgb(var(--neeto-ui-error-600))}.ne_variable-tag{border-radius:6px!important}.neeto-editor-mentions__wrapper{padding:4px 0}.neeto-editor-mentions__item{padding:8px 12px}@media screen and (max-width:767px){.ne-media-uploader-modal{width:95vw!important}}.ne-media-uploader{display:flex;flex-direction:column;min-height:184px;width:100%}.ne-media-uploader .neeto-ui-tab__wrapper{padding:0 16px}.ne-media-uploader .ne-tab__wrapper .ne-tab{min-width:88px}.ne-media-uploader .ne-media-uploader__content{display:flex;flex-grow:1;padding:16px}.ne-media-uploader .ne-media-uploader__dnd{align-items:center;border:1px dashed rgb(var(--neeto-ui-primary-600));border-radius:var(--neeto-ui-rounded);box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;gap:2px;justify-content:center;padding:16px;width:100%}.ne-media-uploader .ne-media-uploader__dnd:focus{outline:none}.ne-media-uploader .ne-media-uploader__dnd-icon{color:rgb(var(--neeto-ui-primary-600));margin-bottom:6px}.ne-media-uploader .ne-media-uploader__dnd-input{display:none}.ne-media-uploader .ne-media-uploader__dnd:hover{background-color:rgb(var(--neeto-ui-gray-100));cursor:pointer}.ne-media-uploader .ne-media-uploader__dnd.is-dragging-over-files{background-color:rgba(var(--neeto-ui-gray-300),.5);border:3px dashed rgb(var(--neeto-ui-gray-500));color:rgb(var(--neeto-ui-gray-600))}.ne-media-uploader .ne-media-uploader__wrapper{display:flex;flex-wrap:wrap;gap:8px;width:100%}.ne-media-uploader .ne-media-uploader__wrapper .ne-media-uploader__media{align-self:start;background-color:rgb(var(--neeto-ui-white));border:1px solid rgb(var(--neeto-ui-gray-200));border-radius:var(--neeto-ui-rounded-sm);display:flex;flex-direction:column;gap:10px;justify-content:space-between;margin-bottom:auto;margin-top:auto;padding:4px 8px;position:relative;width:105px}.ne-media-uploader .ne-media-uploader__wrapper .ne-media-uploader__media__cancel-button-wrapper{position:absolute;right:4px;top:4px}.ne-media-uploader .ne-media-uploader__wrapper .ne-media-uploader__media__info{align-items:flex-start;display:flex;flex-direction:column;gap:4px;justify-content:space-between;margin-top:4px}.ne-media-uploader .ne-media-uploader__wrapper .ne-media-uploader__media__info__icon{margin-top:12px;width:45px}.ne-media-uploader .ne-media-uploader__wrapper .ne-media-uploader__media__info p{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ne-media-uploader .ne-media-uploader__wrapper .ne-media-uploader__media__progress{align-self:flex-end;background-color:rgb(var(--neeto-ui-gray-200));border-radius:var(--neeto-ui-rounded-sm);overflow:hidden;width:100%}.ne-media-uploader .ne-media-uploader__wrapper .ne-media-uploader__media__progress-bar{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;background-color:rgb(var(--neeto-ui-primary-600));border-radius:var(--neeto-ui-rounded-sm);display:flex;height:4px;transition:var(--neeto-ui-transition)}.ne-media-uploader .neeto-editor-unsplash-wrapper{width:100%}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-container{max-height:50vh;overflow-x:hidden;overflow-y:auto}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-search{margin-bottom:16px;padding:0 8px}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery{right:-8px;width:100%}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__loader{display:flex;justify-content:center}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item{float:left;padding-bottom:16px;padding-right:16px;width:33.3%}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder{position:relative;width:100%}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner{background-color:rgb(var(--neeto-ui-gray-100));border-radius:var(--neeto-ui-rounded-sm);height:100%;position:absolute;width:100%}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner img{animation:fade-in 1.2s cubic-bezier(.39,.575,.565,1) 1s both;border-radius:var(--neeto-ui-rounded);cursor:pointer;height:100%;-o-object-fit:cover;object-fit:cover;position:relative;width:100%}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a{bottom:8px;color:rgb(var(--neeto-ui-white));font-size:12px;font-weight:var(--neeto-ui-font-normal);left:8px;line-height:1;margin:auto;opacity:0;position:absolute;text-transform:capitalize;transition:var(--neeto-ui-transition)}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a:hover{text-decoration:underline}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner:hover a{opacity:1}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__text{color:rgb(var(--neeto-ui-gray-700));font-size:var(--neeto-ui-text-xs);margin-top:12px;text-align:center}.neeto-editor-url-form__wrapper{align-items:center;display:flex;flex-direction:column;flex-grow:1;justify-content:center;padding:0 24px}.neeto-editor-url-form__wrapper .neeto-ui-input__wrapper{flex-grow:0;margin-bottom:16px;width:100%}@media screen and (max-width:767px){.ne-embed-modal-wrapper{width:95vw!important}}.image-preview-wrapper{align-items:center;background:rgba(var(--neeto-ui-gray-800),.5);display:flex;height:100%;justify-content:center;left:0;position:fixed;top:0;width:100%;z-index:999999}.image-preview-wrapper .close-button{position:absolute;right:5px;top:5px}.image-preview-wrapper .image-preview{max-height:70%;max-width:70%}.image-preview-wrapper .spinner i{background-color:rgb(var(--neeto-ui-gray-300))}.image-preview-neeto-ui-modal{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background-color:transparent!important}.image-preview-neeto-ui-modal__close-btn{border-radius:100%;float:right;margin:10px 0}.image-preview-neeto-ui-modal img{border:10px solid rgb(var(--neeto-ui-gray-100));border-radius:10px;height:auto;max-height:90vh;opacity:1;transition:opacity 2s ease-in-out;width:100%}.image-preview-neeto-ui-modal .display-none{display:none}.image-preview-neeto-ui-modal .spinner-wrapper{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center}.image-preview-neeto-ui-modal .spinner-wrapper .spinner{--neeto-ui-spinner-size:32px}.neeto-editor-emoji{font-family:Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Noto Color Emoji,Segoe UI Symbol,Android Emoji,EmojiSymbols}.emoji-mart.emoji-mart-light{border:none;color:rgb(var(--neeto-ui-gray-800));font-size:14px}.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor{color:rgb(var(--neeto-ui-gray-500))}.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor svg{margin:auto}.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor .emoji-mart-anchor-bar{background-color:rgb(var(--neeto-ui-gray-700))!important}.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor.emoji-mart-anchor-selected{color:rgb(var(--neeto-ui-gray-700))!important}.emoji-mart.emoji-mart-light .emoji-mart-search input{border-radius:var(--neeto-ui-rounded-sm)}.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-category-label span{padding-top:8px}.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji span{cursor:pointer}.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji:hover:before{background-color:rgb(var(--neeto-ui-gray-200));border-radius:var(--neeto-ui-rounded-sm)}.emoji-mart.emoji-mart-light .emoji-mart-scroll{height:264px;padding-bottom:0}.neeto-editor-emoji-suggestion{align-items:center;display:flex;flex-direction:row;font-family:Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Noto Color Emoji,Segoe UI Symbol,Android Emoji,EmojiSymbols;gap:2px;justify-content:flex-start;padding:4px}.neeto-editor-emoji-suggestion p{color:rgb(var(--neeto-ui-black));font-size:var(--neeto-ui-text-xs)}.neeto-editor-emoji-suggestion span{font-size:10px;height:16px!important;width:16px!important}.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item{border-radius:var(--neeto-ui-rounded-sm);cursor:pointer;font-size:var(--neeto-ui-text-2xl);line-height:1;padding:6px;transition:var(--neeto-ui-transition)}.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item--selected,.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item:hover{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-editor-table{display:relative;margin:8px 0 0;width:-moz-fit-content;width:fit-content}.neeto-editor-table table td p,.neeto-editor-table table th p{margin:0}.neeto-editor-table table .column-resize-handle{background-color:rgb(var(--neeto-ui-gray-300));bottom:0;position:absolute;right:-2px;top:0;width:4px}.neeto-editor-table table .selectedCell:after{background:rgba(var(--neeto-ui-primary-500),.1);content:\"\";inset:0;position:absolute}.neeto-editor-table__wrapper{display:flex;gap:4px}.neeto-editor-table__add-column,.neeto-editor-table__add-row{align-items:center;background:rgba(var(--neeto-ui-gray-200));border-radius:var(--neeto-ui-rounded-sm);cursor:pointer;display:flex;justify-content:center;transition:var(--neeto-ui-transition);visibility:hidden}.neeto-editor-table__add-column p,.neeto-editor-table__add-row p{color:rgb(var(--neeto-ui-black));font-size:var(--neeto-ui-text-xs);line-height:12px}.neeto-editor-table__add-column:hover,.neeto-editor-table__add-row:hover{background:rgba(var(--neeto-ui-gray-300))}.neeto-editor-table:hover .neeto-editor-table__add-column,.neeto-editor-table:hover .neeto-editor-table__add-row{visibility:visible}.neeto-editor-table__add-row{height:16px;margin:4px 20px 4px 0}.neeto-editor-table__add-column{flex-direction:column;width:16px}.ProseMirror.resize-cursor{cursor:col-resize}.ne-link-popover{background-color:#fff;border:1px solid var(--neeto-ui-popover-light-theme-border-color);border-radius:5px;box-shadow:var(--neeto-ui-tooltip-light-theme-box-shadow);color:#333;padding:10px 16px;position:fixed;transition:opacity .3s ease,transform .3s ease,visibility 0s .3s;z-index:99999}.ne-link-popover__url-input{margin:8px 0}.ne-link-popover__checkbox{margin:16px 0}.ne-link-popover__option-button{margin:0 4px}.ne-link-popover__edit-prompt-buttons{display:flex;gap:8px;margin-top:8px}.ne-link-popover a{color:rgb(var(--neeto-ui-gray-800));float:left;font-size:var(--neeto-ui-text-sm);font-weight:var(--neeto-ui-font-medium);margin-right:8px;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ne-link-arrow{border:6px solid transparent;border-top-color:rgba(0,0,0,.2);content:\"\";left:0;position:fixed;top:0;z-index:99999}.ProseMirror{height:100%;overflow-y:auto;white-space:break-spaces}.ProseMirror:focus{outline:none}";
|
|
128
|
+
var css = "@charset \"UTF-8\";@import url(\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/styles/github.min.css\");.neeto-editor-slash-commands__wrapper{align-items:flex-start;display:flex;flex-direction:column;gap:4px;justify-content:flex-start;max-height:384px;max-width:100%;overflow-y:auto;padding:12px;width:256px}.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item{align-items:center;border-radius:var(--neeto-ui-rounded);color:rgb(var(--neeto-ui-white));cursor:pointer;display:flex;flex-direction:row;gap:12px;justify-content:flex-start;padding:8px 12px;transition:var(--neeto-ui-transition);width:100%}.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item.active,.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item:hover{background-color:rgb(var(--neeto-ui-gray-700))}.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content h5{font-size:var(--neeto-ui-text-sm);font-weight:var(--neeto-ui-font-semibold);line-height:var(--neeto-ui-leading-normal)}.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content p{color:rgb(var(--neeto-ui-gray-300));font-size:var(--neeto-ui-text-xs)}.tippy-box[data-theme~=neeto-editor-mentions-tooltip]{border:1px solid rgb(var(--neeto-ui-gray-400))}.tippy-box[data-theme~=neeto-editor-mentions-tooltip] .tippy-content{max-height:none;padding:0}.tippy-box[data-theme~=neeto-editor-mentions-tooltip] .tippy-content button.active{background-color:var(--neeto-ui-dropdown-item-focus-bg-color)}.ProseMirror.slash-active p.is-empty:last-child:before{content:url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik0zLjgyMSAxNWgxLjIzVjYuMjQzaDMuMThWNS4xMzZILjY0MnYxLjEwN0gzLjgyVjE1Wm01LjkgMi41ODRjMS4zMDUgMCAxLjkxNC0uNDc5IDIuNTIyLTIuMTMzbDIuODc4LTcuODJoLTEuMjVsLTIuMDE4IDYuMDYzaC0uMTA5TDkuNzIxIDcuNjMxSDguNDQ5bDIuNzI4IDcuMzc2LS4xMzcuNDM3Yy0uMjY3Ljg0OC0uNjc3IDEuMTU2LTEuMzUzIDEuMTU2LS4xNjUgMC0uMzUtLjAwNy0uNDkz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S4yODUgMS4yOTIgMi4yOTcgMS4yOTIgMS44NzMgMCAzLjA4OS0xLjQ5NyAzLjA4OS0zLjgwOHYtLjAxM2MwLTIuMjk3LTEuMjIzLTMuODA4LTMuMDg5LTMuODA4LTEuMDI2IDAtMS44NDYuNDg1LTIuMjk3IDEuMzA2aC0uMTFWNy42M2gtMS4xODl2OS44M1ptMy4zMjItMy4zODRjLTEuMzQgMC0yLjE2LTEuMDUzLTIuMTYtMi43NTV2LS4wMTNjMC0xLjcwMy44Mi0yLjc1NSAyLjE2LTIuNzU1IDEuMzQ3IDAgMi4xNDcgMS4wMzkgMi4xNDcgMi43NTV2LjAxM2MwIDEuNzE2LS44IDIuNzU1LTIuMTQ3IDIuNzU1Wm04LjIzMSAxLjA1M2MxLjczNiAwIDIuNzg5LS45ODUgMy4wNDItMS45ODJsLjAxMy0uMDU1aC0xLjE4OWwtLjAyNy4wNjFjLS4xOTkuNDQ1LS44MTQuOTE2LTEuODEyLjkxNi0xLjMxMiAwLTIuMTUzLS44ODgtMi4xODctMi40MTNoNS4zMDR2LS40NjVjMC0yLjItMS4yMTctMy42OTEtMy4yMi0zLjY5MS0yLjAwMiAwLTMuMzAxIDEuNTU5LTMuMzAxIDMuODM1di4wMDdjMCAyLjMxIDEuMjcxIDMuNzg3IDMuMzc3IDMuNzg3Wm0tLjA4Mi02LjU3YzEuMDg3IDAgMS44OTMuNjkxIDIuMDE2IDIuMTQ3aC00LjA3NGMuMTMtMS40MDEuOTY0LTIuMTQ2IDIuMDU4LTIuMTQ2WiIgZmlsbD0iIzg3OTI5RCIvPjwvc3ZnPg==\");height:0;pointer-events:none;position:absolute;top:-2px;z-index:-1}.neeto-editor,.neeto-editor-content{-moz-tab-size:2;-o-tab-size:2;tab-size:2;white-space:pre-wrap;word-break:break-word}.neeto-editor h1,.neeto-editor h2,.neeto-editor h3,.neeto-editor h4,.neeto-editor h5,.neeto-editor h6,.neeto-editor-content h1,.neeto-editor-content h2,.neeto-editor-content h3,.neeto-editor-content h4,.neeto-editor-content h5,.neeto-editor-content h6{color:rgb(var(--neeto-ui-black));font-weight:var(--neeto-ui-font-semibold)}.neeto-editor h1 strong,.neeto-editor h2 strong,.neeto-editor h3 strong,.neeto-editor h4 strong,.neeto-editor h5 strong,.neeto-editor h6 strong,.neeto-editor-content h1 strong,.neeto-editor-content h2 strong,.neeto-editor-content h3 strong,.neeto-editor-content h4 strong,.neeto-editor-content h5 strong,.neeto-editor-content h6 strong{font-weight:var(--neeto-ui-font-semibold)!important}.neeto-editor h1,.neeto-editor-content h1{font-size:var(--neeto-ui-text-h1);margin:2rem 0 .25rem}.neeto-editor h2,.neeto-editor-content h2{font-size:var(--neeto-ui-text-h2);margin:1.5rem 0 .25rem}.neeto-editor h3,.neeto-editor-content h3{font-size:var(--neeto-ui-text-h3);margin:1rem 0 .25rem}.neeto-editor h4,.neeto-editor-content h4{font-size:var(--neeto-ui-text-h4);margin:.75rem 0 .25rem}.neeto-editor h5,.neeto-editor-content h5{font-size:var(--neeto-ui-text-h5);margin:.75rem 0 .25rem}.neeto-editor h6,.neeto-editor-content h6{font-size:var(--neeto-ui-text-h6);margin:.75rem 0 .25rem}@media only screen and (max-width:720px){.neeto-editor h1,.neeto-editor-content h1{font-size:22px}.neeto-editor h2,.neeto-editor-content h2{font-size:20px}.neeto-editor h3,.neeto-editor-content h3{font-size:18px}.neeto-editor h4,.neeto-editor-content h4{font-size:16px}.neeto-editor h5,.neeto-editor-content h5{font-size:14px}.neeto-editor h6,.neeto-editor-content h6{font-size:12px}}.neeto-editor p,.neeto-editor-content p{color:rgb(var(--neeto-ui-black));font-size:var(--neeto-ui-text-body1);font-weight:var(--neeto-ui-font-normal);line-height:var(--neeto-ui-leading-normal)}.neeto-editor p:empty:after,.neeto-editor-content p:empty:after{content:\" \"}.neeto-editor p:last-child,.neeto-editor-content p:last-child{margin-bottom:0}.neeto-editor p strong,.neeto-editor-content p strong{font-weight:var(--neeto-ui-font-semibold)!important}.neeto-editor div,.neeto-editor-content div{color:rgb(var(--neeto-ui-black));font-size:var(--neeto-ui-text-body1);font-weight:var(--neeto-ui-font-normal);line-height:var(--neeto-ui-leading-normal)}.neeto-editor code,.neeto-editor-content code{background-color:rgb(var(--neeto-ui-gray-100));border-radius:var(--neeto-ui-rounded-sm);font-family:SFMono-Regular,Menlo,Consolas,PT Mono,Liberation Mono,Courier,monospace;font-size:14px;padding:.2em .4em}.neeto-editor h1 code,.neeto-editor h2 code,.neeto-editor h3 code,.neeto-editor h4 code,.neeto-editor h5 code,.neeto-editor h6 code,.neeto-editor p code,.neeto-editor-content h1 code,.neeto-editor-content h2 code,.neeto-editor-content h3 code,.neeto-editor-content h4 code,.neeto-editor-content h5 code,.neeto-editor-content h6 code,.neeto-editor-content p code{font-size:inherit}.neeto-editor pre,.neeto-editor-content pre{background-color:#f7f6f3;border-radius:var(--neeto-ui-rounded-sm);font-size:14px;line-height:1.5;margin-bottom:16px;margin-top:16px;overflow-x:auto;padding:32px 12px 12px;position:relative}.neeto-editor pre .neeto-editor-codeblock-options,.neeto-editor-content pre .neeto-editor-codeblock-options{align-items:center;display:flex;gap:4px;position:absolute;right:4px;top:4px}.neeto-editor pre .neeto-editor-codeblock-options__menu,.neeto-editor-content pre .neeto-editor-codeblock-options__menu{display:flex;flex-direction:column;gap:4px}.neeto-editor pre .neeto-editor-codeblock-options__input,.neeto-editor-content pre .neeto-editor-codeblock-options__input{margin:4px}.neeto-editor pre>code,.neeto-editor-content pre>code{background-color:transparent;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;font-weight:400;line-height:inherit;padding:0;white-space:pre-wrap}.neeto-editor blockquote,.neeto-editor-content blockquote{border-left-color:#e5e7eb;border-left-width:4px;color:rgb(var(--neeto-ui-black));font-weight:var(--neeto-ui-font-medium);margin:8px 0;padding-left:12px;quotes:\"“\" \"”\" \"‘\" \"’\"}.neeto-editor blockquote>p:after,.neeto-editor blockquote>p:before,.neeto-editor-content blockquote>p:after,.neeto-editor-content blockquote>p:before{content:\"\"!important}.neeto-editor ol,.neeto-editor ul,.neeto-editor-content ol,.neeto-editor-content ul{list-style:revert;margin-bottom:1em;padding-left:28px}.neeto-editor ol li:before,.neeto-editor ul li:before,.neeto-editor-content ol li:before,.neeto-editor-content ul li:before{background-color:rgb(var(--neeto-ui-black))}.neeto-editor a[href],.neeto-editor-content a[href]{color:rgb(var(--neeto-ui-accent-800));font-weight:500}.neeto-editor .neeto-editor__video-wrapper,.neeto-editor-content .neeto-editor__video-wrapper{display:flex;margin:16px 0}.neeto-editor .neeto-editor__video-wrapper .neeto-editor__video-iframe,.neeto-editor-content .neeto-editor__video-wrapper .neeto-editor__video-iframe{border:2px solid rgb(var(--neeto-ui-gray-300));border-radius:var(--neeto-ui-rounded-lg);display:inline-block;padding:4px}.neeto-editor .neeto-editor__video-wrapper .neeto-editor__video-iframe iframe,.neeto-editor-content .neeto-editor__video-wrapper .neeto-editor__video-iframe iframe{height:100%;width:100%}.neeto-editor .neeto-editor__video--left,.neeto-editor-content .neeto-editor__video--left{justify-content:flex-start}.neeto-editor .neeto-editor__video--right,.neeto-editor-content .neeto-editor__video--right{justify-content:flex-end}.neeto-editor .neeto-editor__video--center,.neeto-editor-content .neeto-editor__video--center{justify-content:center}.neeto-editor mark,.neeto-editor-content mark{border-radius:var(--neeto-ui-rounded-sm);padding:0}.neeto-editor [data-type=mention],.neeto-editor [data-type=special-mention],.neeto-editor-content [data-type=mention],.neeto-editor-content [data-type=special-mention]{color:rgb(var(--neeto-ui-accent-800))}.neeto-editor table,.neeto-editor-content table{border:1px solid rgba(var(--neeto-ui-gray-300));border-collapse:separate;border-radius:var(--neeto-ui-rounded-sm);border-spacing:0;min-width:300px;overflow:hidden;table-layout:fixed}.neeto-editor table td,.neeto-editor table th,.neeto-editor-content table td,.neeto-editor-content table th{border-left:1px solid rgba(var(--neeto-ui-gray-300));border-top:1px solid rgba(var(--neeto-ui-gray-300));padding:8px 12px;position:relative}.neeto-editor table td:first-child,.neeto-editor table th:first-child,.neeto-editor-content table td:first-child,.neeto-editor-content table th:first-child{border-left:none}.neeto-editor table th,.neeto-editor-content table th{background:rgb(var(--neeto-ui-gray-100));border-top:none}.neeto-editor table td,.neeto-editor-content table td{background:rgb(var(--neeto-ui-white))}.neeto-editor-content--hidden{display:none}.neeto-editor__image-wrapper{color:inherit!important;display:flex;font-weight:400!important;margin:16px 0;text-decoration:none}.neeto-editor__image-wrapper figure{display:inline-block;max-width:100%;overflow:hidden;position:relative}.neeto-editor__image-wrapper .neeto-editor__image{display:inline-block}.neeto-editor__image-wrapper .neeto-editor__image img,.neeto-editor__image-wrapper .neeto-editor__image video{border:2px solid rgb(var(--neeto-ui-gray-300));border-radius:var(--neeto-ui-rounded-lg);display:inline-block;height:auto;min-height:52px;padding:4px;width:100%}.neeto-editor__image-wrapper .neeto-editor__image img{cursor:zoom-in}.neeto-editor__image-wrapper .neeto-editor__image-placeholder{align-items:center;border:1px solid;border-radius:8px;display:flex;height:200px;justify-content:center;width:400px}.neeto-editor__image-wrapper figcaption div{color:rgb(var(--neeto-ui-gray-600));font-size:14px;font-weight:var(--neeto-ui-font-normal);line-height:1.4;text-align:center}.neeto-editor__image-wrapper figcaption div a{display:inline-block;margin:0;text-align:center}.neeto-editor__image-wrapper figcaption.is-empty div:before{color:rgb(var(--neeto-ui-gray-500));content:\"Add a caption\";inset:0;position:absolute}.neeto-editor figcaption,.neeto-editor-content figcaption{color:#6b7280;font-size:14px;font-weight:400;line-height:1.4;text-align:center}.neeto-editor__image--left{justify-content:flex-start}.neeto-editor__image--center{justify-content:center}.neeto-editor__image--right{justify-content:flex-end}.selected-text{background-color:rgb(var(--neeto-ui-gray-300));padding:2px 0}.neeto-editor{background-color:rgb(var(--neeto-ui-white));border-radius:var(--neeto-ui-rounded);color:rgb(var(--neeto-ui-black));max-width:100%!important;padding:16px;white-space:pre-wrap}.neeto-editor:focus{outline:none}.neeto-editor a{pointer-events:none}.neeto-editor [data-variable]{color:rgb(var(--neeto-ui-gray-600));padding:4px 6px}.neeto-editor .ProseMirror-separator{display:none}.neeto-editor.fixed-menu-active{border:thin solid rgb(var(--neeto-ui-gray-300));border-top:none;border-top-left-radius:0;border-top-right-radius:0}.neeto-editor.attachments-active{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.neeto-editor .is-empty{position:relative}.neeto-editor.placeholder-active .is-editor-empty:first-child:before{color:#ced4da;content:attr(data-placeholder);float:left;height:0;pointer-events:none}.neeto-editor hr{margin:8px 0}.neeto-editor .ProseMirror-selectednode{outline:3px solid rgb(var(--neeto-ui-pastel-blue))}.neeto-editor .has-focus{background:var(--focus-background-color);transition:background-color .2s ease}.neeto-editor [data-variable]{background-color:rgb(var(--neeto-ui-gray-200));border-radius:var(--neeto-ui-rounded-sm);color:rgb(var(--neeto-ui-gray-800));display:inline-flex;line-height:1;padding:4px}.neeto-editor-character-count{color:rgb(var(--neeto-ui-gray-600));font-size:12px;padding:4px;text-align:right}.neeto-editor-error{border-color:rgb(var(--neeto-ui-error-500));border-radius:var(--neeto-ui-rounded);border-width:1px;color:rgb(var(--neeto-ui-error-500))}.neeto-editor-error:focus-within{border-color:rgb(var(--neeto-ui-error-600))}.ne_variable-tag{border-radius:6px!important}.neeto-editor-mentions__wrapper{padding:4px 0}.neeto-editor-mentions__item{padding:8px 12px}@media screen and (max-width:767px){.ne-media-uploader-modal{width:95vw!important}}.ne-media-uploader{display:flex;flex-direction:column;min-height:184px;width:100%}.ne-media-uploader .neeto-ui-tab__wrapper{padding:0 16px}.ne-media-uploader .ne-tab__wrapper .ne-tab{min-width:88px}.ne-media-uploader .ne-media-uploader__content{display:flex;flex-grow:1;padding:16px}.ne-media-uploader .ne-media-uploader__dnd{align-items:center;border:1px dashed rgb(var(--neeto-ui-primary-600));border-radius:var(--neeto-ui-rounded);box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;gap:2px;justify-content:center;padding:16px;width:100%}.ne-media-uploader .ne-media-uploader__dnd:focus{outline:none}.ne-media-uploader .ne-media-uploader__dnd-icon{color:rgb(var(--neeto-ui-primary-600));margin-bottom:6px}.ne-media-uploader .ne-media-uploader__dnd-input{display:none}.ne-media-uploader .ne-media-uploader__dnd:hover{background-color:rgb(var(--neeto-ui-gray-100));cursor:pointer}.ne-media-uploader .ne-media-uploader__dnd.is-dragging-over-files{background-color:rgba(var(--neeto-ui-gray-300),.5);border:3px dashed rgb(var(--neeto-ui-gray-500));color:rgb(var(--neeto-ui-gray-600))}.ne-media-uploader .ne-media-uploader__wrapper{display:flex;flex-wrap:wrap;gap:8px;width:100%}.ne-media-uploader .ne-media-uploader__wrapper .ne-media-uploader__media{align-self:start;background-color:rgb(var(--neeto-ui-white));border:1px solid rgb(var(--neeto-ui-gray-200));border-radius:var(--neeto-ui-rounded-sm);display:flex;flex-direction:column;gap:10px;justify-content:space-between;margin-bottom:auto;margin-top:auto;padding:4px 8px;position:relative;width:105px}.ne-media-uploader .ne-media-uploader__wrapper .ne-media-uploader__media__cancel-button-wrapper{position:absolute;right:4px;top:4px}.ne-media-uploader .ne-media-uploader__wrapper .ne-media-uploader__media__info{align-items:flex-start;display:flex;flex-direction:column;gap:4px;justify-content:space-between;margin-top:4px}.ne-media-uploader .ne-media-uploader__wrapper .ne-media-uploader__media__info__icon{margin-top:12px;width:45px}.ne-media-uploader .ne-media-uploader__wrapper .ne-media-uploader__media__info p{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ne-media-uploader .ne-media-uploader__wrapper .ne-media-uploader__media__progress{align-self:flex-end;background-color:rgb(var(--neeto-ui-gray-200));border-radius:var(--neeto-ui-rounded-sm);overflow:hidden;width:100%}.ne-media-uploader .ne-media-uploader__wrapper .ne-media-uploader__media__progress-bar{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;background-color:rgb(var(--neeto-ui-primary-600));border-radius:var(--neeto-ui-rounded-sm);display:flex;height:4px;transition:var(--neeto-ui-transition)}.ne-media-uploader .neeto-editor-unsplash-wrapper{width:100%}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-container{max-height:50vh;overflow-x:hidden;overflow-y:auto}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-search{margin-bottom:16px;padding:0 8px}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery{right:-8px;width:100%}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__loader{display:flex;justify-content:center}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item{float:left;padding-bottom:16px;padding-right:16px;width:33.3%}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder{position:relative;width:100%}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner{background-color:rgb(var(--neeto-ui-gray-100));border-radius:var(--neeto-ui-rounded-sm);height:100%;position:absolute;width:100%}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner img{animation:fade-in 1.2s cubic-bezier(.39,.575,.565,1) 1s both;border-radius:var(--neeto-ui-rounded);cursor:pointer;height:100%;-o-object-fit:cover;object-fit:cover;position:relative;width:100%}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a{bottom:8px;color:rgb(var(--neeto-ui-white));font-size:12px;font-weight:var(--neeto-ui-font-normal);left:8px;line-height:1;margin:auto;opacity:0;position:absolute;text-transform:capitalize;transition:var(--neeto-ui-transition)}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a:hover{text-decoration:underline}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner:hover a{opacity:1}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__text{color:rgb(var(--neeto-ui-gray-700));font-size:var(--neeto-ui-text-xs);margin-top:12px;text-align:center}.neeto-editor-url-form__wrapper{align-items:center;display:flex;flex-direction:column;flex-grow:1;justify-content:center;padding:0 24px}.neeto-editor-url-form__wrapper .neeto-ui-input__wrapper{flex-grow:0;margin-bottom:16px;width:100%}@media screen and (max-width:767px){.ne-embed-modal-wrapper{width:95vw!important}}.image-preview-wrapper{align-items:center;background:rgba(var(--neeto-ui-gray-800),.5);display:flex;height:100%;justify-content:center;left:0;position:fixed;top:0;width:100%;z-index:999999}.image-preview-wrapper .close-button{position:absolute;right:5px;top:5px}.image-preview-wrapper .image-preview{max-height:70%;max-width:70%}.image-preview-wrapper .spinner i{background-color:rgb(var(--neeto-ui-gray-300))}.image-preview-neeto-ui-modal{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background-color:transparent!important}.image-preview-neeto-ui-modal__close-btn{border-radius:100%;float:right;margin:10px 0}.image-preview-neeto-ui-modal img{border:10px solid rgb(var(--neeto-ui-gray-100));border-radius:10px;height:auto;max-height:90vh;opacity:1;transition:opacity 2s ease-in-out;width:100%}.image-preview-neeto-ui-modal .display-none{display:none}.image-preview-neeto-ui-modal .spinner-wrapper{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center}.image-preview-neeto-ui-modal .spinner-wrapper .spinner{--neeto-ui-spinner-size:32px}.neeto-editor-emoji{font-family:Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Noto Color Emoji,Segoe UI Symbol,Android Emoji,EmojiSymbols}.emoji-mart.emoji-mart-light{border:none;color:rgb(var(--neeto-ui-gray-800));font-size:14px}.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor{color:rgb(var(--neeto-ui-gray-500))}.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor svg{margin:auto}.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor .emoji-mart-anchor-bar{background-color:rgb(var(--neeto-ui-gray-700))!important}.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor.emoji-mart-anchor-selected{color:rgb(var(--neeto-ui-gray-700))!important}.emoji-mart.emoji-mart-light .emoji-mart-search input{border-radius:var(--neeto-ui-rounded-sm)}.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-category-label span{padding-top:8px}.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji span{cursor:pointer}.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji:hover:before{background-color:rgb(var(--neeto-ui-gray-200));border-radius:var(--neeto-ui-rounded-sm)}.emoji-mart.emoji-mart-light .emoji-mart-scroll{height:264px;padding-bottom:0}.neeto-editor-emoji-suggestion{align-items:center;display:flex;flex-direction:row;font-family:Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Noto Color Emoji,Segoe UI Symbol,Android Emoji,EmojiSymbols;gap:2px;justify-content:flex-start;padding:4px}.neeto-editor-emoji-suggestion p{color:rgb(var(--neeto-ui-black));font-size:var(--neeto-ui-text-xs)}.neeto-editor-emoji-suggestion span{font-size:10px;height:16px!important;width:16px!important}.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item{border-radius:var(--neeto-ui-rounded-sm);cursor:pointer;font-size:var(--neeto-ui-text-2xl);line-height:1;padding:6px;transition:var(--neeto-ui-transition)}.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item--selected,.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item:hover{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-editor-table{display:relative;margin:8px 0 0;width:-moz-fit-content;width:fit-content}.neeto-editor-table table td p,.neeto-editor-table table th p{margin:0}.neeto-editor-table table .column-resize-handle{background-color:rgb(var(--neeto-ui-gray-300));bottom:0;position:absolute;right:-2px;top:0;width:4px}.neeto-editor-table table .selectedCell:after{background:rgba(var(--neeto-ui-primary-500),.1);content:\"\";inset:0;position:absolute}.neeto-editor-table__wrapper{display:flex;gap:2px}.neeto-editor-table__add-column,.neeto-editor-table__add-row{align-items:center;background:rgba(var(--neeto-ui-gray-200));border-radius:var(--neeto-ui-rounded-sm);cursor:pointer;display:flex;justify-content:center;opacity:0;transition:var(--neeto-ui-transition);visibility:hidden}.neeto-editor-table__add-column p,.neeto-editor-table__add-row p{color:rgb(var(--neeto-ui-gray-500))!important;font-size:var(--neeto-ui-text-base)!important;font-weight:var(--neeto-ui-font-light)!important;line-height:16px!important}.neeto-editor-table__add-column:hover,.neeto-editor-table__add-row:hover{background:rgba(var(--neeto-ui-gray-300))}.neeto-editor-table:hover .neeto-editor-table__add-column,.neeto-editor-table:hover .neeto-editor-table__add-row{opacity:1;visibility:visible}.neeto-editor-table__add-row{margin:2px 20px 2px 0;padding:0 0 2px}.neeto-editor-table__add-column{flex-direction:column;padding:0 4px}.ProseMirror.resize-cursor{cursor:col-resize}.ne-link-popover{background-color:#fff;border:1px solid var(--neeto-ui-popover-light-theme-border-color);border-radius:5px;box-shadow:var(--neeto-ui-tooltip-light-theme-box-shadow);color:#333;padding:10px 16px;position:fixed;transition:opacity .3s ease,transform .3s ease,visibility 0s .3s;z-index:99999}.ne-link-popover__url-input{margin:8px 0}.ne-link-popover__checkbox{margin:16px 0}.ne-link-popover__option-button{margin:0 4px}.ne-link-popover__edit-prompt-buttons{display:flex;gap:8px;margin-top:8px}.ne-link-popover a{color:rgb(var(--neeto-ui-gray-800));float:left;font-size:var(--neeto-ui-text-sm);font-weight:var(--neeto-ui-font-medium);margin-right:8px;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ne-link-arrow{border:6px solid transparent;border-top-color:rgba(0,0,0,.2);content:\"\";left:0;position:fixed;top:0;z-index:99999}.ProseMirror{height:100%;overflow-y:auto;white-space:break-spaces}.ProseMirror:focus{outline:none}";
|
|
129
129
|
injectCss.n(css,{});
|
|
130
130
|
|
|
131
131
|
var CharacterCountWrapper = function CharacterCountWrapper(_ref) {
|
|
@@ -143,7 +143,7 @@ var CharacterCountWrapper = function CharacterCountWrapper(_ref) {
|
|
|
143
143
|
* This extension allows you to count the characters and words of your document.
|
|
144
144
|
* @see https://tiptap.dev/api/extensions/character-count
|
|
145
145
|
*/
|
|
146
|
-
const CharacterCount = Menu$
|
|
146
|
+
const CharacterCount = Menu$3.Extension.create({
|
|
147
147
|
name: 'characterCount',
|
|
148
148
|
addOptions() {
|
|
149
149
|
return {
|
|
@@ -238,7 +238,7 @@ const pasteRegex$2 = /(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g;
|
|
|
238
238
|
* This extension allows you to mark text as inline code.
|
|
239
239
|
* @see https://tiptap.dev/api/marks/code
|
|
240
240
|
*/
|
|
241
|
-
const Code = Menu$
|
|
241
|
+
const Code = Menu$3.Mark.create({
|
|
242
242
|
name: 'code',
|
|
243
243
|
addOptions() {
|
|
244
244
|
return {
|
|
@@ -254,7 +254,7 @@ const Code = Menu$4.Mark.create({
|
|
|
254
254
|
];
|
|
255
255
|
},
|
|
256
256
|
renderHTML({ HTMLAttributes }) {
|
|
257
|
-
return ['code', Menu$
|
|
257
|
+
return ['code', Menu$3.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
258
258
|
},
|
|
259
259
|
addCommands() {
|
|
260
260
|
return {
|
|
@@ -276,7 +276,7 @@ const Code = Menu$4.Mark.create({
|
|
|
276
276
|
},
|
|
277
277
|
addInputRules() {
|
|
278
278
|
return [
|
|
279
|
-
Menu$
|
|
279
|
+
Menu$3.markInputRule({
|
|
280
280
|
find: inputRegex$5,
|
|
281
281
|
type: this.type,
|
|
282
282
|
}),
|
|
@@ -284,7 +284,7 @@ const Code = Menu$4.Mark.create({
|
|
|
284
284
|
},
|
|
285
285
|
addPasteRules() {
|
|
286
286
|
return [
|
|
287
|
-
Menu$
|
|
287
|
+
Menu$3.markPasteRule({
|
|
288
288
|
find: pasteRegex$2,
|
|
289
289
|
type: this.type,
|
|
290
290
|
}),
|
|
@@ -297,7 +297,7 @@ const Code = Menu$4.Mark.create({
|
|
|
297
297
|
* for the `textColor` and `backgroundColor` extensions.
|
|
298
298
|
* @see https://www.tiptap.dev/api/marks/text-style
|
|
299
299
|
*/
|
|
300
|
-
const TextStyle$2 = Menu$
|
|
300
|
+
const TextStyle$2 = Menu$3.Mark.create({
|
|
301
301
|
name: 'textStyle',
|
|
302
302
|
addOptions() {
|
|
303
303
|
return {
|
|
@@ -319,12 +319,12 @@ const TextStyle$2 = Menu$4.Mark.create({
|
|
|
319
319
|
];
|
|
320
320
|
},
|
|
321
321
|
renderHTML({ HTMLAttributes }) {
|
|
322
|
-
return ['span', Menu$
|
|
322
|
+
return ['span', Menu$3.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
323
323
|
},
|
|
324
324
|
addCommands() {
|
|
325
325
|
return {
|
|
326
326
|
removeEmptyTextStyle: () => ({ state, commands }) => {
|
|
327
|
-
const attributes = Menu$
|
|
327
|
+
const attributes = Menu$3.getMarkAttributes(state, this.type);
|
|
328
328
|
const hasStyles = Object.entries(attributes).some(([, value]) => !!value);
|
|
329
329
|
if (hasStyles) {
|
|
330
330
|
return true;
|
|
@@ -339,7 +339,7 @@ const TextStyle$2 = Menu$4.Mark.create({
|
|
|
339
339
|
* This extension allows you to color your text.
|
|
340
340
|
* @see https://tiptap.dev/api/extensions/color
|
|
341
341
|
*/
|
|
342
|
-
const Color = Menu$
|
|
342
|
+
const Color = Menu$3.Extension.create({
|
|
343
343
|
name: 'color',
|
|
344
344
|
addOptions() {
|
|
345
345
|
return {
|
|
@@ -388,7 +388,7 @@ const Color = Menu$4.Extension.create({
|
|
|
388
388
|
* The default document node which represents the top level node of the editor.
|
|
389
389
|
* @see https://tiptap.dev/api/nodes/document
|
|
390
390
|
*/
|
|
391
|
-
const Document = Menu$
|
|
391
|
+
const Document = Menu$3.Node.create({
|
|
392
392
|
name: 'doc',
|
|
393
393
|
topNode: true,
|
|
394
394
|
content: 'block+',
|
|
@@ -398,7 +398,7 @@ const Document = Menu$4.Node.create({
|
|
|
398
398
|
* This extension allows you to add a class to the focused node.
|
|
399
399
|
* @see https://www.tiptap.dev/api/extensions/focus
|
|
400
400
|
*/
|
|
401
|
-
const FocusClasses = Menu$
|
|
401
|
+
const FocusClasses = Menu$3.Extension.create({
|
|
402
402
|
name: 'focus',
|
|
403
403
|
addOptions() {
|
|
404
404
|
return {
|
|
@@ -416,7 +416,7 @@ const FocusClasses = Menu$4.Extension.create({
|
|
|
416
416
|
const { anchor } = selection;
|
|
417
417
|
const decorations = [];
|
|
418
418
|
if (!isEditable || !isFocused) {
|
|
419
|
-
return Menu$
|
|
419
|
+
return Menu$3.DecorationSet.create(doc, []);
|
|
420
420
|
}
|
|
421
421
|
// Maximum Levels
|
|
422
422
|
let maxLevels = 0;
|
|
@@ -448,11 +448,11 @@ const FocusClasses = Menu$4.Extension.create({
|
|
|
448
448
|
if (outOfScope) {
|
|
449
449
|
return this.options.mode === 'deepest';
|
|
450
450
|
}
|
|
451
|
-
decorations.push(Menu$
|
|
451
|
+
decorations.push(Menu$3.Decoration.node(pos, pos + node.nodeSize, {
|
|
452
452
|
class: this.options.className,
|
|
453
453
|
}));
|
|
454
454
|
});
|
|
455
|
-
return Menu$
|
|
455
|
+
return Menu$3.DecorationSet.create(doc, decorations);
|
|
456
456
|
},
|
|
457
457
|
},
|
|
458
458
|
}),
|
|
@@ -472,7 +472,7 @@ const pasteRegex$1 = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g;
|
|
|
472
472
|
* This extension allows you to highlight text.
|
|
473
473
|
* @see https://www.tiptap.dev/api/marks/highlight
|
|
474
474
|
*/
|
|
475
|
-
const Highlight = Menu$
|
|
475
|
+
const Highlight = Menu$3.Mark.create({
|
|
476
476
|
name: 'highlight',
|
|
477
477
|
addOptions() {
|
|
478
478
|
return {
|
|
@@ -508,7 +508,7 @@ const Highlight = Menu$4.Mark.create({
|
|
|
508
508
|
];
|
|
509
509
|
},
|
|
510
510
|
renderHTML({ HTMLAttributes }) {
|
|
511
|
-
return ['mark', Menu$
|
|
511
|
+
return ['mark', Menu$3.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
512
512
|
},
|
|
513
513
|
addCommands() {
|
|
514
514
|
return {
|
|
@@ -530,7 +530,7 @@ const Highlight = Menu$4.Mark.create({
|
|
|
530
530
|
},
|
|
531
531
|
addInputRules() {
|
|
532
532
|
return [
|
|
533
|
-
Menu$
|
|
533
|
+
Menu$3.markInputRule({
|
|
534
534
|
find: inputRegex$4,
|
|
535
535
|
type: this.type,
|
|
536
536
|
}),
|
|
@@ -538,7 +538,7 @@ const Highlight = Menu$4.Mark.create({
|
|
|
538
538
|
},
|
|
539
539
|
addPasteRules() {
|
|
540
540
|
return [
|
|
541
|
-
Menu$
|
|
541
|
+
Menu$3.markPasteRule({
|
|
542
542
|
find: pasteRegex$1,
|
|
543
543
|
type: this.type,
|
|
544
544
|
}),
|
|
@@ -550,7 +550,7 @@ const Highlight = Menu$4.Mark.create({
|
|
|
550
550
|
* This extension allows you to create table cells.
|
|
551
551
|
* @see https://www.tiptap.dev/api/nodes/table-cell
|
|
552
552
|
*/
|
|
553
|
-
const TableCell = Menu$
|
|
553
|
+
const TableCell = Menu$3.Node.create({
|
|
554
554
|
name: 'tableCell',
|
|
555
555
|
addOptions() {
|
|
556
556
|
return {
|
|
@@ -586,7 +586,7 @@ const TableCell = Menu$4.Node.create({
|
|
|
586
586
|
];
|
|
587
587
|
},
|
|
588
588
|
renderHTML({ HTMLAttributes }) {
|
|
589
|
-
return ['td', Menu$
|
|
589
|
+
return ['td', Menu$3.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
590
590
|
},
|
|
591
591
|
});
|
|
592
592
|
|
|
@@ -594,7 +594,7 @@ const TableCell = Menu$4.Node.create({
|
|
|
594
594
|
* This extension allows you to create table headers.
|
|
595
595
|
* @see https://www.tiptap.dev/api/nodes/table-header
|
|
596
596
|
*/
|
|
597
|
-
const TableHeader = Menu$
|
|
597
|
+
const TableHeader = Menu$3.Node.create({
|
|
598
598
|
name: 'tableHeader',
|
|
599
599
|
addOptions() {
|
|
600
600
|
return {
|
|
@@ -630,7 +630,7 @@ const TableHeader = Menu$4.Node.create({
|
|
|
630
630
|
];
|
|
631
631
|
},
|
|
632
632
|
renderHTML({ HTMLAttributes }) {
|
|
633
|
-
return ['th', Menu$
|
|
633
|
+
return ['th', Menu$3.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
634
634
|
},
|
|
635
635
|
});
|
|
636
636
|
|
|
@@ -638,7 +638,7 @@ const TableHeader = Menu$4.Node.create({
|
|
|
638
638
|
* This extension allows you to create table rows.
|
|
639
639
|
* @see https://www.tiptap.dev/api/nodes/table-row
|
|
640
640
|
*/
|
|
641
|
-
const TableRow = Menu$
|
|
641
|
+
const TableRow = Menu$3.Node.create({
|
|
642
642
|
name: 'tableRow',
|
|
643
643
|
addOptions() {
|
|
644
644
|
return {
|
|
@@ -653,7 +653,7 @@ const TableRow = Menu$4.Node.create({
|
|
|
653
653
|
];
|
|
654
654
|
},
|
|
655
655
|
renderHTML({ HTMLAttributes }) {
|
|
656
|
-
return ['tr', Menu$
|
|
656
|
+
return ['tr', Menu$3.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
657
657
|
},
|
|
658
658
|
});
|
|
659
659
|
|
|
@@ -661,7 +661,7 @@ const TableRow = Menu$4.Node.create({
|
|
|
661
661
|
* This extension allows you to create underline text.
|
|
662
662
|
* @see https://www.tiptap.dev/api/marks/underline
|
|
663
663
|
*/
|
|
664
|
-
const Underline = Menu$
|
|
664
|
+
const Underline = Menu$3.Mark.create({
|
|
665
665
|
name: 'underline',
|
|
666
666
|
addOptions() {
|
|
667
667
|
return {
|
|
@@ -681,7 +681,7 @@ const Underline = Menu$4.Mark.create({
|
|
|
681
681
|
];
|
|
682
682
|
},
|
|
683
683
|
renderHTML({ HTMLAttributes }) {
|
|
684
|
-
return ['u', Menu$
|
|
684
|
+
return ['u', Menu$3.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
685
685
|
},
|
|
686
686
|
addCommands() {
|
|
687
687
|
return {
|
|
@@ -712,7 +712,7 @@ const inputRegex$3 = /^\s*>\s$/;
|
|
|
712
712
|
* This extension allows you to create blockquotes.
|
|
713
713
|
* @see https://tiptap.dev/api/nodes/blockquote
|
|
714
714
|
*/
|
|
715
|
-
const Blockquote = Menu$
|
|
715
|
+
const Blockquote = Menu$3.Node.create({
|
|
716
716
|
name: 'blockquote',
|
|
717
717
|
addOptions() {
|
|
718
718
|
return {
|
|
@@ -728,7 +728,7 @@ const Blockquote = Menu$4.Node.create({
|
|
|
728
728
|
];
|
|
729
729
|
},
|
|
730
730
|
renderHTML({ HTMLAttributes }) {
|
|
731
|
-
return ['blockquote', Menu$
|
|
731
|
+
return ['blockquote', Menu$3.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
732
732
|
},
|
|
733
733
|
addCommands() {
|
|
734
734
|
return {
|
|
@@ -750,7 +750,7 @@ const Blockquote = Menu$4.Node.create({
|
|
|
750
750
|
},
|
|
751
751
|
addInputRules() {
|
|
752
752
|
return [
|
|
753
|
-
Menu$
|
|
753
|
+
Menu$3.wrappingInputRule({
|
|
754
754
|
find: inputRegex$3,
|
|
755
755
|
type: this.type,
|
|
756
756
|
}),
|
|
@@ -778,7 +778,7 @@ const underscorePasteRegex$1 = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g;
|
|
|
778
778
|
* This extension allows you to mark text as bold.
|
|
779
779
|
* @see https://tiptap.dev/api/marks/bold
|
|
780
780
|
*/
|
|
781
|
-
const Bold = Menu$
|
|
781
|
+
const Bold = Menu$3.Mark.create({
|
|
782
782
|
name: 'bold',
|
|
783
783
|
addOptions() {
|
|
784
784
|
return {
|
|
@@ -801,7 +801,7 @@ const Bold = Menu$4.Mark.create({
|
|
|
801
801
|
];
|
|
802
802
|
},
|
|
803
803
|
renderHTML({ HTMLAttributes }) {
|
|
804
|
-
return ['strong', Menu$
|
|
804
|
+
return ['strong', Menu$3.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
805
805
|
},
|
|
806
806
|
addCommands() {
|
|
807
807
|
return {
|
|
@@ -824,11 +824,11 @@ const Bold = Menu$4.Mark.create({
|
|
|
824
824
|
},
|
|
825
825
|
addInputRules() {
|
|
826
826
|
return [
|
|
827
|
-
Menu$
|
|
827
|
+
Menu$3.markInputRule({
|
|
828
828
|
find: starInputRegex$1,
|
|
829
829
|
type: this.type,
|
|
830
830
|
}),
|
|
831
|
-
Menu$
|
|
831
|
+
Menu$3.markInputRule({
|
|
832
832
|
find: underscoreInputRegex$1,
|
|
833
833
|
type: this.type,
|
|
834
834
|
}),
|
|
@@ -836,11 +836,11 @@ const Bold = Menu$4.Mark.create({
|
|
|
836
836
|
},
|
|
837
837
|
addPasteRules() {
|
|
838
838
|
return [
|
|
839
|
-
Menu$
|
|
839
|
+
Menu$3.markPasteRule({
|
|
840
840
|
find: starPasteRegex$1,
|
|
841
841
|
type: this.type,
|
|
842
842
|
}),
|
|
843
|
-
Menu$
|
|
843
|
+
Menu$3.markPasteRule({
|
|
844
844
|
find: underscorePasteRegex$1,
|
|
845
845
|
type: this.type,
|
|
846
846
|
}),
|
|
@@ -852,7 +852,7 @@ const Bold = Menu$4.Mark.create({
|
|
|
852
852
|
* This extension allows you to create list items.
|
|
853
853
|
* @see https://www.tiptap.dev/api/nodes/list-item
|
|
854
854
|
*/
|
|
855
|
-
const ListItem$2 = Menu$
|
|
855
|
+
const ListItem$2 = Menu$3.Node.create({
|
|
856
856
|
name: 'listItem',
|
|
857
857
|
addOptions() {
|
|
858
858
|
return {
|
|
@@ -871,7 +871,7 @@ const ListItem$2 = Menu$4.Node.create({
|
|
|
871
871
|
];
|
|
872
872
|
},
|
|
873
873
|
renderHTML({ HTMLAttributes }) {
|
|
874
|
-
return ['li', Menu$
|
|
874
|
+
return ['li', Menu$3.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
875
875
|
},
|
|
876
876
|
addKeyboardShortcuts() {
|
|
877
877
|
return {
|
|
@@ -887,7 +887,7 @@ const ListItem$2 = Menu$4.Node.create({
|
|
|
887
887
|
* for the `textColor` and `backgroundColor` extensions.
|
|
888
888
|
* @see https://www.tiptap.dev/api/marks/text-style
|
|
889
889
|
*/
|
|
890
|
-
const TextStyle$1 = Menu$
|
|
890
|
+
const TextStyle$1 = Menu$3.Mark.create({
|
|
891
891
|
name: 'textStyle',
|
|
892
892
|
addOptions() {
|
|
893
893
|
return {
|
|
@@ -909,12 +909,12 @@ const TextStyle$1 = Menu$4.Mark.create({
|
|
|
909
909
|
];
|
|
910
910
|
},
|
|
911
911
|
renderHTML({ HTMLAttributes }) {
|
|
912
|
-
return ['span', Menu$
|
|
912
|
+
return ['span', Menu$3.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
913
913
|
},
|
|
914
914
|
addCommands() {
|
|
915
915
|
return {
|
|
916
916
|
removeEmptyTextStyle: () => ({ state, commands }) => {
|
|
917
|
-
const attributes = Menu$
|
|
917
|
+
const attributes = Menu$3.getMarkAttributes(state, this.type);
|
|
918
918
|
const hasStyles = Object.entries(attributes).some(([, value]) => !!value);
|
|
919
919
|
if (hasStyles) {
|
|
920
920
|
return true;
|
|
@@ -935,7 +935,7 @@ const inputRegex$2 = /^\s*([-+*])\s$/;
|
|
|
935
935
|
* @see https://tiptap.dev/api/nodes/bullet-list
|
|
936
936
|
* @see https://tiptap.dev/api/nodes/list-item.
|
|
937
937
|
*/
|
|
938
|
-
const BulletList = Menu$
|
|
938
|
+
const BulletList = Menu$3.Node.create({
|
|
939
939
|
name: 'bulletList',
|
|
940
940
|
addOptions() {
|
|
941
941
|
return {
|
|
@@ -955,7 +955,7 @@ const BulletList = Menu$4.Node.create({
|
|
|
955
955
|
];
|
|
956
956
|
},
|
|
957
957
|
renderHTML({ HTMLAttributes }) {
|
|
958
|
-
return ['ul', Menu$
|
|
958
|
+
return ['ul', Menu$3.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
959
959
|
},
|
|
960
960
|
addCommands() {
|
|
961
961
|
return {
|
|
@@ -973,12 +973,12 @@ const BulletList = Menu$4.Node.create({
|
|
|
973
973
|
};
|
|
974
974
|
},
|
|
975
975
|
addInputRules() {
|
|
976
|
-
let inputRule = Menu$
|
|
976
|
+
let inputRule = Menu$3.wrappingInputRule({
|
|
977
977
|
find: inputRegex$2,
|
|
978
978
|
type: this.type,
|
|
979
979
|
});
|
|
980
980
|
if (this.options.keepMarks || this.options.keepAttributes) {
|
|
981
|
-
inputRule = Menu$
|
|
981
|
+
inputRule = Menu$3.wrappingInputRule({
|
|
982
982
|
find: inputRegex$2,
|
|
983
983
|
type: this.type,
|
|
984
984
|
keepMarks: this.options.keepMarks,
|
|
@@ -1005,7 +1005,7 @@ const tildeInputRegex = /^~~~([a-z]+)?[\s\n]$/;
|
|
|
1005
1005
|
* This extension allows you to create code blocks.
|
|
1006
1006
|
* @see https://tiptap.dev/api/nodes/code-block
|
|
1007
1007
|
*/
|
|
1008
|
-
const CodeBlock$1 = Menu$
|
|
1008
|
+
const CodeBlock$1 = Menu$3.Node.create({
|
|
1009
1009
|
name: 'codeBlock',
|
|
1010
1010
|
addOptions() {
|
|
1011
1011
|
return {
|
|
@@ -1052,7 +1052,7 @@ const CodeBlock$1 = Menu$4.Node.create({
|
|
|
1052
1052
|
renderHTML({ node, HTMLAttributes }) {
|
|
1053
1053
|
return [
|
|
1054
1054
|
'pre',
|
|
1055
|
-
Menu$
|
|
1055
|
+
Menu$3.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes),
|
|
1056
1056
|
[
|
|
1057
1057
|
'code',
|
|
1058
1058
|
{
|
|
@@ -1143,14 +1143,14 @@ const CodeBlock$1 = Menu$4.Node.create({
|
|
|
1143
1143
|
},
|
|
1144
1144
|
addInputRules() {
|
|
1145
1145
|
return [
|
|
1146
|
-
Menu$
|
|
1146
|
+
Menu$3.textblockTypeInputRule({
|
|
1147
1147
|
find: backtickInputRegex,
|
|
1148
1148
|
type: this.type,
|
|
1149
1149
|
getAttributes: match => ({
|
|
1150
1150
|
language: match[1],
|
|
1151
1151
|
}),
|
|
1152
1152
|
}),
|
|
1153
|
-
Menu$
|
|
1153
|
+
Menu$3.textblockTypeInputRule({
|
|
1154
1154
|
find: tildeInputRegex,
|
|
1155
1155
|
type: this.type,
|
|
1156
1156
|
getAttributes: match => ({
|
|
@@ -1352,7 +1352,7 @@ class DropCursorView {
|
|
|
1352
1352
|
* inbetween nodes.
|
|
1353
1353
|
* @see https://tiptap.dev/api/extensions/dropcursor
|
|
1354
1354
|
*/
|
|
1355
|
-
const Dropcursor = Menu$
|
|
1355
|
+
const Dropcursor = Menu$3.Extension.create({
|
|
1356
1356
|
name: 'dropCursor',
|
|
1357
1357
|
addOptions() {
|
|
1358
1358
|
return {
|
|
@@ -1534,7 +1534,7 @@ function gapCursor() {
|
|
|
1534
1534
|
}
|
|
1535
1535
|
});
|
|
1536
1536
|
}
|
|
1537
|
-
const handleKeyDown$1 = Menu$
|
|
1537
|
+
const handleKeyDown$1 = Menu$3.keydownHandler({
|
|
1538
1538
|
"ArrowLeft": arrow$1("horiz", -1),
|
|
1539
1539
|
"ArrowRight": arrow$1("horiz", 1),
|
|
1540
1540
|
"ArrowUp": arrow$1("vert", -1),
|
|
@@ -1595,7 +1595,7 @@ function drawGapCursor(state) {
|
|
|
1595
1595
|
return null;
|
|
1596
1596
|
let node = document.createElement("div");
|
|
1597
1597
|
node.className = "ProseMirror-gapcursor";
|
|
1598
|
-
return Menu$
|
|
1598
|
+
return Menu$3.DecorationSet.create(state.doc, [Menu$3.Decoration.widget(state.selection.head, node, { key: "gapcursor" })]);
|
|
1599
1599
|
}
|
|
1600
1600
|
|
|
1601
1601
|
/**
|
|
@@ -1604,7 +1604,7 @@ function drawGapCursor(state) {
|
|
|
1604
1604
|
* where no content is present, for example inbetween nodes.
|
|
1605
1605
|
* @see https://tiptap.dev/api/extensions/gapcursor
|
|
1606
1606
|
*/
|
|
1607
|
-
const Gapcursor = Menu$
|
|
1607
|
+
const Gapcursor = Menu$3.Extension.create({
|
|
1608
1608
|
name: 'gapCursor',
|
|
1609
1609
|
addProseMirrorPlugins() {
|
|
1610
1610
|
return [
|
|
@@ -1619,7 +1619,7 @@ const Gapcursor = Menu$4.Extension.create({
|
|
|
1619
1619
|
storage: extension.storage,
|
|
1620
1620
|
};
|
|
1621
1621
|
return {
|
|
1622
|
-
allowGapCursor: (_a = Menu$
|
|
1622
|
+
allowGapCursor: (_a = Menu$3.callOrReturn(Menu$3.getExtensionField(extension, 'allowGapCursor', context))) !== null && _a !== void 0 ? _a : null,
|
|
1623
1623
|
};
|
|
1624
1624
|
},
|
|
1625
1625
|
});
|
|
@@ -1628,7 +1628,7 @@ const Gapcursor = Menu$4.Extension.create({
|
|
|
1628
1628
|
* This extension allows you to insert hard breaks.
|
|
1629
1629
|
* @see https://www.tiptap.dev/api/nodes/hard-break
|
|
1630
1630
|
*/
|
|
1631
|
-
const HardBreak = Menu$
|
|
1631
|
+
const HardBreak = Menu$3.Node.create({
|
|
1632
1632
|
name: 'hardBreak',
|
|
1633
1633
|
addOptions() {
|
|
1634
1634
|
return {
|
|
@@ -1645,7 +1645,7 @@ const HardBreak = Menu$4.Node.create({
|
|
|
1645
1645
|
];
|
|
1646
1646
|
},
|
|
1647
1647
|
renderHTML({ HTMLAttributes }) {
|
|
1648
|
-
return ['br', Menu$
|
|
1648
|
+
return ['br', Menu$3.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
|
|
1649
1649
|
},
|
|
1650
1650
|
renderText() {
|
|
1651
1651
|
return '\n';
|
|
@@ -1692,7 +1692,7 @@ const HardBreak = Menu$4.Node.create({
|
|
|
1692
1692
|
* This extension allows you to create headings.
|
|
1693
1693
|
* @see https://www.tiptap.dev/api/nodes/heading
|
|
1694
1694
|
*/
|
|
1695
|
-
const Heading = Menu$
|
|
1695
|
+
const Heading = Menu$3.Node.create({
|
|
1696
1696
|
name: 'heading',
|
|
1697
1697
|
addOptions() {
|
|
1698
1698
|
return {
|
|
@@ -1723,7 +1723,7 @@ const Heading = Menu$4.Node.create({
|
|
|
1723
1723
|
const level = hasLevel
|
|
1724
1724
|
? node.attrs.level
|
|
1725
1725
|
: this.options.levels[0];
|
|
1726
|
-
return [`h${level}`, Menu$
|
|
1726
|
+
return [`h${level}`, Menu$3.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
1727
1727
|
},
|
|
1728
1728
|
addCommands() {
|
|
1729
1729
|
return {
|
|
@@ -1751,7 +1751,7 @@ const Heading = Menu$4.Node.create({
|
|
|
1751
1751
|
},
|
|
1752
1752
|
addInputRules() {
|
|
1753
1753
|
return this.options.levels.map(level => {
|
|
1754
|
-
return Menu$
|
|
1754
|
+
return Menu$3.textblockTypeInputRule({
|
|
1755
1755
|
find: new RegExp(`^(#{1,${level}})\\s$`),
|
|
1756
1756
|
type: this.type,
|
|
1757
1757
|
getAttributes: {
|
|
@@ -2385,7 +2385,7 @@ const redo = buildCommand(true, true);
|
|
|
2385
2385
|
*
|
|
2386
2386
|
* `@tiptap/extension-collaboration` uses its own history implementation.
|
|
2387
2387
|
*/
|
|
2388
|
-
const History = Menu$
|
|
2388
|
+
const History = Menu$3.Extension.create({
|
|
2389
2389
|
name: 'history',
|
|
2390
2390
|
addOptions() {
|
|
2391
2391
|
return {
|
|
@@ -2424,7 +2424,7 @@ const History = Menu$4.Extension.create({
|
|
|
2424
2424
|
* This extension allows you to insert horizontal rules.
|
|
2425
2425
|
* @see https://www.tiptap.dev/api/nodes/horizontal-rule
|
|
2426
2426
|
*/
|
|
2427
|
-
const HorizontalRule = Menu$
|
|
2427
|
+
const HorizontalRule = Menu$3.Node.create({
|
|
2428
2428
|
name: 'horizontalRule',
|
|
2429
2429
|
addOptions() {
|
|
2430
2430
|
return {
|
|
@@ -2436,7 +2436,7 @@ const HorizontalRule = Menu$4.Node.create({
|
|
|
2436
2436
|
return [{ tag: 'hr' }];
|
|
2437
2437
|
},
|
|
2438
2438
|
renderHTML({ HTMLAttributes }) {
|
|
2439
|
-
return ['hr', Menu$
|
|
2439
|
+
return ['hr', Menu$3.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
|
|
2440
2440
|
},
|
|
2441
2441
|
addCommands() {
|
|
2442
2442
|
return {
|
|
@@ -2485,7 +2485,7 @@ const HorizontalRule = Menu$4.Node.create({
|
|
|
2485
2485
|
},
|
|
2486
2486
|
addInputRules() {
|
|
2487
2487
|
return [
|
|
2488
|
-
Menu$
|
|
2488
|
+
Menu$3.nodeInputRule({
|
|
2489
2489
|
find: /^(?:---|—-|___\s|\*\*\*\s)$/,
|
|
2490
2490
|
type: this.type,
|
|
2491
2491
|
}),
|
|
@@ -2513,7 +2513,7 @@ const underscorePasteRegex = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g;
|
|
|
2513
2513
|
* This extension allows you to create italic text.
|
|
2514
2514
|
* @see https://www.tiptap.dev/api/marks/italic
|
|
2515
2515
|
*/
|
|
2516
|
-
const Italic = Menu$
|
|
2516
|
+
const Italic = Menu$3.Mark.create({
|
|
2517
2517
|
name: 'italic',
|
|
2518
2518
|
addOptions() {
|
|
2519
2519
|
return {
|
|
@@ -2535,7 +2535,7 @@ const Italic = Menu$4.Mark.create({
|
|
|
2535
2535
|
];
|
|
2536
2536
|
},
|
|
2537
2537
|
renderHTML({ HTMLAttributes }) {
|
|
2538
|
-
return ['em', Menu$
|
|
2538
|
+
return ['em', Menu$3.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
2539
2539
|
},
|
|
2540
2540
|
addCommands() {
|
|
2541
2541
|
return {
|
|
@@ -2558,11 +2558,11 @@ const Italic = Menu$4.Mark.create({
|
|
|
2558
2558
|
},
|
|
2559
2559
|
addInputRules() {
|
|
2560
2560
|
return [
|
|
2561
|
-
Menu$
|
|
2561
|
+
Menu$3.markInputRule({
|
|
2562
2562
|
find: starInputRegex,
|
|
2563
2563
|
type: this.type,
|
|
2564
2564
|
}),
|
|
2565
|
-
Menu$
|
|
2565
|
+
Menu$3.markInputRule({
|
|
2566
2566
|
find: underscoreInputRegex,
|
|
2567
2567
|
type: this.type,
|
|
2568
2568
|
}),
|
|
@@ -2570,11 +2570,11 @@ const Italic = Menu$4.Mark.create({
|
|
|
2570
2570
|
},
|
|
2571
2571
|
addPasteRules() {
|
|
2572
2572
|
return [
|
|
2573
|
-
Menu$
|
|
2573
|
+
Menu$3.markPasteRule({
|
|
2574
2574
|
find: starPasteRegex,
|
|
2575
2575
|
type: this.type,
|
|
2576
2576
|
}),
|
|
2577
|
-
Menu$
|
|
2577
|
+
Menu$3.markPasteRule({
|
|
2578
2578
|
find: underscorePasteRegex,
|
|
2579
2579
|
type: this.type,
|
|
2580
2580
|
}),
|
|
@@ -2586,7 +2586,7 @@ const Italic = Menu$4.Mark.create({
|
|
|
2586
2586
|
* This extension allows you to create list items.
|
|
2587
2587
|
* @see https://www.tiptap.dev/api/nodes/list-item
|
|
2588
2588
|
*/
|
|
2589
|
-
const ListItem$1 = Menu$
|
|
2589
|
+
const ListItem$1 = Menu$3.Node.create({
|
|
2590
2590
|
name: 'listItem',
|
|
2591
2591
|
addOptions() {
|
|
2592
2592
|
return {
|
|
@@ -2605,7 +2605,7 @@ const ListItem$1 = Menu$4.Node.create({
|
|
|
2605
2605
|
];
|
|
2606
2606
|
},
|
|
2607
2607
|
renderHTML({ HTMLAttributes }) {
|
|
2608
|
-
return ['li', Menu$
|
|
2608
|
+
return ['li', Menu$3.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
2609
2609
|
},
|
|
2610
2610
|
addKeyboardShortcuts() {
|
|
2611
2611
|
return {
|
|
@@ -2620,7 +2620,7 @@ const ListItem$1 = Menu$4.Node.create({
|
|
|
2620
2620
|
* This extension allows you to create list items.
|
|
2621
2621
|
* @see https://www.tiptap.dev/api/nodes/list-item
|
|
2622
2622
|
*/
|
|
2623
|
-
const ListItem = Menu$
|
|
2623
|
+
const ListItem = Menu$3.Node.create({
|
|
2624
2624
|
name: 'listItem',
|
|
2625
2625
|
addOptions() {
|
|
2626
2626
|
return {
|
|
@@ -2639,7 +2639,7 @@ const ListItem = Menu$4.Node.create({
|
|
|
2639
2639
|
];
|
|
2640
2640
|
},
|
|
2641
2641
|
renderHTML({ HTMLAttributes }) {
|
|
2642
|
-
return ['li', Menu$
|
|
2642
|
+
return ['li', Menu$3.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
2643
2643
|
},
|
|
2644
2644
|
addKeyboardShortcuts() {
|
|
2645
2645
|
return {
|
|
@@ -2655,7 +2655,7 @@ const ListItem = Menu$4.Node.create({
|
|
|
2655
2655
|
* for the `textColor` and `backgroundColor` extensions.
|
|
2656
2656
|
* @see https://www.tiptap.dev/api/marks/text-style
|
|
2657
2657
|
*/
|
|
2658
|
-
const TextStyle = Menu$
|
|
2658
|
+
const TextStyle = Menu$3.Mark.create({
|
|
2659
2659
|
name: 'textStyle',
|
|
2660
2660
|
addOptions() {
|
|
2661
2661
|
return {
|
|
@@ -2677,12 +2677,12 @@ const TextStyle = Menu$4.Mark.create({
|
|
|
2677
2677
|
];
|
|
2678
2678
|
},
|
|
2679
2679
|
renderHTML({ HTMLAttributes }) {
|
|
2680
|
-
return ['span', Menu$
|
|
2680
|
+
return ['span', Menu$3.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
2681
2681
|
},
|
|
2682
2682
|
addCommands() {
|
|
2683
2683
|
return {
|
|
2684
2684
|
removeEmptyTextStyle: () => ({ state, commands }) => {
|
|
2685
|
-
const attributes = Menu$
|
|
2685
|
+
const attributes = Menu$3.getMarkAttributes(state, this.type);
|
|
2686
2686
|
const hasStyles = Object.entries(attributes).some(([, value]) => !!value);
|
|
2687
2687
|
if (hasStyles) {
|
|
2688
2688
|
return true;
|
|
@@ -2703,7 +2703,7 @@ const inputRegex$1 = /^(\d+)\.\s$/;
|
|
|
2703
2703
|
* @see https://www.tiptap.dev/api/nodes/ordered-list
|
|
2704
2704
|
* @see https://www.tiptap.dev/api/nodes/list-item
|
|
2705
2705
|
*/
|
|
2706
|
-
const OrderedList = Menu$
|
|
2706
|
+
const OrderedList = Menu$3.Node.create({
|
|
2707
2707
|
name: 'orderedList',
|
|
2708
2708
|
addOptions() {
|
|
2709
2709
|
return {
|
|
@@ -2739,8 +2739,8 @@ const OrderedList = Menu$4.Node.create({
|
|
|
2739
2739
|
renderHTML({ HTMLAttributes }) {
|
|
2740
2740
|
const { start, ...attributesWithoutStart } = HTMLAttributes;
|
|
2741
2741
|
return start === 1
|
|
2742
|
-
? ['ol', Menu$
|
|
2743
|
-
: ['ol', Menu$
|
|
2742
|
+
? ['ol', Menu$3.mergeAttributes(this.options.HTMLAttributes, attributesWithoutStart), 0]
|
|
2743
|
+
: ['ol', Menu$3.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
2744
2744
|
},
|
|
2745
2745
|
addCommands() {
|
|
2746
2746
|
return {
|
|
@@ -2758,14 +2758,14 @@ const OrderedList = Menu$4.Node.create({
|
|
|
2758
2758
|
};
|
|
2759
2759
|
},
|
|
2760
2760
|
addInputRules() {
|
|
2761
|
-
let inputRule = Menu$
|
|
2761
|
+
let inputRule = Menu$3.wrappingInputRule({
|
|
2762
2762
|
find: inputRegex$1,
|
|
2763
2763
|
type: this.type,
|
|
2764
2764
|
getAttributes: match => ({ start: +match[1] }),
|
|
2765
2765
|
joinPredicate: (match, node) => node.childCount + node.attrs.start === +match[1],
|
|
2766
2766
|
});
|
|
2767
2767
|
if (this.options.keepMarks || this.options.keepAttributes) {
|
|
2768
|
-
inputRule = Menu$
|
|
2768
|
+
inputRule = Menu$3.wrappingInputRule({
|
|
2769
2769
|
find: inputRegex$1,
|
|
2770
2770
|
type: this.type,
|
|
2771
2771
|
keepMarks: this.options.keepMarks,
|
|
@@ -2785,7 +2785,7 @@ const OrderedList = Menu$4.Node.create({
|
|
|
2785
2785
|
* This extension allows you to create paragraphs.
|
|
2786
2786
|
* @see https://www.tiptap.dev/api/nodes/paragraph
|
|
2787
2787
|
*/
|
|
2788
|
-
const Paragraph = Menu$
|
|
2788
|
+
const Paragraph = Menu$3.Node.create({
|
|
2789
2789
|
name: 'paragraph',
|
|
2790
2790
|
priority: 1000,
|
|
2791
2791
|
addOptions() {
|
|
@@ -2801,7 +2801,7 @@ const Paragraph = Menu$4.Node.create({
|
|
|
2801
2801
|
];
|
|
2802
2802
|
},
|
|
2803
2803
|
renderHTML({ HTMLAttributes }) {
|
|
2804
|
-
return ['p', Menu$
|
|
2804
|
+
return ['p', Menu$3.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
2805
2805
|
},
|
|
2806
2806
|
addCommands() {
|
|
2807
2807
|
return {
|
|
@@ -2829,7 +2829,7 @@ const pasteRegex = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g;
|
|
|
2829
2829
|
* This extension allows you to create strike text.
|
|
2830
2830
|
* @see https://www.tiptap.dev/api/marks/strike
|
|
2831
2831
|
*/
|
|
2832
|
-
const Strike = Menu$
|
|
2832
|
+
const Strike = Menu$3.Mark.create({
|
|
2833
2833
|
name: 'strike',
|
|
2834
2834
|
addOptions() {
|
|
2835
2835
|
return {
|
|
@@ -2855,7 +2855,7 @@ const Strike = Menu$4.Mark.create({
|
|
|
2855
2855
|
];
|
|
2856
2856
|
},
|
|
2857
2857
|
renderHTML({ HTMLAttributes }) {
|
|
2858
|
-
return ['s', Menu$
|
|
2858
|
+
return ['s', Menu$3.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
2859
2859
|
},
|
|
2860
2860
|
addCommands() {
|
|
2861
2861
|
return {
|
|
@@ -2877,7 +2877,7 @@ const Strike = Menu$4.Mark.create({
|
|
|
2877
2877
|
},
|
|
2878
2878
|
addInputRules() {
|
|
2879
2879
|
return [
|
|
2880
|
-
Menu$
|
|
2880
|
+
Menu$3.markInputRule({
|
|
2881
2881
|
find: inputRegex,
|
|
2882
2882
|
type: this.type,
|
|
2883
2883
|
}),
|
|
@@ -2885,7 +2885,7 @@ const Strike = Menu$4.Mark.create({
|
|
|
2885
2885
|
},
|
|
2886
2886
|
addPasteRules() {
|
|
2887
2887
|
return [
|
|
2888
|
-
Menu$
|
|
2888
|
+
Menu$3.markPasteRule({
|
|
2889
2889
|
find: pasteRegex,
|
|
2890
2890
|
type: this.type,
|
|
2891
2891
|
}),
|
|
@@ -2897,7 +2897,7 @@ const Strike = Menu$4.Mark.create({
|
|
|
2897
2897
|
* This extension allows you to create text nodes.
|
|
2898
2898
|
* @see https://www.tiptap.dev/api/nodes/text
|
|
2899
2899
|
*/
|
|
2900
|
-
const Text$1 = Menu$
|
|
2900
|
+
const Text$1 = Menu$3.Node.create({
|
|
2901
2901
|
name: 'text',
|
|
2902
2902
|
group: 'inline',
|
|
2903
2903
|
});
|
|
@@ -2907,7 +2907,7 @@ const Text$1 = Menu$4.Node.create({
|
|
|
2907
2907
|
*
|
|
2908
2908
|
* It’s a good starting point for building your own editor.
|
|
2909
2909
|
*/
|
|
2910
|
-
const StarterKit = Menu$
|
|
2910
|
+
const StarterKit = Menu$3.Extension.create({
|
|
2911
2911
|
name: 'starterKit',
|
|
2912
2912
|
addExtensions() {
|
|
2913
2913
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
@@ -2970,7 +2970,7 @@ const StarterKit = Menu$4.Extension.create({
|
|
|
2970
2970
|
},
|
|
2971
2971
|
});
|
|
2972
2972
|
|
|
2973
|
-
var HighlightInternal = Menu$
|
|
2973
|
+
var HighlightInternal = Menu$3.Extension.create({
|
|
2974
2974
|
name: "HighlightInternal",
|
|
2975
2975
|
addOptions: function addOptions() {
|
|
2976
2976
|
return {
|
|
@@ -5612,7 +5612,7 @@ function registered(aliasOrLanguage) {
|
|
|
5612
5612
|
}
|
|
5613
5613
|
function getDecorations({ doc, name, lowlight, defaultLanguage, }) {
|
|
5614
5614
|
const decorations = [];
|
|
5615
|
-
Menu$
|
|
5615
|
+
Menu$3.findChildren(doc, node => node.type.name === name).forEach(block => {
|
|
5616
5616
|
let from = block.pos + 1;
|
|
5617
5617
|
const language = block.node.attrs.language || defaultLanguage;
|
|
5618
5618
|
const languages = lowlight.listLanguages();
|
|
@@ -5622,7 +5622,7 @@ function getDecorations({ doc, name, lowlight, defaultLanguage, }) {
|
|
|
5622
5622
|
parseNodes(nodes).forEach(node => {
|
|
5623
5623
|
const to = from + node.text.length;
|
|
5624
5624
|
if (node.classes.length) {
|
|
5625
|
-
const decoration = Menu$
|
|
5625
|
+
const decoration = Menu$3.Decoration.inline(from, to, {
|
|
5626
5626
|
class: node.classes.join(' '),
|
|
5627
5627
|
});
|
|
5628
5628
|
decorations.push(decoration);
|
|
@@ -5630,7 +5630,7 @@ function getDecorations({ doc, name, lowlight, defaultLanguage, }) {
|
|
|
5630
5630
|
from = to;
|
|
5631
5631
|
});
|
|
5632
5632
|
});
|
|
5633
|
-
return Menu$
|
|
5633
|
+
return Menu$3.DecorationSet.create(doc, decorations);
|
|
5634
5634
|
}
|
|
5635
5635
|
function isFunction(param) {
|
|
5636
5636
|
return typeof param === 'function';
|
|
@@ -5651,8 +5651,8 @@ function LowlightPlugin({ name, lowlight, defaultLanguage, }) {
|
|
|
5651
5651
|
apply: (transaction, decorationSet, oldState, newState) => {
|
|
5652
5652
|
const oldNodeName = oldState.selection.$head.parent.type.name;
|
|
5653
5653
|
const newNodeName = newState.selection.$head.parent.type.name;
|
|
5654
|
-
const oldNodes = Menu$
|
|
5655
|
-
const newNodes = Menu$
|
|
5654
|
+
const oldNodes = Menu$3.findChildren(oldState.doc, node => node.type.name === name);
|
|
5655
|
+
const newNodes = Menu$3.findChildren(newState.doc, node => node.type.name === name);
|
|
5656
5656
|
if (transaction.docChanged
|
|
5657
5657
|
// Apply decorations if:
|
|
5658
5658
|
// selection includes named node,
|
|
@@ -5725,7 +5725,7 @@ const CodeBlockLowlight = CodeBlock$1.extend({
|
|
|
5725
5725
|
|
|
5726
5726
|
var SORTED_LANGUAGE_LIST = [].concat(_toConsumableArray__default["default"](core$1.lowlight.listLanguages()), ["html"]).sort();
|
|
5727
5727
|
|
|
5728
|
-
var Menu$
|
|
5728
|
+
var Menu$2 = neetoui.Dropdown.Menu,
|
|
5729
5729
|
MenuItem$1 = neetoui.Dropdown.MenuItem;
|
|
5730
5730
|
var CodeBlockComponent = function CodeBlockComponent(_ref) {
|
|
5731
5731
|
var _node$attrs2, _node$content;
|
|
@@ -5760,7 +5760,7 @@ var CodeBlockComponent = function CodeBlockComponent(_ref) {
|
|
|
5760
5760
|
}, 0);
|
|
5761
5761
|
}
|
|
5762
5762
|
}, []);
|
|
5763
|
-
return /*#__PURE__*/React__default["default"].createElement(Menu$
|
|
5763
|
+
return /*#__PURE__*/React__default["default"].createElement(Menu$3.NodeViewWrapper, {
|
|
5764
5764
|
"data-cy": "neeto-editor-code-block"
|
|
5765
5765
|
}, /*#__PURE__*/React__default["default"].createElement("pre", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5766
5766
|
className: "neeto-editor-codeblock-options",
|
|
@@ -5788,7 +5788,7 @@ var CodeBlockComponent = function CodeBlockComponent(_ref) {
|
|
|
5788
5788
|
e.preventDefault();
|
|
5789
5789
|
e.stopPropagation();
|
|
5790
5790
|
}
|
|
5791
|
-
}), /*#__PURE__*/React__default["default"].createElement(Menu$
|
|
5791
|
+
}), /*#__PURE__*/React__default["default"].createElement(Menu$2, {
|
|
5792
5792
|
className: "neeto-editor-codeblock-options__menu"
|
|
5793
5793
|
}, filteredAndSortedLanguageList.map(function (language) {
|
|
5794
5794
|
return /*#__PURE__*/React__default["default"].createElement(MenuItem$1.Button, {
|
|
@@ -5801,20 +5801,20 @@ var CodeBlockComponent = function CodeBlockComponent(_ref) {
|
|
|
5801
5801
|
size: "small",
|
|
5802
5802
|
style: "secondary",
|
|
5803
5803
|
value: node === null || node === void 0 || (_node$content = node.content) === null || _node$content === void 0 || (_node$content = _node$content.content[0]) === null || _node$content === void 0 ? void 0 : _node$content.text
|
|
5804
|
-
})), /*#__PURE__*/React__default["default"].createElement(Menu$
|
|
5804
|
+
})), /*#__PURE__*/React__default["default"].createElement(Menu$3.NodeViewContent, {
|
|
5805
5805
|
as: "code"
|
|
5806
5806
|
})));
|
|
5807
5807
|
};
|
|
5808
5808
|
|
|
5809
5809
|
var CodeBlock = CodeBlockLowlight.extend({
|
|
5810
5810
|
addNodeView: function addNodeView() {
|
|
5811
|
-
return Menu$
|
|
5811
|
+
return Menu$3.ReactNodeViewRenderer(CodeBlockComponent);
|
|
5812
5812
|
}
|
|
5813
5813
|
}).configure({
|
|
5814
5814
|
lowlight: core$1.lowlight
|
|
5815
5815
|
});
|
|
5816
5816
|
|
|
5817
|
-
var CustomCommands = Menu$
|
|
5817
|
+
var CustomCommands = Menu$3.Extension.create({
|
|
5818
5818
|
name: "paste-unformatted",
|
|
5819
5819
|
addCommands: function addCommands() {
|
|
5820
5820
|
return {
|
|
@@ -6670,7 +6670,7 @@ var Resizable = /** @class */ (function (_super) {
|
|
|
6670
6670
|
return Resizable;
|
|
6671
6671
|
}(React__namespace.PureComponent));
|
|
6672
6672
|
|
|
6673
|
-
var Menu$
|
|
6673
|
+
var Menu$1 = function Menu(_ref) {
|
|
6674
6674
|
var align = _ref.align,
|
|
6675
6675
|
editor = _ref.editor,
|
|
6676
6676
|
updateAttributes = _ref.updateAttributes,
|
|
@@ -6736,7 +6736,7 @@ var EmbedComponent = function EmbedComponent(_ref) {
|
|
|
6736
6736
|
})));
|
|
6737
6737
|
editor.commands.focus();
|
|
6738
6738
|
};
|
|
6739
|
-
return /*#__PURE__*/React__default["default"].createElement(Menu$
|
|
6739
|
+
return /*#__PURE__*/React__default["default"].createElement(Menu$3.NodeViewWrapper, {
|
|
6740
6740
|
className: "neeto-editor__video-wrapper neeto-editor__video--".concat(align),
|
|
6741
6741
|
"data-cy": "neeto-editor-video-wrapper"
|
|
6742
6742
|
}, /*#__PURE__*/React__default["default"].createElement(Resizable, {
|
|
@@ -6747,7 +6747,7 @@ var EmbedComponent = function EmbedComponent(_ref) {
|
|
|
6747
6747
|
width: width
|
|
6748
6748
|
},
|
|
6749
6749
|
onResizeStop: handleResize
|
|
6750
|
-
}, /*#__PURE__*/React__default["default"].createElement(Menu$
|
|
6750
|
+
}, /*#__PURE__*/React__default["default"].createElement(Menu$1, {
|
|
6751
6751
|
align: align,
|
|
6752
6752
|
deleteNode: deleteNode,
|
|
6753
6753
|
editor: editor,
|
|
@@ -6757,7 +6757,7 @@ var EmbedComponent = function EmbedComponent(_ref) {
|
|
|
6757
6757
|
|
|
6758
6758
|
function ownKeys$b(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6759
6759
|
function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$b(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6760
|
-
var Embeds = Menu$
|
|
6760
|
+
var Embeds = Menu$3.Node.create({
|
|
6761
6761
|
name: "external-video",
|
|
6762
6762
|
addOptions: function addOptions() {
|
|
6763
6763
|
return {
|
|
@@ -6826,10 +6826,10 @@ var Embeds = Menu$4.Node.create({
|
|
|
6826
6826
|
}, ["div", {
|
|
6827
6827
|
"class": "neeto-editor__video-iframe",
|
|
6828
6828
|
style: "width: ".concat(figwidth, "px; height: ").concat(figheight, "px;")
|
|
6829
|
-
}, ["iframe", Menu$
|
|
6829
|
+
}, ["iframe", Menu$3.mergeAttributes(this.options.HTMLAttributes, _objectSpread$b({}, HTMLAttributes))]]];
|
|
6830
6830
|
},
|
|
6831
6831
|
addNodeView: function addNodeView() {
|
|
6832
|
-
return Menu$
|
|
6832
|
+
return Menu$3.ReactNodeViewRenderer(EmbedComponent);
|
|
6833
6833
|
},
|
|
6834
6834
|
addCommands: function addCommands() {
|
|
6835
6835
|
var _this = this;
|
|
@@ -6846,7 +6846,7 @@ var Embeds = Menu$4.Node.create({
|
|
|
6846
6846
|
};
|
|
6847
6847
|
},
|
|
6848
6848
|
addPasteRules: function addPasteRules() {
|
|
6849
|
-
return [new Menu$
|
|
6849
|
+
return [new Menu$3.PasteRule({
|
|
6850
6850
|
find: constants.COMBINED_REGEX,
|
|
6851
6851
|
handler: function handler(_ref3) {
|
|
6852
6852
|
var state = _ref3.state,
|
|
@@ -6854,7 +6854,7 @@ var Embeds = Menu$4.Node.create({
|
|
|
6854
6854
|
match = _ref3.match;
|
|
6855
6855
|
state.tr["delete"](range.from, range.to);
|
|
6856
6856
|
state.tr.setSelection(utils.TextSelection.create(state.doc, range.from + 1));
|
|
6857
|
-
var validatedUrl = Menu$
|
|
6857
|
+
var validatedUrl = Menu$3.validateUrl(match[0]);
|
|
6858
6858
|
if (validatedUrl) {
|
|
6859
6859
|
var node = state.schema.nodes["external-video"].create({
|
|
6860
6860
|
src: validatedUrl
|
|
@@ -6871,7 +6871,7 @@ var Embeds = Menu$4.Node.create({
|
|
|
6871
6871
|
function findSuggestionMatch(config) {
|
|
6872
6872
|
var _a;
|
|
6873
6873
|
const { char, allowSpaces, allowedPrefixes, startOfLine, $position, } = config;
|
|
6874
|
-
const escapedChar = Menu$
|
|
6874
|
+
const escapedChar = Menu$3.escapeForRegEx(char);
|
|
6875
6875
|
const suffix = new RegExp(`\\s${escapedChar}$`);
|
|
6876
6876
|
const prefix = startOfLine ? '^' : '';
|
|
6877
6877
|
const regexp = allowSpaces
|
|
@@ -7084,8 +7084,8 @@ function Suggestion({ pluginKey = SuggestionPluginKey, editor, char = '@', allow
|
|
|
7084
7084
|
if (!active) {
|
|
7085
7085
|
return null;
|
|
7086
7086
|
}
|
|
7087
|
-
return Menu$
|
|
7088
|
-
Menu$
|
|
7087
|
+
return Menu$3.DecorationSet.create(state.doc, [
|
|
7088
|
+
Menu$3.Decoration.inline(range.from, range.to, {
|
|
7089
7089
|
nodeName: decorationTag,
|
|
7090
7090
|
class: decorationClass,
|
|
7091
7091
|
'data-decoration-id': decorationId,
|
|
@@ -7100,7 +7100,7 @@ function Suggestion({ pluginKey = SuggestionPluginKey, editor, char = '@', allow
|
|
|
7100
7100
|
function ownKeys$a(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7101
7101
|
function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$a(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7102
7102
|
var EmojiPickerPluginKey = new utils.PluginKey("emoji-picker");
|
|
7103
|
-
var EmojiPicker = Menu$
|
|
7103
|
+
var EmojiPicker = Menu$3.Node.create({
|
|
7104
7104
|
name: "emojiPicker",
|
|
7105
7105
|
group: "inline",
|
|
7106
7106
|
inline: true,
|
|
@@ -7120,7 +7120,7 @@ var EmojiPicker = Menu$4.Node.create({
|
|
|
7120
7120
|
var popup;
|
|
7121
7121
|
return {
|
|
7122
7122
|
onStart: function onStart(props) {
|
|
7123
|
-
reactRenderer = new Menu$
|
|
7123
|
+
reactRenderer = new Menu$3.ReactRenderer(Menu$3.EmojiPickerMenu, {
|
|
7124
7124
|
props: props,
|
|
7125
7125
|
editor: props.editor
|
|
7126
7126
|
});
|
|
@@ -7204,7 +7204,7 @@ var EmojiSuggestionMenu = /*#__PURE__*/function (_React$Component) {
|
|
|
7204
7204
|
});
|
|
7205
7205
|
_context.prev = 1;
|
|
7206
7206
|
_context.next = 4;
|
|
7207
|
-
return Menu$
|
|
7207
|
+
return Menu$3.emojiPickerApi.fetch();
|
|
7208
7208
|
case 4:
|
|
7209
7209
|
_yield$emojiPickerApi = _context.sent;
|
|
7210
7210
|
data = _yield$emojiPickerApi.data;
|
|
@@ -7369,7 +7369,7 @@ var EmojiSuggestionMenu = /*#__PURE__*/function (_React$Component) {
|
|
|
7369
7369
|
function ownKeys$9(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7370
7370
|
function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$9(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$9(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7371
7371
|
var EmojiSuggestionPluginKey = new utils.PluginKey("emoji-suggestion");
|
|
7372
|
-
var EmojiSuggestion = Menu$
|
|
7372
|
+
var EmojiSuggestion = Menu$3.Node.create({
|
|
7373
7373
|
name: "emojiSuggestion",
|
|
7374
7374
|
group: "inline",
|
|
7375
7375
|
inline: true,
|
|
@@ -7413,7 +7413,7 @@ var EmojiSuggestion = Menu$4.Node.create({
|
|
|
7413
7413
|
renderHTML: function renderHTML(_ref2) {
|
|
7414
7414
|
var node = _ref2.node,
|
|
7415
7415
|
HTMLAttributes = _ref2.HTMLAttributes;
|
|
7416
|
-
return ["span", Menu$
|
|
7416
|
+
return ["span", Menu$3.mergeAttributes({
|
|
7417
7417
|
"data-emoji": ""
|
|
7418
7418
|
}, this.options.HTMLAttributes, HTMLAttributes), this.options.renderEmoji({
|
|
7419
7419
|
node: node
|
|
@@ -7477,7 +7477,7 @@ var suggestionConfig = {
|
|
|
7477
7477
|
onUpdate: function onUpdate(props) {
|
|
7478
7478
|
var _popup$;
|
|
7479
7479
|
if (!(props.editor.view.input.lastKeyCode === 39 || props.editor.view.input.lastKeyCode === 37) && props.query.length === 1) {
|
|
7480
|
-
reactRenderer = new Menu$
|
|
7480
|
+
reactRenderer = new Menu$3.ReactRenderer(EmojiSuggestionMenu, {
|
|
7481
7481
|
props: props,
|
|
7482
7482
|
editor: props.editor
|
|
7483
7483
|
});
|
|
@@ -7607,12 +7607,12 @@ var ImageComponent = function ImageComponent(_ref) {
|
|
|
7607
7607
|
editor.commands.focus();
|
|
7608
7608
|
};
|
|
7609
7609
|
if (neetoCist.isNotPresent(src)) return null;
|
|
7610
|
-
return /*#__PURE__*/React__default["default"].createElement(Menu$
|
|
7610
|
+
return /*#__PURE__*/React__default["default"].createElement(Menu$3.NodeViewWrapper, {
|
|
7611
7611
|
className: "neeto-editor__image-wrapper neeto-editor__image--".concat(align),
|
|
7612
7612
|
"data-cy": "neeto-editor-image-wrapper"
|
|
7613
7613
|
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
7614
7614
|
ref: figureRef
|
|
7615
|
-
}, /*#__PURE__*/React__default["default"].createElement(Menu$
|
|
7615
|
+
}, /*#__PURE__*/React__default["default"].createElement(Menu$1, {
|
|
7616
7616
|
align: align,
|
|
7617
7617
|
deleteNode: deleteNode,
|
|
7618
7618
|
editor: editor,
|
|
@@ -7639,7 +7639,7 @@ var ImageComponent = function ImageComponent(_ref) {
|
|
|
7639
7639
|
}
|
|
7640
7640
|
}))) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7641
7641
|
className: "neeto-editor__image-placeholder"
|
|
7642
|
-
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Spinner, null)), /*#__PURE__*/React__default["default"].createElement(Menu$
|
|
7642
|
+
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Spinner, null)), /*#__PURE__*/React__default["default"].createElement(Menu$3.NodeViewContent, {
|
|
7643
7643
|
as: "figcaption",
|
|
7644
7644
|
className: classnames__default["default"]({
|
|
7645
7645
|
"is-empty": ramda.isEmpty(caption)
|
|
@@ -7688,7 +7688,7 @@ var upload = /*#__PURE__*/function () {
|
|
|
7688
7688
|
return _ref.apply(this, arguments);
|
|
7689
7689
|
};
|
|
7690
7690
|
}();
|
|
7691
|
-
var ImageExtension = Menu$
|
|
7691
|
+
var ImageExtension = Menu$3.Node.create({
|
|
7692
7692
|
name: "image",
|
|
7693
7693
|
addOptions: function addOptions() {
|
|
7694
7694
|
return {
|
|
@@ -7774,13 +7774,13 @@ var ImageExtension = Menu$4.Node.create({
|
|
|
7774
7774
|
var captionAttrs = {
|
|
7775
7775
|
style: "width:".concat(figwidth, "px;")
|
|
7776
7776
|
};
|
|
7777
|
-
return ["div", wrapperDivAttrs, ["figure", this.options.HTMLAttributes, ["a", wrapperLinkAttrs, ["img", Menu$
|
|
7777
|
+
return ["div", wrapperDivAttrs, ["figure", this.options.HTMLAttributes, ["a", wrapperLinkAttrs, ["img", Menu$3.mergeAttributes(HTMLAttributes, {
|
|
7778
7778
|
draggable: false,
|
|
7779
7779
|
contenteditable: false
|
|
7780
7780
|
})]], ["figcaption", captionAttrs, 0]]];
|
|
7781
7781
|
},
|
|
7782
7782
|
addNodeView: function addNodeView() {
|
|
7783
|
-
return Menu$
|
|
7783
|
+
return Menu$3.ReactNodeViewRenderer(ImageComponent);
|
|
7784
7784
|
},
|
|
7785
7785
|
addCommands: function addCommands() {
|
|
7786
7786
|
var _this = this;
|
|
@@ -7865,7 +7865,7 @@ var ImageExtension = Menu$4.Node.create({
|
|
|
7865
7865
|
}
|
|
7866
7866
|
});
|
|
7867
7867
|
|
|
7868
|
-
var FigCaption = Menu$
|
|
7868
|
+
var FigCaption = Menu$3.Node.create({
|
|
7869
7869
|
name: "figcaption",
|
|
7870
7870
|
content: "text*",
|
|
7871
7871
|
selectable: false,
|
|
@@ -7877,7 +7877,7 @@ var FigCaption = Menu$4.Node.create({
|
|
|
7877
7877
|
},
|
|
7878
7878
|
renderHTML: function renderHTML(_ref) {
|
|
7879
7879
|
var HTMLAttributes = _ref.HTMLAttributes;
|
|
7880
|
-
return ["figcaption", Menu$
|
|
7880
|
+
return ["figcaption", Menu$3.mergeAttributes(HTMLAttributes), 0];
|
|
7881
7881
|
}
|
|
7882
7882
|
});
|
|
7883
7883
|
|
|
@@ -7887,7 +7887,7 @@ var KeyboardShortcuts = function KeyboardShortcuts(_ref) {
|
|
|
7887
7887
|
var onSubmit = _ref.onSubmit,
|
|
7888
7888
|
shortcuts = _ref.shortcuts,
|
|
7889
7889
|
isBlockQuoteActive = _ref.isBlockQuoteActive;
|
|
7890
|
-
return Menu$
|
|
7890
|
+
return Menu$3.Extension.create({
|
|
7891
7891
|
name: "keyboard-shortcuts",
|
|
7892
7892
|
addKeyboardShortcuts: function addKeyboardShortcuts() {
|
|
7893
7893
|
var _this = this;
|
|
@@ -9710,11 +9710,11 @@ function autolink(options) {
|
|
|
9710
9710
|
return;
|
|
9711
9711
|
}
|
|
9712
9712
|
const { tr } = newState;
|
|
9713
|
-
const transform = Menu$
|
|
9714
|
-
const changes = Menu$
|
|
9713
|
+
const transform = Menu$3.combineTransactionSteps(oldState.doc, [...transactions]);
|
|
9714
|
+
const changes = Menu$3.getChangedRanges(transform);
|
|
9715
9715
|
changes.forEach(({ newRange }) => {
|
|
9716
9716
|
// Now let’s see if we can add new links.
|
|
9717
|
-
const nodesInChangedRanges = Menu$
|
|
9717
|
+
const nodesInChangedRanges = Menu$3.findChildrenInRange(newState.doc, newRange, node => node.isTextblock);
|
|
9718
9718
|
let textBlock;
|
|
9719
9719
|
let textBeforeWhitespace;
|
|
9720
9720
|
if (nodesInChangedRanges.length > 1) {
|
|
@@ -9766,7 +9766,7 @@ function autolink(options) {
|
|
|
9766
9766
|
})
|
|
9767
9767
|
// Add link mark.
|
|
9768
9768
|
.forEach(link => {
|
|
9769
|
-
if (Menu$
|
|
9769
|
+
if (Menu$3.getMarksBetween(link.from, link.to, newState.doc).some(item => item.mark.type === options.type)) {
|
|
9770
9770
|
return;
|
|
9771
9771
|
}
|
|
9772
9772
|
tr.addMark(link.from, link.to, options.type.create({
|
|
@@ -9804,7 +9804,7 @@ function clickHandler(options) {
|
|
|
9804
9804
|
if (!els.find(value => value.nodeName === 'A')) {
|
|
9805
9805
|
return false;
|
|
9806
9806
|
}
|
|
9807
|
-
const attrs = Menu$
|
|
9807
|
+
const attrs = Menu$3.getAttributes(view.state, options.type.name);
|
|
9808
9808
|
const link = event.target;
|
|
9809
9809
|
const href = (_a = link === null || link === void 0 ? void 0 : link.href) !== null && _a !== void 0 ? _a : attrs.href;
|
|
9810
9810
|
const target = (_b = link === null || link === void 0 ? void 0 : link.target) !== null && _b !== void 0 ? _b : attrs.target;
|
|
@@ -9849,7 +9849,7 @@ function pasteHandler(options) {
|
|
|
9849
9849
|
* This extension allows you to create links.
|
|
9850
9850
|
* @see https://www.tiptap.dev/api/marks/link
|
|
9851
9851
|
*/
|
|
9852
|
-
const Link$1 = Menu$
|
|
9852
|
+
const Link$1 = Menu$3.Mark.create({
|
|
9853
9853
|
name: 'link',
|
|
9854
9854
|
priority: 1000,
|
|
9855
9855
|
keepOnSplit: false,
|
|
@@ -9907,9 +9907,9 @@ const Link$1 = Menu$4.Mark.create({
|
|
|
9907
9907
|
// eslint-disable-next-line no-script-url
|
|
9908
9908
|
if ((_a = HTMLAttributes.href) === null || _a === void 0 ? void 0 : _a.startsWith('javascript:')) {
|
|
9909
9909
|
// strip out the href
|
|
9910
|
-
return ['a', Menu$
|
|
9910
|
+
return ['a', Menu$3.mergeAttributes(this.options.HTMLAttributes, { ...HTMLAttributes, href: '' }), 0];
|
|
9911
9911
|
}
|
|
9912
|
-
return ['a', Menu$
|
|
9912
|
+
return ['a', Menu$3.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
9913
9913
|
},
|
|
9914
9914
|
addCommands() {
|
|
9915
9915
|
return {
|
|
@@ -9932,7 +9932,7 @@ const Link$1 = Menu$4.Mark.create({
|
|
|
9932
9932
|
},
|
|
9933
9933
|
addPasteRules() {
|
|
9934
9934
|
return [
|
|
9935
|
-
Menu$
|
|
9935
|
+
Menu$3.markPasteRule({
|
|
9936
9936
|
find: text => {
|
|
9937
9937
|
const foundLinks = [];
|
|
9938
9938
|
if (text) {
|
|
@@ -9988,8 +9988,8 @@ var LINK_MARKDOWN_INPUT_REGEX = /(?:^|\s)\[([^\]]*)?\]\((\S+)(?: ["“](.+)["”
|
|
|
9988
9988
|
function ownKeys$6(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9989
9989
|
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$6(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$6(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9990
9990
|
var linkInputRule = function linkInputRule(config) {
|
|
9991
|
-
var defaultMarkInputRule = Menu$
|
|
9992
|
-
return new Menu$
|
|
9991
|
+
var defaultMarkInputRule = Menu$3.markInputRule(config);
|
|
9992
|
+
return new Menu$3.InputRule({
|
|
9993
9993
|
find: config.find,
|
|
9994
9994
|
handler: function handler(props) {
|
|
9995
9995
|
try {
|
|
@@ -10020,7 +10020,7 @@ var Link = Link$1.extend({
|
|
|
10020
10020
|
},
|
|
10021
10021
|
renderHTML: function renderHTML(_ref) {
|
|
10022
10022
|
var HTMLAttributes = _ref.HTMLAttributes;
|
|
10023
|
-
return ["a", Menu$
|
|
10023
|
+
return ["a", Menu$3.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes, {
|
|
10024
10024
|
"class": "link"
|
|
10025
10025
|
}), 0];
|
|
10026
10026
|
},
|
|
@@ -10048,7 +10048,7 @@ const MentionPluginKey = new utils.PluginKey('mention');
|
|
|
10048
10048
|
* This extension allows you to insert mentions into the editor.
|
|
10049
10049
|
* @see https://www.tiptap.dev/api/extensions/mention
|
|
10050
10050
|
*/
|
|
10051
|
-
const Mention$1 = Menu$
|
|
10051
|
+
const Mention$1 = Menu$3.Node.create({
|
|
10052
10052
|
name: 'mention',
|
|
10053
10053
|
addOptions() {
|
|
10054
10054
|
return {
|
|
@@ -10062,7 +10062,7 @@ const Mention$1 = Menu$4.Node.create({
|
|
|
10062
10062
|
var _a;
|
|
10063
10063
|
return [
|
|
10064
10064
|
'span',
|
|
10065
|
-
Menu$
|
|
10065
|
+
Menu$3.mergeAttributes(this.HTMLAttributes, options.HTMLAttributes),
|
|
10066
10066
|
`${options.suggestion.char}${(_a = node.attrs.label) !== null && _a !== void 0 ? _a : node.attrs.id}`,
|
|
10067
10067
|
];
|
|
10068
10068
|
},
|
|
@@ -10147,7 +10147,7 @@ const Mention$1 = Menu$4.Node.create({
|
|
|
10147
10147
|
console.warn('renderLabel is deprecated use renderText and renderHTML instead');
|
|
10148
10148
|
return [
|
|
10149
10149
|
'span',
|
|
10150
|
-
Menu$
|
|
10150
|
+
Menu$3.mergeAttributes({ 'data-type': this.name }, this.options.HTMLAttributes, HTMLAttributes),
|
|
10151
10151
|
this.options.renderLabel({
|
|
10152
10152
|
options: this.options,
|
|
10153
10153
|
node,
|
|
@@ -10155,7 +10155,7 @@ const Mention$1 = Menu$4.Node.create({
|
|
|
10155
10155
|
];
|
|
10156
10156
|
}
|
|
10157
10157
|
const mergedOptions = { ...this.options };
|
|
10158
|
-
mergedOptions.HTMLAttributes = Menu$
|
|
10158
|
+
mergedOptions.HTMLAttributes = Menu$3.mergeAttributes({ 'data-type': this.name }, this.options.HTMLAttributes, HTMLAttributes);
|
|
10159
10159
|
const html = this.options.renderHTML({
|
|
10160
10160
|
options: mergedOptions,
|
|
10161
10161
|
node,
|
|
@@ -10163,7 +10163,7 @@ const Mention$1 = Menu$4.Node.create({
|
|
|
10163
10163
|
if (typeof html === 'string') {
|
|
10164
10164
|
return [
|
|
10165
10165
|
'span',
|
|
10166
|
-
Menu$
|
|
10166
|
+
Menu$3.mergeAttributes({ 'data-type': this.name }, this.options.HTMLAttributes, HTMLAttributes),
|
|
10167
10167
|
html,
|
|
10168
10168
|
];
|
|
10169
10169
|
}
|
|
@@ -10379,7 +10379,7 @@ var suggestion$1 = {
|
|
|
10379
10379
|
var popup;
|
|
10380
10380
|
return {
|
|
10381
10381
|
onStart: function onStart(props) {
|
|
10382
|
-
reactRenderer = new Menu$
|
|
10382
|
+
reactRenderer = new Menu$3.ReactRenderer(MentionList, {
|
|
10383
10383
|
props: props,
|
|
10384
10384
|
editor: props.editor
|
|
10385
10385
|
});
|
|
@@ -10454,7 +10454,7 @@ var Mention = {
|
|
|
10454
10454
|
}
|
|
10455
10455
|
};
|
|
10456
10456
|
|
|
10457
|
-
var Placeholder = Menu$
|
|
10457
|
+
var Placeholder = Menu$3.Extension.create({
|
|
10458
10458
|
name: "placeholder",
|
|
10459
10459
|
addOptions: function addOptions() {
|
|
10460
10460
|
return {
|
|
@@ -10489,7 +10489,7 @@ var Placeholder = Menu$4.Extension.create({
|
|
|
10489
10489
|
if (_this.editor.isEmpty) {
|
|
10490
10490
|
classes.push(_this.options.emptyEditorClass);
|
|
10491
10491
|
}
|
|
10492
|
-
var decoration = Menu$
|
|
10492
|
+
var decoration = Menu$3.Decoration.node(pos, pos + node.nodeSize, {
|
|
10493
10493
|
"class": classes.join(" "),
|
|
10494
10494
|
"data-placeholder": _this.options.placeholder
|
|
10495
10495
|
});
|
|
@@ -10497,7 +10497,7 @@ var Placeholder = Menu$4.Extension.create({
|
|
|
10497
10497
|
}
|
|
10498
10498
|
return _this.options.includeChildren;
|
|
10499
10499
|
});
|
|
10500
|
-
return Menu$
|
|
10500
|
+
return Menu$3.DecorationSet.create(doc, decorations);
|
|
10501
10501
|
}
|
|
10502
10502
|
}
|
|
10503
10503
|
})];
|
|
@@ -10512,7 +10512,7 @@ var SelectionDecoration = Document.extend({
|
|
|
10512
10512
|
state: {
|
|
10513
10513
|
init: function init() {
|
|
10514
10514
|
return {
|
|
10515
|
-
decorations: Menu$
|
|
10515
|
+
decorations: Menu$3.DecorationSet.empty,
|
|
10516
10516
|
selectedTextDecoration: null
|
|
10517
10517
|
};
|
|
10518
10518
|
},
|
|
@@ -10525,7 +10525,7 @@ var SelectionDecoration = Document.extend({
|
|
|
10525
10525
|
decorations = decorations.remove([selectedTextDecoration]);
|
|
10526
10526
|
}
|
|
10527
10527
|
if (!selection.empty) {
|
|
10528
|
-
selectedTextDecoration = Menu$
|
|
10528
|
+
selectedTextDecoration = Menu$3.Decoration.inline(selection.from, selection.to, {
|
|
10529
10529
|
"class": "selected-text"
|
|
10530
10530
|
});
|
|
10531
10531
|
decorations = decorations.add(doc, [selectedTextDecoration]);
|
|
@@ -10549,7 +10549,7 @@ var SelectionDecoration = Document.extend({
|
|
|
10549
10549
|
|
|
10550
10550
|
function _callSuper$1(t, o, e) { return o = _getPrototypeOf__default["default"](o), _possibleConstructorReturn__default["default"](t, _isNativeReflectConstruct$1() ? Reflect.construct(o, e || [], _getPrototypeOf__default["default"](t).constructor) : o.apply(t, e)); }
|
|
10551
10551
|
function _isNativeReflectConstruct$1() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$1 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10552
|
-
var Menu
|
|
10552
|
+
var Menu = /*#__PURE__*/function (_React$Component) {
|
|
10553
10553
|
function Menu(props) {
|
|
10554
10554
|
var _this;
|
|
10555
10555
|
_classCallCheck__default["default"](this, Menu);
|
|
@@ -10761,7 +10761,7 @@ var CommandsList = /*#__PURE__*/function (_React$Component) {
|
|
|
10761
10761
|
return _createClass__default["default"](CommandsList, [{
|
|
10762
10762
|
key: "render",
|
|
10763
10763
|
value: function render() {
|
|
10764
|
-
return /*#__PURE__*/React__default["default"].createElement(Menu
|
|
10764
|
+
return /*#__PURE__*/React__default["default"].createElement(Menu, _extends__default["default"]({}, this.props, {
|
|
10765
10765
|
activeMenuIndex: this.state.activeMenuIndex,
|
|
10766
10766
|
items: this.props.items,
|
|
10767
10767
|
menuIndex: 0,
|
|
@@ -11026,7 +11026,7 @@ var SlashCommands = {
|
|
|
11026
11026
|
setMediaUploader: setMediaUploader,
|
|
11027
11027
|
setIsEmbedModalOpen: setIsEmbedModalOpen
|
|
11028
11028
|
});
|
|
11029
|
-
return Menu$
|
|
11029
|
+
return Menu$3.Extension.create({
|
|
11030
11030
|
name: "slash-commands",
|
|
11031
11031
|
addOptions: function addOptions() {
|
|
11032
11032
|
return {
|
|
@@ -11062,7 +11062,7 @@ var SlashCommands = {
|
|
|
11062
11062
|
if (props.editor.isActive("image") || props.editor.isActive("codeBlock")) {
|
|
11063
11063
|
return;
|
|
11064
11064
|
}
|
|
11065
|
-
reactRenderer = new Menu$
|
|
11065
|
+
reactRenderer = new Menu$3.ReactRenderer(CommandsList, {
|
|
11066
11066
|
props: props,
|
|
11067
11067
|
editor: props.editor
|
|
11068
11068
|
});
|
|
@@ -11081,7 +11081,7 @@ var SlashCommands = {
|
|
|
11081
11081
|
role: "dropdown",
|
|
11082
11082
|
theme: "neeto-editor-slash-menu"
|
|
11083
11083
|
});
|
|
11084
|
-
Menu$
|
|
11084
|
+
Menu$3.highlightFocussedNode();
|
|
11085
11085
|
},
|
|
11086
11086
|
onUpdate: function onUpdate(props) {
|
|
11087
11087
|
var _reactRenderer;
|
|
@@ -11104,7 +11104,7 @@ var SlashCommands = {
|
|
|
11104
11104
|
onExit: function onExit() {
|
|
11105
11105
|
popup && popup[0].destroy();
|
|
11106
11106
|
reactRenderer && reactRenderer.destroy();
|
|
11107
|
-
Menu$
|
|
11107
|
+
Menu$3.resetFocussedNode();
|
|
11108
11108
|
}
|
|
11109
11109
|
};
|
|
11110
11110
|
}
|
|
@@ -11138,7 +11138,7 @@ var suggestion = {
|
|
|
11138
11138
|
var popup;
|
|
11139
11139
|
return {
|
|
11140
11140
|
onStart: function onStart(props) {
|
|
11141
|
-
reactRenderer = new Menu$
|
|
11141
|
+
reactRenderer = new Menu$3.ReactRenderer(MentionList, {
|
|
11142
11142
|
props: props,
|
|
11143
11143
|
editor: props.editor
|
|
11144
11144
|
});
|
|
@@ -11183,7 +11183,7 @@ var SpecialMentions = Mention$1.extend({
|
|
|
11183
11183
|
renderHTML: function renderHTML(_ref2) {
|
|
11184
11184
|
var node = _ref2.node,
|
|
11185
11185
|
HTMLAttributes = _ref2.HTMLAttributes;
|
|
11186
|
-
return ["span", Menu$
|
|
11186
|
+
return ["span", Menu$3.mergeAttributes({
|
|
11187
11187
|
"data-type": this.name
|
|
11188
11188
|
}, this.options.HTMLAttributes, HTMLAttributes), renderLabel({
|
|
11189
11189
|
options: this.options,
|
|
@@ -11853,10 +11853,10 @@ function drawCellSelection(state) {
|
|
|
11853
11853
|
const cells = [];
|
|
11854
11854
|
state.selection.forEachCell((node, pos) => {
|
|
11855
11855
|
cells.push(
|
|
11856
|
-
Menu$
|
|
11856
|
+
Menu$3.Decoration.node(pos, pos + node.nodeSize, { class: "selectedCell" })
|
|
11857
11857
|
);
|
|
11858
11858
|
});
|
|
11859
|
-
return Menu$
|
|
11859
|
+
return Menu$3.DecorationSet.create(state.doc, cells);
|
|
11860
11860
|
}
|
|
11861
11861
|
function isCellBoundarySelection({ $from, $to }) {
|
|
11862
11862
|
if ($from.pos == $to.pos || $from.pos < $from.pos - 6)
|
|
@@ -12279,7 +12279,7 @@ function insertCells(state, dispatch, tableStart, rect, cells) {
|
|
|
12279
12279
|
}
|
|
12280
12280
|
|
|
12281
12281
|
// src/input.ts
|
|
12282
|
-
var handleKeyDown = Menu$
|
|
12282
|
+
var handleKeyDown = Menu$3.keydownHandler({
|
|
12283
12283
|
ArrowLeft: arrow("horiz", -1),
|
|
12284
12284
|
ArrowRight: arrow("horiz", 1),
|
|
12285
12285
|
ArrowUp: arrow("vert", -1),
|
|
@@ -12831,7 +12831,7 @@ function handleDecorations(state, cell) {
|
|
|
12831
12831
|
const $cell = state.doc.resolve(cell);
|
|
12832
12832
|
const table = $cell.node(-1);
|
|
12833
12833
|
if (!table) {
|
|
12834
|
-
return Menu$
|
|
12834
|
+
return Menu$3.DecorationSet.empty;
|
|
12835
12835
|
}
|
|
12836
12836
|
const map = TableMap.get(table);
|
|
12837
12837
|
const start = $cell.start(-1);
|
|
@@ -12843,10 +12843,10 @@ function handleDecorations(state, cell) {
|
|
|
12843
12843
|
const pos = start + cellPos + table.nodeAt(cellPos).nodeSize - 1;
|
|
12844
12844
|
const dom = document.createElement("div");
|
|
12845
12845
|
dom.className = "column-resize-handle";
|
|
12846
|
-
decorations.push(Menu$
|
|
12846
|
+
decorations.push(Menu$3.Decoration.widget(pos, dom));
|
|
12847
12847
|
}
|
|
12848
12848
|
}
|
|
12849
|
-
return Menu$
|
|
12849
|
+
return Menu$3.DecorationSet.create(state.doc, decorations);
|
|
12850
12850
|
}
|
|
12851
12851
|
function selectedRect(state) {
|
|
12852
12852
|
const sel = state.selection;
|
|
@@ -13595,7 +13595,7 @@ const deleteTableWhenAllCellsSelected = ({ editor }) => {
|
|
|
13595
13595
|
return false;
|
|
13596
13596
|
}
|
|
13597
13597
|
let cellCount = 0;
|
|
13598
|
-
const table = Menu$
|
|
13598
|
+
const table = Menu$3.findParentNodeClosestToPos(selection.ranges[0].$from, node => {
|
|
13599
13599
|
return node.type.name === 'table';
|
|
13600
13600
|
});
|
|
13601
13601
|
table === null || table === void 0 ? void 0 : table.node.descendants(node => {
|
|
@@ -13618,7 +13618,7 @@ const deleteTableWhenAllCellsSelected = ({ editor }) => {
|
|
|
13618
13618
|
* This extension allows you to create tables.
|
|
13619
13619
|
* @see https://www.tiptap.dev/api/nodes/table
|
|
13620
13620
|
*/
|
|
13621
|
-
const Table$2 = Menu$
|
|
13621
|
+
const Table$2 = Menu$3.Node.create({
|
|
13622
13622
|
name: 'table',
|
|
13623
13623
|
// @ts-ignore
|
|
13624
13624
|
addOptions() {
|
|
@@ -13644,7 +13644,7 @@ const Table$2 = Menu$4.Node.create({
|
|
|
13644
13644
|
const { colgroup, tableWidth, tableMinWidth } = createColGroup(node, this.options.cellMinWidth);
|
|
13645
13645
|
const table = [
|
|
13646
13646
|
'table',
|
|
13647
|
-
Menu$
|
|
13647
|
+
Menu$3.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes, {
|
|
13648
13648
|
style: tableWidth
|
|
13649
13649
|
? `width: ${tableWidth}`
|
|
13650
13650
|
: `minWidth: ${tableMinWidth}`,
|
|
@@ -13779,7 +13779,7 @@ const Table$2 = Menu$4.Node.create({
|
|
|
13779
13779
|
storage: extension.storage,
|
|
13780
13780
|
};
|
|
13781
13781
|
return {
|
|
13782
|
-
tableRole: Menu$
|
|
13782
|
+
tableRole: Menu$3.callOrReturn(Menu$3.getExtensionField(extension, 'tableRole', context)),
|
|
13783
13783
|
};
|
|
13784
13784
|
},
|
|
13785
13785
|
});
|
|
@@ -13937,7 +13937,7 @@ var Table = Table$2.extend({
|
|
|
13937
13937
|
var Table$1 = Table.configure({});
|
|
13938
13938
|
|
|
13939
13939
|
new utils.PluginKey("variables");
|
|
13940
|
-
var Variable = Menu$
|
|
13940
|
+
var Variable = Menu$3.Node.create({
|
|
13941
13941
|
name: "variable",
|
|
13942
13942
|
addOptions: function addOptions() {
|
|
13943
13943
|
return {
|
|
@@ -13994,7 +13994,7 @@ var Variable = Menu$4.Node.create({
|
|
|
13994
13994
|
renderHTML: function renderHTML(_ref2) {
|
|
13995
13995
|
var node = _ref2.node,
|
|
13996
13996
|
HTMLAttributes = _ref2.HTMLAttributes;
|
|
13997
|
-
return ["span", Menu$
|
|
13997
|
+
return ["span", Menu$3.mergeAttributes({
|
|
13998
13998
|
"data-variable": ""
|
|
13999
13999
|
}, this.options.HTMLAttributes, HTMLAttributes), this.options.renderLabel({
|
|
14000
14000
|
options: this.options,
|
|
@@ -14070,11 +14070,11 @@ var VideoComponent = function VideoComponent(_ref) {
|
|
|
14070
14070
|
editor.commands.focus();
|
|
14071
14071
|
};
|
|
14072
14072
|
if (neetoCist.isNotPresent(src)) return null;
|
|
14073
|
-
return /*#__PURE__*/React__default["default"].createElement(Menu$
|
|
14073
|
+
return /*#__PURE__*/React__default["default"].createElement(Menu$3.NodeViewWrapper, {
|
|
14074
14074
|
className: "neeto-editor__image-wrapper neeto-editor__image--".concat(align)
|
|
14075
14075
|
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
14076
14076
|
ref: figureRef
|
|
14077
|
-
}, /*#__PURE__*/React__default["default"].createElement(Menu$
|
|
14077
|
+
}, /*#__PURE__*/React__default["default"].createElement(Menu$1, {
|
|
14078
14078
|
align: align,
|
|
14079
14079
|
deleteNode: deleteNode,
|
|
14080
14080
|
editor: editor,
|
|
@@ -14097,7 +14097,7 @@ var VideoComponent = function VideoComponent(_ref) {
|
|
|
14097
14097
|
}), {
|
|
14098
14098
|
alt: caption,
|
|
14099
14099
|
preload: "metadata"
|
|
14100
|
-
}))), /*#__PURE__*/React__default["default"].createElement(Menu$
|
|
14100
|
+
}))), /*#__PURE__*/React__default["default"].createElement(Menu$3.NodeViewContent, {
|
|
14101
14101
|
as: "figcaption",
|
|
14102
14102
|
className: classnames__default["default"]({
|
|
14103
14103
|
"is-empty": ramda.isEmpty(caption)
|
|
@@ -14109,7 +14109,7 @@ var VideoComponent = function VideoComponent(_ref) {
|
|
|
14109
14109
|
};
|
|
14110
14110
|
|
|
14111
14111
|
var _excluded$1 = ["caption"];
|
|
14112
|
-
var VideoExtension = Menu$
|
|
14112
|
+
var VideoExtension = Menu$3.Node.create({
|
|
14113
14113
|
name: "video",
|
|
14114
14114
|
addOptions: function addOptions() {
|
|
14115
14115
|
return {
|
|
@@ -14187,9 +14187,9 @@ var VideoExtension = Menu$4.Node.create({
|
|
|
14187
14187
|
var captionAttrs = {
|
|
14188
14188
|
style: "width:".concat(vidwidth, "px;")
|
|
14189
14189
|
};
|
|
14190
|
-
return ["div", wrapperDivAttrs, ["figure", Menu$
|
|
14190
|
+
return ["div", wrapperDivAttrs, ["figure", Menu$3.mergeAttributes(this.options.HTMLAttributes, {
|
|
14191
14191
|
"data-video": ""
|
|
14192
|
-
}), ["a", wrapperLinkAttrs, ["video", Menu$
|
|
14192
|
+
}), ["a", wrapperLinkAttrs, ["video", Menu$3.mergeAttributes(HTMLAttributes, {
|
|
14193
14193
|
preload: "metadata",
|
|
14194
14194
|
controls: true,
|
|
14195
14195
|
draggable: false,
|
|
@@ -14197,7 +14197,7 @@ var VideoExtension = Menu$4.Node.create({
|
|
|
14197
14197
|
})]], ["figcaption", captionAttrs, 0]]];
|
|
14198
14198
|
},
|
|
14199
14199
|
addNodeView: function addNodeView() {
|
|
14200
|
-
return Menu$
|
|
14200
|
+
return Menu$3.ReactNodeViewRenderer(VideoComponent);
|
|
14201
14201
|
},
|
|
14202
14202
|
addCommands: function addCommands() {
|
|
14203
14203
|
var _this = this;
|
|
@@ -14306,83 +14306,96 @@ var useCustomExtensions = function useCustomExtensions(_ref) {
|
|
|
14306
14306
|
return customExtensions;
|
|
14307
14307
|
};
|
|
14308
14308
|
|
|
14309
|
-
var
|
|
14310
|
-
|
|
14311
|
-
|
|
14312
|
-
var
|
|
14313
|
-
|
|
14314
|
-
|
|
14315
|
-
|
|
14316
|
-
|
|
14317
|
-
|
|
14318
|
-
|
|
14319
|
-
|
|
14320
|
-
|
|
14321
|
-
|
|
14322
|
-
|
|
14323
|
-
|
|
14324
|
-
|
|
14325
|
-
|
|
14326
|
-
return container;
|
|
14309
|
+
var shouldShowMergeCellToggler = function shouldShowMergeCellToggler(selection) {
|
|
14310
|
+
if (neetoCist.isNotPresent(selection)) return false;
|
|
14311
|
+
if (selection instanceof CellSelection) return true;
|
|
14312
|
+
var depth = selection.$from.depth;
|
|
14313
|
+
while (depth > 0) {
|
|
14314
|
+
var _node$type;
|
|
14315
|
+
var node = selection.$from.node(depth);
|
|
14316
|
+
var nodeRoleInTable = node === null || node === void 0 || (_node$type = node.type) === null || _node$type === void 0 || (_node$type = _node$type.spec) === null || _node$type === void 0 ? void 0 : _node$type.tableRole;
|
|
14317
|
+
if (nodeRoleInTable === "cell" || nodeRoleInTable === "header_cell") {
|
|
14318
|
+
var _node$attrs = node.attrs,
|
|
14319
|
+
colspan = _node$attrs.colspan,
|
|
14320
|
+
rowspan = _node$attrs.rowspan;
|
|
14321
|
+
return colspan > 1 || rowspan > 1;
|
|
14322
|
+
}
|
|
14323
|
+
depth -= 1;
|
|
14324
|
+
}
|
|
14325
|
+
return false;
|
|
14327
14326
|
};
|
|
14328
14327
|
var tableActions = function tableActions(_ref) {
|
|
14328
|
+
var _editor$state;
|
|
14329
14329
|
var editor = _ref.editor;
|
|
14330
14330
|
return [{
|
|
14331
|
-
label: i18n.t("neetoEditor.table.deleteRow"),
|
|
14332
|
-
command: function command() {
|
|
14333
|
-
return editor.chain().focus().deleteRow().run();
|
|
14334
|
-
}
|
|
14335
|
-
}, {
|
|
14336
|
-
label: i18n.t("neetoEditor.table.deleteColumn"),
|
|
14337
|
-
command: function command() {
|
|
14338
|
-
return editor.chain().focus().deleteColumn().run();
|
|
14339
|
-
}
|
|
14340
|
-
}, {
|
|
14341
|
-
label: i18n.t("neetoEditor.table.delete"),
|
|
14342
|
-
command: function command() {
|
|
14343
|
-
return editor.commands.deleteTable();
|
|
14344
|
-
}
|
|
14345
|
-
}, {
|
|
14346
14331
|
label: i18n.t("neetoEditor.table.insertRow"),
|
|
14347
14332
|
command: function command() {
|
|
14348
14333
|
return editor.commands.addRowAfter();
|
|
14349
|
-
}
|
|
14334
|
+
},
|
|
14335
|
+
icon: neetoIcons.InsertRow
|
|
14350
14336
|
}, {
|
|
14351
14337
|
label: i18n.t("neetoEditor.table.insertColumn"),
|
|
14352
14338
|
command: function command() {
|
|
14353
14339
|
return editor.commands.addColumnAfter();
|
|
14354
|
-
}
|
|
14340
|
+
},
|
|
14341
|
+
icon: neetoIcons.InsertColumn
|
|
14342
|
+
}, {
|
|
14343
|
+
label: i18n.t("neetoEditor.table.deleteRow"),
|
|
14344
|
+
command: function command() {
|
|
14345
|
+
return editor.chain().focus().deleteRow().run();
|
|
14346
|
+
},
|
|
14347
|
+
icon: neetoIcons.DeleteRow,
|
|
14348
|
+
isVisible: true
|
|
14349
|
+
}, {
|
|
14350
|
+
label: i18n.t("neetoEditor.table.deleteColumn"),
|
|
14351
|
+
command: function command() {
|
|
14352
|
+
return editor.chain().focus().deleteColumn().run();
|
|
14353
|
+
},
|
|
14354
|
+
icon: neetoIcons.DeleteColumn
|
|
14355
14355
|
}, {
|
|
14356
14356
|
label: i18n.t("neetoEditor.table.mergeSplit"),
|
|
14357
14357
|
command: function command() {
|
|
14358
14358
|
return editor.chain().focus().mergeOrSplit().run();
|
|
14359
|
-
}
|
|
14359
|
+
},
|
|
14360
|
+
icon: neetoIcons.MergeSplit,
|
|
14361
|
+
isHidden: !shouldShowMergeCellToggler((_editor$state = editor.state) === null || _editor$state === void 0 ? void 0 : _editor$state.selection)
|
|
14360
14362
|
}, {
|
|
14361
14363
|
label: i18n.t("neetoEditor.table.toggleHeaderRow"),
|
|
14362
14364
|
command: function command() {
|
|
14363
14365
|
return editor.chain().focus().toggleHeaderRow().run();
|
|
14364
|
-
}
|
|
14366
|
+
},
|
|
14367
|
+
icon: neetoIcons.ToggleHeaderRow
|
|
14368
|
+
}, {
|
|
14369
|
+
label: i18n.t("neetoEditor.table.delete"),
|
|
14370
|
+
command: function command() {
|
|
14371
|
+
return editor.commands.deleteTable();
|
|
14372
|
+
},
|
|
14373
|
+
icon: neetoIcons.DeleteTable
|
|
14365
14374
|
}];
|
|
14366
14375
|
};
|
|
14367
14376
|
|
|
14368
|
-
var Menu = neetoui.Dropdown.Menu;
|
|
14369
14377
|
var TableActionMenu = function TableActionMenu(_ref) {
|
|
14370
14378
|
var editor = _ref.editor;
|
|
14371
14379
|
var getReferenceClientRect = React.useCallback(function () {
|
|
14372
|
-
var
|
|
14373
|
-
|
|
14374
|
-
|
|
14380
|
+
var _editor$state$selecti, _editor$state, _editor$view$domAtPos;
|
|
14381
|
+
if (!editor) return new DOMRect(0, 0, 0, 0);
|
|
14382
|
+
var _ref2 = (_editor$state$selecti = (_editor$state = editor.state) === null || _editor$state === void 0 ? void 0 : _editor$state.selection) !== null && _editor$state$selecti !== void 0 ? _editor$state$selecti : {},
|
|
14383
|
+
anchor = _ref2.$anchor;
|
|
14384
|
+
var node = (_editor$view$domAtPos = editor.view.domAtPos(anchor === null || anchor === void 0 ? void 0 : anchor.pos)) === null || _editor$view$domAtPos === void 0 ? void 0 : _editor$view$domAtPos.node;
|
|
14385
|
+
var element = (node === null || node === void 0 ? void 0 : node.nodeType) === 3 ? node === null || node === void 0 ? void 0 : node.parentElement : node;
|
|
14386
|
+
return (element === null || element === void 0 ? void 0 : element.getBoundingClientRect()) || new DOMRect(0, 0, 0, 0);
|
|
14375
14387
|
}, [editor]);
|
|
14376
14388
|
var shouldShow = React.useCallback(function () {
|
|
14377
14389
|
return editor === null || editor === void 0 ? void 0 : editor.isActive("table");
|
|
14378
14390
|
}, [editor]);
|
|
14379
14391
|
if (!editor) return null;
|
|
14380
|
-
return /*#__PURE__*/React__default["default"].createElement(Menu$
|
|
14392
|
+
return /*#__PURE__*/React__default["default"].createElement(Menu$3.BubbleMenu, {
|
|
14381
14393
|
editor: editor,
|
|
14382
14394
|
shouldShow: shouldShow,
|
|
14383
14395
|
className: "neeto-editor-bubble-menu",
|
|
14384
14396
|
tippyOptions: {
|
|
14385
|
-
|
|
14397
|
+
arrow: false,
|
|
14398
|
+
offset: [10, 10],
|
|
14386
14399
|
zIndex: 99999,
|
|
14387
14400
|
theme: "neeto-editor-bubble-menu",
|
|
14388
14401
|
popperOptions: {
|
|
@@ -14395,29 +14408,27 @@ var TableActionMenu = function TableActionMenu(_ref) {
|
|
|
14395
14408
|
plugins: [tippy.sticky],
|
|
14396
14409
|
sticky: "popper"
|
|
14397
14410
|
}
|
|
14398
|
-
},
|
|
14399
|
-
buttonSize: "small",
|
|
14400
|
-
buttonStyle: "text",
|
|
14401
|
-
label: "Options",
|
|
14402
|
-
position: "auto",
|
|
14403
|
-
strategy: "fixed",
|
|
14404
|
-
onClose: function onClose() {
|
|
14405
|
-
return editor === null || editor === void 0 ? void 0 : editor.commands.focus();
|
|
14406
|
-
}
|
|
14407
|
-
}, /*#__PURE__*/React__default["default"].createElement(Menu, {
|
|
14408
|
-
className: "neeto-editor-bubble-menu__table__options"
|
|
14409
|
-
}, tableActions({
|
|
14411
|
+
}, shouldShow && tableActions({
|
|
14410
14412
|
editor: editor
|
|
14411
|
-
}).map(function (
|
|
14412
|
-
var
|
|
14413
|
-
|
|
14414
|
-
|
|
14413
|
+
}).map(function (_ref3) {
|
|
14414
|
+
var icon = _ref3.icon,
|
|
14415
|
+
label = _ref3.label,
|
|
14416
|
+
command = _ref3.command,
|
|
14417
|
+
isHidden = _ref3.isHidden;
|
|
14418
|
+
return !isHidden && /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
|
|
14419
|
+
icon: icon,
|
|
14420
|
+
iconSize: 18,
|
|
14415
14421
|
key: label,
|
|
14416
|
-
|
|
14422
|
+
size: "small",
|
|
14417
14423
|
style: "text",
|
|
14424
|
+
tooltipProps: {
|
|
14425
|
+
content: label,
|
|
14426
|
+
position: "top",
|
|
14427
|
+
delay: [500]
|
|
14428
|
+
},
|
|
14418
14429
|
onClick: command
|
|
14419
14430
|
});
|
|
14420
|
-
}))
|
|
14431
|
+
}));
|
|
14421
14432
|
};
|
|
14422
14433
|
|
|
14423
14434
|
var LinkPopOver = function LinkPopOver(_ref) {
|
|
@@ -14455,7 +14466,7 @@ var LinkPopOver = function LinkPopOver(_ref) {
|
|
|
14455
14466
|
var linkAttributes = editor === null || editor === void 0 ? void 0 : editor.getAttributes("link");
|
|
14456
14467
|
var updatePopoverPosition = function updatePopoverPosition() {
|
|
14457
14468
|
if (!view) return;
|
|
14458
|
-
var _getLinkPopoverPositi = Menu$
|
|
14469
|
+
var _getLinkPopoverPositi = Menu$3.getLinkPopoverPosition(editor, popoverRef),
|
|
14459
14470
|
arrowPosition = _getLinkPopoverPositi.arrowPosition,
|
|
14460
14471
|
popoverPosition = _getLinkPopoverPositi.popoverPosition;
|
|
14461
14472
|
setPopoverPosition(popoverPosition);
|
|
@@ -14491,9 +14502,9 @@ var LinkPopOver = function LinkPopOver(_ref) {
|
|
|
14491
14502
|
var _editor$view = editor.view,
|
|
14492
14503
|
state = _editor$view.state,
|
|
14493
14504
|
dispatch = _editor$view.dispatch;
|
|
14494
|
-
var type = Menu$
|
|
14505
|
+
var type = Menu$3.getMarkType("link", state.schema);
|
|
14495
14506
|
var $to = state.selection.$to;
|
|
14496
|
-
var _ref4 = Menu$
|
|
14507
|
+
var _ref4 = Menu$3.getMarkRange($to, type) || {},
|
|
14497
14508
|
_ref4$from = _ref4.from,
|
|
14498
14509
|
from = _ref4$from === void 0 ? null : _ref4$from,
|
|
14499
14510
|
_ref4$to = _ref4.to,
|
|
@@ -14706,7 +14717,7 @@ var Editor = function Editor(_ref, ref) {
|
|
|
14706
14717
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
14707
14718
|
isAttachmentsUploading = _useState2[0],
|
|
14708
14719
|
setIsAttachmentsUploading = _useState2[1];
|
|
14709
|
-
var
|
|
14720
|
+
var wrapperRef = React.useRef(null);
|
|
14710
14721
|
var isAttachmentsActive = addons.includes(constants.EDITOR_OPTIONS.ATTACHMENTS);
|
|
14711
14722
|
var isVideoEmbedActive = addons.includes(constants.EDITOR_OPTIONS.VIDEO_EMBED);
|
|
14712
14723
|
var isMediaUploaderActive = addons.includes(constants.EDITOR_OPTIONS.IMAGE_UPLOAD) || addons.includes(constants.EDITOR_OPTIONS.VIDEO_UPLOAD);
|
|
@@ -14770,7 +14781,7 @@ var Editor = function Editor(_ref, ref) {
|
|
|
14770
14781
|
"aria-required": required,
|
|
14771
14782
|
"aria-roledescription": "editor"
|
|
14772
14783
|
};
|
|
14773
|
-
var editor = Menu$
|
|
14784
|
+
var editor = Menu$3.useEditor({
|
|
14774
14785
|
extensions: customExtensions,
|
|
14775
14786
|
content: initialValue,
|
|
14776
14787
|
injectCSS: false,
|
|
@@ -14809,12 +14820,12 @@ var Editor = function Editor(_ref, ref) {
|
|
|
14809
14820
|
}, [editor]);
|
|
14810
14821
|
|
|
14811
14822
|
// https://github.com/ueberdosis/tiptap/issues/1451#issuecomment-953348865
|
|
14812
|
-
Menu$
|
|
14823
|
+
Menu$3.EditorView.prototype.updateState = function updateState(state) {
|
|
14813
14824
|
if (!this.docView) return;
|
|
14814
14825
|
this.updateStateInner(state, this.state.plugins !== state.plugins);
|
|
14815
14826
|
};
|
|
14816
14827
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14817
|
-
ref:
|
|
14828
|
+
ref: wrapperRef,
|
|
14818
14829
|
className: classnames__default["default"](_defineProperty__default["default"](_defineProperty__default["default"]({}, className, className), "ne-attachments__wrapper", isAttachmentsActive))
|
|
14819
14830
|
}, label && /*#__PURE__*/React__default["default"].createElement(neetoui.Label, {
|
|
14820
14831
|
required: required,
|
|
@@ -14826,7 +14837,7 @@ var Editor = function Editor(_ref, ref) {
|
|
|
14826
14837
|
}, /*#__PURE__*/React__default["default"].createElement(CharacterCountWrapper, {
|
|
14827
14838
|
editor: editor,
|
|
14828
14839
|
isActive: isCharacterCountActive
|
|
14829
|
-
}, /*#__PURE__*/React__default["default"].createElement(Menu$
|
|
14840
|
+
}, /*#__PURE__*/React__default["default"].createElement(Menu$3.Menu, {
|
|
14830
14841
|
addonCommands: addonCommands,
|
|
14831
14842
|
addons: addons,
|
|
14832
14843
|
attachmentProps: attachmentProps,
|
|
@@ -14840,9 +14851,9 @@ var Editor = function Editor(_ref, ref) {
|
|
|
14840
14851
|
variables: variables,
|
|
14841
14852
|
className: menuClassName,
|
|
14842
14853
|
isIndependant: isMenuIndependent
|
|
14843
|
-
}), children, /*#__PURE__*/React__default["default"].createElement(Menu$
|
|
14854
|
+
}), children, /*#__PURE__*/React__default["default"].createElement(Menu$3.EditorContent, _objectSpread({
|
|
14844
14855
|
editor: editor
|
|
14845
|
-
}, otherProps)), isMediaUploaderActive && /*#__PURE__*/React__default["default"].createElement(Menu$
|
|
14856
|
+
}, otherProps)), isMediaUploaderActive && /*#__PURE__*/React__default["default"].createElement(Menu$3.MediaUploader, {
|
|
14846
14857
|
editor: editor,
|
|
14847
14858
|
mediaUploader: mediaUploader,
|
|
14848
14859
|
unsplashApiKey: editorSecrets === null || editorSecrets === void 0 ? void 0 : editorSecrets.unsplash,
|
|
@@ -14852,14 +14863,14 @@ var Editor = function Editor(_ref, ref) {
|
|
|
14852
14863
|
video: false
|
|
14853
14864
|
});
|
|
14854
14865
|
}
|
|
14855
|
-
}), isVideoEmbedActive && /*#__PURE__*/React__default["default"].createElement(Menu$
|
|
14866
|
+
}), isVideoEmbedActive && /*#__PURE__*/React__default["default"].createElement(Menu$3.EmbedOption, {
|
|
14856
14867
|
editor: editor,
|
|
14857
14868
|
isEmbedModalOpen: isEmbedModalOpen,
|
|
14858
14869
|
setIsEmbedModalOpen: setIsEmbedModalOpen
|
|
14859
14870
|
}), isAttachmentsActive && /*#__PURE__*/React__default["default"].createElement(Attachments.Attachments, {
|
|
14860
14871
|
attachments: attachments,
|
|
14861
|
-
dragDropRef: dragDropRef,
|
|
14862
14872
|
config: attachmentsConfig,
|
|
14873
|
+
dragDropRef: wrapperRef,
|
|
14863
14874
|
isIndependent: false,
|
|
14864
14875
|
ref: addAttachmentsRef,
|
|
14865
14876
|
setIsUploading: setIsAttachmentsUploading,
|
|
@@ -14869,7 +14880,7 @@ var Editor = function Editor(_ref, ref) {
|
|
|
14869
14880
|
editor: editor
|
|
14870
14881
|
}), /*#__PURE__*/React__default["default"].createElement(TableActionMenu, {
|
|
14871
14882
|
editor: editor,
|
|
14872
|
-
appendTo:
|
|
14883
|
+
appendTo: wrapperRef
|
|
14873
14884
|
}))));
|
|
14874
14885
|
};
|
|
14875
14886
|
var Editor$1 = /*#__PURE__*/React__default["default"].forwardRef(Editor);
|