@textbus/adapter-vue 4.0.0-alpha.16 → 4.0.0-alpha.18

Sign up to get free protection for your applications and to get access to all the features.
@@ -34,6 +34,7 @@ class Adapter extends DomAdapter {
34
34
  }
35
35
  });
36
36
  onUpdated(() => {
37
+ component.changeMarker.rendered();
37
38
  self.onViewUpdated.next();
38
39
  });
39
40
  onUnmounted(() => {
@@ -47,7 +48,6 @@ class Adapter extends DomAdapter {
47
48
  componentRender(component) {
48
49
  const comp = this.components[component.name] || this.components['*'];
49
50
  if (comp) {
50
- component.changeMarker.rendered();
51
51
  let rootRef = this.componentRefs.get(component);
52
52
  if (!rootRef) {
53
53
  rootRef = ref();
@@ -95,7 +95,7 @@ class Adapter extends DomAdapter {
95
95
  };
96
96
  const refFn = (nativeNode) => {
97
97
  if (!nativeNode) {
98
- this.slotRootNativeElementCaches.remove(nativeNode);
98
+ this.slotRootNativeElementCaches.remove(slot);
99
99
  }
100
100
  else {
101
101
  this.slotRootNativeElementCaches.set(slot, nativeNode);
package/bundles/index.js CHANGED
@@ -36,6 +36,7 @@ class Adapter extends platformBrowser.DomAdapter {
36
36
  }
37
37
  });
38
38
  vue.onUpdated(() => {
39
+ component.changeMarker.rendered();
39
40
  self.onViewUpdated.next();
40
41
  });
41
42
  vue.onUnmounted(() => {
@@ -49,7 +50,6 @@ class Adapter extends platformBrowser.DomAdapter {
49
50
  componentRender(component) {
50
51
  const comp = this.components[component.name] || this.components['*'];
51
52
  if (comp) {
52
- component.changeMarker.rendered();
53
53
  let rootRef = this.componentRefs.get(component);
54
54
  if (!rootRef) {
55
55
  rootRef = vue.ref();
@@ -97,7 +97,7 @@ class Adapter extends platformBrowser.DomAdapter {
97
97
  };
98
98
  const refFn = (nativeNode) => {
99
99
  if (!nativeNode) {
100
- this.slotRootNativeElementCaches.remove(nativeNode);
100
+ this.slotRootNativeElementCaches.remove(slot);
101
101
  }
102
102
  else {
103
103
  this.slotRootNativeElementCaches.set(slot, nativeNode);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@textbus/adapter-vue",
3
- "version": "4.0.0-alpha.16",
3
+ "version": "4.0.0-alpha.18",
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.16",
30
- "@textbus/platform-browser": "^4.0.0-alpha.16",
29
+ "@textbus/core": "^4.0.0-alpha.18",
30
+ "@textbus/platform-browser": "^4.0.0-alpha.18",
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": "374400df65cd485113048cd9644ae88f4ff59429"
51
+ "gitHead": "e7887ee051c488286d669dd8ba396a05b7989107"
52
52
  }