@openeditor/react 0.0.24 → 0.0.26
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/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { DEFAULT_CALLOUT_EMOJI, normalizeEmoji, DEFAULT_PAGE_EMOJI, normalizeDocument, toProseMirrorDocument, createBlockRegistry, fromProseMirrorDocument, findBlockSpecForNode } from '@openeditor/core';
|
|
1
|
+
import { DEFAULT_CALLOUT_EMOJI, normalizeEmoji, DEFAULT_PAGE_EMOJI, normalizeDocument, toProseMirrorDocument, createDocument as createDocument$1, createBlockRegistry, fromProseMirrorDocument, findBlockSpecForNode } from '@openeditor/core';
|
|
2
2
|
import { Checkbox } from '@base-ui/react/checkbox';
|
|
3
3
|
import { OpenEditorEmojiPicker } from '@openeditor/emoji';
|
|
4
4
|
import React, { createContext, forwardRef, useContext, useMemo, createRef, memo, createElement, version, useState, useEffect, useRef, use, useDebugValue, Fragment as Fragment$2, useLayoutEffect } from 'react';
|
|
5
5
|
import { jsxs, Fragment as Fragment$1, jsx } from 'react/jsx-runtime';
|
|
6
6
|
import { renderMermaidSVG } from 'beautiful-mermaid';
|
|
7
7
|
import { toExportBundle } from '@openeditor/exporters';
|
|
8
|
-
import {
|
|
8
|
+
import { openEditorInsertPresets, resolveOpenEditorInsertBlock, defaultBlockRegistry } from '@openeditor/extensions';
|
|
9
9
|
export { seedDocument } from '@openeditor/extensions';
|
|
10
10
|
import ReactDOM, { flushSync, createPortal } from 'react-dom';
|
|
11
11
|
import { useSyncExternalStore } from 'use-sync-external-store/shim/index.js';
|
|
@@ -33262,7 +33262,7 @@ var OPENEDITOR_CLIPBOARD_TYPE = "application/x-openeditor-blocks+json";
|
|
|
33262
33262
|
var OPENEDITOR_WEB_CLIPBOARD_TYPE = `web ${OPENEDITOR_CLIPBOARD_TYPE}`;
|
|
33263
33263
|
var escapeClipboardHtml = (value) => value.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll('"', """);
|
|
33264
33264
|
var useOpenEditorController = ({
|
|
33265
|
-
initialDocument =
|
|
33265
|
+
initialDocument = createDocument$1(),
|
|
33266
33266
|
editable = true,
|
|
33267
33267
|
placeholder = "Type '/' for commands",
|
|
33268
33268
|
onChange,
|