lido-player 0.0.2-alpha-60-dev → 0.0.2-alpha-62

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 (110) hide show
  1. package/dist/cjs/index.cjs.js +1 -1
  2. package/dist/cjs/lido-avatar_22.cjs.entry.js +70 -28
  3. package/dist/cjs/lido-player.cjs.js +1 -1
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/{utils-28faa755.js → utils-b13cba29.js} +130 -64
  6. package/dist/collection/components/container/lido-container.js +21 -18
  7. package/dist/collection/components/home/lido-home.js +4 -4
  8. package/dist/collection/components/root/lido-root.js +5 -5
  9. package/dist/collection/components/text/lido-text.js +3 -2
  10. package/dist/collection/stories/Templates/balancing/balancing.stories.js +1 -1
  11. package/dist/collection/stories/Templates/imageMatch/imageMatch.stories.js +16 -15
  12. package/dist/collection/stories/Templates/numberIdentification/numberIdentificationimageTotext.stories.js +9 -7
  13. package/dist/collection/stories/Templates/numberIdentification/numberIdentificationtextTotext.stories.js +8 -6
  14. package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaMultiOption.stories.js +4 -3
  15. package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaSumTogether.stories.js +3 -2
  16. package/dist/collection/stories/Templates/palEgmaPatternMatching/palEgmaPatternMatching.stories.js +32 -19
  17. package/dist/collection/stories/Templates/palEgmaWordProblem/palEgmaWordProblem.stories.js +5 -5
  18. package/dist/collection/stories/Templates/palEgraInventedSpelling/pal_egra_invented_spelling_schema.stories.js +10 -7
  19. package/dist/collection/stories/Templates/palEgraMCQWithImage/palEgraMCQWithImage.stories.js +11 -8
  20. package/dist/collection/stories/Templates/palEgraOptionWithAudio/palEgraOptionWithAudio.stories.js +18 -14
  21. package/dist/collection/stories/Templates/palEgraStoryMaking/pal_egra_story_making.stories.js +9 -9
  22. package/dist/collection/stories/Templates/palEgraTemplate1/palEgraLetterIdentification.stories.js +17 -10
  23. package/dist/collection/stories/Templates/palEgraWordMatch/palEgraWordMatch.stories.js +98 -0
  24. package/dist/collection/stories/Templates/palEgra_OddOneOut/palEgra_oddOneOut.stories.js +8 -8
  25. package/dist/collection/stories/Templates/palEgra_arrange_pictures/palEgra_arrange_pictures.stories.js +16 -19
  26. package/dist/collection/stories/Templates/palEgra_build_word/palEgra_build_word.stories.js +21 -18
  27. package/dist/collection/stories/Templates/palEgra_word_formation/palEgra_WordFormation.stories.js +26 -19
  28. package/dist/collection/stories/Templates/palStorytale/palStorytale.stories.js +9 -9
  29. package/dist/collection/stories/Templates/pictureClues/pictureClues.stories.js +9 -9
  30. package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch1.stories.js +15 -15
  31. package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch2.stories.js +11 -11
  32. package/dist/collection/stories/Templates/sentenceMatch/sentenceMatch.stories.js +63 -0
  33. package/dist/collection/stories/Templates/substraction/substractionWithimg.stories.js +7 -7
  34. package/dist/collection/stories/Templates/substraction/substractionWithoutImg.stories.js +13 -13
  35. package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithimg.stories.js +7 -7
  36. package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithoutimg.stories.js +1 -1
  37. package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +6 -5
  38. package/dist/collection/utils/audioPlayer.js +10 -0
  39. package/dist/collection/utils/customEvents.js +2 -1
  40. package/dist/collection/utils/i18n.js +2 -0
  41. package/dist/collection/utils/utils.js +8 -12
  42. package/dist/collection/utils/utilsHandlers/clickHandler.js +20 -14
  43. package/dist/collection/utils/utilsHandlers/dragDropHandler.js +26 -52
  44. package/dist/collection/utils/utilsHandlers/lidoBalanceHandler.js +4 -5
  45. package/dist/collection/utils/utilsHandlers/timer.js +53 -0
  46. package/dist/components/index.js +1 -1
  47. package/dist/components/lido-avatar.js +1 -1
  48. package/dist/components/lido-balance.js +1 -1
  49. package/dist/components/lido-calculator.js +1 -1
  50. package/dist/components/lido-canvas.js +1 -1
  51. package/dist/components/lido-cell.js +1 -1
  52. package/dist/components/lido-col.js +1 -1
  53. package/dist/components/lido-container.js +1 -1
  54. package/dist/components/lido-flash-card.js +1 -1
  55. package/dist/components/lido-float.js +1 -1
  56. package/dist/components/lido-home.js +1 -1
  57. package/dist/components/lido-image.js +1 -1
  58. package/dist/components/lido-keyboard.js +1 -1
  59. package/dist/components/lido-math-matrix.js +1 -1
  60. package/dist/components/lido-pos.js +1 -1
  61. package/dist/components/lido-random.js +1 -1
  62. package/dist/components/lido-root.js +27 -27
  63. package/dist/components/lido-row.js +1 -1
  64. package/dist/components/lido-shape.js +1 -1
  65. package/dist/components/lido-slide-fill.js +1 -1
  66. package/dist/components/lido-text.js +1 -1
  67. package/dist/components/lido-trace.js +1 -1
  68. package/dist/components/lido-wrap.js +1 -1
  69. package/dist/components/{p-74c270d2.js → p-21938b85.js} +2 -2
  70. package/dist/components/{p-a182c9a2.js → p-39767aae.js} +1 -1
  71. package/dist/components/{p-3acd9a2e.js → p-3db5a756.js} +1 -1
  72. package/dist/components/{p-93acfbb2.js → p-40dd6fa3.js} +1 -1
  73. package/dist/components/{p-5e7c6afa.js → p-552f581f.js} +1 -1
  74. package/dist/components/{p-37c86a94.js → p-5a3a7f41.js} +47 -7
  75. package/dist/components/{p-b151457d.js → p-5da9c4a0.js} +22 -20
  76. package/dist/components/{p-3acada8c.js → p-64b85ae6.js} +1 -1
  77. package/dist/components/{p-4d01394c.js → p-6c1ea24d.js} +1 -1
  78. package/dist/components/{p-b867548e.js → p-7256917d.js} +1 -1
  79. package/dist/components/{p-8a32f7cb.js → p-777293d6.js} +1 -1
  80. package/dist/components/{p-8c0667eb.js → p-85eaa0b7.js} +1 -1
  81. package/dist/components/{p-8f082c62.js → p-8f174468.js} +1 -1
  82. package/dist/components/{p-235091a1.js → p-bd09bc5b.js} +130 -65
  83. package/dist/components/{p-32c89979.js → p-bf0c1e81.js} +1 -1
  84. package/dist/components/{p-c90d92db.js → p-cdb5b0e6.js} +1 -1
  85. package/dist/components/{p-db2a05f5.js → p-d0d890d8.js} +3 -3
  86. package/dist/components/{p-57400ebc.js → p-d2d6e641.js} +1 -1
  87. package/dist/components/{p-354f7b19.js → p-da85322a.js} +2 -2
  88. package/dist/components/{p-16604098.js → p-e42ddea5.js} +1 -1
  89. package/dist/components/{p-06cecca5.js → p-f4c980f0.js} +1 -1
  90. package/dist/components/{p-de45dcab.js → p-fb9e274c.js} +25 -25
  91. package/dist/esm/index.js +1 -1
  92. package/dist/esm/lido-avatar_22.entry.js +70 -28
  93. package/dist/esm/lido-player.js +1 -1
  94. package/dist/esm/loader.js +1 -1
  95. package/dist/esm/{utils-2edeb213.js → utils-b7ed15c2.js} +130 -65
  96. package/dist/lido-player/index.esm.js +1 -1
  97. package/dist/lido-player/lido-player.esm.js +1 -1
  98. package/dist/lido-player/{p-add7f36e.js → p-1557f3df.js} +2 -2
  99. package/dist/lido-player/p-7e79ea93.entry.js +1 -0
  100. package/dist/types/components/container/lido-container.d.ts +1 -1
  101. package/dist/types/components/home/lido-home.d.ts +1 -1
  102. package/dist/types/components/root/lido-root.d.ts +1 -1
  103. package/dist/types/components.d.ts +24 -24
  104. package/dist/types/stories/Templates/palEgraWordMatch/palEgraWordMatch.stories.d.ts +4 -0
  105. package/dist/types/stories/Templates/sentenceMatch/sentenceMatch.stories.d.ts +4 -0
  106. package/dist/types/utils/audioPlayer.d.ts +1 -0
  107. package/dist/types/utils/constants.d.ts +4 -5
  108. package/dist/types/utils/utilsHandlers/timer.d.ts +14 -0
  109. package/package.json +1 -1
  110. package/dist/lido-player/p-280e3d34.entry.js +0 -1
@@ -7,7 +7,7 @@
7
7
  */
8
8
  export declare class LidoContainer {
9
9
  /** Language to apply to all texts */
10
- locale: string;
10
+ Lang: string;
11
11
  /**
12
12
  * Controls whether the drop zone displays a border; true shows the border, false hides it.
13
13
  */
@@ -12,7 +12,7 @@ export declare class LidoHome {
12
12
  /** Array of active container indexes to be rendered */
13
13
  activeContainerIndexes: number[];
14
14
  /** Language to apply to all texts */
15
- locale?: string;
15
+ Lang?: string;
16
16
  /**
17
17
  * XML data passed to the component, which is parsed and used to render various containers.
18
18
  */
@@ -7,7 +7,7 @@
7
7
  */
8
8
  export declare class LidoRoot {
9
9
  /** Language to apply to all texts */
10
- locale?: string;
10
+ Lang?: string;
11
11
  /**
12
12
  * Prop to hold the XML file path or URL. This can be a relative path or an external URL.
13
13
  */
@@ -492,6 +492,10 @@ export namespace Components {
492
492
  * such as dimensions, positioning, visibility, and custom event handlers.
493
493
  */
494
494
  interface LidoContainer {
495
+ /**
496
+ * Language to apply to all texts
497
+ */
498
+ "Lang": string;
495
499
  /**
496
500
  * Enables appending the dragged element to the drop target after all correct drops are completed.
497
501
  */
@@ -556,10 +560,6 @@ export namespace Components {
556
560
  * Specifies whether the activity should continue automatically upon a correct response. Expected values: "true" or "false".
557
561
  */
558
562
  "isContinueOnCorrect": boolean;
559
- /**
560
- * Language to apply to all texts
561
- */
562
- "locale": string;
563
563
  /**
564
564
  * CSS margin value applied to each child element inside the container. Accepts standard CSS margin formats (e.g., '10px', '5px 10px', etc.).
565
565
  */
@@ -808,6 +808,10 @@ export namespace Components {
808
808
  * and displays progress indicators (dots) for each container.
809
809
  */
810
810
  interface LidoHome {
811
+ /**
812
+ * Language to apply to all texts
813
+ */
814
+ "Lang"?: string;
811
815
  /**
812
816
  * Array of active container indexes to be rendered
813
817
  */
@@ -837,10 +841,6 @@ export namespace Components {
837
841
  * Initial index of the container being displayed.
838
842
  */
839
843
  "initialIndex": number;
840
- /**
841
- * Language to apply to all texts
842
- */
843
- "locale"?: string;
844
844
  /**
845
845
  * Custom URL for the Next button icon. Falls back to the default icon if not provided or invalid.
846
846
  */
@@ -1386,6 +1386,10 @@ export namespace Components {
1386
1386
  * The XML path can be configured via a prop.
1387
1387
  */
1388
1388
  interface LidoRoot {
1389
+ /**
1390
+ * Language to apply to all texts
1391
+ */
1392
+ "Lang"?: string;
1389
1393
  /**
1390
1394
  * Base URL for the containers.
1391
1395
  */
@@ -1402,10 +1406,6 @@ export namespace Components {
1402
1406
  * Initial index of the container being displayed.
1403
1407
  */
1404
1408
  "initialIndex": number;
1405
- /**
1406
- * Language to apply to all texts
1407
- */
1408
- "locale"?: string;
1409
1409
  /**
1410
1410
  * CSS margin value applied to each child element inside the container. Accepts standard CSS margin formats (e.g., '10px', '5px 10px', etc.).
1411
1411
  */
@@ -2826,6 +2826,10 @@ declare namespace LocalJSX {
2826
2826
  * such as dimensions, positioning, visibility, and custom event handlers.
2827
2827
  */
2828
2828
  interface LidoContainer {
2829
+ /**
2830
+ * Language to apply to all texts
2831
+ */
2832
+ "Lang"?: string;
2829
2833
  /**
2830
2834
  * Enables appending the dragged element to the drop target after all correct drops are completed.
2831
2835
  */
@@ -2890,10 +2894,6 @@ declare namespace LocalJSX {
2890
2894
  * Specifies whether the activity should continue automatically upon a correct response. Expected values: "true" or "false".
2891
2895
  */
2892
2896
  "isContinueOnCorrect"?: boolean;
2893
- /**
2894
- * Language to apply to all texts
2895
- */
2896
- "locale"?: string;
2897
2897
  /**
2898
2898
  * CSS margin value applied to each child element inside the container. Accepts standard CSS margin formats (e.g., '10px', '5px 10px', etc.).
2899
2899
  */
@@ -3142,6 +3142,10 @@ declare namespace LocalJSX {
3142
3142
  * and displays progress indicators (dots) for each container.
3143
3143
  */
3144
3144
  interface LidoHome {
3145
+ /**
3146
+ * Language to apply to all texts
3147
+ */
3148
+ "Lang"?: string;
3145
3149
  /**
3146
3150
  * Array of active container indexes to be rendered
3147
3151
  */
@@ -3171,10 +3175,6 @@ declare namespace LocalJSX {
3171
3175
  * Initial index of the container being displayed.
3172
3176
  */
3173
3177
  "initialIndex"?: number;
3174
- /**
3175
- * Language to apply to all texts
3176
- */
3177
- "locale"?: string;
3178
3178
  /**
3179
3179
  * Custom URL for the Next button icon. Falls back to the default icon if not provided or invalid.
3180
3180
  */
@@ -3720,6 +3720,10 @@ declare namespace LocalJSX {
3720
3720
  * The XML path can be configured via a prop.
3721
3721
  */
3722
3722
  interface LidoRoot {
3723
+ /**
3724
+ * Language to apply to all texts
3725
+ */
3726
+ "Lang"?: string;
3723
3727
  /**
3724
3728
  * Base URL for the containers.
3725
3729
  */
@@ -3736,10 +3740,6 @@ declare namespace LocalJSX {
3736
3740
  * Initial index of the container being displayed.
3737
3741
  */
3738
3742
  "initialIndex"?: number;
3739
- /**
3740
- * Language to apply to all texts
3741
- */
3742
- "locale"?: string;
3743
3743
  /**
3744
3744
  * CSS margin value applied to each child element inside the container. Accepts standard CSS margin formats (e.g., '10px', '5px 10px', etc.).
3745
3745
  */
@@ -0,0 +1,4 @@
1
+ import { Meta, StoryObj } from '@storybook/web-components';
2
+ declare const meta: Meta;
3
+ export default meta;
4
+ export declare const palEgraWordMatch: StoryObj;
@@ -0,0 +1,4 @@
1
+ import { Meta, StoryObj } from '@storybook/web-components';
2
+ declare const meta: Meta;
3
+ export default meta;
4
+ export declare const sentenceMatch: StoryObj;
@@ -4,6 +4,7 @@ export declare class AudioPlayer {
4
4
  private constructor();
5
5
  static getI(): AudioPlayer;
6
6
  stop(): void;
7
+ private handleUserClick;
7
8
  play(targetElement: HTMLElement): Promise<void>;
8
9
  private registerGlobalStopEvents;
9
10
  destroy(): void;
@@ -49,9 +49,8 @@ export declare const nextUrl = "https://aeakbcdznktpsbrfsgys.supabase.co/storage
49
49
  export declare const speakUrl = "https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Navbar-buttons/audio.png";
50
50
  export declare const fingerUrl = "https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/trace/Tracing-hand.svg";
51
51
  export declare const enum templateAudio {
52
- dragAndDrop = "Match the items by dragging and dropping them into the correct places.",
53
- mcq = "Select the correct answer from the options provided.",
54
- tracing = "Trace the shape by following the outline carefully.",
55
- flashcards = "Review the flashcards to reinforce your learning.",
56
- hello = "hello"
52
+ dragAndDrop = "instruction.dragAndDrop",
53
+ mcq = "instruction.mcq",
54
+ tracing = "instruction.tracing",
55
+ flashcards = "instruction.flashcards"
57
56
  }
@@ -0,0 +1,14 @@
1
+ export declare class Timer {
2
+ private static instance;
3
+ private startTime;
4
+ private elapsedTime;
5
+ private intervalId;
6
+ private onTick?;
7
+ private constructor();
8
+ static getI(onTick?: (elapsed: number) => void): Timer;
9
+ start(): void;
10
+ pause(): void;
11
+ resume(): void;
12
+ stop(): void;
13
+ getElapsed(): number;
14
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lido-player",
3
- "version": "0.0.2-alpha-60-dev",
3
+ "version": "0.0.2-alpha-62",
4
4
  "description": "Stencil Component For Lido Player",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",