@bigbinary/neeto-editor 1.47.46 → 1.47.47
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 +278 -102
- package/dist/Editor.js.map +1 -1
- package/dist/cjs/Editor.cjs.js +501 -325
- package/dist/cjs/Editor.cjs.js.map +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/editor-stats.html +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/translations/en.json +5 -1
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$4 = require('./chunk-FE7_QyVG.cjs.js');
|
|
9
9
|
var classnames = require('classnames');
|
|
10
10
|
var constants = require('./chunk-BIWaAH5n.cjs.js');
|
|
11
11
|
var neetoCist = require('@bigbinary/neeto-cist');
|
|
@@ -72,6 +72,9 @@ var Link$2 = require('@bigbinary/neeto-icons/Link');
|
|
|
72
72
|
var Attachment = require('@bigbinary/neeto-icons/Attachment');
|
|
73
73
|
var MessageSquare = require('@bigbinary/neeto-icons/MessageSquare');
|
|
74
74
|
var Tooltip = require('@bigbinary/neetoui/Tooltip');
|
|
75
|
+
var CenterAlign = require('@bigbinary/neeto-icons/CenterAlign');
|
|
76
|
+
var LeftAlign = require('@bigbinary/neeto-icons/LeftAlign');
|
|
77
|
+
var RightAlign = require('@bigbinary/neeto-icons/RightAlign');
|
|
75
78
|
var DeleteRow = require('@bigbinary/neeto-icons/DeleteRow');
|
|
76
79
|
var DeleteColumn = require('@bigbinary/neeto-icons/DeleteColumn');
|
|
77
80
|
var DeleteTable = require('@bigbinary/neeto-icons/DeleteTable');
|
|
@@ -110,9 +113,6 @@ require('@bigbinary/neeto-icons/misc/Success');
|
|
|
110
113
|
require('@bigbinary/neeto-icons/File');
|
|
111
114
|
require('./chunk-B83fTs8d.cjs.js');
|
|
112
115
|
require('yup');
|
|
113
|
-
require('@bigbinary/neeto-icons/LeftAlign');
|
|
114
|
-
require('@bigbinary/neeto-icons/CenterAlign');
|
|
115
|
-
require('@bigbinary/neeto-icons/RightAlign');
|
|
116
116
|
require('@bigbinary/neeto-icons/Delete');
|
|
117
117
|
require('@bigbinary/neeto-icons/MenuVertical');
|
|
118
118
|
require('@bigbinary/neetoui/Alert');
|
|
@@ -182,7 +182,7 @@ var useEditorWarnings = function useEditorWarnings(_ref) {
|
|
|
182
182
|
}, [initialValue]);
|
|
183
183
|
};
|
|
184
184
|
|
|
185
|
-
var css$1 = "@charset \"UTF-8\";.tippy-box[data-theme~=neeto-editor-slash-commands-tippy]{border:1px solid rgb(var(--neeto-ui-gray-400))}.tippy-box[data-theme~=neeto-editor-slash-commands-tippy] .tippy-content{padding:0!important}.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:8px;width:256px}.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item{align-items:center;border:none;border-radius:var(--neeto-ui-rounded);box-shadow:none;color:rgb(var(--neeto-ui-gray-800));cursor:pointer;display:flex;flex-direction:row;gap:8px;justify-content:flex-start;outline:none;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:focus-visible,.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item:hover{background-color:rgb(var(--neeto-ui-gray-200));border:none;box-shadow:none;color:rgb(var(--neeto-ui-black));outline:none}.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content{text-align:left}.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content .neeto-editor-slash-commands__item-description,.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content .neeto-editor-slash-commands__item-title{font-size:14px;font-weight:400;line-height:1.2;text-align:left}.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,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik0zLjgyMSAxNWgxLjIzVjYuMjQzaDMuMThWNS4xMzZILjY0MnYxLjEwN0gzLjgyVjE1Wm01LjkgMi41ODRjMS4zMDUgMCAxLjkxNC0uNDc5IDIuNTIyLTIuMTMzbDIuODc4LTcuODJoLTEuMjVsLTIuMDE4IDYuMDYzaC0uMTA5TDkuNzIxIDcuNjMxSDguNDQ5bDIuNzI4IDcuMzc2LS4xMzcuNDM3Yy0uMjY3Ljg0OC0uNjc3IDEuMTU2LTEuMzUzIDEuMTU2LS4xNjUgMC0uMzUtLjAwNy0uNDkzLS4wMzV2Ljk3OGMuMTY0LjAyNy4zNy4wNDEuNTI3LjA0MVptNi45NzItLjEyM2gxLjE5di0zLjYyM2guMTFjLjQwMi43ODYgMS4yODQgMS4yOTIgMi4yOTYgMS4yOTIgMS44NzMgMCAzLjA5LTEuNDk3IDMuMDktMy44MDh2LS4wMTNjMC0yLjI5Ny0xLjIyNC0zLjgwOC0zLjA5LTMuODA4LTEuMDI1IDAtMS44NDYuNDg1LTIuMjk3IDEuMzA2aC0uMTFWNy42M2gtMS4xODl2OS44M1ptMy4zMjMtMy4zODRjLTEuMzQgMC0yLjE2LTEuMDUzLTIuMTYtMi43NTV2LS4wMTNjMC0xLjcwMy44Mi0yLjc1NSAyLjE2LTIuNzU1IDEuMzQ2IDAgMi4xNDYgMS4wMzkgMi4xNDYgMi43NTV2LjAxM2MwIDEuNzE2LS44IDIuNzU1LTIuMTQ2IDIuNzU1Wm04LjIzIDEuMDUzYzEuNzM2IDAgMi43OS0uOTg1IDMuMDQyLTEuOTgybC4wMTQtLjA1NWgtMS4xOWwtLjAyNy4wNjFjLS4xOTguNDQ1LS44MTQuOTE2LTEuODEyLjkxNi0xLjMxMiAwLTIuMTUzLS44ODgtMi4xODctMi40MTNoNS4zMDV2LS40NjVjMC0yLjItMS4yMTctMy42OTEtMy4yMi0zLjY5MXMtMy4zMDIgMS41NTktMy4zMDIgMy44MzV2LjAwN2MwIDIuMzEgMS4yNzIgMy43ODcgMy4zNzcgMy43ODdabS0uMDgyLTYuNTdjMS4wODcgMCAxLjg5NC42OTEgMi4wMTcgMi4xNDdoLTQuMDc1Yy4xMy0xLjQwMS45NjQtMi4xNDYgMi4wNTgtMi4xNDZaIiBmaWxsPSIjODc5MjlEIi8+PHJlY3QgeD0iMzciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgcng9IjMiIGZpbGw9IiNFOUVCRUQiLz48cGF0aCBkPSJtNTAuNDI4IDUuOTE0LTYuODU2IDguMTcyIiBzdHJva2U9IiMyNTJDMzIiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48cGF0aCBkPSJNNjQuNzI2IDE1LjA1NWMuMjMyIDAgLjQ1OC0uMDI4LjY5LS4wNjl2LTEuMDExYy0uMjE5LjAyLS4zMzUuMDI3LS41NDcuMDI3LS43NjYgMC0xLjA2Ni0uMzQ5LTEuMDY2LTEuMjE3di00LjE3aDEuNjEzdi0uOTg0aC0xLjYxM1Y1LjcyNGgtMS4yM1Y3LjYzSDYxLjQxdi45ODRoMS4xNjJ2NC40N2MwIDEuNDEuNjM2IDEuOTcgMi4xNTQgMS45N1ptNS4zODYuMDc1YzIuMDk5IDAgMy4zOTgtMS40NSAzLjM5OC0zLjgwOHYtLjAxM2MwLTIuMzY2LTEuMy0zLjgwOC0zLjM5OC0zLjgwOHMtMy4zOTcgMS40NDItMy4zOTcgMy44MDh2LjAxM2MwIDIuMzU5IDEuMjk5IDMuODA4IDMuMzk3IDMuODA4Wm0wLTEuMDUzYy0xLjM5NCAwLTIuMTgtMS4wMTgtMi4xOC0yLjc1NXYtLjAxM2MwLTEuNzQ0Ljc4Ni0yLjc1NSAyLjE4LTIuNzU1IDEuMzk1IDAgMi4xODEgMS4wMTEgMi4xODEgMi43NTV2LjAxM2MwIDEuNzM3LS43ODYgMi43NTUtMi4xOCAyLjc1NVptMTIuMTk2IDEuMDUzYzEuNzcgMCAyLjc2MS0uOTUgMy4wNjItMi4yODNsLjAxNC0uMDc1LTEuMTc2LjAwNi0uMDE0LjA0MWMtLjI3My44Mi0uOTAyIDEuMjU4LTEuODkzIDEuMjU4LTEuMzEzIDAtMi4xNi0xLjA4Ny0yLjE2LTIuNzgydi0uMDE0YzAtMS42Ni44MzQtMi43MjcgMi4xNi0yLjcyNyAxLjA2IDAgMS43MTYuNTg4IDEuOSAxLjMxMmwuMDA3LjAyaDEuMTgzbC0uMDA3LS4wNEM4NS4xNjUgOC41MzMgODQuMDkyIDcuNSA4Mi4zIDcuNWMtMi4wNjUgMC0zLjM3NyAxLjQ5LTMuMzc3IDMuNzh2LjAxNGMwIDIuMzM4IDEuMzIgMy44MzUgMy4zODQgMy44MzVabTQuODg3LS4xM2gxLjE5di00LjM2MWMwLTEuMjkyLjc0NS0yLjA4NSAxLjkyLTIuMDg1IDEuMTc2IDAgMS43MjMuNjM1IDEuNzIzIDEuOTYyVjE1aDEuMTl2LTQuNzcxYzAtMS43NS0uOTIzLTIuNzI4LTIuNTc3LTIuNzI4LTEuMDg3IDAtMS43NzguNDU4LTIuMTQ3IDEuMjM3aC0uMTFWNC43MDVoLTEuMTg5VjE1Wm0xMC4yLjEzYy45OSAwIDEuNzYzLS40MyAyLjIyOC0xLjIxN2guMTFWMTVoMS4xODlWOS45NTVjMC0xLjUzMS0xLjAwNS0yLjQ1NC0yLjgwMy0yLjQ1NC0xLjU3MiAwLTIuNjkzLjc4LTIuODg1IDEuOTM1bC0uMDA2LjA0aDEuMTg5bC4wMDctLjAyYy4xOTEtLjU3NC43NzItLjkwMiAxLjY1NC0uOTAyIDEuMSAwIDEuNjU0LjQ5MiAxLjY1NCAxLjQwMXYuNjdsLTIuMTEyLjEzYy0xLjcxNi4xMDItMi42ODYuODYxLTIuNjg2IDIuMTc0di4wMTNjMCAxLjM0IDEuMDYgMi4xODggMi40NiAyLjE4OFptLTEuMjQ1LTIuMjE1di0uMDE0YzAtLjczMS40OTMtMS4xMjggMS42MTQtMS4xOTZsMS45NjgtLjEyM3YuNjdjMCAxLjA1My0uODgxIDEuODQ2LTIuMDkxIDEuODQ2LS44NTUgMC0xLjQ5LS40MzgtMS40OS0xLjE4M1pNMTAzLjA5NiAxNWgxLjE4OXYtNC4zNjFjMC0xLjI5Mi43NDUtMi4wODUgMS45MjEtMi4wODUgMS4xNzYgMCAxLjcyMy42MzUgMS43MjMgMS45NjJWMTVoMS4xODl2LTQuNzcxYzAtMS43NS0uOTIzLTIuNzI4LTIuNTc3LTIuNzI4LTEuMDg3IDAtMS43NzcuNDU4LTIuMTQ2IDEuMjM3aC0uMTFWNy42MzFoLTEuMTg5VjE1Wm0xMS4yMTEgMi41OThjMi4wMDkgMCAzLjI4MS0xLjA1MyAzLjI4MS0yLjdWNy42M2gtMS4xOXYxLjIxN2gtLjA4MmMtLjQ1MS0uODM0LTEuMjU3LTEuMzQ3LTIuMjk2LTEuMzQ3LTEuOTI4IDAtMy4xMTggMS40OTctMy4xMTggMy41NjF2LjAxNGMwIDIuMDY1IDEuMTgzIDMuNTQxIDMuMDkgMy41NDEgMS4wMTIgMCAxLjg0Ni0uNDU4IDIuMzExLTEuMjcxaC4xMDl2MS40OWMwIDEuMDg3LS43ODYgMS43MDktMi4xMDUgMS43MDktMS4wNiAwLTEuNzE2LS4zOTctMS44NDYtLjk1N2wtLjAwNy0uMDA3aC0xLjIzbC0uMDE0LjAwN2MuMTg1IDEuMjEgMS4zMTkgMi4wMSAzLjA5NyAyLjAxWm0tLjA1NS00LjAzM2MtMS4zNjcgMC0yLjEzMy0xLjAyNi0yLjEzMy0yLjQ4OXYtLjAxNGMwLTEuNDYyLjc2Ni0yLjUwOCAyLjEzMy0yLjUwOCAxLjM2IDAgMi4xODcgMS4wNDYgMi4xODcgMi41MDh2LjAxNGMwIDEuNDYzLS44MiAyLjQ4OS0yLjE4NyAyLjQ4OVptOC41NTkgMS41NjVjMS43MzYgMCAyLjc4OS0uOTg1IDMuMDQyLTEuOTgybC4wMTMtLjA1NWgtMS4xODlsLS4wMjguMDYxYy0uMTk4LjQ0NS0uODEzLjkxNi0xLjgxMS45MTYtMS4zMTMgMC0yLjE1My0uODg4LTIuMTg4LTIuNDEzaDUuMzA1di0uNDY1YzAtMi4yLTEuMjE3LTMuNjkxLTMuMjItMy42OTFzLTMuMzAxIDEuNTU5LTMuMzAxIDMuODM1di4wMDdjMCAyLjMxIDEuMjcxIDMuNzg3IDMuMzc3IDMuNzg3Wm0tLjA4Mi02LjU3YzEuMDg2IDAgMS44OTMuNjkxIDIuMDE2IDIuMTQ3aC00LjA3NGMuMTMtMS40MDEuOTY0LTIuMTQ2IDIuMDU4LTIuMTQ2Wm0xMi42NzMgNi41N2MxLjg2NyAwIDMuMDktMS41MSAzLjA5LTMuODA4di0uMDEzYzAtMi4zMTEtMS4yMTctMy44MDgtMy4wOS0zLjgwOC0xLjAxMSAwLTEuODkzLjUwNi0yLjI5NyAxLjI5MmgtLjEwOVY0LjcwNWgtMS4xODlWMTVoMS4xODl2LTEuMTc2aC4xMDljLjQ1Mi44MiAxLjI3MiAxLjMwNiAyLjI5NyAxLjMwNlptLS4yNzMtMS4wNTNjLTEuMzQgMC0yLjE2LTEuMDUzLTIuMTYtMi43NTV2LS4wMTNjMC0xLjcwMy44Mi0yLjc1NSAyLjE2LTIuNzU1IDEuMzQ3IDAgMi4xNDYgMS4wMzkgMi4xNDYgMi43NTV2LjAxM2MwIDEuNzE2LS43OTkgMi43NTUtMi4xNDYgMi43NTVabTUuMjc3LjkyM2gxLjE5VjQuNzA1aC0xLjE5VjE1Wm02LjUwMS4xM2MyLjA5OSAwIDMuMzk4LTEuNDUgMy4zOTgtMy44MDh2LS4wMTNjMC0yLjM2Ni0xLjI5OS0zLjgwOC0zLjM5OC0zLjgwOC0yLjA5OCAwLTMuMzk3IDEuNDQyLTMuMzk3IDMuODA4di4wMTNjMCAyLjM1OSAxLjI5OSAzLjgwOCAzLjM5NyAzLjgwOFptMC0xLjA1M2MtMS4zOTQgMC0yLjE4LTEuMDE4LTIuMTgtMi43NTV2LS4wMTNjMC0xLjc0NC43ODYtMi43NTUgMi4xOC0yLjc1NSAxLjM5NSAwIDIuMTgxIDEuMDExIDIuMTgxIDIuNzU1di4wMTNjMCAxLjczNy0uNzg2IDIuNzU1LTIuMTgxIDIuNzU1Wm04LjI1OCAxLjA1M2MxLjc3MSAwIDIuNzYyLS45NSAzLjA2My0yLjI4M2wuMDEzLS4wNzUtMS4xNzYuMDA2LS4wMTMuMDQxYy0uMjc0LjgyLS45MDMgMS4yNTgtMS44OTQgMS4yNTgtMS4zMTIgMC0yLjE2LTEuMDg3LTIuMTYtMi43ODJ2LS4wMTRjMC0xLjY2LjgzNC0yLjcyNyAyLjE2LTIuNzI3IDEuMDYgMCAxLjcxNi41ODggMS45MDEgMS4zMTJsLjAwNi4wMmgxLjE4M2wtLjAwNy0uMDRjLS4yMTktMS4zMTMtMS4yOTItMi4zNDUtMy4wODMtMi4zNDUtMi4wNjQgMC0zLjM3NyAxLjQ5LTMuMzc3IDMuNzh2LjAxNGMwIDIuMzM4IDEuMzIgMy44MzUgMy4zODQgMy44MzVabTQuODg4LS4xM2gxLjE4OXYtMi43OTZsLjY5MS0uNjdMMTY0LjY5NCAxNWgxLjQ5N2wtMy40MjQtNC4yNzMgMy4yMTItMy4wOTZoLTEuNDQybC0zLjE4NSAzLjIyaC0uMTFWNC43MDVoLTEuMTg5VjE1Wm0xNC4wODkuMDU1Yy4yMzIgMCAuNDU4LS4wMjguNjktLjA2OXYtMS4wMTFjLS4yMTkuMDItLjMzNS4wMjctLjU0Ny4wMjctLjc2NSAwLTEuMDY2LS4zNDktMS4wNjYtMS4yMTd2LTQuMTdoMS42MTN2LS45ODRoLTEuNjEzVjUuNzI0aC0xLjIzMVY3LjYzaC0xLjE2MnYuOTg0aDEuMTYydjQuNDdjMCAxLjQxLjYzNiAxLjk3IDIuMTU0IDEuOTdabTMuMDk2IDIuNTI5YzEuMzA2IDAgMS45MTQtLjQ3OSAyLjUyMy0yLjEzM2wyLjg3OC03LjgyaC0xLjI1MWwtMi4wMTcgNi4wNjNoLS4xMDlsLTIuMDI0LTYuMDYzaC0xLjI3MWwyLjcyNyA3LjM3Ni0uMTM2LjQzN2MtLjI2Ny44NDgtLjY3NyAxLjE1Ni0xLjM1NCAxLjE1NmEyLjgyIDIuODIgMCAwIDEtLjQ5Mi0uMDM1di45NzhjLjE2NC4wMjcuMzY5LjA0MS41MjYuMDQxWm02Ljk3My0uMTIzaDEuMTg5di0zLjYyM2guMTFjLjQwMy43ODYgMS4yODUgMS4yOTIgMi4yOTcgMS4yOTIgMS44NzMgMCAzLjA4OS0xLjQ5NyAzLjA4OS0zLjgwOHYtLjAxM2MwLTIuMjk3LTEuMjIzLTMuODA4LTMuMDg5LTMuODA4LTEuMDI2IDAtMS44NDYuNDg1LTIuMjk3IDEuMzA2aC0uMTFWNy42M2gtMS4xODl2OS44M1ptMy4zMjItMy4zODRjLTEuMzQgMC0yLjE2LTEuMDUzLTIuMTYtMi43NTV2LS4wMTNjMC0xLjcwMy44Mi0yLjc1NSAyLjE2LTIuNzU1IDEuMzQ3IDAgMi4xNDcgMS4wMzkgMi4xNDcgMi43NTV2LjAxM2MwIDEuNzE2LS44IDIuNzU1LTIuMTQ3IDIuNzU1Wm04LjIzMSAxLjA1M2MxLjczNiAwIDIuNzg5LS45ODUgMy4wNDItMS45ODJsLjAxMy0uMDU1aC0xLjE4OWwtLjAyNy4wNjFjLS4xOTkuNDQ1LS44MTQuOTE2LTEuODEyLjkxNi0xLjMxMiAwLTIuMTUzLS44ODgtMi4xODctMi40MTNoNS4zMDR2LS40NjVjMC0yLjItMS4yMTctMy42OTEtMy4yMi0zLjY5MS0yLjAwMiAwLTMuMzAxIDEuNTU5LTMuMzAxIDMuODM1di4wMDdjMCAyLjMxIDEuMjcxIDMuNzg3IDMuMzc3IDMuNzg3Wm0tLjA4Mi02LjU3YzEuMDg3IDAgMS44OTMuNjkxIDIuMDE2IDIuMTQ3aC00LjA3NGMuMTMtMS40MDEuOTY0LTIuMTQ2IDIuMDU4LTIuMTQ2WiIgZmlsbD0iIzg3OTI5RCIvPjwvc3ZnPg==\");height:0;pointer-events:none;position:absolute;top:-2px;z-index:-1}.neeto-ui-theme--dark .hljs{background:#0d1117;color:#c9d1d9}.neeto-ui-theme--dark .hljs-doctag,.neeto-ui-theme--dark .hljs-keyword,.neeto-ui-theme--dark .hljs-meta .hljs-keyword,.neeto-ui-theme--dark .hljs-template-tag,.neeto-ui-theme--dark .hljs-template-variable,.neeto-ui-theme--dark .hljs-type,.neeto-ui-theme--dark .hljs-variable.language_{color:#ff7b72}.neeto-ui-theme--dark .hljs-title,.neeto-ui-theme--dark .hljs-title.class_,.neeto-ui-theme--dark .hljs-title.class_.inherited__,.neeto-ui-theme--dark .hljs-title.function_{color:#d2a8ff}.neeto-ui-theme--dark .hljs-attr,.neeto-ui-theme--dark .hljs-attribute,.neeto-ui-theme--dark .hljs-literal,.neeto-ui-theme--dark .hljs-meta,.neeto-ui-theme--dark .hljs-number,.neeto-ui-theme--dark .hljs-operator,.neeto-ui-theme--dark .hljs-selector-attr,.neeto-ui-theme--dark .hljs-selector-class,.neeto-ui-theme--dark .hljs-selector-id,.neeto-ui-theme--dark .hljs-variable{color:#79c0ff}.neeto-ui-theme--dark .hljs-meta .hljs-string,.neeto-ui-theme--dark .hljs-regexp,.neeto-ui-theme--dark .hljs-string{color:#a5d6ff}.neeto-ui-theme--dark .hljs-built_in,.neeto-ui-theme--dark .hljs-symbol{color:#ffa657}.neeto-ui-theme--dark .hljs-code,.neeto-ui-theme--dark .hljs-comment,.neeto-ui-theme--dark .hljs-formula{color:#8b949e}.neeto-ui-theme--dark .hljs-name,.neeto-ui-theme--dark .hljs-quote,.neeto-ui-theme--dark .hljs-selector-pseudo,.neeto-ui-theme--dark .hljs-selector-tag{color:#7ee787}.neeto-ui-theme--dark .hljs-subst{color:#c9d1d9}.neeto-ui-theme--dark .hljs-section{color:#1f6feb}.neeto-ui-theme--dark .hljs-bullet{color:#f2cc60}.neeto-ui-theme--dark .hljs-emphasis{color:#c9d1d9}.neeto-ui-theme--dark .hljs-strong{color:#c9d1d9;font-weight:700}.neeto-ui-theme--dark .hljs-addition{background-color:#033a16;color:#aff5b4}.neeto-ui-theme--dark .hljs-deletion{background-color:#67060c;color:#ffdcd7}.neeto-ui-theme--light .hljs{background:#f8f8f8;color:#333}.neeto-ui-theme--light .hljs-comment,.neeto-ui-theme--light .hljs-quote{color:#998}.neeto-ui-theme--light .hljs-keyword,.neeto-ui-theme--light .hljs-selector-tag,.neeto-ui-theme--light .hljs-subst{color:#333}.neeto-ui-theme--light .hljs-literal,.neeto-ui-theme--light .hljs-number,.neeto-ui-theme--light .hljs-tag .hljs-attr,.neeto-ui-theme--light .hljs-template-variable,.neeto-ui-theme--light .hljs-variable{color:teal}.neeto-ui-theme--light .hljs-doctag,.neeto-ui-theme--light .hljs-string{color:#d14}.neeto-ui-theme--light .hljs-section,.neeto-ui-theme--light .hljs-selector-id,.neeto-ui-theme--light .hljs-title{color:#900}.neeto-ui-theme--light .hljs-class .hljs-title,.neeto-ui-theme--light .hljs-type{color:#458}.neeto-ui-theme--light .hljs-attribute,.neeto-ui-theme--light .hljs-name,.neeto-ui-theme--light .hljs-tag{color:navy}.neeto-ui-theme--light .hljs-link,.neeto-ui-theme--light .hljs-regexp{color:#009926}.neeto-ui-theme--light .hljs-bullet,.neeto-ui-theme--light .hljs-symbol{color:#990073}.neeto-ui-theme--light .hljs-built_in,.neeto-ui-theme--light .hljs-builtin-name{color:#0086b3}.neeto-ui-theme--light .hljs-meta{color:#999}.neeto-ui-theme--light .hljs-deletion{background:#fdd}.neeto-ui-theme--light .hljs-addition{background:#dfd}.neeto-ui-theme--light,:root{--neeto-editor-white:255,255,255;--neeto-editor-black:12,17,29;--neeto-editor-gray-800:16,24,40;--neeto-editor-gray-700:29,41,57;--neeto-editor-gray-600:52,64,84;--neeto-editor-gray-500:135,146,157;--neeto-editor-gray-400:194,200,204;--neeto-editor-gray-300:216,220,222;--neeto-editor-gray-200:233,235,237;--neeto-editor-gray-100:246,247,248;--neeto-editor-gray-50:250,250,250;--neeto-editor-primary-800:0,102,83;--neeto-editor-primary-600:0,122,100;--neeto-editor-primary-500:0,128,104;--neeto-editor-primary-100:225,243,238;--neeto-editor-primary-50:240,249,247;--neeto-editor-accent-800:9,90,186;--neeto-editor-accent-600:13,102,208;--neeto-editor-accent-500:20,115,230;--neeto-editor-accent-100:230,244,255;--neeto-editor-accent-50:239,248,255;--neeto-editor-success-800:1,121,93;--neeto-editor-success-600:1,141,109;--neeto-editor-success-500:2,162,124;--neeto-editor-success-100:235,255,250;--neeto-editor-error-800:187,18,26;--neeto-editor-error-600:201,37,45;--neeto-editor-error-500:215,55,63;--neeto-editor-error-100:254,236,240;--neeto-editor-info-800:9,90,186;--neeto-editor-info-600:13,102,208;--neeto-editor-info-500:20,115,230;--neeto-editor-info-100:226,242,255;--neeto-editor-warning-800:189,100,13;--neeto-editor-warning-600:203,111,16;--neeto-editor-warning-500:218,123,17;--neeto-editor-warning-100:251,242,225;--neeto-editor-pastel-silver:232,233,237;--neeto-editor-pastel-red:255,229,229;--neeto-editor-pastel-yellow:254,243,197;--neeto-editor-pastel-green:211,249,232;--neeto-editor-pastel-blue:236,244,255;--neeto-editor-pastel-purple:238,235,255;--neeto-editor-pastel-pink:253,226,241;--neeto-editor-rounded-none:0;--neeto-editor-rounded-sm:3px;--neeto-editor-rounded:5px;--neeto-editor-rounded-md:6px;--neeto-editor-rounded-lg:8px;--neeto-editor-rounded-xl:12px;--neeto-editor-rounded-full:999px;--neeto-editor-font-thin:100;--neeto-editor-font-extralight:200;--neeto-editor-font-light:300;--neeto-editor-font-normal:400;--neeto-editor-font-medium:500;--neeto-editor-font-semibold:600;--neeto-editor-font-bold:700;--neeto-editor-font-extrabold:800;--neeto-editor-font-black:900;--neeto-editor-content-h1-margin:1.5rem 0 0.25rem;--neeto-editor-content-h2-margin:1.5rem 0 0.25rem;--neeto-editor-content-h3-margin:1.5rem 0 0.25rem;--neeto-editor-content-h4-margin:1.5rem 0 0.25rem;--neeto-editor-content-h5-margin:1.5rem 0 0.25rem;--neeto-editor-content-h6-margin:1.5rem 0 0.25rem;--neeto-editor-content-heading-font-weight:600;--neeto-editor-content-heading-font-weight-bold:bold;--neeto-editor-content-heading-color:12,17,29,1;--neeto-editor-content-heading-line-height:1.25;--neeto-editor-content-paragraph-color:54,55,55,1;--neeto-editor-content-paragraph-font-weight:400;--neeto-editor-content-paragraph-line-height:1.6;--neeto-editor-content-list-left-padding:2rem;--neeto-editor-content-list-margin-bottom:1rem;--neeto-editor-content-list-item-margin-bottom:0.5rem;--neeto-editor-content-list-item-margin-top:0.5rem;--neeto-editor-content-code-font-size:85%;--neeto-editor-content-code-background-color:246,248,250,1;--neeto-editor-content-code-line-number-color:89,99,110,1;--neeto-editor-content-code-color:31,35,40,1;--neeto-editor-content-code-padding:0.2em 0.4em;--neeto-editor-content-blockquote-color:89,99,110,1;--neeto-editor-content-blockquote-border-color:209,217,224,1;--neeto-editor-content-blockquote-border-left-width:4px;--neeto-editor-content-blockquote-margin-bottom:1rem;--neeto-editor-content-blockquote-padding-left:0.75rem;--neeto-editor-content-image-border-color:228,228,231;--neeto-editor-content-image-border-radius:8px;--neeto-editor-highlight-text-1:#32302c;--neeto-editor-highlight-text-2:#787774;--neeto-editor-highlight-text-3:#9f6b53;--neeto-editor-highlight-text-4:#d9730d;--neeto-editor-highlight-text-5:#cb912f;--neeto-editor-highlight-text-6:#448361;--neeto-editor-highlight-text-7:#337ea9;--neeto-editor-highlight-text-8:#9065b0;--neeto-editor-highlight-text-9:#c14c8a;--neeto-editor-highlight-text-10:#d44c47;--neeto-editor-highlight-bg-1:#ff0;--neeto-editor-highlight-bg-2:#f8f8f7;--neeto-editor-highlight-bg-3:#f4eeee;--neeto-editor-highlight-bg-4:#fbecdd;--neeto-editor-highlight-bg-5:#fbf3db;--neeto-editor-highlight-bg-6:#edf3ec;--neeto-editor-highlight-bg-7:#e7f3f8;--neeto-editor-highlight-bg-8:#f8f3fc;--neeto-editor-highlight-bg-9:#fcf1f6;--neeto-editor-highlight-bg-10:#fdebec}.neeto-ui-theme--dark{--neeto-editor-white:18,18,18;--neeto-editor-black:224,224,224;--neeto-editor-gray-50:10,10,10;--neeto-editor-gray-100:30,30,30;--neeto-editor-gray-200:44,44,44;--neeto-editor-gray-300:57,57,57;--neeto-editor-gray-400:73,73,73;--neeto-editor-gray-500:92,92,92;--neeto-editor-gray-600:124,124,124;--neeto-editor-gray-700:162,162,162;--neeto-editor-gray-800:200,200,200;--neeto-editor-primary-800:0,245,200;--neeto-editor-primary-600:0,224,183;--neeto-editor-primary-500:0,204,167;--neeto-editor-primary-100:0,61,49;--neeto-editor-primary-50:0,41,33;--neeto-editor-accent-800:142,189,245;--neeto-editor-accent-600:105,167,242;--neeto-editor-accent-500:67,144,239;--neeto-editor-accent-100:10,56,113;--neeto-editor-accent-50:7,37,75;--neeto-editor-error-800:247,109,116;--neeto-editor-error-600:236,91,98;--neeto-editor-error-500:227,72,80;--neeto-editor-error-100:129,33,38;--neeto-editor-success-800:0,245,200;--neeto-editor-success-600:0,224,183;--neeto-editor-success-500:0,204,167;--neeto-editor-success-100:0,61,49;--neeto-editor-warning-800:249,164,63;--neeto-editor-warning-600:242,148,35;--neeto-editor-warning-500:230,134,25;--neeto-editor-warning-100:131,74,11;--neeto-editor-info-800:142,189,245;--neeto-editor-info-600:105,167,242;--neeto-editor-info-500:67,144,239;--neeto-editor-info-100:10,56,113;--neeto-editor-pastel-silver:167,168,170;--neeto-editor-pastel-red:183,164,165;--neeto-editor-pastel-yellow:182,175,143;--neeto-editor-pastel-green:152,179,167;--neeto-editor-pastel-blue:170,175,183;--neeto-editor-pastel-purple:171,169,183;--neeto-editor-pastel-pink:181,162,174;--neeto-editor-content-heading-color:224,224,224,1;--neeto-editor-content-paragraph-color:224,224,224,1;--neeto-editor-content-code-background-color:21,27,35,1;--neeto-editor-content-code-line-number-color:89,99,110,1;--neeto-editor-content-code-color:240,246,252,1;--neeto-editor-content-blockquote-color:145,152,161,1;--neeto-editor-content-blockquote-border-color:61,68,77,1;--neeto-editor-highlight-text-1:#cdcdcd;--neeto-editor-highlight-text-2:#b4b4b4;--neeto-editor-highlight-text-3:#c89678;--neeto-editor-highlight-text-4:#f0b464;--neeto-editor-highlight-text-5:#e6be78;--neeto-editor-highlight-text-6:#78be96;--neeto-editor-highlight-text-7:#64b4dc;--neeto-editor-highlight-text-8:#be96e6;--neeto-editor-highlight-text-9:#dc78be;--neeto-editor-highlight-text-10:#e6786e;--neeto-editor-highlight-bg-1:#646400;--neeto-editor-highlight-bg-2:#323232;--neeto-editor-highlight-bg-3:#3c3232;--neeto-editor-highlight-bg-4:#503c28;--neeto-editor-highlight-bg-5:#5a5032;--neeto-editor-highlight-bg-6:#32503c;--neeto-editor-highlight-bg-7:#285064;--neeto-editor-highlight-bg-8:#503c64;--neeto-editor-highlight-bg-9:#643250;--neeto-editor-highlight-bg-10:#6e3232}.neeto-ui-theme--dark .neeto-editor-content.neeto-editor-size--small,.neeto-ui-theme--dark .neeto-editor-size--small.neeto-editor{--neeto-editor-content-heading-color:224,224,224,1;--neeto-editor-content-paragraph-color:224,224,224,1}.neeto-ui-theme--light .neeto-editor,.neeto-ui-theme--light .neeto-editor-content{--neeto-editor-content-heading-color:12,17,29,1;--neeto-editor-content-paragraph-color:54,55,55,1}.neeto-ui-theme--light .neeto-editor-content.neeto-editor-size--small,.neeto-ui-theme--light .neeto-editor-size--small.neeto-editor{--neeto-editor-content-heading-color:31,35,40,1;--neeto-editor-content-paragraph-color:31,35,40,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 hr,.neeto-editor-content hr{border-color:#363737;border-color:rgba(var(--neeto-editor-content-paragraph-color));margin:.5rem 0;opacity:.2}.neeto-editor .table-responsive,.neeto-editor-content .table-responsive{-webkit-overflow-scrolling:touch;margin:1rem 0;overflow-x:auto}.neeto-editor-content.neeto-editor-size--small,.neeto-editor-size--small.neeto-editor{--neeto-editor-content-heading-color:31,35,40,1;--neeto-editor-content-paragraph-color:31,35,40,1;--neeto-editor-content-h1-font-size:1.75rem;--neeto-editor-content-h2-font-size:1.3125rem;--neeto-editor-content-h3-font-size:1.09375rem;--neeto-editor-content-h4-font-size:0.875rem;--neeto-editor-content-h5-font-size:0.765625rem;--neeto-editor-content-h6-font-size:0.74375rem;--neeto-editor-content-paragraph-font-size:0.875rem;--neeto-editor-content-paragraph-line-height:1.5;--neeto-editor-content-list-left-padding:1.5rem;--neeto-editor-content-list-item-margin-bottom:0.25rem;--neeto-editor-content-list-item-margin-top:0.25rem}.neeto-editor-content.neeto-editor-size--medium,.neeto-editor-size--medium.neeto-editor{--neeto-editor-content-h1-font-size:2rem;--neeto-editor-content-h2-font-size:1.5rem;--neeto-editor-content-h3-font-size:1.25rem;--neeto-editor-content-h4-font-size:1rem;--neeto-editor-content-h5-font-size:0.875rem;--neeto-editor-content-h6-font-size:0.75rem;--neeto-editor-content-paragraph-font-size:1rem}@media only screen and (max-width:767px){.neeto-editor-content.neeto-editor-size--medium,.neeto-editor-size--medium.neeto-editor{--neeto-editor-content-h1-font-size:1.375rem;--neeto-editor-content-h2-font-size:1.25rem;--neeto-editor-content-h3-font-size:1.125rem}}.neeto-editor-content.neeto-editor-size--large,.neeto-editor-size--large.neeto-editor{--neeto-editor-content-h1-font-size:2.375rem;--neeto-editor-content-h2-font-size:1.93rem;--neeto-editor-content-h3-font-size:1.633rem;--neeto-editor-content-h4-font-size:1.336rem;--neeto-editor-content-h5-font-size:0.986rem;--neeto-editor-content-h6-font-size:0.796rem;--neeto-editor-content-paragraph-font-size:1.125rem}@media only screen and (max-width:767px){.neeto-editor-content.neeto-editor-size--large,.neeto-editor-size--large.neeto-editor{--neeto-editor-content-h1-font-size:2.125rem;--neeto-editor-content-h2-font-size:1.7266rem;--neeto-editor-content-h3-font-size:1.4609rem;--neeto-editor-content-h4-font-size:1.1953rem;--neeto-editor-content-h5-font-size:0.875rem;--neeto-editor-content-h6-font-size:0.75rem;--neeto-editor-content-paragraph-font-size:1rem}}.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:#0c111d;color:rgba(var(--neeto-editor-content-heading-color));font-weight:600;font-weight:var(--neeto-editor-content-heading-font-weight)}.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:700!important;font-weight:var(--neeto-editor-content-heading-font-weight-bold)!important}.neeto-editor h1,.neeto-editor-content h1{font-size:var(--neeto-editor-content-h1-font-size);margin:1.5rem 0 .25rem;margin:var(--neeto-editor-content-h1-margin)}.neeto-editor h2,.neeto-editor-content h2{font-size:var(--neeto-editor-content-h2-font-size);margin:1.5rem 0 .25rem;margin:var(--neeto-editor-content-h2-margin)}.neeto-editor h3,.neeto-editor-content h3{font-size:var(--neeto-editor-content-h3-font-size);margin:1.5rem 0 .25rem;margin:var(--neeto-editor-content-h3-margin)}.neeto-editor h4,.neeto-editor-content h4{font-size:var(--neeto-editor-content-h4-font-size);margin:1.5rem 0 .25rem;margin:var(--neeto-editor-content-h4-margin)}.neeto-editor h5,.neeto-editor-content h5{font-size:var(--neeto-editor-content-h5-font-size);margin:1.5rem 0 .25rem;margin:var(--neeto-editor-content-h5-margin)}.neeto-editor h6,.neeto-editor-content h6{font-size:var(--neeto-editor-content-h6-font-size);margin:1.5rem 0 .25rem;margin:var(--neeto-editor-content-h6-margin)}.neeto-editor .header-wrapper,.neeto-editor-content .header-wrapper{position:relative}.neeto-editor .header-wrapper__link,.neeto-editor-content .header-wrapper__link{position:absolute;top:50%}.neeto-editor .header-wrapper h1,.neeto-editor .header-wrapper h2,.neeto-editor .header-wrapper h3,.neeto-editor .header-wrapper h4,.neeto-editor .header-wrapper h5,.neeto-editor .header-wrapper h6,.neeto-editor-content .header-wrapper h1,.neeto-editor-content .header-wrapper h2,.neeto-editor-content .header-wrapper h3,.neeto-editor-content .header-wrapper h4,.neeto-editor-content .header-wrapper h5,.neeto-editor-content .header-wrapper h6{line-height:1.25;line-height:var(--neeto-editor-content-heading-line-height);transition:color .15s ease-in}.neeto-editor .header-wrapper .header-link-icon-wrapper,.neeto-editor-content .header-wrapper .header-link-icon-wrapper{align-items:center;display:flex;height:100%;left:-1.5625rem;opacity:0;position:absolute;transition:opacity .15s ease-in;width:1.5625rem}.neeto-editor .header-wrapper .header-link-icon-wrapper svg,.neeto-editor-content .header-wrapper .header-link-icon-wrapper svg{fill:#006653;fill:rgb(var(--neeto-editor-primary-800));transition:fill .15s ease-in}.neeto-editor .header-wrapper:hover .header-link-icon-wrapper,.neeto-editor-content .header-wrapper:hover .header-link-icon-wrapper{opacity:1}.neeto-editor .header-wrapper:hover svg,.neeto-editor-content .header-wrapper:hover svg{fill:#095aba;fill:rgb(var(--neeto-editor-accent-800))}.neeto-editor p,.neeto-editor-content p{color:#363737;color:rgba(var(--neeto-editor-content-paragraph-color));font-size:var(--neeto-editor-content-paragraph-font-size);font-weight:400;font-weight:var(--neeto-editor-content-paragraph-font-weight);line-height:1.6;line-height:var(--neeto-editor-content-paragraph-line-height);margin:0;min-height:1.3rem}.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:600!important}.neeto-editor div,.neeto-editor-content div{color:#363737;color:rgba(var(--neeto-editor-content-paragraph-color));font-size:var(--neeto-editor-content-paragraph-font-size);font-weight:400;font-weight:var(--neeto-editor-content-paragraph-font-weight);line-height:1.6;line-height:var(--neeto-editor-content-paragraph-line-height)}.neeto-editor code,.neeto-editor-content code{background-color:#f6f8fa;background-color:rgba(var(--neeto-editor-content-code-background-color));border-color:#f6f8fa;border-color:rgba(var(--neeto-editor-content-code-background-color));border-radius:3px;border-radius:var(--neeto-editor-rounded-sm);color:#1f2328;color:rgba(var(--neeto-editor-content-code-color));font-family:SFMono-Regular,Menlo,Consolas,PT Mono,Liberation Mono,Courier,monospace;font-size:85%;font-size:var(--neeto-editor-content-code-font-size);padding:.2em .4em;padding:var(--neeto-editor-content-code-padding)}.neeto-editor code *,.neeto-editor-content code *{font-size:inherit!important}.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:85%;font-size:var(--neeto-editor-content-code-font-size)}.neeto-editor pre,.neeto-editor-content pre{background-color:#f6f8fa;background-color:rgba(var(--neeto-editor-content-code-background-color));border-color:#f6f8fa;border-color:rgba(var(--neeto-editor-content-code-background-color));border-radius:3px;border-radius:var(--neeto-editor-rounded-sm);counter-reset:line-number;font-size:var(--neeto-editor-content-paragraph-font-size);line-height:1.5;margin-bottom:1rem;margin-top:1rem;max-width:100%;padding:0;position:relative}.neeto-editor pre,.neeto-editor pre div,.neeto-editor-content pre,.neeto-editor-content pre div{color:#1f2328;color:rgba(var(--neeto-editor-content-code-color))}.neeto-editor pre .neeto-editor-codeblock-options,.neeto-editor-content pre .neeto-editor-codeblock-options{align-items:center;display:flex;gap:.25rem;opacity:0;position:absolute;right:.25rem;top:.25rem;visibility:hidden}.neeto-editor pre .neeto-editor-codeblock-options__menu,.neeto-editor-content pre .neeto-editor-codeblock-options__menu{display:flex;flex-direction:column;gap:.25rem}.neeto-editor pre .neeto-editor-codeblock-options__input,.neeto-editor-content pre .neeto-editor-codeblock-options__input{margin:.25rem}.neeto-editor pre:hover .copy-button,.neeto-editor pre:hover .neeto-editor-codeblock-options,.neeto-editor-content pre:hover .copy-button,.neeto-editor-content pre:hover .neeto-editor-codeblock-options{opacity:1;visibility:visible}.neeto-editor pre .copy-button,.neeto-editor-content pre .copy-button{opacity:0;position:absolute;right:.25rem;top:.25rem;visibility:hidden}.neeto-editor pre[data-linenumbers] .highlight-line,.neeto-editor-content pre[data-linenumbers] .highlight-line{padding-left:3.125rem;position:relative}.neeto-editor pre[data-linenumbers] .highlight-line:before,.neeto-editor-content pre[data-linenumbers] .highlight-line:before{align-items:center;color:#59636e;color:rgba(var(--neeto-editor-content-code-line-number-color));content:counter(line-number);counter-increment:line-number;display:flex;font-size:85%;font-weight:400;height:100%;justify-content:flex-end;left:0;padding-left:.625rem;padding-right:1rem;position:absolute;width:3.125rem}.neeto-editor pre[data-linenumbers] .highlight-line:last-child:before,.neeto-editor-content pre[data-linenumbers] .highlight-line:last-child:before{content:\"\"}.neeto-editor pre>code,.neeto-editor-content pre>code{background-color:transparent;border-radius:0;border-width:0;color:inherit;display:block;font-size:85%;font-size:var(--neeto-editor-content-code-font-size);font-weight:400;line-height:inherit;overflow-x:auto;padding:.75rem;white-space:pre!important;width:100%}.neeto-editor pre[data-linenumbers]>code,.neeto-editor-content pre[data-linenumbers]>code{padding-left:0}.neeto-editor blockquote,.neeto-editor-content blockquote{border-left-color:#d1d9e0;border-left-color:rgba(var(--neeto-editor-content-blockquote-border-color));border-left-width:4px;border-left-width:var(--neeto-editor-content-blockquote-border-left-width);color:#59636e;color:rgba(var(--neeto-editor-content-blockquote-color));font-weight:500;font-weight:var(--neeto-editor-font-medium);margin-bottom:1rem;margin-bottom:var(--neeto-editor-content-blockquote-margin-bottom);padding-left:.75rem;padding-left:var(--neeto-editor-content-blockquote-padding-left);quotes:\"“\" \"”\" \"‘\" \"’\"}.neeto-editor blockquote div,.neeto-editor blockquote p,.neeto-editor-content blockquote div,.neeto-editor-content blockquote p{color:inherit}.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:1rem;margin-bottom:var(--neeto-editor-content-list-margin-bottom);padding-left:2rem;padding-left:var(--neeto-editor-content-list-left-padding)}.neeto-editor ol li,.neeto-editor ul li,.neeto-editor-content ol li,.neeto-editor-content ul li{color:#363737;color:rgba(var(--neeto-editor-content-paragraph-color));font-size:var(--neeto-editor-content-paragraph-font-size);font-weight:400;font-weight:var(--neeto-editor-content-paragraph-font-weight);line-height:1.6;line-height:var(--neeto-editor-content-paragraph-line-height)}.neeto-editor ol li:before,.neeto-editor ul li:before,.neeto-editor-content ol li:before,.neeto-editor-content ul li:before{background-color:#363737;background-color:rgba(var(--neeto-editor-content-paragraph-color))}.neeto-editor ol.orderedList li>p,.neeto-editor ul.bulletList li>p,.neeto-editor-content ol.orderedList li>p,.neeto-editor-content ul.bulletList li>p{margin-bottom:.5rem;margin-bottom:var(--neeto-editor-content-list-item-margin-bottom);margin-top:.5rem;margin-top:var(--neeto-editor-content-list-item-margin-top)}.neeto-editor ol.orderedList+p,.neeto-editor ul.bulletList+p,.neeto-editor-content ol.orderedList+p,.neeto-editor-content ul.bulletList+p{margin-top:.5rem;margin-top:var(--neeto-editor-content-list-item-margin-top)}.neeto-editor a[href],.neeto-editor-content a[href]{color:#095aba;color:rgb(var(--neeto-editor-accent-800));font-weight:inherit}.neeto-editor .neeto-editor__video-wrapper,.neeto-editor-content .neeto-editor__video-wrapper{display:flex;margin:1rem 0}.neeto-editor .neeto-editor__video-wrapper .neeto-editor__video-iframe,.neeto-editor-content .neeto-editor__video-wrapper .neeto-editor__video-iframe{display:inline-block;height:auto!important;max-width:100%;vertical-align:top}.neeto-editor .neeto-editor__video-wrapper .neeto-editor__video-iframe iframe,.neeto-editor-content .neeto-editor__video-wrapper .neeto-editor__video-iframe iframe{aspect-ratio:16/9;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:3px;border-radius:var(--neeto-editor-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:#095aba;color:rgb(var(--neeto-editor-accent-800))}.neeto-editor table,.neeto-editor-content table{border:1px solid #d8dcde;border:1px solid rgba(var(--neeto-editor-gray-300));border-collapse:separate;border-radius:3px;border-radius:var(--neeto-editor-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 #d8dcde;border-left:1px solid rgba(var(--neeto-editor-gray-300));border-top:1px solid #d8dcde;border-top:1px solid rgba(var(--neeto-editor-gray-300));padding:8px 12px;position:relative;text-align:left}.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:#f6f7f8;background:rgb(var(--neeto-editor-gray-100));border-top:none}.neeto-editor table td,.neeto-editor-content table td{background:#fff;background:rgb(var(--neeto-editor-white))}.neeto-editor-content--hidden{display:none}.neeto-editor__image-wrapper{color:inherit!important;display:flex;font-weight:400!important;margin:1rem 0;padding-left:3px;text-decoration:none}.neeto-editor__image-wrapper figure{cursor:pointer;display:inline-block;margin:0;max-width:100%;overflow:hidden;position:relative;vertical-align:top}.neeto-editor__image-wrapper .neeto-editor__image{display:inline-block;height:auto!important;max-width:100%;min-height:52px;vertical-align:top}.neeto-editor__image-wrapper .neeto-editor__image img,.neeto-editor__image-wrapper .neeto-editor__image video{display:inline-block;height:auto;vertical-align:top!important;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{border:1px solid #e4e4e7;border-color:rgba(var(--neeto-editor-content-image-border-color));border-radius:8px;border-radius:var(--neeto-editor-content-image-border-radius);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:#344054;color:rgb(var(--neeto-editor-gray-600));font-size:.875rem;font-weight:400;font-weight:var(--neeto-editor-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:#87929d;color:rgb(var(--neeto-editor-gray-500));content:\"Add a caption\";inset:0;position:absolute}.neeto-editor__image-wrapper:has(img:not([src])){display:none}.neeto-editor figcaption,.neeto-editor-content figcaption{color:#6b7280;font-size:.875rem;font-weight:400;line-height:1.4;max-width:100%;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:#d8dcde;background-color:rgb(var(--neeto-editor-gray-300));padding:2px 0}.ne-image-preview-wrapper{align-items:center;background:rgba(16,24,40,.5);background:rgba(var(--neeto-editor-gray-800),.5);display:none;height:100%;justify-content:center;left:0;position:fixed;top:0;width:100%;z-index:999999}.ne-image-preview-wrapper.active{display:flex}.ne-image-preview-wrapper .ne-image-preview{background:#fff;background:rgb(var(--neeto-editor-white));display:flex;flex-direction:column;gap:10px;max-height:90vh;max-width:60vw;opacity:0;transition:opacity .1s ease-in-out}.ne-image-preview-wrapper .ne-image-preview img{background:#fff;background:rgb(var(--neeto-editor-white));max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain;overflow:hidden;padding:10px;width:-moz-fit-content;width:fit-content}.ne-image-preview-wrapper .ne-image-preview.image-loaded{align-items:center;background:transparent;border-radius:10px;display:flex;opacity:1}.ne-image-preview-wrapper .ne-image-preview__caption{color:#101828;color:rgb(var(--neeto-editor-gray-800));line-height:1.5;margin-top:auto;text-align:center;width:100%}.ne-image-preview-wrapper .close-button{align-items:center;background-color:#fff;background-color:rgb(var(--neeto-editor-white));border-radius:999px;border-radius:var(--neeto-editor-rounded-full);cursor:pointer;display:flex;height:30px;justify-content:center;position:absolute;right:12px;top:12px;width:30px}.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:#d8dcde;background-color:rgb(var(--neeto-editor-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 .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;width:100%}.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__header{align-items:center;display:flex;justify-content:flex-start;min-height:56px;padding:16px 16px 0}.ne-media-uploader__header-title{color:rgb(var(--neeto-ui-gray-800));font-size:1.125rem;font-weight:600;line-height:1.5;margin:0;text-align:left}.ne-media-uploader .neeto-ui-tab__wrapper{margin-top:1rem;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__image-uploader{flex-grow:1;width:100%}.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:flex-start;display:flex;flex-direction:column;flex-grow:1}.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}}.ne-video-embed-form{width:100%}.ne-video-embed-form__content{margin-bottom:1rem;width:100%}.ne-video-embed-form__footer{align-items:center;display:flex;gap:.5rem;justify-content:flex-start}.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{margin:1rem 0 0;max-width:100%;overflow-x:auto;position:relative;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;max-width:100%;overflow-x:auto}.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}.ProseMirror ul[data-type=todoList],.neeto-editor ul[data-type=todoList],.neeto-editor-content ul[data-type=todoList]{list-style:none;margin-left:0;padding:0}.ProseMirror ul[data-type=todoList] li,.neeto-editor ul[data-type=todoList] li,.neeto-editor-content ul[data-type=todoList] li{align-items:flex-start;display:flex;position:relative}.ProseMirror ul[data-type=todoList] li>label,.neeto-editor ul[data-type=todoList] li>label,.neeto-editor-content ul[data-type=todoList] li>label{flex:0 0 auto;margin-right:.5rem;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}.ProseMirror ul[data-type=todoList] li>div,.neeto-editor ul[data-type=todoList] li>div,.neeto-editor-content ul[data-type=todoList] li>div{flex:1 1 auto;min-height:1.5rem}.ProseMirror ul[data-type=todoList] input[type=checkbox],.neeto-editor ul[data-type=todoList] input[type=checkbox],.neeto-editor-content ul[data-type=todoList] input[type=checkbox]{border-color:rgb(var(--neeto-ui-gray-800));border-radius:0;border-width:1px;color:rgb(var(--neeto-ui-primary-500));cursor:pointer;pointer-events:auto;position:relative;top:-2px;z-index:2}.ProseMirror ul[data-type=todoList] input[type=checkbox]:checked,.neeto-editor ul[data-type=todoList] input[type=checkbox]:checked,.neeto-editor-content ul[data-type=todoList] input[type=checkbox]:checked{border-color:rgb(var(--neeto-ui-primary-500))}.ProseMirror ul[data-type=todoList] ul[data-type=todoList],.neeto-editor ul[data-type=todoList] ul[data-type=todoList],.neeto-editor-content ul[data-type=todoList] ul[data-type=todoList]{margin:0}.ProseMirror ul[data-type=todoList] li[data-checked=true]>div p,.neeto-editor ul[data-type=todoList] li[data-checked=true]>div p,.neeto-editor-content ul[data-type=todoList] li[data-checked=true]>div p{opacity:.65;text-decoration:line-through}.ne-link-popover{background-color:rgb(var(--neeto-ui-white));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:rgb(var(--neeto-ui-gray-800));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}.ne-codeblock-nodeview-wrapper pre{padding-left:.75rem;padding-right:.75rem}.ne-codeblock-nodeview-wrapper pre:before{content:none}.ne-codeblock-nodeview-wrapper .highlighted-line{background-color:rgba(255,255,0,.2);left:0;pointer-events:none;position:absolute;right:0;z-index:0}.neeto-ui-dropdown__popup .neeto-ui-dropdown__popup-menu.neeto-editor-highlight-dropdown{padding:12px;width:240px}.neeto-editor-highlight-dropdown{display:flex;flex-direction:column;gap:16px}.neeto-editor-highlight-dropdown__section{width:100%}.neeto-editor-highlight-dropdown__section-title{color:rgb(var(--neeto-ui-gray-600));margin-bottom:8px}.neeto-editor-highlight-dropdown__color-grid{display:flex;flex-wrap:wrap;gap:8px}.neeto-editor-highlight-dropdown__color-dot{border:1px solid;border-radius:5px;cursor:pointer;height:26px;position:relative;transition:all .2s ease;width:26px}.neeto-editor-highlight-dropdown__color-dot:hover{box-shadow:inset 0 0 0 1px currentColor}.neeto-editor-highlight-dropdown__color-dot-text{color:currentColor;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.neeto-editor-highlight-dropdown__color-dot--selected{box-shadow:inset 0 0 0 1.5px currentColor}.neeto-editor-highlight-dropdown__color-dot--background{border-color:rgb(var(--neeto-ui-gray-300))}.neeto-editor-highlight-dropdown__color-dot--background:hover{box-shadow:inset 0 0 0 1px rgb(var(--neeto-ui-gray-300))}.neeto-editor-highlight-dropdown__color-dot--background.neeto-editor-highlight-dropdown__color-dot--selected{box-shadow:inset 0 0 0 1.5px rgb(var(--neeto-ui-gray-300))}.neeto-editor__callout{border-radius:8px;margin:16px 0;padding:16px;position:relative}.neeto-editor__callout .callout-container{align-items:flex-start;display:flex;gap:12px}.neeto-editor__callout .callout-container .callout-emoji{flex-shrink:0;line-height:1}.neeto-editor__callout .callout-container .callout-content{flex-grow:1;min-width:0;outline:none}.neeto-editor__callout .callout-container .callout-content p{margin:0}.neeto-editor__callout .callout-container .callout-content h1:first-child,.neeto-editor__callout .callout-container .callout-content h2:first-child,.neeto-editor__callout .callout-container .callout-content h3:first-child,.neeto-editor__callout .callout-container .callout-content h4:first-child,.neeto-editor__callout .callout-container .callout-content h5:first-child,.neeto-editor__callout .callout-container .callout-content h6:first-child,.neeto-editor__callout .callout-container .callout-content>p:first-child{margin-top:0}.neeto-editor__callout--default{background-color:#f6f7f8;background-color:rgb(var(--neeto-editor-gray-100))}.neeto-editor__callout--info{background-color:#e2f2ff;background-color:rgb(var(--neeto-editor-info-100))}.neeto-editor__callout--warning{background-color:#fbf2e1;background-color:rgb(var(--neeto-editor-warning-100))}.neeto-editor__callout--error{background-color:#feecf0;background-color:rgb(var(--neeto-editor-error-100))}.neeto-editor__callout--success{background-color:#ebfffa;background-color:rgb(var(--neeto-editor-success-100))}.neeto-ui-dropdown__popup .neeto-ui-dropdown__popup-menu.neeto-editor-callout-dropdown{padding:8px;width:200px}.neeto-editor-callout-dropdown{display:flex;flex-direction:column;gap:8px}.neeto-editor-callout-dropdown .neeto-editor-callout-dropdown__section{width:100%}.neeto-editor-callout-dropdown .neeto-editor-callout-dropdown__section .neeto-editor-callout-dropdown__section-title{color:rgb(var(--neeto-ui-gray-600));font-size:10px;font-weight:500;letter-spacing:.5px;margin-bottom:4px;padding:0 4px;text-transform:uppercase}.neeto-editor-callout-dropdown .neeto-editor-callout-dropdown__section .neeto-editor-callout-dropdown__options-grid{display:flex;flex-direction:column;gap:2px}.neeto-editor-callout-dropdown__type-option{align-items:center;background:none;border:none;border-radius:4px;cursor:pointer;display:flex;font-size:12px;padding:6px 8px;text-align:left;transition:all .15s ease;width:100%}.neeto-editor-callout-dropdown__type-option .neeto-editor-callout-dropdown__type-emoji{align-items:center;display:flex;flex-shrink:0;font-size:14px;height:16px;justify-content:center;margin-right:8px;width:16px}.neeto-editor-callout-dropdown__type-option .neeto-editor-callout-dropdown__type-label{color:rgb(var(--neeto-ui-gray-800));flex:1;font-weight:500}.neeto-editor-callout-dropdown__type-option:hover{background-color:rgb(var(--neeto-ui-gray-50))}.neeto-editor-callout-dropdown__type-option--selected{background-color:rgb(var(--neeto-ui-primary-50));border:1px solid rgb(var(--neeto-ui-primary-200))}.neeto-editor-callout-dropdown__type-option--selected .neeto-editor-callout-dropdown__type-label{color:rgb(var(--neeto-ui-primary-900))}.neeto-editor-callout-dropdown__current-emoji{display:inline-block}.ProseMirror{height:100%;overflow-y:auto;white-space:break-spaces}.ProseMirror:focus{outline:none}";
|
|
185
|
+
var css$1 = "@charset \"UTF-8\";.tippy-box[data-theme~=neeto-editor-slash-commands-tippy]{border:1px solid rgb(var(--neeto-ui-gray-400))}.tippy-box[data-theme~=neeto-editor-slash-commands-tippy] .tippy-content{padding:0!important}.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:8px;width:256px}.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item{align-items:center;border:none;border-radius:var(--neeto-ui-rounded);box-shadow:none;color:rgb(var(--neeto-ui-gray-800));cursor:pointer;display:flex;flex-direction:row;gap:8px;justify-content:flex-start;outline:none;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:focus-visible,.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item:hover{background-color:rgb(var(--neeto-ui-gray-200));border:none;box-shadow:none;color:rgb(var(--neeto-ui-black));outline:none}.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content{text-align:left}.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content .neeto-editor-slash-commands__item-description,.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content .neeto-editor-slash-commands__item-title{font-size:14px;font-weight:400;line-height:1.2;text-align:left}.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,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik0zLjgyMSAxNWgxLjIzVjYuMjQzaDMuMThWNS4xMzZILjY0MnYxLjEwN0gzLjgyVjE1Wm01LjkgMi41ODRjMS4zMDUgMCAxLjkxNC0uNDc5IDIuNTIyLTIuMTMzbDIuODc4LTcuODJoLTEuMjVsLTIuMDE4IDYuMDYzaC0uMTA5TDkuNzIxIDcuNjMxSDguNDQ5bDIuNzI4IDcuMzc2LS4xMzcuNDM3Yy0uMjY3Ljg0OC0uNjc3IDEuMTU2LTEuMzUzIDEuMTU2LS4xNjUgMC0uMzUtLjAwNy0uNDkzLS4wMzV2Ljk3OGMuMTY0LjAyNy4zNy4wNDEuNTI3LjA0MVptNi45NzItLjEyM2gxLjE5di0zLjYyM2guMTFjLjQwMi43ODYgMS4yODQgMS4yOTIgMi4yOTYgMS4yOTIgMS44NzMgMCAzLjA5LTEuNDk3IDMuMDktMy44MDh2LS4wMTNjMC0yLjI5Ny0xLjIyNC0zLjgwOC0zLjA5LTMuODA4LTEuMDI1IDAtMS44NDYuNDg1LTIuMjk3IDEuMzA2aC0uMTFWNy42M2gtMS4xODl2OS44M1ptMy4zMjMtMy4zODRjLTEuMzQgMC0yLjE2LTEuMDUzLTIuMTYtMi43NTV2LS4wMTNjMC0xLjcwMy44Mi0yLjc1NSAyLjE2LTIuNzU1IDEuMzQ2IDAgMi4xNDYgMS4wMzkgMi4xNDYgMi43NTV2LjAxM2MwIDEuNzE2LS44IDIuNzU1LTIuMTQ2IDIuNzU1Wm04LjIzIDEuMDUzYzEuNzM2IDAgMi43OS0uOTg1IDMuMDQyLTEuOTgybC4wMTQtLjA1NWgtMS4xOWwtLjAyNy4wNjFjLS4xOTguNDQ1LS44MTQuOTE2LTEuODEyLjkxNi0xLjMxMiAwLTIuMTUzLS44ODgtMi4xODctMi40MTNoNS4zMDV2LS40NjVjMC0yLjItMS4yMTctMy42OTEtMy4yMi0zLjY5MXMtMy4zMDIgMS41NTktMy4zMDIgMy44MzV2LjAwN2MwIDIuMzEgMS4yNzIgMy43ODcgMy4zNzcgMy43ODdabS0uMDgyLTYuNTdjMS4wODcgMCAxLjg5NC42OTEgMi4wMTcgMi4xNDdoLTQuMDc1Yy4xMy0xLjQwMS45NjQtMi4xNDYgMi4wNTgtMi4xNDZaIiBmaWxsPSIjODc5MjlEIi8+PHJlY3QgeD0iMzciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgcng9IjMiIGZpbGw9IiNFOUVCRUQiLz48cGF0aCBkPSJtNTAuNDI4IDUuOTE0LTYuODU2IDguMTcyIiBzdHJva2U9IiMyNTJDMzIiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48cGF0aCBkPSJNNjQuNzI2IDE1LjA1NWMuMjMyIDAgLjQ1OC0uMDI4LjY5LS4wNjl2LTEuMDExYy0uMjE5LjAyLS4zMzUuMDI3LS41NDcuMDI3LS43NjYgMC0xLjA2Ni0uMzQ5LTEuMDY2LTEuMjE3di00LjE3aDEuNjEzdi0uOTg0aC0xLjYxM1Y1LjcyNGgtMS4yM1Y3LjYzSDYxLjQxdi45ODRoMS4xNjJ2NC40N2MwIDEuNDEuNjM2IDEuOTcgMi4xNTQgMS45N1ptNS4zODYuMDc1YzIuMDk5IDAgMy4zOTgtMS40NSAzLjM5OC0zLjgwOHYtLjAxM2MwLTIuMzY2LTEuMy0zLjgwOC0zLjM5OC0zLjgwOHMtMy4zOTcgMS40NDItMy4zOTcgMy44MDh2LjAxM2MwIDIuMzU5IDEuMjk5IDMuODA4IDMuMzk3IDMuODA4Wm0wLTEuMDUzYy0xLjM5NCAwLTIuMTgtMS4wMTgtMi4xOC0yLjc1NXYtLjAxM2MwLTEuNzQ0Ljc4Ni0yLjc1NSAyLjE4LTIuNzU1IDEuMzk1IDAgMi4xODEgMS4wMTEgMi4xODEgMi43NTV2LjAxM2MwIDEuNzM3LS43ODYgMi43NTUtMi4xOCAyLjc1NVptMTIuMTk2IDEuMDUzYzEuNzcgMCAyLjc2MS0uOTUgMy4wNjItMi4yODNsLjAxNC0uMDc1LTEuMTc2LjAwNi0uMDE0LjA0MWMtLjI3My44Mi0uOTAyIDEuMjU4LTEuODkzIDEuMjU4LTEuMzEzIDAtMi4xNi0xLjA4Ny0yLjE2LTIuNzgydi0uMDE0YzAtMS42Ni44MzQtMi43MjcgMi4xNi0yLjcyNyAxLjA2IDAgMS43MTYuNTg4IDEuOSAxLjMxMmwuMDA3LjAyaDEuMTgzbC0uMDA3LS4wNEM4NS4xNjUgOC41MzMgODQuMDkyIDcuNSA4Mi4zIDcuNWMtMi4wNjUgMC0zLjM3NyAxLjQ5LTMuMzc3IDMuNzh2LjAxNGMwIDIuMzM4IDEuMzIgMy44MzUgMy4zODQgMy44MzVabTQuODg3LS4xM2gxLjE5di00LjM2MWMwLTEuMjkyLjc0NS0yLjA4NSAxLjkyLTIuMDg1IDEuMTc2IDAgMS43MjMuNjM1IDEuNzIzIDEuOTYyVjE1aDEuMTl2LTQuNzcxYzAtMS43NS0uOTIzLTIuNzI4LTIuNTc3LTIuNzI4LTEuMDg3IDAtMS43NzguNDU4LTIuMTQ3IDEuMjM3aC0uMTFWNC43MDVoLTEuMTg5VjE1Wm0xMC4yLjEzYy45OSAwIDEuNzYzLS40MyAyLjIyOC0xLjIxN2guMTFWMTVoMS4xODlWOS45NTVjMC0xLjUzMS0xLjAwNS0yLjQ1NC0yLjgwMy0yLjQ1NC0xLjU3MiAwLTIuNjkzLjc4LTIuODg1IDEuOTM1bC0uMDA2LjA0aDEuMTg5bC4wMDctLjAyYy4xOTEtLjU3NC43NzItLjkwMiAxLjY1NC0uOTAyIDEuMSAwIDEuNjU0LjQ5MiAxLjY1NCAxLjQwMXYuNjdsLTIuMTEyLjEzYy0xLjcxNi4xMDItMi42ODYuODYxLTIuNjg2IDIuMTc0di4wMTNjMCAxLjM0IDEuMDYgMi4xODggMi40NiAyLjE4OFptLTEuMjQ1LTIuMjE1di0uMDE0YzAtLjczMS40OTMtMS4xMjggMS42MTQtMS4xOTZsMS45NjgtLjEyM3YuNjdjMCAxLjA1My0uODgxIDEuODQ2LTIuMDkxIDEuODQ2LS44NTUgMC0xLjQ5LS40MzgtMS40OS0xLjE4M1pNMTAzLjA5NiAxNWgxLjE4OXYtNC4zNjFjMC0xLjI5Mi43NDUtMi4wODUgMS45MjEtMi4wODUgMS4xNzYgMCAxLjcyMy42MzUgMS43MjMgMS45NjJWMTVoMS4xODl2LTQuNzcxYzAtMS43NS0uOTIzLTIuNzI4LTIuNTc3LTIuNzI4LTEuMDg3IDAtMS43NzcuNDU4LTIuMTQ2IDEuMjM3aC0uMTFWNy42MzFoLTEuMTg5VjE1Wm0xMS4yMTEgMi41OThjMi4wMDkgMCAzLjI4MS0xLjA1MyAzLjI4MS0yLjdWNy42M2gtMS4xOXYxLjIxN2gtLjA4MmMtLjQ1MS0uODM0LTEuMjU3LTEuMzQ3LTIuMjk2LTEuMzQ3LTEuOTI4IDAtMy4xMTggMS40OTctMy4xMTggMy41NjF2LjAxNGMwIDIuMDY1IDEuMTgzIDMuNTQxIDMuMDkgMy41NDEgMS4wMTIgMCAxLjg0Ni0uNDU4IDIuMzExLTEuMjcxaC4xMDl2MS40OWMwIDEuMDg3LS43ODYgMS43MDktMi4xMDUgMS43MDktMS4wNiAwLTEuNzE2LS4zOTctMS44NDYtLjk1N2wtLjAwNy0uMDA3aC0xLjIzbC0uMDE0LjAwN2MuMTg1IDEuMjEgMS4zMTkgMi4wMSAzLjA5NyAyLjAxWm0tLjA1NS00LjAzM2MtMS4zNjcgMC0yLjEzMy0xLjAyNi0yLjEzMy0yLjQ4OXYtLjAxNGMwLTEuNDYyLjc2Ni0yLjUwOCAyLjEzMy0yLjUwOCAxLjM2IDAgMi4xODcgMS4wNDYgMi4xODcgMi41MDh2LjAxNGMwIDEuNDYzLS44MiAyLjQ4OS0yLjE4NyAyLjQ4OVptOC41NTkgMS41NjVjMS43MzYgMCAyLjc4OS0uOTg1IDMuMDQyLTEuOTgybC4wMTMtLjA1NWgtMS4xODlsLS4wMjguMDYxYy0uMTk4LjQ0NS0uODEzLjkxNi0xLjgxMS45MTYtMS4zMTMgMC0yLjE1My0uODg4LTIuMTg4LTIuNDEzaDUuMzA1di0uNDY1YzAtMi4yLTEuMjE3LTMuNjkxLTMuMjItMy42OTFzLTMuMzAxIDEuNTU5LTMuMzAxIDMuODM1di4wMDdjMCAyLjMxIDEuMjcxIDMuNzg3IDMuMzc3IDMuNzg3Wm0tLjA4Mi02LjU3YzEuMDg2IDAgMS44OTMuNjkxIDIuMDE2IDIuMTQ3aC00LjA3NGMuMTMtMS40MDEuOTY0LTIuMTQ2IDIuMDU4LTIuMTQ2Wm0xMi42NzMgNi41N2MxLjg2NyAwIDMuMDktMS41MSAzLjA5LTMuODA4di0uMDEzYzAtMi4zMTEtMS4yMTctMy44MDgtMy4wOS0zLjgwOC0xLjAxMSAwLTEuODkzLjUwNi0yLjI5NyAxLjI5MmgtLjEwOVY0LjcwNWgtMS4xODlWMTVoMS4xODl2LTEuMTc2aC4xMDljLjQ1Mi44MiAxLjI3MiAxLjMwNiAyLjI5NyAxLjMwNlptLS4yNzMtMS4wNTNjLTEuMzQgMC0yLjE2LTEuMDUzLTIuMTYtMi43NTV2LS4wMTNjMC0xLjcwMy44Mi0yLjc1NSAyLjE2LTIuNzU1IDEuMzQ3IDAgMi4xNDYgMS4wMzkgMi4xNDYgMi43NTV2LjAxM2MwIDEuNzE2LS43OTkgMi43NTUtMi4xNDYgMi43NTVabTUuMjc3LjkyM2gxLjE5VjQuNzA1aC0xLjE5VjE1Wm02LjUwMS4xM2MyLjA5OSAwIDMuMzk4LTEuNDUgMy4zOTgtMy44MDh2LS4wMTNjMC0yLjM2Ni0xLjI5OS0zLjgwOC0zLjM5OC0zLjgwOC0yLjA5OCAwLTMuMzk3IDEuNDQyLTMuMzk3IDMuODA4di4wMTNjMCAyLjM1OSAxLjI5OSAzLjgwOCAzLjM5NyAzLjgwOFptMC0xLjA1M2MtMS4zOTQgMC0yLjE4LTEuMDE4LTIuMTgtMi43NTV2LS4wMTNjMC0xLjc0NC43ODYtMi43NTUgMi4xOC0yLjc1NSAxLjM5NSAwIDIuMTgxIDEuMDExIDIuMTgxIDIuNzU1di4wMTNjMCAxLjczNy0uNzg2IDIuNzU1LTIuMTgxIDIuNzU1Wm04LjI1OCAxLjA1M2MxLjc3MSAwIDIuNzYyLS45NSAzLjA2My0yLjI4M2wuMDEzLS4wNzUtMS4xNzYuMDA2LS4wMTMuMDQxYy0uMjc0LjgyLS45MDMgMS4yNTgtMS44OTQgMS4yNTgtMS4zMTIgMC0yLjE2LTEuMDg3LTIuMTYtMi43ODJ2LS4wMTRjMC0xLjY2LjgzNC0yLjcyNyAyLjE2LTIuNzI3IDEuMDYgMCAxLjcxNi41ODggMS45MDEgMS4zMTJsLjAwNi4wMmgxLjE4M2wtLjAwNy0uMDRjLS4yMTktMS4zMTMtMS4yOTItMi4zNDUtMy4wODMtMi4zNDUtMi4wNjQgMC0zLjM3NyAxLjQ5LTMuMzc3IDMuNzh2LjAxNGMwIDIuMzM4IDEuMzIgMy44MzUgMy4zODQgMy44MzVabTQuODg4LS4xM2gxLjE4OXYtMi43OTZsLjY5MS0uNjdMMTY0LjY5NCAxNWgxLjQ5N2wtMy40MjQtNC4yNzMgMy4yMTItMy4wOTZoLTEuNDQybC0zLjE4NSAzLjIyaC0uMTFWNC43MDVoLTEuMTg5VjE1Wm0xNC4wODkuMDU1Yy4yMzIgMCAuNDU4LS4wMjguNjktLjA2OXYtMS4wMTFjLS4yMTkuMDItLjMzNS4wMjctLjU0Ny4wMjctLjc2NSAwLTEuMDY2LS4zNDktMS4wNjYtMS4yMTd2LTQuMTdoMS42MTN2LS45ODRoLTEuNjEzVjUuNzI0aC0xLjIzMVY3LjYzaC0xLjE2MnYuOTg0aDEuMTYydjQuNDdjMCAxLjQxLjYzNiAxLjk3IDIuMTU0IDEuOTdabTMuMDk2IDIuNTI5YzEuMzA2IDAgMS45MTQtLjQ3OSAyLjUyMy0yLjEzM2wyLjg3OC03LjgyaC0xLjI1MWwtMi4wMTcgNi4wNjNoLS4xMDlsLTIuMDI0LTYuMDYzaC0xLjI3MWwyLjcyNyA3LjM3Ni0uMTM2LjQzN2MtLjI2Ny44NDgtLjY3NyAxLjE1Ni0xLjM1NCAxLjE1NmEyLjgyIDIuODIgMCAwIDEtLjQ5Mi0uMDM1di45NzhjLjE2NC4wMjcuMzY5LjA0MS41MjYuMDQxWm02Ljk3My0uMTIzaDEuMTg5di0zLjYyM2guMTFjLjQwMy43ODYgMS4yODUgMS4yOTIgMi4yOTcgMS4yOTIgMS44NzMgMCAzLjA4OS0xLjQ5NyAzLjA4OS0zLjgwOHYtLjAxM2MwLTIuMjk3LTEuMjIzLTMuODA4LTMuMDg5LTMuODA4LTEuMDI2IDAtMS44NDYuNDg1LTIuMjk3IDEuMzA2aC0uMTFWNy42M2gtMS4xODl2OS44M1ptMy4zMjItMy4zODRjLTEuMzQgMC0yLjE2LTEuMDUzLTIuMTYtMi43NTV2LS4wMTNjMC0xLjcwMy44Mi0yLjc1NSAyLjE2LTIuNzU1IDEuMzQ3IDAgMi4xNDcgMS4wMzkgMi4xNDcgMi43NTV2LjAxM2MwIDEuNzE2LS44IDIuNzU1LTIuMTQ3IDIuNzU1Wm04LjIzMSAxLjA1M2MxLjczNiAwIDIuNzg5LS45ODUgMy4wNDItMS45ODJsLjAxMy0uMDU1aC0xLjE4OWwtLjAyNy4wNjFjLS4xOTkuNDQ1LS44MTQuOTE2LTEuODEyLjkxNi0xLjMxMiAwLTIuMTUzLS44ODgtMi4xODctMi40MTNoNS4zMDR2LS40NjVjMC0yLjItMS4yMTctMy42OTEtMy4yMi0zLjY5MS0yLjAwMiAwLTMuMzAxIDEuNTU5LTMuMzAxIDMuODM1di4wMDdjMCAyLjMxIDEuMjcxIDMuNzg3IDMuMzc3IDMuNzg3Wm0tLjA4Mi02LjU3YzEuMDg3IDAgMS44OTMuNjkxIDIuMDE2IDIuMTQ3aC00LjA3NGMuMTMtMS40MDEuOTY0LTIuMTQ2IDIuMDU4LTIuMTQ2WiIgZmlsbD0iIzg3OTI5RCIvPjwvc3ZnPg==\");height:0;pointer-events:none;position:absolute;top:-2px;z-index:-1}.neeto-ui-theme--dark .hljs{background:#0d1117;color:#c9d1d9}.neeto-ui-theme--dark .hljs-doctag,.neeto-ui-theme--dark .hljs-keyword,.neeto-ui-theme--dark .hljs-meta .hljs-keyword,.neeto-ui-theme--dark .hljs-template-tag,.neeto-ui-theme--dark .hljs-template-variable,.neeto-ui-theme--dark .hljs-type,.neeto-ui-theme--dark .hljs-variable.language_{color:#ff7b72}.neeto-ui-theme--dark .hljs-title,.neeto-ui-theme--dark .hljs-title.class_,.neeto-ui-theme--dark .hljs-title.class_.inherited__,.neeto-ui-theme--dark .hljs-title.function_{color:#d2a8ff}.neeto-ui-theme--dark .hljs-attr,.neeto-ui-theme--dark .hljs-attribute,.neeto-ui-theme--dark .hljs-literal,.neeto-ui-theme--dark .hljs-meta,.neeto-ui-theme--dark .hljs-number,.neeto-ui-theme--dark .hljs-operator,.neeto-ui-theme--dark .hljs-selector-attr,.neeto-ui-theme--dark .hljs-selector-class,.neeto-ui-theme--dark .hljs-selector-id,.neeto-ui-theme--dark .hljs-variable{color:#79c0ff}.neeto-ui-theme--dark .hljs-meta .hljs-string,.neeto-ui-theme--dark .hljs-regexp,.neeto-ui-theme--dark .hljs-string{color:#a5d6ff}.neeto-ui-theme--dark .hljs-built_in,.neeto-ui-theme--dark .hljs-symbol{color:#ffa657}.neeto-ui-theme--dark .hljs-code,.neeto-ui-theme--dark .hljs-comment,.neeto-ui-theme--dark .hljs-formula{color:#8b949e}.neeto-ui-theme--dark .hljs-name,.neeto-ui-theme--dark .hljs-quote,.neeto-ui-theme--dark .hljs-selector-pseudo,.neeto-ui-theme--dark .hljs-selector-tag{color:#7ee787}.neeto-ui-theme--dark .hljs-subst{color:#c9d1d9}.neeto-ui-theme--dark .hljs-section{color:#1f6feb}.neeto-ui-theme--dark .hljs-bullet{color:#f2cc60}.neeto-ui-theme--dark .hljs-emphasis{color:#c9d1d9}.neeto-ui-theme--dark .hljs-strong{color:#c9d1d9;font-weight:700}.neeto-ui-theme--dark .hljs-addition{background-color:#033a16;color:#aff5b4}.neeto-ui-theme--dark .hljs-deletion{background-color:#67060c;color:#ffdcd7}.neeto-ui-theme--light .hljs{background:#f8f8f8;color:#333}.neeto-ui-theme--light .hljs-comment,.neeto-ui-theme--light .hljs-quote{color:#998}.neeto-ui-theme--light .hljs-keyword,.neeto-ui-theme--light .hljs-selector-tag,.neeto-ui-theme--light .hljs-subst{color:#333}.neeto-ui-theme--light .hljs-literal,.neeto-ui-theme--light .hljs-number,.neeto-ui-theme--light .hljs-tag .hljs-attr,.neeto-ui-theme--light .hljs-template-variable,.neeto-ui-theme--light .hljs-variable{color:teal}.neeto-ui-theme--light .hljs-doctag,.neeto-ui-theme--light .hljs-string{color:#d14}.neeto-ui-theme--light .hljs-section,.neeto-ui-theme--light .hljs-selector-id,.neeto-ui-theme--light .hljs-title{color:#900}.neeto-ui-theme--light .hljs-class .hljs-title,.neeto-ui-theme--light .hljs-type{color:#458}.neeto-ui-theme--light .hljs-attribute,.neeto-ui-theme--light .hljs-name,.neeto-ui-theme--light .hljs-tag{color:navy}.neeto-ui-theme--light .hljs-link,.neeto-ui-theme--light .hljs-regexp{color:#009926}.neeto-ui-theme--light .hljs-bullet,.neeto-ui-theme--light .hljs-symbol{color:#990073}.neeto-ui-theme--light .hljs-built_in,.neeto-ui-theme--light .hljs-builtin-name{color:#0086b3}.neeto-ui-theme--light .hljs-meta{color:#999}.neeto-ui-theme--light .hljs-deletion{background:#fdd}.neeto-ui-theme--light .hljs-addition{background:#dfd}.neeto-ui-theme--light,:root{--neeto-editor-white:255,255,255;--neeto-editor-black:12,17,29;--neeto-editor-gray-800:16,24,40;--neeto-editor-gray-700:29,41,57;--neeto-editor-gray-600:52,64,84;--neeto-editor-gray-500:135,146,157;--neeto-editor-gray-400:194,200,204;--neeto-editor-gray-300:216,220,222;--neeto-editor-gray-200:233,235,237;--neeto-editor-gray-100:246,247,248;--neeto-editor-gray-50:250,250,250;--neeto-editor-primary-800:0,102,83;--neeto-editor-primary-600:0,122,100;--neeto-editor-primary-500:0,128,104;--neeto-editor-primary-100:225,243,238;--neeto-editor-primary-50:240,249,247;--neeto-editor-accent-800:9,90,186;--neeto-editor-accent-600:13,102,208;--neeto-editor-accent-500:20,115,230;--neeto-editor-accent-100:230,244,255;--neeto-editor-accent-50:239,248,255;--neeto-editor-success-800:1,121,93;--neeto-editor-success-600:1,141,109;--neeto-editor-success-500:2,162,124;--neeto-editor-success-100:235,255,250;--neeto-editor-error-800:187,18,26;--neeto-editor-error-600:201,37,45;--neeto-editor-error-500:215,55,63;--neeto-editor-error-100:254,236,240;--neeto-editor-info-800:9,90,186;--neeto-editor-info-600:13,102,208;--neeto-editor-info-500:20,115,230;--neeto-editor-info-100:226,242,255;--neeto-editor-warning-800:189,100,13;--neeto-editor-warning-600:203,111,16;--neeto-editor-warning-500:218,123,17;--neeto-editor-warning-100:251,242,225;--neeto-editor-pastel-silver:232,233,237;--neeto-editor-pastel-red:255,229,229;--neeto-editor-pastel-yellow:254,243,197;--neeto-editor-pastel-green:211,249,232;--neeto-editor-pastel-blue:236,244,255;--neeto-editor-pastel-purple:238,235,255;--neeto-editor-pastel-pink:253,226,241;--neeto-editor-rounded-none:0;--neeto-editor-rounded-sm:3px;--neeto-editor-rounded:5px;--neeto-editor-rounded-md:6px;--neeto-editor-rounded-lg:8px;--neeto-editor-rounded-xl:12px;--neeto-editor-rounded-full:999px;--neeto-editor-font-thin:100;--neeto-editor-font-extralight:200;--neeto-editor-font-light:300;--neeto-editor-font-normal:400;--neeto-editor-font-medium:500;--neeto-editor-font-semibold:600;--neeto-editor-font-bold:700;--neeto-editor-font-extrabold:800;--neeto-editor-font-black:900;--neeto-editor-content-h1-margin:1.5rem 0 0.25rem;--neeto-editor-content-h2-margin:1.5rem 0 0.25rem;--neeto-editor-content-h3-margin:1.5rem 0 0.25rem;--neeto-editor-content-h4-margin:1.5rem 0 0.25rem;--neeto-editor-content-h5-margin:1.5rem 0 0.25rem;--neeto-editor-content-h6-margin:1.5rem 0 0.25rem;--neeto-editor-content-heading-font-weight:600;--neeto-editor-content-heading-font-weight-bold:bold;--neeto-editor-content-heading-color:12,17,29,1;--neeto-editor-content-heading-line-height:1.25;--neeto-editor-content-paragraph-color:54,55,55,1;--neeto-editor-content-paragraph-font-weight:400;--neeto-editor-content-paragraph-line-height:1.6;--neeto-editor-content-list-left-padding:2rem;--neeto-editor-content-list-margin-bottom:1rem;--neeto-editor-content-list-item-margin-bottom:0.5rem;--neeto-editor-content-list-item-margin-top:0.5rem;--neeto-editor-content-code-font-size:85%;--neeto-editor-content-code-background-color:246,248,250,1;--neeto-editor-content-code-line-number-color:89,99,110,1;--neeto-editor-content-code-color:31,35,40,1;--neeto-editor-content-code-padding:0.2em 0.4em;--neeto-editor-content-blockquote-color:89,99,110,1;--neeto-editor-content-blockquote-border-color:209,217,224,1;--neeto-editor-content-blockquote-border-left-width:4px;--neeto-editor-content-blockquote-margin-bottom:1rem;--neeto-editor-content-blockquote-padding-left:0.75rem;--neeto-editor-content-image-border-color:228,228,231;--neeto-editor-content-image-border-radius:8px;--neeto-editor-highlight-text-1:#32302c;--neeto-editor-highlight-text-2:#787774;--neeto-editor-highlight-text-3:#9f6b53;--neeto-editor-highlight-text-4:#d9730d;--neeto-editor-highlight-text-5:#cb912f;--neeto-editor-highlight-text-6:#448361;--neeto-editor-highlight-text-7:#337ea9;--neeto-editor-highlight-text-8:#9065b0;--neeto-editor-highlight-text-9:#c14c8a;--neeto-editor-highlight-text-10:#d44c47;--neeto-editor-highlight-bg-1:#ff0;--neeto-editor-highlight-bg-2:#f8f8f7;--neeto-editor-highlight-bg-3:#f4eeee;--neeto-editor-highlight-bg-4:#fbecdd;--neeto-editor-highlight-bg-5:#fbf3db;--neeto-editor-highlight-bg-6:#edf3ec;--neeto-editor-highlight-bg-7:#e7f3f8;--neeto-editor-highlight-bg-8:#f8f3fc;--neeto-editor-highlight-bg-9:#fcf1f6;--neeto-editor-highlight-bg-10:#fdebec}.neeto-ui-theme--dark{--neeto-editor-white:18,18,18;--neeto-editor-black:224,224,224;--neeto-editor-gray-50:10,10,10;--neeto-editor-gray-100:30,30,30;--neeto-editor-gray-200:44,44,44;--neeto-editor-gray-300:57,57,57;--neeto-editor-gray-400:73,73,73;--neeto-editor-gray-500:92,92,92;--neeto-editor-gray-600:124,124,124;--neeto-editor-gray-700:162,162,162;--neeto-editor-gray-800:200,200,200;--neeto-editor-primary-800:0,245,200;--neeto-editor-primary-600:0,224,183;--neeto-editor-primary-500:0,204,167;--neeto-editor-primary-100:0,61,49;--neeto-editor-primary-50:0,41,33;--neeto-editor-accent-800:142,189,245;--neeto-editor-accent-600:105,167,242;--neeto-editor-accent-500:67,144,239;--neeto-editor-accent-100:10,56,113;--neeto-editor-accent-50:7,37,75;--neeto-editor-error-800:247,109,116;--neeto-editor-error-600:236,91,98;--neeto-editor-error-500:227,72,80;--neeto-editor-error-100:129,33,38;--neeto-editor-success-800:0,245,200;--neeto-editor-success-600:0,224,183;--neeto-editor-success-500:0,204,167;--neeto-editor-success-100:0,61,49;--neeto-editor-warning-800:249,164,63;--neeto-editor-warning-600:242,148,35;--neeto-editor-warning-500:230,134,25;--neeto-editor-warning-100:131,74,11;--neeto-editor-info-800:142,189,245;--neeto-editor-info-600:105,167,242;--neeto-editor-info-500:67,144,239;--neeto-editor-info-100:10,56,113;--neeto-editor-pastel-silver:167,168,170;--neeto-editor-pastel-red:183,164,165;--neeto-editor-pastel-yellow:182,175,143;--neeto-editor-pastel-green:152,179,167;--neeto-editor-pastel-blue:170,175,183;--neeto-editor-pastel-purple:171,169,183;--neeto-editor-pastel-pink:181,162,174;--neeto-editor-content-heading-color:224,224,224,1;--neeto-editor-content-paragraph-color:224,224,224,1;--neeto-editor-content-code-background-color:21,27,35,1;--neeto-editor-content-code-line-number-color:89,99,110,1;--neeto-editor-content-code-color:240,246,252,1;--neeto-editor-content-blockquote-color:145,152,161,1;--neeto-editor-content-blockquote-border-color:61,68,77,1;--neeto-editor-highlight-text-1:#cdcdcd;--neeto-editor-highlight-text-2:#b4b4b4;--neeto-editor-highlight-text-3:#c89678;--neeto-editor-highlight-text-4:#f0b464;--neeto-editor-highlight-text-5:#e6be78;--neeto-editor-highlight-text-6:#78be96;--neeto-editor-highlight-text-7:#64b4dc;--neeto-editor-highlight-text-8:#be96e6;--neeto-editor-highlight-text-9:#dc78be;--neeto-editor-highlight-text-10:#e6786e;--neeto-editor-highlight-bg-1:#646400;--neeto-editor-highlight-bg-2:#323232;--neeto-editor-highlight-bg-3:#3c3232;--neeto-editor-highlight-bg-4:#503c28;--neeto-editor-highlight-bg-5:#5a5032;--neeto-editor-highlight-bg-6:#32503c;--neeto-editor-highlight-bg-7:#285064;--neeto-editor-highlight-bg-8:#503c64;--neeto-editor-highlight-bg-9:#643250;--neeto-editor-highlight-bg-10:#6e3232}.neeto-ui-theme--dark .neeto-editor-content.neeto-editor-size--small,.neeto-ui-theme--dark .neeto-editor-size--small.neeto-editor{--neeto-editor-content-heading-color:224,224,224,1;--neeto-editor-content-paragraph-color:224,224,224,1}.neeto-ui-theme--light .neeto-editor,.neeto-ui-theme--light .neeto-editor-content{--neeto-editor-content-heading-color:12,17,29,1;--neeto-editor-content-paragraph-color:54,55,55,1}.neeto-ui-theme--light .neeto-editor-content.neeto-editor-size--small,.neeto-ui-theme--light .neeto-editor-size--small.neeto-editor{--neeto-editor-content-heading-color:31,35,40,1;--neeto-editor-content-paragraph-color:31,35,40,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 hr,.neeto-editor-content hr{border-color:#363737;border-color:rgba(var(--neeto-editor-content-paragraph-color));margin:.5rem 0;opacity:.2}.neeto-editor .table-responsive,.neeto-editor-content .table-responsive{-webkit-overflow-scrolling:touch;margin:1rem 0;overflow-x:auto}.neeto-editor-content.neeto-editor-size--small,.neeto-editor-size--small.neeto-editor{--neeto-editor-content-heading-color:31,35,40,1;--neeto-editor-content-paragraph-color:31,35,40,1;--neeto-editor-content-h1-font-size:1.75rem;--neeto-editor-content-h2-font-size:1.3125rem;--neeto-editor-content-h3-font-size:1.09375rem;--neeto-editor-content-h4-font-size:0.875rem;--neeto-editor-content-h5-font-size:0.765625rem;--neeto-editor-content-h6-font-size:0.74375rem;--neeto-editor-content-paragraph-font-size:0.875rem;--neeto-editor-content-paragraph-line-height:1.5;--neeto-editor-content-list-left-padding:1.5rem;--neeto-editor-content-list-item-margin-bottom:0.25rem;--neeto-editor-content-list-item-margin-top:0.25rem}.neeto-editor-content.neeto-editor-size--medium,.neeto-editor-size--medium.neeto-editor{--neeto-editor-content-h1-font-size:2rem;--neeto-editor-content-h2-font-size:1.5rem;--neeto-editor-content-h3-font-size:1.25rem;--neeto-editor-content-h4-font-size:1rem;--neeto-editor-content-h5-font-size:0.875rem;--neeto-editor-content-h6-font-size:0.75rem;--neeto-editor-content-paragraph-font-size:1rem}@media only screen and (max-width:767px){.neeto-editor-content.neeto-editor-size--medium,.neeto-editor-size--medium.neeto-editor{--neeto-editor-content-h1-font-size:1.375rem;--neeto-editor-content-h2-font-size:1.25rem;--neeto-editor-content-h3-font-size:1.125rem}}.neeto-editor-content.neeto-editor-size--large,.neeto-editor-size--large.neeto-editor{--neeto-editor-content-h1-font-size:2.375rem;--neeto-editor-content-h2-font-size:1.93rem;--neeto-editor-content-h3-font-size:1.633rem;--neeto-editor-content-h4-font-size:1.336rem;--neeto-editor-content-h5-font-size:0.986rem;--neeto-editor-content-h6-font-size:0.796rem;--neeto-editor-content-paragraph-font-size:1.125rem}@media only screen and (max-width:767px){.neeto-editor-content.neeto-editor-size--large,.neeto-editor-size--large.neeto-editor{--neeto-editor-content-h1-font-size:2.125rem;--neeto-editor-content-h2-font-size:1.7266rem;--neeto-editor-content-h3-font-size:1.4609rem;--neeto-editor-content-h4-font-size:1.1953rem;--neeto-editor-content-h5-font-size:0.875rem;--neeto-editor-content-h6-font-size:0.75rem;--neeto-editor-content-paragraph-font-size:1rem}}.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:#0c111d;color:rgba(var(--neeto-editor-content-heading-color));font-weight:600;font-weight:var(--neeto-editor-content-heading-font-weight)}.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:700!important;font-weight:var(--neeto-editor-content-heading-font-weight-bold)!important}.neeto-editor h1,.neeto-editor-content h1{font-size:var(--neeto-editor-content-h1-font-size);margin:1.5rem 0 .25rem;margin:var(--neeto-editor-content-h1-margin)}.neeto-editor h2,.neeto-editor-content h2{font-size:var(--neeto-editor-content-h2-font-size);margin:1.5rem 0 .25rem;margin:var(--neeto-editor-content-h2-margin)}.neeto-editor h3,.neeto-editor-content h3{font-size:var(--neeto-editor-content-h3-font-size);margin:1.5rem 0 .25rem;margin:var(--neeto-editor-content-h3-margin)}.neeto-editor h4,.neeto-editor-content h4{font-size:var(--neeto-editor-content-h4-font-size);margin:1.5rem 0 .25rem;margin:var(--neeto-editor-content-h4-margin)}.neeto-editor h5,.neeto-editor-content h5{font-size:var(--neeto-editor-content-h5-font-size);margin:1.5rem 0 .25rem;margin:var(--neeto-editor-content-h5-margin)}.neeto-editor h6,.neeto-editor-content h6{font-size:var(--neeto-editor-content-h6-font-size);margin:1.5rem 0 .25rem;margin:var(--neeto-editor-content-h6-margin)}.neeto-editor .header-wrapper,.neeto-editor-content .header-wrapper{position:relative}.neeto-editor .header-wrapper__link,.neeto-editor-content .header-wrapper__link{position:absolute;top:50%}.neeto-editor .header-wrapper h1,.neeto-editor .header-wrapper h2,.neeto-editor .header-wrapper h3,.neeto-editor .header-wrapper h4,.neeto-editor .header-wrapper h5,.neeto-editor .header-wrapper h6,.neeto-editor-content .header-wrapper h1,.neeto-editor-content .header-wrapper h2,.neeto-editor-content .header-wrapper h3,.neeto-editor-content .header-wrapper h4,.neeto-editor-content .header-wrapper h5,.neeto-editor-content .header-wrapper h6{line-height:1.25;line-height:var(--neeto-editor-content-heading-line-height);transition:color .15s ease-in}.neeto-editor .header-wrapper .header-link-icon-wrapper,.neeto-editor-content .header-wrapper .header-link-icon-wrapper{align-items:center;display:flex;height:100%;left:-1.5625rem;opacity:0;position:absolute;transition:opacity .15s ease-in;width:1.5625rem}.neeto-editor .header-wrapper .header-link-icon-wrapper svg,.neeto-editor-content .header-wrapper .header-link-icon-wrapper svg{fill:#006653;fill:rgb(var(--neeto-editor-primary-800));transition:fill .15s ease-in}.neeto-editor .header-wrapper:hover .header-link-icon-wrapper,.neeto-editor-content .header-wrapper:hover .header-link-icon-wrapper{opacity:1}.neeto-editor .header-wrapper:hover svg,.neeto-editor-content .header-wrapper:hover svg{fill:#095aba;fill:rgb(var(--neeto-editor-accent-800))}.neeto-editor p,.neeto-editor-content p{color:#363737;color:rgba(var(--neeto-editor-content-paragraph-color));font-size:var(--neeto-editor-content-paragraph-font-size);font-weight:400;font-weight:var(--neeto-editor-content-paragraph-font-weight);line-height:1.6;line-height:var(--neeto-editor-content-paragraph-line-height);margin:0;min-height:1.3rem}.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:600!important}.neeto-editor div,.neeto-editor-content div{color:#363737;color:rgba(var(--neeto-editor-content-paragraph-color));font-size:var(--neeto-editor-content-paragraph-font-size);font-weight:400;font-weight:var(--neeto-editor-content-paragraph-font-weight);line-height:1.6;line-height:var(--neeto-editor-content-paragraph-line-height)}.neeto-editor code,.neeto-editor-content code{background-color:#f6f8fa;background-color:rgba(var(--neeto-editor-content-code-background-color));border-color:#f6f8fa;border-color:rgba(var(--neeto-editor-content-code-background-color));border-radius:3px;border-radius:var(--neeto-editor-rounded-sm);color:#1f2328;color:rgba(var(--neeto-editor-content-code-color));font-family:SFMono-Regular,Menlo,Consolas,PT Mono,Liberation Mono,Courier,monospace;font-size:85%;font-size:var(--neeto-editor-content-code-font-size);padding:.2em .4em;padding:var(--neeto-editor-content-code-padding)}.neeto-editor code *,.neeto-editor-content code *{font-size:inherit!important}.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:85%;font-size:var(--neeto-editor-content-code-font-size)}.neeto-editor pre,.neeto-editor-content pre{background-color:#f6f8fa;background-color:rgba(var(--neeto-editor-content-code-background-color));border-color:#f6f8fa;border-color:rgba(var(--neeto-editor-content-code-background-color));border-radius:3px;border-radius:var(--neeto-editor-rounded-sm);counter-reset:line-number;font-size:var(--neeto-editor-content-paragraph-font-size);line-height:1.5;margin-bottom:1rem;margin-top:1rem;max-width:100%;padding:0;position:relative}.neeto-editor pre,.neeto-editor pre div,.neeto-editor-content pre,.neeto-editor-content pre div{color:#1f2328;color:rgba(var(--neeto-editor-content-code-color))}.neeto-editor pre .neeto-editor-codeblock-options,.neeto-editor-content pre .neeto-editor-codeblock-options{align-items:center;display:flex;gap:.25rem;opacity:0;position:absolute;right:.25rem;top:.25rem;visibility:hidden}.neeto-editor pre .neeto-editor-codeblock-options__menu,.neeto-editor-content pre .neeto-editor-codeblock-options__menu{display:flex;flex-direction:column;gap:.25rem}.neeto-editor pre .neeto-editor-codeblock-options__input,.neeto-editor-content pre .neeto-editor-codeblock-options__input{margin:.25rem}.neeto-editor pre:hover .copy-button,.neeto-editor pre:hover .neeto-editor-codeblock-options,.neeto-editor-content pre:hover .copy-button,.neeto-editor-content pre:hover .neeto-editor-codeblock-options{opacity:1;visibility:visible}.neeto-editor pre .copy-button,.neeto-editor-content pre .copy-button{opacity:0;position:absolute;right:.25rem;top:.25rem;visibility:hidden}.neeto-editor pre[data-linenumbers] .highlight-line,.neeto-editor-content pre[data-linenumbers] .highlight-line{padding-left:3.125rem;position:relative}.neeto-editor pre[data-linenumbers] .highlight-line:before,.neeto-editor-content pre[data-linenumbers] .highlight-line:before{align-items:center;color:#59636e;color:rgba(var(--neeto-editor-content-code-line-number-color));content:counter(line-number);counter-increment:line-number;display:flex;font-size:85%;font-weight:400;height:100%;justify-content:flex-end;left:0;padding-left:.625rem;padding-right:1rem;position:absolute;width:3.125rem}.neeto-editor pre[data-linenumbers] .highlight-line:last-child:before,.neeto-editor-content pre[data-linenumbers] .highlight-line:last-child:before{content:\"\"}.neeto-editor pre>code,.neeto-editor-content pre>code{background-color:transparent;border-radius:0;border-width:0;color:inherit;display:block;font-size:85%;font-size:var(--neeto-editor-content-code-font-size);font-weight:400;line-height:inherit;overflow-x:auto;padding:.75rem;white-space:pre!important;width:100%}.neeto-editor pre[data-linenumbers]>code,.neeto-editor-content pre[data-linenumbers]>code{padding-left:0}.neeto-editor blockquote,.neeto-editor-content blockquote{border-left-color:#d1d9e0;border-left-color:rgba(var(--neeto-editor-content-blockquote-border-color));border-left-width:4px;border-left-width:var(--neeto-editor-content-blockquote-border-left-width);color:#59636e;color:rgba(var(--neeto-editor-content-blockquote-color));font-weight:500;font-weight:var(--neeto-editor-font-medium);margin-bottom:1rem;margin-bottom:var(--neeto-editor-content-blockquote-margin-bottom);padding-left:.75rem;padding-left:var(--neeto-editor-content-blockquote-padding-left);quotes:\"“\" \"”\" \"‘\" \"’\"}.neeto-editor blockquote div,.neeto-editor blockquote p,.neeto-editor-content blockquote div,.neeto-editor-content blockquote p{color:inherit}.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:1rem;margin-bottom:var(--neeto-editor-content-list-margin-bottom);padding-left:2rem;padding-left:var(--neeto-editor-content-list-left-padding)}.neeto-editor ol li,.neeto-editor ul li,.neeto-editor-content ol li,.neeto-editor-content ul li{color:#363737;color:rgba(var(--neeto-editor-content-paragraph-color));font-size:var(--neeto-editor-content-paragraph-font-size);font-weight:400;font-weight:var(--neeto-editor-content-paragraph-font-weight);line-height:1.6;line-height:var(--neeto-editor-content-paragraph-line-height)}.neeto-editor ol li:before,.neeto-editor ul li:before,.neeto-editor-content ol li:before,.neeto-editor-content ul li:before{background-color:#363737;background-color:rgba(var(--neeto-editor-content-paragraph-color))}.neeto-editor ol.orderedList li>p,.neeto-editor ul.bulletList li>p,.neeto-editor-content ol.orderedList li>p,.neeto-editor-content ul.bulletList li>p{margin-bottom:.5rem;margin-bottom:var(--neeto-editor-content-list-item-margin-bottom);margin-top:.5rem;margin-top:var(--neeto-editor-content-list-item-margin-top)}.neeto-editor ol.orderedList+p,.neeto-editor ul.bulletList+p,.neeto-editor-content ol.orderedList+p,.neeto-editor-content ul.bulletList+p{margin-top:.5rem;margin-top:var(--neeto-editor-content-list-item-margin-top)}.neeto-editor a[href],.neeto-editor-content a[href]{color:#095aba;color:rgb(var(--neeto-editor-accent-800));font-weight:inherit}.neeto-editor .neeto-editor__video-wrapper,.neeto-editor-content .neeto-editor__video-wrapper{display:flex;margin:1rem 0}.neeto-editor .neeto-editor__video-wrapper .neeto-editor__video-iframe,.neeto-editor-content .neeto-editor__video-wrapper .neeto-editor__video-iframe{display:inline-block;height:auto!important;max-width:100%;vertical-align:top}.neeto-editor .neeto-editor__video-wrapper .neeto-editor__video-iframe iframe,.neeto-editor-content .neeto-editor__video-wrapper .neeto-editor__video-iframe iframe{aspect-ratio:16/9;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:3px;border-radius:var(--neeto-editor-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:#095aba;color:rgb(var(--neeto-editor-accent-800))}.neeto-editor table,.neeto-editor-content table{border:1px solid #d8dcde;border:1px solid rgba(var(--neeto-editor-gray-300));border-collapse:separate;border-radius:3px;border-radius:var(--neeto-editor-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 #d8dcde;border-left:1px solid rgba(var(--neeto-editor-gray-300));border-top:1px solid #d8dcde;border-top:1px solid rgba(var(--neeto-editor-gray-300));padding:8px 12px;position:relative;text-align:left}.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:#f6f7f8;background:rgb(var(--neeto-editor-gray-100));border-top:none}.neeto-editor table td,.neeto-editor-content table td{background:#fff;background:rgb(var(--neeto-editor-white))}.neeto-editor-content--hidden{display:none}.neeto-editor__image-wrapper{color:inherit!important;display:flex;font-weight:400!important;margin:1rem 0;padding-left:3px;text-decoration:none}.neeto-editor__image-wrapper figure{cursor:pointer;display:inline-block;margin:0;max-width:100%;overflow:hidden;position:relative;vertical-align:top}.neeto-editor__image-wrapper .neeto-editor__image{display:inline-block;height:auto!important;max-width:100%;min-height:52px;vertical-align:top}.neeto-editor__image-wrapper .neeto-editor__image img,.neeto-editor__image-wrapper .neeto-editor__image video{display:inline-block;height:auto;vertical-align:top!important;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{border:1px solid #e4e4e7;border-color:rgba(var(--neeto-editor-content-image-border-color));border-radius:8px;border-radius:var(--neeto-editor-content-image-border-radius);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:#344054;color:rgb(var(--neeto-editor-gray-600));font-size:.875rem;font-weight:400;font-weight:var(--neeto-editor-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:#87929d;color:rgb(var(--neeto-editor-gray-500));content:\"Add a caption\";inset:0;position:absolute}.neeto-editor__image-wrapper:has(img:not([src])){display:none}.neeto-editor figcaption,.neeto-editor-content figcaption{color:#6b7280;font-size:.875rem;font-weight:400;line-height:1.4;max-width:100%;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:#d8dcde;background-color:rgb(var(--neeto-editor-gray-300));padding:2px 0}.ne-image-preview-wrapper{align-items:center;background:rgba(16,24,40,.5);background:rgba(var(--neeto-editor-gray-800),.5);display:none;height:100%;justify-content:center;left:0;position:fixed;top:0;width:100%;z-index:999999}.ne-image-preview-wrapper.active{display:flex}.ne-image-preview-wrapper .ne-image-preview{background:#fff;background:rgb(var(--neeto-editor-white));display:flex;flex-direction:column;gap:10px;max-height:90vh;max-width:60vw;opacity:0;transition:opacity .1s ease-in-out}.ne-image-preview-wrapper .ne-image-preview img{background:#fff;background:rgb(var(--neeto-editor-white));max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain;overflow:hidden;padding:10px;width:-moz-fit-content;width:fit-content}.ne-image-preview-wrapper .ne-image-preview.image-loaded{align-items:center;background:transparent;border-radius:10px;display:flex;opacity:1}.ne-image-preview-wrapper .ne-image-preview__caption{color:#101828;color:rgb(var(--neeto-editor-gray-800));line-height:1.5;margin-top:auto;text-align:center;width:100%}.ne-image-preview-wrapper .close-button{align-items:center;background-color:#fff;background-color:rgb(var(--neeto-editor-white));border-radius:999px;border-radius:var(--neeto-editor-rounded-full);cursor:pointer;display:flex;height:30px;justify-content:center;position:absolute;right:12px;top:12px;width:30px}.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:#d8dcde;background-color:rgb(var(--neeto-editor-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 .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;width:100%}.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__header{align-items:center;display:flex;justify-content:flex-start;min-height:56px;padding:16px 16px 0}.ne-media-uploader__header-title{color:rgb(var(--neeto-ui-gray-800));font-size:1.125rem;font-weight:600;line-height:1.5;margin:0;text-align:left}.ne-media-uploader .neeto-ui-tab__wrapper{margin-top:1rem;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__image-uploader{flex-grow:1;width:100%}.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:flex-start;display:flex;flex-direction:column;flex-grow:1}.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}}.ne-video-embed-form{width:100%}.ne-video-embed-form__content{margin-bottom:1rem;width:100%}.ne-video-embed-form__footer{align-items:center;display:flex;gap:.5rem;justify-content:flex-start}.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{margin:1rem 0 0;max-width:100%;overflow-x:auto;position:relative;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;max-width:100%;overflow-x:auto}.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}.neeto-editor-table .neeto-editor .table-responsive.neeto-editor-table--left table td,.neeto-editor-table .neeto-editor .table-responsive.neeto-editor-table--left table th,.neeto-editor-table .neeto-editor-content .table-responsive.neeto-editor-table--left table td,.neeto-editor-table .neeto-editor-content .table-responsive.neeto-editor-table--left table th,.neeto-editor-table.neeto-editor-table--left table td,.neeto-editor-table.neeto-editor-table--left table th{text-align:left!important}.neeto-editor-table .neeto-editor .table-responsive.neeto-editor-table--center table td,.neeto-editor-table .neeto-editor .table-responsive.neeto-editor-table--center table th,.neeto-editor-table .neeto-editor-content .table-responsive.neeto-editor-table--center table td,.neeto-editor-table .neeto-editor-content .table-responsive.neeto-editor-table--center table th,.neeto-editor-table.neeto-editor-table--center table td,.neeto-editor-table.neeto-editor-table--center table th{text-align:center!important}.neeto-editor-table .neeto-editor .table-responsive.neeto-editor-table--right table td,.neeto-editor-table .neeto-editor .table-responsive.neeto-editor-table--right table th,.neeto-editor-table .neeto-editor-content .table-responsive.neeto-editor-table--right table td,.neeto-editor-table .neeto-editor-content .table-responsive.neeto-editor-table--right table th,.neeto-editor-table.neeto-editor-table--right table td,.neeto-editor-table.neeto-editor-table--right table th{text-align:right!important}.ProseMirror.resize-cursor{cursor:col-resize}.ProseMirror ul[data-type=todoList],.neeto-editor ul[data-type=todoList],.neeto-editor-content ul[data-type=todoList]{list-style:none;margin-left:0;padding:0}.ProseMirror ul[data-type=todoList] li,.neeto-editor ul[data-type=todoList] li,.neeto-editor-content ul[data-type=todoList] li{align-items:flex-start;display:flex;position:relative}.ProseMirror ul[data-type=todoList] li>label,.neeto-editor ul[data-type=todoList] li>label,.neeto-editor-content ul[data-type=todoList] li>label{flex:0 0 auto;margin-right:.5rem;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}.ProseMirror ul[data-type=todoList] li>div,.neeto-editor ul[data-type=todoList] li>div,.neeto-editor-content ul[data-type=todoList] li>div{flex:1 1 auto;min-height:1.5rem}.ProseMirror ul[data-type=todoList] input[type=checkbox],.neeto-editor ul[data-type=todoList] input[type=checkbox],.neeto-editor-content ul[data-type=todoList] input[type=checkbox]{border-color:rgb(var(--neeto-ui-gray-800));border-radius:0;border-width:1px;color:rgb(var(--neeto-ui-primary-500));cursor:pointer;pointer-events:auto;position:relative;top:-2px;z-index:2}.ProseMirror ul[data-type=todoList] input[type=checkbox]:checked,.neeto-editor ul[data-type=todoList] input[type=checkbox]:checked,.neeto-editor-content ul[data-type=todoList] input[type=checkbox]:checked{border-color:rgb(var(--neeto-ui-primary-500))}.ProseMirror ul[data-type=todoList] ul[data-type=todoList],.neeto-editor ul[data-type=todoList] ul[data-type=todoList],.neeto-editor-content ul[data-type=todoList] ul[data-type=todoList]{margin:0}.ProseMirror ul[data-type=todoList] li[data-checked=true]>div p,.neeto-editor ul[data-type=todoList] li[data-checked=true]>div p,.neeto-editor-content ul[data-type=todoList] li[data-checked=true]>div p{opacity:.65;text-decoration:line-through}.ne-link-popover{background-color:rgb(var(--neeto-ui-white));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:rgb(var(--neeto-ui-gray-800));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}.ne-codeblock-nodeview-wrapper pre{padding-left:.75rem;padding-right:.75rem}.ne-codeblock-nodeview-wrapper pre:before{content:none}.ne-codeblock-nodeview-wrapper .highlighted-line{background-color:rgba(255,255,0,.2);left:0;pointer-events:none;position:absolute;right:0;z-index:0}.neeto-ui-dropdown__popup .neeto-ui-dropdown__popup-menu.neeto-editor-highlight-dropdown{padding:12px;width:240px}.neeto-editor-highlight-dropdown{display:flex;flex-direction:column;gap:16px}.neeto-editor-highlight-dropdown__section{width:100%}.neeto-editor-highlight-dropdown__section-title{color:rgb(var(--neeto-ui-gray-600));margin-bottom:8px}.neeto-editor-highlight-dropdown__color-grid{display:flex;flex-wrap:wrap;gap:8px}.neeto-editor-highlight-dropdown__color-dot{border:1px solid;border-radius:5px;cursor:pointer;height:26px;position:relative;transition:all .2s ease;width:26px}.neeto-editor-highlight-dropdown__color-dot:hover{box-shadow:inset 0 0 0 1px currentColor}.neeto-editor-highlight-dropdown__color-dot-text{color:currentColor;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.neeto-editor-highlight-dropdown__color-dot--selected{box-shadow:inset 0 0 0 1.5px currentColor}.neeto-editor-highlight-dropdown__color-dot--background{border-color:rgb(var(--neeto-ui-gray-300))}.neeto-editor-highlight-dropdown__color-dot--background:hover{box-shadow:inset 0 0 0 1px rgb(var(--neeto-ui-gray-300))}.neeto-editor-highlight-dropdown__color-dot--background.neeto-editor-highlight-dropdown__color-dot--selected{box-shadow:inset 0 0 0 1.5px rgb(var(--neeto-ui-gray-300))}.neeto-editor__callout{border-radius:8px;margin:16px 0;padding:16px;position:relative}.neeto-editor__callout .callout-container{align-items:flex-start;display:flex;gap:12px}.neeto-editor__callout .callout-container .callout-emoji{flex-shrink:0;line-height:1}.neeto-editor__callout .callout-container .callout-content{flex-grow:1;min-width:0;outline:none}.neeto-editor__callout .callout-container .callout-content p{margin:0}.neeto-editor__callout .callout-container .callout-content h1:first-child,.neeto-editor__callout .callout-container .callout-content h2:first-child,.neeto-editor__callout .callout-container .callout-content h3:first-child,.neeto-editor__callout .callout-container .callout-content h4:first-child,.neeto-editor__callout .callout-container .callout-content h5:first-child,.neeto-editor__callout .callout-container .callout-content h6:first-child,.neeto-editor__callout .callout-container .callout-content>p:first-child{margin-top:0}.neeto-editor__callout--default{background-color:#f6f7f8;background-color:rgb(var(--neeto-editor-gray-100))}.neeto-editor__callout--info{background-color:#e2f2ff;background-color:rgb(var(--neeto-editor-info-100))}.neeto-editor__callout--warning{background-color:#fbf2e1;background-color:rgb(var(--neeto-editor-warning-100))}.neeto-editor__callout--error{background-color:#feecf0;background-color:rgb(var(--neeto-editor-error-100))}.neeto-editor__callout--success{background-color:#ebfffa;background-color:rgb(var(--neeto-editor-success-100))}.neeto-ui-dropdown__popup .neeto-ui-dropdown__popup-menu.neeto-editor-callout-dropdown{padding:8px;width:200px}.neeto-editor-callout-dropdown{display:flex;flex-direction:column;gap:8px}.neeto-editor-callout-dropdown .neeto-editor-callout-dropdown__section{width:100%}.neeto-editor-callout-dropdown .neeto-editor-callout-dropdown__section .neeto-editor-callout-dropdown__section-title{color:rgb(var(--neeto-ui-gray-600));font-size:10px;font-weight:500;letter-spacing:.5px;margin-bottom:4px;padding:0 4px;text-transform:uppercase}.neeto-editor-callout-dropdown .neeto-editor-callout-dropdown__section .neeto-editor-callout-dropdown__options-grid{display:flex;flex-direction:column;gap:2px}.neeto-editor-callout-dropdown__type-option{align-items:center;background:none;border:none;border-radius:4px;cursor:pointer;display:flex;font-size:12px;padding:6px 8px;text-align:left;transition:all .15s ease;width:100%}.neeto-editor-callout-dropdown__type-option .neeto-editor-callout-dropdown__type-emoji{align-items:center;display:flex;flex-shrink:0;font-size:14px;height:16px;justify-content:center;margin-right:8px;width:16px}.neeto-editor-callout-dropdown__type-option .neeto-editor-callout-dropdown__type-label{color:rgb(var(--neeto-ui-gray-800));flex:1;font-weight:500}.neeto-editor-callout-dropdown__type-option:hover{background-color:rgb(var(--neeto-ui-gray-50))}.neeto-editor-callout-dropdown__type-option--selected{background-color:rgb(var(--neeto-ui-primary-50));border:1px solid rgb(var(--neeto-ui-primary-200))}.neeto-editor-callout-dropdown__type-option--selected .neeto-editor-callout-dropdown__type-label{color:rgb(var(--neeto-ui-primary-900))}.neeto-editor-callout-dropdown__current-emoji{display:inline-block}.ProseMirror{height:100%;overflow-y:auto;white-space:break-spaces}.ProseMirror:focus{outline:none}";
|
|
186
186
|
injectCss.n(css$1,{});
|
|
187
187
|
|
|
188
188
|
var CharacterCountWrapper = function CharacterCountWrapper(_ref) {
|
|
@@ -202,7 +202,7 @@ var CharacterCountWrapper = function CharacterCountWrapper(_ref) {
|
|
|
202
202
|
* This extension allows you to count the characters and words of your document.
|
|
203
203
|
* @see https://tiptap.dev/api/extensions/character-count
|
|
204
204
|
*/
|
|
205
|
-
const CharacterCount = Menu$
|
|
205
|
+
const CharacterCount = Menu$4.Extension.create({
|
|
206
206
|
name: 'characterCount',
|
|
207
207
|
addOptions() {
|
|
208
208
|
return {
|
|
@@ -297,7 +297,7 @@ const pasteRegex$2 = /(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g;
|
|
|
297
297
|
* This extension allows you to mark text as inline code.
|
|
298
298
|
* @see https://tiptap.dev/api/marks/code
|
|
299
299
|
*/
|
|
300
|
-
const Code = Menu$
|
|
300
|
+
const Code = Menu$4.Mark.create({
|
|
301
301
|
name: 'code',
|
|
302
302
|
addOptions() {
|
|
303
303
|
return {
|
|
@@ -313,7 +313,7 @@ const Code = Menu$3.Mark.create({
|
|
|
313
313
|
];
|
|
314
314
|
},
|
|
315
315
|
renderHTML({ HTMLAttributes }) {
|
|
316
|
-
return ['code', Menu$
|
|
316
|
+
return ['code', Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
317
317
|
},
|
|
318
318
|
addCommands() {
|
|
319
319
|
return {
|
|
@@ -335,7 +335,7 @@ const Code = Menu$3.Mark.create({
|
|
|
335
335
|
},
|
|
336
336
|
addInputRules() {
|
|
337
337
|
return [
|
|
338
|
-
Menu$
|
|
338
|
+
Menu$4.markInputRule({
|
|
339
339
|
find: inputRegex$7,
|
|
340
340
|
type: this.type,
|
|
341
341
|
}),
|
|
@@ -343,7 +343,7 @@ const Code = Menu$3.Mark.create({
|
|
|
343
343
|
},
|
|
344
344
|
addPasteRules() {
|
|
345
345
|
return [
|
|
346
|
-
Menu$
|
|
346
|
+
Menu$4.markPasteRule({
|
|
347
347
|
find: pasteRegex$2,
|
|
348
348
|
type: this.type,
|
|
349
349
|
}),
|
|
@@ -2327,7 +2327,7 @@ const createDecorations = (
|
|
|
2327
2327
|
ystate.binding.mapping.size === 0
|
|
2328
2328
|
) {
|
|
2329
2329
|
// do not render cursors while snapshot is active
|
|
2330
|
-
return Menu$
|
|
2330
|
+
return Menu$4.DecorationSet.create(state.doc, [])
|
|
2331
2331
|
}
|
|
2332
2332
|
awareness.getStates().forEach((aw, clientId) => {
|
|
2333
2333
|
if (!awarenessFilter(y.clientID, clientId, aw)) {
|
|
@@ -2362,7 +2362,7 @@ const createDecorations = (
|
|
|
2362
2362
|
anchor = min(anchor, maxsize);
|
|
2363
2363
|
head = min(head, maxsize);
|
|
2364
2364
|
decorations.push(
|
|
2365
|
-
Menu$
|
|
2365
|
+
Menu$4.Decoration.widget(head, () => createCursor(user), {
|
|
2366
2366
|
key: clientId + '',
|
|
2367
2367
|
side: 10
|
|
2368
2368
|
})
|
|
@@ -2370,7 +2370,7 @@ const createDecorations = (
|
|
|
2370
2370
|
const from = min(anchor, head);
|
|
2371
2371
|
const to = max(anchor, head);
|
|
2372
2372
|
decorations.push(
|
|
2373
|
-
Menu$
|
|
2373
|
+
Menu$4.Decoration.inline(from, to, createSelection(user), {
|
|
2374
2374
|
inclusiveEnd: true,
|
|
2375
2375
|
inclusiveStart: false
|
|
2376
2376
|
})
|
|
@@ -2378,7 +2378,7 @@ const createDecorations = (
|
|
|
2378
2378
|
}
|
|
2379
2379
|
}
|
|
2380
2380
|
});
|
|
2381
|
-
return Menu$
|
|
2381
|
+
return Menu$4.DecorationSet.create(state.doc, decorations)
|
|
2382
2382
|
};
|
|
2383
2383
|
|
|
2384
2384
|
/**
|
|
@@ -2609,7 +2609,7 @@ const yUndoPlugin = ({ protectedNodes = defaultProtectedNodes, trackedOrigins =
|
|
|
2609
2609
|
* This extension allows you to collaborate with others in real-time.
|
|
2610
2610
|
* @see https://tiptap.dev/api/extensions/collaboration
|
|
2611
2611
|
*/
|
|
2612
|
-
const Collaboration = Menu$
|
|
2612
|
+
const Collaboration = Menu$4.Extension.create({
|
|
2613
2613
|
name: 'collaboration',
|
|
2614
2614
|
priority: 1000,
|
|
2615
2615
|
addOptions() {
|
|
@@ -2714,7 +2714,7 @@ const defaultOnUpdate = () => null;
|
|
|
2714
2714
|
* This extension allows you to add collaboration cursors to your editor.
|
|
2715
2715
|
* @see https://tiptap.dev/api/extensions/collaboration-cursor
|
|
2716
2716
|
*/
|
|
2717
|
-
const CollaborationCursor = Menu$
|
|
2717
|
+
const CollaborationCursor = Menu$4.Extension.create({
|
|
2718
2718
|
name: 'collaborationCursor',
|
|
2719
2719
|
priority: 999,
|
|
2720
2720
|
addOptions() {
|
|
@@ -2789,7 +2789,7 @@ const CollaborationCursor = Menu$3.Extension.create({
|
|
|
2789
2789
|
* for the `textColor` and `backgroundColor` extensions.
|
|
2790
2790
|
* @see https://www.tiptap.dev/api/marks/text-style
|
|
2791
2791
|
*/
|
|
2792
|
-
const TextStyle$2 = Menu$
|
|
2792
|
+
const TextStyle$2 = Menu$4.Mark.create({
|
|
2793
2793
|
name: 'textStyle',
|
|
2794
2794
|
priority: 101,
|
|
2795
2795
|
addOptions() {
|
|
@@ -2812,12 +2812,12 @@ const TextStyle$2 = Menu$3.Mark.create({
|
|
|
2812
2812
|
];
|
|
2813
2813
|
},
|
|
2814
2814
|
renderHTML({ HTMLAttributes }) {
|
|
2815
|
-
return ['span', Menu$
|
|
2815
|
+
return ['span', Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
2816
2816
|
},
|
|
2817
2817
|
addCommands() {
|
|
2818
2818
|
return {
|
|
2819
2819
|
removeEmptyTextStyle: () => ({ state, commands }) => {
|
|
2820
|
-
const attributes = Menu$
|
|
2820
|
+
const attributes = Menu$4.getMarkAttributes(state, this.type);
|
|
2821
2821
|
const hasStyles = Object.entries(attributes).some(([, value]) => !!value);
|
|
2822
2822
|
if (hasStyles) {
|
|
2823
2823
|
return true;
|
|
@@ -2832,7 +2832,7 @@ const TextStyle$2 = Menu$3.Mark.create({
|
|
|
2832
2832
|
* This extension allows you to color your text.
|
|
2833
2833
|
* @see https://tiptap.dev/api/extensions/color
|
|
2834
2834
|
*/
|
|
2835
|
-
const Color = Menu$
|
|
2835
|
+
const Color = Menu$4.Extension.create({
|
|
2836
2836
|
name: 'color',
|
|
2837
2837
|
addOptions() {
|
|
2838
2838
|
return {
|
|
@@ -2881,7 +2881,7 @@ const Color = Menu$3.Extension.create({
|
|
|
2881
2881
|
* The default document node which represents the top level node of the editor.
|
|
2882
2882
|
* @see https://tiptap.dev/api/nodes/document
|
|
2883
2883
|
*/
|
|
2884
|
-
const Document = Menu$
|
|
2884
|
+
const Document = Menu$4.Node.create({
|
|
2885
2885
|
name: 'doc',
|
|
2886
2886
|
topNode: true,
|
|
2887
2887
|
content: 'block+',
|
|
@@ -2891,7 +2891,7 @@ const Document = Menu$3.Node.create({
|
|
|
2891
2891
|
* This extension allows you to add a class to the focused node.
|
|
2892
2892
|
* @see https://www.tiptap.dev/api/extensions/focus
|
|
2893
2893
|
*/
|
|
2894
|
-
const FocusClasses = Menu$
|
|
2894
|
+
const FocusClasses = Menu$4.Extension.create({
|
|
2895
2895
|
name: 'focus',
|
|
2896
2896
|
addOptions() {
|
|
2897
2897
|
return {
|
|
@@ -2909,7 +2909,7 @@ const FocusClasses = Menu$3.Extension.create({
|
|
|
2909
2909
|
const { anchor } = selection;
|
|
2910
2910
|
const decorations = [];
|
|
2911
2911
|
if (!isEditable || !isFocused) {
|
|
2912
|
-
return Menu$
|
|
2912
|
+
return Menu$4.DecorationSet.create(doc, []);
|
|
2913
2913
|
}
|
|
2914
2914
|
// Maximum Levels
|
|
2915
2915
|
let maxLevels = 0;
|
|
@@ -2941,11 +2941,11 @@ const FocusClasses = Menu$3.Extension.create({
|
|
|
2941
2941
|
if (outOfScope) {
|
|
2942
2942
|
return this.options.mode === 'deepest';
|
|
2943
2943
|
}
|
|
2944
|
-
decorations.push(Menu$
|
|
2944
|
+
decorations.push(Menu$4.Decoration.node(pos, pos + node.nodeSize, {
|
|
2945
2945
|
class: this.options.className,
|
|
2946
2946
|
}));
|
|
2947
2947
|
});
|
|
2948
|
-
return Menu$
|
|
2948
|
+
return Menu$4.DecorationSet.create(doc, decorations);
|
|
2949
2949
|
},
|
|
2950
2950
|
},
|
|
2951
2951
|
}),
|
|
@@ -2965,7 +2965,7 @@ const pasteRegex$1 = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g;
|
|
|
2965
2965
|
* This extension allows you to highlight text.
|
|
2966
2966
|
* @see https://www.tiptap.dev/api/marks/highlight
|
|
2967
2967
|
*/
|
|
2968
|
-
const Highlight = Menu$
|
|
2968
|
+
const Highlight = Menu$4.Mark.create({
|
|
2969
2969
|
name: 'highlight',
|
|
2970
2970
|
addOptions() {
|
|
2971
2971
|
return {
|
|
@@ -3001,7 +3001,7 @@ const Highlight = Menu$3.Mark.create({
|
|
|
3001
3001
|
];
|
|
3002
3002
|
},
|
|
3003
3003
|
renderHTML({ HTMLAttributes }) {
|
|
3004
|
-
return ['mark', Menu$
|
|
3004
|
+
return ['mark', Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
3005
3005
|
},
|
|
3006
3006
|
addCommands() {
|
|
3007
3007
|
return {
|
|
@@ -3023,7 +3023,7 @@ const Highlight = Menu$3.Mark.create({
|
|
|
3023
3023
|
},
|
|
3024
3024
|
addInputRules() {
|
|
3025
3025
|
return [
|
|
3026
|
-
Menu$
|
|
3026
|
+
Menu$4.markInputRule({
|
|
3027
3027
|
find: inputRegex$6,
|
|
3028
3028
|
type: this.type,
|
|
3029
3029
|
}),
|
|
@@ -3031,7 +3031,7 @@ const Highlight = Menu$3.Mark.create({
|
|
|
3031
3031
|
},
|
|
3032
3032
|
addPasteRules() {
|
|
3033
3033
|
return [
|
|
3034
|
-
Menu$
|
|
3034
|
+
Menu$4.markPasteRule({
|
|
3035
3035
|
find: pasteRegex$1,
|
|
3036
3036
|
type: this.type,
|
|
3037
3037
|
}),
|
|
@@ -3043,7 +3043,7 @@ const Highlight = Menu$3.Mark.create({
|
|
|
3043
3043
|
* This extension allows you to create list items.
|
|
3044
3044
|
* @see https://www.tiptap.dev/api/nodes/list-item
|
|
3045
3045
|
*/
|
|
3046
|
-
const ListItem$3 = Menu$
|
|
3046
|
+
const ListItem$3 = Menu$4.Node.create({
|
|
3047
3047
|
name: 'listItem',
|
|
3048
3048
|
addOptions() {
|
|
3049
3049
|
return {
|
|
@@ -3062,7 +3062,7 @@ const ListItem$3 = Menu$3.Node.create({
|
|
|
3062
3062
|
];
|
|
3063
3063
|
},
|
|
3064
3064
|
renderHTML({ HTMLAttributes }) {
|
|
3065
|
-
return ['li', Menu$
|
|
3065
|
+
return ['li', Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
3066
3066
|
},
|
|
3067
3067
|
addKeyboardShortcuts() {
|
|
3068
3068
|
return {
|
|
@@ -3077,7 +3077,7 @@ const ListItem$3 = Menu$3.Node.create({
|
|
|
3077
3077
|
* This extension allows you to create table cells.
|
|
3078
3078
|
* @see https://www.tiptap.dev/api/nodes/table-cell
|
|
3079
3079
|
*/
|
|
3080
|
-
const TableCell = Menu$
|
|
3080
|
+
const TableCell = Menu$4.Node.create({
|
|
3081
3081
|
name: 'tableCell',
|
|
3082
3082
|
addOptions() {
|
|
3083
3083
|
return {
|
|
@@ -3113,7 +3113,7 @@ const TableCell = Menu$3.Node.create({
|
|
|
3113
3113
|
];
|
|
3114
3114
|
},
|
|
3115
3115
|
renderHTML({ HTMLAttributes }) {
|
|
3116
|
-
return ['td', Menu$
|
|
3116
|
+
return ['td', Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
3117
3117
|
},
|
|
3118
3118
|
});
|
|
3119
3119
|
|
|
@@ -3121,7 +3121,7 @@ const TableCell = Menu$3.Node.create({
|
|
|
3121
3121
|
* This extension allows you to create table headers.
|
|
3122
3122
|
* @see https://www.tiptap.dev/api/nodes/table-header
|
|
3123
3123
|
*/
|
|
3124
|
-
const TableHeader = Menu$
|
|
3124
|
+
const TableHeader = Menu$4.Node.create({
|
|
3125
3125
|
name: 'tableHeader',
|
|
3126
3126
|
addOptions() {
|
|
3127
3127
|
return {
|
|
@@ -3157,7 +3157,7 @@ const TableHeader = Menu$3.Node.create({
|
|
|
3157
3157
|
];
|
|
3158
3158
|
},
|
|
3159
3159
|
renderHTML({ HTMLAttributes }) {
|
|
3160
|
-
return ['th', Menu$
|
|
3160
|
+
return ['th', Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
3161
3161
|
},
|
|
3162
3162
|
});
|
|
3163
3163
|
|
|
@@ -3165,7 +3165,7 @@ const TableHeader = Menu$3.Node.create({
|
|
|
3165
3165
|
* This extension allows you to create table rows.
|
|
3166
3166
|
* @see https://www.tiptap.dev/api/nodes/table-row
|
|
3167
3167
|
*/
|
|
3168
|
-
const TableRow = Menu$
|
|
3168
|
+
const TableRow = Menu$4.Node.create({
|
|
3169
3169
|
name: 'tableRow',
|
|
3170
3170
|
addOptions() {
|
|
3171
3171
|
return {
|
|
@@ -3180,7 +3180,7 @@ const TableRow = Menu$3.Node.create({
|
|
|
3180
3180
|
];
|
|
3181
3181
|
},
|
|
3182
3182
|
renderHTML({ HTMLAttributes }) {
|
|
3183
|
-
return ['tr', Menu$
|
|
3183
|
+
return ['tr', Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
3184
3184
|
},
|
|
3185
3185
|
});
|
|
3186
3186
|
|
|
@@ -3188,7 +3188,7 @@ const TableRow = Menu$3.Node.create({
|
|
|
3188
3188
|
* This extension allows you to create underline text.
|
|
3189
3189
|
* @see https://www.tiptap.dev/api/marks/underline
|
|
3190
3190
|
*/
|
|
3191
|
-
const Underline = Menu$
|
|
3191
|
+
const Underline = Menu$4.Mark.create({
|
|
3192
3192
|
name: 'underline',
|
|
3193
3193
|
addOptions() {
|
|
3194
3194
|
return {
|
|
@@ -3208,7 +3208,7 @@ const Underline = Menu$3.Mark.create({
|
|
|
3208
3208
|
];
|
|
3209
3209
|
},
|
|
3210
3210
|
renderHTML({ HTMLAttributes }) {
|
|
3211
|
-
return ['u', Menu$
|
|
3211
|
+
return ['u', Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
3212
3212
|
},
|
|
3213
3213
|
addCommands() {
|
|
3214
3214
|
return {
|
|
@@ -3239,7 +3239,7 @@ const inputRegex$5 = /^\s*>\s$/;
|
|
|
3239
3239
|
* This extension allows you to create blockquotes.
|
|
3240
3240
|
* @see https://tiptap.dev/api/nodes/blockquote
|
|
3241
3241
|
*/
|
|
3242
|
-
const Blockquote = Menu$
|
|
3242
|
+
const Blockquote = Menu$4.Node.create({
|
|
3243
3243
|
name: 'blockquote',
|
|
3244
3244
|
addOptions() {
|
|
3245
3245
|
return {
|
|
@@ -3255,7 +3255,7 @@ const Blockquote = Menu$3.Node.create({
|
|
|
3255
3255
|
];
|
|
3256
3256
|
},
|
|
3257
3257
|
renderHTML({ HTMLAttributes }) {
|
|
3258
|
-
return ['blockquote', Menu$
|
|
3258
|
+
return ['blockquote', Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
3259
3259
|
},
|
|
3260
3260
|
addCommands() {
|
|
3261
3261
|
return {
|
|
@@ -3277,7 +3277,7 @@ const Blockquote = Menu$3.Node.create({
|
|
|
3277
3277
|
},
|
|
3278
3278
|
addInputRules() {
|
|
3279
3279
|
return [
|
|
3280
|
-
Menu$
|
|
3280
|
+
Menu$4.wrappingInputRule({
|
|
3281
3281
|
find: inputRegex$5,
|
|
3282
3282
|
type: this.type,
|
|
3283
3283
|
}),
|
|
@@ -3305,7 +3305,7 @@ const underscorePasteRegex$1 = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g;
|
|
|
3305
3305
|
* This extension allows you to mark text as bold.
|
|
3306
3306
|
* @see https://tiptap.dev/api/marks/bold
|
|
3307
3307
|
*/
|
|
3308
|
-
const Bold = Menu$
|
|
3308
|
+
const Bold = Menu$4.Mark.create({
|
|
3309
3309
|
name: 'bold',
|
|
3310
3310
|
addOptions() {
|
|
3311
3311
|
return {
|
|
@@ -3328,7 +3328,7 @@ const Bold = Menu$3.Mark.create({
|
|
|
3328
3328
|
];
|
|
3329
3329
|
},
|
|
3330
3330
|
renderHTML({ HTMLAttributes }) {
|
|
3331
|
-
return ['strong', Menu$
|
|
3331
|
+
return ['strong', Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
3332
3332
|
},
|
|
3333
3333
|
addCommands() {
|
|
3334
3334
|
return {
|
|
@@ -3351,11 +3351,11 @@ const Bold = Menu$3.Mark.create({
|
|
|
3351
3351
|
},
|
|
3352
3352
|
addInputRules() {
|
|
3353
3353
|
return [
|
|
3354
|
-
Menu$
|
|
3354
|
+
Menu$4.markInputRule({
|
|
3355
3355
|
find: starInputRegex$1,
|
|
3356
3356
|
type: this.type,
|
|
3357
3357
|
}),
|
|
3358
|
-
Menu$
|
|
3358
|
+
Menu$4.markInputRule({
|
|
3359
3359
|
find: underscoreInputRegex$1,
|
|
3360
3360
|
type: this.type,
|
|
3361
3361
|
}),
|
|
@@ -3363,11 +3363,11 @@ const Bold = Menu$3.Mark.create({
|
|
|
3363
3363
|
},
|
|
3364
3364
|
addPasteRules() {
|
|
3365
3365
|
return [
|
|
3366
|
-
Menu$
|
|
3366
|
+
Menu$4.markPasteRule({
|
|
3367
3367
|
find: starPasteRegex$1,
|
|
3368
3368
|
type: this.type,
|
|
3369
3369
|
}),
|
|
3370
|
-
Menu$
|
|
3370
|
+
Menu$4.markPasteRule({
|
|
3371
3371
|
find: underscorePasteRegex$1,
|
|
3372
3372
|
type: this.type,
|
|
3373
3373
|
}),
|
|
@@ -3379,7 +3379,7 @@ const Bold = Menu$3.Mark.create({
|
|
|
3379
3379
|
* This extension allows you to create list items.
|
|
3380
3380
|
* @see https://www.tiptap.dev/api/nodes/list-item
|
|
3381
3381
|
*/
|
|
3382
|
-
const ListItem$2 = Menu$
|
|
3382
|
+
const ListItem$2 = Menu$4.Node.create({
|
|
3383
3383
|
name: 'listItem',
|
|
3384
3384
|
addOptions() {
|
|
3385
3385
|
return {
|
|
@@ -3398,7 +3398,7 @@ const ListItem$2 = Menu$3.Node.create({
|
|
|
3398
3398
|
];
|
|
3399
3399
|
},
|
|
3400
3400
|
renderHTML({ HTMLAttributes }) {
|
|
3401
|
-
return ['li', Menu$
|
|
3401
|
+
return ['li', Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
3402
3402
|
},
|
|
3403
3403
|
addKeyboardShortcuts() {
|
|
3404
3404
|
return {
|
|
@@ -3414,7 +3414,7 @@ const ListItem$2 = Menu$3.Node.create({
|
|
|
3414
3414
|
* for the `textColor` and `backgroundColor` extensions.
|
|
3415
3415
|
* @see https://www.tiptap.dev/api/marks/text-style
|
|
3416
3416
|
*/
|
|
3417
|
-
const TextStyle$1 = Menu$
|
|
3417
|
+
const TextStyle$1 = Menu$4.Mark.create({
|
|
3418
3418
|
name: 'textStyle',
|
|
3419
3419
|
priority: 101,
|
|
3420
3420
|
addOptions() {
|
|
@@ -3437,12 +3437,12 @@ const TextStyle$1 = Menu$3.Mark.create({
|
|
|
3437
3437
|
];
|
|
3438
3438
|
},
|
|
3439
3439
|
renderHTML({ HTMLAttributes }) {
|
|
3440
|
-
return ['span', Menu$
|
|
3440
|
+
return ['span', Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
3441
3441
|
},
|
|
3442
3442
|
addCommands() {
|
|
3443
3443
|
return {
|
|
3444
3444
|
removeEmptyTextStyle: () => ({ state, commands }) => {
|
|
3445
|
-
const attributes = Menu$
|
|
3445
|
+
const attributes = Menu$4.getMarkAttributes(state, this.type);
|
|
3446
3446
|
const hasStyles = Object.entries(attributes).some(([, value]) => !!value);
|
|
3447
3447
|
if (hasStyles) {
|
|
3448
3448
|
return true;
|
|
@@ -3463,7 +3463,7 @@ const inputRegex$4 = /^\s*([-+*])\s$/;
|
|
|
3463
3463
|
* @see https://tiptap.dev/api/nodes/bullet-list
|
|
3464
3464
|
* @see https://tiptap.dev/api/nodes/list-item.
|
|
3465
3465
|
*/
|
|
3466
|
-
const BulletList$2 = Menu$
|
|
3466
|
+
const BulletList$2 = Menu$4.Node.create({
|
|
3467
3467
|
name: 'bulletList',
|
|
3468
3468
|
addOptions() {
|
|
3469
3469
|
return {
|
|
@@ -3483,7 +3483,7 @@ const BulletList$2 = Menu$3.Node.create({
|
|
|
3483
3483
|
];
|
|
3484
3484
|
},
|
|
3485
3485
|
renderHTML({ HTMLAttributes }) {
|
|
3486
|
-
return ['ul', Menu$
|
|
3486
|
+
return ['ul', Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
3487
3487
|
},
|
|
3488
3488
|
addCommands() {
|
|
3489
3489
|
return {
|
|
@@ -3501,12 +3501,12 @@ const BulletList$2 = Menu$3.Node.create({
|
|
|
3501
3501
|
};
|
|
3502
3502
|
},
|
|
3503
3503
|
addInputRules() {
|
|
3504
|
-
let inputRule = Menu$
|
|
3504
|
+
let inputRule = Menu$4.wrappingInputRule({
|
|
3505
3505
|
find: inputRegex$4,
|
|
3506
3506
|
type: this.type,
|
|
3507
3507
|
});
|
|
3508
3508
|
if (this.options.keepMarks || this.options.keepAttributes) {
|
|
3509
|
-
inputRule = Menu$
|
|
3509
|
+
inputRule = Menu$4.wrappingInputRule({
|
|
3510
3510
|
find: inputRegex$4,
|
|
3511
3511
|
type: this.type,
|
|
3512
3512
|
keepMarks: this.options.keepMarks,
|
|
@@ -3533,7 +3533,7 @@ const tildeInputRegex = /^~~~([a-z]+)?[\s\n]$/;
|
|
|
3533
3533
|
* This extension allows you to create code blocks.
|
|
3534
3534
|
* @see https://tiptap.dev/api/nodes/code-block
|
|
3535
3535
|
*/
|
|
3536
|
-
const CodeBlock$1 = Menu$
|
|
3536
|
+
const CodeBlock$1 = Menu$4.Node.create({
|
|
3537
3537
|
name: 'codeBlock',
|
|
3538
3538
|
addOptions() {
|
|
3539
3539
|
return {
|
|
@@ -3581,7 +3581,7 @@ const CodeBlock$1 = Menu$3.Node.create({
|
|
|
3581
3581
|
renderHTML({ node, HTMLAttributes }) {
|
|
3582
3582
|
return [
|
|
3583
3583
|
'pre',
|
|
3584
|
-
Menu$
|
|
3584
|
+
Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes),
|
|
3585
3585
|
[
|
|
3586
3586
|
'code',
|
|
3587
3587
|
{
|
|
@@ -3675,14 +3675,14 @@ const CodeBlock$1 = Menu$3.Node.create({
|
|
|
3675
3675
|
},
|
|
3676
3676
|
addInputRules() {
|
|
3677
3677
|
return [
|
|
3678
|
-
Menu$
|
|
3678
|
+
Menu$4.textblockTypeInputRule({
|
|
3679
3679
|
find: backtickInputRegex,
|
|
3680
3680
|
type: this.type,
|
|
3681
3681
|
getAttributes: match => ({
|
|
3682
3682
|
language: match[1],
|
|
3683
3683
|
}),
|
|
3684
3684
|
}),
|
|
3685
|
-
Menu$
|
|
3685
|
+
Menu$4.textblockTypeInputRule({
|
|
3686
3686
|
find: tildeInputRegex,
|
|
3687
3687
|
type: this.type,
|
|
3688
3688
|
getAttributes: match => ({
|
|
@@ -3879,7 +3879,7 @@ class DropCursorView {
|
|
|
3879
3879
|
* inbetween nodes.
|
|
3880
3880
|
* @see https://tiptap.dev/api/extensions/dropcursor
|
|
3881
3881
|
*/
|
|
3882
|
-
const Dropcursor = Menu$
|
|
3882
|
+
const Dropcursor = Menu$4.Extension.create({
|
|
3883
3883
|
name: 'dropCursor',
|
|
3884
3884
|
addOptions() {
|
|
3885
3885
|
return {
|
|
@@ -4061,7 +4061,7 @@ function gapCursor() {
|
|
|
4061
4061
|
}
|
|
4062
4062
|
});
|
|
4063
4063
|
}
|
|
4064
|
-
const handleKeyDown$1 = Menu$
|
|
4064
|
+
const handleKeyDown$1 = Menu$4.keydownHandler({
|
|
4065
4065
|
"ArrowLeft": arrow$1("horiz", -1),
|
|
4066
4066
|
"ArrowRight": arrow$1("horiz", 1),
|
|
4067
4067
|
"ArrowUp": arrow$1("vert", -1),
|
|
@@ -4122,7 +4122,7 @@ function drawGapCursor(state) {
|
|
|
4122
4122
|
return null;
|
|
4123
4123
|
let node = document.createElement("div");
|
|
4124
4124
|
node.className = "ProseMirror-gapcursor";
|
|
4125
|
-
return Menu$
|
|
4125
|
+
return Menu$4.DecorationSet.create(state.doc, [Menu$4.Decoration.widget(state.selection.head, node, { key: "gapcursor" })]);
|
|
4126
4126
|
}
|
|
4127
4127
|
|
|
4128
4128
|
/**
|
|
@@ -4131,7 +4131,7 @@ function drawGapCursor(state) {
|
|
|
4131
4131
|
* where no content is present, for example inbetween nodes.
|
|
4132
4132
|
* @see https://tiptap.dev/api/extensions/gapcursor
|
|
4133
4133
|
*/
|
|
4134
|
-
const Gapcursor = Menu$
|
|
4134
|
+
const Gapcursor = Menu$4.Extension.create({
|
|
4135
4135
|
name: 'gapCursor',
|
|
4136
4136
|
addProseMirrorPlugins() {
|
|
4137
4137
|
return [
|
|
@@ -4146,7 +4146,7 @@ const Gapcursor = Menu$3.Extension.create({
|
|
|
4146
4146
|
storage: extension.storage,
|
|
4147
4147
|
};
|
|
4148
4148
|
return {
|
|
4149
|
-
allowGapCursor: (_a = Menu$
|
|
4149
|
+
allowGapCursor: (_a = Menu$4.callOrReturn(Menu$4.getExtensionField(extension, 'allowGapCursor', context))) !== null && _a !== void 0 ? _a : null,
|
|
4150
4150
|
};
|
|
4151
4151
|
},
|
|
4152
4152
|
});
|
|
@@ -4155,7 +4155,7 @@ const Gapcursor = Menu$3.Extension.create({
|
|
|
4155
4155
|
* This extension allows you to insert hard breaks.
|
|
4156
4156
|
* @see https://www.tiptap.dev/api/nodes/hard-break
|
|
4157
4157
|
*/
|
|
4158
|
-
const HardBreak = Menu$
|
|
4158
|
+
const HardBreak = Menu$4.Node.create({
|
|
4159
4159
|
name: 'hardBreak',
|
|
4160
4160
|
addOptions() {
|
|
4161
4161
|
return {
|
|
@@ -4172,7 +4172,7 @@ const HardBreak = Menu$3.Node.create({
|
|
|
4172
4172
|
];
|
|
4173
4173
|
},
|
|
4174
4174
|
renderHTML({ HTMLAttributes }) {
|
|
4175
|
-
return ['br', Menu$
|
|
4175
|
+
return ['br', Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
|
|
4176
4176
|
},
|
|
4177
4177
|
renderText() {
|
|
4178
4178
|
return '\n';
|
|
@@ -4219,7 +4219,7 @@ const HardBreak = Menu$3.Node.create({
|
|
|
4219
4219
|
* This extension allows you to create headings.
|
|
4220
4220
|
* @see https://www.tiptap.dev/api/nodes/heading
|
|
4221
4221
|
*/
|
|
4222
|
-
const Heading = Menu$
|
|
4222
|
+
const Heading = Menu$4.Node.create({
|
|
4223
4223
|
name: 'heading',
|
|
4224
4224
|
addOptions() {
|
|
4225
4225
|
return {
|
|
@@ -4250,7 +4250,7 @@ const Heading = Menu$3.Node.create({
|
|
|
4250
4250
|
const level = hasLevel
|
|
4251
4251
|
? node.attrs.level
|
|
4252
4252
|
: this.options.levels[0];
|
|
4253
|
-
return [`h${level}`, Menu$
|
|
4253
|
+
return [`h${level}`, Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
4254
4254
|
},
|
|
4255
4255
|
addCommands() {
|
|
4256
4256
|
return {
|
|
@@ -4278,7 +4278,7 @@ const Heading = Menu$3.Node.create({
|
|
|
4278
4278
|
},
|
|
4279
4279
|
addInputRules() {
|
|
4280
4280
|
return this.options.levels.map(level => {
|
|
4281
|
-
return Menu$
|
|
4281
|
+
return Menu$4.textblockTypeInputRule({
|
|
4282
4282
|
find: new RegExp(`^(#{1,${level}})\\s$`),
|
|
4283
4283
|
type: this.type,
|
|
4284
4284
|
getAttributes: {
|
|
@@ -4913,7 +4913,7 @@ const redo = buildCommand(true, true);
|
|
|
4913
4913
|
*
|
|
4914
4914
|
* `@tiptap/extension-collaboration` uses its own history implementation.
|
|
4915
4915
|
*/
|
|
4916
|
-
const History = Menu$
|
|
4916
|
+
const History = Menu$4.Extension.create({
|
|
4917
4917
|
name: 'history',
|
|
4918
4918
|
addOptions() {
|
|
4919
4919
|
return {
|
|
@@ -4952,7 +4952,7 @@ const History = Menu$3.Extension.create({
|
|
|
4952
4952
|
* This extension allows you to insert horizontal rules.
|
|
4953
4953
|
* @see https://www.tiptap.dev/api/nodes/horizontal-rule
|
|
4954
4954
|
*/
|
|
4955
|
-
const HorizontalRule = Menu$
|
|
4955
|
+
const HorizontalRule = Menu$4.Node.create({
|
|
4956
4956
|
name: 'horizontalRule',
|
|
4957
4957
|
addOptions() {
|
|
4958
4958
|
return {
|
|
@@ -4964,7 +4964,7 @@ const HorizontalRule = Menu$3.Node.create({
|
|
|
4964
4964
|
return [{ tag: 'hr' }];
|
|
4965
4965
|
},
|
|
4966
4966
|
renderHTML({ HTMLAttributes }) {
|
|
4967
|
-
return ['hr', Menu$
|
|
4967
|
+
return ['hr', Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
|
|
4968
4968
|
},
|
|
4969
4969
|
addCommands() {
|
|
4970
4970
|
return {
|
|
@@ -4980,7 +4980,7 @@ const HorizontalRule = Menu$3.Node.create({
|
|
|
4980
4980
|
type: this.name,
|
|
4981
4981
|
});
|
|
4982
4982
|
}
|
|
4983
|
-
else if (Menu$
|
|
4983
|
+
else if (Menu$4.isNodeSelection(selection)) {
|
|
4984
4984
|
currentChain.insertContentAt($originTo.pos, {
|
|
4985
4985
|
type: this.name,
|
|
4986
4986
|
});
|
|
@@ -5024,7 +5024,7 @@ const HorizontalRule = Menu$3.Node.create({
|
|
|
5024
5024
|
},
|
|
5025
5025
|
addInputRules() {
|
|
5026
5026
|
return [
|
|
5027
|
-
Menu$
|
|
5027
|
+
Menu$4.nodeInputRule({
|
|
5028
5028
|
find: /^(?:---|—-|___\s|\*\*\*\s)$/,
|
|
5029
5029
|
type: this.type,
|
|
5030
5030
|
}),
|
|
@@ -5052,7 +5052,7 @@ const underscorePasteRegex = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g;
|
|
|
5052
5052
|
* This extension allows you to create italic text.
|
|
5053
5053
|
* @see https://www.tiptap.dev/api/marks/italic
|
|
5054
5054
|
*/
|
|
5055
|
-
const Italic$1 = Menu$
|
|
5055
|
+
const Italic$1 = Menu$4.Mark.create({
|
|
5056
5056
|
name: 'italic',
|
|
5057
5057
|
addOptions() {
|
|
5058
5058
|
return {
|
|
@@ -5074,7 +5074,7 @@ const Italic$1 = Menu$3.Mark.create({
|
|
|
5074
5074
|
];
|
|
5075
5075
|
},
|
|
5076
5076
|
renderHTML({ HTMLAttributes }) {
|
|
5077
|
-
return ['em', Menu$
|
|
5077
|
+
return ['em', Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
5078
5078
|
},
|
|
5079
5079
|
addCommands() {
|
|
5080
5080
|
return {
|
|
@@ -5097,11 +5097,11 @@ const Italic$1 = Menu$3.Mark.create({
|
|
|
5097
5097
|
},
|
|
5098
5098
|
addInputRules() {
|
|
5099
5099
|
return [
|
|
5100
|
-
Menu$
|
|
5100
|
+
Menu$4.markInputRule({
|
|
5101
5101
|
find: starInputRegex,
|
|
5102
5102
|
type: this.type,
|
|
5103
5103
|
}),
|
|
5104
|
-
Menu$
|
|
5104
|
+
Menu$4.markInputRule({
|
|
5105
5105
|
find: underscoreInputRegex,
|
|
5106
5106
|
type: this.type,
|
|
5107
5107
|
}),
|
|
@@ -5109,11 +5109,11 @@ const Italic$1 = Menu$3.Mark.create({
|
|
|
5109
5109
|
},
|
|
5110
5110
|
addPasteRules() {
|
|
5111
5111
|
return [
|
|
5112
|
-
Menu$
|
|
5112
|
+
Menu$4.markPasteRule({
|
|
5113
5113
|
find: starPasteRegex,
|
|
5114
5114
|
type: this.type,
|
|
5115
5115
|
}),
|
|
5116
|
-
Menu$
|
|
5116
|
+
Menu$4.markPasteRule({
|
|
5117
5117
|
find: underscorePasteRegex,
|
|
5118
5118
|
type: this.type,
|
|
5119
5119
|
}),
|
|
@@ -5125,7 +5125,7 @@ const Italic$1 = Menu$3.Mark.create({
|
|
|
5125
5125
|
* This extension allows you to create list items.
|
|
5126
5126
|
* @see https://www.tiptap.dev/api/nodes/list-item
|
|
5127
5127
|
*/
|
|
5128
|
-
const ListItem$1 = Menu$
|
|
5128
|
+
const ListItem$1 = Menu$4.Node.create({
|
|
5129
5129
|
name: 'listItem',
|
|
5130
5130
|
addOptions() {
|
|
5131
5131
|
return {
|
|
@@ -5144,7 +5144,7 @@ const ListItem$1 = Menu$3.Node.create({
|
|
|
5144
5144
|
];
|
|
5145
5145
|
},
|
|
5146
5146
|
renderHTML({ HTMLAttributes }) {
|
|
5147
|
-
return ['li', Menu$
|
|
5147
|
+
return ['li', Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
5148
5148
|
},
|
|
5149
5149
|
addKeyboardShortcuts() {
|
|
5150
5150
|
return {
|
|
@@ -5160,7 +5160,7 @@ const ListItem$1 = Menu$3.Node.create({
|
|
|
5160
5160
|
* for the `textColor` and `backgroundColor` extensions.
|
|
5161
5161
|
* @see https://www.tiptap.dev/api/marks/text-style
|
|
5162
5162
|
*/
|
|
5163
|
-
const TextStyle = Menu$
|
|
5163
|
+
const TextStyle = Menu$4.Mark.create({
|
|
5164
5164
|
name: 'textStyle',
|
|
5165
5165
|
priority: 101,
|
|
5166
5166
|
addOptions() {
|
|
@@ -5183,12 +5183,12 @@ const TextStyle = Menu$3.Mark.create({
|
|
|
5183
5183
|
];
|
|
5184
5184
|
},
|
|
5185
5185
|
renderHTML({ HTMLAttributes }) {
|
|
5186
|
-
return ['span', Menu$
|
|
5186
|
+
return ['span', Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
5187
5187
|
},
|
|
5188
5188
|
addCommands() {
|
|
5189
5189
|
return {
|
|
5190
5190
|
removeEmptyTextStyle: () => ({ state, commands }) => {
|
|
5191
|
-
const attributes = Menu$
|
|
5191
|
+
const attributes = Menu$4.getMarkAttributes(state, this.type);
|
|
5192
5192
|
const hasStyles = Object.entries(attributes).some(([, value]) => !!value);
|
|
5193
5193
|
if (hasStyles) {
|
|
5194
5194
|
return true;
|
|
@@ -5209,7 +5209,7 @@ const inputRegex$3 = /^(\d+)\.\s$/;
|
|
|
5209
5209
|
* @see https://www.tiptap.dev/api/nodes/ordered-list
|
|
5210
5210
|
* @see https://www.tiptap.dev/api/nodes/list-item
|
|
5211
5211
|
*/
|
|
5212
|
-
const OrderedList$2 = Menu$
|
|
5212
|
+
const OrderedList$2 = Menu$4.Node.create({
|
|
5213
5213
|
name: 'orderedList',
|
|
5214
5214
|
addOptions() {
|
|
5215
5215
|
return {
|
|
@@ -5249,8 +5249,8 @@ const OrderedList$2 = Menu$3.Node.create({
|
|
|
5249
5249
|
renderHTML({ HTMLAttributes }) {
|
|
5250
5250
|
const { start, ...attributesWithoutStart } = HTMLAttributes;
|
|
5251
5251
|
return start === 1
|
|
5252
|
-
? ['ol', Menu$
|
|
5253
|
-
: ['ol', Menu$
|
|
5252
|
+
? ['ol', Menu$4.mergeAttributes(this.options.HTMLAttributes, attributesWithoutStart), 0]
|
|
5253
|
+
: ['ol', Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
5254
5254
|
},
|
|
5255
5255
|
addCommands() {
|
|
5256
5256
|
return {
|
|
@@ -5268,14 +5268,14 @@ const OrderedList$2 = Menu$3.Node.create({
|
|
|
5268
5268
|
};
|
|
5269
5269
|
},
|
|
5270
5270
|
addInputRules() {
|
|
5271
|
-
let inputRule = Menu$
|
|
5271
|
+
let inputRule = Menu$4.wrappingInputRule({
|
|
5272
5272
|
find: inputRegex$3,
|
|
5273
5273
|
type: this.type,
|
|
5274
5274
|
getAttributes: match => ({ start: +match[1] }),
|
|
5275
5275
|
joinPredicate: (match, node) => node.childCount + node.attrs.start === +match[1],
|
|
5276
5276
|
});
|
|
5277
5277
|
if (this.options.keepMarks || this.options.keepAttributes) {
|
|
5278
|
-
inputRule = Menu$
|
|
5278
|
+
inputRule = Menu$4.wrappingInputRule({
|
|
5279
5279
|
find: inputRegex$3,
|
|
5280
5280
|
type: this.type,
|
|
5281
5281
|
keepMarks: this.options.keepMarks,
|
|
@@ -5295,7 +5295,7 @@ const OrderedList$2 = Menu$3.Node.create({
|
|
|
5295
5295
|
* This extension allows you to create paragraphs.
|
|
5296
5296
|
* @see https://www.tiptap.dev/api/nodes/paragraph
|
|
5297
5297
|
*/
|
|
5298
|
-
const Paragraph = Menu$
|
|
5298
|
+
const Paragraph = Menu$4.Node.create({
|
|
5299
5299
|
name: 'paragraph',
|
|
5300
5300
|
priority: 1000,
|
|
5301
5301
|
addOptions() {
|
|
@@ -5311,7 +5311,7 @@ const Paragraph = Menu$3.Node.create({
|
|
|
5311
5311
|
];
|
|
5312
5312
|
},
|
|
5313
5313
|
renderHTML({ HTMLAttributes }) {
|
|
5314
|
-
return ['p', Menu$
|
|
5314
|
+
return ['p', Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
5315
5315
|
},
|
|
5316
5316
|
addCommands() {
|
|
5317
5317
|
return {
|
|
@@ -5339,7 +5339,7 @@ const pasteRegex = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g;
|
|
|
5339
5339
|
* This extension allows you to create strike text.
|
|
5340
5340
|
* @see https://www.tiptap.dev/api/marks/strike
|
|
5341
5341
|
*/
|
|
5342
|
-
const Strike = Menu$
|
|
5342
|
+
const Strike = Menu$4.Mark.create({
|
|
5343
5343
|
name: 'strike',
|
|
5344
5344
|
addOptions() {
|
|
5345
5345
|
return {
|
|
@@ -5365,7 +5365,7 @@ const Strike = Menu$3.Mark.create({
|
|
|
5365
5365
|
];
|
|
5366
5366
|
},
|
|
5367
5367
|
renderHTML({ HTMLAttributes }) {
|
|
5368
|
-
return ['s', Menu$
|
|
5368
|
+
return ['s', Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
5369
5369
|
},
|
|
5370
5370
|
addCommands() {
|
|
5371
5371
|
return {
|
|
@@ -5387,7 +5387,7 @@ const Strike = Menu$3.Mark.create({
|
|
|
5387
5387
|
},
|
|
5388
5388
|
addInputRules() {
|
|
5389
5389
|
return [
|
|
5390
|
-
Menu$
|
|
5390
|
+
Menu$4.markInputRule({
|
|
5391
5391
|
find: inputRegex$2,
|
|
5392
5392
|
type: this.type,
|
|
5393
5393
|
}),
|
|
@@ -5395,7 +5395,7 @@ const Strike = Menu$3.Mark.create({
|
|
|
5395
5395
|
},
|
|
5396
5396
|
addPasteRules() {
|
|
5397
5397
|
return [
|
|
5398
|
-
Menu$
|
|
5398
|
+
Menu$4.markPasteRule({
|
|
5399
5399
|
find: pasteRegex,
|
|
5400
5400
|
type: this.type,
|
|
5401
5401
|
}),
|
|
@@ -5407,7 +5407,7 @@ const Strike = Menu$3.Mark.create({
|
|
|
5407
5407
|
* This extension allows you to create text nodes.
|
|
5408
5408
|
* @see https://www.tiptap.dev/api/nodes/text
|
|
5409
5409
|
*/
|
|
5410
|
-
const Text$1 = Menu$
|
|
5410
|
+
const Text$1 = Menu$4.Node.create({
|
|
5411
5411
|
name: 'text',
|
|
5412
5412
|
group: 'inline',
|
|
5413
5413
|
});
|
|
@@ -5417,7 +5417,7 @@ const Text$1 = Menu$3.Node.create({
|
|
|
5417
5417
|
*
|
|
5418
5418
|
* It’s a good starting point for building your own editor.
|
|
5419
5419
|
*/
|
|
5420
|
-
const StarterKit = Menu$
|
|
5420
|
+
const StarterKit = Menu$4.Extension.create({
|
|
5421
5421
|
name: 'starterKit',
|
|
5422
5422
|
addExtensions() {
|
|
5423
5423
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
@@ -5480,7 +5480,7 @@ const StarterKit = Menu$3.Extension.create({
|
|
|
5480
5480
|
},
|
|
5481
5481
|
});
|
|
5482
5482
|
|
|
5483
|
-
var HighlightInternal = Menu$
|
|
5483
|
+
var HighlightInternal = Menu$4.Extension.create({
|
|
5484
5484
|
name: "HighlightInternal",
|
|
5485
5485
|
addOptions: function addOptions() {
|
|
5486
5486
|
return {
|
|
@@ -5538,7 +5538,7 @@ var __export = (target, all) => {
|
|
|
5538
5538
|
var ListItemName = "listItem";
|
|
5539
5539
|
var TextStyleName = "textStyle";
|
|
5540
5540
|
var bulletListInputRegex = /^\s*([-+*])\s$/;
|
|
5541
|
-
var BulletList$1 = Menu$
|
|
5541
|
+
var BulletList$1 = Menu$4.Node.create({
|
|
5542
5542
|
name: "bulletList",
|
|
5543
5543
|
addOptions() {
|
|
5544
5544
|
return {
|
|
@@ -5556,7 +5556,7 @@ var BulletList$1 = Menu$3.Node.create({
|
|
|
5556
5556
|
return [{ tag: "ul" }];
|
|
5557
5557
|
},
|
|
5558
5558
|
renderHTML({ HTMLAttributes }) {
|
|
5559
|
-
return ["ul", Menu$
|
|
5559
|
+
return ["ul", Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
5560
5560
|
},
|
|
5561
5561
|
addCommands() {
|
|
5562
5562
|
return {
|
|
@@ -5574,12 +5574,12 @@ var BulletList$1 = Menu$3.Node.create({
|
|
|
5574
5574
|
};
|
|
5575
5575
|
},
|
|
5576
5576
|
addInputRules() {
|
|
5577
|
-
let inputRule = Menu$
|
|
5577
|
+
let inputRule = Menu$4.wrappingInputRule({
|
|
5578
5578
|
find: bulletListInputRegex,
|
|
5579
5579
|
type: this.type
|
|
5580
5580
|
});
|
|
5581
5581
|
if (this.options.keepMarks || this.options.keepAttributes) {
|
|
5582
|
-
inputRule = Menu$
|
|
5582
|
+
inputRule = Menu$4.wrappingInputRule({
|
|
5583
5583
|
find: bulletListInputRegex,
|
|
5584
5584
|
type: this.type,
|
|
5585
5585
|
keepMarks: this.options.keepMarks,
|
|
@@ -5593,7 +5593,7 @@ var BulletList$1 = Menu$3.Node.create({
|
|
|
5593
5593
|
return [inputRule];
|
|
5594
5594
|
}
|
|
5595
5595
|
});
|
|
5596
|
-
var ListItem = Menu$
|
|
5596
|
+
var ListItem = Menu$4.Node.create({
|
|
5597
5597
|
name: "listItem",
|
|
5598
5598
|
addOptions() {
|
|
5599
5599
|
return {
|
|
@@ -5612,7 +5612,7 @@ var ListItem = Menu$3.Node.create({
|
|
|
5612
5612
|
];
|
|
5613
5613
|
},
|
|
5614
5614
|
renderHTML({ HTMLAttributes }) {
|
|
5615
|
-
return ["li", Menu$
|
|
5615
|
+
return ["li", Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
5616
5616
|
},
|
|
5617
5617
|
addKeyboardShortcuts() {
|
|
5618
5618
|
return {
|
|
@@ -5639,7 +5639,7 @@ __export(listHelpers_exports, {
|
|
|
5639
5639
|
});
|
|
5640
5640
|
var findListItemPos = (typeOrName, state) => {
|
|
5641
5641
|
const { $from } = state.selection;
|
|
5642
|
-
const nodeType = Menu$
|
|
5642
|
+
const nodeType = Menu$4.getNodeType(typeOrName, state.schema);
|
|
5643
5643
|
let currentNode = null;
|
|
5644
5644
|
let currentDepth = $from.depth;
|
|
5645
5645
|
let currentPos = $from.pos;
|
|
@@ -5663,7 +5663,7 @@ var getNextListDepth = (typeOrName, state) => {
|
|
|
5663
5663
|
if (!listItemPos) {
|
|
5664
5664
|
return false;
|
|
5665
5665
|
}
|
|
5666
|
-
const [, depth] = Menu$
|
|
5666
|
+
const [, depth] = Menu$4.getNodeAtPosition(state, typeOrName, listItemPos.$pos.pos + 4);
|
|
5667
5667
|
return depth;
|
|
5668
5668
|
};
|
|
5669
5669
|
|
|
@@ -5695,7 +5695,7 @@ var listItemHasSubList = (typeOrName, state, node) => {
|
|
|
5695
5695
|
if (!node) {
|
|
5696
5696
|
return false;
|
|
5697
5697
|
}
|
|
5698
|
-
const nodeType = Menu$
|
|
5698
|
+
const nodeType = Menu$4.getNodeType(typeOrName, state.schema);
|
|
5699
5699
|
let hasSubList = false;
|
|
5700
5700
|
node.descendants((child) => {
|
|
5701
5701
|
if (child.type === nodeType) {
|
|
@@ -5713,7 +5713,7 @@ var handleBackspace = (editor, name, parentListTypes) => {
|
|
|
5713
5713
|
if (editor.state.selection.from !== editor.state.selection.to) {
|
|
5714
5714
|
return false;
|
|
5715
5715
|
}
|
|
5716
|
-
if (!Menu$
|
|
5716
|
+
if (!Menu$4.isNodeActive(editor.state, name) && hasListBefore(editor.state, name, parentListTypes)) {
|
|
5717
5717
|
const { $anchor } = editor.state.selection;
|
|
5718
5718
|
const $listPos = editor.state.doc.resolve($anchor.before() - 1);
|
|
5719
5719
|
const listDescendants = [];
|
|
@@ -5729,10 +5729,10 @@ var handleBackspace = (editor, name, parentListTypes) => {
|
|
|
5729
5729
|
const $lastItemPos = editor.state.doc.resolve($listPos.start() + lastItem.pos + 1);
|
|
5730
5730
|
return editor.chain().cut({ from: $anchor.start() - 1, to: $anchor.end() + 1 }, $lastItemPos.end()).joinForward().run();
|
|
5731
5731
|
}
|
|
5732
|
-
if (!Menu$
|
|
5732
|
+
if (!Menu$4.isNodeActive(editor.state, name)) {
|
|
5733
5733
|
return false;
|
|
5734
5734
|
}
|
|
5735
|
-
if (!Menu$
|
|
5735
|
+
if (!Menu$4.isAtStartOfNode(editor.state)) {
|
|
5736
5736
|
return false;
|
|
5737
5737
|
}
|
|
5738
5738
|
const listItemPos = findListItemPos(name, editor.state);
|
|
@@ -5776,10 +5776,10 @@ var nextListIsHigher = (typeOrName, state) => {
|
|
|
5776
5776
|
|
|
5777
5777
|
// src/keymap/listHelpers/handleDelete.ts
|
|
5778
5778
|
var handleDelete = (editor, name) => {
|
|
5779
|
-
if (!Menu$
|
|
5779
|
+
if (!Menu$4.isNodeActive(editor.state, name)) {
|
|
5780
5780
|
return false;
|
|
5781
5781
|
}
|
|
5782
|
-
if (!Menu$
|
|
5782
|
+
if (!Menu$4.isAtEndOfNode(editor.state, name)) {
|
|
5783
5783
|
return false;
|
|
5784
5784
|
}
|
|
5785
5785
|
const { selection } = editor.state;
|
|
@@ -5811,7 +5811,7 @@ var hasListItemAfter = (typeOrName, state) => {
|
|
|
5811
5811
|
};
|
|
5812
5812
|
|
|
5813
5813
|
// src/keymap/list-keymap.ts
|
|
5814
|
-
var ListKeymap = Menu$
|
|
5814
|
+
var ListKeymap = Menu$4.Extension.create({
|
|
5815
5815
|
name: "listKeymap",
|
|
5816
5816
|
addOptions() {
|
|
5817
5817
|
return {
|
|
@@ -5883,7 +5883,7 @@ var ListKeymap = Menu$3.Extension.create({
|
|
|
5883
5883
|
var ListItemName2 = "listItem";
|
|
5884
5884
|
var TextStyleName2 = "textStyle";
|
|
5885
5885
|
var orderedListInputRegex = /^(\d+)\.\s$/;
|
|
5886
|
-
var OrderedList$1 = Menu$
|
|
5886
|
+
var OrderedList$1 = Menu$4.Node.create({
|
|
5887
5887
|
name: "orderedList",
|
|
5888
5888
|
addOptions() {
|
|
5889
5889
|
return {
|
|
@@ -5920,7 +5920,7 @@ var OrderedList$1 = Menu$3.Node.create({
|
|
|
5920
5920
|
},
|
|
5921
5921
|
renderHTML({ HTMLAttributes }) {
|
|
5922
5922
|
const { start, ...attributesWithoutStart } = HTMLAttributes;
|
|
5923
|
-
return start === 1 ? ["ol", Menu$
|
|
5923
|
+
return start === 1 ? ["ol", Menu$4.mergeAttributes(this.options.HTMLAttributes, attributesWithoutStart), 0] : ["ol", Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
5924
5924
|
},
|
|
5925
5925
|
addCommands() {
|
|
5926
5926
|
return {
|
|
@@ -5938,14 +5938,14 @@ var OrderedList$1 = Menu$3.Node.create({
|
|
|
5938
5938
|
};
|
|
5939
5939
|
},
|
|
5940
5940
|
addInputRules() {
|
|
5941
|
-
let inputRule = Menu$
|
|
5941
|
+
let inputRule = Menu$4.wrappingInputRule({
|
|
5942
5942
|
find: orderedListInputRegex,
|
|
5943
5943
|
type: this.type,
|
|
5944
5944
|
getAttributes: (match) => ({ start: +match[1] }),
|
|
5945
5945
|
joinPredicate: (match, node) => node.childCount + node.attrs.start === +match[1]
|
|
5946
5946
|
});
|
|
5947
5947
|
if (this.options.keepMarks || this.options.keepAttributes) {
|
|
5948
|
-
inputRule = Menu$
|
|
5948
|
+
inputRule = Menu$4.wrappingInputRule({
|
|
5949
5949
|
find: orderedListInputRegex,
|
|
5950
5950
|
type: this.type,
|
|
5951
5951
|
keepMarks: this.options.keepMarks,
|
|
@@ -5959,7 +5959,7 @@ var OrderedList$1 = Menu$3.Node.create({
|
|
|
5959
5959
|
}
|
|
5960
5960
|
});
|
|
5961
5961
|
var inputRegex$1 = /^\s*(\[([( |x])?\])\s$/;
|
|
5962
|
-
var TaskItem$1 = Menu$
|
|
5962
|
+
var TaskItem$1 = Menu$4.Node.create({
|
|
5963
5963
|
name: "taskItem",
|
|
5964
5964
|
addOptions() {
|
|
5965
5965
|
return {
|
|
@@ -5999,7 +5999,7 @@ var TaskItem$1 = Menu$3.Node.create({
|
|
|
5999
5999
|
renderHTML({ node, HTMLAttributes }) {
|
|
6000
6000
|
return [
|
|
6001
6001
|
"li",
|
|
6002
|
-
Menu$
|
|
6002
|
+
Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes, {
|
|
6003
6003
|
"data-type": this.name
|
|
6004
6004
|
}),
|
|
6005
6005
|
[
|
|
@@ -6097,7 +6097,7 @@ var TaskItem$1 = Menu$3.Node.create({
|
|
|
6097
6097
|
},
|
|
6098
6098
|
addInputRules() {
|
|
6099
6099
|
return [
|
|
6100
|
-
Menu$
|
|
6100
|
+
Menu$4.wrappingInputRule({
|
|
6101
6101
|
find: inputRegex$1,
|
|
6102
6102
|
type: this.type,
|
|
6103
6103
|
getAttributes: (match) => ({
|
|
@@ -6107,7 +6107,7 @@ var TaskItem$1 = Menu$3.Node.create({
|
|
|
6107
6107
|
];
|
|
6108
6108
|
}
|
|
6109
6109
|
});
|
|
6110
|
-
var TaskList$1 = Menu$
|
|
6110
|
+
var TaskList$1 = Menu$4.Node.create({
|
|
6111
6111
|
name: "taskList",
|
|
6112
6112
|
addOptions() {
|
|
6113
6113
|
return {
|
|
@@ -6128,7 +6128,7 @@ var TaskList$1 = Menu$3.Node.create({
|
|
|
6128
6128
|
];
|
|
6129
6129
|
},
|
|
6130
6130
|
renderHTML({ HTMLAttributes }) {
|
|
6131
|
-
return ["ul", Menu$
|
|
6131
|
+
return ["ul", Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes, { "data-type": this.name }), 0];
|
|
6132
6132
|
},
|
|
6133
6133
|
addCommands() {
|
|
6134
6134
|
return {
|
|
@@ -6145,7 +6145,7 @@ var TaskList$1 = Menu$3.Node.create({
|
|
|
6145
6145
|
});
|
|
6146
6146
|
|
|
6147
6147
|
// src/kit/index.ts
|
|
6148
|
-
Menu$
|
|
6148
|
+
Menu$4.Extension.create({
|
|
6149
6149
|
name: "listKit",
|
|
6150
6150
|
addExtensions() {
|
|
6151
6151
|
const extensions = [];
|
|
@@ -6184,8 +6184,8 @@ var CalloutComponent = function CalloutComponent(_ref) {
|
|
|
6184
6184
|
var type = node.attrs.type;
|
|
6185
6185
|
var Icon = ((_findBy = neetoCist.findBy({
|
|
6186
6186
|
type: type
|
|
6187
|
-
}, Menu$
|
|
6188
|
-
return /*#__PURE__*/jsxRuntime.jsx(Menu$
|
|
6187
|
+
}, Menu$4.CALLOUT_TYPES)) === null || _findBy === void 0 ? void 0 : _findBy.icon) || Megaphone;
|
|
6188
|
+
return /*#__PURE__*/jsxRuntime.jsx(Menu$4.NodeViewWrapper, {
|
|
6189
6189
|
className: "neeto-editor__callout neeto-editor__callout--".concat(type, " group"),
|
|
6190
6190
|
"data-emoji": type,
|
|
6191
6191
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
@@ -6193,14 +6193,14 @@ var CalloutComponent = function CalloutComponent(_ref) {
|
|
|
6193
6193
|
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
6194
6194
|
className: "callout-emoji",
|
|
6195
6195
|
children: /*#__PURE__*/jsxRuntime.jsx(Icon, {})
|
|
6196
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Menu$
|
|
6196
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Menu$4.NodeViewContent, {
|
|
6197
6197
|
className: "callout-content"
|
|
6198
6198
|
})]
|
|
6199
6199
|
})
|
|
6200
6200
|
});
|
|
6201
6201
|
};
|
|
6202
6202
|
|
|
6203
|
-
var Callout = Menu$
|
|
6203
|
+
var Callout = Menu$4.Node.create({
|
|
6204
6204
|
name: "callout",
|
|
6205
6205
|
inline: false,
|
|
6206
6206
|
group: "block",
|
|
@@ -6235,13 +6235,13 @@ var Callout = Menu$3.Node.create({
|
|
|
6235
6235
|
var type = node.attrs.type;
|
|
6236
6236
|
var Icon = ((_findBy = neetoCist.findBy({
|
|
6237
6237
|
type: type
|
|
6238
|
-
}, Menu$
|
|
6238
|
+
}, Menu$4.CALLOUT_TYPES)) === null || _findBy === void 0 ? void 0 : _findBy.icon) || Megaphone;
|
|
6239
6239
|
// eslint-disable-next-line react/jsx-filename-extension
|
|
6240
6240
|
var svgString = ReactDOM.renderToStaticMarkup( /*#__PURE__*/jsxRuntime.jsx(Icon, {}));
|
|
6241
6241
|
var svgContainer = document.createElement("div");
|
|
6242
6242
|
svgContainer.innerHTML = svgString;
|
|
6243
6243
|
var svgNode = svgContainer.firstChild;
|
|
6244
|
-
return ["div", Menu$
|
|
6244
|
+
return ["div", Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes, {
|
|
6245
6245
|
"class": "neeto-editor__callout neeto-editor__callout--".concat(type),
|
|
6246
6246
|
"data-emoji": type
|
|
6247
6247
|
}), ["div", {
|
|
@@ -6253,7 +6253,7 @@ var Callout = Menu$3.Node.create({
|
|
|
6253
6253
|
}, 0]]];
|
|
6254
6254
|
},
|
|
6255
6255
|
addNodeView: function addNodeView() {
|
|
6256
|
-
return Menu$
|
|
6256
|
+
return Menu$4.ReactNodeViewRenderer(CalloutComponent);
|
|
6257
6257
|
},
|
|
6258
6258
|
addCommands: function addCommands() {
|
|
6259
6259
|
var _this = this;
|
|
@@ -8975,7 +8975,7 @@ function registered(aliasOrLanguage) {
|
|
|
8975
8975
|
}
|
|
8976
8976
|
function getDecorations({ doc, name, lowlight, defaultLanguage, }) {
|
|
8977
8977
|
const decorations = [];
|
|
8978
|
-
Menu$
|
|
8978
|
+
Menu$4.findChildren(doc, node => node.type.name === name).forEach(block => {
|
|
8979
8979
|
let from = block.pos + 1;
|
|
8980
8980
|
const language = block.node.attrs.language || defaultLanguage;
|
|
8981
8981
|
const languages = lowlight.listLanguages();
|
|
@@ -8985,7 +8985,7 @@ function getDecorations({ doc, name, lowlight, defaultLanguage, }) {
|
|
|
8985
8985
|
parseNodes(nodes).forEach(node => {
|
|
8986
8986
|
const to = from + node.text.length;
|
|
8987
8987
|
if (node.classes.length) {
|
|
8988
|
-
const decoration = Menu$
|
|
8988
|
+
const decoration = Menu$4.Decoration.inline(from, to, {
|
|
8989
8989
|
class: node.classes.join(' '),
|
|
8990
8990
|
});
|
|
8991
8991
|
decorations.push(decoration);
|
|
@@ -8993,7 +8993,7 @@ function getDecorations({ doc, name, lowlight, defaultLanguage, }) {
|
|
|
8993
8993
|
from = to;
|
|
8994
8994
|
});
|
|
8995
8995
|
});
|
|
8996
|
-
return Menu$
|
|
8996
|
+
return Menu$4.DecorationSet.create(doc, decorations);
|
|
8997
8997
|
}
|
|
8998
8998
|
function isFunction(param) {
|
|
8999
8999
|
return typeof param === 'function';
|
|
@@ -9014,8 +9014,8 @@ function LowlightPlugin({ name, lowlight, defaultLanguage, }) {
|
|
|
9014
9014
|
apply: (transaction, decorationSet, oldState, newState) => {
|
|
9015
9015
|
const oldNodeName = oldState.selection.$head.parent.type.name;
|
|
9016
9016
|
const newNodeName = newState.selection.$head.parent.type.name;
|
|
9017
|
-
const oldNodes = Menu$
|
|
9018
|
-
const newNodes = Menu$
|
|
9017
|
+
const oldNodes = Menu$4.findChildren(oldState.doc, node => node.type.name === name);
|
|
9018
|
+
const newNodes = Menu$4.findChildren(newState.doc, node => node.type.name === name);
|
|
9019
9019
|
if (transaction.docChanged
|
|
9020
9020
|
// Apply decorations if:
|
|
9021
9021
|
// selection includes named node,
|
|
@@ -9097,7 +9097,7 @@ var LINE_NUMBER_OPTIONS = [{
|
|
|
9097
9097
|
/* eslint-disable @bigbinary/neeto/file-name-and-export-name-standards */
|
|
9098
9098
|
var codeBlockHighlightKey = new utils.PluginKey("codeBlockHighlight");
|
|
9099
9099
|
function createLineDecoration(from, lineNumber) {
|
|
9100
|
-
return Menu$
|
|
9100
|
+
return Menu$4.Decoration.widget(from, function (view) {
|
|
9101
9101
|
var line = document.createElement("div");
|
|
9102
9102
|
line.className = "highlighted-line";
|
|
9103
9103
|
line.setAttribute("data-line-number", lineNumber.toString());
|
|
@@ -9130,7 +9130,7 @@ var codeBlockHighlightPlugin = new utils.Plugin({
|
|
|
9130
9130
|
key: codeBlockHighlightKey,
|
|
9131
9131
|
state: {
|
|
9132
9132
|
init: function init() {
|
|
9133
|
-
return Menu$
|
|
9133
|
+
return Menu$4.DecorationSet.empty;
|
|
9134
9134
|
},
|
|
9135
9135
|
apply: function apply(tr, set) {
|
|
9136
9136
|
set = set.map(tr.mapping, tr.doc);
|
|
@@ -9148,7 +9148,7 @@ var codeBlockHighlightPlugin = new utils.Plugin({
|
|
|
9148
9148
|
}
|
|
9149
9149
|
});
|
|
9150
9150
|
});
|
|
9151
|
-
return Menu$
|
|
9151
|
+
return Menu$4.DecorationSet.create(tr.doc, decorations);
|
|
9152
9152
|
}
|
|
9153
9153
|
return set;
|
|
9154
9154
|
}
|
|
@@ -9160,8 +9160,8 @@ var codeBlockHighlightPlugin = new utils.Plugin({
|
|
|
9160
9160
|
}
|
|
9161
9161
|
});
|
|
9162
9162
|
|
|
9163
|
-
var Menu$
|
|
9164
|
-
MenuItem$
|
|
9163
|
+
var Menu$3 = Dropdown.Menu,
|
|
9164
|
+
MenuItem$2 = Dropdown.MenuItem;
|
|
9165
9165
|
var CodeBlockComponent = function CodeBlockComponent(_ref) {
|
|
9166
9166
|
var _node$attrs, _node$content;
|
|
9167
9167
|
var node = _ref.node,
|
|
@@ -9247,7 +9247,7 @@ var CodeBlockComponent = function CodeBlockComponent(_ref) {
|
|
|
9247
9247
|
// Trigger the plugin to update decorations
|
|
9248
9248
|
editor.view.dispatch(editor.state.tr.setMeta(codeBlockHighlightKey, true));
|
|
9249
9249
|
};
|
|
9250
|
-
return /*#__PURE__*/jsxRuntime.jsx(Menu$
|
|
9250
|
+
return /*#__PURE__*/jsxRuntime.jsx(Menu$4.NodeViewWrapper, {
|
|
9251
9251
|
className: "ne-codeblock-nodeview-wrapper",
|
|
9252
9252
|
"data-cy": "neeto-editor-code-block",
|
|
9253
9253
|
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
@@ -9267,12 +9267,12 @@ var CodeBlockComponent = function CodeBlockComponent(_ref) {
|
|
|
9267
9267
|
strategy: "fixed",
|
|
9268
9268
|
zIndex: 99999,
|
|
9269
9269
|
label: showLineNumbers === "true" ? LINE_NUMBER_OPTIONS[0].label : LINE_NUMBER_OPTIONS[1].label,
|
|
9270
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Menu$
|
|
9270
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Menu$3, {
|
|
9271
9271
|
className: "neeto-editor-codeblock-options__menu",
|
|
9272
9272
|
children: LINE_NUMBER_OPTIONS.map(function (_ref2) {
|
|
9273
9273
|
var label = _ref2.label,
|
|
9274
9274
|
value = _ref2.value;
|
|
9275
|
-
return /*#__PURE__*/jsxRuntime.jsx(MenuItem$
|
|
9275
|
+
return /*#__PURE__*/jsxRuntime.jsx(MenuItem$2.Button, {
|
|
9276
9276
|
onClick: function onClick() {
|
|
9277
9277
|
setShowLineNumbers(value);
|
|
9278
9278
|
updateAttributes({
|
|
@@ -9306,10 +9306,10 @@ var CodeBlockComponent = function CodeBlockComponent(_ref) {
|
|
|
9306
9306
|
e.preventDefault();
|
|
9307
9307
|
e.stopPropagation();
|
|
9308
9308
|
}
|
|
9309
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Menu$
|
|
9309
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Menu$3, {
|
|
9310
9310
|
className: "neeto-editor-codeblock-options__menu",
|
|
9311
9311
|
children: filteredAndSortedLanguageList.map(function (language) {
|
|
9312
|
-
return /*#__PURE__*/jsxRuntime.jsx(MenuItem$
|
|
9312
|
+
return /*#__PURE__*/jsxRuntime.jsx(MenuItem$2.Button, {
|
|
9313
9313
|
onClick: function onClick() {
|
|
9314
9314
|
return handleLanguageSelect(language);
|
|
9315
9315
|
},
|
|
@@ -9330,7 +9330,7 @@ var CodeBlockComponent = function CodeBlockComponent(_ref) {
|
|
|
9330
9330
|
},
|
|
9331
9331
|
onClick: handleHighlight
|
|
9332
9332
|
})]
|
|
9333
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Menu$
|
|
9333
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Menu$4.NodeViewContent, {
|
|
9334
9334
|
as: "code"
|
|
9335
9335
|
})]
|
|
9336
9336
|
})
|
|
@@ -9338,12 +9338,12 @@ var CodeBlockComponent = function CodeBlockComponent(_ref) {
|
|
|
9338
9338
|
});
|
|
9339
9339
|
};
|
|
9340
9340
|
|
|
9341
|
-
function ownKeys$
|
|
9342
|
-
function _objectSpread$
|
|
9341
|
+
function ownKeys$h(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; }
|
|
9342
|
+
function _objectSpread$h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$h(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9343
9343
|
var CodeBlock = CodeBlockLowlight.extend({
|
|
9344
9344
|
addAttributes: function addAttributes() {
|
|
9345
9345
|
var _this$parent;
|
|
9346
|
-
return _objectSpread$
|
|
9346
|
+
return _objectSpread$h(_objectSpread$h({}, (_this$parent = this.parent) === null || _this$parent === void 0 ? void 0 : _this$parent.call(this)), {}, {
|
|
9347
9347
|
highlightedLines: {
|
|
9348
9348
|
"default": [],
|
|
9349
9349
|
parseHTML: function parseHTML(element) {
|
|
@@ -9375,14 +9375,14 @@ var CodeBlock = CodeBlockLowlight.extend({
|
|
|
9375
9375
|
return [].concat(_toConsumableArray(((_this$parent2 = this.parent) === null || _this$parent2 === void 0 ? void 0 : _this$parent2.call(this)) || []), [codeBlockHighlightPlugin]);
|
|
9376
9376
|
},
|
|
9377
9377
|
addNodeView: function addNodeView() {
|
|
9378
|
-
return Menu$
|
|
9378
|
+
return Menu$4.ReactNodeViewRenderer(CodeBlockComponent);
|
|
9379
9379
|
}
|
|
9380
9380
|
}).configure({
|
|
9381
9381
|
lowlight: common.lowlight,
|
|
9382
9382
|
defaultLanguage: "plaintext"
|
|
9383
9383
|
});
|
|
9384
9384
|
|
|
9385
|
-
var CustomCommands = Menu$
|
|
9385
|
+
var CustomCommands = Menu$4.Extension.create({
|
|
9386
9386
|
name: "paste-unformatted",
|
|
9387
9387
|
addCommands: function addCommands() {
|
|
9388
9388
|
return {
|
|
@@ -9417,7 +9417,7 @@ var CustomCommands = Menu$3.Extension.create({
|
|
|
9417
9417
|
function findSuggestionMatch(config) {
|
|
9418
9418
|
var _a;
|
|
9419
9419
|
const { char, allowSpaces, allowedPrefixes, startOfLine, $position, } = config;
|
|
9420
|
-
const escapedChar = Menu$
|
|
9420
|
+
const escapedChar = Menu$4.escapeForRegEx(char);
|
|
9421
9421
|
const suffix = new RegExp(`\\s${escapedChar}$`);
|
|
9422
9422
|
const prefix = startOfLine ? '^' : '';
|
|
9423
9423
|
const regexp = allowSpaces
|
|
@@ -9632,8 +9632,8 @@ function Suggestion({ pluginKey = SuggestionPluginKey, editor, char = '@', allow
|
|
|
9632
9632
|
if (!active) {
|
|
9633
9633
|
return null;
|
|
9634
9634
|
}
|
|
9635
|
-
return Menu$
|
|
9636
|
-
Menu$
|
|
9635
|
+
return Menu$4.DecorationSet.create(state.doc, [
|
|
9636
|
+
Menu$4.Decoration.inline(range.from, range.to, {
|
|
9637
9637
|
nodeName: decorationTag,
|
|
9638
9638
|
class: decorationClass,
|
|
9639
9639
|
'data-decoration-id': decorationId,
|
|
@@ -9645,10 +9645,10 @@ function Suggestion({ pluginKey = SuggestionPluginKey, editor, char = '@', allow
|
|
|
9645
9645
|
return plugin;
|
|
9646
9646
|
}
|
|
9647
9647
|
|
|
9648
|
-
function ownKeys$
|
|
9649
|
-
function _objectSpread$
|
|
9648
|
+
function ownKeys$g(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; }
|
|
9649
|
+
function _objectSpread$g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$g(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9650
9650
|
var EmojiPickerPluginKey = new utils.PluginKey("emoji-picker");
|
|
9651
|
-
var EmojiPicker = Menu$
|
|
9651
|
+
var EmojiPicker = Menu$4.Node.create({
|
|
9652
9652
|
name: "emojiPicker",
|
|
9653
9653
|
group: "inline",
|
|
9654
9654
|
inline: true,
|
|
@@ -9668,7 +9668,7 @@ var EmojiPicker = Menu$3.Node.create({
|
|
|
9668
9668
|
var popup;
|
|
9669
9669
|
return {
|
|
9670
9670
|
onStart: function onStart(props) {
|
|
9671
|
-
reactRenderer = new Menu$
|
|
9671
|
+
reactRenderer = new Menu$4.ReactRenderer(Menu$4.EmojiPickerMenu, {
|
|
9672
9672
|
props: props,
|
|
9673
9673
|
editor: props.editor
|
|
9674
9674
|
});
|
|
@@ -9700,7 +9700,7 @@ var EmojiPicker = Menu$3.Node.create({
|
|
|
9700
9700
|
};
|
|
9701
9701
|
},
|
|
9702
9702
|
addProseMirrorPlugins: function addProseMirrorPlugins() {
|
|
9703
|
-
return [Suggestion(_objectSpread$
|
|
9703
|
+
return [Suggestion(_objectSpread$g({
|
|
9704
9704
|
editor: this.editor
|
|
9705
9705
|
}, this.options.suggestion))];
|
|
9706
9706
|
}
|
|
@@ -9753,7 +9753,7 @@ var EmojiSuggestionMenu = /*#__PURE__*/function (_React$Component) {
|
|
|
9753
9753
|
});
|
|
9754
9754
|
_context.prev = 1;
|
|
9755
9755
|
_context.next = 4;
|
|
9756
|
-
return Menu$
|
|
9756
|
+
return Menu$4.emojiPickerApi.fetch();
|
|
9757
9757
|
case 4:
|
|
9758
9758
|
_yield$emojiPickerApi = _context.sent;
|
|
9759
9759
|
data = _yield$emojiPickerApi.data;
|
|
@@ -9918,10 +9918,10 @@ var EmojiSuggestionMenu = /*#__PURE__*/function (_React$Component) {
|
|
|
9918
9918
|
}]);
|
|
9919
9919
|
}(React.Component);
|
|
9920
9920
|
|
|
9921
|
-
function ownKeys$
|
|
9922
|
-
function _objectSpread$
|
|
9921
|
+
function ownKeys$f(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; }
|
|
9922
|
+
function _objectSpread$f(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$f(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$f(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9923
9923
|
var EmojiSuggestionPluginKey = new utils.PluginKey("emoji-suggestion");
|
|
9924
|
-
var EmojiSuggestion = Menu$
|
|
9924
|
+
var EmojiSuggestion = Menu$4.Node.create({
|
|
9925
9925
|
name: "emojiSuggestion",
|
|
9926
9926
|
group: "inline",
|
|
9927
9927
|
inline: true,
|
|
@@ -9965,7 +9965,7 @@ var EmojiSuggestion = Menu$3.Node.create({
|
|
|
9965
9965
|
renderHTML: function renderHTML(_ref2) {
|
|
9966
9966
|
var node = _ref2.node,
|
|
9967
9967
|
HTMLAttributes = _ref2.HTMLAttributes;
|
|
9968
|
-
return ["span", Menu$
|
|
9968
|
+
return ["span", Menu$4.mergeAttributes({
|
|
9969
9969
|
"data-emoji": ""
|
|
9970
9970
|
}, this.options.HTMLAttributes, HTMLAttributes), this.options.renderEmoji({
|
|
9971
9971
|
node: node
|
|
@@ -9998,7 +9998,7 @@ var EmojiSuggestion = Menu$3.Node.create({
|
|
|
9998
9998
|
};
|
|
9999
9999
|
},
|
|
10000
10000
|
addProseMirrorPlugins: function addProseMirrorPlugins() {
|
|
10001
|
-
return [Suggestion(_objectSpread$
|
|
10001
|
+
return [Suggestion(_objectSpread$f({
|
|
10002
10002
|
editor: this.editor
|
|
10003
10003
|
}, this.options.suggestion))];
|
|
10004
10004
|
}
|
|
@@ -10030,7 +10030,7 @@ var suggestionConfig = {
|
|
|
10030
10030
|
var _popup$;
|
|
10031
10031
|
var isArrowNavigation = props.editor.view.input.lastKeyCode === 39 || props.editor.view.input.lastKeyCode === 37;
|
|
10032
10032
|
if (!isArrowNavigation && props.query.length === 1 && EMOJI_QUERY_REGEX.test(props.query)) {
|
|
10033
|
-
reactRenderer = new Menu$
|
|
10033
|
+
reactRenderer = new Menu$4.ReactRenderer(EmojiSuggestionMenu, {
|
|
10034
10034
|
props: props,
|
|
10035
10035
|
editor: props.editor
|
|
10036
10036
|
});
|
|
@@ -10951,7 +10951,7 @@ var ImagePreviewModal = function ImagePreviewModal(_ref) {
|
|
|
10951
10951
|
});
|
|
10952
10952
|
};
|
|
10953
10953
|
|
|
10954
|
-
var Menu$
|
|
10954
|
+
var Menu$2 = function Menu(_ref) {
|
|
10955
10955
|
var align = _ref.align,
|
|
10956
10956
|
editor = _ref.editor,
|
|
10957
10957
|
updateAttributes = _ref.updateAttributes,
|
|
@@ -10993,8 +10993,8 @@ var Menu$1 = function Menu(_ref) {
|
|
|
10993
10993
|
});
|
|
10994
10994
|
};
|
|
10995
10995
|
|
|
10996
|
-
function ownKeys$
|
|
10997
|
-
function _objectSpread$
|
|
10996
|
+
function ownKeys$e(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; }
|
|
10997
|
+
function _objectSpread$e(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$e(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$e(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10998
10998
|
var ImageComponent = function ImageComponent(_ref) {
|
|
10999
10999
|
var _node$content, _figureRef$current;
|
|
11000
11000
|
var node = _ref.node,
|
|
@@ -11041,12 +11041,12 @@ var ImageComponent = function ImageComponent(_ref) {
|
|
|
11041
11041
|
editor.commands.focus();
|
|
11042
11042
|
};
|
|
11043
11043
|
if (neetoCist.isNotPresent(src) && neetoCist.isNotPresent(alt)) return null;
|
|
11044
|
-
return /*#__PURE__*/jsxRuntime.jsxs(Menu$
|
|
11044
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Menu$4.NodeViewWrapper, {
|
|
11045
11045
|
className: "neeto-editor__image-wrapper neeto-editor__image--".concat(align),
|
|
11046
11046
|
"data-cy": "neeto-editor-image-wrapper",
|
|
11047
11047
|
children: [/*#__PURE__*/jsxRuntime.jsxs("figure", {
|
|
11048
11048
|
ref: figureRef,
|
|
11049
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Menu$
|
|
11049
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Menu$2, {
|
|
11050
11050
|
align: align,
|
|
11051
11051
|
deleteNode: deleteNode,
|
|
11052
11052
|
editor: editor,
|
|
@@ -11063,7 +11063,7 @@ var ImageComponent = function ImageComponent(_ref) {
|
|
|
11063
11063
|
onResize: function onResize(_event, _direction, ref) {
|
|
11064
11064
|
return setCaptionWidth(ref.offsetWidth);
|
|
11065
11065
|
},
|
|
11066
|
-
children: /*#__PURE__*/jsxRuntime.jsx("img", _objectSpread$
|
|
11066
|
+
children: /*#__PURE__*/jsxRuntime.jsx("img", _objectSpread$e(_objectSpread$e({}, _objectSpread$e(_objectSpread$e({}, node.attrs), {}, {
|
|
11067
11067
|
src: src
|
|
11068
11068
|
})), {}, {
|
|
11069
11069
|
alt: caption,
|
|
@@ -11075,7 +11075,7 @@ var ImageComponent = function ImageComponent(_ref) {
|
|
|
11075
11075
|
}) : /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
11076
11076
|
className: "neeto-editor__image-placeholder",
|
|
11077
11077
|
children: /*#__PURE__*/jsxRuntime.jsx(Spinner, {})
|
|
11078
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Menu$
|
|
11078
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Menu$4.NodeViewContent, {
|
|
11079
11079
|
as: "figcaption",
|
|
11080
11080
|
className: classnames({
|
|
11081
11081
|
"is-empty": ramda.isEmpty(caption)
|
|
@@ -11123,7 +11123,7 @@ var upload = /*#__PURE__*/function () {
|
|
|
11123
11123
|
return _ref.apply(this, arguments);
|
|
11124
11124
|
};
|
|
11125
11125
|
}();
|
|
11126
|
-
var ImageExtension = Menu$
|
|
11126
|
+
var ImageExtension = Menu$4.Node.create({
|
|
11127
11127
|
name: "image",
|
|
11128
11128
|
addOptions: function addOptions() {
|
|
11129
11129
|
return {
|
|
@@ -11210,13 +11210,13 @@ var ImageExtension = Menu$3.Node.create({
|
|
|
11210
11210
|
var captionAttrs = {
|
|
11211
11211
|
style: "width:".concat(figwidth, "px;")
|
|
11212
11212
|
};
|
|
11213
|
-
return ["div", wrapperDivAttrs, ["figure", this.options.HTMLAttributes, ["a", wrapperLinkAttrs, ["img", Menu$
|
|
11213
|
+
return ["div", wrapperDivAttrs, ["figure", this.options.HTMLAttributes, ["a", wrapperLinkAttrs, ["img", Menu$4.mergeAttributes(HTMLAttributes, {
|
|
11214
11214
|
draggable: false,
|
|
11215
11215
|
contenteditable: false
|
|
11216
11216
|
})]], ["figcaption", captionAttrs, 0]]];
|
|
11217
11217
|
},
|
|
11218
11218
|
addNodeView: function addNodeView() {
|
|
11219
|
-
return Menu$
|
|
11219
|
+
return Menu$4.ReactNodeViewRenderer(ImageComponent);
|
|
11220
11220
|
},
|
|
11221
11221
|
addCommands: function addCommands() {
|
|
11222
11222
|
var _this = this;
|
|
@@ -11366,7 +11366,7 @@ var ImageExtension = Menu$3.Node.create({
|
|
|
11366
11366
|
}
|
|
11367
11367
|
});
|
|
11368
11368
|
|
|
11369
|
-
var FigCaption = Menu$
|
|
11369
|
+
var FigCaption = Menu$4.Node.create({
|
|
11370
11370
|
name: "figcaption",
|
|
11371
11371
|
content: "text*",
|
|
11372
11372
|
selectable: false,
|
|
@@ -11378,7 +11378,7 @@ var FigCaption = Menu$3.Node.create({
|
|
|
11378
11378
|
},
|
|
11379
11379
|
renderHTML: function renderHTML(_ref) {
|
|
11380
11380
|
var HTMLAttributes = _ref.HTMLAttributes;
|
|
11381
|
-
return ["figcaption", Menu$
|
|
11381
|
+
return ["figcaption", Menu$4.mergeAttributes(HTMLAttributes), 0];
|
|
11382
11382
|
}
|
|
11383
11383
|
});
|
|
11384
11384
|
|
|
@@ -11391,17 +11391,17 @@ var Italic = Italic$1.extend({
|
|
|
11391
11391
|
}
|
|
11392
11392
|
});
|
|
11393
11393
|
|
|
11394
|
-
function ownKeys$
|
|
11395
|
-
function _objectSpread$
|
|
11394
|
+
function ownKeys$d(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; }
|
|
11395
|
+
function _objectSpread$d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$d(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11396
11396
|
var KeyboardShortcuts = function KeyboardShortcuts(_ref) {
|
|
11397
11397
|
var onSubmit = _ref.onSubmit,
|
|
11398
11398
|
shortcuts = _ref.shortcuts,
|
|
11399
11399
|
isBlockQuoteActive = _ref.isBlockQuoteActive;
|
|
11400
|
-
return Menu$
|
|
11400
|
+
return Menu$4.Extension.create({
|
|
11401
11401
|
name: "keyboard-shortcuts",
|
|
11402
11402
|
addKeyboardShortcuts: function addKeyboardShortcuts() {
|
|
11403
11403
|
var _this = this;
|
|
11404
|
-
return _objectSpread$
|
|
11404
|
+
return _objectSpread$d({
|
|
11405
11405
|
"Mod-Enter": function ModEnter() {
|
|
11406
11406
|
onSubmit === null || onSubmit === void 0 || onSubmit(_this.editor.getHTML());
|
|
11407
11407
|
return true;
|
|
@@ -13220,11 +13220,11 @@ function autolink(options) {
|
|
|
13220
13220
|
return;
|
|
13221
13221
|
}
|
|
13222
13222
|
const { tr } = newState;
|
|
13223
|
-
const transform = Menu$
|
|
13224
|
-
const changes = Menu$
|
|
13223
|
+
const transform = Menu$4.combineTransactionSteps(oldState.doc, [...transactions]);
|
|
13224
|
+
const changes = Menu$4.getChangedRanges(transform);
|
|
13225
13225
|
changes.forEach(({ newRange }) => {
|
|
13226
13226
|
// Now let’s see if we can add new links.
|
|
13227
|
-
const nodesInChangedRanges = Menu$
|
|
13227
|
+
const nodesInChangedRanges = Menu$4.findChildrenInRange(newState.doc, newRange, node => node.isTextblock);
|
|
13228
13228
|
let textBlock;
|
|
13229
13229
|
let textBeforeWhitespace;
|
|
13230
13230
|
if (nodesInChangedRanges.length > 1) {
|
|
@@ -13271,7 +13271,7 @@ function autolink(options) {
|
|
|
13271
13271
|
.filter(link => options.validate(link.value))
|
|
13272
13272
|
// Add link mark.
|
|
13273
13273
|
.forEach(link => {
|
|
13274
|
-
if (Menu$
|
|
13274
|
+
if (Menu$4.getMarksBetween(link.from, link.to, newState.doc).some(item => item.mark.type === options.type)) {
|
|
13275
13275
|
return;
|
|
13276
13276
|
}
|
|
13277
13277
|
tr.addMark(link.from, link.to, options.type.create({
|
|
@@ -13309,7 +13309,7 @@ function clickHandler(options) {
|
|
|
13309
13309
|
if (!els.find(value => value.nodeName === 'A')) {
|
|
13310
13310
|
return false;
|
|
13311
13311
|
}
|
|
13312
|
-
const attrs = Menu$
|
|
13312
|
+
const attrs = Menu$4.getAttributes(view.state, options.type.name);
|
|
13313
13313
|
const link = event.target;
|
|
13314
13314
|
const href = (_a = link === null || link === void 0 ? void 0 : link.href) !== null && _a !== void 0 ? _a : attrs.href;
|
|
13315
13315
|
const target = (_b = link === null || link === void 0 ? void 0 : link.target) !== null && _b !== void 0 ? _b : attrs.target;
|
|
@@ -13371,7 +13371,7 @@ function isAllowedUri(uri, protocols) {
|
|
|
13371
13371
|
* This extension allows you to create links.
|
|
13372
13372
|
* @see https://www.tiptap.dev/api/marks/link
|
|
13373
13373
|
*/
|
|
13374
|
-
const Link$1 = Menu$
|
|
13374
|
+
const Link$1 = Menu$4.Mark.create({
|
|
13375
13375
|
name: 'link',
|
|
13376
13376
|
priority: 1000,
|
|
13377
13377
|
keepOnSplit: false,
|
|
@@ -13442,9 +13442,9 @@ const Link$1 = Menu$3.Mark.create({
|
|
|
13442
13442
|
// prevent XSS attacks
|
|
13443
13443
|
if (!isAllowedUri(HTMLAttributes.href, this.options.protocols)) {
|
|
13444
13444
|
// strip out the href
|
|
13445
|
-
return ['a', Menu$
|
|
13445
|
+
return ['a', Menu$4.mergeAttributes(this.options.HTMLAttributes, { ...HTMLAttributes, href: '' }), 0];
|
|
13446
13446
|
}
|
|
13447
|
-
return ['a', Menu$
|
|
13447
|
+
return ['a', Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
13448
13448
|
},
|
|
13449
13449
|
addCommands() {
|
|
13450
13450
|
return {
|
|
@@ -13467,7 +13467,7 @@ const Link$1 = Menu$3.Mark.create({
|
|
|
13467
13467
|
},
|
|
13468
13468
|
addPasteRules() {
|
|
13469
13469
|
return [
|
|
13470
|
-
Menu$
|
|
13470
|
+
Menu$4.markPasteRule({
|
|
13471
13471
|
find: text => {
|
|
13472
13472
|
const foundLinks = [];
|
|
13473
13473
|
if (text) {
|
|
@@ -13522,11 +13522,11 @@ const Link$1 = Menu$3.Mark.create({
|
|
|
13522
13522
|
|
|
13523
13523
|
var LINK_MARKDOWN_INPUT_REGEX = /(?:^|\s)\[([^\]]*)?\]\((\S+)(?: ["“](.+)["”])?\)$/i;
|
|
13524
13524
|
|
|
13525
|
-
function ownKeys$
|
|
13526
|
-
function _objectSpread$
|
|
13525
|
+
function ownKeys$c(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; }
|
|
13526
|
+
function _objectSpread$c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$c(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13527
13527
|
var linkInputRule = function linkInputRule(config) {
|
|
13528
|
-
var defaultMarkInputRule = Menu$
|
|
13529
|
-
return new Menu$
|
|
13528
|
+
var defaultMarkInputRule = Menu$4.markInputRule(config);
|
|
13529
|
+
return new Menu$4.InputRule({
|
|
13530
13530
|
find: config.find,
|
|
13531
13531
|
handler: function handler(props) {
|
|
13532
13532
|
try {
|
|
@@ -13544,7 +13544,7 @@ var Link = Link$1.extend({
|
|
|
13544
13544
|
inclusive: false,
|
|
13545
13545
|
addAttributes: function addAttributes() {
|
|
13546
13546
|
var _this$parent;
|
|
13547
|
-
return _objectSpread$
|
|
13547
|
+
return _objectSpread$c(_objectSpread$c({}, (_this$parent = this.parent) === null || _this$parent === void 0 ? void 0 : _this$parent.call(this)), {}, {
|
|
13548
13548
|
title: {
|
|
13549
13549
|
"default": null
|
|
13550
13550
|
}
|
|
@@ -13557,7 +13557,7 @@ var Link = Link$1.extend({
|
|
|
13557
13557
|
},
|
|
13558
13558
|
renderHTML: function renderHTML(_ref) {
|
|
13559
13559
|
var HTMLAttributes = _ref.HTMLAttributes;
|
|
13560
|
-
return ["a", Menu$
|
|
13560
|
+
return ["a", Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes, {
|
|
13561
13561
|
"class": "link"
|
|
13562
13562
|
}), 0];
|
|
13563
13563
|
},
|
|
@@ -13585,7 +13585,7 @@ const MentionPluginKey = new utils.PluginKey('mention');
|
|
|
13585
13585
|
* This extension allows you to insert mentions into the editor.
|
|
13586
13586
|
* @see https://www.tiptap.dev/api/extensions/mention
|
|
13587
13587
|
*/
|
|
13588
|
-
const Mention$1 = Menu$
|
|
13588
|
+
const Mention$1 = Menu$4.Node.create({
|
|
13589
13589
|
name: 'mention',
|
|
13590
13590
|
addOptions() {
|
|
13591
13591
|
return {
|
|
@@ -13599,7 +13599,7 @@ const Mention$1 = Menu$3.Node.create({
|
|
|
13599
13599
|
var _a;
|
|
13600
13600
|
return [
|
|
13601
13601
|
'span',
|
|
13602
|
-
Menu$
|
|
13602
|
+
Menu$4.mergeAttributes(this.HTMLAttributes, options.HTMLAttributes),
|
|
13603
13603
|
`${options.suggestion.char}${(_a = node.attrs.label) !== null && _a !== void 0 ? _a : node.attrs.id}`,
|
|
13604
13604
|
];
|
|
13605
13605
|
},
|
|
@@ -13684,7 +13684,7 @@ const Mention$1 = Menu$3.Node.create({
|
|
|
13684
13684
|
console.warn('renderLabel is deprecated use renderText and renderHTML instead');
|
|
13685
13685
|
return [
|
|
13686
13686
|
'span',
|
|
13687
|
-
Menu$
|
|
13687
|
+
Menu$4.mergeAttributes({ 'data-type': this.name }, this.options.HTMLAttributes, HTMLAttributes),
|
|
13688
13688
|
this.options.renderLabel({
|
|
13689
13689
|
options: this.options,
|
|
13690
13690
|
node,
|
|
@@ -13692,7 +13692,7 @@ const Mention$1 = Menu$3.Node.create({
|
|
|
13692
13692
|
];
|
|
13693
13693
|
}
|
|
13694
13694
|
const mergedOptions = { ...this.options };
|
|
13695
|
-
mergedOptions.HTMLAttributes = Menu$
|
|
13695
|
+
mergedOptions.HTMLAttributes = Menu$4.mergeAttributes({ 'data-type': this.name }, this.options.HTMLAttributes, HTMLAttributes);
|
|
13696
13696
|
const html = this.options.renderHTML({
|
|
13697
13697
|
options: mergedOptions,
|
|
13698
13698
|
node,
|
|
@@ -13700,7 +13700,7 @@ const Mention$1 = Menu$3.Node.create({
|
|
|
13700
13700
|
if (typeof html === 'string') {
|
|
13701
13701
|
return [
|
|
13702
13702
|
'span',
|
|
13703
|
-
Menu$
|
|
13703
|
+
Menu$4.mergeAttributes({ 'data-type': this.name }, this.options.HTMLAttributes, HTMLAttributes),
|
|
13704
13704
|
html,
|
|
13705
13705
|
];
|
|
13706
13706
|
}
|
|
@@ -13918,15 +13918,15 @@ var createMentionSuggestions = function createMentionSuggestions() {
|
|
|
13918
13918
|
};
|
|
13919
13919
|
|
|
13920
13920
|
var _excluded$3 = ["suggestion"];
|
|
13921
|
-
function ownKeys$
|
|
13922
|
-
function _objectSpread$
|
|
13921
|
+
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; }
|
|
13922
|
+
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(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; }
|
|
13923
13923
|
var suggestion$1 = {
|
|
13924
13924
|
render: function render() {
|
|
13925
13925
|
var reactRenderer;
|
|
13926
13926
|
var popup;
|
|
13927
13927
|
return {
|
|
13928
13928
|
onStart: function onStart(props) {
|
|
13929
|
-
reactRenderer = new Menu$
|
|
13929
|
+
reactRenderer = new Menu$4.ReactRenderer(MentionList, {
|
|
13930
13930
|
props: props,
|
|
13931
13931
|
editor: props.editor
|
|
13932
13932
|
});
|
|
@@ -13995,8 +13995,8 @@ var Mention = {
|
|
|
13995
13995
|
var _ref3$suggestion = _ref3.suggestion,
|
|
13996
13996
|
suggestionConfig = _ref3$suggestion === void 0 ? {} : _ref3$suggestion,
|
|
13997
13997
|
otherConfig = _objectWithoutProperties(_ref3, _excluded$3);
|
|
13998
|
-
return Mentions.configure(_objectSpread$
|
|
13999
|
-
suggestion: _objectSpread$
|
|
13998
|
+
return Mentions.configure(_objectSpread$b(_objectSpread$b({}, otherConfig), {}, {
|
|
13999
|
+
suggestion: _objectSpread$b(_objectSpread$b({}, suggestion$1), suggestionConfig)
|
|
14000
14000
|
}));
|
|
14001
14001
|
}
|
|
14002
14002
|
};
|
|
@@ -14008,7 +14008,7 @@ var OrderedList = OrderedList$1.configure({
|
|
|
14008
14008
|
itemTypeName: "listItem"
|
|
14009
14009
|
});
|
|
14010
14010
|
|
|
14011
|
-
var Placeholder = Menu$
|
|
14011
|
+
var Placeholder = Menu$4.Extension.create({
|
|
14012
14012
|
name: "placeholder",
|
|
14013
14013
|
addOptions: function addOptions() {
|
|
14014
14014
|
return {
|
|
@@ -14048,7 +14048,7 @@ var Placeholder = Menu$3.Extension.create({
|
|
|
14048
14048
|
placeholderText = _this.options.slashCommandsPlaceholder;
|
|
14049
14049
|
}
|
|
14050
14050
|
}
|
|
14051
|
-
var decoration = Menu$
|
|
14051
|
+
var decoration = Menu$4.Decoration.node(pos, pos + node.nodeSize, {
|
|
14052
14052
|
"class": classes.join(" "),
|
|
14053
14053
|
"data-placeholder": placeholderText
|
|
14054
14054
|
});
|
|
@@ -14056,7 +14056,7 @@ var Placeholder = Menu$3.Extension.create({
|
|
|
14056
14056
|
}
|
|
14057
14057
|
return _this.options.includeChildren;
|
|
14058
14058
|
});
|
|
14059
|
-
return Menu$
|
|
14059
|
+
return Menu$4.DecorationSet.create(doc, decorations);
|
|
14060
14060
|
}
|
|
14061
14061
|
}
|
|
14062
14062
|
})];
|
|
@@ -14071,7 +14071,7 @@ var SelectionDecoration = Document.extend({
|
|
|
14071
14071
|
state: {
|
|
14072
14072
|
init: function init() {
|
|
14073
14073
|
return {
|
|
14074
|
-
decorations: Menu$
|
|
14074
|
+
decorations: Menu$4.DecorationSet.empty,
|
|
14075
14075
|
selectedTextDecoration: null
|
|
14076
14076
|
};
|
|
14077
14077
|
},
|
|
@@ -14084,7 +14084,7 @@ var SelectionDecoration = Document.extend({
|
|
|
14084
14084
|
decorations = decorations.remove([selectedTextDecoration]);
|
|
14085
14085
|
}
|
|
14086
14086
|
if (!selection.empty) {
|
|
14087
|
-
selectedTextDecoration = Menu$
|
|
14087
|
+
selectedTextDecoration = Menu$4.Decoration.inline(selection.from, selection.to, {
|
|
14088
14088
|
"class": "selected-text"
|
|
14089
14089
|
});
|
|
14090
14090
|
decorations = decorations.add(doc, [selectedTextDecoration]);
|
|
@@ -14106,11 +14106,11 @@ var SelectionDecoration = Document.extend({
|
|
|
14106
14106
|
}
|
|
14107
14107
|
});
|
|
14108
14108
|
|
|
14109
|
-
function ownKeys$
|
|
14110
|
-
function _objectSpread$
|
|
14109
|
+
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; }
|
|
14110
|
+
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(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; }
|
|
14111
14111
|
function _callSuper$1(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$1() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
14112
14112
|
function _isNativeReflectConstruct$1() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$1 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
14113
|
-
var Menu = /*#__PURE__*/function (_React$Component) {
|
|
14113
|
+
var Menu$1 = /*#__PURE__*/function (_React$Component) {
|
|
14114
14114
|
function Menu(props) {
|
|
14115
14115
|
var _this;
|
|
14116
14116
|
_classCallCheck(this, Menu);
|
|
@@ -14228,7 +14228,7 @@ var Menu = /*#__PURE__*/function (_React$Component) {
|
|
|
14228
14228
|
ref: this.menuRef,
|
|
14229
14229
|
children: items.map(function (item, index) {
|
|
14230
14230
|
var isLeafNode = neetoCist.isNotPresent(item.items);
|
|
14231
|
-
var nodeElement = /*#__PURE__*/React.createElement(MenuItem, {
|
|
14231
|
+
var nodeElement = /*#__PURE__*/React.createElement(MenuItem$1, {
|
|
14232
14232
|
index: index,
|
|
14233
14233
|
item: item,
|
|
14234
14234
|
key: item.optionName,
|
|
@@ -14248,7 +14248,7 @@ var Menu = /*#__PURE__*/function (_React$Component) {
|
|
|
14248
14248
|
placement: "right",
|
|
14249
14249
|
theme: "light neeto-editor-slash-commands-tippy",
|
|
14250
14250
|
visible: selectedIndex === index,
|
|
14251
|
-
content: /*#__PURE__*/jsxRuntime.jsx(Menu, _objectSpread$
|
|
14251
|
+
content: /*#__PURE__*/jsxRuntime.jsx(Menu, _objectSpread$a(_objectSpread$a({}, _this2.props), {}, {
|
|
14252
14252
|
items: item.items,
|
|
14253
14253
|
menuIndex: menuIndex + 1
|
|
14254
14254
|
})),
|
|
@@ -14269,7 +14269,7 @@ var Menu = /*#__PURE__*/function (_React$Component) {
|
|
|
14269
14269
|
}
|
|
14270
14270
|
}]);
|
|
14271
14271
|
}(React.Component); // eslint-disable-next-line react/display-name
|
|
14272
|
-
var MenuItem = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
14272
|
+
var MenuItem$1 = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
14273
14273
|
var item = _ref2.item,
|
|
14274
14274
|
selectedIndex = _ref2.selectedIndex,
|
|
14275
14275
|
index = _ref2.index,
|
|
@@ -14297,8 +14297,8 @@ var MenuItem = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
14297
14297
|
});
|
|
14298
14298
|
});
|
|
14299
14299
|
|
|
14300
|
-
function ownKeys$
|
|
14301
|
-
function _objectSpread$
|
|
14300
|
+
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; }
|
|
14301
|
+
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(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; }
|
|
14302
14302
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
14303
14303
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
14304
14304
|
var CommandsList = /*#__PURE__*/function (_React$Component) {
|
|
@@ -14327,7 +14327,7 @@ var CommandsList = /*#__PURE__*/function (_React$Component) {
|
|
|
14327
14327
|
return _createClass(CommandsList, [{
|
|
14328
14328
|
key: "render",
|
|
14329
14329
|
value: function render() {
|
|
14330
|
-
return /*#__PURE__*/jsxRuntime.jsx(Menu, _objectSpread$
|
|
14330
|
+
return /*#__PURE__*/jsxRuntime.jsx(Menu$1, _objectSpread$9(_objectSpread$9({}, this.props), {}, {
|
|
14331
14331
|
activeMenuIndex: this.state.activeMenuIndex,
|
|
14332
14332
|
items: this.props.items,
|
|
14333
14333
|
menuIndex: 0,
|
|
@@ -14633,8 +14633,8 @@ var NO_RESULT_MENU_ITEM = {
|
|
|
14633
14633
|
}
|
|
14634
14634
|
};
|
|
14635
14635
|
|
|
14636
|
-
function ownKeys$
|
|
14637
|
-
function _objectSpread$
|
|
14636
|
+
function ownKeys$8(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; }
|
|
14637
|
+
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$8(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$8(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14638
14638
|
var imageCommand = function imageCommand(setMediaUploader) {
|
|
14639
14639
|
return function (_ref) {
|
|
14640
14640
|
var editor = _ref.editor,
|
|
@@ -14690,7 +14690,7 @@ var buildCommandItems = function buildCommandItems(_ref5) {
|
|
|
14690
14690
|
return options.includes(optionName);
|
|
14691
14691
|
});
|
|
14692
14692
|
var adddonCommandItems = addonCommands.map(function (command) {
|
|
14693
|
-
return _objectSpread$
|
|
14693
|
+
return _objectSpread$8(_objectSpread$8({}, command), {}, {
|
|
14694
14694
|
title: command.label,
|
|
14695
14695
|
Icon: command.icon
|
|
14696
14696
|
});
|
|
@@ -14698,8 +14698,8 @@ var buildCommandItems = function buildCommandItems(_ref5) {
|
|
|
14698
14698
|
return [].concat(_toConsumableArray(permittedCommandItems), _toConsumableArray(adddonCommandItems));
|
|
14699
14699
|
};
|
|
14700
14700
|
|
|
14701
|
-
function ownKeys$
|
|
14702
|
-
function _objectSpread$
|
|
14701
|
+
function ownKeys$7(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; }
|
|
14702
|
+
function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$7(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$7(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14703
14703
|
var CommandsPluginKey = new utils.PluginKey("commands");
|
|
14704
14704
|
var SlashCommands = {
|
|
14705
14705
|
configure: function configure(_ref) {
|
|
@@ -14715,7 +14715,7 @@ var SlashCommands = {
|
|
|
14715
14715
|
setIsAddLinkActive: setIsAddLinkActive,
|
|
14716
14716
|
attachmentProps: attachmentProps
|
|
14717
14717
|
});
|
|
14718
|
-
return Menu$
|
|
14718
|
+
return Menu$4.Extension.create({
|
|
14719
14719
|
name: "slash-commands",
|
|
14720
14720
|
addOptions: function addOptions() {
|
|
14721
14721
|
return {
|
|
@@ -14751,7 +14751,7 @@ var SlashCommands = {
|
|
|
14751
14751
|
if (props.editor.isActive("image") || props.editor.isActive("codeBlock")) {
|
|
14752
14752
|
return;
|
|
14753
14753
|
}
|
|
14754
|
-
reactRenderer = new Menu$
|
|
14754
|
+
reactRenderer = new Menu$4.ReactRenderer(CommandsList, {
|
|
14755
14755
|
props: props,
|
|
14756
14756
|
editor: props.editor
|
|
14757
14757
|
});
|
|
@@ -14770,7 +14770,7 @@ var SlashCommands = {
|
|
|
14770
14770
|
role: "dropdown",
|
|
14771
14771
|
theme: "light neeto-editor-slash-commands-tippy"
|
|
14772
14772
|
});
|
|
14773
|
-
Menu$
|
|
14773
|
+
Menu$4.highlightFocussedNode();
|
|
14774
14774
|
},
|
|
14775
14775
|
onUpdate: function onUpdate(props) {
|
|
14776
14776
|
var _reactRenderer;
|
|
@@ -14793,7 +14793,7 @@ var SlashCommands = {
|
|
|
14793
14793
|
onExit: function onExit() {
|
|
14794
14794
|
popup && popup[0].destroy();
|
|
14795
14795
|
reactRenderer && reactRenderer.destroy();
|
|
14796
|
-
Menu$
|
|
14796
|
+
Menu$4.resetFocussedNode();
|
|
14797
14797
|
}
|
|
14798
14798
|
};
|
|
14799
14799
|
}
|
|
@@ -14801,7 +14801,7 @@ var SlashCommands = {
|
|
|
14801
14801
|
};
|
|
14802
14802
|
},
|
|
14803
14803
|
addProseMirrorPlugins: function addProseMirrorPlugins() {
|
|
14804
|
-
return [Suggestion(_objectSpread$
|
|
14804
|
+
return [Suggestion(_objectSpread$7({
|
|
14805
14805
|
editor: this.editor
|
|
14806
14806
|
}, this.options.suggestion))];
|
|
14807
14807
|
}
|
|
@@ -14810,8 +14810,8 @@ var SlashCommands = {
|
|
|
14810
14810
|
};
|
|
14811
14811
|
|
|
14812
14812
|
var _excluded$2 = ["suggestion"];
|
|
14813
|
-
function ownKeys$
|
|
14814
|
-
function _objectSpread$
|
|
14813
|
+
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; }
|
|
14814
|
+
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(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; }
|
|
14815
14815
|
var SpecialMentionPluginKey = new utils.PluginKey("special-mention");
|
|
14816
14816
|
var renderLabel = function renderLabel(_ref) {
|
|
14817
14817
|
var _node$attrs$label;
|
|
@@ -14827,7 +14827,7 @@ var suggestion = {
|
|
|
14827
14827
|
var popup;
|
|
14828
14828
|
return {
|
|
14829
14829
|
onStart: function onStart(props) {
|
|
14830
|
-
reactRenderer = new Menu$
|
|
14830
|
+
reactRenderer = new Menu$4.ReactRenderer(MentionList, {
|
|
14831
14831
|
props: props,
|
|
14832
14832
|
editor: props.editor
|
|
14833
14833
|
});
|
|
@@ -14872,7 +14872,7 @@ var SpecialMentions = Mention$1.extend({
|
|
|
14872
14872
|
renderHTML: function renderHTML(_ref2) {
|
|
14873
14873
|
var node = _ref2.node,
|
|
14874
14874
|
HTMLAttributes = _ref2.HTMLAttributes;
|
|
14875
|
-
return ["span", Menu$
|
|
14875
|
+
return ["span", Menu$4.mergeAttributes({
|
|
14876
14876
|
"data-type": this.name
|
|
14877
14877
|
}, this.options.HTMLAttributes, HTMLAttributes), renderLabel({
|
|
14878
14878
|
options: this.options,
|
|
@@ -14885,8 +14885,8 @@ var SpecialMentions$1 = {
|
|
|
14885
14885
|
var _ref3$suggestion = _ref3.suggestion,
|
|
14886
14886
|
suggestionConfig = _ref3$suggestion === void 0 ? {} : _ref3$suggestion,
|
|
14887
14887
|
otherConfig = _objectWithoutProperties(_ref3, _excluded$2);
|
|
14888
|
-
return SpecialMentions.configure(_objectSpread$
|
|
14889
|
-
suggestion: _objectSpread$
|
|
14888
|
+
return SpecialMentions.configure(_objectSpread$6(_objectSpread$6({}, otherConfig), {}, {
|
|
14889
|
+
suggestion: _objectSpread$6(_objectSpread$6({}, suggestion), suggestionConfig)
|
|
14890
14890
|
}));
|
|
14891
14891
|
}
|
|
14892
14892
|
};
|
|
@@ -17487,10 +17487,10 @@ function drawCellSelection(state) {
|
|
|
17487
17487
|
const cells = [];
|
|
17488
17488
|
state.selection.forEachCell((node, pos) => {
|
|
17489
17489
|
cells.push(
|
|
17490
|
-
Menu$
|
|
17490
|
+
Menu$4.Decoration.node(pos, pos + node.nodeSize, { class: "selectedCell" })
|
|
17491
17491
|
);
|
|
17492
17492
|
});
|
|
17493
|
-
return Menu$
|
|
17493
|
+
return Menu$4.DecorationSet.create(state.doc, cells);
|
|
17494
17494
|
}
|
|
17495
17495
|
function isCellBoundarySelection({ $from, $to }) {
|
|
17496
17496
|
if ($from.pos == $to.pos || $from.pos < $from.pos - 6)
|
|
@@ -17913,7 +17913,7 @@ function insertCells(state, dispatch, tableStart, rect, cells) {
|
|
|
17913
17913
|
}
|
|
17914
17914
|
|
|
17915
17915
|
// src/input.ts
|
|
17916
|
-
var handleKeyDown = Menu$
|
|
17916
|
+
var handleKeyDown = Menu$4.keydownHandler({
|
|
17917
17917
|
ArrowLeft: arrow("horiz", -1),
|
|
17918
17918
|
ArrowRight: arrow("horiz", 1),
|
|
17919
17919
|
ArrowUp: arrow("vert", -1),
|
|
@@ -18472,7 +18472,7 @@ function handleDecorations(state, cell) {
|
|
|
18472
18472
|
const $cell = state.doc.resolve(cell);
|
|
18473
18473
|
const table = $cell.node(-1);
|
|
18474
18474
|
if (!table) {
|
|
18475
|
-
return Menu$
|
|
18475
|
+
return Menu$4.DecorationSet.empty;
|
|
18476
18476
|
}
|
|
18477
18477
|
const map = TableMap.get(table);
|
|
18478
18478
|
const start = $cell.start(-1);
|
|
@@ -18484,10 +18484,10 @@ function handleDecorations(state, cell) {
|
|
|
18484
18484
|
const pos = start + cellPos + table.nodeAt(cellPos).nodeSize - 1;
|
|
18485
18485
|
const dom = document.createElement("div");
|
|
18486
18486
|
dom.className = "column-resize-handle";
|
|
18487
|
-
decorations.push(Menu$
|
|
18487
|
+
decorations.push(Menu$4.Decoration.widget(pos, dom));
|
|
18488
18488
|
}
|
|
18489
18489
|
}
|
|
18490
|
-
return Menu$
|
|
18490
|
+
return Menu$4.DecorationSet.create(state.doc, decorations);
|
|
18491
18491
|
}
|
|
18492
18492
|
function selectedRect(state) {
|
|
18493
18493
|
const sel = state.selection;
|
|
@@ -19233,7 +19233,7 @@ const deleteTableWhenAllCellsSelected = ({ editor }) => {
|
|
|
19233
19233
|
return false;
|
|
19234
19234
|
}
|
|
19235
19235
|
let cellCount = 0;
|
|
19236
|
-
const table = Menu$
|
|
19236
|
+
const table = Menu$4.findParentNodeClosestToPos(selection.ranges[0].$from, node => {
|
|
19237
19237
|
return node.type.name === 'table';
|
|
19238
19238
|
});
|
|
19239
19239
|
table === null || table === void 0 ? void 0 : table.node.descendants(node => {
|
|
@@ -19256,7 +19256,7 @@ const deleteTableWhenAllCellsSelected = ({ editor }) => {
|
|
|
19256
19256
|
* This extension allows you to create tables.
|
|
19257
19257
|
* @see https://www.tiptap.dev/api/nodes/table
|
|
19258
19258
|
*/
|
|
19259
|
-
const Table$2 = Menu$
|
|
19259
|
+
const Table$2 = Menu$4.Node.create({
|
|
19260
19260
|
name: 'table',
|
|
19261
19261
|
// @ts-ignore
|
|
19262
19262
|
addOptions() {
|
|
@@ -19282,7 +19282,7 @@ const Table$2 = Menu$3.Node.create({
|
|
|
19282
19282
|
const { colgroup, tableWidth, tableMinWidth } = createColGroup(node, this.options.cellMinWidth);
|
|
19283
19283
|
const table = [
|
|
19284
19284
|
'table',
|
|
19285
|
-
Menu$
|
|
19285
|
+
Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes, {
|
|
19286
19286
|
style: tableWidth
|
|
19287
19287
|
? `width: ${tableWidth}`
|
|
19288
19288
|
: `min-width: ${tableMinWidth}`,
|
|
@@ -19414,7 +19414,7 @@ const Table$2 = Menu$3.Node.create({
|
|
|
19414
19414
|
storage: extension.storage,
|
|
19415
19415
|
};
|
|
19416
19416
|
return {
|
|
19417
|
-
tableRole: Menu$
|
|
19417
|
+
tableRole: Menu$4.callOrReturn(Menu$4.getExtensionField(extension, 'tableRole', context)),
|
|
19418
19418
|
};
|
|
19419
19419
|
},
|
|
19420
19420
|
});
|
|
@@ -19460,7 +19460,8 @@ function updateColumns(node, colgroup, table, cellMinWidth) {
|
|
|
19460
19460
|
}
|
|
19461
19461
|
var TableView = /*#__PURE__*/function () {
|
|
19462
19462
|
function TableView(node, cellMinWidth) {
|
|
19463
|
-
var _this = this
|
|
19463
|
+
var _this = this,
|
|
19464
|
+
_node$attrs;
|
|
19464
19465
|
_classCallCheck(this, TableView);
|
|
19465
19466
|
_defineProperty(this, "buildController", function (_ref) {
|
|
19466
19467
|
var _ref$className = _ref.className,
|
|
@@ -19492,7 +19493,9 @@ var TableView = /*#__PURE__*/function () {
|
|
|
19492
19493
|
this.node = node;
|
|
19493
19494
|
this.cellMinWidth = cellMinWidth;
|
|
19494
19495
|
this.dom = document.createElement("div");
|
|
19495
|
-
|
|
19496
|
+
var alignmentSuffix = ((_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.textAlign) || "left";
|
|
19497
|
+
var alignmentClass = "neeto-editor-table--".concat(alignmentSuffix);
|
|
19498
|
+
this.dom.className = "neeto-editor-table ".concat(alignmentClass);
|
|
19496
19499
|
this.wrapper = document.createElement("div");
|
|
19497
19500
|
this.wrapper.className = "neeto-editor-table__wrapper";
|
|
19498
19501
|
this.table = this.dom.appendChild(this.wrapper).appendChild(document.createElement("table"));
|
|
@@ -19513,11 +19516,16 @@ var TableView = /*#__PURE__*/function () {
|
|
|
19513
19516
|
return _createClass(TableView, [{
|
|
19514
19517
|
key: "update",
|
|
19515
19518
|
value: function update(node) {
|
|
19519
|
+
var _node$attrs2;
|
|
19516
19520
|
if (node.type !== this.node.type) {
|
|
19517
19521
|
return false;
|
|
19518
19522
|
}
|
|
19519
19523
|
this.node = node;
|
|
19520
19524
|
updateColumns(node, this.colgroup, this.table, this.cellMinWidth);
|
|
19525
|
+
var alignmentSuffix = ((_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : _node$attrs2.textAlign) || "left";
|
|
19526
|
+
var currentAlignmentClass = "neeto-editor-table--".concat(alignmentSuffix);
|
|
19527
|
+
this.dom.classList.remove("neeto-editor-table--left", "neeto-editor-table--center", "neeto-editor-table--right");
|
|
19528
|
+
this.dom.classList.add(currentAlignmentClass);
|
|
19521
19529
|
return true;
|
|
19522
19530
|
}
|
|
19523
19531
|
}, {
|
|
@@ -19528,8 +19536,8 @@ var TableView = /*#__PURE__*/function () {
|
|
|
19528
19536
|
}]);
|
|
19529
19537
|
}();
|
|
19530
19538
|
|
|
19531
|
-
function ownKeys$
|
|
19532
|
-
function _objectSpread$
|
|
19539
|
+
function ownKeys$5(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; }
|
|
19540
|
+
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19533
19541
|
var Table = Table$2.extend({
|
|
19534
19542
|
addOptions: function addOptions() {
|
|
19535
19543
|
return {
|
|
@@ -19542,30 +19550,100 @@ var Table = Table$2.extend({
|
|
|
19542
19550
|
allowTableNodeSelection: true
|
|
19543
19551
|
};
|
|
19544
19552
|
},
|
|
19553
|
+
parseHTML: function parseHTML() {
|
|
19554
|
+
var getAlignmentFromElement = function getAlignmentFromElement(element) {
|
|
19555
|
+
if (!element) return null;
|
|
19556
|
+
var dataAlign = element.getAttribute("data-text-align");
|
|
19557
|
+
if (dataAlign) return dataAlign;
|
|
19558
|
+
if (element.classList.contains("neeto-editor-table--center")) {
|
|
19559
|
+
return "center";
|
|
19560
|
+
}
|
|
19561
|
+
if (element.classList.contains("neeto-editor-table--right")) {
|
|
19562
|
+
return "right";
|
|
19563
|
+
}
|
|
19564
|
+
if (element.classList.contains("neeto-editor-table--left")) {
|
|
19565
|
+
return "left";
|
|
19566
|
+
}
|
|
19567
|
+
return null;
|
|
19568
|
+
};
|
|
19569
|
+
return [{
|
|
19570
|
+
tag: "table",
|
|
19571
|
+
priority: 100,
|
|
19572
|
+
getAttrs: function getAttrs(node) {
|
|
19573
|
+
var alignment = getAlignmentFromElement(node);
|
|
19574
|
+
if (alignment) {
|
|
19575
|
+
return {
|
|
19576
|
+
textAlign: alignment
|
|
19577
|
+
};
|
|
19578
|
+
}
|
|
19579
|
+
var parent = node.parentElement;
|
|
19580
|
+
if (parent && parent.classList.contains("table-responsive")) {
|
|
19581
|
+
var parentAlignment = getAlignmentFromElement(parent);
|
|
19582
|
+
if (parentAlignment) {
|
|
19583
|
+
return {
|
|
19584
|
+
textAlign: parentAlignment
|
|
19585
|
+
};
|
|
19586
|
+
}
|
|
19587
|
+
}
|
|
19588
|
+
return {
|
|
19589
|
+
textAlign: "left"
|
|
19590
|
+
};
|
|
19591
|
+
}
|
|
19592
|
+
}];
|
|
19593
|
+
},
|
|
19594
|
+
addAttributes: function addAttributes() {
|
|
19595
|
+
var _this$parent;
|
|
19596
|
+
return _objectSpread$5(_objectSpread$5({}, (_this$parent = this.parent) === null || _this$parent === void 0 ? void 0 : _this$parent.call(this)), {}, {
|
|
19597
|
+
textAlign: {
|
|
19598
|
+
"default": "left",
|
|
19599
|
+
renderHTML: function renderHTML(attributes) {
|
|
19600
|
+
if (!attributes.textAlign) return {};
|
|
19601
|
+
return {
|
|
19602
|
+
"class": "neeto-editor-table--".concat(attributes.textAlign),
|
|
19603
|
+
"data-text-align": attributes.textAlign
|
|
19604
|
+
};
|
|
19605
|
+
}
|
|
19606
|
+
}
|
|
19607
|
+
});
|
|
19608
|
+
},
|
|
19545
19609
|
renderHTML: function renderHTML(_ref) {
|
|
19546
|
-
var _node$content;
|
|
19610
|
+
var _node$content, _node$attrs, _node$attrs2;
|
|
19547
19611
|
var node = _ref.node;
|
|
19548
|
-
var colgroups =
|
|
19549
|
-
|
|
19550
|
-
|
|
19551
|
-
|
|
19552
|
-
|
|
19553
|
-
|
|
19554
|
-
|
|
19555
|
-
|
|
19612
|
+
var colgroups = [];
|
|
19613
|
+
var tableBody = node === null || node === void 0 || (_node$content = node.content) === null || _node$content === void 0 ? void 0 : _node$content.firstChild;
|
|
19614
|
+
if (tableBody && tableBody.firstChild) {
|
|
19615
|
+
var firstRow = tableBody.firstChild;
|
|
19616
|
+
if (firstRow && firstRow.childCount) {
|
|
19617
|
+
for (var i = 0; i < firstRow.childCount; i++) {
|
|
19618
|
+
var _cell$attrs;
|
|
19619
|
+
var cell = firstRow.child(i);
|
|
19620
|
+
var style = "min-width: 100px;";
|
|
19621
|
+
if ((_cell$attrs = cell.attrs) !== null && _cell$attrs !== void 0 && _cell$attrs.colwidth) {
|
|
19622
|
+
style += "width: ".concat(cell.attrs.colwidth, "px;");
|
|
19623
|
+
}
|
|
19624
|
+
colgroups.push(["col", {
|
|
19625
|
+
style: style
|
|
19626
|
+
}]);
|
|
19627
|
+
}
|
|
19628
|
+
}
|
|
19629
|
+
}
|
|
19630
|
+
var alignmentClass = (_node$attrs = node.attrs) !== null && _node$attrs !== void 0 && _node$attrs.textAlign ? "neeto-editor-table--".concat(node.attrs.textAlign) : "neeto-editor-table--left";
|
|
19556
19631
|
return ["div", {
|
|
19557
|
-
"class": "table-responsive"
|
|
19558
|
-
|
|
19632
|
+
"class": "table-responsive ".concat(alignmentClass),
|
|
19633
|
+
"data-text-align": ((_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : _node$attrs2.textAlign) || "left"
|
|
19634
|
+
}, ["table", {}, ["colgroup"].concat(colgroups), ["tbody", 0]]];
|
|
19559
19635
|
},
|
|
19560
19636
|
addKeyboardShortcuts: function addKeyboardShortcuts() {
|
|
19561
|
-
var _this$
|
|
19637
|
+
var _this$parent2,
|
|
19562
19638
|
_this = this;
|
|
19563
|
-
return _objectSpread$
|
|
19639
|
+
return _objectSpread$5(_objectSpread$5({}, (_this$parent2 = this.parent) === null || _this$parent2 === void 0 ? void 0 : _this$parent2.call(this)), {}, {
|
|
19564
19640
|
"Mod-alt-t": function ModAltT() {
|
|
19565
19641
|
return _this.editor.chain().focus().insertTable({
|
|
19566
19642
|
rows: 3,
|
|
19567
19643
|
cols: 3,
|
|
19568
19644
|
withHeaderRow: true
|
|
19645
|
+
}).updateAttributes("table", {
|
|
19646
|
+
textAlign: "left"
|
|
19569
19647
|
}).run();
|
|
19570
19648
|
}
|
|
19571
19649
|
});
|
|
@@ -19581,7 +19659,7 @@ const inputRegex = /^\s*(\[([( |x])?\])\s$/;
|
|
|
19581
19659
|
* This extension allows you to create task items.
|
|
19582
19660
|
* @see https://www.tiptap.dev/api/nodes/task-item
|
|
19583
19661
|
*/
|
|
19584
|
-
const TaskItem = Menu$
|
|
19662
|
+
const TaskItem = Menu$4.Node.create({
|
|
19585
19663
|
name: 'taskItem',
|
|
19586
19664
|
addOptions() {
|
|
19587
19665
|
return {
|
|
@@ -19620,7 +19698,7 @@ const TaskItem = Menu$3.Node.create({
|
|
|
19620
19698
|
renderHTML({ node, HTMLAttributes }) {
|
|
19621
19699
|
return [
|
|
19622
19700
|
'li',
|
|
19623
|
-
Menu$
|
|
19701
|
+
Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes, {
|
|
19624
19702
|
'data-type': this.name,
|
|
19625
19703
|
}),
|
|
19626
19704
|
[
|
|
@@ -19719,7 +19797,7 @@ const TaskItem = Menu$3.Node.create({
|
|
|
19719
19797
|
},
|
|
19720
19798
|
addInputRules() {
|
|
19721
19799
|
return [
|
|
19722
|
-
Menu$
|
|
19800
|
+
Menu$4.wrappingInputRule({
|
|
19723
19801
|
find: inputRegex,
|
|
19724
19802
|
type: this.type,
|
|
19725
19803
|
getAttributes: match => ({
|
|
@@ -19734,7 +19812,7 @@ const TaskItem = Menu$3.Node.create({
|
|
|
19734
19812
|
* This extension allows you to create task lists.
|
|
19735
19813
|
* @see https://www.tiptap.dev/api/nodes/task-list
|
|
19736
19814
|
*/
|
|
19737
|
-
const TaskList = Menu$
|
|
19815
|
+
const TaskList = Menu$4.Node.create({
|
|
19738
19816
|
name: 'taskList',
|
|
19739
19817
|
addOptions() {
|
|
19740
19818
|
return {
|
|
@@ -19755,7 +19833,7 @@ const TaskList = Menu$3.Node.create({
|
|
|
19755
19833
|
];
|
|
19756
19834
|
},
|
|
19757
19835
|
renderHTML({ HTMLAttributes }) {
|
|
19758
|
-
return ['ul', Menu$
|
|
19836
|
+
return ['ul', Menu$4.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes, { 'data-type': this.name }), 0];
|
|
19759
19837
|
},
|
|
19760
19838
|
addCommands() {
|
|
19761
19839
|
return {
|
|
@@ -19832,7 +19910,7 @@ var VariableComponent = function VariableComponent(_ref) {
|
|
|
19832
19910
|
label = _node$attrs.label;
|
|
19833
19911
|
var variableName = label || id;
|
|
19834
19912
|
var shouldTruncate = variableName.length > MAX_VARIABLE_NAME_DISPLAY_LENGTH;
|
|
19835
|
-
return /*#__PURE__*/jsxRuntime.jsxs(Menu$
|
|
19913
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Menu$4.NodeViewWrapper, {
|
|
19836
19914
|
as: "span",
|
|
19837
19915
|
className: "neeto-editor-variable",
|
|
19838
19916
|
"data-label": id,
|
|
@@ -19847,7 +19925,7 @@ var VariableComponent = function VariableComponent(_ref) {
|
|
|
19847
19925
|
};
|
|
19848
19926
|
|
|
19849
19927
|
new utils.PluginKey("variables");
|
|
19850
|
-
var Variable = Menu$
|
|
19928
|
+
var Variable = Menu$4.Node.create({
|
|
19851
19929
|
name: "variable",
|
|
19852
19930
|
addOptions: function addOptions() {
|
|
19853
19931
|
return {
|
|
@@ -19904,7 +19982,7 @@ var Variable = Menu$3.Node.create({
|
|
|
19904
19982
|
renderHTML: function renderHTML(_ref2) {
|
|
19905
19983
|
var node = _ref2.node,
|
|
19906
19984
|
HTMLAttributes = _ref2.HTMLAttributes;
|
|
19907
|
-
return ["span", Menu$
|
|
19985
|
+
return ["span", Menu$4.mergeAttributes({
|
|
19908
19986
|
"data-variable": ""
|
|
19909
19987
|
}, this.options.HTMLAttributes, HTMLAttributes), this.options.renderLabel({
|
|
19910
19988
|
options: this.options,
|
|
@@ -19919,7 +19997,7 @@ var Variable = Menu$3.Node.create({
|
|
|
19919
19997
|
});
|
|
19920
19998
|
},
|
|
19921
19999
|
addNodeView: function addNodeView() {
|
|
19922
|
-
return Menu$
|
|
20000
|
+
return Menu$4.ReactNodeViewRenderer(VariableComponent);
|
|
19923
20001
|
},
|
|
19924
20002
|
addCommands: function addCommands() {
|
|
19925
20003
|
var _this = this;
|
|
@@ -19940,8 +20018,8 @@ var Variable = Menu$3.Node.create({
|
|
|
19940
20018
|
}
|
|
19941
20019
|
});
|
|
19942
20020
|
|
|
19943
|
-
function ownKeys$
|
|
19944
|
-
function _objectSpread$
|
|
20021
|
+
function ownKeys$4(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; }
|
|
20022
|
+
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19945
20023
|
var VideoComponent = function VideoComponent(_ref) {
|
|
19946
20024
|
var _node$content, _figureRef$current;
|
|
19947
20025
|
var node = _ref.node,
|
|
@@ -19983,11 +20061,11 @@ var VideoComponent = function VideoComponent(_ref) {
|
|
|
19983
20061
|
editor.commands.focus();
|
|
19984
20062
|
};
|
|
19985
20063
|
if (neetoCist.isNotPresent(src)) return null;
|
|
19986
|
-
return /*#__PURE__*/jsxRuntime.jsx(Menu$
|
|
20064
|
+
return /*#__PURE__*/jsxRuntime.jsx(Menu$4.NodeViewWrapper, {
|
|
19987
20065
|
className: "neeto-editor__image-wrapper neeto-editor__image--".concat(align),
|
|
19988
20066
|
children: /*#__PURE__*/jsxRuntime.jsxs("figure", {
|
|
19989
20067
|
ref: figureRef,
|
|
19990
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Menu$
|
|
20068
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Menu$2, {
|
|
19991
20069
|
align: align,
|
|
19992
20070
|
deleteNode: deleteNode,
|
|
19993
20071
|
editor: editor,
|
|
@@ -20003,15 +20081,15 @@ var VideoComponent = function VideoComponent(_ref) {
|
|
|
20003
20081
|
onResize: function onResize(_event, _direction, ref) {
|
|
20004
20082
|
return setCaptionWidth(ref.offsetWidth);
|
|
20005
20083
|
},
|
|
20006
|
-
children: /*#__PURE__*/jsxRuntime.jsx("video", _objectSpread$
|
|
20084
|
+
children: /*#__PURE__*/jsxRuntime.jsx("video", _objectSpread$4(_objectSpread$4({
|
|
20007
20085
|
controls: true
|
|
20008
|
-
}, _objectSpread$
|
|
20086
|
+
}, _objectSpread$4(_objectSpread$4({}, node.attrs), {}, {
|
|
20009
20087
|
src: src
|
|
20010
20088
|
})), {}, {
|
|
20011
20089
|
alt: caption,
|
|
20012
20090
|
preload: "metadata"
|
|
20013
20091
|
}))
|
|
20014
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Menu$
|
|
20092
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Menu$4.NodeViewContent, {
|
|
20015
20093
|
as: "figcaption",
|
|
20016
20094
|
className: classnames({
|
|
20017
20095
|
"is-empty": ramda.isEmpty(caption)
|
|
@@ -20024,8 +20102,8 @@ var VideoComponent = function VideoComponent(_ref) {
|
|
|
20024
20102
|
});
|
|
20025
20103
|
};
|
|
20026
20104
|
|
|
20027
|
-
function ownKeys$
|
|
20028
|
-
function _objectSpread$
|
|
20105
|
+
function ownKeys$3(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; }
|
|
20106
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20029
20107
|
var EmbedComponent = function EmbedComponent(_ref) {
|
|
20030
20108
|
var node = _ref.node,
|
|
20031
20109
|
editor = _ref.editor,
|
|
@@ -20050,7 +20128,7 @@ var EmbedComponent = function EmbedComponent(_ref) {
|
|
|
20050
20128
|
})));
|
|
20051
20129
|
editor.commands.focus();
|
|
20052
20130
|
};
|
|
20053
|
-
return /*#__PURE__*/jsxRuntime.jsx(Menu$
|
|
20131
|
+
return /*#__PURE__*/jsxRuntime.jsx(Menu$4.NodeViewWrapper, {
|
|
20054
20132
|
className: "neeto-editor__video-wrapper neeto-editor__video--".concat(align),
|
|
20055
20133
|
"data-cy": "neeto-editor-video-wrapper",
|
|
20056
20134
|
children: /*#__PURE__*/jsxRuntime.jsxs(Resizable, {
|
|
@@ -20061,12 +20139,12 @@ var EmbedComponent = function EmbedComponent(_ref) {
|
|
|
20061
20139
|
width: width
|
|
20062
20140
|
},
|
|
20063
20141
|
onResizeStop: handleResize,
|
|
20064
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Menu$
|
|
20142
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Menu$2, {
|
|
20065
20143
|
align: align,
|
|
20066
20144
|
deleteNode: deleteNode,
|
|
20067
20145
|
editor: editor,
|
|
20068
20146
|
updateAttributes: updateAttributes
|
|
20069
|
-
}), /*#__PURE__*/jsxRuntime.jsx("iframe", _objectSpread$
|
|
20147
|
+
}), /*#__PURE__*/jsxRuntime.jsx("iframe", _objectSpread$3(_objectSpread$3({}, node.attrs), {}, {
|
|
20070
20148
|
allowFullScreen: true
|
|
20071
20149
|
}))]
|
|
20072
20150
|
})
|
|
@@ -20075,8 +20153,8 @@ var EmbedComponent = function EmbedComponent(_ref) {
|
|
|
20075
20153
|
|
|
20076
20154
|
var _excluded$1 = ["node"],
|
|
20077
20155
|
_excluded2 = ["caption"];
|
|
20078
|
-
function ownKeys$
|
|
20079
|
-
function _objectSpread$
|
|
20156
|
+
function ownKeys$2(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; }
|
|
20157
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20080
20158
|
var getSharedAttributes = function getSharedAttributes() {
|
|
20081
20159
|
return {
|
|
20082
20160
|
src: {
|
|
@@ -20160,7 +20238,7 @@ var renderEmbedHTML = function renderEmbedHTML(node, HTMLAttributes, options) {
|
|
|
20160
20238
|
}, ["div", {
|
|
20161
20239
|
"class": "neeto-editor__video-iframe",
|
|
20162
20240
|
style: "width: ".concat(figwidth, "px; height: ").concat(figheight, "px;")
|
|
20163
|
-
}, ["iframe", Menu$
|
|
20241
|
+
}, ["iframe", Menu$4.mergeAttributes(options.HTMLAttributes, _objectSpread$2(_objectSpread$2({}, HTMLAttributes), {}, {
|
|
20164
20242
|
allowfullscreen: true
|
|
20165
20243
|
}))]]];
|
|
20166
20244
|
};
|
|
@@ -20181,9 +20259,9 @@ var renderUploadHTML = function renderUploadHTML(node, HTMLAttributes, options)
|
|
|
20181
20259
|
var captionAttrs = {
|
|
20182
20260
|
style: "width:".concat(vidwidth, "px;")
|
|
20183
20261
|
};
|
|
20184
|
-
return ["div", wrapperDivAttrs, ["figure", Menu$
|
|
20262
|
+
return ["div", wrapperDivAttrs, ["figure", Menu$4.mergeAttributes(options.HTMLAttributes, {
|
|
20185
20263
|
"data-video": ""
|
|
20186
|
-
}), ["a", wrapperLinkAttrs, ["video", Menu$
|
|
20264
|
+
}), ["a", wrapperLinkAttrs, ["video", Menu$4.mergeAttributes(HTMLAttributes, {
|
|
20187
20265
|
preload: "metadata",
|
|
20188
20266
|
controls: true,
|
|
20189
20267
|
draggable: false,
|
|
@@ -20207,7 +20285,7 @@ var handleVideoPaste = function handleVideoPaste(_ref) {
|
|
|
20207
20285
|
state.tr.setSelection(utils.TextSelection.create(state.tr.doc, range.from + node.nodeSize + 1));
|
|
20208
20286
|
}
|
|
20209
20287
|
};
|
|
20210
|
-
var UnifiedVideoExtension = Menu$
|
|
20288
|
+
var UnifiedVideoExtension = Menu$4.Node.create({
|
|
20211
20289
|
name: "unified-video",
|
|
20212
20290
|
addOptions: function addOptions() {
|
|
20213
20291
|
return {
|
|
@@ -20219,7 +20297,7 @@ var UnifiedVideoExtension = Menu$3.Node.create({
|
|
|
20219
20297
|
draggable: true,
|
|
20220
20298
|
isolating: true,
|
|
20221
20299
|
addAttributes: function addAttributes() {
|
|
20222
|
-
return _objectSpread$
|
|
20300
|
+
return _objectSpread$2(_objectSpread$2(_objectSpread$2({}, getSharedAttributes()), getUploadAttributes()), getEmbedAttributes());
|
|
20223
20301
|
},
|
|
20224
20302
|
parseHTML: function parseHTML() {
|
|
20225
20303
|
return [{
|
|
@@ -20241,13 +20319,13 @@ var UnifiedVideoExtension = Menu$3.Node.create({
|
|
|
20241
20319
|
return videoType === "embed" ? renderEmbedHTML(node, HTMLAttributes, this.options) : renderUploadHTML(node, HTMLAttributes, this.options);
|
|
20242
20320
|
},
|
|
20243
20321
|
addNodeView: function addNodeView() {
|
|
20244
|
-
return Menu$
|
|
20322
|
+
return Menu$4.ReactNodeViewRenderer(function (_ref3) {
|
|
20245
20323
|
var node = _ref3.node,
|
|
20246
20324
|
props = _objectWithoutProperties(_ref3, _excluded$1);
|
|
20247
20325
|
var videoType = node.attrs.videoType;
|
|
20248
|
-
return videoType === "embed" ? /*#__PURE__*/jsxRuntime.jsx(EmbedComponent, _objectSpread$
|
|
20326
|
+
return videoType === "embed" ? /*#__PURE__*/jsxRuntime.jsx(EmbedComponent, _objectSpread$2({}, _objectSpread$2(_objectSpread$2({}, props), {}, {
|
|
20249
20327
|
node: node
|
|
20250
|
-
}))) : /*#__PURE__*/jsxRuntime.jsx(VideoComponent, _objectSpread$
|
|
20328
|
+
}))) : /*#__PURE__*/jsxRuntime.jsx(VideoComponent, _objectSpread$2({}, _objectSpread$2(_objectSpread$2({}, props), {}, {
|
|
20251
20329
|
node: node
|
|
20252
20330
|
})));
|
|
20253
20331
|
});
|
|
@@ -20262,7 +20340,7 @@ var UnifiedVideoExtension = Menu$3.Node.create({
|
|
|
20262
20340
|
var chain = _ref5.chain;
|
|
20263
20341
|
return chain().insertContent({
|
|
20264
20342
|
type: _this.name,
|
|
20265
|
-
attrs: _objectSpread$
|
|
20343
|
+
attrs: _objectSpread$2(_objectSpread$2({}, attrs), {}, {
|
|
20266
20344
|
videoType: "upload"
|
|
20267
20345
|
}),
|
|
20268
20346
|
content: caption ? [{
|
|
@@ -20284,7 +20362,7 @@ var UnifiedVideoExtension = Menu$3.Node.create({
|
|
|
20284
20362
|
var commands = _ref7.commands;
|
|
20285
20363
|
return commands.insertContent({
|
|
20286
20364
|
type: _this.name,
|
|
20287
|
-
attrs: _objectSpread$
|
|
20365
|
+
attrs: _objectSpread$2(_objectSpread$2({}, options), {}, {
|
|
20288
20366
|
videoType: "embed"
|
|
20289
20367
|
})
|
|
20290
20368
|
});
|
|
@@ -20293,7 +20371,7 @@ var UnifiedVideoExtension = Menu$3.Node.create({
|
|
|
20293
20371
|
};
|
|
20294
20372
|
},
|
|
20295
20373
|
addPasteRules: function addPasteRules() {
|
|
20296
|
-
return [new Menu$
|
|
20374
|
+
return [new Menu$4.PasteRule({
|
|
20297
20375
|
find: constants.COMBINED_REGEX,
|
|
20298
20376
|
handler: handleVideoPaste
|
|
20299
20377
|
})];
|
|
@@ -20413,6 +20491,8 @@ var useCustomExtensions = function useCustomExtensions(_ref) {
|
|
|
20413
20491
|
return customExtensions;
|
|
20414
20492
|
};
|
|
20415
20493
|
|
|
20494
|
+
function ownKeys$1(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; }
|
|
20495
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20416
20496
|
var shouldShowMergeCellToggler = function shouldShowMergeCellToggler(selection) {
|
|
20417
20497
|
if (neetoCist.isNotPresent(selection)) return false;
|
|
20418
20498
|
if (selection instanceof CellSelection) return true;
|
|
@@ -20431,10 +20511,57 @@ var shouldShowMergeCellToggler = function shouldShowMergeCellToggler(selection)
|
|
|
20431
20511
|
}
|
|
20432
20512
|
return false;
|
|
20433
20513
|
};
|
|
20514
|
+
var setTableAlignment = function setTableAlignment(editor, alignment) {
|
|
20515
|
+
var state = editor.state,
|
|
20516
|
+
view = editor.view;
|
|
20517
|
+
var selection = state.selection;
|
|
20518
|
+
var tableNode = null;
|
|
20519
|
+
var tablePos = null;
|
|
20520
|
+
state.doc.descendants(function (node, pos) {
|
|
20521
|
+
if (node.type.name === "table" && pos <= selection.from && selection.from <= pos + node.nodeSize) {
|
|
20522
|
+
tableNode = node;
|
|
20523
|
+
tablePos = pos;
|
|
20524
|
+
return false;
|
|
20525
|
+
}
|
|
20526
|
+
return true;
|
|
20527
|
+
});
|
|
20528
|
+
if (tableNode && tablePos !== null) {
|
|
20529
|
+
var _tableNode;
|
|
20530
|
+
var tr = state.tr;
|
|
20531
|
+
var currentAttrs = ((_tableNode = tableNode) === null || _tableNode === void 0 ? void 0 : _tableNode.attrs) || {};
|
|
20532
|
+
var newAttrs = _objectSpread$1(_objectSpread$1({}, currentAttrs), {}, {
|
|
20533
|
+
textAlign: alignment
|
|
20534
|
+
});
|
|
20535
|
+
tr.setNodeMarkup(tablePos, null, newAttrs);
|
|
20536
|
+
view.dispatch(tr);
|
|
20537
|
+
}
|
|
20538
|
+
};
|
|
20434
20539
|
var tableActions = function tableActions(_ref) {
|
|
20435
20540
|
var _editor$state;
|
|
20436
20541
|
var editor = _ref.editor;
|
|
20437
20542
|
return [{
|
|
20543
|
+
type: "dropdown",
|
|
20544
|
+
label: i18n.t("neetoEditor.table.textAlign"),
|
|
20545
|
+
items: [{
|
|
20546
|
+
type: "left",
|
|
20547
|
+
command: function command() {
|
|
20548
|
+
return setTableAlignment(editor, "left");
|
|
20549
|
+
},
|
|
20550
|
+
tooltipLabel: i18n.t("neetoEditor.table.leftAlign")
|
|
20551
|
+
}, {
|
|
20552
|
+
type: "center",
|
|
20553
|
+
command: function command() {
|
|
20554
|
+
return setTableAlignment(editor, "center");
|
|
20555
|
+
},
|
|
20556
|
+
tooltipLabel: i18n.t("neetoEditor.table.centerAlign")
|
|
20557
|
+
}, {
|
|
20558
|
+
type: "right",
|
|
20559
|
+
command: function command() {
|
|
20560
|
+
return setTableAlignment(editor, "right");
|
|
20561
|
+
},
|
|
20562
|
+
tooltipLabel: i18n.t("neetoEditor.table.rightAlign")
|
|
20563
|
+
}]
|
|
20564
|
+
}, {
|
|
20438
20565
|
label: i18n.t("neetoEditor.table.insertRow"),
|
|
20439
20566
|
command: function command() {
|
|
20440
20567
|
return editor.commands.addRowAfter();
|
|
@@ -20481,6 +20608,13 @@ var tableActions = function tableActions(_ref) {
|
|
|
20481
20608
|
}];
|
|
20482
20609
|
};
|
|
20483
20610
|
|
|
20611
|
+
var Menu = Dropdown.Menu,
|
|
20612
|
+
MenuItem = Dropdown.MenuItem;
|
|
20613
|
+
var alignmentIcons = {
|
|
20614
|
+
left: LeftAlign,
|
|
20615
|
+
center: CenterAlign,
|
|
20616
|
+
right: RightAlign
|
|
20617
|
+
};
|
|
20484
20618
|
var TableActionMenu = function TableActionMenu(_ref) {
|
|
20485
20619
|
var editor = _ref.editor;
|
|
20486
20620
|
var getReferenceClientRect = React.useCallback(function () {
|
|
@@ -20493,10 +20627,10 @@ var TableActionMenu = function TableActionMenu(_ref) {
|
|
|
20493
20627
|
return (element === null || element === void 0 ? void 0 : element.getBoundingClientRect()) || new DOMRect(0, 0, 0, 0);
|
|
20494
20628
|
}, [editor]);
|
|
20495
20629
|
var shouldShow = React.useCallback(function () {
|
|
20496
|
-
return editor === null || editor === void 0 ? void 0 : editor.isActive("table");
|
|
20630
|
+
return (editor === null || editor === void 0 ? void 0 : editor.isFocused) && (editor === null || editor === void 0 ? void 0 : editor.isActive("table"));
|
|
20497
20631
|
}, [editor]);
|
|
20498
20632
|
if (!editor) return null;
|
|
20499
|
-
return /*#__PURE__*/jsxRuntime.jsx(Menu$
|
|
20633
|
+
return /*#__PURE__*/jsxRuntime.jsx(Menu$4.BubbleMenu, {
|
|
20500
20634
|
editor: editor,
|
|
20501
20635
|
shouldShow: shouldShow,
|
|
20502
20636
|
className: "neeto-editor-bubble-menu",
|
|
@@ -20515,27 +20649,69 @@ var TableActionMenu = function TableActionMenu(_ref) {
|
|
|
20515
20649
|
plugins: [tippy.sticky],
|
|
20516
20650
|
sticky: "popper"
|
|
20517
20651
|
},
|
|
20518
|
-
children:
|
|
20652
|
+
children: tableActions({
|
|
20519
20653
|
editor: editor
|
|
20520
|
-
}).map(function (
|
|
20521
|
-
|
|
20522
|
-
|
|
20523
|
-
|
|
20524
|
-
|
|
20525
|
-
|
|
20526
|
-
|
|
20654
|
+
}).map(function (action) {
|
|
20655
|
+
if (action.isHidden) return null;
|
|
20656
|
+
if (action.type) {
|
|
20657
|
+
var _action$items;
|
|
20658
|
+
return /*#__PURE__*/jsxRuntime.jsx(Dropdown, {
|
|
20659
|
+
appendTo: function appendTo() {
|
|
20660
|
+
return document.body;
|
|
20661
|
+
},
|
|
20662
|
+
closeOnSelect: false,
|
|
20663
|
+
position: "bottom-start",
|
|
20664
|
+
strategy: "fixed",
|
|
20665
|
+
buttonProps: {
|
|
20666
|
+
className: "neeto-editor-table-bubble-menu__item neeto-ui-ml-2",
|
|
20667
|
+
icon: Down,
|
|
20668
|
+
iconPosition: "right",
|
|
20669
|
+
iconSize: 16,
|
|
20670
|
+
label: /*#__PURE__*/jsxRuntime.jsx(LeftAlign, {}),
|
|
20671
|
+
size: "small",
|
|
20672
|
+
style: "text",
|
|
20673
|
+
tooltipProps: {
|
|
20674
|
+
content: action.label,
|
|
20675
|
+
position: "top",
|
|
20676
|
+
delay: [500]
|
|
20677
|
+
}
|
|
20678
|
+
},
|
|
20679
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Menu, {
|
|
20680
|
+
className: "neeto-ui-gap-1 flex items-center justify-center",
|
|
20681
|
+
children: (_action$items = action.items) === null || _action$items === void 0 ? void 0 : _action$items.map(function (_ref3) {
|
|
20682
|
+
var type = _ref3.type,
|
|
20683
|
+
command = _ref3.command,
|
|
20684
|
+
tooltipLabel = _ref3.tooltipLabel;
|
|
20685
|
+
var IconComponent = alignmentIcons[type];
|
|
20686
|
+
return /*#__PURE__*/jsxRuntime.jsx(MenuItem, {
|
|
20687
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
20688
|
+
icon: IconComponent,
|
|
20689
|
+
style: "text",
|
|
20690
|
+
tooltipProps: {
|
|
20691
|
+
content: tooltipLabel,
|
|
20692
|
+
position: "bottom",
|
|
20693
|
+
delay: [500]
|
|
20694
|
+
},
|
|
20695
|
+
onClick: command
|
|
20696
|
+
})
|
|
20697
|
+
}, type);
|
|
20698
|
+
})
|
|
20699
|
+
})
|
|
20700
|
+
}, action.label);
|
|
20701
|
+
}
|
|
20702
|
+
return /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
20527
20703
|
className: "neeto-editor-table-bubble-menu__item",
|
|
20704
|
+
icon: action.icon,
|
|
20528
20705
|
iconSize: 18,
|
|
20529
|
-
key: label,
|
|
20530
20706
|
size: "small",
|
|
20531
20707
|
style: "text",
|
|
20532
20708
|
tooltipProps: {
|
|
20533
|
-
content: label,
|
|
20709
|
+
content: action.label,
|
|
20534
20710
|
position: "top",
|
|
20535
20711
|
delay: [500]
|
|
20536
20712
|
},
|
|
20537
|
-
onClick: command
|
|
20538
|
-
});
|
|
20713
|
+
onClick: action.command
|
|
20714
|
+
}, action.label);
|
|
20539
20715
|
})
|
|
20540
20716
|
});
|
|
20541
20717
|
};
|
|
@@ -20575,7 +20751,7 @@ var LinkPopOver = function LinkPopOver(_ref) {
|
|
|
20575
20751
|
var linkAttributes = editor === null || editor === void 0 ? void 0 : editor.getAttributes("link");
|
|
20576
20752
|
var updatePopoverPosition = function updatePopoverPosition() {
|
|
20577
20753
|
if (!view) return;
|
|
20578
|
-
var _getLinkPopoverPositi = Menu$
|
|
20754
|
+
var _getLinkPopoverPositi = Menu$4.getLinkPopoverPosition(editor, popoverRef),
|
|
20579
20755
|
arrowPosition = _getLinkPopoverPositi.arrowPosition,
|
|
20580
20756
|
popoverPosition = _getLinkPopoverPositi.popoverPosition;
|
|
20581
20757
|
setPopoverPosition(popoverPosition);
|
|
@@ -20611,9 +20787,9 @@ var LinkPopOver = function LinkPopOver(_ref) {
|
|
|
20611
20787
|
var _editor$view = editor.view,
|
|
20612
20788
|
state = _editor$view.state,
|
|
20613
20789
|
dispatch = _editor$view.dispatch;
|
|
20614
|
-
var type = Menu$
|
|
20790
|
+
var type = Menu$4.getMarkType("link", state.schema);
|
|
20615
20791
|
var $to = state.selection.$to;
|
|
20616
|
-
var _ref4 = Menu$
|
|
20792
|
+
var _ref4 = Menu$4.getMarkRange($to, type) || {},
|
|
20617
20793
|
_ref4$from = _ref4.from,
|
|
20618
20794
|
from = _ref4$from === void 0 ? null : _ref4$from,
|
|
20619
20795
|
_ref4$to = _ref4.to,
|
|
@@ -20922,7 +21098,7 @@ var Editor = function Editor(_ref, ref) {
|
|
|
20922
21098
|
"aria-required": required,
|
|
20923
21099
|
"aria-roledescription": "editor"
|
|
20924
21100
|
};
|
|
20925
|
-
var editor = Menu$
|
|
21101
|
+
var editor = Menu$4.useEditor({
|
|
20926
21102
|
extensions: customExtensions,
|
|
20927
21103
|
content: initialValue,
|
|
20928
21104
|
injectCSS: false,
|
|
@@ -20951,7 +21127,7 @@ var Editor = function Editor(_ref, ref) {
|
|
|
20951
21127
|
onFocus: onFocus,
|
|
20952
21128
|
onBlur: handleBlur
|
|
20953
21129
|
});
|
|
20954
|
-
Menu$
|
|
21130
|
+
Menu$4.useEditorState({
|
|
20955
21131
|
editor: editor,
|
|
20956
21132
|
selector: function selector() {
|
|
20957
21133
|
return {
|
|
@@ -20973,7 +21149,7 @@ var Editor = function Editor(_ref, ref) {
|
|
|
20973
21149
|
}, [editor]);
|
|
20974
21150
|
|
|
20975
21151
|
// https://github.com/ueberdosis/tiptap/issues/1451#issuecomment-953348865
|
|
20976
|
-
Menu$
|
|
21152
|
+
Menu$4.EditorView.prototype.updateState = function updateState(state) {
|
|
20977
21153
|
if (!this.docView) return;
|
|
20978
21154
|
this.updateStateInner(state, this.state.plugins !== state.plugins);
|
|
20979
21155
|
};
|
|
@@ -20989,7 +21165,7 @@ var Editor = function Editor(_ref, ref) {
|
|
|
20989
21165
|
error: error,
|
|
20990
21166
|
className: errorWrapperClassName,
|
|
20991
21167
|
children: /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
20992
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Menu$
|
|
21168
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Menu$4.Menu, {
|
|
20993
21169
|
addonCommands: addonCommands,
|
|
20994
21170
|
addons: addons,
|
|
20995
21171
|
attachmentProps: attachmentProps,
|
|
@@ -21003,11 +21179,11 @@ var Editor = function Editor(_ref, ref) {
|
|
|
21003
21179
|
variables: variables,
|
|
21004
21180
|
className: menuClassName,
|
|
21005
21181
|
isIndependant: isMenuIndependent
|
|
21006
|
-
}), children, /*#__PURE__*/jsxRuntime.jsx(Menu$
|
|
21182
|
+
}), children, /*#__PURE__*/jsxRuntime.jsx(Menu$4.EditorContent, _objectSpread({
|
|
21007
21183
|
className: contentWrapperClassName
|
|
21008
21184
|
}, _objectSpread({
|
|
21009
21185
|
editor: editor
|
|
21010
|
-
}, otherProps))), isMediaUploaderActive && /*#__PURE__*/jsxRuntime.jsx(Menu$
|
|
21186
|
+
}, otherProps))), isMediaUploaderActive && /*#__PURE__*/jsxRuntime.jsx(Menu$4.MediaUploader, {
|
|
21011
21187
|
editor: editor,
|
|
21012
21188
|
mediaUploader: mediaUploader,
|
|
21013
21189
|
onClose: function onClose() {
|
|
@@ -21027,7 +21203,7 @@ var Editor = function Editor(_ref, ref) {
|
|
|
21027
21203
|
onChange: onChangeAttachments
|
|
21028
21204
|
}, otherAttachmentProps)), (editor === null || editor === void 0 ? void 0 : editor.isActive("link")) && /*#__PURE__*/jsxRuntime.jsx(LinkPopOver, {
|
|
21029
21205
|
editor: editor
|
|
21030
|
-
}), isAddLinkActive && /*#__PURE__*/jsxRuntime.jsx(Menu$
|
|
21206
|
+
}), isAddLinkActive && /*#__PURE__*/jsxRuntime.jsx(Menu$4.LinkAddPopOver, {
|
|
21031
21207
|
editor: editor,
|
|
21032
21208
|
isAddLinkActive: isAddLinkActive,
|
|
21033
21209
|
openLinkInNewTab: openLinkInNewTab,
|