lido-player 0.0.2-alpha-97 → 0.0.2-alpha-99
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/cjs/{decode-BK8Kqw1j.js → decode-Bw2Aqe6S.js} +1 -1
- package/dist/cjs/{index-BrME-8br.js → index-Bsk4M2Qz.js} +59 -23
- package/dist/cjs/{index-BijNmpWS.js → index-Cmk1eaCV.js} +21 -5
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/lido-avatar_22.cjs.entry.js +1101 -1160
- package/dist/cjs/lido-player.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/trace/lido-trace.js +64 -34
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +16 -0
- package/dist/components/index.js +1 -1
- package/dist/components/lido-avatar.js +1 -1
- package/dist/components/lido-calculator.js +1 -1
- package/dist/components/lido-canvas.js +1 -1
- package/dist/components/lido-container.js +1 -1
- package/dist/components/lido-home.js +1 -1
- package/dist/components/lido-keyboard.js +1 -1
- package/dist/components/lido-root.js +1 -1
- package/dist/components/lido-text.js +1 -1
- package/dist/components/lido-trace.js +1 -1
- package/dist/components/{p-sXIVKaYg.js → p-1qOeKb23.js} +1 -1
- package/dist/components/{p-DU4wfdAe.js → p-5cqqnSZl.js} +1 -1
- package/dist/components/{p-BQENw2P9.js → p-BToRx4je.js} +1 -1
- package/dist/components/p-D2I4rurf.js +1 -0
- package/dist/components/{p-DMjuSKpY.js → p-DWnRy2OX.js} +1 -1
- package/dist/components/{p-CEvj-zzm.js → p-DdjiT37N.js} +1 -1
- package/dist/components/p-XacgbiAe.js +1 -0
- package/dist/components/p-q6x112RN.js +1 -0
- package/dist/esm/{decode-0vpRxCh3.js → decode-BqPxsId-.js} +1 -1
- package/dist/esm/{index-Bf4MY45y.js → index-BNZwxVWj.js} +21 -5
- package/dist/esm/{index-BlRhFuUy.js → index-Dfvjtz8r.js} +59 -23
- package/dist/esm/index.js +2 -2
- package/dist/esm/lido-avatar_22.entry.js +1101 -1160
- package/dist/esm/lido-player.js +3 -3
- package/dist/esm/loader.js +2 -2
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/{p-MsdMCX0_.js → p-BFlGDCI4.js} +1 -1
- package/dist/lido-player/p-CXTdf__z.js +1 -0
- package/dist/lido-player/p-Dfvjtz8r.js +2 -0
- package/dist/lido-player/p-b28417ad.entry.js +1 -0
- package/dist/types/components/trace/lido-trace.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +3 -1
- package/package.json +1 -1
- package/dist/components/p-B4Jyt3YL.js +0 -1
- package/dist/components/p-BstMLAyY.js +0 -1
- package/dist/components/p-Jfm941HH.js +0 -1
- package/dist/lido-player/p-3ed3bcd7.entry.js +0 -1
- package/dist/lido-player/p-BlRhFuUy.js +0 -2
- package/dist/lido-player/p-UqNm08Na.js +0 -1
|
@@ -25,9 +25,22 @@ const globalScripts = () => {};
|
|
|
25
25
|
const globalStyles = "@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400..800&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Baloo+Bhai+2:wght@400..800&display=swap'); body{overflow:hidden;background-position:center;background-size:cover;background-repeat:no-repeat;height:100vh}*{user-select:none}.lido-disable-check-button{pointer-events:none;background-color:#9393935c !important;color:white}.lido-element-selected{border:2px solid;background-color:#ffdf7d !important}.diagonal-target,.diagonal-drop *{transform:scale(0.8) !important;opacity:1 !important}.cloned-element{display:flex !important;position:absolute !important;filter:grayscale(100%);pointer-events:none}.removeShadow{box-shadow:0px 0px 0px 0px #ff8900 !important}.highlight-element{border:2px solid white;box-shadow:rgb(243, 77, 8) 0px 0px 40px !important}.drop-element.empty{border:4px dashed #f34d08 !important}.drop-element.filled{border:'none' !important}.drag-element{box-shadow:0px 15px 11px rgba(43, 0, 0, 0.3) !important}.drag-element.dropped{box-shadow:none !important}.click-element{background-color:var(--btn-bg-color, rgba(255, 172, 76, 1)) !important;box-shadow:var(--btn-shadow-px) var(--btn-shadow-color, rgba(225, 121, 76, 1)) !important;cursor:pointer;transition:box-shadow 0.1s ease-out, transform 0.2s ease-out;}.click-element:active{box-shadow:0px 0px 0px var(--btn-shadow-color, rgba(225, 121, 76, 1)) !important;transform:translateY(var(--btn-active));}.click-element:focus{outline:2px solid dodgerblue;outline-offset:3px}.after-drop-popup-container{width:200%;height:200%;background-color:rgba(0, 0, 0, 0.8);position:absolute;display:flex;flex-direction:row-reverse;align-items:center;justify-content:center !important;gap:80px}.after-drop-popup-drag-element{scale:1.5;border-radius:8px;transform:none !important;position:unset !important}.after-drop-popup-drop-element{scale:1.5;border:unset;border-radius:8px;transform:none !important;position:unset !important}@keyframes zoomFadeIn{0%{transform:scale(0.6);opacity:0}100%{transform:scale(1);opacity:1}}.zoom-fade-in{animation:zoomFadeIn 0.8s ease-out forwards}@keyframes zoomFadeOut{0%{transform:scale(1);opacity:1}100%{transform:scale(0.6);opacity:0}}.zoom-fade-out{animation:zoomFadeOut 0.8s ease-in forwards}.slide-numbers{width:70px;height:70px;border:1px solid #f57139;background-color:white;font-weight:500;color:#f57139;font-size:44px;border-radius:40px;display:flex;align-items:center;justify-content:center;font-family:'Baloo Bhai 2', serif}.slide-numbers-bottom{position:absolute;display:flex;justify-content:space-around;align-items:center;bottom:-25px;width:100%;height:50px}.slide-numbers-left{position:absolute;display:flex;flex-direction:column;justify-content:space-around;height:100%;width:50px;left:-25px;bottom:0px}.lido-speak-icon{width:56px;height:56px;position:absolute;top:-25px;right:-25px;z-index:10;background-image:url(\"https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/template/audioIcon.png\");background-color:white;border:4px solid #F34D08;border-radius:16px;box-shadow:0px 4px 0px 0px #F34D08;background-size:contain;background-repeat:no-repeat;cursor:pointer}.lido-speak-icon:active{transform:translateY(8px);box-shadow:0px 0px 0px 0px !important}.lido-strong-shake{animation:strongShake 0.3s ease}.lido-scaled-shake{animation:scaledShake 0.6s ease-in-out}.lido-horizontal-shake{animation:horizontalShake 0.6s ease-in-out;border-radius:20px}.lido-vertical-shake{animation:verticalShake 0.6s ease-in-out;border-radius:20px}.lido-diagonal-shake{animation:diagonalShake 0.5s ease-in-out;border-radius:20px;will-change:transform}.lido-glow{animation:glowPulse 1s infinite alternate;transition:opacity 0.5s ease-in-out}.lido-box-highlight{animation:topToPlace 0.3s linear}.lido-display-hiddenvalue{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:80px;font-weight:1000;color:brown;-webkit-text-stroke:2px white;font-family:'Baloo Bhai 2', sans-serif;pointer-events:none}.lido-image-colorize{position:relative;display:inline-block}.lido-image-colorize::after{content:'';position:absolute;inset:0;background:var(--tint-color);mix-blend-mode:multiply;opacity:0.8;pointer-events:none;mask-image:var(--mask-url);mask-size:cover;mask-repeat:no-repeat;mask-position:center}.lido-tts-highlight-overlay{position:fixed;pointer-events:none;z-index:9999;background:linear-gradient(\r\n 180deg,\r\n rgba(255, 235, 59, 0.95),\r\n rgba(255, 214, 0, 0.95)\r\n );border-radius:6px;box-shadow:0 2px 6px rgba(0, 0, 0, 0.18),\r\n inset 0 -1px 0 rgba(255, 255, 255, 0.25);transition:left 55ms linear,\r\n top 55ms linear,\r\n width 55ms ease-out,\r\n height 55ms ease-out,\r\n opacity 80ms ease-out;opacity:0.95;will-change:transform, width, height}";
|
|
26
26
|
|
|
27
27
|
/*
|
|
28
|
-
Stencil Client Platform v4.43.
|
|
28
|
+
Stencil Client Platform v4.43.4 | MIT Licensed | https://stenciljs.com
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
|
+
|
|
32
|
+
// src/utils/get-prop-descriptor.ts
|
|
33
|
+
function getPropertyDescriptor(obj, memberName, getOnly) {
|
|
34
|
+
const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
|
|
35
|
+
while (obj && obj !== stopAt) {
|
|
36
|
+
const desc = Object.getOwnPropertyDescriptor(obj, memberName);
|
|
37
|
+
if (desc && (!getOnly || desc.get)) return desc;
|
|
38
|
+
obj = Object.getPrototypeOf(obj);
|
|
39
|
+
}
|
|
40
|
+
return void 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// src/utils/es2022-rewire-class-members.ts
|
|
31
44
|
var reWireGetterSetter = (instance, hostRef) => {
|
|
32
45
|
var _a;
|
|
33
46
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
@@ -35,7 +48,7 @@ var reWireGetterSetter = (instance, hostRef) => {
|
|
|
35
48
|
members.map(([memberName, [memberFlags]]) => {
|
|
36
49
|
if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
|
|
37
50
|
const ogValue = instance[memberName];
|
|
38
|
-
const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
|
|
51
|
+
const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
|
|
39
52
|
if (ogDescriptor) {
|
|
40
53
|
Object.defineProperty(instance, memberName, {
|
|
41
54
|
get() {
|
|
@@ -48,18 +61,14 @@ var reWireGetterSetter = (instance, hostRef) => {
|
|
|
48
61
|
enumerable: true
|
|
49
62
|
});
|
|
50
63
|
}
|
|
51
|
-
|
|
64
|
+
if (hostRef.$instanceValues$.has(memberName)) {
|
|
65
|
+
instance[memberName] = hostRef.$instanceValues$.get(memberName);
|
|
66
|
+
} else if (ogValue !== void 0) {
|
|
67
|
+
instance[memberName] = ogValue;
|
|
68
|
+
}
|
|
52
69
|
}
|
|
53
70
|
});
|
|
54
71
|
};
|
|
55
|
-
function getPropertyDescriptor(obj, memberName) {
|
|
56
|
-
while (obj) {
|
|
57
|
-
const desc = Object.getOwnPropertyDescriptor(obj, memberName);
|
|
58
|
-
if (desc == null ? void 0 : desc.get) return desc;
|
|
59
|
-
obj = Object.getPrototypeOf(obj);
|
|
60
|
-
}
|
|
61
|
-
return void 0;
|
|
62
|
-
}
|
|
63
72
|
|
|
64
73
|
// src/client/client-host-ref.ts
|
|
65
74
|
var getHostRef = (ref) => {
|
|
@@ -443,7 +452,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
443
452
|
}
|
|
444
453
|
} else {
|
|
445
454
|
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
446
|
-
if (existingStyleContainer) {
|
|
455
|
+
if (existingStyleContainer && true) {
|
|
447
456
|
existingStyleContainer.textContent = style + existingStyleContainer.textContent;
|
|
448
457
|
} else {
|
|
449
458
|
styleContainerNode.prepend(styleElm);
|
|
@@ -590,6 +599,31 @@ var newVNode = (tag, text) => {
|
|
|
590
599
|
var Host = {};
|
|
591
600
|
var isHost = (node) => node && node.$tag$ === Host;
|
|
592
601
|
|
|
602
|
+
// src/runtime/normalize-watchers.ts
|
|
603
|
+
var normalizeWatchers = (raw) => {
|
|
604
|
+
if (!raw) return void 0;
|
|
605
|
+
const keys = Object.keys(raw);
|
|
606
|
+
if (keys.length === 0) return void 0;
|
|
607
|
+
let hasLegacy = false;
|
|
608
|
+
for (const propName of keys) {
|
|
609
|
+
if (hasLegacy) break;
|
|
610
|
+
for (const h2 of raw[propName]) {
|
|
611
|
+
if (typeof h2 === "string") {
|
|
612
|
+
hasLegacy = true;
|
|
613
|
+
break;
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
if (!hasLegacy) return raw;
|
|
618
|
+
const out = {};
|
|
619
|
+
for (const propName of keys) {
|
|
620
|
+
out[propName] = raw[propName].map(
|
|
621
|
+
(h2) => typeof h2 === "string" ? { [h2]: 0 } : h2
|
|
622
|
+
);
|
|
623
|
+
}
|
|
624
|
+
return out;
|
|
625
|
+
};
|
|
626
|
+
|
|
593
627
|
// src/runtime/parse-property-value.ts
|
|
594
628
|
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
595
629
|
if (propValue != null && !isComplexType(propValue)) {
|
|
@@ -721,7 +755,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
721
755
|
return;
|
|
722
756
|
} else {
|
|
723
757
|
const isComplex = isComplexType(newValue);
|
|
724
|
-
if ((isProp || isComplex && newValue !== null) &&
|
|
758
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
725
759
|
try {
|
|
726
760
|
if (!elm.tagName.includes("-")) {
|
|
727
761
|
const n = newValue == null ? "" : newValue;
|
|
@@ -1573,7 +1607,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1573
1607
|
if (cmpMeta.$members$ || BUILD.propChangeCallback) {
|
|
1574
1608
|
{
|
|
1575
1609
|
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
1576
|
-
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1610
|
+
cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
|
|
1577
1611
|
}
|
|
1578
1612
|
if (Cstr.deserializers && !cmpMeta.$deserializers$) {
|
|
1579
1613
|
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
@@ -1585,7 +1619,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1585
1619
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1586
1620
|
members.map(([memberName, [memberFlags]]) => {
|
|
1587
1621
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1588
|
-
const { get: origGetter, set: origSetter } =
|
|
1622
|
+
const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
|
|
1589
1623
|
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1590
1624
|
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1591
1625
|
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
@@ -1699,11 +1733,13 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1699
1733
|
return;
|
|
1700
1734
|
}
|
|
1701
1735
|
const propFlags = members.find(([m]) => m === propName);
|
|
1702
|
-
|
|
1736
|
+
const isBooleanTarget = propFlags && propFlags[1][0] & 4 /* Boolean */;
|
|
1737
|
+
const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
|
|
1738
|
+
if (isBooleanTarget) {
|
|
1703
1739
|
newValue = newValue === null || newValue === "false" ? false : true;
|
|
1704
1740
|
}
|
|
1705
1741
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1706
|
-
if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1742
|
+
if (!isSpuriousBooleanRemoval && newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1707
1743
|
this[propName] = newValue;
|
|
1708
1744
|
}
|
|
1709
1745
|
});
|
|
@@ -1748,7 +1784,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1748
1784
|
}
|
|
1749
1785
|
if (!Cstr.isProxied) {
|
|
1750
1786
|
{
|
|
1751
|
-
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1787
|
+
cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
|
|
1752
1788
|
cmpMeta.$serializers$ = Cstr.serializers;
|
|
1753
1789
|
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
1754
1790
|
}
|
|
@@ -1847,7 +1883,7 @@ var connectedCallback = (elm) => {
|
|
|
1847
1883
|
}
|
|
1848
1884
|
if (cmpMeta.$members$) {
|
|
1849
1885
|
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1850
|
-
if (memberFlags & 31 /* Prop */ &&
|
|
1886
|
+
if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
|
|
1851
1887
|
const value = elm[memberName];
|
|
1852
1888
|
delete elm[memberName];
|
|
1853
1889
|
elm[memberName] = value;
|
|
@@ -1921,7 +1957,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1921
1957
|
let hasSlotRelocation = false;
|
|
1922
1958
|
lazyBundles.map((lazyBundle) => {
|
|
1923
1959
|
lazyBundle[1].map((compactMeta) => {
|
|
1924
|
-
var _a2, _b
|
|
1960
|
+
var _a2, _b;
|
|
1925
1961
|
const cmpMeta = {
|
|
1926
1962
|
$flags$: compactMeta[0],
|
|
1927
1963
|
$tagName$: compactMeta[1],
|
|
@@ -1938,9 +1974,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1938
1974
|
cmpMeta.$attrsToReflect$ = [];
|
|
1939
1975
|
}
|
|
1940
1976
|
{
|
|
1941
|
-
cmpMeta.$watchers$ = (
|
|
1942
|
-
cmpMeta.$serializers$ = (
|
|
1943
|
-
cmpMeta.$deserializers$ = (
|
|
1977
|
+
cmpMeta.$watchers$ = normalizeWatchers(compactMeta[4]);
|
|
1978
|
+
cmpMeta.$serializers$ = (_a2 = compactMeta[5]) != null ? _a2 : {};
|
|
1979
|
+
cmpMeta.$deserializers$ = (_b = compactMeta[6]) != null ? _b : {};
|
|
1944
1980
|
}
|
|
1945
1981
|
const tagName = transformTag(cmpMeta.$tagName$);
|
|
1946
1982
|
const HostElement = class extends HTMLElement {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index$1 = require('./index-
|
|
3
|
+
var index$1 = require('./index-Bsk4M2Qz.js');
|
|
4
4
|
|
|
5
5
|
const DragMapKey = 'lidoDragMap';
|
|
6
6
|
const SelectedValuesKey = 'lidoSelectedValues';
|
|
@@ -567,6 +567,8 @@ function enableDraggingWithScaling(element) {
|
|
|
567
567
|
handleResetDragElement(element, mostOverlappedElement, dropHasDrag, null, dragSelectedData);
|
|
568
568
|
return;
|
|
569
569
|
}
|
|
570
|
+
element.style.pointerEvents = 'none'; // Disable pointer events on drag element to prevent interference during drop handling
|
|
571
|
+
mostOverlappedElement.style.pointerEvents = 'none';
|
|
570
572
|
onElementDropComplete(element, mostOverlappedElement);
|
|
571
573
|
if (templateId === "blender" && element && mostOverlappedElement) {
|
|
572
574
|
const allElements = document.querySelectorAll(`*`);
|
|
@@ -576,6 +578,11 @@ function enableDraggingWithScaling(element) {
|
|
|
576
578
|
mostOverlappedElement.classList.add("highlight-element");
|
|
577
579
|
}
|
|
578
580
|
executeActions("this.updateCountBlender='true'", container);
|
|
581
|
+
setTimeout(() => {
|
|
582
|
+
element.style.pointerEvents = '';
|
|
583
|
+
mostOverlappedElement.style.pointerEvents = '';
|
|
584
|
+
}, 1000);
|
|
585
|
+
// element.style.pointerEvents = ''; // Re-enable pointer events on drag element after drop handling
|
|
579
586
|
if (((_b = element.getAttribute('dropAttr')) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === DropMode.Diagonal) {
|
|
580
587
|
if (mostOverlappedElement) {
|
|
581
588
|
if (element) {
|
|
@@ -1053,6 +1060,7 @@ async function onClickDropOrDragElement(element, type) {
|
|
|
1053
1060
|
// Remove the highlight class from elements matching the selector
|
|
1054
1061
|
const highlightedElements = document.querySelectorAll(`[type='${type}']`);
|
|
1055
1062
|
highlightedElements.forEach(el => {
|
|
1063
|
+
el.style.pointerEvents = ''; // Re-enable pointer events
|
|
1056
1064
|
removeHighlight(el);
|
|
1057
1065
|
});
|
|
1058
1066
|
// Dynamically create the highlight class if it doesn't exist
|
|
@@ -1071,17 +1079,22 @@ async function onClickDropOrDragElement(element, type) {
|
|
|
1071
1079
|
document.head.appendChild(style);
|
|
1072
1080
|
}
|
|
1073
1081
|
element === null || element === void 0 ? void 0 : element.classList.add('highlight-element');
|
|
1082
|
+
element.style.pointerEvents = "none";
|
|
1074
1083
|
element.ariaPressed = 'true';
|
|
1075
1084
|
const selectedDropElement = type === 'drop' ? element : document.querySelector("[type='drop'].highlight-element");
|
|
1076
1085
|
const selectedDragElement = type === 'drag' ? element : document.querySelector("[type='drag'].highlight-element");
|
|
1077
1086
|
if (!selectedDropElement || element.classList.contains("dropped")) {
|
|
1078
1087
|
console.log("hello");
|
|
1079
1088
|
onClickDragElement(element);
|
|
1089
|
+
element.style.pointerEvents = ""; // Re-enable pointer events if it was a drag element
|
|
1080
1090
|
return;
|
|
1081
1091
|
}
|
|
1082
1092
|
if (element.classList.contains("drop-element"))
|
|
1083
1093
|
return;
|
|
1084
1094
|
if (selectedDropElement && selectedDragElement) {
|
|
1095
|
+
selectedDropElement.style.pointerEvents = 'none'; // Disable pointer events on drop element during animation
|
|
1096
|
+
selectedDragElement.style.pointerEvents = 'none'; // Disable pointer events on drag element during animation
|
|
1097
|
+
console.log("drop called!!!");
|
|
1085
1098
|
if (selectedDragElement.getAttribute('drop-to'))
|
|
1086
1099
|
return;
|
|
1087
1100
|
// Add a transition for a smooth, slower movement
|
|
@@ -1108,10 +1121,13 @@ async function onClickDropOrDragElement(element, type) {
|
|
|
1108
1121
|
}
|
|
1109
1122
|
// await new Promise(resolve => setTimeout(resolve, 500));
|
|
1110
1123
|
await onElementDropComplete(selectedDragElement, selectedDropElement);
|
|
1124
|
+
selectedDragElement.style.pointerEvents = ''; // Re-enable pointer events on drag element after animation
|
|
1125
|
+
selectedDropElement.style.pointerEvents = ''; // Re-enable pointer events on drop element after animation
|
|
1111
1126
|
// ensure count update for click-to-drop flow
|
|
1112
1127
|
await executeActions("this.updateCountBlender='true'", container);
|
|
1113
1128
|
// await new Promise(resolve => setTimeout(resolve, 500));
|
|
1114
1129
|
// selectedDragElement.style.transform = 'translate(0px, 0px)';
|
|
1130
|
+
// selectedDropElement.style.pointerEvents = '';
|
|
1115
1131
|
}
|
|
1116
1132
|
}
|
|
1117
1133
|
const dragToDropMap = new Map();
|
|
@@ -7282,7 +7298,7 @@ var tanh$2 = Math.tanh || function (x) {
|
|
|
7282
7298
|
function copysign(x, y) {
|
|
7283
7299
|
var signx = true ;
|
|
7284
7300
|
var signy = y > 0 ? true : y < 0 ? false : 1 / y === Infinity;
|
|
7285
|
-
return signx ^ signy ? -
|
|
7301
|
+
return signx ^ signy ? -x : x;
|
|
7286
7302
|
}
|
|
7287
7303
|
function _toNumberOrThrow(value, onError) {
|
|
7288
7304
|
if (isNumber(value)) {
|
|
@@ -7905,7 +7921,7 @@ var EXP_LIMIT = 9e15, // 0 to 9e15
|
|
|
7905
7921
|
|
|
7906
7922
|
// The minimum exponent value, beneath which underflow to zero occurs.
|
|
7907
7923
|
// JavaScript numbers: -324 (5e-324)
|
|
7908
|
-
minE: -
|
|
7924
|
+
minE: -EXP_LIMIT, // -1 to -EXP_LIMIT
|
|
7909
7925
|
|
|
7910
7926
|
// The maximum exponent value, above which overflow to Infinity occurs.
|
|
7911
7927
|
// JavaScript numbers: 308 (1.7976931348623157e+308)
|
|
@@ -12031,10 +12047,10 @@ function config(obj) {
|
|
|
12031
12047
|
ps = [
|
|
12032
12048
|
'precision', 1, MAX_DIGITS,
|
|
12033
12049
|
'rounding', 0, 8,
|
|
12034
|
-
'toExpNeg', -
|
|
12050
|
+
'toExpNeg', -EXP_LIMIT, 0,
|
|
12035
12051
|
'toExpPos', 0, EXP_LIMIT,
|
|
12036
12052
|
'maxE', 0, EXP_LIMIT,
|
|
12037
|
-
'minE', -
|
|
12053
|
+
'minE', -EXP_LIMIT, 0,
|
|
12038
12054
|
'modulo', 0, 9
|
|
12039
12055
|
];
|
|
12040
12056
|
|