@bigbinary/neeto-editor 1.47.105 → 1.47.106

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/package.json +8 -8
  2. package/dist/Attachments.js +0 -52
  3. package/dist/Attachments.js.map +0 -1
  4. package/dist/Editor.js +0 -22377
  5. package/dist/Editor.js.map +0 -1
  6. package/dist/EditorContent.js +0 -250
  7. package/dist/EditorContent.js.map +0 -1
  8. package/dist/FormikEditor.js +0 -199
  9. package/dist/FormikEditor.js.map +0 -1
  10. package/dist/Menu.js +0 -106
  11. package/dist/Menu.js.map +0 -1
  12. package/dist/chunk-2Y0OJ9hf.js +0 -12640
  13. package/dist/chunk-2Y0OJ9hf.js.map +0 -1
  14. package/dist/chunk-B7tHOpir.js +0 -6725
  15. package/dist/chunk-B7tHOpir.js.map +0 -1
  16. package/dist/chunk-BtgLcjAt.js +0 -16238
  17. package/dist/chunk-BtgLcjAt.js.map +0 -1
  18. package/dist/chunk-CU3LdVPN.js +0 -18953
  19. package/dist/chunk-CU3LdVPN.js.map +0 -1
  20. package/dist/chunk-DNMH2cJJ.js +0 -84
  21. package/dist/chunk-DNMH2cJJ.js.map +0 -1
  22. package/dist/chunk-DP3L767h.js +0 -8588
  23. package/dist/chunk-DP3L767h.js.map +0 -1
  24. package/dist/chunk-DmrvuTKK.js +0 -4
  25. package/dist/chunk-DmrvuTKK.js.map +0 -1
  26. package/dist/chunk-DxGDZoUl.js +0 -19
  27. package/dist/chunk-DxGDZoUl.js.map +0 -1
  28. package/dist/chunk-E-ZsRS8r.js +0 -33
  29. package/dist/chunk-E-ZsRS8r.js.map +0 -1
  30. package/dist/chunk-nYgNTOBs.js +0 -571
  31. package/dist/chunk-nYgNTOBs.js.map +0 -1
  32. package/dist/chunk-xmTFld61.js +0 -69027
  33. package/dist/chunk-xmTFld61.js.map +0 -1
  34. package/dist/cjs/Attachments.cjs.js +0 -58
  35. package/dist/cjs/Attachments.cjs.js.map +0 -1
  36. package/dist/cjs/Editor.cjs.js +0 -22474
  37. package/dist/cjs/Editor.cjs.js.map +0 -1
  38. package/dist/cjs/EditorContent.cjs.js +0 -264
  39. package/dist/cjs/EditorContent.cjs.js.map +0 -1
  40. package/dist/cjs/FormikEditor.cjs.js +0 -206
  41. package/dist/cjs/FormikEditor.cjs.js.map +0 -1
  42. package/dist/cjs/Menu.cjs.js +0 -112
  43. package/dist/cjs/Menu.cjs.js.map +0 -1
  44. package/dist/cjs/chunk-2HrSPdAV.cjs.js +0 -92
  45. package/dist/cjs/chunk-2HrSPdAV.cjs.js.map +0 -1
  46. package/dist/cjs/chunk-AgahZtc5.cjs.js +0 -16258
  47. package/dist/cjs/chunk-AgahZtc5.cjs.js.map +0 -1
  48. package/dist/cjs/chunk-B83fTs8d.cjs.js +0 -37
  49. package/dist/cjs/chunk-B83fTs8d.cjs.js.map +0 -1
  50. package/dist/cjs/chunk-BGy3NmZC.cjs.js +0 -49
  51. package/dist/cjs/chunk-BGy3NmZC.cjs.js.map +0 -1
  52. package/dist/cjs/chunk-C3rn62sV.cjs.js +0 -19082
  53. package/dist/cjs/chunk-C3rn62sV.cjs.js.map +0 -1
  54. package/dist/cjs/chunk-CLeV8Bxb.cjs.js +0 -6766
  55. package/dist/cjs/chunk-CLeV8Bxb.cjs.js.map +0 -1
  56. package/dist/cjs/chunk-COT7CF-z.cjs.js +0 -8652
  57. package/dist/cjs/chunk-COT7CF-z.cjs.js.map +0 -1
  58. package/dist/cjs/chunk-CYI1JJPG.cjs.js +0 -12645
  59. package/dist/cjs/chunk-CYI1JJPG.cjs.js.map +0 -1
  60. package/dist/cjs/chunk-CrSw8VHc.cjs.js +0 -69056
  61. package/dist/cjs/chunk-CrSw8VHc.cjs.js.map +0 -1
  62. package/dist/cjs/chunk-DYSZxrWZ.cjs.js +0 -597
  63. package/dist/cjs/chunk-DYSZxrWZ.cjs.js.map +0 -1
  64. package/dist/cjs/chunk-vQvjPR2x.cjs.js +0 -6
  65. package/dist/cjs/chunk-vQvjPR2x.cjs.js.map +0 -1
  66. package/dist/cjs/constants.cjs.js +0 -13
  67. package/dist/cjs/constants.cjs.js.map +0 -1
  68. package/dist/cjs/index.cjs.js +0 -159
  69. package/dist/cjs/index.cjs.js.map +0 -1
  70. package/dist/cjs/utils.cjs.js +0 -27
  71. package/dist/cjs/utils.cjs.js.map +0 -1
  72. package/dist/codeblockHighlight.js +0 -15155
  73. package/dist/codeblockHighlight.js.map +0 -1
  74. package/dist/constants.js +0 -6
  75. package/dist/constants.js.map +0 -1
  76. package/dist/editor-content.min.css +0 -1
  77. package/dist/editor-output-pdf-email.css +0 -1
  78. package/dist/editor-output-pdf-email.js +0 -4
  79. package/dist/editor-output-pdf-email.js.map +0 -1
  80. package/dist/editor-output.js +0 -4
  81. package/dist/editor-output.js.map +0 -1
  82. package/dist/editor-stats.html +0 -4842
  83. package/dist/editorUtils.js +0 -170
  84. package/dist/headerLinks.js +0 -59
  85. package/dist/headerLinks.js.map +0 -1
  86. package/dist/index.js +0 -142
  87. package/dist/index.js.map +0 -1
  88. package/dist/utils.js +0 -15
  89. package/dist/utils.js.map +0 -1
@@ -1,264 +0,0 @@
1
- 'use strict';
2
-
3
- var _defineProperty = require('@babel/runtime/helpers/defineProperty');
4
- var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
5
- var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
6
- var React = require('react');
7
- var classnames = require('classnames');
8
- var DOMPurify = require('dompurify');
9
- var CopyToClipboardButton = require('@bigbinary/neeto-molecules/CopyToClipboardButton');
10
- var ramda = require('ramda');
11
- var client = require('react-dom/client');
12
- var constants = require('./chunk-2HrSPdAV.cjs.js');
13
- var injectCss = require('./chunk-vQvjPR2x.cjs.js');
14
- require('@bigbinary/neeto-cist');
15
- require('./chunk-BGy3NmZC.cjs.js');
16
- var index$1 = require('./chunk-CYI1JJPG.cjs.js');
17
- var common = require('./chunk-AgahZtc5.cjs.js');
18
- var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
19
- var Close = require('@bigbinary/neeto-icons/Close');
20
- var Button = require('@bigbinary/neetoui/Button');
21
- var Spinner = require('@bigbinary/neetoui/Spinner');
22
- var ReactDOM = require('react-dom');
23
- var reactI18next = require('react-i18next');
24
- var jsxRuntime = require('react/jsx-runtime');
25
- require('i18next');
26
- require('yup');
27
- require('./chunk-B83fTs8d.cjs.js');
28
- require('react-dom/server');
29
- require('@babel/runtime/helpers/toConsumableArray');
30
-
31
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
32
-
33
- var _defineProperty__default = /*#__PURE__*/_interopDefault(_defineProperty);
34
- var _slicedToArray__default = /*#__PURE__*/_interopDefault(_slicedToArray);
35
- var _objectWithoutProperties__default = /*#__PURE__*/_interopDefault(_objectWithoutProperties);
36
- var classnames__default = /*#__PURE__*/_interopDefault(classnames);
37
- var DOMPurify__default = /*#__PURE__*/_interopDefault(DOMPurify);
38
- var CopyToClipboardButton__default = /*#__PURE__*/_interopDefault(CopyToClipboardButton);
39
- var Close__default = /*#__PURE__*/_interopDefault(Close);
40
- var Button__default = /*#__PURE__*/_interopDefault(Button);
41
- var Spinner__default = /*#__PURE__*/_interopDefault(Spinner);
42
-
43
- var css = "@charset \"UTF-8\";.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{margin-top:0}.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-block:6px;padding-inline:8px;text-align:start;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-inline-end: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 ul[data-type=todoList],.neeto-editor-content ul[data-type=todoList]{list-style:none;margin-inline-start:0;padding:0}.ProseMirror 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-content ul[data-type=todoList] li>label{flex:0 0 auto;margin-inline-end:.5rem;pointer-events:none;-moz-user-select:none;user-select:none;z-index:1}.ProseMirror 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-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-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-content ul[data-type=todoList] ul[data-type=todoList]{margin:0}.ProseMirror 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}.neeto-ui-theme--dark .hljs{background:#fafafa;color:#383a42}.neeto-ui-theme--dark .hljs-comment,.neeto-ui-theme--dark .hljs-quote{color:#a0a1a7;font-style:italic}.neeto-ui-theme--dark .hljs-doctag,.neeto-ui-theme--dark .hljs-formula,.neeto-ui-theme--dark .hljs-keyword{color:#a626a4}.neeto-ui-theme--dark .hljs-deletion,.neeto-ui-theme--dark .hljs-name,.neeto-ui-theme--dark .hljs-section,.neeto-ui-theme--dark .hljs-selector-tag,.neeto-ui-theme--dark .hljs-subst{color:#e45649}.neeto-ui-theme--dark .hljs-literal{color:#0184bb}.neeto-ui-theme--dark .hljs-addition,.neeto-ui-theme--dark .hljs-attribute,.neeto-ui-theme--dark .hljs-meta .hljs-string,.neeto-ui-theme--dark .hljs-regexp,.neeto-ui-theme--dark .hljs-string{color:#50a14f}.neeto-ui-theme--dark .hljs-attr,.neeto-ui-theme--dark .hljs-number,.neeto-ui-theme--dark .hljs-selector-attr,.neeto-ui-theme--dark .hljs-selector-class,.neeto-ui-theme--dark .hljs-selector-pseudo,.neeto-ui-theme--dark .hljs-template-variable,.neeto-ui-theme--dark .hljs-type,.neeto-ui-theme--dark .hljs-variable{color:#986801}.neeto-ui-theme--dark .hljs-bullet,.neeto-ui-theme--dark .hljs-link,.neeto-ui-theme--dark .hljs-meta,.neeto-ui-theme--dark .hljs-selector-id,.neeto-ui-theme--dark .hljs-symbol,.neeto-ui-theme--dark .hljs-title{color:#4078f2}.neeto-ui-theme--dark .hljs-built_in,.neeto-ui-theme--dark .hljs-class .hljs-title,.neeto-ui-theme--dark .hljs-title.class_{color:#c18401}.neeto-ui-theme--dark .hljs-emphasis{font-style:italic}.neeto-ui-theme--dark .hljs-strong{font-weight:700}.neeto-ui-theme--dark .hljs-link{text-decoration:underline}.neeto-ui-theme--light .hljs{background:#282c34;color:#abb2bf}.neeto-ui-theme--light .hljs-comment,.neeto-ui-theme--light .hljs-quote{color:#5c6370;font-style:italic}.neeto-ui-theme--light .hljs-doctag,.neeto-ui-theme--light .hljs-formula,.neeto-ui-theme--light .hljs-keyword{color:#c678dd}.neeto-ui-theme--light .hljs-deletion,.neeto-ui-theme--light .hljs-name,.neeto-ui-theme--light .hljs-section,.neeto-ui-theme--light .hljs-selector-tag,.neeto-ui-theme--light .hljs-subst{color:#e06c75}.neeto-ui-theme--light .hljs-literal{color:#56b6c2}.neeto-ui-theme--light .hljs-addition,.neeto-ui-theme--light .hljs-attribute,.neeto-ui-theme--light .hljs-meta .hljs-string,.neeto-ui-theme--light .hljs-regexp,.neeto-ui-theme--light .hljs-string{color:#98c379}.neeto-ui-theme--light .hljs-attr,.neeto-ui-theme--light .hljs-number,.neeto-ui-theme--light .hljs-selector-attr,.neeto-ui-theme--light .hljs-selector-class,.neeto-ui-theme--light .hljs-selector-pseudo,.neeto-ui-theme--light .hljs-template-variable,.neeto-ui-theme--light .hljs-type,.neeto-ui-theme--light .hljs-variable{color:#d19a66}.neeto-ui-theme--light .hljs-bullet,.neeto-ui-theme--light .hljs-link,.neeto-ui-theme--light .hljs-meta,.neeto-ui-theme--light .hljs-selector-id,.neeto-ui-theme--light .hljs-symbol,.neeto-ui-theme--light .hljs-title{color:#61aeee}.neeto-ui-theme--light .hljs-built_in,.neeto-ui-theme--light .hljs-class .hljs-title,.neeto-ui-theme--light .hljs-title.class_{color:#e6c07b}.neeto-ui-theme--light .hljs-emphasis{font-style:italic}.neeto-ui-theme--light .hljs-strong{font-weight:700}.neeto-ui-theme--light .hljs-link{text-decoration:underline}.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-paragraph-margin-bottom:0.5rem;--neeto-editor-content-list-padding-inline-start: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:40,44,52,1;--neeto-editor-content-code-line-number-color:89,99,110,1;--neeto-editor-content-code-color:171,178,191,1;--neeto-editor-content-inline-code-color:31,35,40,1;--neeto-editor-content-inline-code-background-color:239,242,246,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-inline-start-width:4px;--neeto-editor-content-blockquote-margin-bottom:1rem;--neeto-editor-content-blockquote-padding-inline-start: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-text-11:#6364dc;--neeto-editor-highlight-text-12:#d99641;--neeto-editor-highlight-text-13:#5a8cd7;--neeto-editor-highlight-text-14:#48a869;--neeto-editor-highlight-text-15:#dc3232;--neeto-editor-highlight-text-16:#af50dc;--neeto-editor-highlight-bg-1:#ff0;--neeto-editor-highlight-bg-2:#e3e3de;--neeto-editor-highlight-bg-3:#dfcece;--neeto-editor-highlight-bg-4:#f9e0c8;--neeto-editor-highlight-bg-5:#f7e7b6;--neeto-editor-highlight-bg-6:#d0e0cd;--neeto-editor-highlight-bg-7:#c0dfec;--neeto-editor-highlight-bg-8:#e3cef3;--neeto-editor-highlight-bg-9:#f4cdde;--neeto-editor-highlight-bg-10:#f9c7ca;--neeto-editor-highlight-bg-11:#b69cff;--neeto-editor-highlight-bg-12:#d9730d;--neeto-editor-highlight-bg-13:#4a85e8;--neeto-editor-highlight-bg-14:#00ff01;--neeto-editor-highlight-bg-15:red;--neeto-editor-highlight-bg-16:#f0f}.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: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-inline-code-color:212,223,243,1;--neeto-editor-content-inline-code-background-color:67,73,84,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-text-11:#9b9cff;--neeto-editor-highlight-text-12:#f5b464;--neeto-editor-highlight-text-13:#78aaf5;--neeto-editor-highlight-text-14:#64c887;--neeto-editor-highlight-text-15:#fa6e6e;--neeto-editor-highlight-text-16:#dc82ff;--neeto-editor-highlight-bg-1:#646400;--neeto-editor-highlight-bg-2:#41413c;--neeto-editor-highlight-bg-3:#413737;--neeto-editor-highlight-bg-4:#504130;--neeto-editor-highlight-bg-5:#554e2d;--neeto-editor-highlight-bg-6:#2d412a;--neeto-editor-highlight-bg-7:#234452;--neeto-editor-highlight-bg-8:#413055;--neeto-editor-highlight-bg-9:#552d44;--neeto-editor-highlight-bg-10:#553030;--neeto-editor-highlight-bg-11:#32145a;--neeto-editor-highlight-bg-12:#643c0a;--neeto-editor-highlight-bg-13:#193c6e;--neeto-editor-highlight-bg-14:#00500a;--neeto-editor-highlight-bg-15:#6e0f0f;--neeto-editor-highlight-bg-16:#640a64}.neeto-ui-theme--dark .neeto-editor-content.neeto-editor-size--small{--neeto-editor-content-heading-color:224,224,224,1;--neeto-editor-content-paragraph-color:224,224,224,1}.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-editor-content-heading-color:31,35,40,1;--neeto-editor-content-paragraph-color:31,35,40,1}.neeto-editor-content{-moz-tab-size:2;-o-tab-size:2;tab-size:2;white-space:pre-wrap;word-break:break-word}.neeto-editor-content hr{border-color:#363737;border-color:rgba(var(--neeto-editor-content-paragraph-color));margin:.5rem 0;opacity:.2}.neeto-editor-content .table-responsive{-webkit-overflow-scrolling:touch;margin:1rem 0;overflow-x:auto}.neeto-editor-content .table-responsive.neeto-editor-table--left table td,.neeto-editor-content .table-responsive.neeto-editor-table--left table th{text-align:start!important}.neeto-editor-content .table-responsive.neeto-editor-table--center table td,.neeto-editor-content .table-responsive.neeto-editor-table--center table th{text-align:center!important}.neeto-editor-content .table-responsive.neeto-editor-table--right table td,.neeto-editor-content .table-responsive.neeto-editor-table--right table th{text-align:end!important}.neeto-editor-content.neeto-editor-size--small{--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-padding-inline-start: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-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-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-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-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-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-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-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-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-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-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-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-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-content .header-wrapper{position:relative}.neeto-editor-content .header-wrapper__link{position:absolute;top:50%}.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-content .header-wrapper .header-link-icon-wrapper{align-items:center;display:flex;height:100%;inset-inline-start:-1.5625rem;opacity:0;position:absolute;transition:opacity .15s ease-in;width:1.5625rem}.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-content .header-wrapper:hover .header-link-icon-wrapper{opacity:1}.neeto-editor-content .header-wrapper:hover svg{fill:#095aba;fill:rgb(var(--neeto-editor-accent-800))}.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-bottom:.5rem;margin-bottom:var(--neeto-editor-content-paragraph-margin-bottom);margin-top:0;min-height:1.3rem}.neeto-editor-content p:empty:after{content:\" \"}.neeto-editor-content p:empty{line-height:1;margin-bottom:0;min-height:1rem}.neeto-editor-content p:last-child{margin-bottom:0}.neeto-editor-content p strong{font-weight:600!important}.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-content code{background-color:#282c34;background-color:rgba(var(--neeto-editor-content-code-background-color));border-color:#282c34;border-color:rgba(var(--neeto-editor-content-code-background-color));border-radius:3px;border-radius:var(--neeto-editor-rounded-sm);color:#abb2bf;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-content code *{font-size:inherit!important}.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 li code,.neeto-editor-content p code,.neeto-editor-content table td code,.neeto-editor-content table th code{background-color:#eff2f6;background-color:rgba(var(--neeto-editor-content-inline-code-background-color));border-radius:3px;border-radius:var(--neeto-editor-rounded-sm);color:#1f2328;color:rgba(var(--neeto-editor-content-inline-code-color));font-size:85%;font-size:var(--neeto-editor-content-code-font-size)}.neeto-editor-content pre{background-color:#282c34;background-color:rgba(var(--neeto-editor-content-code-background-color));border-color:#282c34;border-color:rgba(var(--neeto-editor-content-code-background-color));border-radius:8px;border-radius:var(--neeto-editor-rounded-lg);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-content pre,.neeto-editor-content pre div{color:#abb2bf;color:rgba(var(--neeto-editor-content-code-color))}.neeto-editor-content pre .neeto-editor-codeblock-options{align-items:center;display:flex;gap:.25rem;inset-inline-end:.25rem;opacity:0;position:absolute;top:.25rem;visibility:hidden}.neeto-editor-content pre .neeto-editor-codeblock-options__menu{display:flex;flex-direction:column;gap:.25rem}.neeto-editor-content pre .neeto-editor-codeblock-options__input{margin:.25rem}.neeto-editor-content pre:hover .neeto-editor-codeblock-options{opacity:1;visibility:visible}.neeto-editor-content pre:hover .copy-button{opacity:1;visibility:visible}.neeto-editor-content pre .copy-button{inset-inline-end:.25rem;opacity:0;position:absolute;top:.25rem;visibility:hidden}.neeto-editor-content pre[data-linenumbers] .highlight-line{padding-inline-start:3.125rem;position:relative}.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%;inset-inline-start:0;justify-content:flex-end;padding-inline-end:1rem;padding-inline-start:.625rem;position:absolute;width:3.125rem}.neeto-editor-content pre[data-linenumbers] .highlight-line:last-child:before{content:\"\"}.neeto-editor-content pre>code{background-color:transparent;border-radius:0;border-radius:8px;border-radius:var(--neeto-editor-rounded-lg);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-content pre[data-linenumbers]>code{padding-inline-start:0}.neeto-editor-content blockquote{border-inline-start-color:#d1d9e0;border-inline-start-color:rgba(var(--neeto-editor-content-blockquote-border-color));border-inline-start-width:4px;border-inline-start-width:var(--neeto-editor-content-blockquote-border-inline-start-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-inline-start:.75rem;padding-inline-start:var(--neeto-editor-content-blockquote-padding-inline-start);quotes:\"“\" \"”\" \"‘\" \"’\"}.neeto-editor-content blockquote div,.neeto-editor-content blockquote p{color:inherit}.neeto-editor-content blockquote>p:before{content:\"\"!important}.neeto-editor-content blockquote>p:after{content:\"\"!important}.neeto-editor-content ol,.neeto-editor-content ul{list-style:revert;margin-bottom:1rem;margin-bottom:var(--neeto-editor-content-list-margin-bottom);padding-inline-start:2rem;padding-inline-start:var(--neeto-editor-content-list-padding-inline-start)}.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-content ol li:before,.neeto-editor-content ul li:before{background-color:#363737;background-color:rgba(var(--neeto-editor-content-paragraph-color))}.neeto-editor-content ol li>p,.neeto-editor-content ul li>p{margin-bottom:.5rem!important;margin-bottom:var(--neeto-editor-content-list-item-margin-bottom)!important;margin-top:.5rem!important;margin-top:var(--neeto-editor-content-list-item-margin-top)!important}.neeto-editor-content ol+p,.neeto-editor-content ul+p{margin-top:.5rem!important;margin-top:var(--neeto-editor-content-list-item-margin-top)!important}.neeto-editor-content a[href]{color:#095aba;color:rgb(var(--neeto-editor-accent-800));font-weight:inherit}.neeto-editor-content .neeto-editor__video-wrapper{display:flex;margin:1rem 0;padding-inline-start:3px}.neeto-editor-content .neeto-editor__video-wrapper.neeto-editor__video--bordered iframe,.neeto-editor-content .neeto-editor__video-wrapper.neeto-editor__video--bordered video{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)}.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-content .neeto-editor__video-wrapper .neeto-editor__video-iframe iframe{aspect-ratio:16/9;width:100%}.neeto-editor-content .neeto-editor__video-wrapper .neeto-editor__video-iframe.neeto-editor-aspect-1-1 iframe{aspect-ratio:1/1;width:100%}.neeto-editor-content .neeto-editor__video-wrapper .neeto-editor__video-iframe.neeto-editor-aspect-16-9 iframe{aspect-ratio:16/9;width:100%}.neeto-editor-content .neeto-editor__video-wrapper .neeto-editor__video-iframe.neeto-editor-aspect-9-16 iframe{aspect-ratio:9/16;width:100%}.neeto-editor-content .neeto-editor__video-wrapper .neeto-editor__video-iframe.neeto-editor-aspect-4-3 iframe{aspect-ratio:4/3;width:100%}.neeto-editor-content .neeto-editor__video-wrapper .neeto-editor__video-iframe.neeto-editor-aspect-3-2 iframe{aspect-ratio:3/2;width:100%}.neeto-editor-content .neeto-editor__video--left{justify-content:flex-start}.neeto-editor-content .neeto-editor__video--right{justify-content:flex-end}.neeto-editor-content .neeto-editor__video--center{justify-content:center}.neeto-editor-content mark{border-radius:3px;border-radius:var(--neeto-editor-rounded-sm);padding:0}.neeto-editor-content [data-type=mention]{color:#095aba;color:rgb(var(--neeto-editor-accent-800))}.neeto-editor-content [data-type=special-mention]{color:#095aba;color:rgb(var(--neeto-editor-accent-800))}.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-content table td,.neeto-editor-content table th{border-inline-start:1px solid #d8dcde;border-inline-start:1px solid rgba(var(--neeto-editor-gray-300));border-top:1px solid #d8dcde;border-top:1px solid rgba(var(--neeto-editor-gray-300));padding-block:8px;padding-inline:12px;position:relative;text-align:start}.neeto-editor-content table td:first-child,.neeto-editor-content table th:first-child{border-inline-start:none}.neeto-editor-content table th{background:#f6f7f8;background:rgb(var(--neeto-editor-gray-100));border-top:none}.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-inline-start:3px;text-decoration:none}.neeto-editor__image-wrapper.neeto-editor__image--bordered img,.neeto-editor__image-wrapper.neeto-editor__image--bordered video{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)}.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{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])),.neeto-editor__image-wrapper:has(video:not([src]):not(:has(source[src]))){display:none}.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-block:2px;padding-inline: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%;inset-inline-start:0;justify-content:center;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;inset-inline-end:12px;justify-content:center;position:absolute;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))}";
44
- injectCss.n(css,{});
45
-
46
- var ImagePreview = function ImagePreview(_ref) {
47
- var imagePreviewDetails = _ref.imagePreviewDetails,
48
- setImagePreviewDetails = _ref.setImagePreviewDetails;
49
- var _useState = React.useState(true),
50
- _useState2 = _slicedToArray__default.default(_useState, 2),
51
- isLoading = _useState2[0],
52
- setIsLoading = _useState2[1];
53
- var _useTranslation = reactI18next.useTranslation(),
54
- t = _useTranslation.t;
55
- var imagePreviewRef = React.useRef(null);
56
- reactUtils.useOnClickOutside(imagePreviewRef, function () {
57
- return setImagePreviewDetails(null);
58
- }, {
59
- enabled: true
60
- });
61
- React.useEffect(function () {
62
- if (!imagePreviewRef.current) return;
63
- imagePreviewRef.current.setAttribute("tabindex", "-1");
64
- imagePreviewRef.current.focus();
65
- }, []);
66
- var handleKeyDown = function handleKeyDown(e) {
67
- e.stopPropagation();
68
- e.key === "Escape" && setImagePreviewDetails(null);
69
- };
70
- return /*#__PURE__*/ReactDOM.createPortal(/*#__PURE__*/jsxRuntime.jsxs("div", {
71
- className: "ne-image-preview-wrapper active",
72
- children: [isLoading && /*#__PURE__*/jsxRuntime.jsx(Spinner__default.default, {
73
- className: "ne-image-preview-wrapper__spinner"
74
- }), !isLoading && /*#__PURE__*/jsxRuntime.jsx("div", {
75
- className: "close-button",
76
- children: /*#__PURE__*/jsxRuntime.jsx(Button__default.default, {
77
- icon: Close__default.default,
78
- style: "secondary",
79
- onClick: function onClick() {
80
- return setImagePreviewDetails(null);
81
- }
82
- })
83
- }), /*#__PURE__*/jsxRuntime.jsxs("div", {
84
- className: classnames__default.default("ne-image-preview", {
85
- "image-loaded": !isLoading
86
- }),
87
- children: [/*#__PURE__*/jsxRuntime.jsx("img", {
88
- alt: t("neetoEditor.editorContent.imagePreviewAltText"),
89
- ref: imagePreviewRef,
90
- src: imagePreviewDetails.src,
91
- onKeyDown: handleKeyDown,
92
- onLoad: function onLoad() {
93
- return setIsLoading(false);
94
- }
95
- }), imagePreviewDetails && /*#__PURE__*/jsxRuntime.jsx("p", {
96
- className: "ne-image-preview__caption",
97
- children: imagePreviewDetails.caption
98
- })]
99
- })]
100
- }), document.body);
101
- };
102
-
103
- var buildLinkSVG = function buildLinkSVG() {
104
- var svgNS = "http://www.w3.org/2000/svg";
105
- var svgWrapper = document.createElement("span");
106
- svgWrapper.classList.add("header-link-icon-wrapper");
107
- var svg = document.createElementNS(svgNS, "svg");
108
- svg.setAttribute("aria-hidden", "true");
109
- svg.setAttribute("height", "20");
110
- svg.setAttribute("viewBox", "0 0 16 16");
111
- svg.setAttribute("width", "20");
112
- var path = document.createElementNS(svgNS, "path");
113
- path.setAttribute("d", "M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z");
114
- svg.appendChild(path);
115
- svgWrapper.appendChild(svg);
116
- return svgWrapper;
117
- };
118
- var convertTextToId = function convertTextToId(text) {
119
- return text.trim().toLowerCase().replace(/[^a-z0-9\s]/g, "").replace(/\s+/g, "-");
120
- };
121
- var buildHeaderLinks = function buildHeaderLinks(editorContentNode) {
122
- var headerTags = editorContentNode.querySelectorAll("h1, h2, h3, h4, h5, h6");
123
- var usedIds = new Map();
124
- headerTags.forEach(function (heading) {
125
- if (heading.getAttribute("data-link") === "false") {
126
- return;
127
- }
128
- var headingId = convertTextToId(heading.textContent);
129
- if (usedIds.has(headingId)) {
130
- var count = usedIds.get(headingId);
131
- usedIds.set(headingId, count + 1);
132
- headingId = "".concat(headingId, "-").concat(count);
133
- } else usedIds.set(headingId, 1);
134
- heading.setAttribute("id", headingId);
135
- var wrapper = document.createElement("div");
136
- var anchor = document.createElement("a");
137
- wrapper.classList.add("header-wrapper");
138
- anchor.setAttribute("href", "#".concat(headingId));
139
- anchor.classList.add("header-wrapper__link");
140
- anchor.appendChild(buildLinkSVG());
141
- wrapper.appendChild(heading.cloneNode(true));
142
- wrapper.appendChild(anchor);
143
- heading.replaceWith(wrapper);
144
- });
145
- };
146
-
147
- var handleTodoCheckboxClick = function handleTodoCheckboxClick(event, editorContentRef, onChange) {
148
- if (!(event.target.type === "checkbox" && event.target.closest('ul[data-type="todoList"] li[data-type="taskItem"]'))) {
149
- return;
150
- }
151
- var checkbox = event.target;
152
- var listItem = checkbox.closest("li");
153
- if (listItem) {
154
- listItem.setAttribute("data-checked", checkbox.checked.toString());
155
- if (checkbox.checked) {
156
- checkbox.setAttribute("checked", "checked");
157
- } else {
158
- checkbox.removeAttribute("checked");
159
- }
160
- onChange === null || onChange === void 0 || onChange(editorContentRef === null || editorContentRef === void 0 ? void 0 : editorContentRef.innerHTML);
161
- }
162
- };
163
- var syncTodoCheckboxStates = function syncTodoCheckboxStates(editorContentRef) {
164
- if (!editorContentRef) return;
165
- var todoItems = editorContentRef.querySelectorAll("ul[data-type=\"todoList\"] li[data-type=\"taskItem\"]");
166
- todoItems.forEach(function (listItem) {
167
- var isChecked = listItem.getAttribute("data-checked") === "true";
168
- var checkbox = listItem.querySelector('input[type="checkbox"]');
169
- if (checkbox) {
170
- checkbox.checked = isChecked;
171
- if (isChecked) {
172
- checkbox.setAttribute("checked", "checked");
173
- } else {
174
- checkbox.removeAttribute("checked");
175
- }
176
- }
177
- });
178
- };
179
-
180
- var _excluded = ["content", "variables", "className", "size", "configuration", "onChange", "onClick"];
181
- function ownKeys(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; }
182
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty__default.default(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
183
- var EditorContent = function EditorContent(_ref) {
184
- var _ref$content = _ref.content,
185
- content = _ref$content === void 0 ? "" : _ref$content,
186
- _ref$variables = _ref.variables,
187
- variables = _ref$variables === void 0 ? [] : _ref$variables,
188
- className = _ref.className,
189
- _ref$size = _ref.size,
190
- size = _ref$size === void 0 ? constants.EDITOR_SIZES.SMALL : _ref$size,
191
- _ref$configuration = _ref.configuration,
192
- configuration = _ref$configuration === void 0 ? common.EDITOR_CONTENT_DEFAULT_CONFIGURATION : _ref$configuration,
193
- onChange = _ref.onChange,
194
- onClick = _ref.onClick,
195
- otherProps = _objectWithoutProperties__default.default(_ref, _excluded);
196
- var _useState = React.useState(null),
197
- _useState2 = _slicedToArray__default.default(_useState, 2),
198
- imagePreviewDetails = _useState2[0],
199
- setImagePreviewDetails = _useState2[1];
200
- var editorContentRef = React.useRef(null);
201
- var htmlContent = index$1.convertPlainTextToHtml(index$1.substituteVariables(index$1.applySyntaxHighlightingAndLineNumbers(common.removeEmptyTags(content)), variables));
202
- var sanitize = DOMPurify__default.default.sanitize;
203
- var handleContentClick = function handleContentClick(event) {
204
- handleTodoCheckboxClick(event, editorContentRef.current, onChange);
205
- onClick === null || onClick === void 0 || onClick(event);
206
- };
207
- var injectCopyButtonToCodeBlocks = function injectCopyButtonToCodeBlocks() {
208
- var _editorContentRef$cur;
209
- var preTags = (_editorContentRef$cur = editorContentRef.current) === null || _editorContentRef$cur === void 0 ? void 0 : _editorContentRef$cur.querySelectorAll(".".concat(common.EDITOR_CONTENT_CLASS_NAME, " pre"));
210
- preTags.forEach(function (preTag) {
211
- var button = document.createElement("div");
212
- button.className = "neeto-editor-codeblock-options";
213
- var root = client.createRoot(button);
214
- root.render(/*#__PURE__*/jsxRuntime.jsx(CopyToClipboardButton__default.default, {
215
- size: "small",
216
- style: "tertiary",
217
- value: preTag.textContent
218
- }));
219
- preTag.appendChild(button);
220
- });
221
- };
222
- var bindImageClickListener = function bindImageClickListener() {
223
- var _editorContentRef$cur2;
224
- var figureTags = (_editorContentRef$cur2 = editorContentRef.current) === null || _editorContentRef$cur2 === void 0 ? void 0 : _editorContentRef$cur2.querySelectorAll(".".concat(common.EDITOR_CONTENT_CLASS_NAME, " figure"));
225
- figureTags.forEach(function (figureTag) {
226
- var image = figureTag.querySelector("img");
227
- var link = figureTag.querySelector("a");
228
- if (ramda.isNil(image) || ramda.isNil(link)) return;
229
- figureTag.addEventListener("click", function (event) {
230
- event.preventDefault();
231
- var caption = figureTag.querySelector("figcaption").innerText;
232
- setImagePreviewDetails({
233
- src: image.src,
234
- caption: caption
235
- });
236
- });
237
- });
238
- };
239
- React.useEffect(function () {
240
- injectCopyButtonToCodeBlocks();
241
- bindImageClickListener();
242
- syncTodoCheckboxStates(editorContentRef.current);
243
- index$1.applyLineHighlighting(editorContentRef.current);
244
- configuration.enableHeaderLinks && buildHeaderLinks(editorContentRef.current);
245
- }, [content]);
246
- return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
247
- children: [/*#__PURE__*/jsxRuntime.jsx("div", _objectSpread({
248
- "data-testid": "neeto-editor-content",
249
- ref: editorContentRef,
250
- className: classnames__default.default(common.EDITOR_CONTENT_CLASS_NAME, _defineProperty__default.default(_defineProperty__default.default({}, className, className), "neeto-editor-size--".concat(size), true)),
251
- dangerouslySetInnerHTML: {
252
- __html: sanitize(htmlContent, common.SANITIZE_OPTIONS)
253
- },
254
- onClick: handleContentClick
255
- }, otherProps)), imagePreviewDetails && /*#__PURE__*/jsxRuntime.jsx(ImagePreview, {
256
- imagePreviewDetails: imagePreviewDetails,
257
- setImagePreviewDetails: setImagePreviewDetails
258
- })]
259
- });
260
- };
261
- var index = /*#__PURE__*/React.memo(EditorContent);
262
-
263
- module.exports = index;
264
- //# sourceMappingURL=EditorContent.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EditorContent.cjs.js","sources":["../../src/components/EditorContent/ImagePreview.jsx","../../src/components/EditorContent/utils/headers.js","../../src/components/EditorContent/utils/todoCheckbox.js","../../src/components/EditorContent/index.jsx"],"sourcesContent":["import { useEffect, useRef, useState } from \"react\";\n\nimport classnames from \"classnames\";\nimport { useOnClickOutside } from \"neetocommons/react-utils\";\nimport { Close } from \"neetoicons\";\nimport { Button, Spinner } from \"neetoui\";\nimport { createPortal } from \"react-dom\";\nimport { useTranslation } from \"react-i18next\";\n\nconst ImagePreview = ({ imagePreviewDetails, setImagePreviewDetails }) => {\n const [isLoading, setIsLoading] = useState(true);\n\n const { t } = useTranslation();\n\n const imagePreviewRef = useRef(null);\n\n useOnClickOutside(imagePreviewRef, () => setImagePreviewDetails(null), {\n enabled: true,\n });\n\n useEffect(() => {\n if (!imagePreviewRef.current) return;\n\n imagePreviewRef.current.setAttribute(\"tabindex\", \"-1\");\n imagePreviewRef.current.focus();\n }, []);\n\n const handleKeyDown = e => {\n e.stopPropagation();\n e.key === \"Escape\" && setImagePreviewDetails(null);\n };\n\n return createPortal(\n <div className=\"ne-image-preview-wrapper active\">\n {isLoading && <Spinner className=\"ne-image-preview-wrapper__spinner\" />}\n {!isLoading && (\n <div className=\"close-button\">\n <Button\n icon={Close}\n style=\"secondary\"\n onClick={() => setImagePreviewDetails(null)}\n />\n </div>\n )}\n <div\n className={classnames(\"ne-image-preview\", {\n \"image-loaded\": !isLoading,\n })}\n >\n <img\n alt={t(\"neetoEditor.editorContent.imagePreviewAltText\")}\n ref={imagePreviewRef}\n src={imagePreviewDetails.src}\n onKeyDown={handleKeyDown}\n onLoad={() => setIsLoading(false)}\n />\n {imagePreviewDetails && (\n <p className=\"ne-image-preview__caption\">\n {imagePreviewDetails.caption}\n </p>\n )}\n </div>\n </div>,\n document.body\n );\n};\n\nexport default ImagePreview;\n","const buildLinkSVG = () => {\n const svgNS = \"http://www.w3.org/2000/svg\";\n\n const svgWrapper = document.createElement(\"span\");\n svgWrapper.classList.add(\"header-link-icon-wrapper\");\n const svg = document.createElementNS(svgNS, \"svg\");\n svg.setAttribute(\"aria-hidden\", \"true\");\n svg.setAttribute(\"height\", \"20\");\n svg.setAttribute(\"viewBox\", \"0 0 16 16\");\n svg.setAttribute(\"width\", \"20\");\n\n const path = document.createElementNS(svgNS, \"path\");\n path.setAttribute(\n \"d\",\n \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n );\n\n svg.appendChild(path);\n svgWrapper.appendChild(svg);\n\n return svgWrapper;\n};\n\nconst convertTextToId = text =>\n text\n .trim()\n .toLowerCase()\n .replace(/[^a-z0-9\\s]/g, \"\")\n .replace(/\\s+/g, \"-\");\n\nexport const buildHeaderLinks = editorContentNode => {\n const headerTags = editorContentNode.querySelectorAll(\n \"h1, h2, h3, h4, h5, h6\"\n );\n const usedIds = new Map();\n\n headerTags.forEach(heading => {\n if (heading.getAttribute(\"data-link\") === \"false\") {\n return;\n }\n\n let headingId = convertTextToId(heading.textContent);\n if (usedIds.has(headingId)) {\n const count = usedIds.get(headingId);\n usedIds.set(headingId, count + 1);\n headingId = `${headingId}-${count}`;\n } else usedIds.set(headingId, 1);\n\n heading.setAttribute(\"id\", headingId);\n\n const wrapper = document.createElement(\"div\");\n const anchor = document.createElement(\"a\");\n\n wrapper.classList.add(\"header-wrapper\");\n anchor.setAttribute(\"href\", `#${headingId}`);\n anchor.classList.add(\"header-wrapper__link\");\n anchor.appendChild(buildLinkSVG());\n\n wrapper.appendChild(heading.cloneNode(true));\n wrapper.appendChild(anchor);\n heading.replaceWith(wrapper);\n });\n};\n","export const handleTodoCheckboxClick = (event, editorContentRef, onChange) => {\n if (\n !(\n event.target.type === \"checkbox\" &&\n event.target.closest('ul[data-type=\"todoList\"] li[data-type=\"taskItem\"]')\n )\n ) {\n return;\n }\n\n const checkbox = event.target;\n const listItem = checkbox.closest(\"li\");\n\n if (listItem) {\n listItem.setAttribute(\"data-checked\", checkbox.checked.toString());\n\n if (checkbox.checked) {\n checkbox.setAttribute(\"checked\", \"checked\");\n } else {\n checkbox.removeAttribute(\"checked\");\n }\n\n onChange?.(editorContentRef?.innerHTML);\n }\n};\n\nexport const syncTodoCheckboxStates = editorContentRef => {\n if (!editorContentRef) return;\n\n const todoItems = editorContentRef.querySelectorAll(\n `ul[data-type=\"todoList\"] li[data-type=\"taskItem\"]`\n );\n\n todoItems.forEach(listItem => {\n const isChecked = listItem.getAttribute(\"data-checked\") === \"true\";\n const checkbox = listItem.querySelector('input[type=\"checkbox\"]');\n\n if (checkbox) {\n checkbox.checked = isChecked;\n\n if (isChecked) {\n checkbox.setAttribute(\"checked\", \"checked\");\n } else {\n checkbox.removeAttribute(\"checked\");\n }\n }\n });\n};\n","import { memo, useEffect, useRef, useState } from \"react\";\n\nimport classnames from \"classnames\";\nimport DOMPurify from \"dompurify\";\nimport CopyToClipboardButton from \"neetomolecules/CopyToClipboardButton\";\nimport { isNil } from \"ramda\";\nimport { createRoot } from \"react-dom/client\";\n\nimport { EDITOR_SIZES } from \"src/common/constants\";\nimport \"src/styles/editor/editor-content.scss\";\nimport { removeEmptyTags } from \"utils\";\n\nimport {\n EDITOR_CONTENT_CLASS_NAME,\n EDITOR_CONTENT_DEFAULT_CONFIGURATION,\n SANITIZE_OPTIONS,\n} from \"./constants\";\nimport ImagePreview from \"./ImagePreview\";\nimport {\n substituteVariables,\n applyLineHighlighting,\n applySyntaxHighlightingAndLineNumbers,\n convertPlainTextToHtml,\n} from \"./utils\";\nimport { buildHeaderLinks } from \"./utils/headers\";\nimport {\n handleTodoCheckboxClick,\n syncTodoCheckboxStates,\n} from \"./utils/todoCheckbox\";\n\nconst EditorContent = ({\n content = \"\",\n variables = [],\n className,\n size = EDITOR_SIZES.SMALL,\n configuration = EDITOR_CONTENT_DEFAULT_CONFIGURATION,\n onChange,\n onClick,\n ...otherProps\n}) => {\n const [imagePreviewDetails, setImagePreviewDetails] = useState(null);\n const editorContentRef = useRef(null);\n\n const htmlContent = convertPlainTextToHtml(\n substituteVariables(\n applySyntaxHighlightingAndLineNumbers(removeEmptyTags(content)),\n variables\n )\n );\n const sanitize = DOMPurify.sanitize;\n\n const handleContentClick = event => {\n handleTodoCheckboxClick(event, editorContentRef.current, onChange);\n\n onClick?.(event);\n };\n\n const injectCopyButtonToCodeBlocks = () => {\n const preTags = editorContentRef.current?.querySelectorAll(\n `.${EDITOR_CONTENT_CLASS_NAME} pre`\n );\n\n preTags.forEach(preTag => {\n const button = document.createElement(\"div\");\n button.className = \"neeto-editor-codeblock-options\";\n const root = createRoot(button);\n root.render(\n <CopyToClipboardButton\n size=\"small\"\n style=\"tertiary\"\n value={preTag.textContent}\n />\n );\n preTag.appendChild(button);\n });\n };\n\n const bindImageClickListener = () => {\n const figureTags = editorContentRef.current?.querySelectorAll(\n `.${EDITOR_CONTENT_CLASS_NAME} figure`\n );\n\n figureTags.forEach(figureTag => {\n const image = figureTag.querySelector(\"img\");\n const link = figureTag.querySelector(\"a\");\n if (isNil(image) || isNil(link)) return;\n\n figureTag.addEventListener(\"click\", event => {\n event.preventDefault();\n const caption = figureTag.querySelector(\"figcaption\").innerText;\n setImagePreviewDetails({ src: image.src, caption });\n });\n });\n };\n\n useEffect(() => {\n injectCopyButtonToCodeBlocks();\n bindImageClickListener();\n syncTodoCheckboxStates(editorContentRef.current);\n applyLineHighlighting(editorContentRef.current);\n configuration.enableHeaderLinks &&\n buildHeaderLinks(editorContentRef.current);\n }, [content]);\n\n return (\n <>\n <div\n data-testid=\"neeto-editor-content\"\n ref={editorContentRef}\n className={classnames(EDITOR_CONTENT_CLASS_NAME, {\n [className]: className,\n [`neeto-editor-size--${size}`]: true,\n })}\n dangerouslySetInnerHTML={{\n __html: sanitize(htmlContent, SANITIZE_OPTIONS),\n }}\n onClick={handleContentClick}\n {...otherProps}\n />\n {imagePreviewDetails && (\n <ImagePreview {...{ imagePreviewDetails, setImagePreviewDetails }} />\n )}\n </>\n );\n};\n\nexport default memo(EditorContent);\n"],"names":["ImagePreview","_ref","imagePreviewDetails","setImagePreviewDetails","_useState","useState","_useState2","_slicedToArray","isLoading","setIsLoading","_useTranslation","useTranslation","t","imagePreviewRef","useRef","useOnClickOutside","enabled","useEffect","current","setAttribute","focus","handleKeyDown","e","stopPropagation","key","createPortal","_jsxs","className","children","_jsx","Spinner","Button","icon","Close","style","onClick","classnames","alt","ref","src","onKeyDown","onLoad","caption","document","body","buildLinkSVG","svgNS","svgWrapper","createElement","classList","add","svg","createElementNS","path","appendChild","convertTextToId","text","trim","toLowerCase","replace","buildHeaderLinks","editorContentNode","headerTags","querySelectorAll","usedIds","Map","forEach","heading","getAttribute","headingId","textContent","has","count","get","set","concat","wrapper","anchor","cloneNode","replaceWith","handleTodoCheckboxClick","event","editorContentRef","onChange","target","type","closest","checkbox","listItem","checked","toString","removeAttribute","innerHTML","syncTodoCheckboxStates","todoItems","isChecked","querySelector","EditorContent","_ref$content","content","_ref$variables","variables","_ref$size","size","EDITOR_SIZES","SMALL","_ref$configuration","configuration","EDITOR_CONTENT_DEFAULT_CONFIGURATION","otherProps","_objectWithoutProperties","_excluded","htmlContent","convertPlainTextToHtml","substituteVariables","applySyntaxHighlightingAndLineNumbers","removeEmptyTags","sanitize","DOMPurify","handleContentClick","injectCopyButtonToCodeBlocks","_editorContentRef$cur","preTags","EDITOR_CONTENT_CLASS_NAME","preTag","button","root","createRoot","render","CopyToClipboardButton","value","bindImageClickListener","_editorContentRef$cur2","figureTags","figureTag","image","link","isNil","addEventListener","preventDefault","innerText","applyLineHighlighting","enableHeaderLinks","_Fragment","_objectSpread","_defineProperty","dangerouslySetInnerHTML","__html","SANITIZE_OPTIONS","memo"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,IAAMA,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAAwD;AAAA,EAAA,IAAlDC,mBAAmB,GAAAD,IAAA,CAAnBC,mBAAmB;IAAEC,sBAAsB,GAAAF,IAAA,CAAtBE,sBAAsB,CAAA;AACjE,EAAA,IAAAC,SAAA,GAAkCC,cAAQ,CAAC,IAAI,CAAC;IAAAC,UAAA,GAAAC,+BAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAAzCI,IAAAA,SAAS,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAEG,IAAAA,YAAY,GAAAH,UAAA,CAAA,CAAA,CAAA,CAAA;AAE9B,EAAA,IAAAI,eAAA,GAAcC,2BAAc,EAAE;IAAtBC,CAAC,GAAAF,eAAA,CAADE,CAAC,CAAA;AAET,EAAA,IAAMC,eAAe,GAAGC,YAAM,CAAC,IAAI,CAAC,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ACxBtC,IAAAA,sBAAsB,CAACX,gBAAgB,CAAChE,OAAO,CAAC,CAAA;AAChD2H,IAAAA,6BAAqB,CAAC3D,gBAAgB,CAAChE,OAAO,CAAC,CAAA;IAC/CyF,aAAa,CAACmC,iBAAiB,IAC7BlF,gBAAgB,CAACsB,gBAAgB,CAAChE,OAAO,CAAC,CAAA;AAC9C,GAAC,EAAE,CAACiF,OAAO,CAAC,CAAC,CAAA;EAEb,oBACEzE,eAAA,CAAAqH,mBAAA,EAAA;IAAAnH,QAAA,EAAA,cACEC,cAAA,CAAA,KAAA,EAAAmH,aAAA,CAAA;AACE,MAAA,aAAA,EAAY,sBAAsB;AAClC1G,MAAAA,GAAG,EAAE4C,gBAAiB;AACtBvD,MAAAA,SAAS,EAAES,2BAAU,CAACuF,gCAAyB,EAAAsB,gCAAA,CAAAA,gCAAA,CAAA,EAAA,EAC5CtH,SAAS,EAAGA,SAAS,yBAAAgD,MAAA,CACC4B,IAAI,CAAK,EAAA,IAAI,CACrC,CAAE;AACH2C,MAAAA,uBAAuB,EAAE;AACvBC,QAAAA,MAAM,EAAE9B,QAAQ,CAACL,WAAW,EAAEoC,uBAAgB,CAAA;OAC9C;AACFjH,MAAAA,OAAO,EAAEoF,kBAAAA;KACLV,EAAAA,UAAU,CACf,CAAC,EACD3G,mBAAmB,iBAClB2B,cAAA,CAAC7B,YAAY,EAAA;AAAOE,MAAAA,mBAAmB,EAAnBA,mBAAmB;AAAEC,MAAAA,sBAAsB,EAAtBA,sBAAAA;AAAsB,KAAK,CACrE,CAAA;AAAA,GACD,CAAC,CAAA;AAEP,CAAC,CAAA;AAED,YAAekJ,aAAAA,UAAI,CAACpD,aAAa,CAAC;;;;"}
@@ -1,206 +0,0 @@
1
- 'use strict';
2
-
3
- var _defineProperty = require('@babel/runtime/helpers/defineProperty');
4
- var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
5
- var React = require('react');
6
- var formik = require('formik');
7
- var neetoCist = require('@bigbinary/neeto-cist');
8
- var ramda = require('ramda');
9
- var Editor = require('./Editor.cjs.js');
10
- var jsxRuntime = require('react/jsx-runtime');
11
- require('@babel/runtime/helpers/toConsumableArray');
12
- require('@babel/runtime/helpers/slicedToArray');
13
- require('./chunk-C3rn62sV.cjs.js');
14
- require('./chunk-vQvjPR2x.cjs.js');
15
- require('i18next');
16
- require('@bigbinary/neeto-icons/TextH1');
17
- require('@bigbinary/neeto-icons/TextH2');
18
- require('@bigbinary/neeto-icons/TextH3');
19
- require('@bigbinary/neeto-icons/TextH4');
20
- require('@bigbinary/neeto-icons/TextH5');
21
- require('@bigbinary/neeto-icons/TextP');
22
- require('./chunk-CLeV8Bxb.cjs.js');
23
- require('./chunk-2HrSPdAV.cjs.js');
24
- require('./chunk-BGy3NmZC.cjs.js');
25
- require('yup');
26
- require('tippy.js');
27
- require('react-dom');
28
- require('classnames');
29
- require('tippy.js/dist/svg-arrow.css');
30
- require('@bigbinary/neeto-icons/Link');
31
- require('@bigbinary/neeto-icons/Column');
32
- require('@bigbinary/neeto-icons/Down');
33
- require('@bigbinary/neetoui/Dropdown');
34
- require('react-i18next');
35
- require('@bigbinary/neeto-icons/Close');
36
- require('@bigbinary/neetoui/Button');
37
- require('@bigbinary/neeto-commons-frontend/utils');
38
- require('@bigbinary/neeto-icons/Check');
39
- require('@bigbinary/neetoui/Label');
40
- require('@bigbinary/neeto-icons/Quote');
41
- require('@bigbinary/neeto-icons/Attachment');
42
- require('@bigbinary/neeto-icons/CodeBlock');
43
- require('@bigbinary/neeto-icons/Code');
44
- require('@bigbinary/neeto-icons/Highlight');
45
- require('@bigbinary/neeto-icons/TextBold');
46
- require('@bigbinary/neeto-icons/TextCross');
47
- require('@bigbinary/neeto-icons/TextItalic');
48
- require('@bigbinary/neeto-icons/Underline');
49
- require('@bigbinary/neeto-icons/ListDot');
50
- require('@bigbinary/neeto-icons/ListNumber');
51
- require('@bigbinary/neeto-icons/ImageUpload');
52
- require('@bigbinary/neeto-icons/Video');
53
- require('@bigbinary/neeto-icons/Undo');
54
- require('@bigbinary/neeto-icons/Redo');
55
- require('@bigbinary/neeto-icons/Email');
56
- require('@bigbinary/neetoui/Avatar');
57
- require('@bigbinary/neetoui/Typography');
58
- require('@bigbinary/neeto-icons/Smiley');
59
- require('@babel/runtime/helpers/asyncToGenerator');
60
- require('@babel/runtime/helpers/classCallCheck');
61
- require('@babel/runtime/helpers/createClass');
62
- require('@babel/runtime/helpers/possibleConstructorReturn');
63
- require('@babel/runtime/helpers/getPrototypeOf');
64
- require('@babel/runtime/helpers/inherits');
65
- require('@babel/runtime/regenerator');
66
- require('emoji-mart');
67
- require('axios');
68
- require('@bigbinary/neeto-commons-frontend/react-utils');
69
- require('@bigbinary/neeto-icons/Customize');
70
- require('@bigbinary/neeto-icons/Refresh');
71
- require('@bigbinary/neetoui/Input');
72
- require('react-colorful');
73
- require('@bigbinary/neeto-image-uploader-frontend');
74
- require('@bigbinary/neetoui/Modal');
75
- require('@bigbinary/neetoui/Tab');
76
- require('@bigbinary/neetoui/Toastr');
77
- require('./chunk-COT7CF-z.cjs.js');
78
- require('zustand/shallow');
79
- require('zustand');
80
- require('./chunk-B83fTs8d.cjs.js');
81
- require('@bigbinary/neeto-icons/LeftAlign');
82
- require('@bigbinary/neeto-icons/CenterAlign');
83
- require('@bigbinary/neeto-icons/RightAlign');
84
- require('@bigbinary/neeto-icons/Delete');
85
- require('@bigbinary/neeto-icons/CustomSize');
86
- require('@bigbinary/neeto-icons/BorderDisable');
87
- require('@bigbinary/neeto-icons/BorderEnable');
88
- require('@bigbinary/neeto-icons/AspectRatio11');
89
- require('@bigbinary/neeto-icons/AspectRatio169');
90
- require('@bigbinary/neeto-icons/AspectRatio916');
91
- require('@bigbinary/neeto-icons/AspectRatio43');
92
- require('@bigbinary/neeto-icons/AspectRatio32');
93
- require('@bigbinary/neeto-commons-frontend/initializers');
94
- require('@bigbinary/neetoui/Tooltip');
95
- require('@bigbinary/neetoui/formik/Form');
96
- require('@bigbinary/neetoui/formik/Input');
97
- require('@bigbinary/neetoui/formik/ActionBlock');
98
- require('@bigbinary/neetoui/Checkbox');
99
- require('@bigbinary/neeto-icons/Checkbox');
100
- require('@bigbinary/neeto-icons/File');
101
- require('@bigbinary/neeto-icons/Flag');
102
- require('@bigbinary/neeto-icons/misc/Info');
103
- require('@bigbinary/neeto-icons/misc/Warning');
104
- require('@bigbinary/neeto-icons/misc/Danger');
105
- require('@bigbinary/neeto-icons/misc/Megaphone');
106
- require('@bigbinary/neeto-icons/misc/Success');
107
- require('@bigbinary/neeto-icons/MenuHorizontal');
108
- require('@bigbinary/neeto-molecules/DynamicVariables');
109
- require('@tippyjs/react');
110
- require('./chunk-AgahZtc5.cjs.js');
111
- require('@tanstack/react-query');
112
- require('react-dom/server');
113
- require('yjs');
114
- require('@bigbinary/neeto-molecules/CopyToClipboardButton');
115
- require('@bigbinary/neetoui/Spinner');
116
- require('@bigbinary/neeto-icons/AspectRatio');
117
- require('@bigbinary/neeto-icons/Blockquote');
118
- require('@bigbinary/neeto-icons/Minus');
119
- require('@bigbinary/neeto-icons/Notes');
120
- require('@bigbinary/neeto-icons/MessageSquare');
121
- require('@bigbinary/neeto-molecules/Search');
122
- require('@bigbinary/neetoui/Select');
123
- require('@bigbinary/neeto-icons/DeleteRow');
124
- require('@bigbinary/neeto-icons/DeleteColumn');
125
- require('@bigbinary/neeto-icons/DeleteTable');
126
- require('@bigbinary/neeto-icons/InsertRow');
127
- require('@bigbinary/neeto-icons/InsertColumn');
128
- require('@bigbinary/neeto-icons/MergeSplit');
129
- require('@bigbinary/neeto-icons/ToggleHeaderRow');
130
- require('@bigbinary/neeto-icons/Edit');
131
- require('@bigbinary/neeto-icons/Articles');
132
- require('./chunk-DYSZxrWZ.cjs.js');
133
- require('@bigbinary/neeto-commons-frontend/react-utils/useOnClickOutside');
134
- require('@bigbinary/neeto-icons/MenuVertical');
135
- require('@bigbinary/neetoui/Alert');
136
-
137
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
138
-
139
- var _defineProperty__default = /*#__PURE__*/_interopDefault(_defineProperty);
140
- var _objectWithoutProperties__default = /*#__PURE__*/_interopDefault(_objectWithoutProperties);
141
-
142
- var _excluded = ["name", "onChange", "shouldUpdate", "attachments", "mentions", "variables"];
143
- function ownKeys(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; }
144
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty__default.default(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
145
- var FormikEditor = function FormikEditor(_ref, ref) {
146
- var name = _ref.name,
147
- _ref$onChange = _ref.onChange,
148
- _onChange = _ref$onChange === void 0 ? neetoCist.noop : _ref$onChange,
149
- shouldUpdate = _ref.shouldUpdate,
150
- _ref$attachments = _ref.attachments,
151
- attachments = _ref$attachments === void 0 ? [] : _ref$attachments,
152
- _ref$mentions = _ref.mentions,
153
- mentions = _ref$mentions === void 0 ? [] : _ref$mentions,
154
- _ref$variables = _ref.variables,
155
- variables = _ref$variables === void 0 ? [] : _ref$variables,
156
- otherProps = _objectWithoutProperties__default.default(_ref, _excluded);
157
- // Similar to the `shouldComponentUpdate` logic of FastField component.
158
- // https://github.com/jaredpalmer/formik/blob/main/packages/formik/src/FastField.tsx#L75-L93
159
- // Additionally calls the shouldUpdate function passed from the host application and compares to
160
- // the rest of the values.
161
- var internalShouldUpdate = function internalShouldUpdate(prevProps, nextProps) {
162
- var prevFormikProps = prevProps.formik;
163
- var nextFormikProps = nextProps.formik;
164
- var pathParts = name.split(".");
165
- var prevError = ramda.path(pathParts, prevFormikProps.errors);
166
- var nextError = ramda.path(pathParts, nextFormikProps.errors);
167
- var prevTouched = ramda.path(pathParts, prevFormikProps.touched);
168
- var nextTouched = ramda.path(pathParts, nextFormikProps.touched);
169
- var prevAttachments = ramda.pluck("signedId", prevProps.attachments).join("|");
170
- var nextAttachments = ramda.pluck("signedId", nextProps.attachments).join("|");
171
- return prevError !== nextError || prevTouched !== nextTouched || Object.keys(nextProps).length !== Object.keys(prevProps).length || prevFormikProps.isSubmitting !== nextFormikProps.isSubmitting || prevAttachments !== nextAttachments || Boolean(shouldUpdate === null || shouldUpdate === void 0 ? void 0 : shouldUpdate(prevProps, nextProps));
172
- };
173
- return /*#__PURE__*/jsxRuntime.jsx(formik.FastField, {
174
- attachments: attachments,
175
- mentions: mentions,
176
- name: name,
177
- variables: variables,
178
- shouldUpdate: internalShouldUpdate,
179
- children: function children(_ref2) {
180
- var field = _ref2.field,
181
- form = _ref2.form,
182
- meta = _ref2.meta;
183
- return /*#__PURE__*/jsxRuntime.jsx(Editor, _objectSpread({
184
- attachments: attachments,
185
- mentions: mentions,
186
- name: name,
187
- ref: ref,
188
- variables: variables,
189
- error: meta.touched ? meta.error : "",
190
- initialValue: field.value,
191
- onBlur: function onBlur() {
192
- form.setFieldTouched(name, true);
193
- },
194
- onChange: function onChange(value) {
195
- form.setFieldValue(name, value);
196
- _onChange === null || _onChange === void 0 || _onChange(value);
197
- }
198
- }, otherProps));
199
- }
200
- });
201
- };
202
- FormikEditor.displayName = "FormikNeetoEditor";
203
- var FormikEditor$1 = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(FormikEditor));
204
-
205
- module.exports = FormikEditor$1;
206
- //# sourceMappingURL=FormikEditor.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormikEditor.cjs.js","sources":["../../src/components/Editor/FormikEditor.jsx"],"sourcesContent":["import { forwardRef, memo } from \"react\";\n\nimport { FastField } from \"formik\";\nimport { noop } from \"neetocist\";\nimport { path, pluck } from \"ramda\";\n\nimport Editor from \".\";\n\nconst FormikEditor = (\n {\n name,\n onChange = noop,\n shouldUpdate,\n attachments = [],\n mentions = [],\n variables = [],\n ...otherProps\n },\n ref\n) => {\n // Similar to the `shouldComponentUpdate` logic of FastField component.\n // https://github.com/jaredpalmer/formik/blob/main/packages/formik/src/FastField.tsx#L75-L93\n // Additionally calls the shouldUpdate function passed from the host application and compares to\n // the rest of the values.\n const internalShouldUpdate = (prevProps, nextProps) => {\n const prevFormikProps = prevProps.formik;\n const nextFormikProps = nextProps.formik;\n\n const pathParts = name.split(\".\");\n const prevError = path(pathParts, prevFormikProps.errors);\n const nextError = path(pathParts, nextFormikProps.errors);\n const prevTouched = path(pathParts, prevFormikProps.touched);\n const nextTouched = path(pathParts, nextFormikProps.touched);\n const prevAttachments = pluck(\"signedId\", prevProps.attachments).join(\"|\");\n const nextAttachments = pluck(\"signedId\", nextProps.attachments).join(\"|\");\n\n return (\n prevError !== nextError ||\n prevTouched !== nextTouched ||\n Object.keys(nextProps).length !== Object.keys(prevProps).length ||\n prevFormikProps.isSubmitting !== nextFormikProps.isSubmitting ||\n prevAttachments !== nextAttachments ||\n Boolean(shouldUpdate?.(prevProps, nextProps))\n );\n };\n\n return (\n <FastField\n {...{ attachments, mentions, name, variables }}\n shouldUpdate={internalShouldUpdate}\n >\n {({ field, form, meta }) => (\n <Editor\n {...{ attachments, mentions, name, ref, variables }}\n error={meta.touched ? meta.error : \"\"}\n initialValue={field.value}\n onBlur={() => {\n form.setFieldTouched(name, true);\n }}\n onChange={value => {\n form.setFieldValue(name, value);\n onChange?.(value);\n }}\n {...otherProps}\n />\n )}\n </FastField>\n );\n};\n\nFormikEditor.displayName = \"FormikNeetoEditor\";\n\nexport default memo(forwardRef(FormikEditor));\n"],"names":["FormikEditor","_ref","ref","name","_ref$onChange","onChange","noop","shouldUpdate","_ref$attachments","attachments","_ref$mentions","mentions","_ref$variables","variables","otherProps","_objectWithoutProperties","_excluded","internalShouldUpdate","prevProps","nextProps","prevFormikProps","formik","nextFormikProps","pathParts","split","prevError","path","errors","nextError","prevTouched","touched","nextTouched","prevAttachments","pluck","join","nextAttachments","Object","keys","length","isSubmitting","Boolean","_jsx","FastField","children","_ref2","field","form","meta","Editor","_objectSpread","error","initialValue","value","onBlur","setFieldTouched","setFieldValue","displayName","memo","forwardRef"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAMA,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAUhBC,GAAG,EACA;AAAA,EAAA,IATDC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IAAAC,aAAA,GAAAH,IAAA,CACJI,QAAQ;AAARA,IAAAA,SAAQ,GAAAD,aAAA,KAAGE,KAAAA,CAAAA,GAAAA,cAAI,GAAAF,aAAA;IACfG,YAAY,GAAAN,IAAA,CAAZM,YAAY;IAAAC,gBAAA,GAAAP,IAAA,CACZQ,WAAW;AAAXA,IAAAA,WAAW,GAAAD,gBAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,gBAAA;IAAAE,aAAA,GAAAT,IAAA,CAChBU,QAAQ;AAARA,IAAAA,QAAQ,GAAAD,aAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,aAAA;IAAAE,cAAA,GAAAX,IAAA,CACbY,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,cAAA;AACXE,IAAAA,UAAU,GAAAC,yCAAA,CAAAd,IAAA,EAAAe,SAAA,CAAA,CAAA;AAIf;AACA;AACA;AACA;EACA,IAAMC,oBAAoB,GAAG,SAAvBA,oBAAoBA,CAAIC,SAAS,EAAEC,SAAS,EAAK;AACrD,IAAA,IAAMC,eAAe,GAAGF,SA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