@wangeditor-next/yjs-for-react 0.1.67 → 1.0.1

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 (38) hide show
  1. package/dist/basic-modules/src/modules/color/render-style.d.ts +3 -1
  2. package/dist/basic-modules/src/modules/color/style-to-html.d.ts +3 -1
  3. package/dist/basic-modules/src/modules/font-size-family/render-style.d.ts +3 -1
  4. package/dist/basic-modules/src/modules/font-size-family/style-to-html.d.ts +3 -1
  5. package/dist/basic-modules/src/modules/image/elem-to-html.d.ts +2 -1
  6. package/dist/basic-modules/src/modules/indent/render-style.d.ts +3 -1
  7. package/dist/basic-modules/src/modules/indent/style-to-html.d.ts +2 -1
  8. package/dist/basic-modules/src/modules/justify/render-style.d.ts +3 -1
  9. package/dist/basic-modules/src/modules/justify/style-to-html.d.ts +2 -1
  10. package/dist/basic-modules/src/modules/line-height/render-style.d.ts +3 -1
  11. package/dist/basic-modules/src/modules/line-height/style-to-html.d.ts +2 -1
  12. package/dist/basic-modules/src/utils/style-class.d.ts +14 -0
  13. package/dist/basic-modules/src/utils/vdom.d.ts +14 -0
  14. package/dist/core/src/config/interface.d.ts +33 -1
  15. package/dist/core/src/config/style-mode.d.ts +8 -0
  16. package/dist/core/src/editor/dom-editor.d.ts +9 -0
  17. package/dist/core/src/index.d.ts +13 -2
  18. package/dist/core/src/render/element/renderStyle.d.ts +3 -1
  19. package/dist/core/src/render/index.d.ts +2 -2
  20. package/dist/core/src/render/text/renderStyle.d.ts +3 -1
  21. package/dist/core/src/to-html/index.d.ts +2 -2
  22. package/dist/core/src/upload/createUploader.d.ts +7 -3
  23. package/dist/core/src/upload/createUppyUploader.d.ts +7 -0
  24. package/dist/core/src/upload/index.d.ts +4 -3
  25. package/dist/core/src/upload/interface.d.ts +37 -9
  26. package/dist/core/src/upload.d.ts +5 -0
  27. package/dist/editor/src/index.d.ts +3 -2
  28. package/dist/index.js +1 -1
  29. package/dist/index.js.map +1 -1
  30. package/dist/index.mjs +1 -1
  31. package/dist/index.mjs.map +1 -1
  32. package/dist/list-module/src/module/elem-to-html.d.ts +2 -1
  33. package/dist/list-module/src/module/style-class.d.ts +6 -0
  34. package/dist/table-module/src/module/elem-to-html.d.ts +3 -2
  35. package/dist/table-module/src/module/style-to-html.d.ts +2 -1
  36. package/dist/video-module/src/module/elem-to-html.d.ts +2 -1
  37. package/dist/video-module/src/utils/dom.d.ts +1 -1
  38. package/package.json +3 -3
@@ -2,8 +2,9 @@
2
2
  * @description to html
3
3
  * @author wangfupeng
4
4
  */
5
+ import { IDomEditor } from '@wangeditor-next/core';
5
6
  import { Element } from 'slate';
6
- declare function elemToHtml(elem: Element, childrenHtml: string): {
7
+ declare function elemToHtml(elem: Element, childrenHtml: string, editor?: IDomEditor): {
7
8
  html: string;
8
9
  prefix?: string;
9
10
  suffix?: string;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @description list style class utils
3
+ */
4
+ import { IDomEditor } from '@wangeditor-next/core';
5
+ export declare function genListColorClassName(color: string): string;
6
+ export declare function resolveListColorAction(editor: IDomEditor | undefined, color: string): 'class' | 'preserve-data' | 'inline';
@@ -2,9 +2,10 @@
2
2
  * @description to html
3
3
  * @author wangfupeng
4
4
  */
5
+ import { IDomEditor } from '@wangeditor-next/core';
5
6
  import { Element } from 'slate';
6
- declare function tableToHtml(elemNode: Element, childrenHtml: string): string;
7
- declare function tableRowToHtml(elem: Element, childrenHtml: string): string;
7
+ declare function tableToHtml(elemNode: Element, childrenHtml: string, editor?: IDomEditor): string;
8
+ declare function tableRowToHtml(elem: Element, childrenHtml: string, editor?: IDomEditor): string;
8
9
  declare function tableCellToHtml(cellNode: Element, childrenHtml: string): string;
9
10
  export declare const tableToHtmlConf: {
10
11
  type: string;
@@ -2,4 +2,5 @@
2
2
  * @description style to html
3
3
  * @author hsuna
4
4
  */
5
- export declare function styleToHtml(node: any, elemHtml: any): any;
5
+ import { IDomEditor } from '@wangeditor-next/core';
6
+ export declare function styleToHtml(node: any, elemHtml: any, editor?: IDomEditor): any;
@@ -2,8 +2,9 @@
2
2
  * @description to html
3
3
  * @author wangfupeng
4
4
  */
5
+ import { IDomEditor } from '@wangeditor-next/core';
5
6
  import { Element } from 'slate';
6
- declare function videoToHtml(elemNode: Element, _childrenHtml?: string): string;
7
+ declare function videoToHtml(elemNode: Element, _childrenHtml?: string, editor?: IDomEditor): string;
7
8
  export declare const videoToHtmlConf: {
8
9
  type: string;
9
10
  elemToHtml: typeof videoToHtml;
@@ -25,5 +25,5 @@ export declare function getTagName($elem: Dom7Array): string;
25
25
  * @param height height
26
26
  * @returns iframe html string with size style
27
27
  */
28
- export declare function genSizeStyledIframeHtml(iframeHtml: string, width?: string, height?: string, style?: videoStyle): string;
28
+ export declare function genSizeStyledIframeHtml(iframeHtml: string, width?: string, height?: string, style?: videoStyle, classMode?: boolean): string;
29
29
  export { DOMComment, DOMElement, DOMNode, DOMRange, DOMSelection, DOMStaticRange, DOMText, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wangeditor-next/yjs-for-react",
3
- "version": "0.1.67",
3
+ "version": "1.0.1",
4
4
  "description": "React specific components/utils for wangeditor-next-yjs.",
5
5
  "author": "cycleccc <2991205548@qq.com>",
6
6
  "type": "module",
@@ -50,8 +50,8 @@
50
50
  "y-protocols": "^1.0.5"
51
51
  },
52
52
  "peerDependencies": {
53
- "@wangeditor-next/editor": "5.6.56",
54
- "@wangeditor-next/yjs": "^0.1.50",
53
+ "@wangeditor-next/editor": "5.7.1",
54
+ "@wangeditor-next/yjs": "^1.0.1",
55
55
  "react": ">=17.0.2",
56
56
  "slate": "^0.123.0",
57
57
  "yjs": "^13.5.29"