@textbus/adapter-viewfly 4.3.11 → 4.4.1

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.
@@ -1,5 +1,5 @@
1
1
  import { makeError, VElement, VTextNode, merge, Adapter } from '@textbus/core';
2
- import { createDynamicRef, DynamicRef, jsx, withAnnotation, getCurrentInstance, onUnmounted, onUpdated, ReflectiveInjector } from '@viewfly/core';
2
+ import { createDynamicRef, DynamicRef, jsx, getCurrentInstance, onUnmounted, onUpdated, ReflectiveInjector } from '@viewfly/core';
3
3
  import { DomAdapter } from '@textbus/platform-browser';
4
4
  import { NodeViewAdapter } from '@textbus/platform-node';
5
5
 
@@ -109,7 +109,7 @@ class ViewflyAdapter extends DomAdapter {
109
109
  });
110
110
  let isRoot = true;
111
111
  Object.entries(components).forEach(([key, viewFlyComponent]) => {
112
- this.components[key] = withAnnotation(Object.assign({}, viewFlyComponent.annotation), (props) => {
112
+ this.components[key] = (props) => {
113
113
  const comp = getCurrentInstance();
114
114
  const textbusComponent = props.component;
115
115
  const subscription = merge(textbusComponent.changeMarker.onChange, textbusComponent.changeMarker.onForceChange).subscribe(() => {
@@ -134,7 +134,7 @@ class ViewflyAdapter extends DomAdapter {
134
134
  }
135
135
  });
136
136
  return viewFlyComponent(props);
137
- });
137
+ };
138
138
  });
139
139
  }
140
140
  render(rootComponent, injector) {
package/bundles/index.js CHANGED
@@ -111,7 +111,7 @@ class ViewflyAdapter extends platformBrowser.DomAdapter {
111
111
  });
112
112
  let isRoot = true;
113
113
  Object.entries(components).forEach(([key, viewFlyComponent]) => {
114
- this.components[key] = core$1.withAnnotation(Object.assign({}, viewFlyComponent.annotation), (props) => {
114
+ this.components[key] = (props) => {
115
115
  const comp = core$1.getCurrentInstance();
116
116
  const textbusComponent = props.component;
117
117
  const subscription = core.merge(textbusComponent.changeMarker.onChange, textbusComponent.changeMarker.onForceChange).subscribe(() => {
@@ -136,7 +136,7 @@ class ViewflyAdapter extends platformBrowser.DomAdapter {
136
136
  }
137
137
  });
138
138
  return viewFlyComponent(props);
139
- });
139
+ };
140
140
  });
141
141
  }
142
142
  render(rootComponent, injector) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@textbus/adapter-viewfly",
3
- "version": "4.3.11",
3
+ "version": "4.4.1",
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,11 +26,11 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "@tanbo/stream": "^1.2.7",
29
- "@textbus/core": "^4.3.4",
30
- "@textbus/platform-browser": "^4.3.11",
31
- "@textbus/platform-node": "^4.3.10",
32
- "@viewfly/core": "^1.1.10",
33
- "@viewfly/platform-browser": "^1.1.10"
29
+ "@textbus/core": "^4.4.1",
30
+ "@textbus/platform-browser": "^4.4.1",
31
+ "@textbus/platform-node": "^4.4.1",
32
+ "@viewfly/core": "^1.2.1",
33
+ "@viewfly/platform-browser": "^1.2.1"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@rollup/plugin-commonjs": "^23.0.2",
@@ -50,5 +50,5 @@
50
50
  "bugs": {
51
51
  "url": "https://github.com/textbus/textbus.git/issues"
52
52
  },
53
- "gitHead": "ae81815d6997cae3c2a8e3a8cc83d539301a3192"
53
+ "gitHead": "0867487af0885cb70f76420fa20c186db9d402f7"
54
54
  }