lido-player 0.0.2-alpha-90 → 0.0.2-alpha-91
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-JJkh_9QG.js → decode-Cxruqwoh.js} +1 -1
- package/dist/cjs/{index-BEEcyP4v.js → index-CQUhGhpN.js} +22 -16
- package/dist/cjs/{index-BrME-8br.js → index-Dl8SlqP-.js} +24 -15
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/lido-avatar_22.cjs.entry.js +923 -870
- 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/root/lido-root.js +5 -5
- package/dist/collection/stories/Templates/multiplyBeeds/multiplyBeeds.stories.js +25 -21
- package/dist/collection/stories/Templates/nimbleTable/nimbleTable.stories.js +1 -1
- package/dist/collection/stories/Templates/total/total.stories.js +1 -2
- package/dist/collection/utils/utils.js +2 -1
- package/dist/collection/utils/utilsHandlers/clickHandler.js +15 -10
- 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/{p-brhqgayz.js → p-B4DP0itc.js} +1 -1
- package/dist/components/p-BLegTCI6.js +1 -0
- package/dist/components/{p-DMjuSKpY.js → p-CEApiv2D.js} +1 -1
- package/dist/components/{p-DU4wfdAe.js → p-CjVAmIbr.js} +1 -1
- package/dist/components/p-D4ANz_-F.js +1 -0
- package/dist/components/{p-Bnyxg1l1.js → p-Dbt0Faps.js} +1 -1
- package/dist/components/{p-DBzsdEHZ.js → p-sQ9Xymmk.js} +1 -1
- package/dist/esm/{decode-CxVVffTP.js → decode-B3ARTCXB.js} +1 -1
- package/dist/esm/{index-Bl0AUSHC.js → index-DWzraGKf.js} +22 -16
- package/dist/esm/{index-DoO-CWOR.js → index-DwCQErNN.js} +24 -15
- package/dist/esm/index.js +2 -2
- package/dist/esm/lido-avatar_22.entry.js +923 -870
- 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-947c0aaf.entry.js +1 -0
- package/dist/lido-player/{p-Dpm_8mTf.js → p-BJJjJImf.js} +1 -1
- package/dist/lido-player/p-DvgXp0H2.js +1 -0
- package/dist/lido-player/p-DwCQErNN.js +2 -0
- package/dist/types/stencil-public-runtime.d.ts +3 -1
- package/package.json +1 -1
- package/dist/components/p-BstMLAyY.js +0 -1
- package/dist/components/p-C1sGTP3k.js +0 -1
- package/dist/lido-player/p-ClirVlrT.js +0 -1
- package/dist/lido-player/p-DoO-CWOR.js +0 -2
- package/dist/lido-player/p-e7a798a2.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index$1 = require('./index-
|
|
3
|
+
var index$1 = require('./index-Dl8SlqP-.js');
|
|
4
4
|
|
|
5
5
|
const DragMapKey = 'lidoDragMap';
|
|
6
6
|
const SelectedValuesKey = 'lidoSelectedValues';
|
|
@@ -3532,25 +3532,30 @@ function validateWCAG2Parms(parms) {
|
|
|
3532
3532
|
function onTouchListenerForOnTouch(element) {
|
|
3533
3533
|
if (!element)
|
|
3534
3534
|
return;
|
|
3535
|
-
const container = document.getElementById('lido-container');
|
|
3536
|
-
// const container = element.closest('lido-container') as HTMLElement;
|
|
3537
|
-
// if (container && container.getAttribute('disable-speak') === 'true') {
|
|
3538
|
-
// return;
|
|
3539
|
-
// }
|
|
3540
|
-
// if (element.closest('[disableSpeak="true"]')) {
|
|
3541
|
-
// return;
|
|
3542
|
-
// }
|
|
3543
3535
|
const onTouch = element.getAttribute('onTouch');
|
|
3544
3536
|
let onholdTimer = null;
|
|
3545
3537
|
let onholdTriggered = false;
|
|
3546
3538
|
const onholdTime = 1000;
|
|
3547
3539
|
const playAudio = async () => {
|
|
3548
|
-
|
|
3540
|
+
const container = document.getElementById(LidoContainer);
|
|
3541
|
+
if (element === container) {
|
|
3549
3542
|
return;
|
|
3550
3543
|
}
|
|
3544
|
+
const hasDisableSpeakAttribute = element.hasAttribute('disable-speak') || element.hasAttribute('disableSpeak');
|
|
3551
3545
|
onholdTriggered = true;
|
|
3552
3546
|
setDraggingDisabled(true);
|
|
3553
|
-
|
|
3547
|
+
// If container itself is NOT disabled → play normally
|
|
3548
|
+
if (!hasDisableSpeakAttribute) {
|
|
3549
|
+
await AudioPlayer.getI().play(element);
|
|
3550
|
+
setDraggingDisabled(false);
|
|
3551
|
+
return;
|
|
3552
|
+
}
|
|
3553
|
+
if (element.getAttribute('disable-speak') === 'true' || (element.hasAttribute('disable-speak') && element.getAttribute('disable-speak') !== 'false')) {
|
|
3554
|
+
return;
|
|
3555
|
+
}
|
|
3556
|
+
else {
|
|
3557
|
+
await AudioPlayer.getI().play(element);
|
|
3558
|
+
}
|
|
3554
3559
|
setDraggingDisabled(false);
|
|
3555
3560
|
};
|
|
3556
3561
|
const onPointerDown = (event) => {
|
|
@@ -7235,7 +7240,7 @@ var tanh$2 = Math.tanh || function (x) {
|
|
|
7235
7240
|
function copysign(x, y) {
|
|
7236
7241
|
var signx = true ;
|
|
7237
7242
|
var signy = y > 0 ? true : y < 0 ? false : 1 / y === Infinity;
|
|
7238
|
-
return signx ^ signy ? -
|
|
7243
|
+
return signx ^ signy ? -x : x;
|
|
7239
7244
|
}
|
|
7240
7245
|
function _toNumberOrThrow(value, onError) {
|
|
7241
7246
|
if (isNumber(value)) {
|
|
@@ -7858,7 +7863,7 @@ var EXP_LIMIT = 9e15, // 0 to 9e15
|
|
|
7858
7863
|
|
|
7859
7864
|
// The minimum exponent value, beneath which underflow to zero occurs.
|
|
7860
7865
|
// JavaScript numbers: -324 (5e-324)
|
|
7861
|
-
minE: -
|
|
7866
|
+
minE: -EXP_LIMIT, // -1 to -EXP_LIMIT
|
|
7862
7867
|
|
|
7863
7868
|
// The maximum exponent value, above which overflow to Infinity occurs.
|
|
7864
7869
|
// JavaScript numbers: 308 (1.7976931348623157e+308)
|
|
@@ -11984,10 +11989,10 @@ function config(obj) {
|
|
|
11984
11989
|
ps = [
|
|
11985
11990
|
'precision', 1, MAX_DIGITS,
|
|
11986
11991
|
'rounding', 0, 8,
|
|
11987
|
-
'toExpNeg', -
|
|
11992
|
+
'toExpNeg', -EXP_LIMIT, 0,
|
|
11988
11993
|
'toExpPos', 0, EXP_LIMIT,
|
|
11989
11994
|
'maxE', 0, EXP_LIMIT,
|
|
11990
|
-
'minE', -
|
|
11995
|
+
'minE', -EXP_LIMIT, 0,
|
|
11991
11996
|
'modulo', 0, 9
|
|
11992
11997
|
];
|
|
11993
11998
|
|
|
@@ -72928,7 +72933,8 @@ const parseMultiplyBeedsText = (text) => {
|
|
|
72928
72933
|
const allSame = terms.every(term => Number(term) === firstValue);
|
|
72929
72934
|
if (!allSame)
|
|
72930
72935
|
return null;
|
|
72931
|
-
|
|
72936
|
+
const resultText = (resultPart !== null && resultPart !== void 0 ? resultPart : "").trim();
|
|
72937
|
+
let total = resultText === "" ? NaN : Number(resultText);
|
|
72932
72938
|
if (Number.isNaN(total)) {
|
|
72933
72939
|
total = terms
|
|
72934
72940
|
.map(term => Number(term))
|
|
@@ -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.3 | 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);
|
|
@@ -721,7 +730,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
721
730
|
return;
|
|
722
731
|
} else {
|
|
723
732
|
const isComplex = isComplexType(newValue);
|
|
724
|
-
if ((isProp || isComplex && newValue !== null) &&
|
|
733
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
725
734
|
try {
|
|
726
735
|
if (!elm.tagName.includes("-")) {
|
|
727
736
|
const n = newValue == null ? "" : newValue;
|
|
@@ -1585,7 +1594,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1585
1594
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1586
1595
|
members.map(([memberName, [memberFlags]]) => {
|
|
1587
1596
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1588
|
-
const { get: origGetter, set: origSetter } =
|
|
1597
|
+
const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
|
|
1589
1598
|
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1590
1599
|
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1591
1600
|
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
@@ -1847,7 +1856,7 @@ var connectedCallback = (elm) => {
|
|
|
1847
1856
|
}
|
|
1848
1857
|
if (cmpMeta.$members$) {
|
|
1849
1858
|
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1850
|
-
if (memberFlags & 31 /* Prop */ &&
|
|
1859
|
+
if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
|
|
1851
1860
|
const value = elm[memberName];
|
|
1852
1861
|
delete elm[memberName];
|
|
1853
1862
|
elm[memberName] = value;
|