@textbus/adapter-viewfly 4.0.0-alpha.3 → 4.0.0-alpha.6
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/adapter.d.ts +1 -1
- package/bundles/index.esm.js +2 -2
- package/bundles/index.js +2 -2
- package/package.json +5 -5
package/bundles/adapter.d.ts
CHANGED
@@ -18,5 +18,5 @@ export declare class Adapter extends DomAdapter<JSXComponent, JSXInternal.Elemen
|
|
18
18
|
private componentRefs;
|
19
19
|
constructor(components: ViewflyAdapterComponents, mount: (host: HTMLElement, root: JSXComponent) => (void | (() => void)));
|
20
20
|
componentRender(component: ComponentInstance): JSXInternal.JSXNode;
|
21
|
-
slotRender(slot: Slot, slotHostRender: (children: Array<VElement | VTextNode | ComponentInstance>) => VElement): JSXInternal.Element;
|
21
|
+
slotRender(slot: Slot, slotHostRender: (children: Array<VElement | VTextNode | ComponentInstance>) => VElement, renderEnv?: any): JSXInternal.Element;
|
22
22
|
}
|
package/bundles/index.esm.js
CHANGED
@@ -57,8 +57,8 @@ class Adapter extends DomAdapter {
|
|
57
57
|
}
|
58
58
|
throw adapterError(`cannot found view component \`${component.name}\`!`);
|
59
59
|
}
|
60
|
-
slotRender(slot, slotHostRender) {
|
61
|
-
const vElement = slot.toTree(slotHostRender);
|
60
|
+
slotRender(slot, slotHostRender, renderEnv) {
|
61
|
+
const vElement = slot.toTree(slotHostRender, renderEnv);
|
62
62
|
this.slotRootVElementCaches.set(slot, vElement);
|
63
63
|
const vNodeToJSX = (vNode) => {
|
64
64
|
const children = [];
|
package/bundles/index.js
CHANGED
@@ -59,8 +59,8 @@ class Adapter extends platformBrowser.DomAdapter {
|
|
59
59
|
}
|
60
60
|
throw adapterError(`cannot found view component \`${component.name}\`!`);
|
61
61
|
}
|
62
|
-
slotRender(slot, slotHostRender) {
|
63
|
-
const vElement = slot.toTree(slotHostRender);
|
62
|
+
slotRender(slot, slotHostRender, renderEnv) {
|
63
|
+
const vElement = slot.toTree(slotHostRender, renderEnv);
|
64
64
|
this.slotRootVElementCaches.set(slot, vElement);
|
65
65
|
const vNodeToJSX = (vNode) => {
|
66
66
|
const children = [];
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@textbus/adapter-viewfly",
|
3
|
-
"version": "4.0.0-alpha.
|
3
|
+
"version": "4.0.0-alpha.6",
|
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,9 +26,9 @@
|
|
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.
|
31
|
-
"@viewfly/core": "^0.2.
|
29
|
+
"@textbus/core": "^4.0.0-alpha.6",
|
30
|
+
"@textbus/platform-browser": "^4.0.0-alpha.6",
|
31
|
+
"@viewfly/core": "^0.2.4"
|
32
32
|
},
|
33
33
|
"devDependencies": {
|
34
34
|
"@rollup/plugin-commonjs": "^23.0.2",
|
@@ -48,5 +48,5 @@
|
|
48
48
|
"bugs": {
|
49
49
|
"url": "https://github.com/textbus/textbus.git/issues"
|
50
50
|
},
|
51
|
-
"gitHead": "
|
51
|
+
"gitHead": "47394e77de252fdfd9193e1620177f944976c1a9"
|
52
52
|
}
|