@bigbinary/neeto-editor 1.47.105 → 1.47.107

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 (90) hide show
  1. package/package.json +8 -8
  2. package/types.d.ts +1 -0
  3. package/dist/Attachments.js +0 -52
  4. package/dist/Attachments.js.map +0 -1
  5. package/dist/Editor.js +0 -22377
  6. package/dist/Editor.js.map +0 -1
  7. package/dist/EditorContent.js +0 -250
  8. package/dist/EditorContent.js.map +0 -1
  9. package/dist/FormikEditor.js +0 -199
  10. package/dist/FormikEditor.js.map +0 -1
  11. package/dist/Menu.js +0 -106
  12. package/dist/Menu.js.map +0 -1
  13. package/dist/chunk-2Y0OJ9hf.js +0 -12640
  14. package/dist/chunk-2Y0OJ9hf.js.map +0 -1
  15. package/dist/chunk-B7tHOpir.js +0 -6725
  16. package/dist/chunk-B7tHOpir.js.map +0 -1
  17. package/dist/chunk-BtgLcjAt.js +0 -16238
  18. package/dist/chunk-BtgLcjAt.js.map +0 -1
  19. package/dist/chunk-CU3LdVPN.js +0 -18953
  20. package/dist/chunk-CU3LdVPN.js.map +0 -1
  21. package/dist/chunk-DNMH2cJJ.js +0 -84
  22. package/dist/chunk-DNMH2cJJ.js.map +0 -1
  23. package/dist/chunk-DP3L767h.js +0 -8588
  24. package/dist/chunk-DP3L767h.js.map +0 -1
  25. package/dist/chunk-DmrvuTKK.js +0 -4
  26. package/dist/chunk-DmrvuTKK.js.map +0 -1
  27. package/dist/chunk-DxGDZoUl.js +0 -19
  28. package/dist/chunk-DxGDZoUl.js.map +0 -1
  29. package/dist/chunk-E-ZsRS8r.js +0 -33
  30. package/dist/chunk-E-ZsRS8r.js.map +0 -1
  31. package/dist/chunk-nYgNTOBs.js +0 -571
  32. package/dist/chunk-nYgNTOBs.js.map +0 -1
  33. package/dist/chunk-xmTFld61.js +0 -69027
  34. package/dist/chunk-xmTFld61.js.map +0 -1
  35. package/dist/cjs/Attachments.cjs.js +0 -58
  36. package/dist/cjs/Attachments.cjs.js.map +0 -1
  37. package/dist/cjs/Editor.cjs.js +0 -22474
  38. package/dist/cjs/Editor.cjs.js.map +0 -1
  39. package/dist/cjs/EditorContent.cjs.js +0 -264
  40. package/dist/cjs/EditorContent.cjs.js.map +0 -1
  41. package/dist/cjs/FormikEditor.cjs.js +0 -206
  42. package/dist/cjs/FormikEditor.cjs.js.map +0 -1
  43. package/dist/cjs/Menu.cjs.js +0 -112
  44. package/dist/cjs/Menu.cjs.js.map +0 -1
  45. package/dist/cjs/chunk-2HrSPdAV.cjs.js +0 -92
  46. package/dist/cjs/chunk-2HrSPdAV.cjs.js.map +0 -1
  47. package/dist/cjs/chunk-AgahZtc5.cjs.js +0 -16258
  48. package/dist/cjs/chunk-AgahZtc5.cjs.js.map +0 -1
  49. package/dist/cjs/chunk-B83fTs8d.cjs.js +0 -37
  50. package/dist/cjs/chunk-B83fTs8d.cjs.js.map +0 -1
  51. package/dist/cjs/chunk-BGy3NmZC.cjs.js +0 -49
  52. package/dist/cjs/chunk-BGy3NmZC.cjs.js.map +0 -1
  53. package/dist/cjs/chunk-C3rn62sV.cjs.js +0 -19082
  54. package/dist/cjs/chunk-C3rn62sV.cjs.js.map +0 -1
  55. package/dist/cjs/chunk-CLeV8Bxb.cjs.js +0 -6766
  56. package/dist/cjs/chunk-CLeV8Bxb.cjs.js.map +0 -1
  57. package/dist/cjs/chunk-COT7CF-z.cjs.js +0 -8652
  58. package/dist/cjs/chunk-COT7CF-z.cjs.js.map +0 -1
  59. package/dist/cjs/chunk-CYI1JJPG.cjs.js +0 -12645
  60. package/dist/cjs/chunk-CYI1JJPG.cjs.js.map +0 -1
  61. package/dist/cjs/chunk-CrSw8VHc.cjs.js +0 -69056
  62. package/dist/cjs/chunk-CrSw8VHc.cjs.js.map +0 -1
  63. package/dist/cjs/chunk-DYSZxrWZ.cjs.js +0 -597
  64. package/dist/cjs/chunk-DYSZxrWZ.cjs.js.map +0 -1
  65. package/dist/cjs/chunk-vQvjPR2x.cjs.js +0 -6
  66. package/dist/cjs/chunk-vQvjPR2x.cjs.js.map +0 -1
  67. package/dist/cjs/constants.cjs.js +0 -13
  68. package/dist/cjs/constants.cjs.js.map +0 -1
  69. package/dist/cjs/index.cjs.js +0 -159
  70. package/dist/cjs/index.cjs.js.map +0 -1
  71. package/dist/cjs/utils.cjs.js +0 -27
  72. package/dist/cjs/utils.cjs.js.map +0 -1
  73. package/dist/codeblockHighlight.js +0 -15155
  74. package/dist/codeblockHighlight.js.map +0 -1
  75. package/dist/constants.js +0 -6
  76. package/dist/constants.js.map +0 -1
  77. package/dist/editor-content.min.css +0 -1
  78. package/dist/editor-output-pdf-email.css +0 -1
  79. package/dist/editor-output-pdf-email.js +0 -4
  80. package/dist/editor-output-pdf-email.js.map +0 -1
  81. package/dist/editor-output.js +0 -4
  82. package/dist/editor-output.js.map +0 -1
  83. package/dist/editor-stats.html +0 -4842
  84. package/dist/editorUtils.js +0 -170
  85. package/dist/headerLinks.js +0 -59
  86. package/dist/headerLinks.js.map +0 -1
  87. package/dist/index.js +0 -142
  88. package/dist/index.js.map +0 -1
  89. package/dist/utils.js +0 -15
  90. package/dist/utils.js.map +0 -1
@@ -1,112 +0,0 @@
1
- 'use strict';
2
-
3
- require('@babel/runtime/helpers/defineProperty');
4
- require('@babel/runtime/helpers/toConsumableArray');
5
- require('@babel/runtime/helpers/slicedToArray');
6
- require('react');
7
- require('ramda');
8
- var Menu = require('./chunk-C3rn62sV.cjs.js');
9
- require('./chunk-BGy3NmZC.cjs.js');
10
- require('react/jsx-runtime');
11
- require('./chunk-vQvjPR2x.cjs.js');
12
- require('i18next');
13
- require('@bigbinary/neeto-icons/TextH1');
14
- require('@bigbinary/neeto-icons/TextH2');
15
- require('@bigbinary/neeto-icons/TextH3');
16
- require('@bigbinary/neeto-icons/TextH4');
17
- require('@bigbinary/neeto-icons/TextH5');
18
- require('@bigbinary/neeto-icons/TextP');
19
- require('./chunk-CLeV8Bxb.cjs.js');
20
- require('@bigbinary/neeto-cist');
21
- require('./chunk-2HrSPdAV.cjs.js');
22
- require('tippy.js');
23
- require('react-dom');
24
- require('classnames');
25
- require('tippy.js/dist/svg-arrow.css');
26
- require('@bigbinary/neeto-icons/Link');
27
- require('@bigbinary/neeto-icons/Column');
28
- require('@bigbinary/neeto-icons/Down');
29
- require('@bigbinary/neetoui/Dropdown');
30
- require('react-i18next');
31
- require('@bigbinary/neeto-icons/Close');
32
- require('@bigbinary/neetoui/Button');
33
- require('@bigbinary/neeto-commons-frontend/utils');
34
- require('@bigbinary/neeto-icons/Check');
35
- require('@bigbinary/neetoui/Label');
36
- require('@bigbinary/neeto-icons/Quote');
37
- require('@bigbinary/neeto-icons/Attachment');
38
- require('@bigbinary/neeto-icons/CodeBlock');
39
- require('@bigbinary/neeto-icons/Code');
40
- require('@bigbinary/neeto-icons/Highlight');
41
- require('@bigbinary/neeto-icons/TextBold');
42
- require('@bigbinary/neeto-icons/TextCross');
43
- require('@bigbinary/neeto-icons/TextItalic');
44
- require('@bigbinary/neeto-icons/Underline');
45
- require('@bigbinary/neeto-icons/ListDot');
46
- require('@bigbinary/neeto-icons/ListNumber');
47
- require('@bigbinary/neeto-icons/ImageUpload');
48
- require('@bigbinary/neeto-icons/Video');
49
- require('@bigbinary/neeto-icons/Undo');
50
- require('@bigbinary/neeto-icons/Redo');
51
- require('@bigbinary/neeto-icons/Email');
52
- require('@bigbinary/neetoui/Avatar');
53
- require('@bigbinary/neetoui/Typography');
54
- require('@bigbinary/neeto-icons/Smiley');
55
- require('@babel/runtime/helpers/asyncToGenerator');
56
- require('@babel/runtime/helpers/classCallCheck');
57
- require('@babel/runtime/helpers/createClass');
58
- require('@babel/runtime/helpers/possibleConstructorReturn');
59
- require('@babel/runtime/helpers/getPrototypeOf');
60
- require('@babel/runtime/helpers/inherits');
61
- require('@babel/runtime/regenerator');
62
- require('emoji-mart');
63
- require('axios');
64
- require('@bigbinary/neeto-commons-frontend/react-utils');
65
- require('@bigbinary/neeto-icons/Customize');
66
- require('@bigbinary/neeto-icons/Refresh');
67
- require('@bigbinary/neetoui/Input');
68
- require('react-colorful');
69
- require('@babel/runtime/helpers/objectWithoutProperties');
70
- require('@bigbinary/neeto-image-uploader-frontend');
71
- require('@bigbinary/neetoui/Modal');
72
- require('@bigbinary/neetoui/Tab');
73
- require('@bigbinary/neetoui/Toastr');
74
- require('./chunk-COT7CF-z.cjs.js');
75
- require('zustand/shallow');
76
- require('zustand');
77
- require('./chunk-B83fTs8d.cjs.js');
78
- require('@bigbinary/neeto-icons/LeftAlign');
79
- require('@bigbinary/neeto-icons/CenterAlign');
80
- require('@bigbinary/neeto-icons/RightAlign');
81
- require('@bigbinary/neeto-icons/Delete');
82
- require('@bigbinary/neeto-icons/CustomSize');
83
- require('@bigbinary/neeto-icons/BorderDisable');
84
- require('@bigbinary/neeto-icons/BorderEnable');
85
- require('@bigbinary/neeto-icons/AspectRatio11');
86
- require('@bigbinary/neeto-icons/AspectRatio169');
87
- require('@bigbinary/neeto-icons/AspectRatio916');
88
- require('@bigbinary/neeto-icons/AspectRatio43');
89
- require('@bigbinary/neeto-icons/AspectRatio32');
90
- require('@bigbinary/neeto-commons-frontend/initializers');
91
- require('yup');
92
- require('@bigbinary/neetoui/Tooltip');
93
- require('@bigbinary/neetoui/formik/Form');
94
- require('@bigbinary/neetoui/formik/Input');
95
- require('@bigbinary/neetoui/formik/ActionBlock');
96
- require('@bigbinary/neetoui/Checkbox');
97
- require('@bigbinary/neeto-icons/Checkbox');
98
- require('@bigbinary/neeto-icons/File');
99
- require('@bigbinary/neeto-icons/Flag');
100
- require('@bigbinary/neeto-icons/misc/Info');
101
- require('@bigbinary/neeto-icons/misc/Warning');
102
- require('@bigbinary/neeto-icons/misc/Danger');
103
- require('@bigbinary/neeto-icons/misc/Megaphone');
104
- require('@bigbinary/neeto-icons/misc/Success');
105
- require('@bigbinary/neeto-icons/MenuHorizontal');
106
- require('@bigbinary/neeto-molecules/DynamicVariables');
107
- require('@tippyjs/react');
108
-
109
-
110
-
111
- module.exports = Menu.Menu;
112
- //# sourceMappingURL=Menu.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Menu.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,92 +0,0 @@
1
- 'use strict';
2
-
3
- var ramda = require('ramda');
4
-
5
- var EDITOR_OPTIONS = {
6
- // DEFAULT EDITOR OPTIONS
7
- BOLD: "bold",
8
- ITALIC: "italic",
9
- UNDERLINE: "underline",
10
- STRIKETHROUGH: "strike",
11
- LINK: "link",
12
- PARAGRAPH: "paragraph",
13
- H1: "h1",
14
- H2: "h2",
15
- H3: "h3",
16
- H4: "h4",
17
- H5: "h5",
18
- H6: "h6",
19
- LIST_BULLETS: "bullet-list",
20
- LIST_ORDERED: "ordered-list",
21
- CODE: "code",
22
- // ADDON EDITOR OPTIONS
23
- CODE_BLOCK: "code-block",
24
- BLOCKQUOTE: "block-quote",
25
- CALLOUT: "callout",
26
- ATTACHMENTS: "attachments",
27
- TODO_LIST: "todo-list",
28
- UNDO: "undo",
29
- REDO: "redo",
30
- HIGHLIGHT: "highlight",
31
- EMOJI: "emoji",
32
- IMAGE_UPLOAD: "image-upload",
33
- IMAGE_UPLOAD_UNSPLASH: "image-upload-unsplash",
34
- VIDEO_UPLOAD: "video-upload",
35
- DIVIDER: "divider",
36
- PASTE_UNFORMATTED: "paste-unformatted",
37
- TABLE: "table",
38
- TEXT_COLOR: "text-color",
39
- NEETO_KB_ARTICLE: "neeto-kb-article"
40
- };
41
- var DIRECT_UPLOAD_ENDPOINT = "/api/direct_uploads";
42
- var URL_REGEXP = /[(http(s)?)://(www.)?a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/;
43
-
44
- // HTTP/HTTPS/FTP with :// or Non-slash protocols like mailto:, tel: or Domain without protocol
45
- var ALL_PROTOCOL_URL_REGEXP = /^[a-zA-Z]\w*:\/\/[a-zA-Z0-9@:%._+~#=-]{2,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)|^[a-zA-Z]\w*:[^//][a-zA-Z0-9@:%._+~#=?&-]*|^[a-zA-Z0-9@:%._+~#=-]{2,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/i;
46
- var YOUTUBE_URL_REGEXP = /^((?:https?:)?\/\/)?((?:www|m)\.)?((?:youtube\.com|youtu.be))(\/(?:[\w-]+\?v=|embed\/|v\/)?)([\w-]+)(\S*?)(\?[^#]*)?$/;
47
- var VIMEO_URL_REGEXP = /((?:http|https):\/\/)?(www\.|player\.)?vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^/]*)\/videos\/|(?:manage\/)?videos?\/|)(\d+)(?:(?:\/|\?h=)(\w+))?(?:|\/\?)(\?[^#]*)?/;
48
- var LOOM_URL_REGEXP = /((?:http|https):\/\/)?(www\.)?loom\.com\/(share|embed)\/([a-f0-9]{32})(?:\?sid=([a-f0-9-]{36}))?(?:\?t=(\d+))?(\?[^#]*)?/;
49
- var NEETO_RECORD_URL_REGEXP = /((?:http|https):\/\/)?(www\.)?[a-zA-Z0-9-]+\.(neetorecord\.com)\/(watch)\/([^/\s?#]+)/;
50
- var NEETO_RECORD_CUSTOM_DOMAIN_URL_REGEXP = /((?:http|https):\/\/)?(www\.)?(\w+(?:[\w-]*\w)?(?:\.\w+(?:[\w-]*\w)?)+)\/(watch)\/([^/\s?#]+)/;
51
- var SUPA_DEMO_URL_REGEXP = /((?:http|https):\/\/)?(www\.)?([a-zA-Z0-9-]+)\.([a-zA-Z0-9-]+\.[a-zA-Z0-9-]+)\/(demo|embed)\/([0-9a-z]+)/;
52
- var COMBINED_REGEX = new RegExp(ramda.pluck("source", [YOUTUBE_URL_REGEXP, VIMEO_URL_REGEXP, LOOM_URL_REGEXP, NEETO_RECORD_URL_REGEXP, NEETO_RECORD_CUSTOM_DOMAIN_URL_REGEXP, SUPA_DEMO_URL_REGEXP]).join("|"), "g");
53
- var URL_VALIDATORS = {
54
- youtube: function youtube(url) {
55
- var match = url.match(YOUTUBE_URL_REGEXP);
56
- return match && "https://www.youtube.com/embed/".concat(match[5]);
57
- },
58
- vimeo: function vimeo(url) {
59
- var match = url.match(VIMEO_URL_REGEXP);
60
- return match && "https://player.vimeo.com/video/".concat(match[4], "?h=").concat(match[5]);
61
- },
62
- loom: function loom(url) {
63
- var match = url.match(LOOM_URL_REGEXP);
64
- return match && "https://www.loom.com/embed/".concat(match[4], "?t=").concat(match[5] || "");
65
- },
66
- neetoRecord: function neetoRecord(url) {
67
- var match = url.match(NEETO_RECORD_URL_REGEXP);
68
- return match && url.replace("watch", "embeds");
69
- },
70
- neetoRecordCustom: function neetoRecordCustom(url) {
71
- var match = url.match(NEETO_RECORD_CUSTOM_DOMAIN_URL_REGEXP);
72
- return match && url.replace("watch", "embeds");
73
- },
74
- supademo: function supademo(url) {
75
- var match = url.match(SUPA_DEMO_URL_REGEXP);
76
- return match && "https://".concat(match[3], ".").concat(match[4], "/embed/").concat(match[6], "?embed_v=2");
77
- }
78
- };
79
- var EDITOR_SIZES = {
80
- MEDIUM: "medium",
81
- LARGE: "large",
82
- SMALL: "small"
83
- };
84
-
85
- exports.ALL_PROTOCOL_URL_REGEXP = ALL_PROTOCOL_URL_REGEXP;
86
- exports.COMBINED_REGEX = COMBINED_REGEX;
87
- exports.DIRECT_UPLOAD_ENDPOINT = DIRECT_UPLOAD_ENDPOINT;
88
- exports.EDITOR_OPTIONS = EDITOR_OPTIONS;
89
- exports.EDITOR_SIZES = EDITOR_SIZES;
90
- exports.URL_REGEXP = URL_REGEXP;
91
- exports.URL_VALIDATORS = URL_VALIDATORS;
92
- //# sourceMappingURL=chunk-2HrSPdAV.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chunk-2HrSPdAV.cjs.js","sources":["../../src/common/constants.js"],"sourcesContent":["import { pluck } from \"ramda\";\n\nexport const EDITOR_OPTIONS = {\n // DEFAULT EDITOR OPTIONS\n BOLD: \"bold\",\n ITALIC: \"italic\",\n UNDERLINE: \"underline\",\n STRIKETHROUGH: \"strike\",\n LINK: \"link\",\n PARAGRAPH: \"paragraph\",\n H1: \"h1\",\n H2: \"h2\",\n H3: \"h3\",\n H4: \"h4\",\n H5: \"h5\",\n H6: \"h6\",\n LIST_BULLETS: \"bullet-list\",\n LIST_ORDERED: \"ordered-list\",\n CODE: \"code\",\n\n // ADDON EDITOR OPTIONS\n CODE_BLOCK: \"code-block\",\n BLOCKQUOTE: \"block-quote\",\n CALLOUT: \"callout\",\n ATTACHMENTS: \"attachments\",\n TODO_LIST: \"todo-list\",\n UNDO: \"undo\",\n REDO: \"redo\",\n HIGHLIGHT: \"highlight\",\n EMOJI: \"emoji\",\n IMAGE_UPLOAD: \"image-upload\",\n IMAGE_UPLOAD_UNSPLASH: \"image-upload-unsplash\",\n VIDEO_UPLOAD: \"video-upload\",\n DIVIDER: \"divider\",\n PASTE_UNFORMATTED: \"paste-unformatted\",\n TABLE: \"table\",\n TEXT_COLOR: \"text-color\",\n NEETO_KB_ARTICLE: \"neeto-kb-article\",\n};\n\nexport const UNSPLASH_BASE_URL = \"https://api.unsplash.com/search/photos\";\n\nexport const DIRECT_UPLOAD_ENDPOINT = \"/api/direct_uploads\";\n\nexport const URL_REGEXP =\n /[(http(s)?)://(www.)?a-zA-Z0-9@:%._+~#=]{2,256}\\.[a-z]{2,63}\\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/;\n\n// HTTP/HTTPS/FTP with :// or Non-slash protocols like mailto:, tel: or Domain without protocol\nexport const ALL_PROTOCOL_URL_REGEXP =\n /^[a-zA-Z]\\w*:\\/\\/[a-zA-Z0-9@:%._+~#=-]{2,256}\\.[a-z]{2,63}\\b([-a-zA-Z0-9@:%_+.~#?&//=]*)|^[a-zA-Z]\\w*:[^//][a-zA-Z0-9@:%._+~#=?&-]*|^[a-zA-Z0-9@:%._+~#=-]{2,256}\\.[a-z]{2,63}\\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/i;\n\nexport const YOUTUBE_URL_REGEXP =\n /^((?:https?:)?\\/\\/)?((?:www|m)\\.)?((?:youtube\\.com|youtu.be))(\\/(?:[\\w-]+\\?v=|embed\\/|v\\/)?)([\\w-]+)(\\S*?)(\\?[^#]*)?$/;\n\nexport const VIMEO_URL_REGEXP =\n /((?:http|https):\\/\\/)?(www\\.|player\\.)?vimeo\\.com\\/(?:channels\\/(?:\\w+\\/)?|groups\\/([^/]*)\\/videos\\/|(?:manage\\/)?videos?\\/|)(\\d+)(?:(?:\\/|\\?h=)(\\w+))?(?:|\\/\\?)(\\?[^#]*)?/;\n\nexport const LOOM_URL_REGEXP =\n /((?:http|https):\\/\\/)?(www\\.)?loom\\.com\\/(share|embed)\\/([a-f0-9]{32})(?:\\?sid=([a-f0-9-]{36}))?(?:\\?t=(\\d+))?(\\?[^#]*)?/;\n\nexport const NEETO_RECORD_URL_REGEXP =\n /((?:http|https):\\/\\/)?(www\\.)?[a-zA-Z0-9-]+\\.(neetorecord\\.com)\\/(watch)\\/([^/\\s?#]+)/;\n\nexport const NEETO_RECORD_CUSTOM_DOMAIN_URL_REGEXP =\n /((?:http|https):\\/\\/)?(www\\.)?(\\w+(?:[\\w-]*\\w)?(?:\\.\\w+(?:[\\w-]*\\w)?)+)\\/(watch)\\/([^/\\s?#]+)/;\n\nexport const SUPA_DEMO_URL_REGEXP =\n /((?:http|https):\\/\\/)?(www\\.)?([a-zA-Z0-9-]+)\\.([a-zA-Z0-9-]+\\.[a-zA-Z0-9-]+)\\/(demo|embed)\\/([0-9a-z]+)/;\n\nexport const COMBINED_REGEX = new RegExp(\n pluck(\"source\", [\n YOUTUBE_URL_REGEXP,\n VIMEO_URL_REGEXP,\n LOOM_URL_REGEXP,\n NEETO_RECORD_URL_REGEXP,\n NEETO_RECORD_CUSTOM_DOMAIN_URL_REGEXP,\n SUPA_DEMO_URL_REGEXP,\n ]).join(\"|\"),\n \"g\"\n);\n\nexport const URL_VALIDATORS = {\n youtube: url => {\n const match = url.match(YOUTUBE_URL_REGEXP);\n\n return match && `https://www.youtube.com/embed/${match[5]}`;\n },\n vimeo: url => {\n const match = url.match(VIMEO_URL_REGEXP);\n\n return match && `https://player.vimeo.com/video/${match[4]}?h=${match[5]}`;\n },\n loom: url => {\n const match = url.match(LOOM_URL_REGEXP);\n\n return (\n match && `https://www.loom.com/embed/${match[4]}?t=${match[5] || \"\"}`\n );\n },\n neetoRecord: url => {\n const match = url.match(NEETO_RECORD_URL_REGEXP);\n\n return match && url.replace(\"watch\", \"embeds\");\n },\n neetoRecordCustom: url => {\n const match = url.match(NEETO_RECORD_CUSTOM_DOMAIN_URL_REGEXP);\n\n return match && url.replace(\"watch\", \"embeds\");\n },\n supademo: url => {\n const match = url.match(SUPA_DEMO_URL_REGEXP);\n\n return (\n match && `https://${match[3]}.${match[4]}/embed/${match[6]}?embed_v=2`\n );\n },\n};\n\nexport const EDITOR_SIZES = {\n MEDIUM: \"medium\",\n LARGE: \"large\",\n SMALL: \"small\",\n};\n"],"names":["EDITOR_OPTIONS","BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","LINK","PARAGRAPH","H1","H2","H3","H4","H5","H6","LIST_BULLETS","LIST_ORDERED","CODE","CODE_BLOCK","BLOCKQUOTE","CALLOUT","ATTACHMENTS","TODO_LIST","UNDO","REDO","HIGHLIGHT","EMOJI","IMAGE_UPLOAD","IMAGE_UPLOAD_UNSPLASH","VIDEO_UPLOAD","DIVIDER","PASTE_UNFORMATTED","TABLE","TEXT_COLOR","NEETO_KB_ARTICLE","DIRECT_UPLOAD_ENDPOINT","URL_REGEXP","ALL_PROTOCOL_URL_REGEXP","YOUTUBE_URL_REGEXP","VIMEO_URL_REGEXP","LOOM_URL_REGEXP","NEETO_RECORD_URL_REGEXP","NEETO_RECORD_CUSTOM_DOMAIN_URL_REGEXP","SUPA_DEMO_URL_REGEXP","COMBINED_REGEX","RegExp","pluck","join","URL_VALIDATORS","youtube","url","match","concat","vimeo","loom","neetoRecord","replace","neetoRecordCustom","supademo","EDITOR_SIZES","MEDIUM","LARGE","SMALL"],"mappings":";;;;AAEO,IAAMA,cAAc,GAAG;AAC5B;AACAC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,SAAS,EAAE,WAAW;AACtBC,EAAAA,aAAa,EAAE,QAAQ;AACvBC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,SAAS,EAAE,WAAW;AACtBC,EAAAA,EAAE,EAAE,IAAI;AACRC,EAAAA,EAAE,EAAE,IAAI;AACRC,EAAAA,EAAE,EAAE,IAAI;AACRC,EAAAA,EAAE,EAAE,IAAI;AACRC,EAAAA,EAAE,EAAE,IAAI;AACRC,EAAAA,EAAE,EAAE,IAAI;AACRC,EAAAA,YAAY,EAAE,aAAa;AAC3BC,EAAAA,YAAY,EAAE,cAAc;AAC5BC,EAAAA,IAAI,EAAE,MAAM;AAEZ;AACAC,EAAAA,UAAU,EAAE,YAAY;AACxBC,EAAAA,UAAU,EAAE,aAAa;AACzBC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,WAAW,EAAE,aAAa;AAC1BC,EAAAA,SAAS,EAAE,WAAW;AACtBC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,SAAS,EAAE,WAAW;AACtBC,EAAAA,KAAK,EAAE,OAAO;AACdC,EAAAA,YAAY,EAAE,cAAc;AAC5BC,EAAAA,qBAAqB,EAAE,uBAAuB;AAC9CC,EAAAA,YAAY,EAAE,cAAc;AAC5BC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,iBAAiB,EAAE,mBAAmB;AACtCC,EAAAA,KAAK,EAAE,OAAO;AACdC,EA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