@textbus/platform-browser 5.0.0-alpha.2 → 5.0.0-alpha.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.
- package/bundles/parser.d.ts +2 -2
- package/package.json +3 -3
package/bundles/parser.d.ts
CHANGED
@@ -75,13 +75,13 @@ export declare class Parser {
|
|
75
75
|
* @param html
|
76
76
|
* @param rootComponentLoader
|
77
77
|
*/
|
78
|
-
parseDoc(html: string | HTMLElement, rootComponentLoader: ComponentLoader): void | Slot | Component<import("@textbus/core").State>;
|
78
|
+
parseDoc(html: string | HTMLElement, rootComponentLoader: ComponentLoader): void | Slot<Record<string, any>> | Component<import("@textbus/core").State>;
|
79
79
|
/**
|
80
80
|
* 将一段 HTML 或 DOM 元素解析到指定插槽
|
81
81
|
* @param html
|
82
82
|
* @param rootSlot
|
83
83
|
*/
|
84
|
-
parse(html: string | HTMLElement, rootSlot: Slot): Slot
|
84
|
+
parse(html: string | HTMLElement, rootSlot: Slot): Slot<Record<string, any>>;
|
85
85
|
private readComponent;
|
86
86
|
private readText;
|
87
87
|
private readFormats;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@textbus/platform-browser",
|
3
|
-
"version": "5.0.0-alpha.
|
3
|
+
"version": "5.0.0-alpha.5",
|
4
4
|
"description": "Textbus is a rich text editor and framework that is highly customizable and extensible to achieve rich wysiwyg effects.",
|
5
5
|
"main": "./bundles/index.js",
|
6
6
|
"module": "./bundles/index.esm.js",
|
@@ -26,7 +26,7 @@
|
|
26
26
|
],
|
27
27
|
"dependencies": {
|
28
28
|
"@tanbo/stream": "^1.2.7",
|
29
|
-
"@textbus/core": "^5.0.0-alpha.
|
29
|
+
"@textbus/core": "^5.0.0-alpha.5",
|
30
30
|
"@viewfly/core": "^2.0.0-alpha.3"
|
31
31
|
},
|
32
32
|
"devDependencies": {
|
@@ -47,5 +47,5 @@
|
|
47
47
|
"bugs": {
|
48
48
|
"url": "https://github.com/textbus/textbus.git/issues"
|
49
49
|
},
|
50
|
-
"gitHead": "
|
50
|
+
"gitHead": "b9fdc57750c1d2ae44beb4aa7f019757effb4c3f"
|
51
51
|
}
|