lido-player 0.0.2-alpha-52-dev → 0.0.2-alpha-55-dev

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.
Files changed (129) hide show
  1. package/dist/cjs/index.cjs.js +1 -1
  2. package/dist/cjs/lido-avatar_22.cjs.entry.js +187 -59
  3. package/dist/cjs/lido-player.cjs.js +1 -1
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/{utils-ce99b0d0.js → utils-4b44610b.js} +111 -86
  6. package/dist/collection/components/calculator/lido-calculator.js +4 -2
  7. package/dist/collection/components/container/lido-container.js +24 -2
  8. package/dist/collection/components/home/lido-home.css +4 -0
  9. package/dist/collection/components/home/lido-home.js +27 -3
  10. package/dist/collection/components/trace/lido-trace.js +122 -47
  11. package/dist/collection/stories/Templates/Fill-Up/fill-up.stories.js +26 -25
  12. package/dist/collection/stories/Templates/LetterPairing/LetterPairing.stories.js +3 -1
  13. package/dist/collection/stories/Templates/RocketGame/rocketGame.stories.js +1 -1
  14. package/dist/collection/stories/Templates/arrangeLetters/arrangeLetters.stories.js +1 -1
  15. package/dist/collection/stories/Templates/balancing/balancing.stories.js +1 -1
  16. package/dist/collection/stories/Templates/blender/blender.stories.js +1 -1
  17. package/dist/collection/stories/Templates/bubbleType/bubbleType.stories.js +1 -1
  18. package/dist/collection/stories/Templates/calculator/calculator.stories.js +1 -1
  19. package/dist/collection/stories/Templates/checker-block/checkerBlock.stories.js +1 -1
  20. package/dist/collection/stories/Templates/checkerBlock/checkerBlock.stories.js +1 -1
  21. package/dist/collection/stories/Templates/create-sentence/createSentence.stories.js +1 -1
  22. package/dist/collection/stories/Templates/fillAnswer/fill-answer.stories.js +1 -1
  23. package/dist/collection/stories/Templates/fillBlank/fill-blank.stories.js +1 -1
  24. package/dist/collection/stories/Templates/foodJar/food-jar.stories.js +1 -1
  25. package/dist/collection/stories/Templates/grid/grid.stories.js +5 -1
  26. package/dist/collection/stories/Templates/gridGame/grid-game.stories.js +1 -1
  27. package/dist/collection/stories/Templates/jumpSentence/jumpSentence.stories.js +4 -2
  28. package/dist/collection/stories/Templates/letterboard/letterboard.stories.js +1 -1
  29. package/dist/collection/stories/Templates/matchingCard/matching-card.stories.js +1 -1
  30. package/dist/collection/stories/Templates/multipleOption/mcqWithQuestionImage.stories.js +4 -2
  31. package/dist/collection/stories/Templates/multipleOption/multiple-option.stories.js +1 -1
  32. package/dist/collection/stories/Templates/multiplyBeeds/multiplyBeeds.stories.js +1 -1
  33. package/dist/collection/stories/Templates/nimbleTable/nimbleTable.stories.js +1 -1
  34. package/dist/collection/stories/Templates/numberBoard/numberBoard.stories.js +1 -1
  35. package/dist/collection/stories/Templates/numberBoardTwo/numberBoardTwo.stories.js +1 -1
  36. package/dist/collection/stories/Templates/numberPair/numberPair.stories.js +1 -1
  37. package/dist/collection/stories/Templates/openwindow/openwindow.stories.js +2 -2
  38. package/dist/collection/stories/Templates/openwindow/openwindow2.stories.js +2 -2
  39. package/dist/collection/stories/Templates/order-tractor/order-tractor-ascending-order.stories.js +1 -1
  40. package/dist/collection/stories/Templates/order-tractor/order-tractor.stories.js +1 -1
  41. package/dist/collection/stories/Templates/phonic-tractor/phonic-tractor.stories.js +1 -1
  42. package/dist/collection/stories/Templates/picturemeaning/pictureMeaningCocos.stories.js +5 -1
  43. package/dist/collection/stories/Templates/questionBoard/questionBoard.stories.js +1 -1
  44. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracy.stories.js +1 -1
  45. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWithText.stories.js +1 -1
  46. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWord.stories.js +1 -1
  47. package/dist/collection/stories/Templates/reorder/reorder.stories.js +3 -1
  48. package/dist/collection/stories/Templates/rowBlocks/rowBlocks.stories.js +2 -2
  49. package/dist/collection/stories/Templates/sequenceBox/sequenceBox1.stories.js +6 -6
  50. package/dist/collection/stories/Templates/sequenceBox/sequenceBox2.stories.js +7 -6
  51. package/dist/collection/stories/Templates/shapePair/shape-pair.stories.js +1 -1
  52. package/dist/collection/stories/Templates/shapeTractor/shape-tractor.stories.js +25 -21
  53. package/dist/collection/stories/Templates/spellDoor/spellDoor.stories.js +1 -1
  54. package/dist/collection/stories/Templates/sumTogether/sumTogether.stories.js +8 -6
  55. package/dist/collection/stories/Templates/total/total.stories.js +1 -1
  56. package/dist/collection/stories/Templates/writeCard/writeCard.stories.js +1 -1
  57. package/dist/collection/stories/Templates/writeLetter/writeLetter.stories.js +2 -2
  58. package/dist/collection/stories/Templates/writeNumber/writeNumber.stories.js +6 -6
  59. package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +1 -1
  60. package/dist/collection/stories/Templates/writeWord/writeWord.stories.js +7 -6
  61. package/dist/collection/utils/customEvents.js +1 -0
  62. package/dist/collection/utils/utils.js +20 -17
  63. package/dist/collection/utils/utilsHandlers/animationHandler.js +58 -0
  64. package/dist/collection/utils/utilsHandlers/clickHandler.js +5 -1
  65. package/dist/collection/utils/utilsHandlers/dragDropHandler.js +19 -60
  66. package/dist/collection/utils/utilsHandlers/slideHandler.js +7 -6
  67. package/dist/collection/utils/utilsHandlers/sortHandler.js +3 -5
  68. package/dist/components/index.js +1 -1
  69. package/dist/components/lido-avatar.js +1 -1
  70. package/dist/components/lido-balance.js +1 -1
  71. package/dist/components/lido-calculator.js +1 -1
  72. package/dist/components/lido-canvas.js +1 -1
  73. package/dist/components/lido-cell.js +1 -1
  74. package/dist/components/lido-col.js +1 -1
  75. package/dist/components/lido-container.js +1 -1
  76. package/dist/components/lido-flash-card.js +1 -1
  77. package/dist/components/lido-float.js +1 -1
  78. package/dist/components/lido-home.js +1 -1
  79. package/dist/components/lido-image.js +1 -1
  80. package/dist/components/lido-keyboard.js +1 -1
  81. package/dist/components/lido-math-matrix.js +1 -1
  82. package/dist/components/lido-pos.js +1 -1
  83. package/dist/components/lido-random.js +1 -1
  84. package/dist/components/lido-root.js +23 -23
  85. package/dist/components/lido-row.js +1 -1
  86. package/dist/components/lido-shape.js +1 -1
  87. package/dist/components/lido-slide-fill.js +1 -1
  88. package/dist/components/lido-text.js +1 -1
  89. package/dist/components/lido-trace.js +1 -1
  90. package/dist/components/lido-wrap.js +1 -1
  91. package/dist/components/{p-39a2e638.js → p-0be6b5d5.js} +2 -2
  92. package/dist/components/{p-11bf64aa.js → p-2c518dbe.js} +1 -1
  93. package/dist/components/{p-c4abfd0f.js → p-2e023f67.js} +1 -1
  94. package/dist/components/{p-58c67252.js → p-36c2e21a.js} +110 -87
  95. package/dist/components/{p-52e77394.js → p-3fc01453.js} +1 -1
  96. package/dist/components/{p-06171259.js → p-43d79c61.js} +1 -1
  97. package/dist/components/{p-00777872.js → p-5078599e.js} +26 -4
  98. package/dist/components/{p-26df0769.js → p-590ce2c9.js} +1 -1
  99. package/dist/components/{p-5b5f59a8.js → p-67a24ad4.js} +2 -2
  100. package/dist/components/{p-68112f8c.js → p-72d6a594.js} +1 -1
  101. package/dist/components/{p-3ce3744c.js → p-73b2bd74.js} +6 -4
  102. package/dist/components/{p-0fbeb3a1.js → p-73e3f0f4.js} +12 -6
  103. package/dist/components/{p-0c2aebfb.js → p-9acf0fcc.js} +1 -1
  104. package/dist/components/{p-a2f96840.js → p-b095de27.js} +1 -1
  105. package/dist/components/{p-b2125fc9.js → p-b0dbee97.js} +48 -24
  106. package/dist/components/{p-a516a324.js → p-b847f269.js} +123 -48
  107. package/dist/components/{p-9d34d59d.js → p-bc5202db.js} +2 -2
  108. package/dist/components/{p-cb56a853.js → p-c296051d.js} +1 -1
  109. package/dist/components/{p-8a34b98b.js → p-c69ef266.js} +1 -1
  110. package/dist/components/{p-2d53e1a5.js → p-ca8aea4b.js} +1 -1
  111. package/dist/components/{p-3f4d4c0a.js → p-de2193c5.js} +1 -1
  112. package/dist/components/{p-09f1e2d2.js → p-e534ea52.js} +1 -1
  113. package/dist/components/{p-8f2ed62f.js → p-f8c00485.js} +1 -1
  114. package/dist/esm/index.js +1 -1
  115. package/dist/esm/lido-avatar_22.entry.js +187 -59
  116. package/dist/esm/lido-player.js +1 -1
  117. package/dist/esm/loader.js +1 -1
  118. package/dist/esm/{utils-107b15a7.js → utils-ae1eb036.js} +110 -87
  119. package/dist/lido-player/index.esm.js +1 -1
  120. package/dist/lido-player/lido-player.esm.js +1 -1
  121. package/dist/lido-player/{p-d1251482.js → p-a632e2ce.js} +2 -2
  122. package/dist/lido-player/p-f1b879f6.entry.js +1 -0
  123. package/dist/types/components/container/lido-container.d.ts +1 -0
  124. package/dist/types/components/home/lido-home.d.ts +1 -0
  125. package/dist/types/components/trace/lido-trace.d.ts +1 -0
  126. package/dist/types/utils/utils.d.ts +1 -1
  127. package/dist/types/utils/utilsHandlers/animationHandler.d.ts +1 -0
  128. package/package.json +1 -1
  129. package/dist/lido-player/p-606ea279.entry.js +0 -1
@@ -35,13 +35,14 @@ function getContainerXml(args) {
35
35
  const isAllowOnlyCorrect = (_a = args.isAllowOnlyCorrect) !== null && _a !== void 0 ? _a : true;
36
36
  const dragCells = options
37
37
  .map((digit, i) => `
38
- <lido-text id="${i}" tab-index="${i}" height="landscape.130px, portrait.130px" width="landscape.225px, portrait.200px" visible="true" value="${digit}" string="${digit}" font-family="'Baloo Bhai 2'" font-color="black" type="drag" font-size="104px" bg-color="#FFF4CD" onEntry="this.fontWeight='800'; this.borderRadius='10px';" border-image="">
38
+ <lido-text id="drag-${i}" tab-index="${100 + i}" height="landscape.130px, portrait.130px" width="landscape.225px, portrait.200px" visible="true" value="${digit}" string="${digit}" font-family="'Baloo Bhai 2'" font-color="black" type="drag" font-size="104px" bg-color="#FFF4CD" onEntry="this.fontWeight='800'; this.borderRadius='10px';" border-image="" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';"
39
+ onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';">
39
40
  </lido-text>
40
41
  `)
41
42
  .join('\n');
42
43
  return `
43
44
  <main>
44
- <lido-container id="lido-container" objective="${missingNumber}" tab-index="1" show-drop-border="false" is-continue-on-correct="true" is-allow-only-correct="${isAllowOnlyCorrect}" value="mainContainer1" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/trace/Underwater.png" height="100%" width="100%" bg-color="transparent" visible="true" onCorrect="this.questionBoxAnimate='true'; lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onEntry="this.justifyContent='space-around';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='20000';" drop-action="infinite-drop" show-check="false">
45
+ <lido-container id="lido-container" objective="${missingNumber}" tab-index="1" show-drop-border="false" is-continue-on-correct="true" is-allow-only-correct="${isAllowOnlyCorrect}" value="mainContainer1" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Sequence%20box.png" height="100%" width="100%" bg-color="transparent" visible="true" onCorrect="this.questionBoxAnimate='true'; lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onEntry="this.justifyContent='space-around';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='20000';" drop-action="infinite-drop" show-check="false">
45
46
 
46
47
  <!-- Chimple Avatar -->
47
48
  <lido-cell layout="pos" id="pos1" disableEdit="true" value="pos1" height="landscape.600px, portrait.700px" width="landscape.393px, portrait.485px" x="landscape.600px, portrait.230px" y="landscape.45px, portrait.1010px" ariaHidden="true" z="1" bgColor="transparent" visible="true" onEntry="this.flex-shrink='0';">
@@ -58,7 +59,7 @@ function getContainerXml(args) {
58
59
  <lido-image is-slice="true" bg-color="transparent" id="drop-image0" disable-edit="true" tab-index="20" visible="true" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/sequence-box/tressure_top1.png" height="landscape.150px, portrait.150px" width="landscape.315px, portrait.200px" margin="landscape.-180px 0px -525px 0px, portrait.-200px 0px -715px 0px">
59
60
  </lido-image>
60
61
  <lido-image is-slice="true" bg-color="transparent" id="drop-image0" disable-edit="true" tab-index="21" visible="true" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/sequence-box/tressure_bottom1.png" height="landscape.250px, portrait.200px" width="landscape.315px, portrait.200px" margin="landscape.0px 0px -145px 0px, portrait.0px 0px -275px 0px" >
61
- <lido-text id="${number1}" tab-index="${number1}" disable-edit="true" height="landscape.130px, portrait.100px" width="200px" visible="true" value="${number1}" string="${number1}" font-family="'Baloo Bhai 2'" font-color="#FFC805" font-size="landscape.130px, portrait.100px" bg-color="transparent" onEntry="this.fontWeight='800'; this.borderRadius='10px'; this.margin-top='65px'; this.margin-right='15px';">
62
+ <lido-text id="drop-${number1}" tab-index="${number1}" disable-edit="true" height="landscape.130px, portrait.100px" width="200px" visible="true" value="${number1}" string="${number1}" font-family="'Baloo Bhai 2'" font-color="#FFC805" font-size="landscape.130px, portrait.100px" bg-color="transparent" onEntry="this.fontWeight='800'; this.borderRadius='10px'; this.margin-top='65px'; this.margin-right='15px';">
62
63
  </lido-text>
63
64
  </lido-image>
64
65
  </lido-cell>
@@ -66,7 +67,7 @@ function getContainerXml(args) {
66
67
  <lido-image is-slice="true" bg-color="transparent" id="drop-image1" disable-edit="true" tab-index="23" visible="true" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/sequence-box/tressure_top1.png" height="landscape.150px, portrait.150px" width="landscape.315px, portrait.200px" margin="landscape.-180px 0px -525px 0px, portrait.-200px 0px -715px 0px" >
67
68
  </lido-image>
68
69
  <lido-image is-slice="true" bg-color="transparent" id="drop-image1" disable-edit="true" tab-index="24" visible="true" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/sequence-box/tressure_bottom1.png" height="landscape.250px, portrait.200px" width="landscape.315px, portrait.200px" margin="landscape.0px 0px -145px 0px, portrait.0px 0px -275px 0px" >
69
- <lido-text id="${number2}" tab-index="${number2}" disable-edit="true" height="landscape.130px, portrait.100px" width="125px" visible="true" value="${number2}" string="${number2}" font-family="'Baloo Bhai 2'" font-color="#FFC805" font-size="landscape.130px, portrait.100px" bg-color="transparent" onEntry="this.fontWeight='800'; this.borderRadius='10px'; this.margin-top='65px'; this.margin-right='15px';">
70
+ <lido-text id="drop-${number2}" tab-index="${number2}" disable-edit="true" height="landscape.130px, portrait.100px" width="125px" visible="true" value="${number2}" string="${number2}" font-family="'Baloo Bhai 2'" font-color="#FFC805" font-size="landscape.130px, portrait.100px" bg-color="transparent" onEntry="this.fontWeight='800'; this.borderRadius='10px'; this.margin-top='65px'; this.margin-right='15px';">
70
71
  </lido-text>
71
72
  </lido-image>
72
73
  </lido-cell>
@@ -74,7 +75,7 @@ function getContainerXml(args) {
74
75
  <lido-image is-slice="true" bg-color="transparent" id="drop-image2" disable-edit="true" tab-index="26" visible="true" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/sequence-box/tressure_top1.png" height="landscape.150px, portrait.150px" width="landscape.315px, portrait.200px" margin="landscape.-180px 0px -525px 0px, portrait.-200px 0px -715px 0px" >
75
76
  </lido-image>
76
77
  <lido-image is-slice="true" bg-color="transparent" id="drop-image2" disable-edit="true" tab-index="27" visible="true" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/sequence-box/tressure_bottom1.png" height="landscape.250px, portrait.200px" width="landscape.315px, portrait.200px" margin="landscape.0px 0px -145px 0px, portrait.0px 0px -275px 0px" >
77
- <lido-text id="${missingNumber}" tab-index="${missingNumber}" disable-edit="true" height="landscape.155px, portrait.125px" width="295px" visible="true" value="${missingNumber}" string="?" font-family="'Baloo Bhai 2'" font-color="#FFC805" type="drop" font-size="landscape.130px, portrait.100px" bg-color="transparent" onEntry="this.fontWeight='800'; this.borderRadius='10px'; this.margin-top='65px';';" border-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/sequence-box/card-slot_empty.png">
78
+ <lido-text id="drop-${missingNumber}" tab-index="${missingNumber}" disable-edit="true" height="landscape.155px, portrait.125px" width="295px" visible="true" value="${missingNumber}" string="?" font-family="'Baloo Bhai 2'" font-color="#FFC805" type="drop" font-size="landscape.130px, portrait.100px" bg-color="transparent" onEntry="this.fontWeight='800'; this.borderRadius='10px'; this.margin-top='65px';';" border-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/sequence-box/card-slot_empty.png">
78
79
  </lido-text>
79
80
  </lido-image>
80
81
  </lido-cell>
@@ -82,7 +83,7 @@ function getContainerXml(args) {
82
83
  <lido-image is-slice="true" bg-color="transparent" id="drop-image3" disable-edit="true" tab-index="30" visible="true" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/sequence-box/tressure_top1.png" height="landscape.150px, portrait.150px" width="landscape.315px, portrait.200px" margin="landscape.-180px 0px -525px 0px, portrait.-200px 0px -715px 0px" >
83
84
  </lido-image>
84
85
  <lido-image is-slice="true" bg-color="transparent" id="drop-image3" disable-edit="true" tab-index="31" visible="true" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/sequence-box/tressure_bottom1.png" height="landscape.250px, portrait.200px" width="landscape.315px, portrait.200px" margin="landscape.0px 0px -145px 0px, portrait.0px 0px -275px 0px" >
85
- <lido-text id="${number4}" tab-index="${number4}" disable-edit="true" height="landscape.130px, portrait.100px" width="125px" visible="true" value="${number4}" string="${number4}" font-family="'Baloo Bhai 2'" font-color="#FFC805" font-size="landscape.130px, portrait.100px" bg-color="transparent" onEntry="this.fontWeight='800'; this.borderRadius='10px'; this.margin-top='65px'; this.margin-right='15px';">
86
+ <lido-text id="drop-${number4}" tab-index="${number4}" disable-edit="true" height="landscape.130px, portrait.100px" width="125px" visible="true" value="${number4}" string="${number4}" font-family="'Baloo Bhai 2'" font-color="#FFC805" font-size="landscape.130px, portrait.100px" bg-color="transparent" onEntry="this.fontWeight='800'; this.borderRadius='10px'; this.margin-top='65px'; this.margin-right='15px';">
86
87
  </lido-text>
87
88
  </lido-image>
88
89
  </lido-cell>
@@ -79,7 +79,7 @@ export const ShapePair = {
79
79
  };
80
80
  function getContainerXml(args) {
81
81
  return `<main>
82
- <lido-container id="lido-container" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" is-allow-only-correct="${args.isAllowOnlyCorrect}" objective="${args.correct1},${args.correct2},${args.correct3},${args.correct4}" visible="true" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/phonic-tractor/bg-image.png" dropAttr="EnableAnimation" custom-style="#heading,#drag1,#drag2,#drag3,#drag4,#drag5,#drag6,#drag7,#drop1,#drop2,#drop3,#drop4,#drop5,#drop6,#drop7{box-shadow: none !important;}" is-continue-on-correct="${args.isContinueOnCorrect}">
82
+ <lido-container id="lido-container" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" is-allow-only-correct="${args.isAllowOnlyCorrect}" objective="${args.correct1},${args.correct2},${args.correct3},${args.correct4}" visible="true" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Shape%20pair.png" dropAttr="EnableAnimation" custom-style="#heading,#drag1,#drag2,#drag3,#drag4,#drag5,#drag6,#drag7,#drop1,#drop2,#drop3,#drop4,#drop5,#drop6,#drop7{box-shadow: none !important;}" is-continue-on-correct="${args.isContinueOnCorrect}">
83
83
  <!-- Chimple Avatar -->
84
84
  <lido-cell layout="pos" id="pos1" disableEdit="true" value="pos2" height="landscape.205px,portrait.195px" width="landscape.209px,portrait.209px" x="landscape.2%,portrait.80%" y="landscape.85px,portrait.146px" ariaHidden="true" bgColor="transparent" visible="true" onEntry="">
85
85
  <lido-avatar id="lido-avatar" disableEdit="true" visible="true" height="100%" width="100%" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp2/chimplecharacter.riv" altText="{chimpleCharacterRive}">
@@ -183,31 +183,35 @@ function getContainerXml({ blocks, options }) {
183
183
  .join("");
184
184
  return `
185
185
  <main>
186
- <lido-container id="lido-container" is-allow-only-correct="true" show-Check="false" is-Continue-On-Correct="true" after-Drop="false" objective="${dropValues}" visible="true" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Ordered%20Tractor/Spring.png" custom-style="#drop1, #drop2{border: none !important;}" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000'; answer.visible='false'; lido-avatar.animation='placeToLeft 2.5s linear'; answer.animation='placeToLeft 2.5s linear'; truck.animation='placeToLeft 2.5s linear'; trainAudio.speak='true'" onInCorrect="lido-avatar.avatarAnimate='Fail';" >
187
- <!-- Chimple Avatar -->
188
- <lido-cell layout="pos" id="pos1" disableEdit="true" value="pos2" height="300px" width="300px" x="landscape.110px,portrait.10px" y="landscape.80px,portrait.230px" ariaHidden="true" bgColor="transparent" visible="true" onEntry=" this.animation='rightToPlace 2.5s linear';">
189
- <lido-avatar id="lido-avatar" disableEdit="true" visible="true" height="100%" width="100%" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp2/chimplecharacter.riv" altText="{chimpleCharacterRive}">
190
- </lido-avatar>
191
- </lido-cell>
186
+ <lido-container id="lido-container" is-allow-only-correct="true" show-Check="false" is-Continue-On-Correct="true" after-Drop="false" objective="${dropValues}" visible="true" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Shape%20tractor.png" custom-style="#drop1, #drop2{border: none !important;}" onCorrect="drg1.disableType='true'; drg2.disableType='true'; drg3.disableType='true'; lido-avatar.avatarAnimate='Success'; this.sleep='2000'; answer.visible='false'; lido-avatar.animation='placeToLeft 2.5s linear'; answer.animation='placeToLeft 2.5s linear'; truck.animation='placeToLeft 2.5s linear'; trainAudio.speak='true'" onInCorrect="lido-avatar.avatarAnimate='Fail';" >
192
187
 
193
- <lido-cell visible="true" id="truck" layout="row" height="landscape.60%, portrait.60%" width="landscape.100%, portrait.100%" bg-color="transparent" onEntry=" this.animation='rightToPlace 2.5s linear';" onCorrect="" >
194
- <lido-text id="question" visible="false" string="complete the pattern using the blocks given below" value="complete the pattern using the blocks given below" onEntry="this.sleep='2000';this.speak='true';"></lido-text>
195
- <lido-text id="trainAudio" visible="false" audio="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Ordered%20Tractor/train1.m4a" onEntry="this.speak='true';"></lido-text>
196
-
197
- <lido-cell visible="true" layout="row" bg-color="transparent" gap="0px" margin="landscape.220px 0px 0px 0px,portrait.977px 0px 0px -200px">
198
-
199
- <lido-image visible="true" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Shape%20Tractor/truck_bg_soundtrain.png" width="landscape.220px,portrait.250px" padding="0px" margin="72px 0px 0px 0px"></lido-image>
200
- ${truckBlocks}
188
+ <!-- Chimple Avatar -->
189
+ <lido-cell layout="pos" id="pos1" disableEdit="true" value="pos2" height="300px" width="300px" x="landscape.110px,portrait.10px" y="landscape.80px,portrait.230px" ariaHidden="true" bgColor="transparent" visible="true" onEntry=" this.animation='rightToPlace 2.5s linear';">
190
+ <lido-avatar id="lido-avatar" disableEdit="true" visible="true" height="100%" width="100%" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp2/chimplecharacter.riv" altText="{chimpleCharacterRive}">
191
+ </lido-avatar>
201
192
  </lido-cell>
202
- </lido-cell>
203
193
 
204
- <lido-cell visible="true" id="answer" layout="row" height="landscape.40%,portrait.40%" width="landscape.50%,portrait.50%" bg-color="transparent" onEntry="this.alignItems='center';this.justify-content='space-around';this.animation='rightToPlace 2.5s linear'">
205
- ${optionCells}
206
- </lido-cell>
207
- </lido-container>
194
+ <lido-cell visible="true" id="truck" layout="row" height="landscape.60%, portrait.60%" width="landscape.100%, portrait.100%" bg-color="transparent" onEntry=" this.animation='rightToPlace 2.5s linear';" onCorrect="" >
195
+
196
+ <lido-text id="question" visible="false" string="complete the pattern using the blocks given below" value="complete the pattern using the blocks given below" onEntry="this.sleep='2000';this.speak='true';">
197
+ </lido-text>
198
+ <lido-text id="trainAudio" visible="false" audio="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Ordered%20Tractor/train1.m4a" onEntry="this.speak='true';">
199
+ </lido-text>
200
+
201
+ <lido-cell visible="true" layout="row" bg-color="transparent" gap="0px" margin="landscape.220px 0px 0px 0px,portrait.977px 0px 0px -200px">
202
+
203
+ <lido-image visible="true" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Shape%20Tractor/truck_bg_soundtrain.png" width="landscape.220px,portrait.250px" padding="0px" margin="72px 0px 0px 0px">
204
+ </lido-image>
208
205
 
209
-
210
-
206
+ ${truckBlocks}
207
+
208
+ </lido-cell>
209
+ </lido-cell>
210
+
211
+ <lido-cell visible="true" id="answer" delay-visible="2650" layout="row" height="landscape.40%,portrait.40%" width="landscape.50%,portrait.50%" bg-color="transparent" onEntry="this.alignItems='center';this.justify-content='space-around';this.animation='rightToPlace 2.5s linear'">
212
+ ${optionCells}
213
+ </lido-cell>
214
+ </lido-container>
211
215
  </main>
212
216
  `;
213
217
  }
@@ -24,7 +24,7 @@ function getContainerXml(args) {
24
24
  let tabCounter = 1;
25
25
  const correctSequence = args.options.filter(opt => opt.startsWith('#') || opt.startsWith('@')).map(opt => opt.slice(1)).join('');
26
26
  return `<main>
27
- <lido-container id="lido-container" is-allow-only-correct="true" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/spelldoor/Background_Spring.png" objective="${drops.join(',')}" height="100%" width="100%" bg-color="transparent" visible="true" onCorrect=" lido-avatar.avatarAnimate='Success'; correctWord.speak='true'; this.sleep='2000';" onEntry="this.justifyContent='space-around';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="true" after-drop="false">
27
+ <lido-container id="lido-container" is-allow-only-correct="true" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Spell%20door.png" objective="${drops.join(',')}" height="100%" width="100%" bg-color="transparent" visible="true" onCorrect=" lido-avatar.avatarAnimate='Success'; correctWord.speak='true'; this.sleep='2000';" onEntry="this.justifyContent='space-around';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="true" after-drop="false">
28
28
  <lido-text visible="false" id="correctWord" onEntry="this.display='none';" string="${correctSequence}" ></lido-text>
29
29
  <!-- Chimple Avatar -->
30
30
  <lido-cell layout="pos" id="pos1" value="pos2" height="305px" width="227px" x="landscape.81%, portrait.60%" y="landscape.12%, portrait.20%" aria-hidden="true" z="1" bg-color="transparent" visible="true" onEntry="this.animation='rightToPlace 2.5s linear';">
@@ -64,14 +64,14 @@ function getContainerXml(args) {
64
64
  const dragCells = options
65
65
  .map((digit, i) => {
66
66
  return `
67
- <lido-text id="option-${i}" tab-index="${tabCounter++}" type="drag" height="195px" width="120px" visible="true" value="${digit}" string="${digit}" font-family="'Baloo Bhai 2'" font-color="black" font-size="150px" bg-color="white" onInCorrect="" onEntry="this.font-weight='800'; this.borderRadius='10px'; this.flex-flow='column-reverse';" border-image="">
67
+ <lido-text id="option-${i}" tab-index="${tabCounter++}" type="drag" height="195px" width="120px" visible="true" onInCorrect="this.speak='true';" onCorrect="this.speak='true';" value="${digit}" string="${digit}" font-family="'Baloo Bhai 2'" font-color="black" font-size="150px" bg-color="white" onEntry="this.font-weight='800'; this.borderRadius='10px'; this.flex-flow='column-reverse';" border-image="">
68
68
  </lido-text>
69
69
  `;
70
70
  }).join('\n');
71
71
  return `
72
72
  <main>
73
73
 
74
- <lido-container id="sum-together" disable-speak="true" show-drop-border="false" objective="${objective}" tab-index="1" value="sum-together" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/trace/Underwater.png" height="100%" width="100%" bg-color="transparent" visible="true" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onEntry="this.justifyContent='space-around'; this.sumTogetherAnimation='true';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="true" is-allow-only-correct="${isAllowOnlyCorrect}">
74
+ <lido-container id="lido-container" disable-speak="true" show-drop-border="false" objective="${objective}" tab-index="1" value="sum-together" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Sum%20together.png" height="100%" width="100%" bg-color="transparent" visible="true" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onEntry="this.justifyContent='space-around'; this.sumTogetherAnimation='true';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="true" is-allow-only-correct="${isAllowOnlyCorrect}">
75
75
 
76
76
  <!-- Chimple Avatar -->
77
77
  <lido-cell layout="pos" id="pos1" disableEdit="true" value="pos1" height="landscape.570px, portrait.700px" width="landscape.380px, portrait.485px" x="landscape.-80px, portrait.195px" y="landscape.175px, portrait.1085px" ariaHidden="true" bg-color="transparent" visible="true" onEntry="this.flex-shrink='0'; this.z-index='0';">
@@ -80,7 +80,7 @@ function getContainerXml(args) {
80
80
  </lido-cell>
81
81
 
82
82
  <!-- top section -->
83
- <lido-cell layout="landscape.row,portrait.wrap" id="question-row" aria-hidden="true" visible="true" height="landscape.15%,portrait.5%" width="landscape.100%, portrait.106%" bg-Color="transparent" margin="landscape.100px 0px 0px 0px,portrait.-130px -65px 0px 0px" onEntry="this.z-index='1'; this.justify-content='center';" gap="landscape.35px,portrait.5px">
83
+ <lido-cell layout="landscape.row,portrait.wrap" id="top-row" aria-hidden="true" visible="true" height="landscape.15%,portrait.5%" width="landscape.100%, portrait.106%" bg-Color="transparent" margin="landscape.100px 0px 0px 0px,portrait.-130px -65px 0px 0px" onEntry="this.z-index='1'; this.justify-content='center';" gap="landscape.35px,portrait.5px">
84
84
  ${topImageCells}
85
85
  </lido-cell>
86
86
 
@@ -94,13 +94,15 @@ function getContainerXml(args) {
94
94
  </lido-text>
95
95
  <lido-text id="equal" tab-index="${tabCounter++}" height="215px" width="120px" visible="true" value="=" string="=" font-family="'Baloo Bhai 2'" font-color="black" font-size="150px" bg-color="transparent" onInCorrect="" onEntry="this.font-weight='800'; this.borderRadius='10px'; this.flex-flow='column-reverse'; this.opacity='0';" border-image="">
96
96
  </lido-text>
97
- <lido-text id="${answer}" tab-index="${tabCounter++}" type="drop" height="245px" width="175px" visible="true" value="${answer}" string="?" font-family="'Baloo Bhai 2'" font-color="black" font-size="150px" bg-color="transparent" onInCorrect="" onEntry="this.font-weight='800'; this.borderRadius='10px'; this.flex-flow='column-reverse'; this.opacity='0';" border-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/sequence-box/card-slot_empty.png">
98
- </lido-text>
97
+ <lido-image id="${answer}" tab-index="${tabCounter++}" is-slice="true" height="225px" width="175px" value="${answer}" string="?" visible="true" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/sequence-box/card-slot_empty.png" type="drop" onEntry="this.opacity='0';" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='1000';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='1000';">
98
+ <lido-text height="245px" width="175px" visible="true" value="${answer}" string="?" font-family="'Baloo Bhai 2'" font-color="black" font-size="150px" bg-color="transparent" onEntry="this.font-weight='800'; this.borderRadius='10px'; this.flex-flow='column-reverse'; this.opacity='1';">
99
+ </lido-text>
100
+ </lido-image>
99
101
  </lido-cell>
100
102
 
101
103
 
102
104
  <!-- option row-->
103
- <lido-cell layout="landscape.row, portrait.wrap" id="question-row" aria-hidden="true" visible="true" height="landscape.15%,portrait.5%" width="landscape.90%, portrait.106%" bg-Color="transparent" margin="landscape.65px 0px 65px 0px,portrait.-160px -65px 500px 0px" onEntry="this.z-index='1'; this.justify-content='center'; this.opacity='0';" gap="landscape.20px,portrait.5px">
105
+ <lido-cell layout="landscape.row, portrait.wrap" id="option-row" aria-hidden="true" visible="true" height="landscape.15%,portrait.5%" width="landscape.90%, portrait.106%" bg-Color="transparent" margin="landscape.65px 0px 65px 0px,portrait.-160px -65px 500px 0px" onEntry="this.z-index='1'; this.justify-content='center'; this.opacity='0';" gap="landscape.20px,portrait.5px">
104
106
  ${dragCells}
105
107
  </lido-cell>
106
108
 
@@ -30,7 +30,7 @@ function getContainerXml(args) {
30
30
  return `
31
31
  <main>
32
32
  <lido-container visible="true" id="lido-container" onInCorrect="lido-avatar.avatarAnimate='Fail';" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='1000'; ${args.images.map((_, i) => `i${i + 1}.revealImageValue='true'; this.sleep='1000';`).join('')} this.sleep='2000';"
33
- bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/trace/Sky.png" objective="${args.answer}" is-continue-on-correct="true" show-Check="false" >
33
+ bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Total.png" objective="${args.answer}" is-continue-on-correct="true" show-Check="false" >
34
34
  <!-- Chimple Avatar -->
35
35
  <lido-cell layout="pos" id="pos1" disable-edit="true" value="pos2" height="landscape.402px,portrait.402px" width="landscape.302px,portrait.398px" x="landscape.84%, portrait.-4%" y="landscape.58%, portrait.77%" aria-hidden="true" z="1" bg-color="transparent" visible="true" onEntry="">
36
36
  <lido-avatar id="lido-avatar" disable-edit="true" visible="true" height="100%" width="100%" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp2/chimplecharacter.riv" alt-text="{chimpleCharacterRive}">
@@ -42,7 +42,7 @@ function getContainerXml(args) {
42
42
  return `
43
43
  <main>
44
44
 
45
- <lido-container id="lido-container" objective="" tab-index="1" value="mainContainer1" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/trace/Sky.png" height="1600px" width="900px" bg-color="transparent" visible="true" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onEntry="this.justifyContent='space-around';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="true" is-allow-only-correct="${isAllowOnlyCorrect}" after-drop="false" show-next-button="true">
45
+ <lido-container id="lido-container" objective="" tab-index="1" value="mainContainer1" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Write%20card.png" height="1600px" width="900px" bg-color="transparent" visible="true" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onEntry="this.justifyContent='space-around';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="true" is-allow-only-correct="${isAllowOnlyCorrect}" after-drop="false" show-next-button="true">
46
46
 
47
47
  <!-- Chimple Avatar -->
48
48
  <lido-cell layout="pos" id="pos1" disable-edit="true" value="pos1" height="landscape.600px, portrait.700px" width="landscape.393px, portrait.485px" x="landscape.-24px, portrait.465px" y="landscape.385px, portrait.983px" aria-hidden="true" z="1" bg-color="transparent" visible="true" onEntry="this.flex-shrink='0';">
@@ -52,7 +52,7 @@ function getContainerXml(args) {
52
52
  return `
53
53
  <main>
54
54
 
55
- <lido-container id="lido-container" disableSpeak="true" objective="writeLetter" tab-index="1" value="mainContainer1" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/trace/Sky.png" height="100%" width="100%" bg-Color="transparent" visible="true" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onEntry="this.justifyContent='space-around';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="true" is-allow-only-correct="${isAllowOnlyCorrect}" after-drop="false">
55
+ <lido-container id="lido-container" disableSpeak="true" objective="writeLetter" tab-index="1" value="mainContainer1" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Write%20letter.png" height="100%" width="100%" bg-Color="transparent" visible="true" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onEntry="this.justifyContent='space-around';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="true" is-allow-only-correct="${isAllowOnlyCorrect}" after-drop="false">
56
56
 
57
57
  <!-- Chimple Avatar -->
58
58
  <lido-cell layout="pos" id="pos1" disable-edit="true" value="pos1" height="landscape.600px, portrait.700px" width="landscape.393px, portrait.485px" x="landscape.-24px, portrait.465px" y="landscape.360px, portrait.1025px" aria-hidden="true" z="1" bg-Color="transparent" visible="true" onEntry="this.flex-shrink='0';">
@@ -79,7 +79,7 @@ function getContainerXml(args) {
79
79
 
80
80
 
81
81
 
82
- <lido-container id="lido-container" objective="writeCard" tab-index="1" value="mainContainer1" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/trace/Sky.png" height="1600px" width="900px" bg-color="transparent" visible="true" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onEntry="this.justifyContent='space-around';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="true" is-allow-only-correct="${isAllowOnlyCorrect}" after-drop="false">
82
+ <lido-container id="lido-container" objective="writeCard" tab-index="1" value="mainContainer1" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Write%20letter.png" height="1600px" width="900px" bg-color="transparent" visible="true" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onEntry="this.justifyContent='space-around';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="true" is-allow-only-correct="${isAllowOnlyCorrect}" after-drop="false">
83
83
 
84
84
  <!-- Chimple Avatar -->
85
85
  <lido-cell layout="pos" id="pos1" disable-edit="true" value="pos1" height="landscape.600px, portrait.700px" width="landscape.393px, portrait.485px" x="landscape.-24px, portrait.465px" y="landscape.385px, portrait.983px" aria-hidden="true" z="1" bg-color="transparent" visible="true" onEntry="this.flex-shrink='0';">
@@ -54,17 +54,17 @@ function getContainerXml(args) {
54
54
  const starCells = starList
55
55
  .map((index) => {
56
56
  return `
57
- <lido-image id="star${index}" tab-index="${tabCounter++}" audio="" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/trace/fly1%201.png" width="landscape.100px, portrait.140px" visible="true" height="landscape.75px, portrait.92px">
57
+ <lido-image id="star${index}" tab-index="${tabCounter++}" audio="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Audios/1.wav" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/trace/fly1%201.png" width="landscape.100px, portrait.140px" visible="true" height="landscape.75px, portrait.92px">
58
58
  </lido-image>
59
59
  `;
60
60
  })
61
61
  .join('');
62
62
  return `
63
63
  <main>
64
- <lido-container id="lido-container" objective="writeNumber" tab-index="1" value="mainContainer1" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/trace/Underwater.png" height="100%" width="100%" bg-color="transparent" visible="true" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onEntry="this.justifyContent='space-around';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" is-continue-on-correct="true" is-allow-only-correct="${isAllowOnlyCorrect}">
64
+ <lido-container id="lido-container" objective="writeNumber" tab-index="1" value="mainContainer1" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Write%20number.png" height="100%" width="100%" bg-color="transparent" visible="true" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onEntry="this.justifyContent='space-around';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" is-continue-on-correct="true" is-allow-only-correct="${isAllowOnlyCorrect}">
65
65
 
66
66
  <!-- Chimple Avatar -->
67
- <lido-cell layout="pos" id="pos1" disable-edit="true" height="landscape.600px, portrait.700px" width="landscape.393px, portrait.485px" x="landscape.1279px, portrait.230px" y="landscape.375px, portrait.1010px" ariaHidden="true" z="1" bg-color="transparent" visible="true" onEntry="this.flex-shrink='0';">
67
+ <lido-cell layout="pos" id="pos1" disable-edit="true" height="landscape.600px, portrait.700px" width="landscape.393px, portrait.485px" x="landscape.1279px, portrait.230px" y="landscape.375px, portrait.1035px" ariaHidden="true" z="1" bg-color="transparent" visible="true" onEntry="this.flex-shrink='0';">
68
68
  <lido-avatar id="lido-avatar" disable-edit="true" visible="true" height="inherit" width="inherit" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp2/chimplecharacter.riv" alt-text="{chimpleCharacterRive}" onEntry="">
69
69
  </lido-avatar>
70
70
  <lido-image id="image" disable-edit="true" value="image" visible="true" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp2/Shadow.png" bg-color="transparent" width="inherit" height="27px" x="landscape.-7px, portrait.-7px" y="landscape.450px, portrait.535px" alt-text="{shadowImage}">
@@ -84,13 +84,13 @@ function getContainerXml(args) {
84
84
  </lido-cell>
85
85
 
86
86
  <!-- trace cell -->
87
- <lido-cell layout="pos" id="pos3" visible="true" width="landscape.740px, portrait.740px" height="landscape.477px, portrait.477px" bg-color="transparent" onEntry="this.border-radius='6px'; this.flex-shrink='0';" x="landscape.430px, portrait.75px" y="landscape.205px, portrait.315px">
88
- <lido-trace id="image2" tab-index="3" value="a" visible="true" highlightTextId="txt1" svgSource="${traceImage1}; ${traceImage2}" onCorrect="star-row.highlightStarsAndDisapper='true';" mode="${traceMode}" z="1" x="" y="" width="740px" height="477px" alt-text="{backgroundImage}">
87
+ <lido-cell layout="pos" id="pos3" visible="true" width="landscape.740px, portrait.740px" height="landscape.477px, portrait.477px" bg-color="transparent" onEntry="this.border-radius='6px'; this.flex-shrink='0';" x="landscape.430px, portrait.75px" y="landscape.205px, portrait.275px">
88
+ <lido-trace id="image2" tab-index="3" value="a" audio="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Audios/1.wav; https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Audios/2.wav" visible="true" highlightTextId="txt1" svgSource="${traceImage1}; ${traceImage2}" onCorrect="star-row.highlightStarsAndDisapper='true'; lido-avatar.avatarAnimate='Success'; this.sleep='2000';" mode="${traceMode}" z="1" x="" y="" width="740px" height="477px" alt-text="{backgroundImage}">
89
89
  </lido-trace>
90
90
  </lido-cell>
91
91
 
92
92
 
93
- <lido-cell layout="wrap" id="star-row" width="landscape.50%, portrait.80%" height="landscape.160px, portrait.200px" visible="true" bg-color="transparent" y="landscape.500px, portrait.485px" margin="landscape.560px 0px -100px 0px, portrait.225px 0px -100px 0px" onEntry="this.grid-template-columns='repeat(auto-fill, minmax(135px, auto))'; this.justify-content='center'; this.align-items='center';">
93
+ <lido-cell layout="wrap" id="star-row" width="landscape.85%, portrait.80%" height="landscape.160px, portrait.200px" visible="true" bg-color="transparent" y="landscape.500px, portrait.485px" margin="landscape.560px 0px -100px 0px, portrait.95px 0px -100px 0px" onEntry="this.grid-template-columns='repeat(auto-fit, minmax(125px, auto))'; this.justify-content='center'; this.align-items='center';">
94
94
  ${starCells}
95
95
  </lido-cell>
96
96
 
@@ -32,7 +32,7 @@ function getContainerXml(args) {
32
32
  `;
33
33
  }).join('');
34
34
  return `<main>
35
- <lido-container visible="true" show-next-button="true" dropAttr="math-matrix" appendToDropOnCompletion="true" equationCheck="$#mat1,==,$#number" objective="" is-allow-only-correct="${isAllowOnlyCorrect}" bg-color="transparent" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/trace/Sky.png" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" onCorrect="lido-avatar.avatarAnimate='Success'; number.speak='true'; this.sleep='2000';" is-continue-on-correct="${isContinueOnCorrect}">
35
+ <lido-container visible="true" show-next-button="true" dropAttr="math-matrix" appendToDropOnCompletion="true" equationCheck="$#mat1,==,$#number" objective="" is-allow-only-correct="${isAllowOnlyCorrect}" bg-color="transparent" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Write%20Set.png" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" onCorrect="lido-avatar.avatarAnimate='Success'; number.speak='true'; this.sleep='2000';" is-continue-on-correct="${isContinueOnCorrect}">
36
36
 
37
37
  <!-- Audio -->
38
38
  <lido-text visible="false" id="audio123" onEntry="this.display='none'; this.speak='true';" string="Fill the matrix according to the number given in the box."></lido-text>
@@ -53,7 +53,7 @@ function getContainerXml(args) {
53
53
  console.log("SVG Source:", `${traceImage1}; ${traceImage2}; ${traceImage3}`);
54
54
  return `
55
55
  <main>
56
- <lido-container id="lido-container" tab-index="1" objective="writeWord" value="mainContainer1" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/trace/Underwater.png" height="100%" width="100%" bg-color="transparent" visible="true" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onEntry="this.justifyContent='space-around';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="true" is-allow-only-correct="${isAllowOnlyCorrect}" after-drop="false">
56
+ <lido-container id="lido-container" tab-index="1" objective="writeWord" value="mainContainer1" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Write%20word.png" height="100%" width="100%" bg-color="transparent" visible="true" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onEntry="this.justifyContent='space-around';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="true" is-allow-only-correct="${isAllowOnlyCorrect}" after-drop="false">
57
57
 
58
58
  <!-- Chimple Avatar -->
59
59
  <lido-cell layout="pos" id="pos1" disable-edit="true" value="pos1" height="landscape.600px, portrait.700px" width="landscape.393px, portrait.485px" x="landscape.1200px, portrait.450px" y="landscape.390px, portrait.1020px" aria-hidden="true" z="1" bg-color="transparent" visible="true" onEntry="this.flex-shrink='0';">
@@ -63,14 +63,15 @@ function getContainerXml(args) {
63
63
  </lido-image>
64
64
  </lido-cell>
65
65
 
66
- <!-- text-element -->
67
- <lido-cell layout="pos" id="pos1" disable-edit="true" value="pos1" height="landscape.80px, portrait.80px" width="landscape.297px, portrait.297px" x="landscape.650px, portrait.300px" y="landscape.125px, portrait.190px" aria-hidden="true" z="1" bg-color="transparent" visible="true" onEntry="">
68
- <lido-text id="txt1" tab-index="2" span-type="${spanType}" audio="" width="297px" height="80px" display="flex" onEntry="this.text-align='center'; this.justify-content='center'; this.flex-shrink='0';" font="'Baloo Bhai 2'" font-size="96px" z="1" font-color="black" font-weight="600" color=" #000000" string="${text}" visible="true" y="landscape., portrait." bg-color="transparent">
69
- </lido-text>
70
- </lido-cell>
66
+
71
67
 
72
68
  <lido-cell layout="col" visible="true" width="landscape.70%, portrait.70%" height="landscape.84%, portrait.60%" bg-color="transparent" margin="landscape.-35px 0px -35px 0px, portrait.-400px 0px -40px 0px" onEntry="this.padding='4px 0px 16px 0px';">
73
69
  <lido-image visible="true" src="${topDisplayImage}" z="1" width="landscape.570px, portrait.570px" height="landscape.225px, portrait.225px" onEntry="this.flex-shrink='0';" altText="{image1}">
70
+ <!-- text-element -->
71
+ <lido-cell layout="pos" display="flex" id="pos1" disable-edit="true" value="pos1" height="landscape.80px, portrait.80px" width="landscape.525px, portrait.525px" x="landscape.545px, portrait.300px" y="landscape.125px, portrait.190px" aria-hidden="true" bg-color="transparent" visible="true" onEntry="this.z-index='2'; this.align-items='center'; this.justify-content='center'; this.display='flex';">
72
+ <lido-text id="txt1" tab-index="2" span-type="${spanType}" audio="" width="525px" height="80px" onEntry="this.text-align='center'; this.justify-content='center'; this.flex-shrink='0'; this.fontWeight='600';" font="'Baloo Bhai 2'" font-size="96px" z="1" font-color="black" color=" #000000" string="${text}" visible="true" y="landscape., portrait." bg-color="transparent">
73
+ </lido-text>
74
+ </lido-cell>
74
75
  </lido-image>
75
76
 
76
77
  <lido-image visible="true" src="${bottomDisplayImage}" z="1" width="landscape.574px, portrait.760px" height="landscape.574px, portrait.760px" onEntry="this.flex-shrink='0';" altText="{image1}">
@@ -1,5 +1,6 @@
1
1
  import { ActivityChangeKey, ActivityEndKey, ElementClickKey, ElementDropKey, GameCompletedKey, GameExitKey, LessonEndKey, NextContainerKey, PrevContainerKey } from "./constants";
2
2
  function dispatchCustomEvent(eventName, detail) {
3
+ console.log("👍Event Name : ", eventName, "Detail : ", detail.toString());
3
4
  const event = new CustomEvent(eventName, { detail });
4
5
  window.dispatchEvent(event);
5
6
  }
@@ -105,6 +105,7 @@ export const initEventsForElement = async (element, type) => {
105
105
  export const executeActions = async (actionsString, thisElement, element) => {
106
106
  var _a, _b, _c, _d, _e, _f, _g;
107
107
  const actions = parseActions(actionsString);
108
+ body.style.pointerEvents = 'none';
108
109
  for (let i = 0; i < actions.length; i++) {
109
110
  const action = actions[i];
110
111
  const queriedElement = document.querySelector(action.actor);
@@ -135,7 +136,7 @@ export const executeActions = async (actionsString, thisElement, element) => {
135
136
  const container = document.getElementById(LidoContainer);
136
137
  const containerScale = getElementScale(container);
137
138
  dragElement.style.transform = 'translate(0,0)';
138
- console.log("logg alinmatch");
139
+ console.log('logg alinmatch');
139
140
  const dropRect = dropElement.getBoundingClientRect();
140
141
  const dragRect = dragElement.getBoundingClientRect();
141
142
  const dropCenterX = dropRect.left + dropRect.width / 2;
@@ -189,7 +190,7 @@ export const executeActions = async (actionsString, thisElement, element) => {
189
190
  if (container.getAttribute('is-continue-on-correct') !== 'true') {
190
191
  targetElement.style.pointerEvents = 'none';
191
192
  }
192
- validateObjectiveStatus();
193
+ await validateObjectiveStatus();
193
194
  break;
194
195
  }
195
196
  case 'prevBtn': {
@@ -343,7 +344,9 @@ export const executeActions = async (actionsString, thisElement, element) => {
343
344
  break;
344
345
  }
345
346
  case 'updateCalculatorAnswer': {
346
- updateCalculatorAnswer();
347
+ if (targetElement) {
348
+ updateCalculatorAnswer(targetElement);
349
+ }
347
350
  break;
348
351
  }
349
352
  default: {
@@ -353,6 +356,7 @@ export const executeActions = async (actionsString, thisElement, element) => {
353
356
  }
354
357
  }
355
358
  }
359
+ body.style.pointerEvents = 'auto';
356
360
  };
357
361
  const afterDropDragHandling = (dragElement, dropElement) => {
358
362
  const container = document.getElementById(LidoContainer);
@@ -571,6 +575,8 @@ export async function onActivityComplete(dragElement, dropElement) {
571
575
  await executeActions("this.alignMatch='true'", dropElement, dragElement);
572
576
  if (dragElement && dropElement) {
573
577
  const isCorrect = dropElement['value'].toLowerCase().includes(dragElement['value'].toLowerCase());
578
+ // storing each activity score based on isCorrect for (all drag-drop events)
579
+ storingEachActivityScore(isCorrect);
574
580
  if (isCorrect) {
575
581
  const onCorrect = dropElement.getAttribute('onCorrect');
576
582
  if (onCorrect) {
@@ -669,6 +675,7 @@ export const handleShowCheck = () => {
669
675
  validateObjectiveStatus();
670
676
  }
671
677
  };
678
+ const body = document.body;
672
679
  let res;
673
680
  export const validateObjectiveStatus = async () => {
674
681
  var _a, _b;
@@ -733,6 +740,7 @@ export const validateObjectiveStatus = async () => {
733
740
  if (!isContinueOnCorrect) {
734
741
  triggerNextContainer();
735
742
  await calculateScore();
743
+ triggerNextContainer();
736
744
  }
737
745
  else {
738
746
  const onInCorrect = container.getAttribute('onInCorrect');
@@ -755,16 +763,16 @@ export const triggerPrevcontainer = () => {
755
763
  export function convertUrlToRelative(url) {
756
764
  const container = document.getElementById(LidoContainer);
757
765
  const baseUrl = container.getAttribute('baseUrl');
758
- if ((url === null || url === void 0 ? void 0 : url.startsWith('http')) || (url === null || url === void 0 ? void 0 : url.startsWith('blob'))) {
766
+ if ((url === null || url === void 0 ? void 0 : url.startsWith('http')) || (url === null || url === void 0 ? void 0 : url.startsWith('blob')) || (url === null || url === void 0 ? void 0 : url.startsWith('data'))) {
759
767
  return url;
760
768
  }
761
- else if (baseUrl) {
762
- const newUrl = !url.startsWith('/') ? url : url.substring(1);
763
- return baseUrl + (baseUrl.endsWith('/') ? newUrl : '/' + newUrl);
764
- }
765
- else {
766
- return getAssetPath(url);
769
+ if (baseUrl) {
770
+ const newUrl = url.startsWith('/') ? url.slice(1) : url;
771
+ if (newUrl.startsWith(baseUrl.replace(/^\/+|\/+$/g, '')))
772
+ return newUrl;
773
+ return baseUrl.endsWith('/') ? baseUrl + newUrl : `${baseUrl}/${newUrl}`;
767
774
  }
775
+ return getAssetPath(url);
768
776
  }
769
777
  /**
770
778
  * Asynchronously speaks the given text using the browser's text-to-speech API.
@@ -1237,9 +1245,6 @@ export const SumTogetherAnimation = async (element, value) => {
1237
1245
  return;
1238
1246
  if (!value)
1239
1247
  return;
1240
- const container = document.getElementById(LidoContainer);
1241
- if (!container)
1242
- return;
1243
1248
  // Expecting structure: [_, TopRow, questionRow, optionRow, ...]
1244
1249
  const TopRow = Array.from(element.children)[1];
1245
1250
  const questionRow = Array.from(element.children)[2];
@@ -1383,15 +1388,13 @@ function placeElementInDropZone(dropElement, dragElement, orientation, dropAttr)
1383
1388
  dragElement.style.width = "auto";
1384
1389
  dragElement.style.height = "auto";
1385
1390
  }
1386
- export const updateCalculatorAnswer = () => {
1391
+ export const updateCalculatorAnswer = (el) => {
1387
1392
  const container = document.getElementById(LidoContainer);
1388
1393
  if (!container)
1389
1394
  return;
1390
1395
  const calci = document.querySelector('#lidoCalculator');
1391
1396
  if (!calci)
1392
1397
  return;
1393
- const answerText = container.querySelector('#answer');
1394
1398
  const value = calci.getAttribute('value');
1395
- console.log("😀😀😀😀😀😀😀", value);
1396
- answerText.setAttribute('string', value);
1399
+ el.setAttribute('string', value);
1397
1400
  };
@@ -0,0 +1,58 @@
1
+ import { NextContainerKey, SelectedValuesKey } from "../constants";
2
+ import { calculateScore, executeActions } from "../utils";
3
+ const tempVanishedValues = [];
4
+ export function dragDropAnimation(container, dragElement, dropElement) {
5
+ container.style.pointerEvents = "none";
6
+ setTimeout(() => {
7
+ var _a, _b, _c;
8
+ const div = document.createElement('div');
9
+ container.append(div);
10
+ div.classList.add('after-drop-popup-container');
11
+ dragElement.style.scale = `1`;
12
+ dropElement.style.scale = `1`;
13
+ const allDragElements = container.querySelectorAll('[type="drag"]');
14
+ const dragParents = Array.from(allDragElements).map(el => el.parentElement);
15
+ const allSameParent = dragParents.every(parent => parent === dragElement.parentElement);
16
+ const selectedValues = JSON.parse((_a = container.getAttribute(SelectedValuesKey)) !== null && _a !== void 0 ? _a : '[]');
17
+ const vanishedValue = (_b = dragElement.getAttribute('value')) !== null && _b !== void 0 ? _b : (_c = dragElement.textContent) === null || _c === void 0 ? void 0 : _c.trim();
18
+ if (vanishedValue) {
19
+ tempVanishedValues.push(vanishedValue);
20
+ }
21
+ // Remove from old parents
22
+ if (allSameParent) {
23
+ dragElement.remove();
24
+ dropElement.remove();
25
+ }
26
+ else {
27
+ dragElement.parentElement.parentElement.remove();
28
+ dropElement.parentElement.parentElement.remove();
29
+ }
30
+ // Add animation and popup classes
31
+ dragElement.classList.add('zoom-fade-in', 'after-drop-popup-drag-element');
32
+ dropElement.classList.add('zoom-fade-in', 'after-drop-popup-drop-element');
33
+ div.appendChild(dragElement);
34
+ div.appendChild(dropElement);
35
+ dropElement.classList.remove('empty');
36
+ setTimeout(() => {
37
+ dragElement.classList.remove('zoom-fade-in');
38
+ dropElement.classList.remove('zoom-fade-in');
39
+ dragElement.classList.add('zoom-fade-out');
40
+ dropElement.classList.add('zoom-fade-out');
41
+ setTimeout(() => {
42
+ div.remove();
43
+ container.style.pointerEvents = 'auto';
44
+ const objective = container.getAttribute('objective');
45
+ if (objective && tempVanishedValues.map(v => v.trim()).sort().join(',') === objective.split(',').map(v => v.trim()).sort().join(',')) {
46
+ (async () => {
47
+ // isCorrect=true;
48
+ const onCorrect = (container === null || container === void 0 ? void 0 : container.getAttribute('onCorrect')) || '';
49
+ await executeActions(onCorrect, container);
50
+ window.dispatchEvent(new CustomEvent(NextContainerKey));
51
+ calculateScore();
52
+ tempVanishedValues.length = 0;
53
+ })();
54
+ }
55
+ }, 800); // match animation duration
56
+ }, 2000); // stay for 2 seconds
57
+ }, 250);
58
+ }
@@ -88,7 +88,10 @@ export function addClickListenerForClickType(element) {
88
88
  dispatchClickEvent(element, isCorrect);
89
89
  if (isCorrect) {
90
90
  const onCorrect = element.getAttribute('onCorrect');
91
- // element.style.pointerEvents = 'none';
91
+ if (!(element.id && element.id.startsWith('key-button'))) {
92
+ element.style.pointerEvents = 'none';
93
+ }
94
+ document.body.style.pointerEvents = 'none';
92
95
  await executeActions(onCorrect, element);
93
96
  }
94
97
  else {
@@ -145,6 +148,7 @@ export function addClickListenerForClickType(element) {
145
148
  container.setAttribute(SelectedValuesKey, JSON.stringify(sortedValues));
146
149
  const isCorrect = objective.includes(element['value']);
147
150
  dispatchClickEvent(element, isCorrect);
151
+ AudioPlayer.getI().stop();
148
152
  if (isCorrect) {
149
153
  const onCorrect = element.getAttribute('onCorrect');
150
154
  await executeActions(onCorrect, element);