@textbus/adapter-viewfly 4.0.0-alpha.16 → 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.
@@ -39,7 +39,6 @@ class Adapter extends DomAdapter {
39
39
  componentRender(component) {
40
40
  const comp = this.components[component.name] || this.components['*'];
41
41
  if (comp) {
42
- component.changeMarker.rendered();
43
42
  let ref = this.componentRefs.get(component);
44
43
  if (!ref) {
45
44
  ref = useRef(rootNode => {
@@ -96,6 +95,9 @@ class Adapter extends DomAdapter {
96
95
  const currentRef = jsxNode.props.ref;
97
96
  const ref = useRef(nativeNode => {
98
97
  this.slotRootNativeElementCaches.set(slot, nativeNode);
98
+ return () => {
99
+ this.slotRootNativeElementCaches.remove(slot);
100
+ };
99
101
  });
100
102
  if (currentRef instanceof Ref) {
101
103
  jsxNode.props.ref = [currentRef, ref];
package/bundles/index.js CHANGED
@@ -41,7 +41,6 @@ class Adapter extends platformBrowser.DomAdapter {
41
41
  componentRender(component) {
42
42
  const comp = this.components[component.name] || this.components['*'];
43
43
  if (comp) {
44
- component.changeMarker.rendered();
45
44
  let ref = this.componentRefs.get(component);
46
45
  if (!ref) {
47
46
  ref = core$1.useRef(rootNode => {
@@ -98,6 +97,9 @@ class Adapter extends platformBrowser.DomAdapter {
98
97
  const currentRef = jsxNode.props.ref;
99
98
  const ref = core$1.useRef(nativeNode => {
100
99
  this.slotRootNativeElementCaches.set(slot, nativeNode);
100
+ return () => {
101
+ this.slotRootNativeElementCaches.remove(slot);
102
+ };
101
103
  });
102
104
  if (currentRef instanceof core$1.Ref) {
103
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.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,9 +26,9 @@
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",
31
- "@viewfly/core": "^0.3.0"
29
+ "@textbus/core": "^4.0.0-alpha.18",
30
+ "@textbus/platform-browser": "^4.0.0-alpha.18",
31
+ "@viewfly/core": "^0.4.0"
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": "374400df65cd485113048cd9644ae88f4ff59429"
51
+ "gitHead": "e7887ee051c488286d669dd8ba396a05b7989107"
52
52
  }