@textbus/adapter-vue 4.0.0-alpha.3 → 4.0.0-alpha.5
Sign up to get free protection for your applications and to get access to all the features.
- package/bundles/adapter.d.ts +1 -1
- package/bundles/index.esm.js +2 -2
- package/bundles/index.js +2 -2
- package/package.json +4 -4
package/bundles/adapter.d.ts
CHANGED
@@ -18,5 +18,5 @@ export declare class Adapter extends DomAdapter<VNode, VNode> {
|
|
18
18
|
private componentRefs;
|
19
19
|
constructor(components: ReactAdapterComponents, mount: (host: HTMLElement, root: VNode) => (void | (() => void)));
|
20
20
|
componentRender(component: ComponentInstance): VNode;
|
21
|
-
slotRender(slot: Slot, slotHostRender: (children: Array<VElement | VTextNode | ComponentInstance>) => VElement): VNode;
|
21
|
+
slotRender(slot: Slot, slotHostRender: (children: Array<VElement | VTextNode | ComponentInstance>) => VElement, renderEnv: any): VNode;
|
22
22
|
}
|
package/bundles/index.esm.js
CHANGED
@@ -61,8 +61,8 @@ class Adapter extends DomAdapter {
|
|
61
61
|
}
|
62
62
|
throw adapterError(`cannot found view component \`${component.name}\`!`);
|
63
63
|
}
|
64
|
-
slotRender(slot, slotHostRender) {
|
65
|
-
const vElement = slot.toTree(slotHostRender);
|
64
|
+
slotRender(slot, slotHostRender, renderEnv) {
|
65
|
+
const vElement = slot.toTree(slotHostRender, renderEnv);
|
66
66
|
this.slotRootVElementCaches.set(slot, vElement);
|
67
67
|
const vNodeToJSX = (vNode) => {
|
68
68
|
const children = [];
|
package/bundles/index.js
CHANGED
@@ -63,8 +63,8 @@ class Adapter extends platformBrowser.DomAdapter {
|
|
63
63
|
}
|
64
64
|
throw adapterError(`cannot found view component \`${component.name}\`!`);
|
65
65
|
}
|
66
|
-
slotRender(slot, slotHostRender) {
|
67
|
-
const vElement = slot.toTree(slotHostRender);
|
66
|
+
slotRender(slot, slotHostRender, renderEnv) {
|
67
|
+
const vElement = slot.toTree(slotHostRender, renderEnv);
|
68
68
|
this.slotRootVElementCaches.set(slot, vElement);
|
69
69
|
const vNodeToJSX = (vNode) => {
|
70
70
|
const children = [];
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@textbus/adapter-vue",
|
3
|
-
"version": "4.0.0-alpha.
|
3
|
+
"version": "4.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,8 +26,8 @@
|
|
26
26
|
],
|
27
27
|
"dependencies": {
|
28
28
|
"@tanbo/stream": "^1.2.0",
|
29
|
-
"@textbus/core": "^4.0.0-alpha.
|
30
|
-
"@textbus/platform-browser": "^4.0.0-alpha.
|
29
|
+
"@textbus/core": "^4.0.0-alpha.5",
|
30
|
+
"@textbus/platform-browser": "^4.0.0-alpha.5",
|
31
31
|
"vue": "^3.3.4"
|
32
32
|
},
|
33
33
|
"devDependencies": {
|
@@ -48,5 +48,5 @@
|
|
48
48
|
"bugs": {
|
49
49
|
"url": "https://github.com/textbus/textbus.git/issues"
|
50
50
|
},
|
51
|
-
"gitHead": "
|
51
|
+
"gitHead": "072831527fe07e7c21a14f3141d55b24d321a690"
|
52
52
|
}
|