@textbus/adapter-vue 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.
@@ -106,10 +106,6 @@ class VueAdapter extends DomAdapter {
106
106
  });
107
107
  onUpdated(() => {
108
108
  var _a;
109
- const context = self.componentRendingStack[self.componentRendingStack.length - 1];
110
- if (context === component) {
111
- self.componentRendingStack.pop();
112
- }
113
109
  component.changeMarker.rendered();
114
110
  self.onViewUpdated.next();
115
111
  if (!(((_a = self.componentRefs.get(component)) === null || _a === void 0 ? void 0 : _a.value) instanceof HTMLElement)) {
@@ -120,24 +116,8 @@ class VueAdapter extends DomAdapter {
120
116
  onUnmounted(() => {
121
117
  sub.unsubscribe();
122
118
  });
123
- const result = setup(props, context, ...args);
124
- if (typeof result === 'function') {
125
- return function (...args) {
126
- component.__slots__.length = 0;
127
- self.componentRendingStack.push(component);
128
- return result.apply(this, args);
129
- };
130
- }
131
- return result;
119
+ return setup(props, context, ...args);
132
120
  };
133
- if (vueComponent.render) {
134
- const oldRender = vueComponent.render;
135
- vueComponent.render = function (context, ...args) {
136
- context.component.__slots__.length = 0;
137
- self.componentRendingStack.push(context.component);
138
- return oldRender.apply(this, [context, ...args]);
139
- };
140
- }
141
121
  this.components[key] = vueComponent;
142
122
  });
143
123
  }
package/bundles/index.js CHANGED
@@ -108,10 +108,6 @@ class VueAdapter extends platformBrowser.DomAdapter {
108
108
  });
109
109
  vue.onUpdated(() => {
110
110
  var _a;
111
- const context = self.componentRendingStack[self.componentRendingStack.length - 1];
112
- if (context === component) {
113
- self.componentRendingStack.pop();
114
- }
115
111
  component.changeMarker.rendered();
116
112
  self.onViewUpdated.next();
117
113
  if (!(((_a = self.componentRefs.get(component)) === null || _a === void 0 ? void 0 : _a.value) instanceof HTMLElement)) {
@@ -122,24 +118,8 @@ class VueAdapter extends platformBrowser.DomAdapter {
122
118
  vue.onUnmounted(() => {
123
119
  sub.unsubscribe();
124
120
  });
125
- const result = setup(props, context, ...args);
126
- if (typeof result === 'function') {
127
- return function (...args) {
128
- component.__slots__.length = 0;
129
- self.componentRendingStack.push(component);
130
- return result.apply(this, args);
131
- };
132
- }
133
- return result;
121
+ return setup(props, context, ...args);
134
122
  };
135
- if (vueComponent.render) {
136
- const oldRender = vueComponent.render;
137
- vueComponent.render = function (context, ...args) {
138
- context.component.__slots__.length = 0;
139
- self.componentRendingStack.push(context.component);
140
- return oldRender.apply(this, [context, ...args]);
141
- };
142
- }
143
123
  this.components[key] = vueComponent;
144
124
  });
145
125
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@textbus/adapter-vue",
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,8 +26,8 @@
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",
29
+ "@textbus/core": "^4.0.0-alpha.71",
30
+ "@textbus/platform-browser": "^4.0.0-alpha.71",
31
31
  "vue": "^3.4.28"
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": "f2d53e02abbbc466b289532f6773c6fa8bb4d3f3"
51
+ "gitHead": "cf4fd289b73bc777124a32fe42bb58eba05a34f1"
52
52
  }