lido-player 0.0.2-alpha-21 → 0.0.2-alpha-22
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/index.cjs.js +1 -1
- package/dist/cjs/lido-avatar_17.cjs.entry.js +2 -1
- package/dist/cjs/{utils-677af176.js → utils-2c359ce9.js} +12 -4
- package/dist/collection/components/home/lido-home.js +1 -0
- package/dist/collection/utils/utils.js +1 -0
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +11 -4
- package/dist/components/index.js +1 -1
- package/dist/components/lido-avatar.js +1 -1
- package/dist/components/lido-cell.js +1 -1
- package/dist/components/lido-col.js +1 -1
- package/dist/components/lido-container.js +1 -1
- package/dist/components/lido-flash-card.js +1 -1
- package/dist/components/lido-float.js +1 -1
- package/dist/components/lido-home.js +1 -1
- package/dist/components/lido-image.js +1 -1
- package/dist/components/lido-pos.js +1 -1
- package/dist/components/lido-random.js +1 -1
- package/dist/components/lido-root.js +17 -17
- package/dist/components/lido-row.js +1 -1
- package/dist/components/lido-shape.js +1 -1
- package/dist/components/lido-slide-fill.js +1 -1
- package/dist/components/lido-text.js +1 -1
- package/dist/components/lido-trace.js +1 -1
- package/dist/components/lido-wrap.js +1 -1
- package/dist/components/{p-f47d09ca.js → p-075e3df2.js} +1 -1
- package/dist/components/{p-8173be9b.js → p-146d84df.js} +1 -1
- package/dist/components/{p-b145c3fa.js → p-1a3d27b9.js} +1 -1
- package/dist/components/{p-509e23d5.js → p-1e919b62.js} +1 -1
- package/dist/components/{p-0c349e4c.js → p-312c37eb.js} +1 -1
- package/dist/components/{p-4272a4b0.js → p-3f68553e.js} +17 -16
- package/dist/components/{p-a647a4fe.js → p-4e5402a0.js} +1 -1
- package/dist/components/{p-e5d3e84e.js → p-695dceed.js} +1 -1
- package/dist/components/{p-7f5a97ff.js → p-698ba3b6.js} +1 -1
- package/dist/components/{p-06f1ae64.js → p-6b95c2c0.js} +1 -1
- package/dist/components/{p-5dea6a86.js → p-88f873e0.js} +1 -1
- package/dist/components/{p-cbc2a355.js → p-89a9fc4b.js} +1 -1
- package/dist/components/{p-cb3950d0.js → p-99b2d22b.js} +1 -1
- package/dist/components/{p-1bf7f8c5.js → p-b2cb2109.js} +1 -1
- package/dist/components/{p-0846f16a.js → p-b7e4d6ab.js} +1 -1
- package/dist/components/{p-bcd6fcc5.js → p-ebc82752.js} +1 -1
- package/dist/components/{p-4817b81a.js → p-fbc0b6e1.js} +12 -4
- package/dist/esm/index.js +1 -1
- package/dist/esm/lido-avatar_17.entry.js +2 -1
- package/dist/esm/{utils-4008e3c6.js → utils-ce4335d6.js} +12 -4
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/{p-397463d6.entry.js → p-582208a9.entry.js} +1 -1
- package/dist/lido-player/{p-1e744f1d.js → p-6fadeca7.js} +1 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fe562525.js');
|
|
6
|
-
const utils = require('./utils-
|
|
6
|
+
const utils = require('./utils-2c359ce9.js');
|
|
7
7
|
|
|
8
8
|
var rive = {exports: {}};
|
|
9
9
|
|
|
@@ -7159,6 +7159,7 @@ const LidoHome = class {
|
|
|
7159
7159
|
rightbtn.style.visibility = 'hidden';
|
|
7160
7160
|
}
|
|
7161
7161
|
else {
|
|
7162
|
+
rightbtn.style.pointerEvents = 'auto';
|
|
7162
7163
|
rightbtn.style.visibility = 'visible';
|
|
7163
7164
|
}
|
|
7164
7165
|
}, 100);
|
|
@@ -694,6 +694,7 @@ function enableDraggingWithScaling(element) {
|
|
|
694
694
|
let initialY = 0;
|
|
695
695
|
let clone = null;
|
|
696
696
|
let duplicateElement = null;
|
|
697
|
+
let mutationFlag = false;
|
|
697
698
|
// Fetch the container element
|
|
698
699
|
const container = document.getElementById(LidoContainer);
|
|
699
700
|
if (!container) {
|
|
@@ -778,10 +779,12 @@ function enableDraggingWithScaling(element) {
|
|
|
778
779
|
initialX = 0;
|
|
779
780
|
initialY = 0;
|
|
780
781
|
}
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
782
|
+
if (mutationFlag) {
|
|
783
|
+
const rect1 = container.getBoundingClientRect();
|
|
784
|
+
const rect2 = element.getBoundingClientRect();
|
|
785
|
+
verticalDistance = rect1.top - rect2.top;
|
|
786
|
+
horizontalDistance = rect1.left - rect2.left;
|
|
787
|
+
}
|
|
785
788
|
document.addEventListener('mousemove', onMove);
|
|
786
789
|
document.addEventListener('mouseup', onEnd);
|
|
787
790
|
document.addEventListener('touchmove', onMove);
|
|
@@ -795,10 +798,14 @@ function enableDraggingWithScaling(element) {
|
|
|
795
798
|
verticalDistance = rect1.top - rect2.top;
|
|
796
799
|
horizontalDistance = rect1.left - rect2.left;
|
|
797
800
|
}
|
|
801
|
+
if (mutation.type === 'childList' && mutation.removedNodes.length > 0) {
|
|
802
|
+
mutationFlag = true;
|
|
803
|
+
}
|
|
798
804
|
}
|
|
799
805
|
});
|
|
800
806
|
// Configure the observer to watch for attribute changes
|
|
801
807
|
const observerConfig = {
|
|
808
|
+
childList: true,
|
|
802
809
|
attributes: true, // Monitor attribute changes
|
|
803
810
|
attributeFilter: ['style'], // Only observe changes to the 'style' attribute
|
|
804
811
|
};
|
|
@@ -67885,6 +67892,7 @@ const executeActions = async (actionsString, thisElement, element) => {
|
|
|
67885
67892
|
break;
|
|
67886
67893
|
}
|
|
67887
67894
|
case 'nextBtn': {
|
|
67895
|
+
targetElement.style.pointerEvents = 'none';
|
|
67888
67896
|
validateObjectiveStatus();
|
|
67889
67897
|
break;
|
|
67890
67898
|
}
|
|
@@ -35,6 +35,7 @@ export function enableDraggingWithScaling(element) {
|
|
|
35
35
|
let initialY = 0;
|
|
36
36
|
let clone = null;
|
|
37
37
|
let duplicateElement = null;
|
|
38
|
+
let mutationFlag = false;
|
|
38
39
|
// Fetch the container element
|
|
39
40
|
const container = document.getElementById(LidoContainer);
|
|
40
41
|
if (!container) {
|
|
@@ -119,10 +120,12 @@ export function enableDraggingWithScaling(element) {
|
|
|
119
120
|
initialX = 0;
|
|
120
121
|
initialY = 0;
|
|
121
122
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
if (mutationFlag) {
|
|
124
|
+
const rect1 = container.getBoundingClientRect();
|
|
125
|
+
const rect2 = element.getBoundingClientRect();
|
|
126
|
+
verticalDistance = rect1.top - rect2.top;
|
|
127
|
+
horizontalDistance = rect1.left - rect2.left;
|
|
128
|
+
}
|
|
126
129
|
document.addEventListener('mousemove', onMove);
|
|
127
130
|
document.addEventListener('mouseup', onEnd);
|
|
128
131
|
document.addEventListener('touchmove', onMove);
|
|
@@ -136,10 +139,14 @@ export function enableDraggingWithScaling(element) {
|
|
|
136
139
|
verticalDistance = rect1.top - rect2.top;
|
|
137
140
|
horizontalDistance = rect1.left - rect2.left;
|
|
138
141
|
}
|
|
142
|
+
if (mutation.type === 'childList' && mutation.removedNodes.length > 0) {
|
|
143
|
+
mutationFlag = true;
|
|
144
|
+
}
|
|
139
145
|
}
|
|
140
146
|
});
|
|
141
147
|
// Configure the observer to watch for attribute changes
|
|
142
148
|
const observerConfig = {
|
|
149
|
+
childList: true,
|
|
143
150
|
attributes: true, // Monitor attribute changes
|
|
144
151
|
attributeFilter: ['style'], // Only observe changes to the 'style' attribute
|
|
145
152
|
};
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { f as format, g as getAssetPath, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './p-
|
|
1
|
+
export { f as format, g as getAssetPath, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './p-fbc0b6e1.js';
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, g as getAssetPath, h } from './p-
|
|
2
|
-
import { d as defineCustomElement$h } from './p-
|
|
3
|
-
import { d as defineCustomElement$g } from './p-
|
|
4
|
-
import { d as defineCustomElement$f } from './p-
|
|
5
|
-
import { d as defineCustomElement$e } from './p-
|
|
6
|
-
import { d as defineCustomElement$d } from './p-
|
|
7
|
-
import { d as defineCustomElement$c } from './p-
|
|
8
|
-
import { d as defineCustomElement$b } from './p-
|
|
9
|
-
import { d as defineCustomElement$a } from './p-
|
|
10
|
-
import { d as defineCustomElement$9 } from './p-
|
|
11
|
-
import { d as defineCustomElement$8 } from './p-
|
|
12
|
-
import { d as defineCustomElement$7 } from './p-
|
|
13
|
-
import { d as defineCustomElement$6 } from './p-
|
|
14
|
-
import { d as defineCustomElement$5 } from './p-
|
|
15
|
-
import { d as defineCustomElement$4 } from './p-
|
|
16
|
-
import { d as defineCustomElement$3 } from './p-
|
|
17
|
-
import { d as defineCustomElement$2 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, g as getAssetPath, h } from './p-fbc0b6e1.js';
|
|
2
|
+
import { d as defineCustomElement$h } from './p-b2cb2109.js';
|
|
3
|
+
import { d as defineCustomElement$g } from './p-6b95c2c0.js';
|
|
4
|
+
import { d as defineCustomElement$f } from './p-ebc82752.js';
|
|
5
|
+
import { d as defineCustomElement$e } from './p-312c37eb.js';
|
|
6
|
+
import { d as defineCustomElement$d } from './p-698ba3b6.js';
|
|
7
|
+
import { d as defineCustomElement$c } from './p-075e3df2.js';
|
|
8
|
+
import { d as defineCustomElement$b } from './p-3f68553e.js';
|
|
9
|
+
import { d as defineCustomElement$a } from './p-146d84df.js';
|
|
10
|
+
import { d as defineCustomElement$9 } from './p-99b2d22b.js';
|
|
11
|
+
import { d as defineCustomElement$8 } from './p-89a9fc4b.js';
|
|
12
|
+
import { d as defineCustomElement$7 } from './p-4e5402a0.js';
|
|
13
|
+
import { d as defineCustomElement$6 } from './p-695dceed.js';
|
|
14
|
+
import { d as defineCustomElement$5 } from './p-88f873e0.js';
|
|
15
|
+
import { d as defineCustomElement$4 } from './p-1e919b62.js';
|
|
16
|
+
import { d as defineCustomElement$3 } from './p-b7e4d6ab.js';
|
|
17
|
+
import { d as defineCustomElement$2 } from './p-1a3d27b9.js';
|
|
18
18
|
|
|
19
19
|
const LidoRoot$1 = /*@__PURE__*/ proxyCustomElement(class LidoRoot extends H {
|
|
20
20
|
constructor() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, o as handleFloatElementPosition, q as handleElementClick, m as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, o as handleFloatElementPosition, q as handleElementClick, m as parseProp, h, j as Host } from './p-fbc0b6e1.js';
|
|
2
2
|
|
|
3
3
|
const lidoFloatCss = ".lido-float{position:relative}.lido-float>*{position:absolute;cursor:pointer}@keyframes float-up{from{top:900px}to{top:-400px;}}";
|
|
4
4
|
const LidoFloatStyle0 = lidoFloatCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as commonjsGlobal, B as getDefaultExportFromCjs, p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, C as tinyColor, l as attachSpeakIcon, m as parseProp, e as convertUrlToRelative, h, j as Host } from './p-
|
|
1
|
+
import { c as commonjsGlobal, B as getDefaultExportFromCjs, p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, C as tinyColor, l as attachSpeakIcon, m as parseProp, e as convertUrlToRelative, h, j as Host } from './p-fbc0b6e1.js';
|
|
2
2
|
|
|
3
3
|
var lib = {exports: {}};
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, i as initEventsForElement, k as handlingChildElements, l as attachSpeakIcon, m as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, i as initEventsForElement, k as handlingChildElements, l as attachSpeakIcon, m as parseProp, h, j as Host } from './p-fbc0b6e1.js';
|
|
2
2
|
|
|
3
3
|
const lidoWrapCss = ".lido-wrap{display:grid;grid-gap:10px;grid-template-columns:repeat(auto-fill, minmax(186px, auto))}.lido-wrap>*{padding:10px;background-color:var(--child-bg-color, #f0f0f0);box-sizing:border-box}.lido-flex{display:flex;flex-wrap:wrap;align-content:flex-start;gap:10px}";
|
|
4
4
|
const LidoWrapStyle0 = lidoWrapCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, l as attachSpeakIcon, e as convertUrlToRelative, m as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, l as attachSpeakIcon, e as convertUrlToRelative, m as parseProp, h, j as Host } from './p-fbc0b6e1.js';
|
|
2
2
|
|
|
3
3
|
const lidoTextCss = ".lido-text{transition:background-color 0.3s ease;user-select:none;align-items:center;justify-content:center;text-align:center;border-radius:24px;color:#333;cursor:pointer;font-family:'Baloo 2', serif}.lido-text:hover{background-color:#f0f0f0}.text-letters{transition:color 0.3s, text-shadow 0.3s;display:inline-block;padding:0 2px}.text-letters.letter-highlight{color:#8e24aa;background:none;border-radius:0;text-shadow:0 2px 8px #8e24aa88;animation:text-letter-bounce 0.4s}.text-words{transition:color 0.3s, text-shadow 0.3s;display:inline-block;padding:0 2px}.text-words.word-highlight{color:#8e24aa;background:none;border-radius:0;text-shadow:0 2px 8px #8e24aa88;animation:text-word-bounce 0.4s}@keyframes text-letter-bounce{0%{transform:scale(1)}60%{transform:scale(1.4)}100%{transform:scale(1)}}@keyframes text-word-bounce{0%{transform:scale(1)}60%{transform:scale(1.3)}100%{transform:scale(1)}}";
|
|
4
4
|
const LidoTextStyle0 = lidoTextCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, n as calculateScale, e as convertUrlToRelative, i as initEventsForElement, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, n as calculateScale, e as convertUrlToRelative, i as initEventsForElement, h, j as Host } from './p-fbc0b6e1.js';
|
|
2
2
|
|
|
3
3
|
const lidoContainerCss = ".lido-container{position:relative;height:100%;width:100%;background-color:var(--bgColor, transparent);display:flex;flex-direction:column;justify-content:center;align-items:center}";
|
|
4
4
|
const LidoContainerStyle0 = lidoContainerCss;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, r as clearLocalStorage, t as dispatchActivityChangeEvent, u as dispatchGameCompletedEvent, v as dispatchGameExitEvent, N as NextContainerKey, P as PrevContainerKey, L as LidoContainer, h, A as AudioPlayer, w as getCancelBtnPopup, n as calculateScale, x as triggerPrevcontainer, y as executeActions, j as Host, z as setCancelBtnPopup } from './p-
|
|
2
|
-
import { d as defineCustomElement$f } from './p-
|
|
3
|
-
import { d as defineCustomElement$e } from './p-
|
|
4
|
-
import { d as defineCustomElement$d } from './p-
|
|
5
|
-
import { d as defineCustomElement$c } from './p-
|
|
6
|
-
import { d as defineCustomElement$b } from './p-
|
|
7
|
-
import { d as defineCustomElement$a } from './p-
|
|
8
|
-
import { d as defineCustomElement$9 } from './p-
|
|
9
|
-
import { d as defineCustomElement$8 } from './p-
|
|
10
|
-
import { d as defineCustomElement$7 } from './p-
|
|
11
|
-
import { d as defineCustomElement$6 } from './p-
|
|
12
|
-
import { d as defineCustomElement$5 } from './p-
|
|
13
|
-
import { d as defineCustomElement$4 } from './p-
|
|
14
|
-
import { d as defineCustomElement$3 } from './p-
|
|
15
|
-
import { d as defineCustomElement$2 } from './p-
|
|
16
|
-
import { d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, r as clearLocalStorage, t as dispatchActivityChangeEvent, u as dispatchGameCompletedEvent, v as dispatchGameExitEvent, N as NextContainerKey, P as PrevContainerKey, L as LidoContainer, h, A as AudioPlayer, w as getCancelBtnPopup, n as calculateScale, x as triggerPrevcontainer, y as executeActions, j as Host, z as setCancelBtnPopup } from './p-fbc0b6e1.js';
|
|
2
|
+
import { d as defineCustomElement$f } from './p-b2cb2109.js';
|
|
3
|
+
import { d as defineCustomElement$e } from './p-6b95c2c0.js';
|
|
4
|
+
import { d as defineCustomElement$d } from './p-ebc82752.js';
|
|
5
|
+
import { d as defineCustomElement$c } from './p-312c37eb.js';
|
|
6
|
+
import { d as defineCustomElement$b } from './p-698ba3b6.js';
|
|
7
|
+
import { d as defineCustomElement$a } from './p-075e3df2.js';
|
|
8
|
+
import { d as defineCustomElement$9 } from './p-146d84df.js';
|
|
9
|
+
import { d as defineCustomElement$8 } from './p-99b2d22b.js';
|
|
10
|
+
import { d as defineCustomElement$7 } from './p-89a9fc4b.js';
|
|
11
|
+
import { d as defineCustomElement$6 } from './p-4e5402a0.js';
|
|
12
|
+
import { d as defineCustomElement$5 } from './p-695dceed.js';
|
|
13
|
+
import { d as defineCustomElement$4 } from './p-88f873e0.js';
|
|
14
|
+
import { d as defineCustomElement$3 } from './p-1e919b62.js';
|
|
15
|
+
import { d as defineCustomElement$2 } from './p-b7e4d6ab.js';
|
|
16
|
+
import { d as defineCustomElement$1 } from './p-1a3d27b9.js';
|
|
17
17
|
|
|
18
18
|
const indexCss = "@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}.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:0 2px 4px rgba(151, 150, 150, 0.1) !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;gap:145px}.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}";
|
|
19
19
|
const LidoHomeStyle0 = indexCss;
|
|
@@ -92,6 +92,7 @@ const LidoHome = /*@__PURE__*/ proxyCustomElement(class LidoHome extends H {
|
|
|
92
92
|
rightbtn.style.visibility = 'hidden';
|
|
93
93
|
}
|
|
94
94
|
else {
|
|
95
|
+
rightbtn.style.pointerEvents = 'auto';
|
|
95
96
|
rightbtn.style.visibility = 'visible';
|
|
96
97
|
}
|
|
97
98
|
}, 100);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, i as initEventsForElement, k as handlingChildElements, l as attachSpeakIcon, m as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, i as initEventsForElement, k as handlingChildElements, l as attachSpeakIcon, m as parseProp, h, j as Host } from './p-fbc0b6e1.js';
|
|
2
2
|
|
|
3
3
|
const lidoRowCss = ".lido-row{display:flex;justify-content:space-around;align-items:center;}.lido-row>*{}";
|
|
4
4
|
const LidoRowStyle0 = lidoRowCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, h, j as Host } from './p-fbc0b6e1.js';
|
|
2
2
|
|
|
3
3
|
const lidoShapeCss = ".lido-shape{position:absolute;top:var(--y);left:var(--x);display:var(--display);z-index:var(--z)}.lido-rectangle{border-radius:0}.lido-circle{width:var(--width);height:var(--width);border-radius:50%;background-color:var(--bgColor)}.lido-ellipse{width:var(--width);height:var(--height);border-radius:50%;background-color:var(--bgColor)}.lido-triangle{width:var(--triangleWidth);height:var(--triangleHeight);background-color:var(--bgColor);clip-path:polygon(50% 0%, 100% 100%, 0% 100%)}.lido-rightTriangle{width:var(--triangleWidth);height:var(--triangleHeight);background-color:var(--bgColor);clip-path:polygon(100% 0%, 100% 100%, 0% 100%)}.lido-leftTriangle{width:var(--triangleWidth);height:var(--triangleHeight);background-color:var(--triangleBgColor);clip-path:polygon(0% 0%, 100% 100%, 0% 100%)}.lido-parallelogram{width:var(--paralleWidth);height:var(--paralleHeight);transform:skew(20deg)}.lido-star{width:var(--starWidth);height:var(--starHeight);background-color:var(--starBgColor);clip-path:polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%)}.lido-pentagon{width:var(--pentagonWidth);height:var(--pentagonHeight);background-color:var(--pentagonBgColor);clip-path:polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)}.lido-heptagon{width:var(--heptagonWidth);height:var(--heptagonHeight);background-color:var(--heptagonBgColor);clip-path:polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%)}.lido-octagon{width:var(--octagonWidth);height:var(--octagonHeight);background-color:var(--octagonBgColor);clip-path:polygon(25% 0%, 75% 0%, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0% 75%, 0% 25%)}.lido-rhombus{width:var(--rhombusWidth);height:var(--rhombusHeight);background-color:var(--rhombusBgColor);clip-path:polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)}.lido-heart{height:var(--heartHeight);width:var(--heartWidth);border-image:radial-gradient(var(--heartBgColor) 69%, #0000 70%) 84.5%/50%;clip-path:polygon(-41% 0, 50% 91%, 141% 0)}";
|
|
4
4
|
const LidoShapeStyle0 = lidoShapeCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, m as parseProp, d as setVisibilityWithDelay, i as initEventsForElement, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, m as parseProp, d as setVisibilityWithDelay, i as initEventsForElement, h, j as Host } from './p-fbc0b6e1.js';
|
|
2
2
|
|
|
3
3
|
const lidoFlashCardCss = ".card{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform 0.6s ease;cursor:pointer}.card.flipped{transform:rotateY(180deg)}.card-face{position:absolute;width:100%;height:100%;backface-visibility:hidden;display:flex;align-items:center;justify-content:center}.card-back{transform:rotateY(180deg)}";
|
|
4
4
|
const LidoFlashCardStyle0 = lidoFlashCardCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, k as handlingChildElements, l as attachSpeakIcon, m as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, k as handlingChildElements, l as attachSpeakIcon, m as parseProp, h, j as Host } from './p-fbc0b6e1.js';
|
|
2
2
|
|
|
3
3
|
const lidoCellCss = ".lido-col{top:var(--y, 0);left:var(--x, 0);height:var(--height, 100%);width:var(--width, 100%);background-color:var(--bgColor, #eeeeee);padding:15px;border-radius:10px;display:flex;justify-content:space-around;flex-direction:column;align-items:center}.lido-col>*{}.lido-row{display:flex;justify-content:space-around;align-items:center;}.lido-row>*{}.lido-wrap{display:grid;grid-gap:10px;grid-template-columns:repeat(auto-fill, minmax(186px, auto))}.lido-wrap>*{padding:10px;box-sizing:border-box}.lido-flex{display:flex;flex-wrap:wrap;align-content:flex-start;gap:10px}.lido-pos{top:var(--y, 0);left:var(--x, 0);height:var(--height, 100%);width:var(--width, 100%);background-color:var(--bgColor, #eeeeee);display:flex;justify-content:space-around;flex-direction:column;position:fixed}.lido-pos>*{position:absolute}.lido-random{position:relative;width:100%;height:100%}.lido-random>*{position:absolute}.lido-col::-webkit-scrollbar,.lido-wrap::-webkit-scrollbar,.lido-flex::-webkit-scrollbar{width:var(--scrollbar-width);height:var(--scrollbar-width)}.lido-col::-webkit-scrollbar-thumb,.lido-wrap::-webkit-scrollbar-thumb,.lido-flex::-webkit-scrollbar-thumb{background-color:#888;border-radius:10px;border:3px solid transparent;background-clip:content-box}.lido-col::-webkit-scrollbar-track,.lido-wrap::-webkit-scrollbar-track,.lido-flex::-webkit-scrollbar-track{background:#f1f1f1}";
|
|
4
4
|
const LidoCellStyle0 = lidoCellCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, e as convertUrlToRelative, d as setVisibilityWithDelay, D as fraction, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, e as convertUrlToRelative, d as setVisibilityWithDelay, D as fraction, h, j as Host } from './p-fbc0b6e1.js';
|
|
2
2
|
|
|
3
3
|
const lidoSlideFillCss = ".svg-element,svg{width:100%;height:100%}";
|
|
4
4
|
const LidoSlideFillStyle0 = lidoSlideFillCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, l as attachSpeakIcon, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, l as attachSpeakIcon, h, j as Host } from './p-fbc0b6e1.js';
|
|
2
2
|
|
|
3
3
|
const lidoRandomCss = ".lido-random{position:relative;width:100%;height:100%}.lido-random>*{position:absolute}";
|
|
4
4
|
const LidoRandomStyle0 = lidoRandomCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, i as initEventsForElement, m as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, i as initEventsForElement, m as parseProp, h, j as Host } from './p-fbc0b6e1.js';
|
|
2
2
|
|
|
3
3
|
const lidoPosCss = ".lido-pos{top:var(--y, 0);left:var(--x, 0);height:var(--height, 100%);width:var(--width, 100%);background-color:var(--bgColor, #eeeeee);display:flex;justify-content:space-around;flex-direction:column;position:fixed}.lido-pos>*{position:absolute}";
|
|
4
4
|
const LidoPosStyle0 = lidoPosCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as commonjsGlobal, p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, e as convertUrlToRelative, h, j as Host, R as RiveService } from './p-
|
|
1
|
+
import { c as commonjsGlobal, p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, e as convertUrlToRelative, h, j as Host, R as RiveService } from './p-fbc0b6e1.js';
|
|
2
2
|
|
|
3
3
|
var rive = {exports: {}};
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, T as TraceMode, d as setVisibilityWithDelay, E as speakIcon, e as convertUrlToRelative, L as LidoContainer, y as executeActions, F as triggerNextContainer, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, T as TraceMode, d as setVisibilityWithDelay, E as speakIcon, e as convertUrlToRelative, L as LidoContainer, y as executeActions, F as triggerNextContainer, h, j as Host } from './p-fbc0b6e1.js';
|
|
2
2
|
|
|
3
3
|
const lidoTraceCss = ":host{display:block;position:relative}#lido-svgContainer{display:flex;justify-content:center;align-items:center;overflow:hidden}svg{width:100%;height:100%;max-height:calc(100vh - 50px);touch-action:none}#lido-draggableCircle{cursor:pointer;fill:red;transition:fill 0.2s, r 0.2s}.lido-blindTracing{stroke:none !important}.lido-blindFreeTrace{stroke:none !important}.lido-hovered{cursor:grab;fill:darkred}#lido-controls{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-between;padding:10px;background-color:#f0f0f0;border-top:1px solid #ccc}button{padding:10px;font-size:16px}@media (max-width: 600px){button{padding:8px;font-size:14px}}.lido-trace-path-green{}.lido-trace{height:700px;width:700px;z-index:1;justify-items:center;align-content:center}.trace-animate{animation:trace-bounce 0.5s}@keyframes trace-bounce{0%{transform:scale(1)}30%{transform:scale(1.05)}60%{transform:scale(0.95)}100%{transform:scale(1)}}";
|
|
4
4
|
const LidoTraceStyle0 = lidoTraceCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, i as initEventsForElement, k as handlingChildElements, l as attachSpeakIcon, e as convertUrlToRelative, m as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, i as initEventsForElement, k as handlingChildElements, l as attachSpeakIcon, e as convertUrlToRelative, m as parseProp, h, j as Host } from './p-fbc0b6e1.js';
|
|
2
2
|
|
|
3
3
|
const lidoColCss = ".lido-col{top:var(--y, 0);left:var(--x, 0);height:var(--height, 100%);width:var(--width, 100%);background-color:var(--bgColor, #eeeeee);padding:15px;border-radius:10px;display:flex;justify-content:space-around;flex-direction:column;align-items:center}.lido-col>*{}";
|
|
4
4
|
const LidoColStyle0 = lidoColCss;
|
|
@@ -2090,6 +2090,7 @@ function enableDraggingWithScaling(element) {
|
|
|
2090
2090
|
let initialY = 0;
|
|
2091
2091
|
let clone = null;
|
|
2092
2092
|
let duplicateElement = null;
|
|
2093
|
+
let mutationFlag = false;
|
|
2093
2094
|
// Fetch the container element
|
|
2094
2095
|
const container = document.getElementById(LidoContainer);
|
|
2095
2096
|
if (!container) {
|
|
@@ -2174,10 +2175,12 @@ function enableDraggingWithScaling(element) {
|
|
|
2174
2175
|
initialX = 0;
|
|
2175
2176
|
initialY = 0;
|
|
2176
2177
|
}
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2178
|
+
if (mutationFlag) {
|
|
2179
|
+
const rect1 = container.getBoundingClientRect();
|
|
2180
|
+
const rect2 = element.getBoundingClientRect();
|
|
2181
|
+
verticalDistance = rect1.top - rect2.top;
|
|
2182
|
+
horizontalDistance = rect1.left - rect2.left;
|
|
2183
|
+
}
|
|
2181
2184
|
document.addEventListener('mousemove', onMove);
|
|
2182
2185
|
document.addEventListener('mouseup', onEnd);
|
|
2183
2186
|
document.addEventListener('touchmove', onMove);
|
|
@@ -2191,10 +2194,14 @@ function enableDraggingWithScaling(element) {
|
|
|
2191
2194
|
verticalDistance = rect1.top - rect2.top;
|
|
2192
2195
|
horizontalDistance = rect1.left - rect2.left;
|
|
2193
2196
|
}
|
|
2197
|
+
if (mutation.type === 'childList' && mutation.removedNodes.length > 0) {
|
|
2198
|
+
mutationFlag = true;
|
|
2199
|
+
}
|
|
2194
2200
|
}
|
|
2195
2201
|
});
|
|
2196
2202
|
// Configure the observer to watch for attribute changes
|
|
2197
2203
|
const observerConfig = {
|
|
2204
|
+
childList: true,
|
|
2198
2205
|
attributes: true, // Monitor attribute changes
|
|
2199
2206
|
attributeFilter: ['style'], // Only observe changes to the 'style' attribute
|
|
2200
2207
|
};
|
|
@@ -69281,6 +69288,7 @@ const executeActions = async (actionsString, thisElement, element) => {
|
|
|
69281
69288
|
break;
|
|
69282
69289
|
}
|
|
69283
69290
|
case 'nextBtn': {
|
|
69291
|
+
targetElement.style.pointerEvents = 'none';
|
|
69284
69292
|
validateObjectiveStatus();
|
|
69285
69293
|
break;
|
|
69286
69294
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { f as format } from './utils-
|
|
1
|
+
export { f as format } from './utils-ce4335d6.js';
|
|
2
2
|
import './index-f47852d4.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, a as getElement, g as getAssetPath } from './index-f47852d4.js';
|
|
2
|
-
import { c as commonjsGlobal, s as setVisibilityWithDelay, i as initEventsForElement, a as convertUrlToRelative, R as RiveService, h as handlingChildElements, b as attachSpeakIcon, p as parseProp, d as calculateScale, e as handleFloatElementPosition, g as handleElementClick, j as clearLocalStorage, k as dispatchActivityChangeEvent, l as dispatchGameCompletedEvent, m as dispatchGameExitEvent, N as NextContainerKey, P as PrevContainerKey, L as LidoContainer$1, A as AudioPlayer, n as getCancelBtnPopup, t as triggerPrevcontainer, o as executeActions, q as setCancelBtnPopup, r as getDefaultExportFromCjs, u as tinyColor, v as fraction, T as TraceMode, w as speakIcon, x as triggerNextContainer } from './utils-
|
|
2
|
+
import { c as commonjsGlobal, s as setVisibilityWithDelay, i as initEventsForElement, a as convertUrlToRelative, R as RiveService, h as handlingChildElements, b as attachSpeakIcon, p as parseProp, d as calculateScale, e as handleFloatElementPosition, g as handleElementClick, j as clearLocalStorage, k as dispatchActivityChangeEvent, l as dispatchGameCompletedEvent, m as dispatchGameExitEvent, N as NextContainerKey, P as PrevContainerKey, L as LidoContainer$1, A as AudioPlayer, n as getCancelBtnPopup, t as triggerPrevcontainer, o as executeActions, q as setCancelBtnPopup, r as getDefaultExportFromCjs, u as tinyColor, v as fraction, T as TraceMode, w as speakIcon, x as triggerNextContainer } from './utils-ce4335d6.js';
|
|
3
3
|
|
|
4
4
|
var rive = {exports: {}};
|
|
5
5
|
|
|
@@ -7155,6 +7155,7 @@ const LidoHome = class {
|
|
|
7155
7155
|
rightbtn.style.visibility = 'hidden';
|
|
7156
7156
|
}
|
|
7157
7157
|
else {
|
|
7158
|
+
rightbtn.style.pointerEvents = 'auto';
|
|
7158
7159
|
rightbtn.style.visibility = 'visible';
|
|
7159
7160
|
}
|
|
7160
7161
|
}, 100);
|
|
@@ -692,6 +692,7 @@ function enableDraggingWithScaling(element) {
|
|
|
692
692
|
let initialY = 0;
|
|
693
693
|
let clone = null;
|
|
694
694
|
let duplicateElement = null;
|
|
695
|
+
let mutationFlag = false;
|
|
695
696
|
// Fetch the container element
|
|
696
697
|
const container = document.getElementById(LidoContainer);
|
|
697
698
|
if (!container) {
|
|
@@ -776,10 +777,12 @@ function enableDraggingWithScaling(element) {
|
|
|
776
777
|
initialX = 0;
|
|
777
778
|
initialY = 0;
|
|
778
779
|
}
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
780
|
+
if (mutationFlag) {
|
|
781
|
+
const rect1 = container.getBoundingClientRect();
|
|
782
|
+
const rect2 = element.getBoundingClientRect();
|
|
783
|
+
verticalDistance = rect1.top - rect2.top;
|
|
784
|
+
horizontalDistance = rect1.left - rect2.left;
|
|
785
|
+
}
|
|
783
786
|
document.addEventListener('mousemove', onMove);
|
|
784
787
|
document.addEventListener('mouseup', onEnd);
|
|
785
788
|
document.addEventListener('touchmove', onMove);
|
|
@@ -793,10 +796,14 @@ function enableDraggingWithScaling(element) {
|
|
|
793
796
|
verticalDistance = rect1.top - rect2.top;
|
|
794
797
|
horizontalDistance = rect1.left - rect2.left;
|
|
795
798
|
}
|
|
799
|
+
if (mutation.type === 'childList' && mutation.removedNodes.length > 0) {
|
|
800
|
+
mutationFlag = true;
|
|
801
|
+
}
|
|
796
802
|
}
|
|
797
803
|
});
|
|
798
804
|
// Configure the observer to watch for attribute changes
|
|
799
805
|
const observerConfig = {
|
|
806
|
+
childList: true,
|
|
800
807
|
attributes: true, // Monitor attribute changes
|
|
801
808
|
attributeFilter: ['style'], // Only observe changes to the 'style' attribute
|
|
802
809
|
};
|
|
@@ -67883,6 +67890,7 @@ const executeActions = async (actionsString, thisElement, element) => {
|
|
|
67883
67890
|
break;
|
|
67884
67891
|
}
|
|
67885
67892
|
case 'nextBtn': {
|
|
67893
|
+
targetElement.style.pointerEvents = 'none';
|
|
67886
67894
|
validateObjectiveStatus();
|
|
67887
67895
|
break;
|
|
67888
67896
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{f as format}from"./p-
|
|
1
|
+
export{f as format}from"./p-6fadeca7.js";import"./p-ddf627b0.js";
|