@textbus/adapter-vue 4.0.0-alpha.3 → 4.0.0-alpha.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
  }
@@ -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",
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,8 +26,8 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "@tanbo/stream": "^1.2.0",
29
- "@textbus/core": "^4.0.0-alpha.1",
30
- "@textbus/platform-browser": "^4.0.0-alpha.1",
29
+ "@textbus/core": "^4.0.0-alpha.6",
30
+ "@textbus/platform-browser": "^4.0.0-alpha.6",
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": "cf4fd289b73bc777124a32fe42bb58eba05a34f1"
51
+ "gitHead": "47394e77de252fdfd9193e1620177f944976c1a9"
52
52
  }