@bigbinary/neeto-editor 1.28.11 → 1.28.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -12,6 +12,7 @@ import { useFuncDebounce, useOnClickOutside } from '@bigbinary/neeto-commons-fro
12
12
  import CopyToClipboardButton from '@bigbinary/neeto-molecules/CopyToClipboardButton';
13
13
  import DynamicVariables from '@bigbinary/neeto-molecules/DynamicVariables';
14
14
  import { FastField } from 'formik';
15
+ import { createRoot } from 'react-dom/client';
15
16
 
16
17
  // ::- Persistent data structure representing an ordered mapping from
17
18
  // strings to values, with some convenient update methods.
@@ -6517,7 +6518,7 @@ var DIRECT_UPLOAD_ENDPOINT = "/api/direct_uploads";
6517
6518
  var URL_REGEXP = /[(http(s)?)://(www.)?a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/;
6518
6519
  var YOUTUBE_URL_REGEXP = /^((?:https?:)?\/\/)?((?:www|m)\.)?((?:youtube\.com|youtu.be))(\/(?:[\w-]+\?v=|embed\/|v\/)?)([\w-]+)(\S+)?$/;
6519
6520
  var VIMEO_URL_REGEXP = /((?:http|https):\/\/)?(www\.|player\.)?vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^/]*)\/videos\/|(?:manage\/)?videos?\/|)(\d+)(?:(?:\/|\?h=)(\w+))?(?:|\/\?)/;
6520
- var LOOM_URL_REGEXP = /((?:http|https):\/\/)?(www\.)?loom\.com\/(share|embed)\/((?:\w|\d)*)\/?(?:\?(?:t=)?(\d+)?)?/;
6521
+ var LOOM_URL_REGEXP = /((?:http|https):\/\/)?(www\.)?loom\.com\/(share|embed)\/([a-f0-9]{32})(?:\?sid=([a-f0-9-]{36}))?(?:\?t=(\d+))?/;
6521
6522
  var COMBINED_REGEX = new RegExp(pluck("source", [YOUTUBE_URL_REGEXP, VIMEO_URL_REGEXP, LOOM_URL_REGEXP]).join("|"), "g");
6522
6523
 
6523
6524
  var DEFAULT_EDITOR_OPTIONS = [EDITOR_OPTIONS.BOLD, EDITOR_OPTIONS.ITALIC, EDITOR_OPTIONS.UNDERLINE, EDITOR_OPTIONS.STRIKETHROUGH, EDITOR_OPTIONS.LINK, EDITOR_OPTIONS.PARAGRAPH, EDITOR_OPTIONS.H1, EDITOR_OPTIONS.H2, EDITOR_OPTIONS.LIST_BULLETS, EDITOR_OPTIONS.LIST_ORDERED, EDITOR_OPTIONS.CODE];
@@ -98677,11 +98678,12 @@ var EditorContent = function EditorContent(_ref) {
98677
98678
  preTags.forEach(function (preTag) {
98678
98679
  var button = document.createElement("div");
98679
98680
  button.className = "neeto-editor-codeblock-options";
98680
- ReactDOM.render( /*#__PURE__*/React__default.createElement(CopyToClipboardButton, {
98681
+ var root = createRoot(button);
98682
+ root.render( /*#__PURE__*/React__default.createElement(CopyToClipboardButton, {
98681
98683
  size: "small",
98682
98684
  style: "text",
98683
98685
  value: preTag.textContent
98684
- }), button);
98686
+ }));
98685
98687
  preTag.appendChild(button);
98686
98688
  });
98687
98689
  };