@bigbinary/neeto-editor 1.42.1 → 1.43.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Editor.js +52 -295
- package/dist/Editor.js.map +1 -1
- package/dist/FormikEditor.js +1 -1
- package/dist/Menu.js +1 -1
- package/dist/{chunk-ca8c4c6d.js → chunk-1ab733f1.js} +189 -120
- package/dist/chunk-1ab733f1.js.map +1 -0
- package/dist/cjs/Editor.cjs.js +51 -294
- package/dist/cjs/Editor.cjs.js.map +1 -1
- package/dist/cjs/FormikEditor.cjs.js +1 -1
- package/dist/cjs/Menu.cjs.js +1 -1
- package/dist/cjs/{chunk-4b866a12.cjs.js → chunk-62a3a743.cjs.js} +189 -120
- package/dist/cjs/chunk-62a3a743.cjs.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/editor-stats.html +1 -1
- package/dist/index.js +1 -1
- package/package.json +23 -23
- package/dist/chunk-ca8c4c6d.js.map +0 -1
- package/dist/cjs/chunk-4b866a12.cjs.js.map +0 -1
package/dist/Editor.js
CHANGED
|
@@ -4,10 +4,10 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
|
4
4
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import React__default, { memo, useEffect, useState, useRef, createElement, forwardRef, useCallback, useImperativeHandle } from 'react';
|
|
7
|
-
import { E as Extension, a as Mark, m as mergeAttributes, b as markInputRule, c as markPasteRule, D as DecorationSet, d as Decoration, g as getMarkAttributes, N as Node, w as wrappingInputRule, t as textblockTypeInputRule, k as keydownHandler, e as callOrReturn, f as getExtensionField, i as isNodeSelection, n as nodeInputRule, h as findChildren, j as NodeViewWrapper, l as NodeViewContent, R as ReactNodeViewRenderer, P as PasteRule, v as validateUrl, o as escapeForRegEx, p as ReactRenderer, q as EmojiPickerMenu, r as emojiPickerApi, s as liftTarget, u as combineTransactionSteps, x as getChangedRanges, y as findChildrenInRange, z as getMarksBetween, A as getAttributes, I as InputRule, B as highlightFocussedNode, C as resetFocussedNode, F as findParentNodeClosestToPos, G as BubbleMenu, H as getLinkPopoverPosition, J as getMarkType, K as getMarkRange, L as useEditor, O as useEditorState, M as Menu$3, Q as EditorContent, S as MediaUploader, T as EmbedOption, U as EditorView } from './chunk-
|
|
7
|
+
import { E as Extension, a as Mark, m as mergeAttributes, b as markInputRule, c as markPasteRule, D as DecorationSet, d as Decoration, g as getMarkAttributes, N as Node, w as wrappingInputRule, t as textblockTypeInputRule, k as keydownHandler, e as callOrReturn, f as getExtensionField, i as isNodeSelection, n as nodeInputRule, h as findChildren, j as NodeViewWrapper, l as NodeViewContent, R as ReactNodeViewRenderer, P as PasteRule, v as validateUrl, o as escapeForRegEx, p as ReactRenderer, q as EmojiPickerMenu, r as emojiPickerApi, s as liftTarget, u as combineTransactionSteps, x as getChangedRanges, y as findChildrenInRange, z as getMarksBetween, A as getAttributes, I as InputRule, B as highlightFocussedNode, C as resetFocussedNode, F as findParentNodeClosestToPos, G as BubbleMenu, H as getLinkPopoverPosition, J as getMarkType, K as getMarkRange, L as useEditor, O as useEditorState, M as Menu$3, Q as EditorContent, S as MediaUploader, T as EmbedOption, U as EditorView } from './chunk-1ab733f1.js';
|
|
8
8
|
import classnames from 'classnames';
|
|
9
9
|
import { C as COMBINED_REGEX, D as DIRECT_UPLOAD_ENDPOINT, E as EDITOR_OPTIONS } from './chunk-edd8b9fe.js';
|
|
10
|
-
import { isNotPresent, noop as noop$1,
|
|
10
|
+
import { isNotPresent, isNotEmpty, isPresent, noop as noop$1, slugify } from '@bigbinary/neeto-cist';
|
|
11
11
|
import { useOnClickOutside, useFuncDebounce } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
12
12
|
import Label from '@bigbinary/neetoui/Label';
|
|
13
13
|
import { is, mergeRight, isEmpty as isEmpty$1, isNil, assoc, equals } from 'ramda';
|
|
@@ -150,8 +150,8 @@ var useEditorWarnings = function useEditorWarnings(_ref) {
|
|
|
150
150
|
}, [initialValue]);
|
|
151
151
|
};
|
|
152
152
|
|
|
153
|
-
var css$1 = "@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,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik0zLjgyMSAxNW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uMTMtMS40MDEuOTY0LTIuMTQ2IDIuMDU4LTIuMTQ2WiIgZmlsbD0iIzg3OTI5RCIvPjwvc3ZnPg==\");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;padding-left:3px;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{border:2px solid rgb(var(--neeto-ui-gray-300));border-radius:var(--neeto-ui-rounded-lg);display:inline-block;min-height:52px;padding:4px}.neeto-editor__image-wrapper .neeto-editor__image img,.neeto-editor__image-wrapper .neeto-editor__image video{display:inline-block;height:auto;width:100%}.neeto-editor__image-wrapper .neeto-editor__image img.hidden,.neeto-editor__image-wrapper .neeto-editor__image video.hidden{display:none}.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}.ne-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}.ne-image-preview-wrapper .ne-image-preview{background:rgb(var(--neeto-ui-white));display:flex;flex-direction:column;gap:10px;max-width:60vw;opacity:0;transition:opacity .1s ease-in-out}.ne-image-preview-wrapper .ne-image-preview.image-loaded{border-radius:10px;opacity:1;padding:10px}.ne-image-preview-wrapper .ne-image-preview__caption{color:rgb(var(--neeto-ui-gray-800));line-height:1.5}.ne-image-preview-wrapper .close-button{position:absolute;right:5px;top:5px}.ne-image-preview-wrapper .image-preview{max-height:70%;max-width:70%}.ne-image-preview-wrapper__spinner{position:absolute}.ne-image-preview-wrapper__spinner i{background-color:rgb(var(--neeto-ui-gray-300))}.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-400));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-neeto-ui-modal{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background-color:transparent!important;height:auto!important;margin:auto 0}.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}.tiptap .collaboration-cursor__caret{border-left:1px solid #0d0d0d;border-right:1px solid #0d0d0d;margin-left:-1px;margin-right:-1px;pointer-events:none;position:relative;word-break:normal}.tiptap .collaboration-cursor__label{border-radius:3px 3px 3px 0;color:#0d0d0d;font-size:12px;font-style:normal;font-weight:600;left:-1px;line-height:normal;padding:.1rem .3rem;position:absolute;top:-1.4em;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.ProseMirror{height:100%;overflow-y:auto;white-space:break-spaces}.ProseMirror:focus{outline:none}";
|
|
154
|
-
n(css
|
|
153
|
+
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,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik0zLjgyMSAxNWgxLjIzVjYuMjQzaDMuMThWNS4xMzZILjY0MnYxLjEwN0gzLjgyVjE1Wm01LjkgMi41ODRjMS4zMDUgMCAxLjkxNC0uNDc5IDIuNTIyLTIuMTMzbDIuODc4LTcuODJoLTEuMjVsLTIuMDE4IDYuMDYzaC0uMTA5TDkuNzIxIDcuNjMxSDguNDQ5bDIuNzI4IDcuMzc2LS4xMzcuNDM3Yy0uMjY3Ljg0OC0uNjc3IDEuMTU2LTEuMzUzIDEuMTU2LS4xNjUgMC0uMzUtLjAwNy0uNDkzLS4wMzV2Ljk3OGMuMTY0LjAyNy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TIgMS44NzMgMCAzLjA4OS0xLjQ5NyAzLjA4OS0zLjgwOHYtLjAxM2MwLTIuMjk3LTEuMjIzLTMuODA4LTMuMDg5LTMuODA4LTEuMDI2IDAtMS44NDYuNDg1LTIuMjk3IDEuMzA2aC0uMTFWNy42M2gtMS4xODl2OS44M1ptMy4zMjItMy4zODRjLTEuMzQgMC0yLjE2LTEuMDUzLTIuMTYtMi43NTV2LS4wMTNjMC0xLjcwMy44Mi0yLjc1NSAyLjE2LTIuNzU1IDEuMzQ3IDAgMi4xNDcgMS4wMzkgMi4xNDcgMi43NTV2LjAxM2MwIDEuNzE2LS44IDIuNzU1LTIuMTQ3IDIuNzU1Wm04LjIzMSAxLjA1M2MxLjczNiAwIDIuNzg5LS45ODUgMy4wNDItMS45ODJsLjAxMy0uMDU1aC0xLjE4OWwtLjAyNy4wNjFjLS4xOTkuNDQ1LS44MTQuOTE2LTEuODEyLjkxNi0xLjMxMiAwLTIuMTUzLS44ODgtMi4xODctMi40MTNoNS4zMDR2LS40NjVjMC0yLjItMS4yMTctMy42OTEtMy4yMi0zLjY5MS0yLjAwMiAwLTMuMzAxIDEuNTU5LTMuMzAxIDMuODM1di4wMDdjMCAyLjMxIDEuMjcxIDMuNzg3IDMuMzc3IDMuNzg3Wm0tLjA4Mi02LjU3YzEuMDg3IDAgMS44OTMuNjkxIDIuMDE2IDIuMTQ3aC00LjA3NGMuMTMtMS40MDEuOTY0LTIuMTQ2IDIuMDU4LTIuMTQ2WiIgZmlsbD0iIzg3OTI5RCIvPjwvc3ZnPg==\");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;padding-left:3px;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{border:2px solid rgb(var(--neeto-ui-gray-300));border-radius:var(--neeto-ui-rounded-lg);display:inline-block;min-height:52px;padding:4px}.neeto-editor__image-wrapper .neeto-editor__image img,.neeto-editor__image-wrapper .neeto-editor__image video{display:inline-block;height:auto;width:100%}.neeto-editor__image-wrapper .neeto-editor__image img.hidden,.neeto-editor__image-wrapper .neeto-editor__image video.hidden{display:none}.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}.ne-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}.ne-image-preview-wrapper .ne-image-preview{background:rgb(var(--neeto-ui-white));display:flex;flex-direction:column;gap:10px;max-width:60vw;opacity:0;transition:opacity .1s ease-in-out}.ne-image-preview-wrapper .ne-image-preview.image-loaded{border-radius:10px;opacity:1;padding:10px}.ne-image-preview-wrapper .ne-image-preview__caption{color:rgb(var(--neeto-ui-gray-800));line-height:1.5}.ne-image-preview-wrapper .close-button{position:absolute;right:5px;top:5px}.ne-image-preview-wrapper .image-preview{max-height:70%;max-width:70%}.ne-image-preview-wrapper__spinner{position:absolute}.ne-image-preview-wrapper__spinner i{background-color:rgb(var(--neeto-ui-gray-300))}.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-400));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-neeto-ui-modal{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background-color:transparent!important;height:auto!important;margin:auto 0}.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}.tiptap .collaboration-cursor__caret{border-left:1px solid #0d0d0d;border-right:1px solid #0d0d0d;margin-left:-1px;margin-right:-1px;pointer-events:none;position:relative;word-break:normal}.tiptap .collaboration-cursor__label{border-radius:3px 3px 3px 0;color:#0d0d0d;font-size:12px;font-style:normal;font-weight:600;left:-1px;line-height:normal;padding:.1rem .3rem;position:absolute;top:-1.4em;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.ProseMirror{height:100%;overflow-y:auto;white-space:break-spaces}.ProseMirror:focus{outline:none}";
|
|
154
|
+
n(css,{});
|
|
155
155
|
|
|
156
156
|
var CharacterCountWrapper = function CharacterCountWrapper(_ref) {
|
|
157
157
|
var editor = _ref.editor,
|
|
@@ -3156,6 +3156,7 @@ const CollaborationCursor = Extension.create({
|
|
|
3156
3156
|
*/
|
|
3157
3157
|
const TextStyle$2 = Mark.create({
|
|
3158
3158
|
name: 'textStyle',
|
|
3159
|
+
priority: 101,
|
|
3159
3160
|
addOptions() {
|
|
3160
3161
|
return {
|
|
3161
3162
|
HTMLAttributes: {},
|
|
@@ -3746,6 +3747,7 @@ const ListItem$2 = Node.create({
|
|
|
3746
3747
|
*/
|
|
3747
3748
|
const TextStyle$1 = Mark.create({
|
|
3748
3749
|
name: 'textStyle',
|
|
3750
|
+
priority: 101,
|
|
3749
3751
|
addOptions() {
|
|
3750
3752
|
return {
|
|
3751
3753
|
HTMLAttributes: {},
|
|
@@ -5525,6 +5527,7 @@ const ListItem = Node.create({
|
|
|
5525
5527
|
*/
|
|
5526
5528
|
const TextStyle = Mark.create({
|
|
5527
5529
|
name: 'textStyle',
|
|
5530
|
+
priority: 101,
|
|
5528
5531
|
addOptions() {
|
|
5529
5532
|
return {
|
|
5530
5533
|
HTMLAttributes: {},
|
|
@@ -5595,6 +5598,10 @@ const OrderedList = Node.create({
|
|
|
5595
5598
|
: 1;
|
|
5596
5599
|
},
|
|
5597
5600
|
},
|
|
5601
|
+
type: {
|
|
5602
|
+
default: undefined,
|
|
5603
|
+
parseHTML: element => element.getAttribute('type'),
|
|
5604
|
+
},
|
|
5598
5605
|
};
|
|
5599
5606
|
},
|
|
5600
5607
|
parseHTML() {
|
|
@@ -7444,7 +7451,7 @@ function expandOrCloneMode(mode) {
|
|
|
7444
7451
|
return mode;
|
|
7445
7452
|
}
|
|
7446
7453
|
|
|
7447
|
-
var version = "11.
|
|
7454
|
+
var version = "11.10.0";
|
|
7448
7455
|
|
|
7449
7456
|
class HTMLInjectionError extends Error {
|
|
7450
7457
|
constructor(reason, html) {
|
|
@@ -8627,36 +8634,17 @@ const CodeBlockLowlight = CodeBlock$1.extend({
|
|
|
8627
8634
|
|
|
8628
8635
|
var SORTED_LANGUAGE_LIST = [].concat(_toConsumableArray(lowlight.listLanguages()), ["html"]).sort();
|
|
8629
8636
|
|
|
8630
|
-
var handleCodeBlockVisibility = function handleCodeBlockVisibility(_ref) {
|
|
8631
|
-
var entries = _ref.entries,
|
|
8632
|
-
setIsVisible = _ref.setIsVisible;
|
|
8633
|
-
entries.forEach(function (entry) {
|
|
8634
|
-
if (entry.isIntersecting) {
|
|
8635
|
-
setIsVisible(true);
|
|
8636
|
-
entry.target.style.visibility = "visible";
|
|
8637
|
-
} else {
|
|
8638
|
-
setIsVisible(false);
|
|
8639
|
-
entry.target.style.visibility = "hidden";
|
|
8640
|
-
}
|
|
8641
|
-
});
|
|
8642
|
-
};
|
|
8643
|
-
|
|
8644
8637
|
var Menu$2 = Dropdown.Menu,
|
|
8645
8638
|
MenuItem$1 = Dropdown.MenuItem;
|
|
8646
8639
|
var CodeBlockComponent = function CodeBlockComponent(_ref) {
|
|
8647
8640
|
var _node$attrs, _node$content;
|
|
8648
8641
|
var node = _ref.node,
|
|
8649
8642
|
editor = _ref.editor,
|
|
8650
|
-
updateAttributes = _ref.updateAttributes
|
|
8651
|
-
|
|
8652
|
-
var _useState = useState(true),
|
|
8643
|
+
updateAttributes = _ref.updateAttributes;
|
|
8644
|
+
var _useState = useState(""),
|
|
8653
8645
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8654
|
-
|
|
8655
|
-
|
|
8656
|
-
var _useState3 = useState(""),
|
|
8657
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
8658
|
-
keyword = _useState4[0],
|
|
8659
|
-
setKeyword = _useState4[1];
|
|
8646
|
+
keyword = _useState2[0],
|
|
8647
|
+
setKeyword = _useState2[1];
|
|
8660
8648
|
var ref = useRef();
|
|
8661
8649
|
var _useTranslation = useTranslation(),
|
|
8662
8650
|
t = _useTranslation.t;
|
|
@@ -8671,27 +8659,6 @@ var CodeBlockComponent = function CodeBlockComponent(_ref) {
|
|
|
8671
8659
|
setKeyword("");
|
|
8672
8660
|
editor === null || editor === void 0 || (_editor$commands = editor.commands) === null || _editor$commands === void 0 || _editor$commands.focus();
|
|
8673
8661
|
};
|
|
8674
|
-
useEffect(function () {
|
|
8675
|
-
var _extension$options;
|
|
8676
|
-
var container = ref.current;
|
|
8677
|
-
var shouldSetObserver = (_extension$options = extension.options) === null || _extension$options === void 0 ? void 0 : _extension$options.enableReactNodeViewOptimization;
|
|
8678
|
-
if (!shouldSetObserver) return noop$1;
|
|
8679
|
-
var observer = new IntersectionObserver(function (entries) {
|
|
8680
|
-
handleCodeBlockVisibility({
|
|
8681
|
-
entries: entries,
|
|
8682
|
-
setIsVisible: setIsVisible
|
|
8683
|
-
});
|
|
8684
|
-
}, {
|
|
8685
|
-
rootMargin: "-10% 0% -10% 0%",
|
|
8686
|
-
root: document.getElementById("neeto-editor-wrapper")
|
|
8687
|
-
});
|
|
8688
|
-
if (container) setTimeout(function () {
|
|
8689
|
-
return observer.observe(container);
|
|
8690
|
-
}, 0);
|
|
8691
|
-
return function () {
|
|
8692
|
-
if (container && shouldSetObserver) observer.unobserve(container);
|
|
8693
|
-
};
|
|
8694
|
-
}, []);
|
|
8695
8662
|
var handleContentMount = function handleContentMount(node) {
|
|
8696
8663
|
if (ref.current && node !== null && node !== void 0 && node.offsetHeight) {
|
|
8697
8664
|
ref.current.style.minHeight = "".concat(node.offsetHeight, "px");
|
|
@@ -8701,7 +8668,7 @@ var CodeBlockComponent = function CodeBlockComponent(_ref) {
|
|
|
8701
8668
|
"data-cy": "neeto-editor-code-block",
|
|
8702
8669
|
children: /*#__PURE__*/jsx("div", {
|
|
8703
8670
|
ref: ref,
|
|
8704
|
-
children:
|
|
8671
|
+
children: /*#__PURE__*/jsxs("pre", {
|
|
8705
8672
|
ref: handleContentMount,
|
|
8706
8673
|
children: [/*#__PURE__*/jsxs("div", {
|
|
8707
8674
|
className: "neeto-editor-codeblock-options",
|
|
@@ -9754,7 +9721,7 @@ var Embeds = Node.create({
|
|
|
9754
9721
|
}
|
|
9755
9722
|
},
|
|
9756
9723
|
align: {
|
|
9757
|
-
"default": "
|
|
9724
|
+
"default": "left",
|
|
9758
9725
|
parseHTML: function parseHTML(element) {
|
|
9759
9726
|
return element.getAttribute("align");
|
|
9760
9727
|
}
|
|
@@ -9889,9 +9856,9 @@ function Suggestion({ pluginKey = SuggestionPluginKey, editor, char = '@', allow
|
|
|
9889
9856
|
const started = !prev.active && next.active;
|
|
9890
9857
|
const stopped = prev.active && !next.active;
|
|
9891
9858
|
const changed = !started && !stopped && prev.query !== next.query;
|
|
9892
|
-
const handleStart = started;
|
|
9859
|
+
const handleStart = started || (moved && changed);
|
|
9893
9860
|
const handleChange = changed || moved;
|
|
9894
|
-
const handleExit = stopped;
|
|
9861
|
+
const handleExit = stopped || (moved && changed);
|
|
9895
9862
|
// Cancel when suggestion isn't active
|
|
9896
9863
|
if (!handleStart && !handleChange && !handleExit) {
|
|
9897
9864
|
return;
|
|
@@ -10618,210 +10585,6 @@ var ImageComponent = function ImageComponent(_ref) {
|
|
|
10618
10585
|
});
|
|
10619
10586
|
};
|
|
10620
10587
|
|
|
10621
|
-
var css = ".neeto-editor-image__skeleton{height:100%;width:100%}.neeto-editor-image__skeleton .skeleton{background-color:rgb(var(--neeto-ui-gray-700));height:100%;width:100%}";
|
|
10622
|
-
n(css,{});
|
|
10623
|
-
|
|
10624
|
-
var imageSkeletonContainer = document.createElement("div");
|
|
10625
|
-
imageSkeletonContainer.classList.add("neeto-editor-image__skeleton");
|
|
10626
|
-
var imageSkeleton = document.createElement("div");
|
|
10627
|
-
imageSkeleton.classList.add("skeleton");
|
|
10628
|
-
imageSkeletonContainer.appendChild(imageSkeleton);
|
|
10629
|
-
var IMAGE_PLACEHOLDER = imageSkeletonContainer;
|
|
10630
|
-
|
|
10631
|
-
var updateAttributes = function updateAttributes(attrs, editor, getPos) {
|
|
10632
|
-
if (typeof getPos === "function") {
|
|
10633
|
-
editor.chain().focus().setNodeSelection(getPos()).updateAttributes("image", attrs).run();
|
|
10634
|
-
}
|
|
10635
|
-
};
|
|
10636
|
-
var deleteNode = function deleteNode(editor, getPos, node) {
|
|
10637
|
-
if (typeof getPos === "function") {
|
|
10638
|
-
editor.chain().focus().deleteRange({
|
|
10639
|
-
from: getPos(),
|
|
10640
|
-
to: getPos() + node.nodeSize
|
|
10641
|
-
}).run();
|
|
10642
|
-
}
|
|
10643
|
-
};
|
|
10644
|
-
var handleImageLoad = function handleImageLoad(_ref) {
|
|
10645
|
-
var figwidth = _ref.figwidth,
|
|
10646
|
-
image = _ref.image,
|
|
10647
|
-
dom = _ref.dom;
|
|
10648
|
-
var aspectRatio = image.height / image.width;
|
|
10649
|
-
var height = parseInt(figwidth * aspectRatio);
|
|
10650
|
-
dom.style.minWidth = "".concat(figwidth, "px");
|
|
10651
|
-
dom.style.minHeight = "".concat(height, "px");
|
|
10652
|
-
};
|
|
10653
|
-
var fetchImage = function fetchImage(_ref2) {
|
|
10654
|
-
var src = _ref2.src,
|
|
10655
|
-
onImageLoad = _ref2.onImageLoad;
|
|
10656
|
-
var image = new Image();
|
|
10657
|
-
image.src = src;
|
|
10658
|
-
image.onload = onImageLoad;
|
|
10659
|
-
};
|
|
10660
|
-
var createImageContainerDom = function createImageContainerDom(_ref3) {
|
|
10661
|
-
var figwidth = _ref3.figwidth,
|
|
10662
|
-
_ref3$figheight = _ref3.figheight,
|
|
10663
|
-
figheight = _ref3$figheight === void 0 ? 100 : _ref3$figheight;
|
|
10664
|
-
var dom = document.createElement("div");
|
|
10665
|
-
dom.style.minWidth = "".concat(figwidth, "px");
|
|
10666
|
-
dom.style.minHeight = "".concat(figheight, "px");
|
|
10667
|
-
dom.classList.add("image-component-node-view");
|
|
10668
|
-
return dom;
|
|
10669
|
-
};
|
|
10670
|
-
var appendImageContainerToDom = function appendImageContainerToDom(_ref4) {
|
|
10671
|
-
var dom = _ref4.dom,
|
|
10672
|
-
reactRenderer = _ref4.reactRenderer;
|
|
10673
|
-
dom.innerHTML = "";
|
|
10674
|
-
dom.appendChild(reactRenderer.element);
|
|
10675
|
-
};
|
|
10676
|
-
var destroyReactComponent = function destroyReactComponent(_ref5) {
|
|
10677
|
-
var reactRenderer = _ref5.reactRenderer,
|
|
10678
|
-
dom = _ref5.dom;
|
|
10679
|
-
if (!reactRenderer) return;
|
|
10680
|
-
reactRenderer.destroy();
|
|
10681
|
-
dom.appendChild(IMAGE_PLACEHOLDER);
|
|
10682
|
-
};
|
|
10683
|
-
|
|
10684
|
-
var LazyLoadImage = /*#__PURE__*/function () {
|
|
10685
|
-
function LazyLoadImage(_ref) {
|
|
10686
|
-
var editor = _ref.editor,
|
|
10687
|
-
node = _ref.node,
|
|
10688
|
-
getPos = _ref.getPos,
|
|
10689
|
-
extension = _ref.extension;
|
|
10690
|
-
_classCallCheck(this, LazyLoadImage);
|
|
10691
|
-
this.editor = editor;
|
|
10692
|
-
this.node = node;
|
|
10693
|
-
this.getPos = getPos;
|
|
10694
|
-
this.extension = extension;
|
|
10695
|
-
this.reactRenderer = null;
|
|
10696
|
-
this.observer = null;
|
|
10697
|
-
this.dom = this.createDom();
|
|
10698
|
-
this.setupObserver();
|
|
10699
|
-
this.setupImage();
|
|
10700
|
-
}
|
|
10701
|
-
return _createClass(LazyLoadImage, [{
|
|
10702
|
-
key: "createDom",
|
|
10703
|
-
value: function createDom() {
|
|
10704
|
-
var _this$node$attrs = this.node.attrs,
|
|
10705
|
-
figwidth = _this$node$attrs.figwidth,
|
|
10706
|
-
figheight = _this$node$attrs.figheight;
|
|
10707
|
-
return createImageContainerDom({
|
|
10708
|
-
figwidth: figwidth,
|
|
10709
|
-
figheight: figheight
|
|
10710
|
-
});
|
|
10711
|
-
}
|
|
10712
|
-
}, {
|
|
10713
|
-
key: "setupImage",
|
|
10714
|
-
value: function setupImage() {
|
|
10715
|
-
var _this = this;
|
|
10716
|
-
var _this$node$attrs2 = this.node.attrs,
|
|
10717
|
-
src = _this$node$attrs2.src,
|
|
10718
|
-
figwidth = _this$node$attrs2.figwidth;
|
|
10719
|
-
var onImageLoad = function onImageLoad(_ref2) {
|
|
10720
|
-
var image = _ref2.target;
|
|
10721
|
-
handleImageLoad({
|
|
10722
|
-
figwidth: figwidth,
|
|
10723
|
-
image: image,
|
|
10724
|
-
dom: _this.dom
|
|
10725
|
-
});
|
|
10726
|
-
};
|
|
10727
|
-
fetchImage({
|
|
10728
|
-
src: src,
|
|
10729
|
-
onImageLoad: onImageLoad
|
|
10730
|
-
});
|
|
10731
|
-
}
|
|
10732
|
-
}, {
|
|
10733
|
-
key: "setupObserver",
|
|
10734
|
-
value: function setupObserver() {
|
|
10735
|
-
var _this2 = this;
|
|
10736
|
-
this.observer = new IntersectionObserver(function (entries) {
|
|
10737
|
-
entries.forEach(_this2.handleIntersection.bind(_this2));
|
|
10738
|
-
}, {
|
|
10739
|
-
rootMargin: "10% 0% 10% 0%",
|
|
10740
|
-
root: document.getElementById("neeto-editor-wrapper")
|
|
10741
|
-
});
|
|
10742
|
-
this.observer.observe(this.dom);
|
|
10743
|
-
}
|
|
10744
|
-
}, {
|
|
10745
|
-
key: "handleIntersection",
|
|
10746
|
-
value: function handleIntersection(entry) {
|
|
10747
|
-
if (entry.isIntersecting) {
|
|
10748
|
-
this.insertImageComponent(entry);
|
|
10749
|
-
} else {
|
|
10750
|
-
this.removeImageComponent(entry);
|
|
10751
|
-
}
|
|
10752
|
-
}
|
|
10753
|
-
}, {
|
|
10754
|
-
key: "insertImageComponent",
|
|
10755
|
-
value: function insertImageComponent(entry) {
|
|
10756
|
-
this.renderReactComponent();
|
|
10757
|
-
entry.target.style.visibility = "visible";
|
|
10758
|
-
}
|
|
10759
|
-
}, {
|
|
10760
|
-
key: "removeImageComponent",
|
|
10761
|
-
value: function removeImageComponent(entry) {
|
|
10762
|
-
this.destroyReactComponent();
|
|
10763
|
-
entry.target.style.visibility = "hidden";
|
|
10764
|
-
}
|
|
10765
|
-
}, {
|
|
10766
|
-
key: "renderReactComponent",
|
|
10767
|
-
value: function renderReactComponent() {
|
|
10768
|
-
var _this3 = this;
|
|
10769
|
-
if (this.reactRenderer) return;
|
|
10770
|
-
this.reactRenderer = new ReactRenderer(ImageComponent, {
|
|
10771
|
-
editor: this.editor,
|
|
10772
|
-
node: this.node,
|
|
10773
|
-
extension: this.extension,
|
|
10774
|
-
props: {
|
|
10775
|
-
node: this.node,
|
|
10776
|
-
editor: this.editor,
|
|
10777
|
-
getPos: this.getPos,
|
|
10778
|
-
updateAttributes: function updateAttributes$1(attrs) {
|
|
10779
|
-
return updateAttributes(attrs, _this3.editor, _this3.getPos);
|
|
10780
|
-
},
|
|
10781
|
-
deleteNode: function deleteNode$1() {
|
|
10782
|
-
return deleteNode(_this3.editor, _this3.getPos, _this3.node);
|
|
10783
|
-
}
|
|
10784
|
-
}
|
|
10785
|
-
});
|
|
10786
|
-
appendImageContainerToDom({
|
|
10787
|
-
dom: this.dom,
|
|
10788
|
-
reactRenderer: this.reactRenderer
|
|
10789
|
-
});
|
|
10790
|
-
}
|
|
10791
|
-
}, {
|
|
10792
|
-
key: "destroyReactComponent",
|
|
10793
|
-
value: function destroyReactComponent$1() {
|
|
10794
|
-
destroyReactComponent({
|
|
10795
|
-
reactRenderer: this.reactRenderer,
|
|
10796
|
-
dom: this.dom
|
|
10797
|
-
});
|
|
10798
|
-
this.reactRenderer = null;
|
|
10799
|
-
}
|
|
10800
|
-
}, {
|
|
10801
|
-
key: "update",
|
|
10802
|
-
value: function update(updatedNode) {
|
|
10803
|
-
var _this4 = this;
|
|
10804
|
-
if (this.reactRenderer) {
|
|
10805
|
-
this.reactRenderer.updateProps({
|
|
10806
|
-
node: updatedNode.toJSON(),
|
|
10807
|
-
updateAttributes: function updateAttributes$1(attrs) {
|
|
10808
|
-
return updateAttributes(attrs, _this4.editor, _this4.getPos);
|
|
10809
|
-
}
|
|
10810
|
-
});
|
|
10811
|
-
}
|
|
10812
|
-
return true;
|
|
10813
|
-
}
|
|
10814
|
-
}, {
|
|
10815
|
-
key: "destroy",
|
|
10816
|
-
value: function destroy() {
|
|
10817
|
-
if (this.observer) {
|
|
10818
|
-
this.observer.disconnect();
|
|
10819
|
-
}
|
|
10820
|
-
this.destroyReactComponent();
|
|
10821
|
-
}
|
|
10822
|
-
}]);
|
|
10823
|
-
}();
|
|
10824
|
-
|
|
10825
10588
|
var _excluded$4 = ["caption"];
|
|
10826
10589
|
var upload = /*#__PURE__*/function () {
|
|
10827
10590
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(file, url) {
|
|
@@ -10949,37 +10712,18 @@ var ImageExtension = Node.create({
|
|
|
10949
10712
|
})]], ["figcaption", captionAttrs, 0]]];
|
|
10950
10713
|
},
|
|
10951
10714
|
addNodeView: function addNodeView() {
|
|
10952
|
-
var _this = this;
|
|
10953
|
-
if (this.options.enableReactNodeViewOptimization) {
|
|
10954
|
-
return function (_ref3) {
|
|
10955
|
-
var editor = _ref3.editor,
|
|
10956
|
-
node = _ref3.node,
|
|
10957
|
-
getPos = _ref3.getPos;
|
|
10958
|
-
var view = new LazyLoadImage({
|
|
10959
|
-
editor: editor,
|
|
10960
|
-
node: node,
|
|
10961
|
-
getPos: getPos,
|
|
10962
|
-
extension: _this
|
|
10963
|
-
});
|
|
10964
|
-
return {
|
|
10965
|
-
dom: view.dom,
|
|
10966
|
-
update: view.update.bind(view),
|
|
10967
|
-
destroy: view.destroy.bind(view)
|
|
10968
|
-
};
|
|
10969
|
-
};
|
|
10970
|
-
}
|
|
10971
10715
|
return ReactNodeViewRenderer(ImageComponent);
|
|
10972
10716
|
},
|
|
10973
10717
|
addCommands: function addCommands() {
|
|
10974
|
-
var
|
|
10718
|
+
var _this = this;
|
|
10975
10719
|
return {
|
|
10976
|
-
setFigure: function setFigure(
|
|
10977
|
-
var caption =
|
|
10978
|
-
attrs = _objectWithoutProperties(
|
|
10979
|
-
return function (
|
|
10980
|
-
var chain =
|
|
10720
|
+
setFigure: function setFigure(_ref3) {
|
|
10721
|
+
var caption = _ref3.caption,
|
|
10722
|
+
attrs = _objectWithoutProperties(_ref3, _excluded$4);
|
|
10723
|
+
return function (_ref4) {
|
|
10724
|
+
var chain = _ref4.chain;
|
|
10981
10725
|
return chain().insertContent({
|
|
10982
|
-
type:
|
|
10726
|
+
type: _this.name,
|
|
10983
10727
|
attrs: attrs,
|
|
10984
10728
|
content: caption ? [{
|
|
10985
10729
|
type: "text",
|
|
@@ -10991,12 +10735,12 @@ var ImageExtension = Node.create({
|
|
|
10991
10735
|
};
|
|
10992
10736
|
},
|
|
10993
10737
|
addKeyboardShortcuts: function addKeyboardShortcuts() {
|
|
10994
|
-
var
|
|
10738
|
+
var _this2 = this;
|
|
10995
10739
|
return {
|
|
10996
10740
|
Enter: function Enter() {
|
|
10997
|
-
var head =
|
|
10741
|
+
var head = _this2.editor.state.selection.$head;
|
|
10998
10742
|
if (head.node().type.name === "image") {
|
|
10999
|
-
|
|
10743
|
+
_this2.editor.chain().insertContentAt(head.after(), {
|
|
11000
10744
|
type: "paragraph",
|
|
11001
10745
|
content: ""
|
|
11002
10746
|
}).focus().run();
|
|
@@ -11025,7 +10769,7 @@ var ImageExtension = Node.create({
|
|
|
11025
10769
|
if (isEmpty$1(images)) return;
|
|
11026
10770
|
event.preventDefault();
|
|
11027
10771
|
images.forEach( /*#__PURE__*/function () {
|
|
11028
|
-
var
|
|
10772
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(image) {
|
|
11029
10773
|
var id, node, transaction, url;
|
|
11030
10774
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
11031
10775
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -11061,7 +10805,7 @@ var ImageExtension = Node.create({
|
|
|
11061
10805
|
}, _callee2, null, [[4, 11]]);
|
|
11062
10806
|
}));
|
|
11063
10807
|
return function (_x3) {
|
|
11064
|
-
return
|
|
10808
|
+
return _ref5.apply(this, arguments);
|
|
11065
10809
|
};
|
|
11066
10810
|
}());
|
|
11067
10811
|
}
|
|
@@ -13083,10 +12827,20 @@ function pasteHandler(options) {
|
|
|
13083
12827
|
}
|
|
13084
12828
|
// From DOMPurify
|
|
13085
12829
|
// https://github.com/cure53/DOMPurify/blob/main/src/regexp.js
|
|
13086
|
-
|
|
13087
|
-
const
|
|
13088
|
-
function isAllowedUri(uri) {
|
|
13089
|
-
|
|
12830
|
+
// eslint-disable-next-line no-control-regex
|
|
12831
|
+
const ATTR_WHITESPACE = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;
|
|
12832
|
+
function isAllowedUri(uri, protocols) {
|
|
12833
|
+
const allowedProtocols = ['http', 'https', 'ftp', 'ftps', 'mailto', 'tel', 'callto', 'sms', 'cid', 'xmpp'];
|
|
12834
|
+
if (protocols) {
|
|
12835
|
+
protocols.forEach(protocol => {
|
|
12836
|
+
const nextProtocol = (typeof protocol === 'string' ? protocol : protocol.scheme);
|
|
12837
|
+
if (nextProtocol) {
|
|
12838
|
+
allowedProtocols.push(nextProtocol);
|
|
12839
|
+
}
|
|
12840
|
+
});
|
|
12841
|
+
}
|
|
12842
|
+
// eslint-disable-next-line no-useless-escape
|
|
12843
|
+
return !uri || uri.replace(ATTR_WHITESPACE, '').match(new RegExp(`^(?:(?:${allowedProtocols.join('|')}):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))`, 'i'));
|
|
13090
12844
|
}
|
|
13091
12845
|
/**
|
|
13092
12846
|
* This extension allows you to create links.
|
|
@@ -13131,6 +12885,9 @@ const Link$1 = Mark.create({
|
|
|
13131
12885
|
return {
|
|
13132
12886
|
href: {
|
|
13133
12887
|
default: null,
|
|
12888
|
+
parseHTML(element) {
|
|
12889
|
+
return element.getAttribute('href');
|
|
12890
|
+
},
|
|
13134
12891
|
},
|
|
13135
12892
|
target: {
|
|
13136
12893
|
default: this.options.HTMLAttributes.target,
|
|
@@ -13149,16 +12906,16 @@ const Link$1 = Mark.create({
|
|
|
13149
12906
|
getAttrs: dom => {
|
|
13150
12907
|
const href = dom.getAttribute('href');
|
|
13151
12908
|
// prevent XSS attacks
|
|
13152
|
-
if (!href || !isAllowedUri(href)) {
|
|
12909
|
+
if (!href || !isAllowedUri(href, this.options.protocols)) {
|
|
13153
12910
|
return false;
|
|
13154
12911
|
}
|
|
13155
|
-
return
|
|
12912
|
+
return null;
|
|
13156
12913
|
},
|
|
13157
12914
|
}];
|
|
13158
12915
|
},
|
|
13159
12916
|
renderHTML({ HTMLAttributes }) {
|
|
13160
12917
|
// prevent XSS attacks
|
|
13161
|
-
if (!isAllowedUri(HTMLAttributes.href)) {
|
|
12918
|
+
if (!isAllowedUri(HTMLAttributes.href, this.options.protocols)) {
|
|
13162
12919
|
// strip out the href
|
|
13163
12920
|
return ['a', mergeAttributes(this.options.HTMLAttributes, { ...HTMLAttributes, href: '' }), 0];
|
|
13164
12921
|
}
|