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

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.
@@ -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.58",
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.58",
30
- "@textbus/platform-browser": "^4.0.0-alpha.58",
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": "47cc398628efc5726ac88ffbb69ab2125f6b7b19"
51
+ "gitHead": "444feba7873584e9ad3611f374d197e6f2933823"
52
52
  }