@wangeditor-kai/editor 5.6.39 → 5.6.41

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.
Files changed (166) hide show
  1. package/dist/basic-modules/src/index.d.ts +1 -1
  2. package/dist/basic-modules/src/modules/blockquote/index.d.ts +1 -1
  3. package/dist/basic-modules/src/modules/blockquote/menu/BlockquoteMenu.d.ts +1 -1
  4. package/dist/basic-modules/src/modules/blockquote/parse-elem-html.d.ts +1 -1
  5. package/dist/basic-modules/src/modules/blockquote/plugin.d.ts +1 -1
  6. package/dist/basic-modules/src/modules/blockquote/render-elem.d.ts +1 -1
  7. package/dist/basic-modules/src/modules/code-block/index.d.ts +1 -1
  8. package/dist/basic-modules/src/modules/code-block/menu/CodeBlockMenu.d.ts +1 -1
  9. package/dist/basic-modules/src/modules/code-block/parse-elem-html.d.ts +1 -1
  10. package/dist/basic-modules/src/modules/code-block/plugin.d.ts +1 -1
  11. package/dist/basic-modules/src/modules/code-block/render-elem.d.ts +1 -1
  12. package/dist/basic-modules/src/modules/color/index.d.ts +1 -1
  13. package/dist/basic-modules/src/modules/color/menu/BaseMenu.d.ts +1 -1
  14. package/dist/basic-modules/src/modules/color/parse-style-html.d.ts +1 -1
  15. package/dist/basic-modules/src/modules/common/index.d.ts +1 -1
  16. package/dist/basic-modules/src/modules/common/menu/EnterMenu.d.ts +1 -1
  17. package/dist/basic-modules/src/modules/divider/index.d.ts +1 -1
  18. package/dist/basic-modules/src/modules/divider/menu/InsertDividerMenu.d.ts +1 -1
  19. package/dist/basic-modules/src/modules/divider/parse-elem-html.d.ts +1 -1
  20. package/dist/basic-modules/src/modules/divider/plugin.d.ts +1 -1
  21. package/dist/basic-modules/src/modules/divider/render-elem.d.ts +1 -1
  22. package/dist/basic-modules/src/modules/emotion/index.d.ts +1 -1
  23. package/dist/basic-modules/src/modules/emotion/menu/EmotionMenu.d.ts +1 -1
  24. package/dist/basic-modules/src/modules/font-size-family/index.d.ts +1 -1
  25. package/dist/basic-modules/src/modules/font-size-family/menu/BaseMenu.d.ts +1 -1
  26. package/dist/basic-modules/src/modules/font-size-family/menu/FontFamilyMenu.d.ts +1 -1
  27. package/dist/basic-modules/src/modules/font-size-family/menu/FontSizeMenu.d.ts +1 -1
  28. package/dist/basic-modules/src/modules/font-size-family/parse-style-html.d.ts +1 -1
  29. package/dist/basic-modules/src/modules/format-painter/helper.d.ts +1 -1
  30. package/dist/basic-modules/src/modules/format-painter/index.d.ts +1 -1
  31. package/dist/basic-modules/src/modules/format-painter/menu/FormatPainter.d.ts +1 -1
  32. package/dist/basic-modules/src/modules/format-painter/plugin.d.ts +1 -1
  33. package/dist/basic-modules/src/modules/full-screen/index.d.ts +1 -1
  34. package/dist/basic-modules/src/modules/full-screen/menu/FullScreen.d.ts +1 -1
  35. package/dist/basic-modules/src/modules/header/helper.d.ts +1 -1
  36. package/dist/basic-modules/src/modules/header/index.d.ts +1 -1
  37. package/dist/basic-modules/src/modules/header/menu/HeaderButtonMenuBase.d.ts +1 -1
  38. package/dist/basic-modules/src/modules/header/menu/HeaderSelectMenu.d.ts +1 -1
  39. package/dist/basic-modules/src/modules/header/parse-elem-html.d.ts +1 -1
  40. package/dist/basic-modules/src/modules/header/plugin.d.ts +1 -1
  41. package/dist/basic-modules/src/modules/header/render-elem.d.ts +1 -1
  42. package/dist/basic-modules/src/modules/image/helper.d.ts +1 -1
  43. package/dist/basic-modules/src/modules/image/index.d.ts +1 -1
  44. package/dist/basic-modules/src/modules/image/menu/DeleteImage.d.ts +1 -1
  45. package/dist/basic-modules/src/modules/image/menu/EditImage.d.ts +1 -1
  46. package/dist/basic-modules/src/modules/image/menu/EditImageSizeMenu.d.ts +1 -1
  47. package/dist/basic-modules/src/modules/image/menu/InsertImage.d.ts +1 -1
  48. package/dist/basic-modules/src/modules/image/menu/ViewImageLink.d.ts +1 -1
  49. package/dist/basic-modules/src/modules/image/menu/WidthBase.d.ts +1 -1
  50. package/dist/basic-modules/src/modules/image/parse-elem-html.d.ts +1 -1
  51. package/dist/basic-modules/src/modules/image/plugin.d.ts +1 -1
  52. package/dist/basic-modules/src/modules/image/render-elem.d.ts +1 -1
  53. package/dist/basic-modules/src/modules/indent/index.d.ts +1 -1
  54. package/dist/basic-modules/src/modules/indent/menu/BaseMenu.d.ts +1 -1
  55. package/dist/basic-modules/src/modules/indent/menu/DecreaseIndentMenu.d.ts +1 -1
  56. package/dist/basic-modules/src/modules/indent/menu/IncreaseIndentMenu.d.ts +1 -1
  57. package/dist/basic-modules/src/modules/indent/parse-style-html.d.ts +1 -1
  58. package/dist/basic-modules/src/modules/justify/index.d.ts +1 -1
  59. package/dist/basic-modules/src/modules/justify/menu/BaseMenu.d.ts +1 -1
  60. package/dist/basic-modules/src/modules/justify/menu/JustifyCenterMenu.d.ts +1 -1
  61. package/dist/basic-modules/src/modules/justify/menu/JustifyJustifyMenu.d.ts +1 -1
  62. package/dist/basic-modules/src/modules/justify/menu/JustifyLeftMenu.d.ts +1 -1
  63. package/dist/basic-modules/src/modules/justify/menu/JustifyRightMenu.d.ts +1 -1
  64. package/dist/basic-modules/src/modules/justify/parse-style-html.d.ts +1 -1
  65. package/dist/basic-modules/src/modules/line-height/index.d.ts +1 -1
  66. package/dist/basic-modules/src/modules/line-height/menu/LineHeightMenu.d.ts +1 -1
  67. package/dist/basic-modules/src/modules/line-height/parse-style-html.d.ts +1 -1
  68. package/dist/basic-modules/src/modules/link/helper.d.ts +1 -1
  69. package/dist/basic-modules/src/modules/link/index.d.ts +1 -1
  70. package/dist/basic-modules/src/modules/link/menu/EditLink.d.ts +1 -1
  71. package/dist/basic-modules/src/modules/link/menu/InsertLink.d.ts +1 -1
  72. package/dist/basic-modules/src/modules/link/menu/UnLink.d.ts +1 -1
  73. package/dist/basic-modules/src/modules/link/menu/ViewLink.d.ts +1 -1
  74. package/dist/basic-modules/src/modules/link/parse-elem-html.d.ts +2 -2
  75. package/dist/basic-modules/src/modules/link/plugin.d.ts +1 -1
  76. package/dist/basic-modules/src/modules/link/render-elem.d.ts +1 -1
  77. package/dist/basic-modules/src/modules/paragraph/index.d.ts +1 -1
  78. package/dist/basic-modules/src/modules/paragraph/parse-elem-html.d.ts +1 -1
  79. package/dist/basic-modules/src/modules/paragraph/plugin.d.ts +1 -1
  80. package/dist/basic-modules/src/modules/paragraph/render-elem.d.ts +1 -1
  81. package/dist/basic-modules/src/modules/text-style/helper.d.ts +1 -1
  82. package/dist/basic-modules/src/modules/text-style/index.d.ts +1 -1
  83. package/dist/basic-modules/src/modules/text-style/menu/BaseMenu.d.ts +1 -1
  84. package/dist/basic-modules/src/modules/text-style/menu/ClearStyleMenu.d.ts +1 -1
  85. package/dist/basic-modules/src/modules/text-style/parse-style-html.d.ts +1 -1
  86. package/dist/basic-modules/src/modules/todo/index.d.ts +1 -1
  87. package/dist/basic-modules/src/modules/todo/menu/Todo.d.ts +1 -1
  88. package/dist/basic-modules/src/modules/todo/parse-elem-html.d.ts +1 -1
  89. package/dist/basic-modules/src/modules/todo/plugin.d.ts +1 -1
  90. package/dist/basic-modules/src/modules/todo/render-elem.d.ts +1 -1
  91. package/dist/basic-modules/src/modules/undo-redo/index.d.ts +1 -1
  92. package/dist/basic-modules/src/modules/undo-redo/menu/RedoMenu.d.ts +1 -1
  93. package/dist/basic-modules/src/modules/undo-redo/menu/UndoMenu.d.ts +1 -1
  94. package/dist/code-highlight/src/module/index.d.ts +1 -1
  95. package/dist/code-highlight/src/module/menu/SelectLangMenu.d.ts +1 -1
  96. package/dist/code-highlight/src/module/parse-style-html.d.ts +1 -1
  97. package/dist/css/style.css +9 -1
  98. package/dist/editor/src/register-builtin-modules/index.d.ts +1 -0
  99. package/dist/index.js +11 -10
  100. package/dist/index.js.map +1 -1
  101. package/dist/index.mjs +10 -10
  102. package/dist/index.mjs.map +1 -1
  103. package/dist/list-module/src/module/helpers.d.ts +1 -1
  104. package/dist/list-module/src/module/index.d.ts +1 -1
  105. package/dist/list-module/src/module/menu/BaseMenu.d.ts +1 -1
  106. package/dist/list-module/src/module/parse-elem-html.d.ts +1 -1
  107. package/dist/list-module/src/module/plugin.d.ts +1 -1
  108. package/dist/list-module/src/module/render-elem.d.ts +1 -1
  109. package/dist/list-module/src/utils/maps.d.ts +1 -1
  110. package/dist/plugin-formula/src/constants/icon-svg.d.ts +11 -0
  111. package/dist/plugin-formula/src/index.d.ts +7 -0
  112. package/dist/plugin-formula/src/module/custom-types.d.ts +13 -0
  113. package/dist/plugin-formula/src/module/elem-to-html.d.ts +11 -0
  114. package/dist/plugin-formula/src/module/index.d.ts +8 -0
  115. package/dist/plugin-formula/src/module/local.d.ts +5 -0
  116. package/dist/plugin-formula/src/module/menu/EditFormula.d.ts +29 -0
  117. package/dist/plugin-formula/src/module/menu/InsertFormula.d.ts +24 -0
  118. package/dist/plugin-formula/src/module/menu/TextToFormula.d.ts +27 -0
  119. package/dist/plugin-formula/src/module/menu/index.d.ts +19 -0
  120. package/dist/plugin-formula/src/module/parse-elem-html.d.ts +12 -0
  121. package/dist/plugin-formula/src/module/plugin.d.ts +7 -0
  122. package/dist/plugin-formula/src/module/render-elem.d.ts +12 -0
  123. package/dist/plugin-formula/src/register-custom-elem/index.d.ts +5 -0
  124. package/dist/plugin-formula/src/register-custom-elem/native-shim.d.ts +0 -0
  125. package/dist/plugin-formula/src/utils/dom.d.ts +15 -0
  126. package/dist/plugin-formula/src/utils/util.d.ts +17 -0
  127. package/dist/table-module/src/module/column-resize.d.ts +1 -1
  128. package/dist/table-module/src/module/helpers.d.ts +1 -1
  129. package/dist/table-module/src/module/index.d.ts +1 -1
  130. package/dist/table-module/src/module/menu/CellProperty.d.ts +1 -1
  131. package/dist/table-module/src/module/menu/DeleteCol.d.ts +1 -1
  132. package/dist/table-module/src/module/menu/DeleteRow.d.ts +1 -1
  133. package/dist/table-module/src/module/menu/DeleteTable.d.ts +1 -1
  134. package/dist/table-module/src/module/menu/FullWidth.d.ts +1 -1
  135. package/dist/table-module/src/module/menu/InsertCol.d.ts +1 -1
  136. package/dist/table-module/src/module/menu/InsertRow.d.ts +1 -1
  137. package/dist/table-module/src/module/menu/InsertTable.d.ts +1 -1
  138. package/dist/table-module/src/module/menu/MergeCell.d.ts +1 -1
  139. package/dist/table-module/src/module/menu/SplitCell.d.ts +1 -1
  140. package/dist/table-module/src/module/menu/TableHeader.d.ts +1 -1
  141. package/dist/table-module/src/module/menu/TableProperty.d.ts +1 -1
  142. package/dist/table-module/src/module/parse-elem-html.d.ts +1 -1
  143. package/dist/table-module/src/module/parse-style-html.d.ts +1 -1
  144. package/dist/table-module/src/module/plugin.d.ts +1 -1
  145. package/dist/table-module/src/module/render-elem/render-cell.d.ts +1 -1
  146. package/dist/table-module/src/module/render-elem/render-row.d.ts +1 -1
  147. package/dist/table-module/src/module/render-elem/render-table.d.ts +1 -1
  148. package/dist/upload-image-module/src/module/index.d.ts +1 -1
  149. package/dist/upload-image-module/src/module/menu/UploadImageMenu.d.ts +1 -1
  150. package/dist/upload-image-module/src/module/menu/config.d.ts +1 -1
  151. package/dist/upload-image-module/src/module/menu/index.d.ts +1 -1
  152. package/dist/upload-image-module/src/module/plugin.d.ts +1 -1
  153. package/dist/upload-image-module/src/module/upload-images.d.ts +1 -1
  154. package/dist/video-module/src/module/helper/insert-video.d.ts +1 -1
  155. package/dist/video-module/src/module/helper/upload-videos.d.ts +1 -1
  156. package/dist/video-module/src/module/index.d.ts +1 -1
  157. package/dist/video-module/src/module/menu/EditVideoSizeMenu.d.ts +1 -1
  158. package/dist/video-module/src/module/menu/EditVideoSrcMenu.d.ts +1 -1
  159. package/dist/video-module/src/module/menu/InsertVideoMenu.d.ts +1 -1
  160. package/dist/video-module/src/module/menu/UploadVideoMenu.d.ts +1 -1
  161. package/dist/video-module/src/module/menu/config.d.ts +1 -1
  162. package/dist/video-module/src/module/menu/index.d.ts +1 -1
  163. package/dist/video-module/src/module/parse-elem-html.d.ts +1 -1
  164. package/dist/video-module/src/module/plugin.d.ts +1 -1
  165. package/dist/video-module/src/module/render-elem.d.ts +1 -1
  166. package/package.json +3 -1
@@ -4,6 +4,6 @@
4
4
  */
5
5
  import './assets/index.less';
6
6
  import './locale/index';
7
- declare const _default: Partial<import("@wangeditor-next/core").IModuleConf>[];
7
+ declare const _default: Partial<import("@wangeditor-kai/core").IModuleConf>[];
8
8
  export default _default;
9
9
  export * from './modules/image/helper';
@@ -2,6 +2,6 @@
2
2
  * @description blockquote entry
3
3
  * @author wangfupeng
4
4
  */
5
- import { IModuleConf } from '@wangeditor-next/core';
5
+ import { IModuleConf } from '@wangeditor-kai/core';
6
6
  declare const blockquote: Partial<IModuleConf>;
7
7
  export default blockquote;
@@ -2,7 +2,7 @@
2
2
  * @description blockquote menu class
3
3
  * @author wangfupeng
4
4
  */
5
- import { IButtonMenu, IDomEditor } from '@wangeditor-next/core';
5
+ import { IButtonMenu, IDomEditor } from '@wangeditor-kai/core';
6
6
  declare class BlockquoteMenu implements IButtonMenu {
7
7
  readonly title: string;
8
8
  readonly iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z\"></path></svg>";
@@ -2,7 +2,7 @@
2
2
  * @description parse html
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor } from '@wangeditor-next/core';
5
+ import { IDomEditor } from '@wangeditor-kai/core';
6
6
  import { Descendant } from 'slate';
7
7
  import { DOMElement } from '../../utils/dom';
8
8
  import { BlockQuoteElement } from './custom-types';
@@ -2,6 +2,6 @@
2
2
  * @description editor 插件,重写 editor API
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor } from '@wangeditor-next/core';
5
+ import { IDomEditor } from '@wangeditor-kai/core';
6
6
  declare function withBlockquote<T extends IDomEditor>(editor: T): T;
7
7
  export default withBlockquote;
@@ -2,7 +2,7 @@
2
2
  * @description render elem
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor } from '@wangeditor-next/core';
5
+ import { IDomEditor } from '@wangeditor-kai/core';
6
6
  import { Element as SlateElement } from 'slate';
7
7
  import { VNode } from 'snabbdom';
8
8
  /**
@@ -2,6 +2,6 @@
2
2
  * @description code block module
3
3
  * @author wangfupeng
4
4
  */
5
- import { IModuleConf } from '@wangeditor-next/core';
5
+ import { IModuleConf } from '@wangeditor-kai/core';
6
6
  declare const codeBlockModule: Partial<IModuleConf>;
7
7
  export default codeBlockModule;
@@ -2,7 +2,7 @@
2
2
  * @description insert code-block menu
3
3
  * @author wangfupeng
4
4
  */
5
- import { IButtonMenu, IDomEditor } from '@wangeditor-next/core';
5
+ import { IButtonMenu, IDomEditor } from '@wangeditor-kai/core';
6
6
  declare class CodeBlockMenu implements IButtonMenu {
7
7
  readonly title: string;
8
8
  readonly iconSvg = "<svg viewBox=\"0 0 1280 1024\"><path d=\"M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z\"></path></svg>";
@@ -2,7 +2,7 @@
2
2
  * @description parse html
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor } from '@wangeditor-next/core';
5
+ import { IDomEditor } from '@wangeditor-kai/core';
6
6
  import { Descendant } from 'slate';
7
7
  import { DOMElement } from '../../utils/dom';
8
8
  import { CodeElement, PreElement } from './custom-types';
@@ -2,6 +2,6 @@
2
2
  * @description editor 插件,重写 editor API
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor } from '@wangeditor-next/core';
5
+ import { IDomEditor } from '@wangeditor-kai/core';
6
6
  declare function withCodeBlock<T extends IDomEditor>(editor: T): T;
7
7
  export default withCodeBlock;
@@ -2,7 +2,7 @@
2
2
  * @description render elem
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor } from '@wangeditor-next/core';
5
+ import { IDomEditor } from '@wangeditor-kai/core';
6
6
  import { Element as SlateElement } from 'slate';
7
7
  import { VNode } from 'snabbdom';
8
8
  declare function renderPre(_elemNode: SlateElement, children: VNode[] | null, _editor: IDomEditor): VNode;
@@ -2,6 +2,6 @@
2
2
  * @description color bgColor
3
3
  * @author wangfupeng
4
4
  */
5
- import { IModuleConf } from '@wangeditor-next/core';
5
+ import { IModuleConf } from '@wangeditor-kai/core';
6
6
  declare const color: Partial<IModuleConf>;
7
7
  export default color;
@@ -2,7 +2,7 @@
2
2
  * @description color base menu
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor, IDropPanelMenu } from '@wangeditor-next/core';
5
+ import { IDomEditor, IDropPanelMenu } from '@wangeditor-kai/core';
6
6
  import { DOMElement } from '../../../utils/dom';
7
7
  declare abstract class BaseMenu implements IDropPanelMenu {
8
8
  abstract readonly title: string;
@@ -2,7 +2,7 @@
2
2
  * @description parse style html
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor } from '@wangeditor-next/core';
5
+ import { IDomEditor } from '@wangeditor-kai/core';
6
6
  import { Descendant } from 'slate';
7
7
  import { DOMElement } from '../../utils/dom';
8
8
  export declare function parseStyleHtml(text: DOMElement, node: Descendant, _editor: IDomEditor): Descendant;
@@ -2,6 +2,6 @@
2
2
  * @description common module
3
3
  * @author wangfupeng
4
4
  */
5
- import { IModuleConf } from '@wangeditor-next/core';
5
+ import { IModuleConf } from '@wangeditor-kai/core';
6
6
  declare const commonModule: Partial<IModuleConf>;
7
7
  export default commonModule;
@@ -2,7 +2,7 @@
2
2
  * @description enter menu
3
3
  * @author wangfupeng
4
4
  */
5
- import { IButtonMenu, IDomEditor } from '@wangeditor-next/core';
5
+ import { IButtonMenu, IDomEditor } from '@wangeditor-kai/core';
6
6
  declare class EnterMenu implements IButtonMenu {
7
7
  title: string;
8
8
  iconSvg: string;
@@ -2,6 +2,6 @@
2
2
  * @description divider module
3
3
  * @author wangfupeng
4
4
  */
5
- import { IModuleConf } from '@wangeditor-next/core';
5
+ import { IModuleConf } from '@wangeditor-kai/core';
6
6
  declare const image: Partial<IModuleConf>;
7
7
  export default image;
@@ -2,7 +2,7 @@
2
2
  * @description insert divider menu
3
3
  * @author wangfupeng
4
4
  */
5
- import { IButtonMenu, IDomEditor } from '@wangeditor-next/core';
5
+ import { IButtonMenu, IDomEditor } from '@wangeditor-kai/core';
6
6
  declare class InsertDividerMenu implements IButtonMenu {
7
7
  readonly title: string;
8
8
  readonly iconSvg = "<svg viewBox=\"0 0 1092 1024\"><path d=\"M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z\"></path><path d=\"M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z\"></path><path d=\"M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z\"></path><path d=\"M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z\"></path><path d=\"M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z\"></path></svg>";
@@ -2,7 +2,7 @@
2
2
  * @description parse html
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor } from '@wangeditor-next/core';
5
+ import { IDomEditor } from '@wangeditor-kai/core';
6
6
  import { Descendant } from 'slate';
7
7
  import { DOMElement } from '../../utils/dom';
8
8
  import { DividerElement } from './custom-types';
@@ -2,6 +2,6 @@
2
2
  * @description editor 插件,重写 editor API
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor } from '@wangeditor-next/core';
5
+ import { IDomEditor } from '@wangeditor-kai/core';
6
6
  declare function withDivider<T extends IDomEditor>(editor: T): T;
7
7
  export default withDivider;
@@ -2,7 +2,7 @@
2
2
  * @description render divider elem
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor } from '@wangeditor-next/core';
5
+ import { IDomEditor } from '@wangeditor-kai/core';
6
6
  import { Element as SlateElement } from 'slate';
7
7
  import { VNode } from 'snabbdom';
8
8
  declare function renderDivider(elemNode: SlateElement, children: VNode[] | null, editor: IDomEditor): VNode;
@@ -2,6 +2,6 @@
2
2
  * @description emotion entry
3
3
  * @author wangfupeng
4
4
  */
5
- import { IModuleConf } from '@wangeditor-next/core';
5
+ import { IModuleConf } from '@wangeditor-kai/core';
6
6
  declare const emotion: Partial<IModuleConf>;
7
7
  export default emotion;
@@ -2,7 +2,7 @@
2
2
  * @description emotion menu
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor, IDropPanelMenu } from '@wangeditor-next/core';
5
+ import { IDomEditor, IDropPanelMenu } from '@wangeditor-kai/core';
6
6
  import { DOMElement } from '../../../utils/dom';
7
7
  declare class EmotionMenu implements IDropPanelMenu {
8
8
  readonly title: string;
@@ -2,6 +2,6 @@
2
2
  * @description font-size font-family
3
3
  * @author wangfupeng
4
4
  */
5
- import { IModuleConf } from '@wangeditor-next/core';
5
+ import { IModuleConf } from '@wangeditor-kai/core';
6
6
  declare const fontSizeAndFamily: Partial<IModuleConf>;
7
7
  export default fontSizeAndFamily;
@@ -2,7 +2,7 @@
2
2
  * @description header menu
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor, IOption, ISelectMenu } from '@wangeditor-next/core';
5
+ import { IDomEditor, IOption, ISelectMenu } from '@wangeditor-kai/core';
6
6
  declare abstract class BaseMenu implements ISelectMenu {
7
7
  abstract readonly title: string;
8
8
  abstract readonly iconSvg: string;
@@ -2,7 +2,7 @@
2
2
  * @description font-family menu
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor, IOption } from '@wangeditor-next/core';
5
+ import { IDomEditor, IOption } from '@wangeditor-kai/core';
6
6
  import BaseMenu from './BaseMenu';
7
7
  declare class FontFamilyMenu extends BaseMenu {
8
8
  readonly title: string;
@@ -2,7 +2,7 @@
2
2
  * @description font-size menu
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor, IOption } from '@wangeditor-next/core';
5
+ import { IDomEditor, IOption } from '@wangeditor-kai/core';
6
6
  import BaseMenu from './BaseMenu';
7
7
  declare class FontSizeMenu extends BaseMenu {
8
8
  readonly title: string;
@@ -2,7 +2,7 @@
2
2
  * @description parse style html
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor } from '@wangeditor-next/core';
5
+ import { IDomEditor } from '@wangeditor-kai/core';
6
6
  import { Descendant } from 'slate';
7
7
  import { DOMElement } from '../../utils/dom';
8
8
  export declare function parseStyleHtml(text: DOMElement, node: Descendant, _editor: IDomEditor): Descendant;
@@ -1,3 +1,3 @@
1
- import { IDomEditor } from '@wangeditor-next/core';
1
+ import { IDomEditor } from '@wangeditor-kai/core';
2
2
  /** 清空所有标记(文本样式) */
3
3
  export declare function clearAllMarks(editor: IDomEditor): void;
@@ -2,6 +2,6 @@
2
2
  * @description format painter
3
3
  * @author CodePencil
4
4
  */
5
- import { IModuleConf } from '@wangeditor-next/core';
5
+ import { IModuleConf } from '@wangeditor-kai/core';
6
6
  declare const formatPainter: Partial<IModuleConf>;
7
7
  export default formatPainter;
@@ -2,7 +2,7 @@
2
2
  * @description Format Painter
3
3
  * @author CodePencil
4
4
  */
5
- import { IButtonMenu, IDomEditor } from '@wangeditor-next/core';
5
+ import { IButtonMenu, IDomEditor } from '@wangeditor-kai/core';
6
6
  import { Text } from 'slate';
7
7
  interface FormatPaintAttributes {
8
8
  isSelect: boolean;
@@ -2,6 +2,6 @@
2
2
  * @description editor 插件,重写 editor API
3
3
  * @author CodePencil
4
4
  */
5
- import { IDomEditor } from '@wangeditor-next/core';
5
+ import { IDomEditor } from '@wangeditor-kai/core';
6
6
  declare function withFormatPainter<T extends IDomEditor>(editor: T): T;
7
7
  export default withFormatPainter;
@@ -2,6 +2,6 @@
2
2
  * @description 全屏
3
3
  * @author wangfupeng
4
4
  */
5
- import { IModuleConf } from '@wangeditor-next/core';
5
+ import { IModuleConf } from '@wangeditor-kai/core';
6
6
  declare const fullScreen: Partial<IModuleConf>;
7
7
  export default fullScreen;
@@ -2,7 +2,7 @@
2
2
  * @description redo menu
3
3
  * @author wangfupeng
4
4
  */
5
- import { IButtonMenu, IDomEditor } from '@wangeditor-next/core';
5
+ import { IButtonMenu, IDomEditor } from '@wangeditor-kai/core';
6
6
  declare class FullScreen implements IButtonMenu {
7
7
  title: string;
8
8
  iconSvg: string;
@@ -2,7 +2,7 @@
2
2
  * @description header helper
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor } from '@wangeditor-next/core';
5
+ import { IDomEditor } from '@wangeditor-kai/core';
6
6
  /**
7
7
  * 获取 node type('header1' 'header2' 等),未匹配则返回 'paragraph'
8
8
  */
@@ -2,6 +2,6 @@
2
2
  * @description header entry
3
3
  * @author wangfupeng
4
4
  */
5
- import { IModuleConf } from '@wangeditor-next/core';
5
+ import { IModuleConf } from '@wangeditor-kai/core';
6
6
  declare const header: Partial<IModuleConf>;
7
7
  export default header;
@@ -2,7 +2,7 @@
2
2
  * @description button menu base
3
3
  * @author wangfupeng
4
4
  */
5
- import { IButtonMenu, IDomEditor } from '@wangeditor-next/core';
5
+ import { IButtonMenu, IDomEditor } from '@wangeditor-kai/core';
6
6
  declare abstract class HeaderButtonMenuBase implements IButtonMenu {
7
7
  abstract readonly title: string;
8
8
  abstract readonly type: string;
@@ -2,7 +2,7 @@
2
2
  * @description header menu
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor, IOption, ISelectMenu } from '@wangeditor-next/core';
5
+ import { IDomEditor, IOption, ISelectMenu } from '@wangeditor-kai/core';
6
6
  declare class HeaderSelectMenu implements ISelectMenu {
7
7
  readonly title: string;
8
8
  readonly iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z\"></path></svg>";
@@ -2,7 +2,7 @@
2
2
  * @description parse html
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor } from '@wangeditor-next/core';
5
+ import { IDomEditor } from '@wangeditor-kai/core';
6
6
  import { Descendant } from 'slate';
7
7
  import { DOMElement } from '../../utils/dom';
8
8
  import { Header1Element, Header2Element, Header3Element, Header4Element, Header5Element } from './custom-types';
@@ -2,6 +2,6 @@
2
2
  * @description editor 插件,重写 editor API
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor } from '@wangeditor-next/core';
5
+ import { IDomEditor } from '@wangeditor-kai/core';
6
6
  declare function withHeader<T extends IDomEditor>(editor: T): T;
7
7
  export default withHeader;
@@ -2,7 +2,7 @@
2
2
  * @description render header
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor } from '@wangeditor-next/core';
5
+ import { IDomEditor } from '@wangeditor-kai/core';
6
6
  import { Element as SlateElement } from 'slate';
7
7
  import { VNode } from 'snabbdom';
8
8
  declare const renderHeader1Conf: {
@@ -2,7 +2,7 @@
2
2
  * @description image menu helper
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor } from '@wangeditor-next/core';
5
+ import { IDomEditor } from '@wangeditor-kai/core';
6
6
  import { ImageStyle } from './custom-types';
7
7
  /**
8
8
  * 判断菜单是否要 disabled
@@ -2,6 +2,6 @@
2
2
  * @description image module entry
3
3
  * @author wangfupeng
4
4
  */
5
- import { IModuleConf } from '@wangeditor-next/core';
5
+ import { IModuleConf } from '@wangeditor-kai/core';
6
6
  declare const image: Partial<IModuleConf>;
7
7
  export default image;
@@ -2,7 +2,7 @@
2
2
  * @description delete image menu
3
3
  * @author wangfupeng
4
4
  */
5
- import { IButtonMenu, IDomEditor } from '@wangeditor-next/core';
5
+ import { IButtonMenu, IDomEditor } from '@wangeditor-kai/core';
6
6
  declare class DeleteImage implements IButtonMenu {
7
7
  readonly title: string;
8
8
  readonly iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z\" p-id=\"9577\"></path><path d=\"M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z\"></path></svg>";
@@ -2,7 +2,7 @@
2
2
  * @description editor image menu
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor, IModalMenu } from '@wangeditor-next/core';
5
+ import { IDomEditor, IModalMenu } from '@wangeditor-kai/core';
6
6
  import { Node } from 'slate';
7
7
  import { DOMElement } from '../../../utils/dom';
8
8
  declare class EditImage implements IModalMenu {
@@ -2,7 +2,7 @@
2
2
  * @description 修改图片尺寸
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor, IModalMenu } from '@wangeditor-next/core';
5
+ import { IDomEditor, IModalMenu } from '@wangeditor-kai/core';
6
6
  import { Node as SlateNode } from 'slate';
7
7
  import { DOMElement } from '../../../utils/dom';
8
8
  declare class EditorImageSizeMenu implements IModalMenu {
@@ -2,7 +2,7 @@
2
2
  * @description insert image menu
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor, IModalMenu } from '@wangeditor-next/core';
5
+ import { IDomEditor, IModalMenu } from '@wangeditor-kai/core';
6
6
  import { Node } from 'slate';
7
7
  import { DOMElement } from '../../../utils/dom';
8
8
  declare class InsertImage implements IModalMenu {
@@ -2,7 +2,7 @@
2
2
  * @description view image link menu
3
3
  * @author wangfupeng
4
4
  */
5
- import { IButtonMenu, IDomEditor } from '@wangeditor-next/core';
5
+ import { IButtonMenu, IDomEditor } from '@wangeditor-kai/core';
6
6
  declare class ViewImageLink implements IButtonMenu {
7
7
  readonly title: string;
8
8
  readonly iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z\" p-id=\"10909\"></path><path d=\"M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z\" p-id=\"10910\"></path><path d=\"M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z\"></path></svg>";
@@ -2,7 +2,7 @@
2
2
  * @description image width base class
3
3
  * @author wangfupeng
4
4
  */
5
- import { IButtonMenu, IDomEditor } from '@wangeditor-next/core';
5
+ import { IButtonMenu, IDomEditor } from '@wangeditor-kai/core';
6
6
  declare abstract class ImageWidthBaseClass implements IButtonMenu {
7
7
  abstract readonly title: string;
8
8
  readonly tag = "button";
@@ -2,7 +2,7 @@
2
2
  * @description parse html
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor } from '@wangeditor-next/core';
5
+ import { IDomEditor } from '@wangeditor-kai/core';
6
6
  import { Descendant } from 'slate';
7
7
  import { DOMElement } from '../../utils/dom';
8
8
  import { ImageElement } from './custom-types';
@@ -2,6 +2,6 @@
2
2
  * @description editor 插件,重写 editor API
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor } from '@wangeditor-next/core';
5
+ import { IDomEditor } from '@wangeditor-kai/core';
6
6
  declare function withImage<T extends IDomEditor>(editor: T): T;
7
7
  export default withImage;
@@ -2,7 +2,7 @@
2
2
  * @description image render elem
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor } from '@wangeditor-next/core';
5
+ import { IDomEditor } from '@wangeditor-kai/core';
6
6
  import { Element as SlateElement } from 'slate';
7
7
  import { VNode } from 'snabbdom';
8
8
  declare function renderImage(elemNode: SlateElement, children: VNode[] | null, editor: IDomEditor): VNode;
@@ -2,6 +2,6 @@
2
2
  * @description indent entry
3
3
  * @author wangfupeng
4
4
  */
5
- import { IModuleConf } from '@wangeditor-next/core';
5
+ import { IModuleConf } from '@wangeditor-kai/core';
6
6
  declare const indent: Partial<IModuleConf>;
7
7
  export default indent;
@@ -2,7 +2,7 @@
2
2
  * @description indent base menu
3
3
  * @author wangfupeng
4
4
  */
5
- import { IButtonMenu, IDomEditor } from '@wangeditor-next/core';
5
+ import { IButtonMenu, IDomEditor } from '@wangeditor-kai/core';
6
6
  import { Node } from 'slate';
7
7
  declare abstract class BaseMenu implements IButtonMenu {
8
8
  abstract readonly title: string;
@@ -2,7 +2,7 @@
2
2
  * @description 减少缩进
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor } from '@wangeditor-next/core';
5
+ import { IDomEditor } from '@wangeditor-kai/core';
6
6
  import BaseMenu from './BaseMenu';
7
7
  declare class DecreaseIndentMenu extends BaseMenu {
8
8
  readonly title: string;
@@ -2,7 +2,7 @@
2
2
  * @description 增加缩进
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor } from '@wangeditor-next/core';
5
+ import { IDomEditor } from '@wangeditor-kai/core';
6
6
  import BaseMenu from './BaseMenu';
7
7
  declare class IncreaseIndentMenu extends BaseMenu {
8
8
  readonly title: string;
@@ -2,7 +2,7 @@
2
2
  * @description parse style html
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor } from '@wangeditor-next/core';
5
+ import { IDomEditor } from '@wangeditor-kai/core';
6
6
  import { Descendant } from 'slate';
7
7
  import { DOMElement } from '../../utils/dom';
8
8
  export declare function parseStyleHtml(elem: DOMElement, node: Descendant, _editor: IDomEditor): Descendant;
@@ -2,6 +2,6 @@
2
2
  * @description justify module entry
3
3
  * @author wangfupeng
4
4
  */
5
- import { IModuleConf } from '@wangeditor-next/core';
5
+ import { IModuleConf } from '@wangeditor-kai/core';
6
6
  declare const justify: Partial<IModuleConf>;
7
7
  export default justify;
@@ -2,7 +2,7 @@
2
2
  * @description justify base menu
3
3
  * @author wangfupeng
4
4
  */
5
- import { IButtonMenu, IDomEditor } from '@wangeditor-next/core';
5
+ import { IButtonMenu, IDomEditor } from '@wangeditor-kai/core';
6
6
  declare abstract class BaseMenu implements IButtonMenu {
7
7
  abstract readonly title: string;
8
8
  abstract readonly iconSvg: string;
@@ -2,7 +2,7 @@
2
2
  * @description justify center menu
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor } from '@wangeditor-next/core';
5
+ import { IDomEditor } from '@wangeditor-kai/core';
6
6
  import BaseMenu from './BaseMenu';
7
7
  declare class JustifyCenterMenu extends BaseMenu {
8
8
  readonly title: string;
@@ -2,7 +2,7 @@
2
2
  * @description 两端对齐
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor } from '@wangeditor-next/core';
5
+ import { IDomEditor } from '@wangeditor-kai/core';
6
6
  import BaseMenu from './BaseMenu';
7
7
  declare class JustifyJustifyMenu extends BaseMenu {
8
8
  readonly title: string;
@@ -2,7 +2,7 @@
2
2
  * @description justify left menu
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor } from '@wangeditor-next/core';
5
+ import { IDomEditor } from '@wangeditor-kai/core';
6
6
  import BaseMenu from './BaseMenu';
7
7
  declare class JustifyLeftMenu extends BaseMenu {
8
8
  readonly title: string;