@byline/richtext-lexical 2.2.3 → 2.2.5
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.
|
@@ -16,6 +16,9 @@ import { ContentEditable } from "../../content-editable.js";
|
|
|
16
16
|
import { useSharedHistoryContext } from "../../context/shared-history-context.js";
|
|
17
17
|
import { useSharedOnChange } from "../../context/shared-on-change-context.js";
|
|
18
18
|
import { Placeholder } from "../../ui/placeholder.js";
|
|
19
|
+
import { FloatingTextFormatToolbarPlugin } from "../floating-text-format/index.js";
|
|
20
|
+
import { FloatingLinkEditorPlugin } from "../link/floating-link-editor.js";
|
|
21
|
+
import { LinkPlugin } from "../link/link-extension.js";
|
|
19
22
|
import { AdmonitionModal } from "./admonition-modal.js";
|
|
20
23
|
import { $isAdmonitionNode } from "./admonition-node.js";
|
|
21
24
|
import { DangerIcon, NoteIcon, TipIcon, WarningIcon } from "./icons/index.js";
|
|
@@ -157,6 +160,9 @@ function AdmonitionNodeComponent({ admonitionType, title, content, nodeKey }) {
|
|
|
157
160
|
if (null != onChange) onChange(editorState, editor, nestedTags);
|
|
158
161
|
}
|
|
159
162
|
}),
|
|
163
|
+
/*#__PURE__*/ jsx(LinkPlugin, {}),
|
|
164
|
+
/*#__PURE__*/ jsx(FloatingLinkEditorPlugin, {}),
|
|
165
|
+
/*#__PURE__*/ jsx(FloatingTextFormatToolbarPlugin, {}),
|
|
160
166
|
/*#__PURE__*/ jsx(HistoryPlugin, {
|
|
161
167
|
externalHistoryState: historyState
|
|
162
168
|
}),
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"private": false,
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
|
-
"version": "2.2.
|
|
6
|
+
"version": "2.2.5",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=20.9.0"
|
|
9
9
|
},
|
|
@@ -72,9 +72,9 @@
|
|
|
72
72
|
"npm-run-all": "^4.1.5",
|
|
73
73
|
"prism-react-renderer": "^2.4.1",
|
|
74
74
|
"react-error-boundary": "^6.1.1",
|
|
75
|
-
"@byline/client": "2.2.
|
|
76
|
-
"@byline/core": "2.2.
|
|
77
|
-
"@byline/ui": "2.2.
|
|
75
|
+
"@byline/client": "2.2.5",
|
|
76
|
+
"@byline/core": "2.2.5",
|
|
77
|
+
"@byline/ui": "2.2.5"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
80
|
"react": "^19.0.0",
|
|
@@ -35,12 +35,13 @@ import {
|
|
|
35
35
|
} from 'lexical'
|
|
36
36
|
|
|
37
37
|
import { useEditorConfig } from '../../config/editor-config-context'
|
|
38
|
-
// import { LinkPlugin } from '../link/link-extension'
|
|
39
|
-
// import { FloatingLinkEditorPlugin } from '../link/floating-link-editor'
|
|
40
38
|
import { ContentEditable } from '../../content-editable'
|
|
41
39
|
import { useSharedHistoryContext } from '../../context/shared-history-context'
|
|
42
40
|
import { useSharedOnChange } from '../../context/shared-on-change-context'
|
|
43
41
|
import { Placeholder } from '../../ui/placeholder'
|
|
42
|
+
import { FloatingTextFormatToolbarPlugin } from '../floating-text-format'
|
|
43
|
+
import { FloatingLinkEditorPlugin } from '../link/floating-link-editor'
|
|
44
|
+
import { LinkPlugin } from '../link/link-extension'
|
|
44
45
|
import { AdmonitionModal } from './admonition-modal'
|
|
45
46
|
import { $isAdmonitionNode } from './admonition-node'
|
|
46
47
|
import { DangerIcon, NoteIcon, TipIcon, WarningIcon } from './icons'
|
|
@@ -228,9 +229,9 @@ export default function AdmonitionNodeComponent({
|
|
|
228
229
|
if (onChange != null) onChange(editorState, editor, nestedTags)
|
|
229
230
|
}}
|
|
230
231
|
/>
|
|
231
|
-
|
|
232
|
+
<LinkPlugin />
|
|
232
233
|
<FloatingLinkEditorPlugin />
|
|
233
|
-
<FloatingTextFormatToolbarPlugin />
|
|
234
|
+
<FloatingTextFormatToolbarPlugin />
|
|
234
235
|
<HistoryPlugin externalHistoryState={historyState} />
|
|
235
236
|
<RichTextPlugin
|
|
236
237
|
contentEditable={<ContentEditable className="AdmonitionNode__contentEditable" />}
|