@textbus/adapter-viewfly 4.0.0-alpha.69 → 4.0.0-alpha.71

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.
@@ -114,31 +114,13 @@ class ViewflyAdapter extends DomAdapter {
114
114
  isRoot = false;
115
115
  }
116
116
  onUpdated(() => {
117
- const context = this.componentRendingStack[this.componentRendingStack.length - 1];
118
- if (context === component) {
119
- this.componentRendingStack.pop();
120
- }
121
117
  textbusComponent.changeMarker.rendered();
122
118
  if (!this.componentRootElementCaches.get(textbusComponent)) {
123
119
  // eslint-disable-next-line max-len
124
120
  throw adapterError(`Component \`${textbusComponent.name}\` is not bound to rootRef, you must bind rootRef to the root element node of the component view.`);
125
121
  }
126
122
  });
127
- const component = props.component;
128
- const instance = viewFlyComponent(props);
129
- if (typeof instance === 'function') {
130
- return () => {
131
- component.__slots__.length = 0;
132
- this.componentRendingStack.push(component);
133
- return instance();
134
- };
135
- }
136
- const self = this;
137
- return Object.assign(Object.assign({}, instance), { $render() {
138
- component.__slots__.length = 0;
139
- self.componentRendingStack.push(component);
140
- return instance.$render();
141
- } });
123
+ return viewFlyComponent(props);
142
124
  });
143
125
  });
144
126
  }
package/bundles/index.js CHANGED
@@ -116,31 +116,13 @@ class ViewflyAdapter extends platformBrowser.DomAdapter {
116
116
  isRoot = false;
117
117
  }
118
118
  core$1.onUpdated(() => {
119
- const context = this.componentRendingStack[this.componentRendingStack.length - 1];
120
- if (context === component) {
121
- this.componentRendingStack.pop();
122
- }
123
119
  textbusComponent.changeMarker.rendered();
124
120
  if (!this.componentRootElementCaches.get(textbusComponent)) {
125
121
  // eslint-disable-next-line max-len
126
122
  throw adapterError(`Component \`${textbusComponent.name}\` is not bound to rootRef, you must bind rootRef to the root element node of the component view.`);
127
123
  }
128
124
  });
129
- const component = props.component;
130
- const instance = viewFlyComponent(props);
131
- if (typeof instance === 'function') {
132
- return () => {
133
- component.__slots__.length = 0;
134
- this.componentRendingStack.push(component);
135
- return instance();
136
- };
137
- }
138
- const self = this;
139
- return Object.assign(Object.assign({}, instance), { $render() {
140
- component.__slots__.length = 0;
141
- self.componentRendingStack.push(component);
142
- return instance.$render();
143
- } });
125
+ return viewFlyComponent(props);
144
126
  });
145
127
  });
146
128
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@textbus/adapter-viewfly",
3
- "version": "4.0.0-alpha.69",
3
+ "version": "4.0.0-alpha.71",
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.5",
29
- "@textbus/core": "^4.0.0-alpha.69",
30
- "@textbus/platform-browser": "^4.0.0-alpha.69",
31
- "@textbus/platform-node": "^4.0.0-alpha.69",
29
+ "@textbus/core": "^4.0.0-alpha.71",
30
+ "@textbus/platform-browser": "^4.0.0-alpha.71",
31
+ "@textbus/platform-node": "^4.0.0-alpha.71",
32
32
  "@viewfly/core": "^1.0.0-alpha.17",
33
33
  "@viewfly/platform-browser": "^1.0.0-alpha.17"
34
34
  },
@@ -50,5 +50,5 @@
50
50
  "bugs": {
51
51
  "url": "https://github.com/textbus/textbus.git/issues"
52
52
  },
53
- "gitHead": "f2d53e02abbbc466b289532f6773c6fa8bb4d3f3"
53
+ "gitHead": "cf4fd289b73bc777124a32fe42bb58eba05a34f1"
54
54
  }