lido-player 0.0.2-alpha-93 → 0.0.2-alpha-95
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-BaNHxjfg.js → decode-BMS5SH1_.js} +1 -1
- package/dist/cjs/{index-DA8gicLI.js → index-qIQYfLu7.js} +4 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/lido-avatar_22.cjs.entry.js +29 -8
- package/dist/collection/components/container/lido-container.js +27 -6
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +4 -0
- 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-DtMwanJa.js → p-A2ykt6D6.js} +1 -1
- package/dist/components/p-BToRx4je.js +1 -0
- package/dist/esm/{decode-DaoFhRVo.js → decode-CVLIpt1B.js} +1 -1
- package/dist/esm/{index-BzH7LOZR.js → index-CDlKAs0c.js} +4 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/lido-avatar_22.entry.js +29 -8
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/p-461d0911.entry.js +1 -0
- package/dist/lido-player/{p-B2HnjmpR.js → p-CXPRo2t-.js} +1 -1
- package/dist/lido-player/{p-COqMyy72.js → p-DKptZ4k3.js} +1 -1
- package/dist/types/utils/constants.d.ts +27 -6
- package/package.json +1 -1
- package/dist/components/p-Cyn3wr_R.js +0 -1
- package/dist/lido-player/p-7e6fb454.entry.js +0 -1
|
@@ -1149,6 +1149,8 @@ const appendingDragElementsInDrop = () => {
|
|
|
1149
1149
|
if (isAllowOnlyCorrect === true) {
|
|
1150
1150
|
if (drop['value'] === drag['value']) {
|
|
1151
1151
|
drag.style.transform = 'translate(0,0)';
|
|
1152
|
+
drag.style.width = "stretch";
|
|
1153
|
+
drag.style.padding = '0';
|
|
1152
1154
|
drop.appendChild(drag);
|
|
1153
1155
|
appendedDragIds.add(drag.id);
|
|
1154
1156
|
drag.style.pointerEvents = 'none';
|
|
@@ -1158,6 +1160,8 @@ const appendingDragElementsInDrop = () => {
|
|
|
1158
1160
|
else {
|
|
1159
1161
|
if (drop['value'].includes(drag['value'])) {
|
|
1160
1162
|
drag.style.transform = 'translate(0,0)';
|
|
1163
|
+
drag.style.width = "stretch";
|
|
1164
|
+
drag.style.padding = '0';
|
|
1161
1165
|
drop.appendChild(drag);
|
|
1162
1166
|
appendedDragIds.add(drag.id);
|
|
1163
1167
|
drag.style.pointerEvents = 'none';
|
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-qIQYfLu7.js');
|
|
5
5
|
|
|
6
6
|
var rive$1 = {exports: {}};
|
|
7
7
|
|
|
@@ -12147,15 +12147,36 @@ const LidoContainer = class {
|
|
|
12147
12147
|
"sentenceMatchTemplate": "sentenceMatch" /* templateAudio.sentenceMatchTemplate */,
|
|
12148
12148
|
"pictureClues": "pictureClues" /* templateAudio.pictureClues */,
|
|
12149
12149
|
"palEgmaCalculateSumAndSumTogether": "palEgmaCalculateSumAndSumTogether" /* templateAudio.palEgmaCalculateSumAndSumTogether */,
|
|
12150
|
-
"palEgmaPatternMatching": "
|
|
12150
|
+
"palEgmaPatternMatching": "palEgmaPatternMatchingAudio" /* templateAudio.palEgmaPatternMatching */,
|
|
12151
12151
|
"palEgmaWordProblem": "palEgmaWordProblem" /* templateAudio.palEgmaWordProblem */,
|
|
12152
|
-
"palEgraArrangePictures": "
|
|
12153
|
-
"palEgraBuildWord": "
|
|
12152
|
+
"palEgraArrangePictures": "palEgraArrangePicturesAudio" /* templateAudio.palEgraArrangePictures */,
|
|
12153
|
+
"palEgraBuildWord": "palEgraBuildWordAudio" /* templateAudio.palEgraBuildWord */,
|
|
12154
12154
|
"palEgraMCQWithImage": "palEgraMCQWithImage" /* templateAudio.palEgraMCQWithImage */,
|
|
12155
|
-
"palEgraOddOneOut": "
|
|
12155
|
+
"palEgraOddOneOut": "palEgraOddOneOutAudio" /* templateAudio.palEgraOddOneOut */,
|
|
12156
12156
|
"palEgraOptionWithAudio": "palEgraOptionWithAudio" /* templateAudio.palEgraOptionWithAudio */,
|
|
12157
|
-
"palEgraWordFormation": "
|
|
12157
|
+
"palEgraWordFormation": "palEgraWordFormationAudio" /* templateAudio.palEgraWordFormation */,
|
|
12158
12158
|
"palEgraWordMatch": "palEgraWordMatch" /* templateAudio.palEgraWordMatch */,
|
|
12159
|
+
"substractionWithImage": "substractionWithImageAudio" /* templateAudio.substractionWithImage */,
|
|
12160
|
+
"substractionWithoutImage": "substractionWithoutImageAudio" /* templateAudio.substractionWithoutImage */,
|
|
12161
|
+
"numberIdentificationWithImage": "numberIdentificationWithImageAudio" /* templateAudio.numberIdentificationWithImage */,
|
|
12162
|
+
"numberIdentificationWithoutImage": "numberIdentificationWithoutImageAudio" /* templateAudio.numberIdentificationWithoutImage */,
|
|
12163
|
+
"wordBuildingWithImage": "wordBuildingWithImageAudio" /* templateAudio.wordBuildingWithImage */,
|
|
12164
|
+
"wordBuildingWithoutImage": "wordBuildingWithoutImageAudio" /* templateAudio.wordBuildingWithoutImage */,
|
|
12165
|
+
"pictureWordMatchMultipleImages": "pictureWordMatchMultipleImagesAudio" /* templateAudio.pictureWordMatchMultipleImages */,
|
|
12166
|
+
"pictureWordMatchSingleImage": "pictureWordMatchSingleImageAudio" /* templateAudio.pictureWordMatchSingleImage */,
|
|
12167
|
+
"sentenceMatch": "sentenceMatchAudio" /* templateAudio.sentenceMatch */,
|
|
12168
|
+
"imageMatch": "imageMatchAudio" /* templateAudio.imageMatch */,
|
|
12169
|
+
"palStoryTale": "palStoryTaleAudio" /* templateAudio.palStoryTale */,
|
|
12170
|
+
"palEgmaWordProblemDragnDrop": "palEgmaWordProblemDragnDropAudio" /* templateAudio.palEgmaWordProblemDragnDrop */,
|
|
12171
|
+
"palEgmaWordProblemClick": "palEgmaWordProblemClickAudio" /* templateAudio.palEgmaWordProblemClick */,
|
|
12172
|
+
"palInventedSpelling": "palInventedSpellingAudio" /* templateAudio.palInventedSpelling */,
|
|
12173
|
+
"palLetterIdentification": "palLetterIdentificationAudio" /* templateAudio.palLetterIdentification */,
|
|
12174
|
+
"palStoryMaking": "palStoryMakingAudio" /* templateAudio.palStoryMaking */,
|
|
12175
|
+
"palegmasumtogether": "palegmasumtogetherAudio" /* templateAudio.palegmasumtogether */,
|
|
12176
|
+
"palegmamultioption": "palegmamultioptionAudio" /* templateAudio.palegmamultioption */,
|
|
12177
|
+
"palegraoptionaudio": "palegraoptionAudio" /* templateAudio.palegraoptionaudio */,
|
|
12178
|
+
"palegrawordmatch": "palegrawordmatchAudio" /* templateAudio.palegrawordmatch */,
|
|
12179
|
+
"palegramcqimages": "palegramcqimagesAudio" /* templateAudio.palegramcqimages */
|
|
12159
12180
|
}[this.templateId]) !== null && _a !== void 0 ? _a : '';
|
|
12160
12181
|
const home = document.querySelector('lido-home');
|
|
12161
12182
|
if (!home)
|
|
@@ -12312,7 +12333,7 @@ const LidoContainer = class {
|
|
|
12312
12333
|
userSelect: 'none', // Prevent any field selection
|
|
12313
12334
|
};
|
|
12314
12335
|
console.log('🚀 ~ LidoContainer ~ canplay:', this.canplay);
|
|
12315
|
-
return (index.h(index.Host, { key: '
|
|
12336
|
+
return (index.h(index.Host, { key: 'b94060e2432a7e7d8580ffb53ceef4124a4fba25', 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: '7b433aa25be08cef849e9cefda243cebd7f6aef6', visible: "false", id: this.templateId, audio: "", string: this.instructName }), index.h("slot", { key: '95705c210ed7efbcf06e0ad7779b8c00fa4e1818' })));
|
|
12316
12337
|
}
|
|
12317
12338
|
get el() { return index.getElement(this); }
|
|
12318
12339
|
static get watchers() { return {
|
|
@@ -12852,7 +12873,7 @@ const LidoHome = class {
|
|
|
12852
12873
|
}
|
|
12853
12874
|
// Pure-JS fallback (no wasm asset required)
|
|
12854
12875
|
try {
|
|
12855
|
-
const brotliDecodeModule = await Promise.resolve().then(function () { return require('./decode-
|
|
12876
|
+
const brotliDecodeModule = await Promise.resolve().then(function () { return require('./decode-BMS5SH1_.js'); }).then(function (n) { return n.decode; });
|
|
12856
12877
|
const brotliDecompressBuffer = brotliDecodeModule.BrotliDecompressBuffer || ((_a = brotliDecodeModule.default) === null || _a === void 0 ? void 0 : _a.BrotliDecompressBuffer);
|
|
12857
12878
|
if (typeof brotliDecompressBuffer !== 'function') {
|
|
12858
12879
|
throw new Error('BrotliDecompressBuffer function not found in brotli/dec/decode');
|
|
@@ -259,15 +259,36 @@ export class LidoContainer {
|
|
|
259
259
|
"sentenceMatchTemplate": "sentenceMatch" /* templateAudio.sentenceMatchTemplate */,
|
|
260
260
|
"pictureClues": "pictureClues" /* templateAudio.pictureClues */,
|
|
261
261
|
"palEgmaCalculateSumAndSumTogether": "palEgmaCalculateSumAndSumTogether" /* templateAudio.palEgmaCalculateSumAndSumTogether */,
|
|
262
|
-
"palEgmaPatternMatching": "
|
|
262
|
+
"palEgmaPatternMatching": "palEgmaPatternMatchingAudio" /* templateAudio.palEgmaPatternMatching */,
|
|
263
263
|
"palEgmaWordProblem": "palEgmaWordProblem" /* templateAudio.palEgmaWordProblem */,
|
|
264
|
-
"palEgraArrangePictures": "
|
|
265
|
-
"palEgraBuildWord": "
|
|
264
|
+
"palEgraArrangePictures": "palEgraArrangePicturesAudio" /* templateAudio.palEgraArrangePictures */,
|
|
265
|
+
"palEgraBuildWord": "palEgraBuildWordAudio" /* templateAudio.palEgraBuildWord */,
|
|
266
266
|
"palEgraMCQWithImage": "palEgraMCQWithImage" /* templateAudio.palEgraMCQWithImage */,
|
|
267
|
-
"palEgraOddOneOut": "
|
|
267
|
+
"palEgraOddOneOut": "palEgraOddOneOutAudio" /* templateAudio.palEgraOddOneOut */,
|
|
268
268
|
"palEgraOptionWithAudio": "palEgraOptionWithAudio" /* templateAudio.palEgraOptionWithAudio */,
|
|
269
|
-
"palEgraWordFormation": "
|
|
269
|
+
"palEgraWordFormation": "palEgraWordFormationAudio" /* templateAudio.palEgraWordFormation */,
|
|
270
270
|
"palEgraWordMatch": "palEgraWordMatch" /* templateAudio.palEgraWordMatch */,
|
|
271
|
+
"substractionWithImage": "substractionWithImageAudio" /* templateAudio.substractionWithImage */,
|
|
272
|
+
"substractionWithoutImage": "substractionWithoutImageAudio" /* templateAudio.substractionWithoutImage */,
|
|
273
|
+
"numberIdentificationWithImage": "numberIdentificationWithImageAudio" /* templateAudio.numberIdentificationWithImage */,
|
|
274
|
+
"numberIdentificationWithoutImage": "numberIdentificationWithoutImageAudio" /* templateAudio.numberIdentificationWithoutImage */,
|
|
275
|
+
"wordBuildingWithImage": "wordBuildingWithImageAudio" /* templateAudio.wordBuildingWithImage */,
|
|
276
|
+
"wordBuildingWithoutImage": "wordBuildingWithoutImageAudio" /* templateAudio.wordBuildingWithoutImage */,
|
|
277
|
+
"pictureWordMatchMultipleImages": "pictureWordMatchMultipleImagesAudio" /* templateAudio.pictureWordMatchMultipleImages */,
|
|
278
|
+
"pictureWordMatchSingleImage": "pictureWordMatchSingleImageAudio" /* templateAudio.pictureWordMatchSingleImage */,
|
|
279
|
+
"sentenceMatch": "sentenceMatchAudio" /* templateAudio.sentenceMatch */,
|
|
280
|
+
"imageMatch": "imageMatchAudio" /* templateAudio.imageMatch */,
|
|
281
|
+
"palStoryTale": "palStoryTaleAudio" /* templateAudio.palStoryTale */,
|
|
282
|
+
"palEgmaWordProblemDragnDrop": "palEgmaWordProblemDragnDropAudio" /* templateAudio.palEgmaWordProblemDragnDrop */,
|
|
283
|
+
"palEgmaWordProblemClick": "palEgmaWordProblemClickAudio" /* templateAudio.palEgmaWordProblemClick */,
|
|
284
|
+
"palInventedSpelling": "palInventedSpellingAudio" /* templateAudio.palInventedSpelling */,
|
|
285
|
+
"palLetterIdentification": "palLetterIdentificationAudio" /* templateAudio.palLetterIdentification */,
|
|
286
|
+
"palStoryMaking": "palStoryMakingAudio" /* templateAudio.palStoryMaking */,
|
|
287
|
+
"palegmasumtogether": "palegmasumtogetherAudio" /* templateAudio.palegmasumtogether */,
|
|
288
|
+
"palegmamultioption": "palegmamultioptionAudio" /* templateAudio.palegmamultioption */,
|
|
289
|
+
"palegraoptionaudio": "palegraoptionAudio" /* templateAudio.palegraoptionaudio */,
|
|
290
|
+
"palegrawordmatch": "palegrawordmatchAudio" /* templateAudio.palegrawordmatch */,
|
|
291
|
+
"palegramcqimages": "palegramcqimagesAudio" /* templateAudio.palegramcqimages */
|
|
271
292
|
}[this.templateId]) !== null && _a !== void 0 ? _a : '';
|
|
272
293
|
const home = document.querySelector('lido-home');
|
|
273
294
|
if (!home)
|
|
@@ -424,7 +445,7 @@ export class LidoContainer {
|
|
|
424
445
|
userSelect: 'none', // Prevent any field selection
|
|
425
446
|
};
|
|
426
447
|
console.log('🚀 ~ LidoContainer ~ canplay:', this.canplay);
|
|
427
|
-
return (h(Host, { key: '
|
|
448
|
+
return (h(Host, { key: 'b94060e2432a7e7d8580ffb53ceef4124a4fba25', 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: '7b433aa25be08cef849e9cefda243cebd7f6aef6', visible: "false", id: this.templateId, audio: "", string: this.instructName }), h("slot", { key: '95705c210ed7efbcf06e0ad7779b8c00fa4e1818' })));
|
|
428
449
|
}
|
|
429
450
|
static get is() { return "lido-container"; }
|
|
430
451
|
static get originalStyleUrls() {
|
|
@@ -885,6 +885,8 @@ export const appendingDragElementsInDrop = () => {
|
|
|
885
885
|
if (isAllowOnlyCorrect === true) {
|
|
886
886
|
if (drop['value'] === drag['value']) {
|
|
887
887
|
drag.style.transform = 'translate(0,0)';
|
|
888
|
+
drag.style.width = "stretch";
|
|
889
|
+
drag.style.padding = '0';
|
|
888
890
|
drop.appendChild(drag);
|
|
889
891
|
appendedDragIds.add(drag.id);
|
|
890
892
|
drag.style.pointerEvents = 'none';
|
|
@@ -894,6 +896,8 @@ export const appendingDragElementsInDrop = () => {
|
|
|
894
896
|
else {
|
|
895
897
|
if (drop['value'].includes(drag['value'])) {
|
|
896
898
|
drag.style.transform = 'translate(0,0)';
|
|
899
|
+
drag.style.width = "stretch";
|
|
900
|
+
drag.style.padding = '0';
|
|
897
901
|
drop.appendChild(drag);
|
|
898
902
|
appendedDragIds.add(drag.id);
|
|
899
903
|
drag.style.pointerEvents = 'none';
|