@betorigami/game-ui-shared 2.0.1 → 3.0.0

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 (31) hide show
  1. package/README.md +1 -1
  2. package/dist/components/shared/GameComponent.d.ts +1 -0
  3. package/dist/components/shared/GameProviderWrapper.d.ts +5 -4
  4. package/dist/components/shared/GenericAutobet/GenericAutobet.d.ts +1 -8
  5. package/dist/components/shared/context/slices/layout.context.d.ts +2 -1
  6. package/dist/index.d.ts +1 -2
  7. package/dist/index.mjs +1759 -1794
  8. package/dist/shared/constants.d.ts +1 -0
  9. package/dist/shared/container-queries.styles.d.ts +3 -0
  10. package/dist/translations/ar.json.d.ts +0 -5
  11. package/dist/translations/de.json.d.ts +0 -5
  12. package/dist/translations/en-soc.json.d.ts +0 -5
  13. package/dist/translations/en.json.d.ts +0 -5
  14. package/dist/translations/es.json.d.ts +0 -5
  15. package/dist/translations/fi.json.d.ts +0 -5
  16. package/dist/translations/fr.json.d.ts +0 -5
  17. package/dist/translations/hi.json.d.ts +0 -5
  18. package/dist/translations/id.json.d.ts +0 -5
  19. package/dist/translations/index.d.ts +0 -85
  20. package/dist/translations/ja.json.d.ts +0 -5
  21. package/dist/translations/ko.json.d.ts +0 -5
  22. package/dist/translations/pl.json.d.ts +0 -5
  23. package/dist/translations/pt.json.d.ts +0 -5
  24. package/dist/translations/ru.json.d.ts +0 -5
  25. package/dist/translations/tr.json.d.ts +0 -5
  26. package/dist/translations/vi.json.d.ts +0 -5
  27. package/dist/translations/zh.json.d.ts +0 -5
  28. package/dist/utils/game-layout-style.d.ts +2 -2
  29. package/package.json +1 -1
  30. package/dist/components/shared/GenericAutobet/context/autobet.context.d.ts +0 -13
  31. package/dist/components/shared/context/desktop-attribute.d.ts +0 -2
@@ -38,6 +38,7 @@ export declare enum Currency {
38
38
  SC = "SC"
39
39
  }
40
40
  export declare const DEFAULT_CURRENCY = Currency.USD;
41
+ export declare const DESKTOP_MIN_WIDTH = 768;
41
42
  export declare enum OrigamiGame {
42
43
  DICE = "DICE",
43
44
  MINES = "MINES",
@@ -0,0 +1,3 @@
1
+ export declare const gameLayoutContainer: import('lit').CSSResult;
2
+ export declare const desktopContainerQuery: import('lit').CSSResult;
3
+ export declare const mobileContainerQuery: import('lit').CSSResult;
@@ -19,11 +19,6 @@ declare const _default: {
19
19
  "autobet": {
20
20
  "configureAutobet": "تكوين Autobet",
21
21
  "games": "الألعاب",
22
- "games10": "10 ألعاب",
23
- "games100": "100 ألعاب",
24
- "games25": "25 ألعاب",
25
- "games5": "٥ ألعاب",
26
- "games50": "50 ألعاب",
27
22
  "increase": "زيادة",
28
23
  "infinite": "غير محدود",
29
24
  "onLoss": "عند الخسارة",
@@ -19,11 +19,6 @@ declare const _default: {
19
19
  "autobet": {
20
20
  "configureAutobet": "Autobet konfigurieren",
21
21
  "games": "Spiele",
22
- "games10": "10 Spiele",
23
- "games100": "100 Spiele",
24
- "games25": "25 Spiele",
25
- "games5": "5 Spiele",
26
- "games50": "50 Spiele",
27
22
  "increase": "Erhöhen",
28
23
  "infinite": "Unendlich",
29
24
  "onLoss": "Bei Verlust",
@@ -19,11 +19,6 @@ declare const _default: {
19
19
  "autobet": {
20
20
  "configureAutobet": "Configure Autoplay",
21
21
  "games": "Games",
22
- "games10": "10 Games",
23
- "games100": "100 Games",
24
- "games25": "25 Games",
25
- "games5": "5 Games",
26
- "games50": "50 Games",
27
22
  "increase": "Increase",
28
23
  "infinite": "Infinite",
29
24
  "onLoss": "On Loss",
@@ -20,11 +20,6 @@ declare const _default: {
20
20
  "autobet": {
21
21
  "configureAutobet": "Configure Autobet",
22
22
  "games": "Games",
23
- "games10": "10 Games",
24
- "games100": "100 Games",
25
- "games25": "25 Games",
26
- "games5": "5 Games",
27
- "games50": "50 Games",
28
23
  "increase": "Increase",
29
24
  "infinite": "Infinite",
30
25
  "onLoss": "On Loss",
@@ -19,11 +19,6 @@ declare const _default: {
19
19
  "autobet": {
20
20
  "configureAutobet": "Configurar Autobet",
21
21
  "games": "Juegos",
22
- "games10": "10 Juegos",
23
- "games100": "100 Juegos",
24
- "games25": "25 Juegos",
25
- "games5": "5 Juegos",
26
- "games50": "50 Juegos",
27
22
  "increase": "Aumentar",
28
23
  "infinite": "Infinito",
29
24
  "onLoss": "En pérdida",
@@ -19,11 +19,6 @@ declare const _default: {
19
19
  "autobet": {
20
20
  "configureAutobet": "Määritä Autobet",
21
21
  "games": "Pelit",
22
- "games10": "10 peliä",
23
- "games100": "100 peliä",
24
- "games25": "25 peliä",
25
- "games5": "5 peliä",
26
- "games50": "50 peliä",
27
22
  "increase": "Lisää",
28
23
  "infinite": "Ääretön",
29
24
  "onLoss": "Tappion sattuessa",
@@ -19,11 +19,6 @@ declare const _default: {
19
19
  "autobet": {
20
20
  "configureAutobet": "Configurer Autobet",
21
21
  "games": "Jeux",
22
- "games10": "10 Jeux",
23
- "games100": "100 Jeux",
24
- "games25": "25 Jeux",
25
- "games5": "5 Jeux",
26
- "games50": "50 Jeux",
27
22
  "increase": "Augmenter",
28
23
  "infinite": "Infini",
29
24
  "onLoss": "En cas de perte",
@@ -19,11 +19,6 @@ declare const _default: {
19
19
  "autobet": {
20
20
  "configureAutobet": "Autobet कॉन्फ़िगर करें",
21
21
  "games": "खेल",
22
- "games10": "10 खेल",
23
- "games100": "100 खेल",
24
- "games25": "25 खेल",
25
- "games5": "5 खेल",
26
- "games50": "50 खेल",
27
22
  "increase": "बढ़ाएँ",
28
23
  "infinite": "अनंत",
29
24
  "onLoss": "हानि पर",
@@ -19,11 +19,6 @@ declare const _default: {
19
19
  "autobet": {
20
20
  "configureAutobet": "Konfigurasi Autobet",
21
21
  "games": "Permainan",
22
- "games10": "10 Permainan",
23
- "games100": "100 Permainan",
24
- "games25": "25 Permainan",
25
- "games5": "5 Permainan",
26
- "games50": "50 Permainan",
27
22
  "increase": "Tingkatkan",
28
23
  "infinite": "Tak terbatas",
29
24
  "onLoss": "Saat Kalah",
@@ -30,11 +30,6 @@ export declare const translations: {
30
30
  autobet: {
31
31
  configureAutobet: string;
32
32
  games: string;
33
- games10: string;
34
- games100: string;
35
- games25: string;
36
- games5: string;
37
- games50: string;
38
33
  increase: string;
39
34
  infinite: string;
40
35
  onLoss: string;
@@ -441,11 +436,6 @@ export declare const translations: {
441
436
  autobet: {
442
437
  configureAutobet: string;
443
438
  games: string;
444
- games10: string;
445
- games100: string;
446
- games25: string;
447
- games5: string;
448
- games50: string;
449
439
  increase: string;
450
440
  infinite: string;
451
441
  onLoss: string;
@@ -853,11 +843,6 @@ export declare const translations: {
853
843
  autobet: {
854
844
  configureAutobet: string;
855
845
  games: string;
856
- games10: string;
857
- games100: string;
858
- games25: string;
859
- games5: string;
860
- games50: string;
861
846
  increase: string;
862
847
  infinite: string;
863
848
  onLoss: string;
@@ -1266,11 +1251,6 @@ export declare const translations: {
1266
1251
  autobet: {
1267
1252
  configureAutobet: string;
1268
1253
  games: string;
1269
- games10: string;
1270
- games100: string;
1271
- games25: string;
1272
- games5: string;
1273
- games50: string;
1274
1254
  increase: string;
1275
1255
  infinite: string;
1276
1256
  onLoss: string;
@@ -1677,11 +1657,6 @@ export declare const translations: {
1677
1657
  autobet: {
1678
1658
  configureAutobet: string;
1679
1659
  games: string;
1680
- games10: string;
1681
- games100: string;
1682
- games25: string;
1683
- games5: string;
1684
- games50: string;
1685
1660
  increase: string;
1686
1661
  infinite: string;
1687
1662
  onLoss: string;
@@ -2088,11 +2063,6 @@ export declare const translations: {
2088
2063
  autobet: {
2089
2064
  configureAutobet: string;
2090
2065
  games: string;
2091
- games10: string;
2092
- games100: string;
2093
- games25: string;
2094
- games5: string;
2095
- games50: string;
2096
2066
  increase: string;
2097
2067
  infinite: string;
2098
2068
  onLoss: string;
@@ -2499,11 +2469,6 @@ export declare const translations: {
2499
2469
  autobet: {
2500
2470
  configureAutobet: string;
2501
2471
  games: string;
2502
- games10: string;
2503
- games100: string;
2504
- games25: string;
2505
- games5: string;
2506
- games50: string;
2507
2472
  increase: string;
2508
2473
  infinite: string;
2509
2474
  onLoss: string;
@@ -2910,11 +2875,6 @@ export declare const translations: {
2910
2875
  autobet: {
2911
2876
  configureAutobet: string;
2912
2877
  games: string;
2913
- games10: string;
2914
- games100: string;
2915
- games25: string;
2916
- games5: string;
2917
- games50: string;
2918
2878
  increase: string;
2919
2879
  infinite: string;
2920
2880
  onLoss: string;
@@ -3321,11 +3281,6 @@ export declare const translations: {
3321
3281
  autobet: {
3322
3282
  configureAutobet: string;
3323
3283
  games: string;
3324
- games10: string;
3325
- games100: string;
3326
- games25: string;
3327
- games5: string;
3328
- games50: string;
3329
3284
  increase: string;
3330
3285
  infinite: string;
3331
3286
  onLoss: string;
@@ -3732,11 +3687,6 @@ export declare const translations: {
3732
3687
  autobet: {
3733
3688
  configureAutobet: string;
3734
3689
  games: string;
3735
- games10: string;
3736
- games100: string;
3737
- games25: string;
3738
- games5: string;
3739
- games50: string;
3740
3690
  increase: string;
3741
3691
  infinite: string;
3742
3692
  onLoss: string;
@@ -4143,11 +4093,6 @@ export declare const translations: {
4143
4093
  autobet: {
4144
4094
  configureAutobet: string;
4145
4095
  games: string;
4146
- games10: string;
4147
- games100: string;
4148
- games25: string;
4149
- games5: string;
4150
- games50: string;
4151
4096
  increase: string;
4152
4097
  infinite: string;
4153
4098
  onLoss: string;
@@ -4554,11 +4499,6 @@ export declare const translations: {
4554
4499
  autobet: {
4555
4500
  configureAutobet: string;
4556
4501
  games: string;
4557
- games10: string;
4558
- games100: string;
4559
- games25: string;
4560
- games5: string;
4561
- games50: string;
4562
4502
  increase: string;
4563
4503
  infinite: string;
4564
4504
  onLoss: string;
@@ -4965,11 +4905,6 @@ export declare const translations: {
4965
4905
  autobet: {
4966
4906
  configureAutobet: string;
4967
4907
  games: string;
4968
- games10: string;
4969
- games100: string;
4970
- games25: string;
4971
- games5: string;
4972
- games50: string;
4973
4908
  increase: string;
4974
4909
  infinite: string;
4975
4910
  onLoss: string;
@@ -5376,11 +5311,6 @@ export declare const translations: {
5376
5311
  autobet: {
5377
5312
  configureAutobet: string;
5378
5313
  games: string;
5379
- games10: string;
5380
- games100: string;
5381
- games25: string;
5382
- games5: string;
5383
- games50: string;
5384
5314
  increase: string;
5385
5315
  infinite: string;
5386
5316
  onLoss: string;
@@ -5787,11 +5717,6 @@ export declare const translations: {
5787
5717
  autobet: {
5788
5718
  configureAutobet: string;
5789
5719
  games: string;
5790
- games10: string;
5791
- games100: string;
5792
- games25: string;
5793
- games5: string;
5794
- games50: string;
5795
5720
  increase: string;
5796
5721
  infinite: string;
5797
5722
  onLoss: string;
@@ -6198,11 +6123,6 @@ export declare const translations: {
6198
6123
  autobet: {
6199
6124
  configureAutobet: string;
6200
6125
  games: string;
6201
- games10: string;
6202
- games100: string;
6203
- games25: string;
6204
- games5: string;
6205
- games50: string;
6206
6126
  increase: string;
6207
6127
  infinite: string;
6208
6128
  onLoss: string;
@@ -6609,11 +6529,6 @@ export declare const translations: {
6609
6529
  autobet: {
6610
6530
  configureAutobet: string;
6611
6531
  games: string;
6612
- games10: string;
6613
- games100: string;
6614
- games25: string;
6615
- games5: string;
6616
- games50: string;
6617
6532
  increase: string;
6618
6533
  infinite: string;
6619
6534
  onLoss: string;
@@ -19,11 +19,6 @@ declare const _default: {
19
19
  "autobet": {
20
20
  "configureAutobet": "Autobetを設定",
21
21
  "games": "ゲーム",
22
- "games10": "10種類のゲーム",
23
- "games100": "100ゲーム",
24
- "games25": "25種類のゲーム",
25
- "games5": "5つのゲーム",
26
- "games50": "50ゲーム",
27
22
  "increase": "増加",
28
23
  "infinite": "無限",
29
24
  "onLoss": "敗北時",
@@ -19,11 +19,6 @@ declare const _default: {
19
19
  "autobet": {
20
20
  "configureAutobet": "Autobet 구성",
21
21
  "games": "게임",
22
- "games10": "10 게임",
23
- "games100": "100 게임",
24
- "games25": "25 게임",
25
- "games5": "5개 게임",
26
- "games50": "50 게임",
27
22
  "increase": "증가",
28
23
  "infinite": "무한",
29
24
  "onLoss": "패배 시",
@@ -19,11 +19,6 @@ declare const _default: {
19
19
  "autobet": {
20
20
  "configureAutobet": "Skonfiguruj Autobet",
21
21
  "games": "Gry",
22
- "games10": "10 Gier",
23
- "games100": "100 Gier",
24
- "games25": "25 Gier",
25
- "games5": "5 Gier",
26
- "games50": "50 Gier",
27
22
  "increase": "Zwiększ",
28
23
  "infinite": "Nieskończony",
29
24
  "onLoss": "Przy przegranej",
@@ -19,11 +19,6 @@ declare const _default: {
19
19
  "autobet": {
20
20
  "configureAutobet": "Configurar Autobet",
21
21
  "games": "Jogos",
22
- "games10": "10 Jogos",
23
- "games100": "100 Jogos",
24
- "games25": "25 Jogos",
25
- "games5": "5 Jogos",
26
- "games50": "50 Jogos",
27
22
  "increase": "Aumentar",
28
23
  "infinite": "Infinito",
29
24
  "onLoss": "Em caso de perda",
@@ -19,11 +19,6 @@ declare const _default: {
19
19
  "autobet": {
20
20
  "configureAutobet": "Настроить Autobet",
21
21
  "games": "Игры",
22
- "games10": "10 игр",
23
- "games100": "100 игр",
24
- "games25": "25 игр",
25
- "games5": "5 игр",
26
- "games50": "50 игр",
27
22
  "increase": "Увеличить",
28
23
  "infinite": "Бесконечный",
29
24
  "onLoss": "При проигрыше",
@@ -19,11 +19,6 @@ declare const _default: {
19
19
  "autobet": {
20
20
  "configureAutobet": "Autobet'i yapılandır",
21
21
  "games": "Oyunlar",
22
- "games10": "10 Oyun",
23
- "games100": "100 Oyun",
24
- "games25": "25 Oyun",
25
- "games5": "5 Oyun",
26
- "games50": "50 Oyun",
27
22
  "increase": "Artır",
28
23
  "infinite": "Sonsuz",
29
24
  "onLoss": "Kaybedince",
@@ -19,11 +19,6 @@ declare const _default: {
19
19
  "autobet": {
20
20
  "configureAutobet": "Cấu hình Autobet",
21
21
  "games": "Trò chơi",
22
- "games10": "10 Trò chơi",
23
- "games100": "100 Trò chơi",
24
- "games25": "25 Trò chơi",
25
- "games5": "5 Trò chơi",
26
- "games50": "50 Trò chơi",
27
22
  "increase": "Tăng",
28
23
  "infinite": "Vô hạn",
29
24
  "onLoss": "Khi Thua",
@@ -19,11 +19,6 @@ declare const _default: {
19
19
  "autobet": {
20
20
  "configureAutobet": "配置 Autobet",
21
21
  "games": "游戏",
22
- "games10": "10款游戏",
23
- "games100": "100款游戏",
24
- "games25": "25款游戏",
25
- "games5": "5款游戏",
26
- "games50": "50款游戏",
27
22
  "increase": "增加",
28
23
  "infinite": "无限",
29
24
  "onLoss": "亏损时",
@@ -1,7 +1,7 @@
1
1
  import { LayoutContextType } from '../components/shared/context/slices/layout.context';
2
2
  /**
3
- * Calculates the game layout style based on viewport dimensions and the layout context
4
- * @param layout - The layout context containing the scale and isDesktop properties
3
+ * Calculates the game layout style based on the layout context
4
+ * @param layout - The layout context containing the client size, scale and isDesktop properties
5
5
  * @returns The calculated CSS style string for the game layout
6
6
  */
7
7
  export declare function calculateGameLayoutStyle(layout: LayoutContextType): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betorigami/game-ui-shared",
3
- "version": "2.0.1",
3
+ "version": "3.0.0",
4
4
  "author": "",
5
5
  "license": "UNLICENSED",
6
6
  "description": "The Lit components, controllers, translations and wire types shared by every Origami game UI",
@@ -1,13 +0,0 @@
1
- import { Language } from '../../../../translations';
2
- import { SelectOption } from '../../Select/Select';
3
- export interface AutobetContextType {
4
- numberOfBets: string;
5
- updateNumberOfBets: (numberOfBets: string) => void;
6
- }
7
- export declare const getAutobetGamesOptions: (language?: Language) => SelectOption[];
8
- export declare const autobetGamesOptions: SelectOption[];
9
- export declare const defaultNumberOfBetsValue: string;
10
- export declare const autobetContext: {
11
- __context__: AutobetContextType;
12
- };
13
- export declare const defaultAutobetContext: AutobetContextType;
@@ -1,2 +0,0 @@
1
- import { ReactiveElement } from 'lit';
2
- export declare const desktopAttribute: (target: typeof ReactiveElement) => void;