lido-player 0.0.2-alpha-87 → 0.0.2-alpha-88
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-C80xU-sR.js → decode-BCtIYiSY.js} +1 -1
- package/dist/cjs/{index-C1PT3dXa.js → index-BDnxAitU.js} +11 -12
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/lido-avatar_22.cjs.entry.js +4 -4
- package/dist/collection/components/container/lido-container.js +2 -2
- package/dist/collection/utils/utils.js +11 -12
- package/dist/components/index.js +1 -1
- package/dist/components/lido-container.js +1 -1
- package/dist/components/lido-home.js +1 -1
- package/dist/components/lido-root.js +1 -1
- package/dist/components/{p-DuWrKD5Z.js → p-DAwJrK6q.js} +1 -1
- package/dist/components/p-Dz6mSTPu.js +1 -0
- package/dist/esm/{decode-CT8SQ-Bc.js → decode-CT-ttsFh.js} +1 -1
- package/dist/esm/{index-DumOk5HE.js → index-Da41OKR1.js} +11 -12
- package/dist/esm/index.js +1 -1
- package/dist/esm/lido-avatar_22.entry.js +4 -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-620b7bc6.entry.js → p-36a1471e.entry.js} +1 -1
- package/dist/lido-player/{p-DWRQJAW3.js → p-CspJVyn4.js} +1 -1
- package/dist/lido-player/{p-DT7g3bxF.js → p-DO-Y_QEx.js} +1 -1
- package/package.json +1 -1
- package/dist/components/p-BRBNRF2F.js +0 -1
|
@@ -72266,6 +72266,17 @@ const executeActions = async (actionsString, thisElement, element) => {
|
|
|
72266
72266
|
const container = document.getElementById(LidoContainer);
|
|
72267
72267
|
if (container.getAttribute('canplay') === 'false')
|
|
72268
72268
|
return;
|
|
72269
|
+
const balanceEl = document.querySelector('lido-balance');
|
|
72270
|
+
if (balanceEl) {
|
|
72271
|
+
const objectiveString = container['objective'];
|
|
72272
|
+
res = balanceResult(container, objectiveString);
|
|
72273
|
+
if (res) {
|
|
72274
|
+
await executeActions("this.showBalanceSymbol='true'", targetElement);
|
|
72275
|
+
}
|
|
72276
|
+
else {
|
|
72277
|
+
await executeActions("this.hideBalanceSymbol='true'", targetElement);
|
|
72278
|
+
}
|
|
72279
|
+
}
|
|
72269
72280
|
if (container.getAttribute('is-continue-on-correct') !== 'true') {
|
|
72270
72281
|
targetElement.style.pointerEvents = 'none';
|
|
72271
72282
|
AudioPlayer.getI().stop();
|
|
@@ -72768,18 +72779,6 @@ const handleShowCheck = () => {
|
|
|
72768
72779
|
const showCheck = container.getAttribute('show-check') == 'true';
|
|
72769
72780
|
if (showCheck) {
|
|
72770
72781
|
(_b = checkButton === null || checkButton === void 0 ? void 0 : checkButton.classList) === null || _b === void 0 ? void 0 : _b.remove('lido-disable-check-button');
|
|
72771
|
-
const balanceEl = document.querySelector('lido-balance');
|
|
72772
|
-
if (balanceEl) {
|
|
72773
|
-
if (!checkButton.hasAttribute('data-balance-listener')) {
|
|
72774
|
-
checkButton.addEventListener('click', async function onClick() {
|
|
72775
|
-
if (balanceResult && res) {
|
|
72776
|
-
await executeActions("this.showBalanceSymbol='true'", checkButton);
|
|
72777
|
-
checkButton.removeEventListener('click', onClick);
|
|
72778
|
-
}
|
|
72779
|
-
});
|
|
72780
|
-
checkButton.setAttribute('data-balance-listener', 'true');
|
|
72781
|
-
}
|
|
72782
|
-
}
|
|
72783
72782
|
}
|
|
72784
72783
|
else {
|
|
72785
72784
|
if (!container.getAttribute("game-completed") && !container.querySelector("[type='slide']") && !container.querySelector("[type='category']")) {
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-Dl8SlqP-.js');
|
|
4
|
-
var index$1 = require('./index-
|
|
4
|
+
var index$1 = require('./index-BDnxAitU.js');
|
|
5
5
|
|
|
6
6
|
var rive$1 = {exports: {}};
|
|
7
7
|
|
|
@@ -12222,7 +12222,7 @@ const LidoContainer = class {
|
|
|
12222
12222
|
"quizMathShapes": "quizMathShapes" /* templateAudio.quizMathShapes */,
|
|
12223
12223
|
"reorder": "reorder" /* templateAudio.reorder */,
|
|
12224
12224
|
"rocketGame": "rocketGame" /* templateAudio.rocketGame */,
|
|
12225
|
-
"rowBlock
|
|
12225
|
+
"rowBlock": "rowBlock" /* templateAudio.rowBlock */,
|
|
12226
12226
|
"sequenceBox1": "sequenceBox1" /* templateAudio.sequenceBox1 */,
|
|
12227
12227
|
"shapeTractor": "shapeTractor" /* templateAudio.shapeTractor */,
|
|
12228
12228
|
"spellDoor": "spellDoor" /* templateAudio.spellDoor */,
|
|
@@ -12407,7 +12407,7 @@ const LidoContainer = class {
|
|
|
12407
12407
|
userSelect: 'none', // Prevent any field selection
|
|
12408
12408
|
};
|
|
12409
12409
|
console.log('🚀 ~ LidoContainer ~ canplay:', this.canplay);
|
|
12410
|
-
return (index.h(index.Host, { key: '
|
|
12410
|
+
return (index.h(index.Host, { key: 'abcebd40adfbb553ac4878f9e0d7b76800d74a59', id: "lido-container", Lang: this.Lang, "tab-index": 0, class: "lido-container", objective: this.objective, baseUrl: this.baseUrl, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, onTouch: this.onTouch, onInCorrect: this.onInCorrect, onCorrect: this.onCorrect, onEntry: this.onEntry, "show-check": `${this.showCheck}`, "is-continue-on-correct": `${this.isContinueOnCorrect}`, "is-allow-only-correct": `${this.isAllowOnlyCorrect}`, canplay: `${this.canplay}`, appendToDropOnCompletion: `${this.appendToDropOnCompletion}`, "show-prev-button": `${this.showPrevButton}`, "show-next-button": `${this.showNextButton}`, "show-drop-border": `${this.showDropBorder}`, "bg-image": this.bgImage, "exit-button-url": this.exitButtonUrl, "prev-button-url": this.prevButtonUrl, "next-button-url": this.nextButtonUrl, "speaker-button-url": this.speakerButtonUrl, "disable-speak": this.disableSpeak, "template-id": this.templateId, audio: this.audio, "highlight-word-by-word": `${this.highlightWordByWord}` }, index.h("lido-text", { key: '94b6176383b21924018ba601e4c69d6f640e6cac', visible: "false", id: this.templateId, audio: "", string: this.instructName }), index.h("slot", { key: 'fb107851146dc5e3d3a17cef43a84dd894fad646' })));
|
|
12411
12411
|
}
|
|
12412
12412
|
get el() { return index.getElement(this); }
|
|
12413
12413
|
static get watchers() { return {
|
|
@@ -12931,7 +12931,7 @@ const LidoHome = class {
|
|
|
12931
12931
|
}
|
|
12932
12932
|
// Pure-JS fallback (no wasm asset required)
|
|
12933
12933
|
try {
|
|
12934
|
-
const brotliDecodeModule = await Promise.resolve().then(function () { return require('./decode-
|
|
12934
|
+
const brotliDecodeModule = await Promise.resolve().then(function () { return require('./decode-BCtIYiSY.js'); }).then(function (n) { return n.decode; });
|
|
12935
12935
|
const brotliDecompressBuffer = brotliDecodeModule.BrotliDecompressBuffer ||
|
|
12936
12936
|
((_a = brotliDecodeModule.default) === null || _a === void 0 ? void 0 : _a.BrotliDecompressBuffer);
|
|
12937
12937
|
if (typeof brotliDecompressBuffer !== 'function') {
|
|
@@ -239,7 +239,7 @@ export class LidoContainer {
|
|
|
239
239
|
"quizMathShapes": "quizMathShapes" /* templateAudio.quizMathShapes */,
|
|
240
240
|
"reorder": "reorder" /* templateAudio.reorder */,
|
|
241
241
|
"rocketGame": "rocketGame" /* templateAudio.rocketGame */,
|
|
242
|
-
"rowBlock
|
|
242
|
+
"rowBlock": "rowBlock" /* templateAudio.rowBlock */,
|
|
243
243
|
"sequenceBox1": "sequenceBox1" /* templateAudio.sequenceBox1 */,
|
|
244
244
|
"shapeTractor": "shapeTractor" /* templateAudio.shapeTractor */,
|
|
245
245
|
"spellDoor": "spellDoor" /* templateAudio.spellDoor */,
|
|
@@ -424,7 +424,7 @@ export class LidoContainer {
|
|
|
424
424
|
userSelect: 'none', // Prevent any field selection
|
|
425
425
|
};
|
|
426
426
|
console.log('🚀 ~ LidoContainer ~ canplay:', this.canplay);
|
|
427
|
-
return (h(Host, { key: '
|
|
427
|
+
return (h(Host, { key: 'abcebd40adfbb553ac4878f9e0d7b76800d74a59', id: "lido-container", Lang: this.Lang, "tab-index": 0, class: "lido-container", objective: this.objective, baseUrl: this.baseUrl, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, onTouch: this.onTouch, onInCorrect: this.onInCorrect, onCorrect: this.onCorrect, onEntry: this.onEntry, "show-check": `${this.showCheck}`, "is-continue-on-correct": `${this.isContinueOnCorrect}`, "is-allow-only-correct": `${this.isAllowOnlyCorrect}`, canplay: `${this.canplay}`, appendToDropOnCompletion: `${this.appendToDropOnCompletion}`, "show-prev-button": `${this.showPrevButton}`, "show-next-button": `${this.showNextButton}`, "show-drop-border": `${this.showDropBorder}`, "bg-image": this.bgImage, "exit-button-url": this.exitButtonUrl, "prev-button-url": this.prevButtonUrl, "next-button-url": this.nextButtonUrl, "speaker-button-url": this.speakerButtonUrl, "disable-speak": this.disableSpeak, "template-id": this.templateId, audio: this.audio, "highlight-word-by-word": `${this.highlightWordByWord}` }, h("lido-text", { key: '94b6176383b21924018ba601e4c69d6f640e6cac', visible: "false", id: this.templateId, audio: "", string: this.instructName }), h("slot", { key: 'fb107851146dc5e3d3a17cef43a84dd894fad646' })));
|
|
428
428
|
}
|
|
429
429
|
static get is() { return "lido-container"; }
|
|
430
430
|
static get originalStyleUrls() {
|
|
@@ -188,6 +188,17 @@ export const executeActions = async (actionsString, thisElement, element) => {
|
|
|
188
188
|
const container = document.getElementById(LidoContainer);
|
|
189
189
|
if (container.getAttribute('canplay') === 'false')
|
|
190
190
|
return;
|
|
191
|
+
const balanceEl = document.querySelector('lido-balance');
|
|
192
|
+
if (balanceEl) {
|
|
193
|
+
const objectiveString = container['objective'];
|
|
194
|
+
res = balanceResult(container, objectiveString);
|
|
195
|
+
if (res) {
|
|
196
|
+
await executeActions("this.showBalanceSymbol='true'", targetElement);
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
await executeActions("this.hideBalanceSymbol='true'", targetElement);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
191
202
|
if (container.getAttribute('is-continue-on-correct') !== 'true') {
|
|
192
203
|
targetElement.style.pointerEvents = 'none';
|
|
193
204
|
AudioPlayer.getI().stop();
|
|
@@ -690,18 +701,6 @@ export const handleShowCheck = () => {
|
|
|
690
701
|
const showCheck = container.getAttribute('show-check') == 'true';
|
|
691
702
|
if (showCheck) {
|
|
692
703
|
(_b = checkButton === null || checkButton === void 0 ? void 0 : checkButton.classList) === null || _b === void 0 ? void 0 : _b.remove('lido-disable-check-button');
|
|
693
|
-
const balanceEl = document.querySelector('lido-balance');
|
|
694
|
-
if (balanceEl) {
|
|
695
|
-
if (!checkButton.hasAttribute('data-balance-listener')) {
|
|
696
|
-
checkButton.addEventListener('click', async function onClick() {
|
|
697
|
-
if (balanceResult && res) {
|
|
698
|
-
await executeActions("this.showBalanceSymbol='true'", checkButton);
|
|
699
|
-
checkButton.removeEventListener('click', onClick);
|
|
700
|
-
}
|
|
701
|
-
});
|
|
702
|
-
checkButton.setAttribute('data-balance-listener', 'true');
|
|
703
|
-
}
|
|
704
|
-
}
|
|
705
704
|
}
|
|
706
705
|
else {
|
|
707
706
|
if (!container.getAttribute("game-completed") && !container.querySelector("[type='slide']") && !container.querySelector("[type='category']")) {
|