@textbus/adapter-vue 4.3.3 → 4.3.4
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 +2 -1
- package/bundles/index.js +2 -1
- package/package.json +4 -4
package/bundles/index.esm.js
CHANGED
@@ -2,6 +2,7 @@ import { makeError, VElement, VTextNode, Adapter } from '@textbus/core';
|
|
2
2
|
import { ref, h, getCurrentInstance, onMounted, onUpdated, onUnmounted } from 'vue';
|
3
3
|
import { DomAdapter } from '@textbus/platform-browser';
|
4
4
|
import { ReflectiveInjector } from '@viewfly/core';
|
5
|
+
import { merge } from '@tanbo/stream';
|
5
6
|
|
6
7
|
const adapterError = makeError('VueAdapter');
|
7
8
|
class VueAdapter extends DomAdapter {
|
@@ -92,7 +93,7 @@ class VueAdapter extends DomAdapter {
|
|
92
93
|
vueComponent.setup = function (props, context, ...args) {
|
93
94
|
const component = props.component;
|
94
95
|
const vueInstance = getCurrentInstance();
|
95
|
-
const sub = component.changeMarker.onChange.subscribe(() => {
|
96
|
+
const sub = merge(component.changeMarker.onChange, component.changeMarker.onForceChange).subscribe(() => {
|
96
97
|
if (component.changeMarker.dirty) {
|
97
98
|
vueInstance.proxy.$forceUpdate();
|
98
99
|
}
|
package/bundles/index.js
CHANGED
@@ -4,6 +4,7 @@ var core = require('@textbus/core');
|
|
4
4
|
var vue = require('vue');
|
5
5
|
var platformBrowser = require('@textbus/platform-browser');
|
6
6
|
var core$1 = require('@viewfly/core');
|
7
|
+
var stream = require('@tanbo/stream');
|
7
8
|
|
8
9
|
const adapterError = core.makeError('VueAdapter');
|
9
10
|
class VueAdapter extends platformBrowser.DomAdapter {
|
@@ -94,7 +95,7 @@ class VueAdapter extends platformBrowser.DomAdapter {
|
|
94
95
|
vueComponent.setup = function (props, context, ...args) {
|
95
96
|
const component = props.component;
|
96
97
|
const vueInstance = vue.getCurrentInstance();
|
97
|
-
const sub = component.changeMarker.onChange.subscribe(() => {
|
98
|
+
const sub = stream.merge(component.changeMarker.onChange, component.changeMarker.onForceChange).subscribe(() => {
|
98
99
|
if (component.changeMarker.dirty) {
|
99
100
|
vueInstance.proxy.$forceUpdate();
|
100
101
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@textbus/adapter-vue",
|
3
|
-
"version": "4.3.
|
3
|
+
"version": "4.3.4",
|
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.6",
|
29
|
-
"@textbus/core": "^4.3.
|
30
|
-
"@textbus/platform-browser": "^4.3.
|
29
|
+
"@textbus/core": "^4.3.4",
|
30
|
+
"@textbus/platform-browser": "^4.3.4",
|
31
31
|
"vue": "^3.4.28"
|
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": "b5c3e177447812e7316ac6fb6d9cd6d5e6300c7b"
|
52
52
|
}
|