@truelab/truelogic-plinko 0.0.2 → 0.0.3

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 (67) hide show
  1. package/dist/100.min.js +1 -1
  2. package/dist/103.min.js +1 -1
  3. package/dist/113.min.js +1 -1
  4. package/dist/172.min.js +1 -1
  5. package/dist/180.min.js +1 -1
  6. package/dist/201.min.js +1 -1
  7. package/dist/203.min.js +1 -1
  8. package/dist/266.min.js +1 -1
  9. package/dist/282.min.js +1 -1
  10. package/dist/383.min.js +1 -1
  11. package/dist/4.min.js +1 -1
  12. package/dist/423.min.js +1 -1
  13. package/dist/546.min.js +1 -1
  14. package/dist/585.min.js +1 -1
  15. package/dist/59.min.js +1 -1
  16. package/dist/683.min.js +1 -1
  17. package/dist/699.min.js +1 -1
  18. package/dist/728.min.js +1 -1
  19. package/dist/756.min.js +1 -1
  20. package/dist/761.min.js +1 -1
  21. package/dist/80.min.js +1 -1
  22. package/dist/90.min.js +1 -1
  23. package/dist/929.min.js +1 -1
  24. package/dist/937.min.js +1 -1
  25. package/dist/988.min.js +1 -1
  26. package/dist/assets/locales/cs.json +32 -16
  27. package/dist/assets/locales/de.json +32 -16
  28. package/dist/assets/locales/en.json +32 -16
  29. package/dist/assets/locales/es.json +31 -15
  30. package/dist/assets/locales/fi.json +31 -15
  31. package/dist/assets/locales/fr.json +32 -16
  32. package/dist/assets/locales/hi.json +46 -30
  33. package/dist/assets/locales/hr.json +31 -15
  34. package/dist/assets/locales/id.json +31 -15
  35. package/dist/assets/locales/it.json +31 -15
  36. package/dist/assets/locales/ja.json +32 -16
  37. package/dist/assets/locales/kk.json +31 -15
  38. package/dist/assets/locales/ko.json +31 -15
  39. package/dist/assets/locales/nl.json +31 -15
  40. package/dist/assets/locales/no.json +31 -15
  41. package/dist/assets/locales/pl.json +31 -15
  42. package/dist/assets/locales/pt.json +32 -16
  43. package/dist/assets/locales/ru.json +33 -17
  44. package/dist/assets/locales/sr.json +31 -15
  45. package/dist/assets/locales/sv.json +31 -15
  46. package/dist/assets/locales/th.json +31 -15
  47. package/dist/assets/locales/tr.json +34 -18
  48. package/dist/assets/locales/uk.json +31 -15
  49. package/dist/assets/locales/vi.json +31 -15
  50. package/dist/assets/locales/zh.json +33 -17
  51. package/dist/truelogic.min.css +1 -1
  52. package/dist/truelogic.min.js +1 -1
  53. package/dist/types/src/entities/freeRounds/index.d.ts +1 -1
  54. package/dist/types/src/entities/freeRounds/model/freeRoundsSlice.d.ts +5 -0
  55. package/dist/types/src/entities/menu/ui/MenuSwitchItem.d.ts +2 -2
  56. package/dist/types/src/entities/modals/ui/ModalMenuItemCard.d.ts +2 -1
  57. package/dist/types/src/features/panel/ui/PanelBonus.d.ts +2 -1
  58. package/dist/types/src/features/play/model/initRound.d.ts +2 -1
  59. package/dist/types/src/features/riskSelector/model/constants.d.ts +3 -2
  60. package/dist/types/src/features/riskSelector/model/types.d.ts +5 -0
  61. package/dist/types/src/shared/lib/functions/formatDate.d.ts +1 -1
  62. package/dist/types/src/shared/lib/functions/makeBreakableCash.d.ts +7 -0
  63. package/dist/types/src/shared/lib/functions/makeBreakableCash.test.d.ts +1 -0
  64. package/dist/types/tailwind.config.d.ts +1 -0
  65. package/package.json +1 -1
  66. package/dist/types/src/widgets/bottomLine/index.d.ts +0 -1
  67. package/dist/types/src/widgets/bottomLine/ui/BottomLine.d.ts +0 -1
@@ -1,3 +1,3 @@
1
- export { clearFreeRounds, endFreeRounds, finishFreeRound, freeRoundsReducer, restoreFreeRounds, restoreFreeRoundsError, setFreeRounds, setFreeRoundsInitial, setFreeRoundsModalVersion, startFreeRound, startFreeRounds, } from './model/freeRoundsSlice';
1
+ export { clearFreeRounds, endFreeRounds, finishFreeRound, freeRoundsReducer, getFreeRoundsIsFinished, restoreFreeRounds, restoreFreeRoundsError, setFreeRounds, setFreeRoundsInitial, setFreeRoundsModalVersion, startFreeRound, startFreeRounds, } from './model/freeRoundsSlice';
2
2
  export { TFreeRoundsConfig } from './model/types';
3
3
  export { FreeRoundLabel } from './ui/FreeRoundLabel/FreeRoundLabel';
@@ -9,5 +9,10 @@ type TRoundState = {
9
9
  version: `${EVersion}`;
10
10
  };
11
11
  export declare const startFreeRounds: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"freeRounds/startFreeRounds">, setFreeRounds: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TPromoTool, "freeRounds/setFreeRounds">, startFreeRound: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"freeRounds/startFreeRound">, finishFreeRound: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"freeRounds/finishFreeRound">, endFreeRounds: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"freeRounds/endFreeRounds">, clearFreeRounds: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"freeRounds/clearFreeRounds">, setFreeRoundsModalVersion: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<"default" | "defaultV3" | "pro", "freeRounds/setFreeRoundsModalVersion">, setFreeRoundsInitial: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TPromoTool, "freeRounds/setFreeRoundsInitial">, restoreFreeRounds: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"freeRounds/restoreFreeRounds">, restoreFreeRoundsError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"freeRounds/restoreFreeRoundsError">;
12
+ export declare const getFreeRoundsIsFinished: import("reselect").Selector<{
13
+ freeRounds: TRoundState;
14
+ }, boolean, []> & {
15
+ unwrapped: (state: TRoundState) => boolean;
16
+ };
12
17
  export declare const freeRoundsReducer: import("redux").Reducer<TRoundState>;
13
18
  export {};
@@ -1,6 +1,6 @@
1
1
  import { TSwitchItemProps } from "../../../shared/ui/Switch";
2
2
  type TProps = {
3
- key: string;
3
+ itemKey: string;
4
4
  } & TSwitchItemProps;
5
- export declare const MenuSwitchItem: ({ children, key, layoutType, ...props }: TProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const MenuSwitchItem: ({ children, itemKey, layoutType, ...props }: TProps) => import("react/jsx-runtime").JSX.Element;
6
6
  export {};
@@ -3,6 +3,7 @@ type TProps = {
3
3
  title: string;
4
4
  icon: ElementType;
5
5
  onClick: (event: React.MouseEvent) => void;
6
+ isFullSize?: boolean;
6
7
  } & ButtonHTMLAttributes<HTMLButtonElement>;
7
- export declare const ModalMenuItemCard: ({ title, icon: Icon, onClick, ...props }: TProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const ModalMenuItemCard: ({ title, icon: Icon, onClick, isFullSize, ...props }: TProps) => import("react/jsx-runtime").JSX.Element;
8
9
  export {};
@@ -4,7 +4,8 @@ type TPanelBonusProps = {
4
4
  className?: string;
5
5
  disabled?: boolean;
6
6
  refStakeAmounts?: RefObject<HTMLDivElement>;
7
+ refBonusPanel?: RefObject<HTMLDivElement>;
7
8
  position?: 'right' | 'left';
8
9
  };
9
- export declare const PanelBonus: ({ onClick, className, disabled, refStakeAmounts, position, }: TPanelBonusProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const PanelBonus: ({ onClick, className, disabled, refStakeAmounts, refBonusPanel, position, }: TPanelBonusProps) => import("react/jsx-runtime").JSX.Element;
10
11
  export {};
@@ -1,10 +1,11 @@
1
- import { TResponseGS } from "../../../shared/api/round/open/types";
1
+ import { TPromoTool, TResponseGS } from "../../../shared/api/round/open/types";
2
2
  import { TAppThunkAction } from "../../../shared/lib/store";
3
3
  type TInitRoundData = {
4
4
  roundId: string;
5
5
  responsesGS: TResponseGS;
6
6
  balance: number;
7
7
  meta: unknown;
8
+ promotools?: TPromoTool[];
8
9
  };
9
10
  export declare const initRound: TAppThunkAction<TInitRoundData>;
10
11
  export {};
@@ -1,5 +1,6 @@
1
- import { ERisk } from './types';
1
+ import { ERisk, ERiskLabel } from './types';
2
2
  export declare const RISKS_LIST: {
3
3
  value: ERisk;
4
- label: string;
4
+ key: string;
5
+ label: ERiskLabel;
5
6
  }[];
@@ -3,3 +3,8 @@ export declare enum ERisk {
3
3
  medium = "medium",
4
4
  high = "high"
5
5
  }
6
+ export declare enum ERiskLabel {
7
+ Low = "Low",
8
+ Medium = "Medium",
9
+ High = "High"
10
+ }
@@ -1 +1 @@
1
- export declare const formatDate: (isoString: string) => string;
1
+ export declare const formatDate: (isoString: string, separator?: string) => string;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Renders formatted cash with safe line breaks:
3
+ * - Breaks allowed only at thousands of separators
4
+ * - Decimal part always stays with the integer
5
+ * - Currency always stays attached to the number
6
+ */
7
+ export declare const makeBreakableCash: (rawCash: string) => string;
@@ -12,6 +12,7 @@ declare const _default: {
12
12
  5: string;
13
13
  6: string;
14
14
  10: string;
15
+ 15: string;
15
16
  20: string;
16
17
  100: string;
17
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truelab/truelogic-plinko",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "",
5
5
  "main": "./dist/truelogic.min.js",
6
6
  "types": "./dist/types/src/truelogic.d.ts",
@@ -1 +0,0 @@
1
- export { BottomLine } from './ui/BottomLine';
@@ -1 +0,0 @@
1
- export declare const BottomLine: () => import("react/jsx-runtime").JSX.Element;