@textbus/adapter-viewfly 4.0.0-alpha.31 → 4.0.0-alpha.32
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 +3 -6
- package/bundles/index.js +3 -6
- package/package.json +3 -3
package/bundles/adapter.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { DynamicRef, JSXNode } from '@viewfly/core';
|
2
2
|
import { Subject } from '@tanbo/stream';
|
3
3
|
import { Component, Slot, VElement, VTextNode } from '@textbus/core';
|
4
4
|
import { DomAdapter } from '@textbus/platform-browser';
|
package/bundles/index.esm.js
CHANGED
@@ -31,6 +31,7 @@ class Adapter extends DomAdapter {
|
|
31
31
|
isRoot = false;
|
32
32
|
}
|
33
33
|
onUpdated(() => {
|
34
|
+
this.componentRendingStack.pop();
|
34
35
|
textbusComponent.changeMarker.rendered();
|
35
36
|
});
|
36
37
|
const component = props.component;
|
@@ -39,18 +40,14 @@ class Adapter extends DomAdapter {
|
|
39
40
|
return () => {
|
40
41
|
component.__slots__.length = 0;
|
41
42
|
this.componentRendingStack.push(component);
|
42
|
-
|
43
|
-
this.componentRendingStack.pop();
|
44
|
-
return vNode;
|
43
|
+
return instance();
|
45
44
|
};
|
46
45
|
}
|
47
46
|
const self = this;
|
48
47
|
return Object.assign(Object.assign({}, instance), { $render() {
|
49
48
|
component.__slots__.length = 0;
|
50
49
|
self.componentRendingStack.push(component);
|
51
|
-
|
52
|
-
self.componentRendingStack.pop();
|
53
|
-
return vNode;
|
50
|
+
return instance.$render();
|
54
51
|
} });
|
55
52
|
};
|
56
53
|
});
|
package/bundles/index.js
CHANGED
@@ -33,6 +33,7 @@ class Adapter extends platformBrowser.DomAdapter {
|
|
33
33
|
isRoot = false;
|
34
34
|
}
|
35
35
|
core$1.onUpdated(() => {
|
36
|
+
this.componentRendingStack.pop();
|
36
37
|
textbusComponent.changeMarker.rendered();
|
37
38
|
});
|
38
39
|
const component = props.component;
|
@@ -41,18 +42,14 @@ class Adapter extends platformBrowser.DomAdapter {
|
|
41
42
|
return () => {
|
42
43
|
component.__slots__.length = 0;
|
43
44
|
this.componentRendingStack.push(component);
|
44
|
-
|
45
|
-
this.componentRendingStack.pop();
|
46
|
-
return vNode;
|
45
|
+
return instance();
|
47
46
|
};
|
48
47
|
}
|
49
48
|
const self = this;
|
50
49
|
return Object.assign(Object.assign({}, instance), { $render() {
|
51
50
|
component.__slots__.length = 0;
|
52
51
|
self.componentRendingStack.push(component);
|
53
|
-
|
54
|
-
self.componentRendingStack.pop();
|
55
|
-
return vNode;
|
52
|
+
return instance.$render();
|
56
53
|
} });
|
57
54
|
};
|
58
55
|
});
|
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.32",
|
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",
|
@@ -27,7 +27,7 @@
|
|
27
27
|
"dependencies": {
|
28
28
|
"@tanbo/stream": "^1.2.3",
|
29
29
|
"@textbus/core": "^4.0.0-alpha.31",
|
30
|
-
"@textbus/platform-browser": "^4.0.0-alpha.
|
30
|
+
"@textbus/platform-browser": "^4.0.0-alpha.32",
|
31
31
|
"@viewfly/core": "^0.6.1"
|
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": "
|
51
|
+
"gitHead": "00d52c23dde48068e14e46379b85ddac0743c6ff"
|
52
52
|
}
|