@bigbinary/neeto-editor 1.47.108 → 1.47.109

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/dist/Attachments.js +52 -0
  2. package/dist/Attachments.js.map +1 -0
  3. package/dist/Editor.js +22376 -0
  4. package/dist/Editor.js.map +1 -0
  5. package/dist/EditorContent.js +250 -0
  6. package/dist/EditorContent.js.map +1 -0
  7. package/dist/FormikEditor.js +199 -0
  8. package/dist/FormikEditor.js.map +1 -0
  9. package/dist/Menu.js +106 -0
  10. package/dist/Menu.js.map +1 -0
  11. package/dist/chunk-BFTU3MAI.js +8 -0
  12. package/dist/chunk-BFTU3MAI.js.map +1 -0
  13. package/dist/chunk-BJhk4N3E.js +25765 -0
  14. package/dist/chunk-BJhk4N3E.js.map +1 -0
  15. package/dist/chunk-BR5ZkH7J.js +16238 -0
  16. package/dist/chunk-BR5ZkH7J.js.map +1 -0
  17. package/dist/chunk-C2dztUxs.js +4 -0
  18. package/dist/chunk-C2dztUxs.js.map +1 -0
  19. package/dist/chunk-CAGz17QN.js +571 -0
  20. package/dist/chunk-CAGz17QN.js.map +1 -0
  21. package/dist/chunk-CUwAOdCi.js +12640 -0
  22. package/dist/chunk-CUwAOdCi.js.map +1 -0
  23. package/dist/chunk-DNMH2cJJ.js +84 -0
  24. package/dist/chunk-DNMH2cJJ.js.map +1 -0
  25. package/dist/chunk-Dq9G_Haj.js +6729 -0
  26. package/dist/chunk-Dq9G_Haj.js.map +1 -0
  27. package/dist/chunk-DxGDZoUl.js +19 -0
  28. package/dist/chunk-DxGDZoUl.js.map +1 -0
  29. package/dist/chunk-sfpDYWCU.js +19022 -0
  30. package/dist/chunk-sfpDYWCU.js.map +1 -0
  31. package/dist/chunk-zRPC4lVr.js +9073 -0
  32. package/dist/chunk-zRPC4lVr.js.map +1 -0
  33. package/dist/cjs/Attachments.cjs.js +58 -0
  34. package/dist/cjs/Attachments.cjs.js.map +1 -0
  35. package/dist/cjs/Editor.cjs.js +22473 -0
  36. package/dist/cjs/Editor.cjs.js.map +1 -0
  37. package/dist/cjs/EditorContent.cjs.js +264 -0
  38. package/dist/cjs/EditorContent.cjs.js.map +1 -0
  39. package/dist/cjs/FormikEditor.cjs.js +206 -0
  40. package/dist/cjs/FormikEditor.cjs.js.map +1 -0
  41. package/dist/cjs/Menu.cjs.js +112 -0
  42. package/dist/cjs/Menu.cjs.js.map +1 -0
  43. package/dist/cjs/chunk-2HrSPdAV.cjs.js +92 -0
  44. package/dist/cjs/chunk-2HrSPdAV.cjs.js.map +1 -0
  45. package/dist/cjs/chunk-8GIxbIj_.cjs.js +597 -0
  46. package/dist/cjs/chunk-8GIxbIj_.cjs.js.map +1 -0
  47. package/dist/cjs/chunk-B6qYtOJe.cjs.js +6 -0
  48. package/dist/cjs/chunk-B6qYtOJe.cjs.js.map +1 -0
  49. package/dist/cjs/chunk-BGy3NmZC.cjs.js +49 -0
  50. package/dist/cjs/chunk-BGy3NmZC.cjs.js.map +1 -0
  51. package/dist/cjs/chunk-BJu3ubxk.cjs.js +11 -0
  52. package/dist/cjs/chunk-BJu3ubxk.cjs.js.map +1 -0
  53. package/dist/cjs/chunk-BzUZpT8V.cjs.js +6770 -0
  54. package/dist/cjs/chunk-BzUZpT8V.cjs.js.map +1 -0
  55. package/dist/cjs/chunk-CSn1uTr2.cjs.js +12645 -0
  56. package/dist/cjs/chunk-CSn1uTr2.cjs.js.map +1 -0
  57. package/dist/cjs/chunk-CdckCFos.cjs.js +25777 -0
  58. package/dist/cjs/chunk-CdckCFos.cjs.js.map +1 -0
  59. package/dist/cjs/chunk-De3nCFAF.cjs.js +16258 -0
  60. package/dist/cjs/chunk-De3nCFAF.cjs.js.map +1 -0
  61. package/dist/cjs/chunk-DjozIdFz.cjs.js +9135 -0
  62. package/dist/cjs/chunk-DjozIdFz.cjs.js.map +1 -0
  63. package/dist/cjs/chunk-krXdNjm-.cjs.js +19151 -0
  64. package/dist/cjs/chunk-krXdNjm-.cjs.js.map +1 -0
  65. package/dist/cjs/constants.cjs.js +13 -0
  66. package/dist/cjs/constants.cjs.js.map +1 -0
  67. package/dist/cjs/index.cjs.js +159 -0
  68. package/dist/cjs/index.cjs.js.map +1 -0
  69. package/dist/cjs/utils.cjs.js +27 -0
  70. package/dist/cjs/utils.cjs.js.map +1 -0
  71. package/dist/codeblockHighlight.js +15155 -0
  72. package/dist/codeblockHighlight.js.map +1 -0
  73. package/dist/constants.js +6 -0
  74. package/dist/constants.js.map +1 -0
  75. package/dist/editor-content.min.css +1 -0
  76. package/dist/editor-output-pdf-email.css +1 -0
  77. package/dist/editor-output-pdf-email.js +4 -0
  78. package/dist/editor-output-pdf-email.js.map +1 -0
  79. package/dist/editor-output.js +4 -0
  80. package/dist/editor-output.js.map +1 -0
  81. package/dist/editor-stats.html +4842 -0
  82. package/dist/editorUtils.js +170 -0
  83. package/dist/headerLinks.js +59 -0
  84. package/dist/headerLinks.js.map +1 -0
  85. package/dist/index.js +142 -0
  86. package/dist/index.js.map +1 -0
  87. package/dist/utils.js +15 -0
  88. package/dist/utils.js.map +1 -0
  89. package/package.json +3 -2
@@ -0,0 +1,112 @@
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-krXdNjm-.cjs.js');
9
+ require('./chunk-BGy3NmZC.cjs.js');
10
+ require('react/jsx-runtime');
11
+ require('./chunk-B6qYtOJe.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-BzUZpT8V.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-DjozIdFz.cjs.js');
75
+ require('zustand/shallow');
76
+ require('zustand');
77
+ require('./chunk-BJu3ubxk.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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Menu.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,92 @@
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
@@ -0,0 +1 @@
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;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