@portabletext/editor 8.1.7 → 8.1.8

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/lib/index.js CHANGED
@@ -13,7 +13,7 @@ import { compileSchema, defineSchema, getSubSchema, isSpan, isTextBlock } from "
13
13
  import scrollIntoView from "scroll-into-view-if-needed";
14
14
  import { bold, code, createKeyboardShortcut, italic, redo, underline, undo } from "@portabletext/keyboard-shortcuts";
15
15
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
16
- import rawDebug from "debug";
16
+ import { createDebug, enabled } from "obug";
17
17
  import { and, assertEvent, assign, createActor, emit, enqueueActions, fromCallback, not, raise, setup } from "xstate";
18
18
  import { htmlToPortableText } from "@portabletext/html";
19
19
  import { toHTML } from "@portabletext/to-html";
@@ -3779,7 +3779,7 @@ function toRange(editor, target) {
3779
3779
  const rootName = "pte:";
3780
3780
  function createDebugger(name) {
3781
3781
  let namespace = `${rootName}${name}`;
3782
- return rawDebug && rawDebug.enabled(namespace) ? rawDebug(namespace) : rawDebug(rootName);
3782
+ return enabled(namespace) ? createDebug(namespace) : createDebug(rootName);
3783
3783
  }
3784
3784
  const debug = {
3785
3785
  behaviors: createDebugger("behaviors"),