lido-player 0.0.2-alpha-7 → 0.0.2-alpha-8
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_13.cjs.entry.js +10 -4
- package/dist/cjs/lido-avatar_13.cjs.entry.js.map +1 -1
- package/dist/cjs/lido-player.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-2740b263.js → utils-1697a6b5.js} +58 -22
- package/dist/cjs/utils-1697a6b5.js.map +1 -0
- package/dist/collection/components/container/lido-container.js +24 -1
- package/dist/collection/components/container/lido-container.js.map +1 -1
- package/dist/collection/components/home/lido-home.js +2 -2
- package/dist/collection/components/home/lido-home.js.map +1 -1
- package/dist/collection/components/root/assets/xmlData.xml +57 -52
- package/dist/collection/utils/css/animation.css +28 -1
- package/dist/collection/utils/utils.js +60 -24
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/lido-avatar.js +1 -1
- package/dist/components/lido-col.js +1 -1
- package/dist/components/lido-container.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-root.js +11 -11
- package/dist/components/lido-row.js +1 -1
- package/dist/components/lido-shape.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-69faad88.js → p-3480a7c0.js} +2 -2
- package/dist/components/{p-69faad88.js.map → p-3480a7c0.js.map} +1 -1
- package/dist/components/{p-86a0612f.js → p-39529ce4.js} +2 -2
- package/dist/components/{p-86a0612f.js.map → p-39529ce4.js.map} +1 -1
- package/dist/components/{p-cec49e6e.js → p-3bc100c1.js} +58 -22
- package/dist/components/p-3bc100c1.js.map +1 -0
- package/dist/components/{p-29365fd6.js → p-478edfe0.js} +2 -2
- package/dist/components/{p-29365fd6.js.map → p-478edfe0.js.map} +1 -1
- package/dist/components/{p-0920af1c.js → p-9770a2f4.js} +2 -2
- package/dist/components/{p-0920af1c.js.map → p-9770a2f4.js.map} +1 -1
- package/dist/components/{p-d4c95792.js → p-c6e1e344.js} +14 -14
- package/dist/components/p-c6e1e344.js.map +1 -0
- package/dist/components/{p-d1411ddb.js → p-ca70ca24.js} +2 -2
- package/dist/components/{p-d1411ddb.js.map → p-ca70ca24.js.map} +1 -1
- package/dist/components/{p-1255476d.js → p-ce503b4f.js} +2 -2
- package/dist/components/{p-1255476d.js.map → p-ce503b4f.js.map} +1 -1
- package/dist/components/{p-a501f1b8.js → p-d00a96d0.js} +2 -2
- package/dist/components/{p-a501f1b8.js.map → p-d00a96d0.js.map} +1 -1
- package/dist/components/{p-0fd91021.js → p-e1f46793.js} +10 -3
- package/dist/components/p-e1f46793.js.map +1 -0
- package/dist/components/{p-ae2fab80.js → p-e60bca47.js} +2 -2
- package/dist/components/{p-ae2fab80.js.map → p-e60bca47.js.map} +1 -1
- package/dist/components/{p-3b1e591d.js → p-e6122599.js} +2 -2
- package/dist/components/{p-3b1e591d.js.map → p-e6122599.js.map} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/lido-avatar_13.entry.js +10 -4
- package/dist/esm/lido-avatar_13.entry.js.map +1 -1
- package/dist/esm/lido-player.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-ebdd7526.js → utils-4f7c3168.js} +58 -22
- package/dist/esm/utils-4f7c3168.js.map +1 -0
- package/dist/lido-player/assets/xmlData.xml +57 -52
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/lido-player.esm.js.map +1 -1
- package/dist/lido-player/p-c35ed209.js +2 -0
- package/dist/lido-player/p-c35ed209.js.map +1 -0
- package/dist/lido-player/{p-fc012d18.entry.js → p-fc5b9e28.entry.js} +2 -2
- package/dist/lido-player/p-fc5b9e28.entry.js.map +1 -0
- package/dist/types/components/container/lido-container.d.ts +5 -0
- package/dist/types/components.d.ts +8 -0
- package/dist/types/utils/utils.d.ts +8 -0
- package/package.json +1 -1
- package/dist/cjs/utils-2740b263.js.map +0 -1
- package/dist/collection/components/root/assets/Audio/goodJob.mp3 +0 -0
- package/dist/collection/components/root/assets/Audio/tryAgain.mp3 +0 -0
- package/dist/collection/components/root/assets/Audio/wellDone.mp3 +0 -0
- package/dist/components/p-0fd91021.js.map +0 -1
- package/dist/components/p-cec49e6e.js.map +0 -1
- package/dist/components/p-d4c95792.js.map +0 -1
- package/dist/esm/utils-ebdd7526.js.map +0 -1
- package/dist/lido-player/assets/Audio/goodJob.mp3 +0 -0
- package/dist/lido-player/assets/Audio/tryAgain.mp3 +0 -0
- package/dist/lido-player/assets/Audio/wellDone.mp3 +0 -0
- package/dist/lido-player/p-fab4fa17.js +0 -2
- package/dist/lido-player/p-fab4fa17.js.map +0 -1
- package/dist/lido-player/p-fc012d18.entry.js.map +0 -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-0d28e716.js');
|
|
6
|
-
const utils = require('./utils-
|
|
6
|
+
const utils = require('./utils-1697a6b5.js');
|
|
7
7
|
|
|
8
8
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
9
9
|
|
|
@@ -6652,6 +6652,7 @@ const LidoContainer = class {
|
|
|
6652
6652
|
index.registerInstance(this, hostRef);
|
|
6653
6653
|
this.id = undefined;
|
|
6654
6654
|
this.objective = undefined;
|
|
6655
|
+
this.customStyle = undefined;
|
|
6655
6656
|
this.value = undefined;
|
|
6656
6657
|
this.height = undefined;
|
|
6657
6658
|
this.width = undefined;
|
|
@@ -6727,6 +6728,11 @@ const LidoContainer = class {
|
|
|
6727
6728
|
window.addEventListener('resize', () => this.scaleContainer(this.el));
|
|
6728
6729
|
window.addEventListener('load', () => this.scaleContainer(this.el));
|
|
6729
6730
|
utils.initEventsForElement(this.el, this.type);
|
|
6731
|
+
if (this.customStyle) {
|
|
6732
|
+
const styleElement = document.createElement('style');
|
|
6733
|
+
styleElement.innerHTML = this.customStyle;
|
|
6734
|
+
document.head.appendChild(styleElement);
|
|
6735
|
+
}
|
|
6730
6736
|
}
|
|
6731
6737
|
render() {
|
|
6732
6738
|
// Define the styles for the container element
|
|
@@ -6740,7 +6746,7 @@ const LidoContainer = class {
|
|
|
6740
6746
|
transform: 'translate(-50%, -50%)', // Centering the container
|
|
6741
6747
|
};
|
|
6742
6748
|
console.log('🚀 ~ LidoContainer ~ canplay:', this.canplay);
|
|
6743
|
-
return (index.h(index.Host, { key: '
|
|
6749
|
+
return (index.h(index.Host, { key: 'be7c50232bd0362f217b44d7f4d723f1ed5c40ec', id: "lido-container", tabindex: 0, class: "lido-container", objective: this.objective, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, onTouch: this.onTouch, onInCorrect: this.onInCorrect, onCorrect: this.onCorrect, onEntry: this.onEntry, showCheck: `${this.showCheck}`, isContinueOnCorrect: `${this.isContinueOnCorrect}`, isAllowOnlyCorrect: `${this.isAllowOnlyCorrect}`, canplay: `${this.canplay}` }, index.h("slot", { key: '8ce427c8388574aa7019b83cddae13a182db47ab' })));
|
|
6744
6750
|
}
|
|
6745
6751
|
get el() { return index.getElement(this); }
|
|
6746
6752
|
};
|
|
@@ -6749,7 +6755,7 @@ LidoContainer.style = LidoContainerStyle0;
|
|
|
6749
6755
|
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'); body{overflow:hidden}.lido-disable-check-button{pointer-events:none;background-color:#9393935c !important;color:white}.lido-element-selected{border:2px solid;background-color:#ffdf7d !important}";
|
|
6750
6756
|
const LidoHomeStyle0 = indexCss;
|
|
6751
6757
|
|
|
6752
|
-
const animationCss = "@keyframes rightToPlace{from{transform:translateX(2000px)}to{
|
|
6758
|
+
const animationCss = "@keyframes rightToPlace{from{transform:translateX(2000px)}to{transform:translateX(0)}}@keyframes topToPlace{from{transform:translateY(-1000px)}to{transform:translateY(0)}}@keyframes bottomToPlace{from{transform:translateY(1000px)}to{transform:translateY(0)}}@keyframes placeToLeft{from{}to{transform:translateX(-2000px)}}@keyframes leftToPlace{from{transform:translateX(-2000px)}to{transform:translateX(0)}}@keyframes shake{0%{transform:translateX(0)}10%{transform:translateX(-5px)}20%{transform:translateX(5px)}30%{transform:translateX(-5px)}40%{transform:translateX(5px)}50%{transform:translateX(-5px)}60%{transform:translateX(5px)}70%{transform:translateX(-5px)}80%{transform:translateX(5px)}90%{transform:translateX(-5px)}100%{transform:translateX(0)}}@keyframes fallAndBounce{0%{transform:translateY(-1000px)}25%{transform:translateY(0px)}50%{transform:translateY(-200px)}75%{transform:translateY(0)}90%{transform:translateY(-100px)}100%{transform:translateY(0)}}@keyframes placeToDown{0%{transform:translateY(0)}100%{transform:translateY(1000px)}}";
|
|
6753
6759
|
const LidoHomeStyle1 = animationCss;
|
|
6754
6760
|
|
|
6755
6761
|
const lidoHomeCss = ".lido-snackbar{visibility:visible;min-width:250px;background-color:#333;color:#fff;text-align:center;border-radius:2px;padding:16px;position:fixed;z-index:1;bottom:30px;left:50%;transform:translateX(-50%);font-size:17px}.lido-dot-container{text-align:center;position:fixed;z-index:1;width:fit-content;top:1%;left:50%;transform:translate(-50%)}.lido-dot{height:15px;width:15px;margin:0 4px;background-color:#bbb;border-radius:50%;display:inline-block;transition:background-color 0.3s;cursor:pointer}.lido-dot.completed{background-color:grey}.lido-dot.current{background-color:green}.lido-dot:not(.completed):not(.current){background-color:#bbb}";
|
|
@@ -6799,7 +6805,7 @@ const LidoHome = class {
|
|
|
6799
6805
|
this.initialIndex = 0;
|
|
6800
6806
|
this.canplay = true;
|
|
6801
6807
|
this.baseUrl = '';
|
|
6802
|
-
this.height = '
|
|
6808
|
+
this.height = '';
|
|
6803
6809
|
this.currentContainerIndex = this.initialIndex;
|
|
6804
6810
|
this.showCompletionMessage = false;
|
|
6805
6811
|
this.containers = [];
|