@uniformdev/canvas-vue 19.146.2 → 19.147.1-alpha.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.
- package/dist/index.esm.js +4 -0
- package/dist/index.js +4 -0
- package/dist/index.mjs +4 -0
- package/package.json +5 -5
package/dist/index.esm.js
CHANGED
|
@@ -174,6 +174,7 @@ var useUniformContextualEditing = ({
|
|
|
174
174
|
enhance = (message) => message.composition
|
|
175
175
|
}) => {
|
|
176
176
|
const contextualComposition = ref();
|
|
177
|
+
let latestEventTimeStamp;
|
|
177
178
|
const composition = computed2(() => {
|
|
178
179
|
var _a;
|
|
179
180
|
return (_a = contextualComposition.value) != null ? _a : initialCompositionValue == null ? void 0 : initialCompositionValue.value;
|
|
@@ -208,6 +209,9 @@ var useUniformContextualEditing = ({
|
|
|
208
209
|
if (!isUpdateCompositionInternalMessage(message)) {
|
|
209
210
|
return;
|
|
210
211
|
}
|
|
212
|
+
if (latestEventTimeStamp && message.eventTimestamp && message.eventTimestamp <= latestEventTimeStamp) {
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
211
215
|
const enhancedComposition = await enhance(message);
|
|
212
216
|
contextualComposition.value = enhancedComposition;
|
|
213
217
|
});
|
package/dist/index.js
CHANGED
|
@@ -199,6 +199,7 @@ var useUniformContextualEditing = ({
|
|
|
199
199
|
enhance = (message) => message.composition
|
|
200
200
|
}) => {
|
|
201
201
|
const contextualComposition = (0, import_vue_demi3.ref)();
|
|
202
|
+
let latestEventTimeStamp;
|
|
202
203
|
const composition = (0, import_vue_demi3.computed)(() => {
|
|
203
204
|
var _a;
|
|
204
205
|
return (_a = contextualComposition.value) != null ? _a : initialCompositionValue == null ? void 0 : initialCompositionValue.value;
|
|
@@ -233,6 +234,9 @@ var useUniformContextualEditing = ({
|
|
|
233
234
|
if (!(0, import_canvas3.isUpdateCompositionInternalMessage)(message)) {
|
|
234
235
|
return;
|
|
235
236
|
}
|
|
237
|
+
if (latestEventTimeStamp && message.eventTimestamp && message.eventTimestamp <= latestEventTimeStamp) {
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
236
240
|
const enhancedComposition = await enhance(message);
|
|
237
241
|
contextualComposition.value = enhancedComposition;
|
|
238
242
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -174,6 +174,7 @@ var useUniformContextualEditing = ({
|
|
|
174
174
|
enhance = (message) => message.composition
|
|
175
175
|
}) => {
|
|
176
176
|
const contextualComposition = ref();
|
|
177
|
+
let latestEventTimeStamp;
|
|
177
178
|
const composition = computed2(() => {
|
|
178
179
|
var _a;
|
|
179
180
|
return (_a = contextualComposition.value) != null ? _a : initialCompositionValue == null ? void 0 : initialCompositionValue.value;
|
|
@@ -208,6 +209,9 @@ var useUniformContextualEditing = ({
|
|
|
208
209
|
if (!isUpdateCompositionInternalMessage(message)) {
|
|
209
210
|
return;
|
|
210
211
|
}
|
|
212
|
+
if (latestEventTimeStamp && message.eventTimestamp && message.eventTimestamp <= latestEventTimeStamp) {
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
211
215
|
const enhancedComposition = await enhance(message);
|
|
212
216
|
contextualComposition.value = enhancedComposition;
|
|
213
217
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-vue",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.147.1-alpha.1+3b71376893",
|
|
4
4
|
"description": "Vue SDK for Uniform Canvas",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"document": "api-extractor run --local"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@uniformdev/canvas": "19.
|
|
27
|
-
"@uniformdev/context-vue": "19.
|
|
28
|
-
"@uniformdev/richtext": "19.
|
|
26
|
+
"@uniformdev/canvas": "19.147.1-alpha.1+3b71376893",
|
|
27
|
+
"@uniformdev/context-vue": "19.147.1-alpha.1+3b71376893",
|
|
28
|
+
"@uniformdev/richtext": "19.147.1-alpha.1+3b71376893",
|
|
29
29
|
"vue-demi": "^0.14.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "3b71376893147a07f47c6118425304f96d099067"
|
|
63
63
|
}
|