@textbus/adapter-vue 4.0.0-alpha.57 → 4.0.0-alpha.59

Sign up to get free protection for your applications and to get access to all the features.
@@ -88,7 +88,7 @@ class VueAdapter extends DomAdapter {
88
88
  const vueComponent = components[key];
89
89
  const setup = vueComponent.setup;
90
90
  const self = this;
91
- vueComponent.setup = function (props) {
91
+ vueComponent.setup = function (props, context, ...args) {
92
92
  const component = props.component;
93
93
  const vueInstance = getCurrentInstance();
94
94
  const sub = component.changeMarker.onChange.subscribe(() => {
@@ -120,7 +120,7 @@ class VueAdapter extends DomAdapter {
120
120
  onUnmounted(() => {
121
121
  sub.unsubscribe();
122
122
  });
123
- const result = setup(props);
123
+ const result = setup(props, context, ...args);
124
124
  if (typeof result === 'function') {
125
125
  return function () {
126
126
  component.__slots__.forEach(i => self.renderedSlotCache.delete(i));
package/bundles/index.js CHANGED
@@ -90,7 +90,7 @@ class VueAdapter extends platformBrowser.DomAdapter {
90
90
  const vueComponent = components[key];
91
91
  const setup = vueComponent.setup;
92
92
  const self = this;
93
- vueComponent.setup = function (props) {
93
+ vueComponent.setup = function (props, context, ...args) {
94
94
  const component = props.component;
95
95
  const vueInstance = vue.getCurrentInstance();
96
96
  const sub = component.changeMarker.onChange.subscribe(() => {
@@ -122,7 +122,7 @@ class VueAdapter extends platformBrowser.DomAdapter {
122
122
  vue.onUnmounted(() => {
123
123
  sub.unsubscribe();
124
124
  });
125
- const result = setup(props);
125
+ const result = setup(props, context, ...args);
126
126
  if (typeof result === 'function') {
127
127
  return function () {
128
128
  component.__slots__.forEach(i => self.renderedSlotCache.delete(i));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@textbus/adapter-vue",
3
- "version": "4.0.0-alpha.57",
3
+ "version": "4.0.0-alpha.59",
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.4",
29
- "@textbus/core": "^4.0.0-alpha.57",
30
- "@textbus/platform-browser": "^4.0.0-alpha.57",
29
+ "@textbus/core": "^4.0.0-alpha.59",
30
+ "@textbus/platform-browser": "^4.0.0-alpha.59",
31
31
  "vue": "^3.3.4"
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": "0a8d42b5be9e2fd24dcbdf31de32e820fadfbe41"
51
+ "gitHead": "444feba7873584e9ad3611f374d197e6f2933823"
52
52
  }