rme 0.0.27 → 0.0.29
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.mjs +7 -4
- package/dist/index.mjs.map +2 -2
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -14720,11 +14720,11 @@ import { insertPoint } from "@remirror/pm/transform";
|
|
|
14720
14720
|
import { ExtensionImageTheme } from "@remirror/theme";
|
|
14721
14721
|
|
|
14722
14722
|
// src/editor/extensions/Image/image-nodeview.tsx
|
|
14723
|
-
import { Image, Popover } from "
|
|
14723
|
+
import { Image, Popover } from "zens";
|
|
14724
14724
|
|
|
14725
14725
|
// src/editor/extensions/Image/image-tool-tips.tsx
|
|
14726
14726
|
import { useState } from "react";
|
|
14727
|
-
import { Input, Space, Tooltip } from "
|
|
14727
|
+
import { Input, Space, Tooltip } from "zens";
|
|
14728
14728
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
14729
14729
|
var ImageToolTips = (props) => {
|
|
14730
14730
|
const { node } = props;
|
|
@@ -15538,7 +15538,7 @@ import {
|
|
|
15538
15538
|
} from "@remirror/core";
|
|
15539
15539
|
|
|
15540
15540
|
// src/editor/extensions/Iframe/Iframe-nodeview.tsx
|
|
15541
|
-
import { Popover as Popover2 } from "
|
|
15541
|
+
import { Popover as Popover2 } from "zens";
|
|
15542
15542
|
import { useRef as useRef3 } from "react";
|
|
15543
15543
|
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
15544
15544
|
function IframeNodeView(props) {
|
|
@@ -16720,6 +16720,9 @@ var MenuItem2 = styled10.li.attrs((props) => ({
|
|
|
16720
16720
|
import { Fragment as Fragment5, jsx as jsx16 } from "react/jsx-runtime";
|
|
16721
16721
|
var SlashMenu = () => {
|
|
16722
16722
|
const { view: editorView, getState, commands } = useRemirrorContext2({ autoUpdate: true });
|
|
16723
|
+
if (!editorView) {
|
|
16724
|
+
return;
|
|
16725
|
+
}
|
|
16723
16726
|
const editorState = getState();
|
|
16724
16727
|
const slashMenuExtension = useExtension(SlashMenuExtension);
|
|
16725
16728
|
const menuState = slashMenuExtension.getPluginState();
|
|
@@ -16842,10 +16845,10 @@ var WysiwygEditor = (props) => {
|
|
|
16842
16845
|
editable,
|
|
16843
16846
|
onChange: handleChange,
|
|
16844
16847
|
children: [
|
|
16848
|
+
/* @__PURE__ */ jsx17(Text_default, {}),
|
|
16845
16849
|
/* @__PURE__ */ jsx17(TableToolbar_default, {}),
|
|
16846
16850
|
/* @__PURE__ */ jsx17(SlashMenu, {}),
|
|
16847
16851
|
wysiwygToolBar || null,
|
|
16848
|
-
/* @__PURE__ */ jsx17(Text_default, {}),
|
|
16849
16852
|
isTesting ? /* @__PURE__ */ jsx17(ProsemirrorDevTools, {}) : null
|
|
16850
16853
|
]
|
|
16851
16854
|
}
|