@textbus/adapter-viewfly 4.0.0-alpha.17 → 4.0.0-alpha.18
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 +3 -0
- package/bundles/index.js +3 -0
- package/package.json +4 -4
package/bundles/index.esm.js
CHANGED
@@ -95,6 +95,9 @@ class Adapter extends DomAdapter {
|
|
95
95
|
const currentRef = jsxNode.props.ref;
|
96
96
|
const ref = useRef(nativeNode => {
|
97
97
|
this.slotRootNativeElementCaches.set(slot, nativeNode);
|
98
|
+
return () => {
|
99
|
+
this.slotRootNativeElementCaches.remove(slot);
|
100
|
+
};
|
98
101
|
});
|
99
102
|
if (currentRef instanceof Ref) {
|
100
103
|
jsxNode.props.ref = [currentRef, ref];
|
package/bundles/index.js
CHANGED
@@ -97,6 +97,9 @@ class Adapter extends platformBrowser.DomAdapter {
|
|
97
97
|
const currentRef = jsxNode.props.ref;
|
98
98
|
const ref = core$1.useRef(nativeNode => {
|
99
99
|
this.slotRootNativeElementCaches.set(slot, nativeNode);
|
100
|
+
return () => {
|
101
|
+
this.slotRootNativeElementCaches.remove(slot);
|
102
|
+
};
|
100
103
|
});
|
101
104
|
if (currentRef instanceof core$1.Ref) {
|
102
105
|
jsxNode.props.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.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.
|
30
|
-
"@textbus/platform-browser": "^4.0.0-alpha.
|
29
|
+
"@textbus/core": "^4.0.0-alpha.18",
|
30
|
+
"@textbus/platform-browser": "^4.0.0-alpha.18",
|
31
31
|
"@viewfly/core": "^0.4.0"
|
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": "e7887ee051c488286d669dd8ba396a05b7989107"
|
52
52
|
}
|