@mxtommy/kip 3.0.0-alpha.66 → 3.0.0-alpha.67
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/package.json +1 -1
- package/public/main.js +11 -5
- package/public/main.js.map +1 -1
package/package.json
CHANGED
package/public/main.js
CHANGED
|
@@ -125258,7 +125258,7 @@ var WidgetFreeboardskComponent = class _WidgetFreeboardskComponent extends BaseW
|
|
|
125258
125258
|
updateConfig(config2) {
|
|
125259
125259
|
}
|
|
125260
125260
|
handleIframeGesture = (event) => {
|
|
125261
|
-
if (!event.data || !event.data.gesture)
|
|
125261
|
+
if (!event.data || !event.data.gesture || event.data.eventData.instanceId !== this.widgetProperties.uuid)
|
|
125262
125262
|
return;
|
|
125263
125263
|
switch (event.data.gesture) {
|
|
125264
125264
|
case "swipeup":
|
|
@@ -125311,6 +125311,8 @@ var WidgetFreeboardskComponent = class _WidgetFreeboardskComponent extends BaseW
|
|
|
125311
125311
|
const hammer = new Hammer(document.body);
|
|
125312
125312
|
hammer.get('swipe').set({ direction: Hammer.DIRECTION_ALL });
|
|
125313
125313
|
|
|
125314
|
+
const instanceId = '${this.widgetProperties.uuid}'; // Include the instance ID in the script to prevent multiple listeners
|
|
125315
|
+
|
|
125314
125316
|
hammer.on('swipeleft', (ev) => {
|
|
125315
125317
|
ev.preventDefault();
|
|
125316
125318
|
const eventData = {
|
|
@@ -125326,7 +125328,8 @@ var WidgetFreeboardskComponent = class _WidgetFreeboardskComponent extends BaseW
|
|
|
125326
125328
|
offsetDirection: ev.offsetDirection,
|
|
125327
125329
|
scale: ev.scale,
|
|
125328
125330
|
rotation: ev.rotation,
|
|
125329
|
-
isFinal: ev.isFinal
|
|
125331
|
+
isFinal: ev.isFinal,
|
|
125332
|
+
instanceId: instanceId // Include the instance ID in the event data
|
|
125330
125333
|
};
|
|
125331
125334
|
window.parent.postMessage({ gesture: 'swipeleft', eventData: eventData }, '*');
|
|
125332
125335
|
});
|
|
@@ -125346,7 +125349,8 @@ var WidgetFreeboardskComponent = class _WidgetFreeboardskComponent extends BaseW
|
|
|
125346
125349
|
offsetDirection: ev.offsetDirection,
|
|
125347
125350
|
scale: ev.scale,
|
|
125348
125351
|
rotation: ev.rotation,
|
|
125349
|
-
isFinal: ev.isFinal
|
|
125352
|
+
isFinal: ev.isFinal,
|
|
125353
|
+
instanceId: instanceId // Include the instance ID in the event data
|
|
125350
125354
|
};
|
|
125351
125355
|
window.parent.postMessage({ gesture: 'swiperight', eventData: eventData }, '*');
|
|
125352
125356
|
});
|
|
@@ -125366,7 +125370,8 @@ var WidgetFreeboardskComponent = class _WidgetFreeboardskComponent extends BaseW
|
|
|
125366
125370
|
offsetDirection: ev.offsetDirection,
|
|
125367
125371
|
scale: ev.scale,
|
|
125368
125372
|
rotation: ev.rotation,
|
|
125369
|
-
isFinal: ev.isFinal
|
|
125373
|
+
isFinal: ev.isFinal,
|
|
125374
|
+
instanceId: instanceId // Include the instance ID in the event data
|
|
125370
125375
|
};
|
|
125371
125376
|
window.parent.postMessage({ gesture: 'swipeup', eventData: eventData }, '*');
|
|
125372
125377
|
});
|
|
@@ -125386,7 +125391,8 @@ var WidgetFreeboardskComponent = class _WidgetFreeboardskComponent extends BaseW
|
|
|
125386
125391
|
offsetDirection: ev.offsetDirection,
|
|
125387
125392
|
scale: ev.scale,
|
|
125388
125393
|
rotation: ev.rotation,
|
|
125389
|
-
isFinal: ev.isFinal
|
|
125394
|
+
isFinal: ev.isFinal,
|
|
125395
|
+
instanceId: instanceId // Include the instance ID in the event data
|
|
125390
125396
|
};
|
|
125391
125397
|
window.parent.postMessage({ gesture: 'swipedown', eventData: eventData }, '*');
|
|
125392
125398
|
});
|