@textbus/adapter-viewfly 4.0.0-alpha.42 → 4.0.0-alpha.43
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 -0
- package/bundles/index.js +6 -0
- package/package.json +4 -4
package/bundles/index.esm.js
CHANGED
@@ -39,6 +39,9 @@ class ViewflyAdapter extends DomAdapter {
|
|
39
39
|
const currentRef = vEle.attrs.get('ref');
|
40
40
|
const ref = createDynamicRef(nativeNode => {
|
41
41
|
update(nativeNode);
|
42
|
+
return () => {
|
43
|
+
update(null);
|
44
|
+
};
|
42
45
|
});
|
43
46
|
if (currentRef instanceof DynamicRef) {
|
44
47
|
vEle.attrs.set('ref', [currentRef, ref]);
|
@@ -182,6 +185,9 @@ class ViewflyVDomAdapter extends Adapter {
|
|
182
185
|
const currentRef = vEle.attrs.get('ref');
|
183
186
|
const ref = createDynamicRef(nativeNode => {
|
184
187
|
update(nativeNode);
|
188
|
+
return () => {
|
189
|
+
update(null);
|
190
|
+
};
|
185
191
|
});
|
186
192
|
if (currentRef instanceof DynamicRef) {
|
187
193
|
vEle.attrs.set('ref', [currentRef, ref]);
|
package/bundles/index.js
CHANGED
@@ -41,6 +41,9 @@ class ViewflyAdapter extends platformBrowser.DomAdapter {
|
|
41
41
|
const currentRef = vEle.attrs.get('ref');
|
42
42
|
const ref = core$1.createDynamicRef(nativeNode => {
|
43
43
|
update(nativeNode);
|
44
|
+
return () => {
|
45
|
+
update(null);
|
46
|
+
};
|
44
47
|
});
|
45
48
|
if (currentRef instanceof core$1.DynamicRef) {
|
46
49
|
vEle.attrs.set('ref', [currentRef, ref]);
|
@@ -184,6 +187,9 @@ class ViewflyVDomAdapter extends core.Adapter {
|
|
184
187
|
const currentRef = vEle.attrs.get('ref');
|
185
188
|
const ref = core$1.createDynamicRef(nativeNode => {
|
186
189
|
update(nativeNode);
|
190
|
+
return () => {
|
191
|
+
update(null);
|
192
|
+
};
|
187
193
|
});
|
188
194
|
if (currentRef instanceof core$1.DynamicRef) {
|
189
195
|
vEle.attrs.set('ref', [currentRef, ref]);
|
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.43",
|
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.3",
|
29
|
-
"@textbus/core": "^4.0.0-alpha.
|
30
|
-
"@textbus/platform-browser": "^4.0.0-alpha.
|
29
|
+
"@textbus/core": "^4.0.0-alpha.43",
|
30
|
+
"@textbus/platform-browser": "^4.0.0-alpha.43",
|
31
31
|
"@viewfly/core": "^1.0.0-alpha.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": "23f1cf769789b56e1fcbaa25655bd0dfd57a24f9"
|
52
52
|
}
|