@textbus/adapter-viewfly 4.0.0-alpha.30 → 4.0.0-alpha.31
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/index.esm.js +6 -3
- package/bundles/index.js +4 -1
- package/package.json +5 -5
package/bundles/index.esm.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { getCurrentInstance, onUpdated, createDynamicRef, jsx, DynamicRef } from '@viewfly/core';
|
2
|
-
import { Subject } from '@tanbo/stream';
|
3
|
-
import { makeError, VElement, VTextNode, replaceEmpty } from '@textbus/core';
|
2
|
+
import { Subject, merge } from '@tanbo/stream';
|
3
|
+
import { makeError, VElement, VTextNode, replaceEmpty, invokeListener } from '@textbus/core';
|
4
4
|
import { DomAdapter } from '@textbus/platform-browser';
|
5
5
|
|
6
6
|
const adapterError = makeError('ViewflyAdapter');
|
@@ -19,7 +19,7 @@ class Adapter extends DomAdapter {
|
|
19
19
|
this.components[key] = (props) => {
|
20
20
|
const comp = getCurrentInstance();
|
21
21
|
const textbusComponent = props.component;
|
22
|
-
textbusComponent.changeMarker.onChange.subscribe(() => {
|
22
|
+
merge(textbusComponent.changeMarker.onChange, textbusComponent.changeMarker.onForceChange).subscribe(() => {
|
23
23
|
if (textbusComponent.changeMarker.dirty) {
|
24
24
|
comp.markAsDirtied();
|
25
25
|
}
|
@@ -92,6 +92,9 @@ class Adapter extends DomAdapter {
|
|
92
92
|
}
|
93
93
|
else {
|
94
94
|
children.push(this.componentRender(child));
|
95
|
+
if (!this.firstRending) {
|
96
|
+
invokeListener(child, 'onParentSlotUpdated');
|
97
|
+
}
|
95
98
|
}
|
96
99
|
}
|
97
100
|
const props = Object.assign({}, (Array.from(vNode.attrs).reduce((a, b) => {
|
package/bundles/index.js
CHANGED
@@ -21,7 +21,7 @@ class Adapter extends platformBrowser.DomAdapter {
|
|
21
21
|
this.components[key] = (props) => {
|
22
22
|
const comp = core$1.getCurrentInstance();
|
23
23
|
const textbusComponent = props.component;
|
24
|
-
textbusComponent.changeMarker.onChange.subscribe(() => {
|
24
|
+
stream.merge(textbusComponent.changeMarker.onChange, textbusComponent.changeMarker.onForceChange).subscribe(() => {
|
25
25
|
if (textbusComponent.changeMarker.dirty) {
|
26
26
|
comp.markAsDirtied();
|
27
27
|
}
|
@@ -94,6 +94,9 @@ class Adapter extends platformBrowser.DomAdapter {
|
|
94
94
|
}
|
95
95
|
else {
|
96
96
|
children.push(this.componentRender(child));
|
97
|
+
if (!this.firstRending) {
|
98
|
+
core.invokeListener(child, 'onParentSlotUpdated');
|
99
|
+
}
|
97
100
|
}
|
98
101
|
}
|
99
102
|
const props = Object.assign({}, (Array.from(vNode.attrs).reduce((a, b) => {
|
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.31",
|
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.3",
|
29
|
-
"@textbus/core": "^4.0.0-alpha.
|
30
|
-
"@textbus/platform-browser": "^4.0.0-alpha.
|
31
|
-
"@viewfly/core": "^0.6.
|
29
|
+
"@textbus/core": "^4.0.0-alpha.31",
|
30
|
+
"@textbus/platform-browser": "^4.0.0-alpha.31",
|
31
|
+
"@viewfly/core": "^0.6.1"
|
32
32
|
},
|
33
33
|
"devDependencies": {
|
34
34
|
"@rollup/plugin-commonjs": "^23.0.2",
|
@@ -48,5 +48,5 @@
|
|
48
48
|
"bugs": {
|
49
49
|
"url": "https://github.com/textbus/textbus.git/issues"
|
50
50
|
},
|
51
|
-
"gitHead": "
|
51
|
+
"gitHead": "54c13967d549e9c3795eb821d84ce3e811139630"
|
52
52
|
}
|