@haklex/rich-editor 0.0.85 → 0.0.86

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.
@@ -14,7 +14,7 @@ import { LexicalNestedComposer } from "@lexical/react/LexicalNestedComposer";
14
14
  import { RichTextPlugin } from "@lexical/react/LexicalRichTextPlugin";
15
15
  import { q as $isAlertQuoteNode, r as AlertRenderer, S as SpoilerNode, M as MentionNode, F as FootnoteNode, k as KaTeXInlineNode, T as TagNode, s as AlertQuoteNode, n as editorTheme } from "./theme-D_efLk4K.js";
16
16
  import { a as RendererWrapper } from "./KaTeXRenderer-CQyQzNTJ.js";
17
- import { CodeNode } from "@lexical/code";
17
+ import { CodeNode } from "@lexical/code-core";
18
18
  import { HorizontalRuleNode } from "@lexical/extension";
19
19
  import { LinkNode, AutoLinkNode } from "@lexical/link";
20
20
  import { ListNode, ListItemNode } from "@lexical/list";
@@ -1,7 +1,7 @@
1
1
  import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
2
2
  import { createCommand, $insertNodes, COMMAND_PRIORITY_EDITOR } from "lexical";
3
3
  import { useEffect } from "react";
4
- import { $ as $createAlertQuoteEditNode } from "./AlertQuoteEditNode-CB8C24Xf.js";
4
+ import { $ as $createAlertQuoteEditNode } from "./AlertQuoteEditNode-DRGnNV2H.js";
5
5
  import { $ as $createImageNode, t as $createKaTeXInlineNode, v as $createKaTeXBlockNode, b as $createMermaidNode } from "./theme-D_efLk4K.js";
6
6
  const INSERT_ALERT_COMMAND = createCommand("INSERT_ALERT");
7
7
  function AlertPlugin() {
@@ -9,13 +9,13 @@ import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext
9
9
  import { useEffect, createContext, use, useRef, useState, useMemo, useCallback } from "react";
10
10
  import { $isQuoteNode, QuoteNode, $createQuoteNode, DRAG_DROP_PASTE } from "@lexical/rich-text";
11
11
  import { KEY_ARROW_RIGHT_COMMAND, $getSelection, $isRangeSelection, COMMAND_PRIORITY_CRITICAL, KEY_ARROW_DOWN_COMMAND, $isDecoratorNode, $isElementNode, $isRootNode, $isParagraphNode, $createParagraphNode, KEY_ENTER_COMMAND, $isNodeSelection, KEY_BACKSPACE_COMMAND, COMMAND_PRIORITY_HIGH, KEY_DELETE_COMMAND, KEY_ARROW_UP_COMMAND, $isTextNode, IS_CODE, $createNodeSelection, $setSelection, $getRoot, COMMAND_PRIORITY_EDITOR, COMMAND_PRIORITY_LOW, $createTextNode, $createLineBreakNode, PASTE_COMMAND, $insertNodes, createEditor, $parseSerializedNode, createState, $getState, $addUpdateTag, $setState, $nodesOfType } from "lexical";
12
- import { b as setCodeBlockCursorIntent, g as getResolvedEditNodes, $ as $createBannerEditNode, d as $createCodeBlockEditNode } from "./node-registry-eMijRh3N.js";
12
+ import { b as setCodeBlockCursorIntent, g as getResolvedEditNodes, $ as $createBannerEditNode, d as $createCodeBlockEditNode } from "./node-registry-h1Ccc6gP.js";
13
13
  import { HorizontalRuleNode, $createHorizontalRuleNode, INSERT_HORIZONTAL_RULE_COMMAND } from "@lexical/extension";
14
14
  import { HORIZONTAL_RULE_BLOCK_TRANSFORMER as HORIZONTAL_RULE_BLOCK_TRANSFORMER$1, GIT_ALERT_TRANSFORMER as GIT_ALERT_TRANSFORMER$1, COMMENT_TRANSFORMER as COMMENT_TRANSFORMER$1, CONTAINER_TRANSFORMER as CONTAINER_TRANSFORMER$1, FOOTNOTE_TRANSFORMER as FOOTNOTE_TRANSFORMER$1, FOOTNOTE_SECTION_TRANSFORMER as FOOTNOTE_SECTION_TRANSFORMER$1, KATEX_INLINE_TRANSFORMER as KATEX_INLINE_TRANSFORMER$1, KATEX_BLOCK_TRANSFORMER as KATEX_BLOCK_TRANSFORMER$1, MENTION_TRANSFORMER as MENTION_TRANSFORMER$1, RUBY_TRANSFORMER as RUBY_TRANSFORMER$1, SPOILER_TRANSFORMER as SPOILER_TRANSFORMER$1, INSERT_TRANSFORMER, SUPERSCRIPT_TRANSFORMER, SUBSCRIPT_TRANSFORMER, IMAGE_BLOCK_TRANSFORMER, VIDEO_BLOCK_TRANSFORMER, CODE_BLOCK_NODE_TRANSFORMER, LINK_CARD_BLOCK_TRANSFORMER, MERMAID_BLOCK_TRANSFORMER, TABLE_BLOCK_TRANSFORMER } from "@haklex/rich-headless/transformers";
15
15
  import { CHECK_LIST, TRANSFORMERS, QUOTE, CODE, $convertFromMarkdownString } from "@lexical/markdown";
16
- import { $ as $createAlertQuoteEditNode } from "./AlertQuoteEditNode-CB8C24Xf.js";
16
+ import { $ as $createAlertQuoteEditNode } from "./AlertQuoteEditNode-DRGnNV2H.js";
17
17
  import { s as AlertQuoteNode, F as FootnoteNode, w as $createFootnoteNode, k as KaTeXInlineNode, K as KaTeXBlockNode, t as $createKaTeXInlineNode, v as $createKaTeXBlockNode, M as MentionNode, a as $createMentionNode, o as extractTextContent, S as SpoilerNode, x as $createSpoilerNode, $ as $createImageNode, O as OPEN_IMAGE_UPLOAD_DIALOG_COMMAND } from "./theme-D_efLk4K.js";
18
- import { v as CodeBlockNode, C as CommentNode, w as $createCommentPlaceholderNode, $ as $createCommentNode, q as BannerNode, D as DetailsNode, x as $createDetailsNode, F as FootnoteSectionNode, f as $isFootnoteSectionNode, a as $createFootnoteSectionNode, g as $isGridContainerNode, R as RubyNode, d as $createRubyNode } from "./config-BulxE6hd.js";
18
+ import { v as CodeBlockNode, C as CommentNode, w as $createCommentPlaceholderNode, $ as $createCommentNode, q as BannerNode, D as DetailsNode, x as $createDetailsNode, F as FootnoteSectionNode, f as $isFootnoteSectionNode, a as $createFootnoteSectionNode, g as $isGridContainerNode, R as RubyNode, d as $createRubyNode } from "./config-Bysik8H3.js";
19
19
  import { $createTableNode, $createTableRowNode, $createTableCellNode, TableCellHeaderStates } from "@lexical/table";
20
20
  import { MarkdownShortcutPlugin } from "@lexical/react/LexicalMarkdownShortcutPlugin";
21
21
  import { nanoid } from "nanoid";
@@ -1,4 +1,4 @@
1
- import { a, b, c, d, e } from "./MermaidPlugin-DfIhGe-1.js";
1
+ import { a, b, c, d, e } from "./MermaidPlugin-B6ZyzOZs.js";
2
2
  import { O, o } from "./theme-D_efLk4K.js";
3
3
  function collectCommandItems(editor) {
4
4
  const items = [];
@@ -1,7 +1,7 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { CodeNode } from "@lexical/code";
4
+ import { CodeNode } from "@lexical/code-core";
5
5
  import { HorizontalRuleNode } from "@lexical/extension";
6
6
  import { LinkNode, AutoLinkNode } from "@lexical/link";
7
7
  import { ListNode, ListItemNode } from "@lexical/list";
package/dist/index.mjs CHANGED
@@ -1,15 +1,15 @@
1
- import { F as FootnotePlugin, O as OnChangePlugin, S as SubmitShortcutPlugin, E as EditorRefPlugin, a as AutoFocusPlugin, d as ImageUploadProvider, g as defaultImageUpload, C as CorePlugins, I as ImageUploadPlugin, L as LinkFaviconPlugin, c as BlockIdPlugin, f as blockIdState } from "./SubmitShortcutPlugin-CkuM_8Wk.js";
1
+ import { F as FootnotePlugin, O as OnChangePlugin, S as SubmitShortcutPlugin, E as EditorRefPlugin, a as AutoFocusPlugin, d as ImageUploadProvider, g as defaultImageUpload, C as CorePlugins, I as ImageUploadPlugin, L as LinkFaviconPlugin, c as BlockIdPlugin, f as blockIdState } from "./SubmitShortcutPlugin-BzLMsEes.js";
2
2
  import { L, P, u } from "./PresentDialogContext-B4E78UB5.js";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
- import { s as setResolvedEditNodes, a as allEditNodes } from "./node-registry-eMijRh3N.js";
5
- import { I as ImagePlugin, K as KaTeXPlugin, A as AlertPlugin, M as MermaidPlugin } from "./MermaidPlugin-DfIhGe-1.js";
4
+ import { s as setResolvedEditNodes, a as allEditNodes } from "./node-registry-h1Ccc6gP.js";
5
+ import { I as ImagePlugin, K as KaTeXPlugin, A as AlertPlugin, M as MermaidPlugin } from "./MermaidPlugin-B6ZyzOZs.js";
6
6
  import { PortalThemeProvider } from "@haklex/rich-style-token";
7
7
  import { LexicalComposer } from "@lexical/react/LexicalComposer";
8
8
  import { LexicalErrorBoundary } from "@lexical/react/LexicalErrorBoundary";
9
9
  import { HistoryPlugin } from "@lexical/react/LexicalHistoryPlugin";
10
10
  import { RichTextPlugin } from "@lexical/react/LexicalRichTextPlugin";
11
- import { n as ColorSchemeProvider } from "./config-BulxE6hd.js";
12
- import { u as u2 } from "./config-BulxE6hd.js";
11
+ import { n as ColorSchemeProvider } from "./config-Bysik8H3.js";
12
+ import { u as u2 } from "./config-Bysik8H3.js";
13
13
  import { R as RendererConfigProvider } from "./KaTeXRenderer-CQyQzNTJ.js";
14
14
  import { F, u as u3, b, d, e, f, g } from "./KaTeXRenderer-CQyQzNTJ.js";
15
15
  import { n as editorTheme } from "./theme-D_efLk4K.js";
@@ -1,8 +1,8 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { o as $isBannerNode, p as BannerRenderer, q as BannerNode, r as normalizeBannerType, s as $isCodeBlockNode, t as CodeBlockRenderer, v as CodeBlockNode, F as FootnoteSectionNode, g as $isGridContainerNode, G as GridContainerNode, l as builtinNodes, V as VideoNode, L as LinkCardNode, C as CommentNode, D as DetailsNode, R as RubyNode } from "./config-BulxE6hd.js";
5
- import { N as NESTED_EDITOR_NODES, A as AlertQuoteEditNode } from "./AlertQuoteEditNode-CB8C24Xf.js";
4
+ import { o as $isBannerNode, p as BannerRenderer, q as BannerNode, r as normalizeBannerType, s as $isCodeBlockNode, t as CodeBlockRenderer, v as CodeBlockNode, F as FootnoteSectionNode, g as $isGridContainerNode, G as GridContainerNode, l as builtinNodes, V as VideoNode, L as LinkCardNode, C as CommentNode, D as DetailsNode, R as RubyNode } from "./config-Bysik8H3.js";
5
+ import { N as NESTED_EDITOR_NODES, A as AlertQuoteEditNode } from "./AlertQuoteEditNode-DRGnNV2H.js";
6
6
  import { $getNodeByKey, $insertNodes, createEditor, $getSelection, $isNodeSelection, $isElementNode, $isDecoratorNode, $createNodeSelection, $setSelection, $createParagraphNode, $nodesOfType, $getRoot } from "lexical";
7
7
  import { Flag, LayoutGrid, Plus, Minus } from "lucide-react";
8
8
  import { useCallback, createElement, useState, useEffect } from "react";
@@ -1 +1 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/nodes/shared.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAQjD,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,CAiBzD,CAAA"}
1
+ {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/nodes/shared.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAQlD,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,CAiBzD,CAAC"}
@@ -1,6 +1,6 @@
1
- import { $, a, b, c, d, e, f, g, h, i, B, j, C, F, G, L, R, k, l, m } from "./config-BulxE6hd.js";
2
- import { F as F2, a as a2, c as c2, g as g2, s } from "./node-registry-eMijRh3N.js";
3
- import { N } from "./AlertQuoteEditNode-CB8C24Xf.js";
1
+ import { $, a, b, c, d, e, f, g, h, i, B, j, C, F, G, L, R, k, l, m } from "./config-Bysik8H3.js";
2
+ import { F as F2, a as a2, c as c2, g as g2, s } from "./node-registry-h1Ccc6gP.js";
3
+ import { N } from "./AlertQuoteEditNode-DRGnNV2H.js";
4
4
  import { $ as $2, a as a3, b as b2, c as c3, d as d2, e as e2, f as f2, g as g3, h as h2, i as i2, A, j as j2, I, K, k as k2, M, l as l2, T } from "./theme-D_efLk4K.js";
5
5
  export {
6
6
  $ as $createCommentNode,
@@ -1,5 +1,5 @@
1
- import { A, a, b, B, c, C, E, F, H, I, d, L, M, e, O, S, f, g, u } from "./SubmitShortcutPlugin-CkuM_8Wk.js";
2
- import { A as A2, I as I2, K, M as M2 } from "./MermaidPlugin-DfIhGe-1.js";
1
+ import { A, a, b, B, c, C, E, F, H, I, d, L, M, e, O, S, f, g, u } from "./SubmitShortcutPlugin-BzLMsEes.js";
2
+ import { A as A2, I as I2, K, M as M2 } from "./MermaidPlugin-B6ZyzOZs.js";
3
3
  export {
4
4
  A as ALL_TRANSFORMERS,
5
5
  A2 as AlertPlugin,
@@ -6,7 +6,7 @@ import { a, c, g, k, b, n, r } from "./katex.css-Csc-7N7u.js";
6
6
  import { m as getTagBgColor } from "./theme-D_efLk4K.js";
7
7
  import { N, n as n2, o, u as u2, p } from "./theme-D_efLk4K.js";
8
8
  import { F, R as R2, a as a2, c as c2, u as u3, b as b2, d, e, f, g as g2 } from "./KaTeXRenderer-CQyQzNTJ.js";
9
- import { n as n3, k as k2, l, m, u as u4 } from "./config-BulxE6hd.js";
9
+ import { n as n3, k as k2, l, m, u as u4 } from "./config-Bysik8H3.js";
10
10
  import { d as d2, a as a3, g as g3, b as b3 } from "./grid.css-Md5-Cfx_.js";
11
11
  import { articleTheme, commentTheme, noteTheme, vars } from "@haklex/rich-style-token/styles";
12
12
  function TagRenderer({ text }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haklex/rich-editor",
3
- "version": "0.0.85",
3
+ "version": "0.0.86",
4
4
  "description": "Core rich text editor based on Lexical",
5
5
  "repository": {
6
6
  "type": "git",
@@ -46,27 +46,27 @@
46
46
  ],
47
47
  "dependencies": {
48
48
  "@base-ui/react": "^1.1.0",
49
- "@lexical/code": "npm:lexical-code-no-prism@0.41.0",
49
+ "@lexical/code-core": "^0.42.0",
50
50
  "nanoid": "^5.1.6",
51
51
  "thumbhash": "^0.1.1",
52
- "@haklex/rich-headless": "0.0.85",
53
- "@haklex/rich-editor-ui": "0.0.85",
54
- "@haklex/rich-style-token": "0.0.85"
52
+ "@haklex/rich-editor-ui": "0.0.86",
53
+ "@haklex/rich-headless": "0.0.86",
54
+ "@haklex/rich-style-token": "0.0.86"
55
55
  },
56
56
  "devDependencies": {
57
- "@lexical/extension": "^0.41.0",
58
- "@lexical/link": "^0.41.0",
59
- "@lexical/list": "^0.41.0",
60
- "@lexical/markdown": "^0.41.0",
61
- "@lexical/react": "^0.41.0",
62
- "@lexical/rich-text": "^0.41.0",
63
- "@lexical/table": "^0.41.0",
57
+ "@lexical/extension": "^0.42.0",
58
+ "@lexical/link": "^0.42.0",
59
+ "@lexical/list": "^0.42.0",
60
+ "@lexical/markdown": "^0.42.0",
61
+ "@lexical/react": "^0.42.0",
62
+ "@lexical/rich-text": "^0.42.0",
63
+ "@lexical/table": "^0.42.0",
64
64
  "@types/react": "^19.2.14",
65
65
  "@types/react-dom": "^19.2.3",
66
66
  "@vanilla-extract/css": "^1.18.0",
67
67
  "@vanilla-extract/vite-plugin": "^5.1.4",
68
68
  "katex": "^0.16.37",
69
- "lexical": "^0.41.0",
69
+ "lexical": "^0.42.0",
70
70
  "lucide-react": "^0.577.0",
71
71
  "react": "^19.2.4",
72
72
  "react-dom": "^19.2.4",
@@ -77,15 +77,15 @@
77
77
  },
78
78
  "peerDependencies": {
79
79
  "@base-ui/react": "^1.1.0",
80
- "@lexical/extension": "^0.41.0",
81
- "@lexical/link": "^0.41.0",
82
- "@lexical/list": "^0.41.0",
83
- "@lexical/markdown": "^0.41.0",
84
- "@lexical/react": "^0.41.0",
85
- "@lexical/rich-text": "^0.41.0",
86
- "@lexical/table": "^0.41.0",
80
+ "@lexical/extension": "^0.42.0",
81
+ "@lexical/link": "^0.42.0",
82
+ "@lexical/list": "^0.42.0",
83
+ "@lexical/markdown": "^0.42.0",
84
+ "@lexical/react": "^0.42.0",
85
+ "@lexical/rich-text": "^0.42.0",
86
+ "@lexical/table": "^0.42.0",
87
87
  "katex": ">=0.16.0",
88
- "lexical": "^0.41.0",
88
+ "lexical": "^0.42.0",
89
89
  "lucide-react": "^0.574.0",
90
90
  "react": ">=19",
91
91
  "react-dom": ">=19",