@truelab/truelogic 4.2.0-1 → 4.2.0-2

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 (46) hide show
  1. package/dist/{318.7b1d3a15.css → 318.a4e04288.css} +1 -1
  2. package/dist/318.min.js +1 -1
  3. package/dist/487.min.js +1 -1
  4. package/dist/truelogic.min.css +1 -1
  5. package/dist/truelogic.min.js +1 -1
  6. package/dist/types/src/app/store.d.ts +3 -1
  7. package/dist/types/src/entities/bonus/index.d.ts +0 -1
  8. package/dist/types/src/entities/bonus/ui/BonusConfirmButtonBase/BonusConfirmButtonBase.stories.d.ts +9 -4
  9. package/dist/types/src/entities/menu/ui/MenuSwitchItem.stories.d.ts +5 -0
  10. package/dist/types/src/entities/session/lib/hook/useSessionExpired.d.ts +3 -1
  11. package/dist/types/src/features/bonus/index.d.ts +0 -1
  12. package/dist/types/src/features/bonus/model/bonusModalTransitions.d.ts +8 -0
  13. package/dist/types/src/features/panel/index.d.ts +1 -0
  14. package/dist/types/src/features/panel/lib/usePanelPlayZIndex.d.ts +16 -0
  15. package/dist/types/src/modules/promoLobby/widgets/modals/ui/prizeDrop/joinError/ModalPrizeDropJoinError.stories.d.ts +0 -3
  16. package/dist/types/src/modules/promoLobby/widgets/modals/ui/prizeDrop/success/ModalPrizeDropSuccess.stories.d.ts +0 -3
  17. package/dist/types/src/screens/loading/ui/LoadingScreen/LoadingScreen.stories.d.ts +4 -0
  18. package/dist/types/src/screens/preloader/Preloader.stories.d.ts +15 -0
  19. package/dist/types/src/shared/lib/constants/widgetZIndex.d.ts +1 -0
  20. package/dist/types/src/shared/lib/functions/index.d.ts +1 -0
  21. package/dist/types/src/shared/lib/functions/runWithViewTransition.d.ts +8 -0
  22. package/dist/types/src/shared/model/colorTheme/types.d.ts +7 -1
  23. package/dist/types/src/shared/model/modals/index.d.ts +1 -1
  24. package/dist/types/src/shared/ui/AdaptiveLabel/AdaptiveLabel.d.ts +18 -0
  25. package/dist/types/src/shared/ui/AdaptiveLabel/index.d.ts +1 -0
  26. package/dist/types/src/shared/ui/DiamondLoader/DiamondLoader.stories.d.ts +27 -0
  27. package/dist/types/src/shared/ui/ProgressBar/default/ProgressBar.stories.d.ts +1 -2
  28. package/dist/types/src/shared/ui/Switch/SwitchItem.stories.d.ts +4 -0
  29. package/dist/types/src/shared/ui/TapAnywhere/TapAnywhere.d.ts +4 -1
  30. package/dist/types/src/{entities/bonus → shared}/ui/ValueSelector/ValueSelector.d.ts +2 -2
  31. package/dist/types/src/shared/ui/ValueSelector/ValueSelector.stories.d.ts +27 -0
  32. package/dist/types/src/shared/ui/ValueSelector/index.d.ts +1 -0
  33. package/dist/types/src/widgets/modals/ui/ModalAutoPlay/ModalAutoPlay.stories.d.ts +0 -3
  34. package/dist/types/src/widgets/modals/ui/ModalBonusFeature/ModalBonusFeature.stories.d.ts +2 -0
  35. package/dist/types/src/widgets/modals/ui/ModalMenu/ModalMenu.stories.d.ts +0 -3
  36. package/dist/types/src/widgets/modals/ui/ModalRealityCheckReminder.stories.d.ts +14 -0
  37. package/dist/types/src/widgets/modals/ui/ModalServiceAutoPlay.stories.d.ts +11 -0
  38. package/dist/types/src/widgets/modals/ui/ModalSettings.stories.d.ts +12 -0
  39. package/dist/types/src/widgets/modals/ui/ModalStakeAmounts/ModalStakeAmounts.stories.d.ts +3 -0
  40. package/dist/types/src/widgets/panel/ui/Panel/Panel.stories.d.ts +9 -0
  41. package/dist/types/src/widgets/panel/ui/Panel/PanelPlate.d.ts +1 -1
  42. package/dist/types/src/widgets/topLine/ui/TopLine.stories.d.ts +6 -0
  43. package/package.json +1 -1
  44. package/dist/types/src/features/bonus/ui/BonusConfirmButton/BonusConfirmButton.d.ts +0 -9
  45. package/dist/types/src/screens/preloader/PreloaderErrorScene.stories.d.ts +0 -7
  46. package/dist/types/src/screens/preloader/PreloaderScene.stories.d.ts +0 -7
@@ -339,7 +339,9 @@ export declare const rootReducer: import("redux").Reducer<{
339
339
  bonusStop1: string;
340
340
  bonusSecondaryStop0: string;
341
341
  bonusSecondaryStop1: string;
342
- }>;
342
+ }> & {
343
+ mainUi?: string;
344
+ };
343
345
  loading: {
344
346
  config: import("../index").TLoadingConfig;
345
347
  gameLoadingProgress: number;
@@ -3,5 +3,4 @@ export { bonusReducer, getBonusCashPrice, getBonusIsBuyFeatureSupported, getBonu
3
3
  export { BonusConfirmButtonBase } from './ui/BonusConfirmButtonBase/BonusConfirmButtonBase';
4
4
  export { BonusDescription } from './ui/BonusDescription/BonusDescription';
5
5
  export { BonusFeatureCard } from './ui/BonusFeatureCard/BonusFeatureCard';
6
- export { ValueSelector } from './ui/ValueSelector/ValueSelector';
7
6
  export type { TBonusWithStakeType } from '../../shared/model/bonus';
@@ -8,16 +8,21 @@ declare const meta: {
8
8
  }) => import("react/jsx-runtime").JSX.Element;
9
9
  decorators: import("@storybook/react-webpack5").Decorator[];
10
10
  parameters: {};
11
+ args: {
12
+ onClick: import("@vitest/spy").Mock<(...args: any[]) => any>;
13
+ cashPrice: number;
14
+ disabled: false;
15
+ };
11
16
  };
12
17
  export default meta;
13
18
  export declare const Variants: import("storybook/internal/csf").StoryAnnotations<import("@storybook/react-webpack5").ReactRenderer, {
14
- onClick: (event: React.MouseEvent) => void;
19
+ onClick: import("@vitest/spy").Mock<(...args: any[]) => any>;
15
20
  cashPrice: number;
16
21
  disabled: boolean;
17
22
  isActive?: boolean;
18
23
  }, {
19
- onClick: (event: React.MouseEvent) => void;
20
- cashPrice: number;
21
- disabled: boolean;
22
24
  isActive?: boolean;
25
+ onClick?: (event: React.MouseEvent) => void;
26
+ cashPrice?: number;
27
+ disabled?: boolean;
23
28
  }>;
@@ -23,6 +23,11 @@ declare const meta: {
23
23
  switchTestId?: string;
24
24
  } & import("react").HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
25
25
  decorators: import("@storybook/react-webpack5").Decorator[];
26
+ args: {
27
+ id: string;
28
+ onClick: import("@vitest/spy").Mock<(...args: any[]) => any>;
29
+ children: string;
30
+ };
26
31
  };
27
32
  export default meta;
28
33
  type TStory = StoryObj<typeof meta>;
@@ -1,8 +1,10 @@
1
1
  /**
2
2
  * Blocking "Session Expired" popup after 30 minutes of player inactivity.
3
3
  * Activity: any pointer/key input, plus the game playing on its own — an active round,
4
- * in-game bonus free spins, a running autoplay series, or free rounds keep the session alive.
4
+ * in-game bonus free spins, or a running autoplay series keep the session alive.
5
5
  * A round stuck waiting for the player's choice does NOT count: the player is idle there.
6
+ * Free rounds by themselves do NOT count either — between free spins the game waits
7
+ * for the player, and sitting there is idle time (GTT-2645, QA issue 2).
6
8
  * Once expired, the popup is re-opened on every check, so an external `closeModal()`
7
9
  * (e.g. through external-ui) cannot lift the block — only a new game session can.
8
10
  * QA can shorten `session.inactivityTimeout` from the sandbox GUI (see useSandboxEvents), non-prod builds only.
@@ -1,7 +1,6 @@
1
1
  export { getBonusButtonDisabled } from './lib/selectors';
2
2
  export { cancelBonusFeatureSelection } from './model/cancelBonusFeatureSelection';
3
3
  export { confirmBonusFeature } from './model/confirmBonusFeature';
4
- export { BonusConfirmButton } from './ui/BonusConfirmButton/BonusConfirmButton';
5
4
  export { BonusFeatureSelector } from './ui/BonusFeatureSelector/BonusFeatureSelector';
6
5
  export { LevelSelector } from './ui/LevelSelector/LevelSelector';
7
6
  export { StakeAmountSelector } from './ui/StakeAmountSelector/StakeAmountSelector';
@@ -0,0 +1,8 @@
1
+ import { TAppThunkAction } from '../../../shared/lib/store';
2
+ export declare const revealBonusModal: TAppThunkAction;
3
+ type TDismissPayload = {
4
+ change: () => void;
5
+ onFinished?: () => void;
6
+ };
7
+ export declare const dismissBonusModal: TAppThunkAction<TDismissPayload>;
8
+ export {};
@@ -1,4 +1,5 @@
1
1
  export { getPanelLayout } from './lib/getPanelLayout';
2
2
  export { usePanelButtonsZIndex } from './lib/usePanelButtonsZIndex';
3
+ export { usePanelPlayZIndex } from './lib/usePanelPlayZIndex';
3
4
  export { PanelBonus } from './ui/PanelBonus';
4
5
  export { PanelCounter } from './ui/PanelCounter';
@@ -0,0 +1,16 @@
1
+ /**
2
+ * z-index class for the spin slot, which lives outside the panel grid.
3
+ *
4
+ * With the bonus feature modal open the slot becomes the confirm control and has to paint above
5
+ * the modal scrim, while the rest of the panel stays under it and keeps being dimmed by it. That is
6
+ * why the slot is not a grid child: the grid is transformed, so it is a stacking context and no
7
+ * z-index on a child of it could ever rise above the scrim. Keeping the spin glyph in one element
8
+ * across both states also keeps WebKit from rasterizing it a device pixel off (a second, identical
9
+ * button drawn over it rounded differently and the glyph visibly hopped).
10
+ *
11
+ * Any other modal keeps the slot down with the rest of the panel, so it cannot catch clicks
12
+ * meant for that modal. A service modal stacked on top of the bonus modal needs no switch here:
13
+ * the raised slot sits under the modal layer by value (see WIDGET_Z_INDEX), so the stacked
14
+ * modal's scrim covers it as-is (GTT-1295).
15
+ */
16
+ export declare function usePanelPlayZIndex(): string;
@@ -3,9 +3,6 @@ declare const meta: {
3
3
  title: string;
4
4
  component: () => import("react/jsx-runtime").JSX.Element;
5
5
  decorators: import("@storybook/react-webpack5").Decorator[];
6
- parameters: {
7
- imagesToLoad: string[];
8
- };
9
6
  };
10
7
  export default meta;
11
8
  type TStory = StoryObj<typeof meta>;
@@ -3,9 +3,6 @@ declare const meta: {
3
3
  title: string;
4
4
  component: () => import("react/jsx-runtime").JSX.Element;
5
5
  decorators: import("@storybook/react-webpack5").Decorator[];
6
- parameters: {
7
- imagesToLoad: string[];
8
- };
9
6
  };
10
7
  export default meta;
11
8
  type TStory = StoryObj<typeof meta>;
@@ -5,6 +5,10 @@ export default meta;
5
5
  type TStory = StoryObj<typeof LoadingScreen>;
6
6
  export declare const Default: TStory;
7
7
  export declare const DefaultPortrait: TStory;
8
+ export declare const DefaultCustomLogo: TStory;
9
+ export declare const DefaultCustomLogoPortrait: TStory;
10
+ export declare const ProCustomLogo: TStory;
11
+ export declare const ProCustomLogoPortrait: TStory;
8
12
  export declare const Pro: TStory;
9
13
  export declare const ProWithCustomTheme: TStory;
10
14
  export declare const ProLandscapeHigh: TStory;
@@ -0,0 +1,15 @@
1
+ import type { StoryObj } from '@storybook/react-webpack5';
2
+ import React from 'react';
3
+ declare const meta: {
4
+ title: string;
5
+ component: React.FC<{}>;
6
+ };
7
+ export default meta;
8
+ type TStory = StoryObj<typeof meta>;
9
+ export declare const Scene: TStory;
10
+ export declare const ScenePhrase1: TStory;
11
+ export declare const ScenePhrase2: TStory;
12
+ export declare const ScenePhrase3: TStory;
13
+ export declare const SceneCustomLogo: TStory;
14
+ export declare const ErrorScene: TStory;
15
+ export declare const SessionError: TStory;
@@ -16,4 +16,5 @@ export declare const WIDGET_Z_INDEX: {
16
16
  bottomLine: string;
17
17
  playerPanelWithOpenModalTransparent: string;
18
18
  modalBonusFeatureContent: string;
19
+ panelPlayWithBonusModal: string;
19
20
  };
@@ -17,6 +17,7 @@ export { keys } from './keys';
17
17
  export { preloadFont } from './preloadFont';
18
18
  export { retry } from './retry';
19
19
  export { roundFixed } from './roundFixed';
20
+ export { runWithViewTransition } from './runWithViewTransition';
20
21
  export { saveToClipboard } from './saveToClipboard';
21
22
  export { setupGoogleAnalytics } from './setupGoogleAnalytics';
22
23
  export { sleep } from './sleep';
@@ -0,0 +1,8 @@
1
+ /** Runs a visual state change inside a browser View Transition: the browser snapshots the old
2
+ * screen and cross-fades it into the new one as flat layers, so per-element transitions can
3
+ * never desync mid-change. The change itself stays synchronous — where the API is unavailable
4
+ * (older WebViews, jsdom) it degrades to an instant switch. Fade timing lives in index.scss.
5
+ *
6
+ * `onFinished` runs after the cross-fade settles (immediately in the fallback) — put motion
7
+ * starters there (e.g. the spin) so the new scene stays still while the old one fades over it. */
8
+ export declare const runWithViewTransition: (change: () => void, onFinished?: () => void) => void;
@@ -2,5 +2,11 @@ export type TColorThemeVar = '--colors-additional-source' | '--colors-additional
2
2
  export type TColorThemeName = 'additional' | 'additional2' | 'bonusBet' | 'bonusStop0' | 'bonusStop1' | 'bonusSecondaryStop0' | 'bonusSecondaryStop1' | 'buttonsStop0' | 'buttonsStop1';
3
3
  type TColorThemeBase = Record<TColorThemeName, string>;
4
4
  type TColorThemeOptional = Pick<TColorThemeBase, 'additional2' | 'bonusBet' | 'bonusStop0' | 'bonusStop1' | 'bonusSecondaryStop0' | 'bonusSecondaryStop1'>;
5
- export type TColorThemeConfig = Omit<TColorThemeBase, keyof TColorThemeOptional> & Partial<TColorThemeOptional>;
5
+ export type TColorThemeConfig = Omit<TColorThemeBase, keyof TColorThemeOptional> & Partial<TColorThemeOptional> & {
6
+ /**
7
+ * @deprecated The main UI background is a constant. The value is applied to
8
+ * `additional2` when `additional2` is not passed. Remove in v5.
9
+ */
10
+ mainUi?: string;
11
+ };
6
12
  export {};
@@ -1,2 +1,2 @@
1
1
  export type { TModalName } from './modalsSlice';
2
- export { closeModal, getCurrentModal, getIsPlayStartBlockedByModals, getModalsIsModalMode, modalsReducer, openModal, resetModalsServiceAutoplayType, setHasOpenedByModule, setModalConfigs, setModalReady, setModalsError, setModalsServiceAutoplayType, setModalsServiceErrorData, } from './modalsSlice';
2
+ export { closeModal, getCurrentModal, getIsPlayStartBlockedByModals, getModalsIsModalMode, modalsReducer, openModal, resetModalsServiceAutoplayType, setHasOpenedByModule, setIsModalReady, setModalConfigs, setModalReady, setModalsError, setModalsServiceAutoplayType, setModalsServiceErrorData, } from './modalsSlice';
@@ -0,0 +1,18 @@
1
+ import type { FC, ReactNode } from 'react';
2
+ type TProps = {
3
+ text: string;
4
+ initialFontSize: number;
5
+ /** Line height at the initial font size; scales together with the shrunk font. Omit to leave the CSS line-height as is */
6
+ initialLineHeight?: number;
7
+ /** With only maxWidth the label is a single nowrap line; maxHeight allows wrapping and clips the overflow */
8
+ maxWidth?: number;
9
+ maxHeight?: number;
10
+ minFontSize?: number;
11
+ className?: string;
12
+ /** Custom markup to render and measure instead of the plain text (the text still drives re-measures) */
13
+ children?: ReactNode;
14
+ onFontSizeAdjust?: (fontSize: number) => void;
15
+ };
16
+ /** Shrinks the font (and proportionally the line height) until the content fits maxWidth/maxHeight */
17
+ export declare const AdaptiveLabel: FC<TProps>;
18
+ export {};
@@ -0,0 +1 @@
1
+ export { AdaptiveLabel } from './AdaptiveLabel';
@@ -0,0 +1,27 @@
1
+ import type { StoryObj } from '@storybook/react-webpack5';
2
+ declare const meta: {
3
+ title: string;
4
+ component: ({ currentCount, children, maxCount, loaderColor, size, strokeWidth, }: {
5
+ children: import("react").ReactNode;
6
+ currentCount: number;
7
+ maxCount: number;
8
+ loaderColor: string;
9
+ size?: number;
10
+ strokeWidth?: number;
11
+ }) => import("react/jsx-runtime").JSX.Element;
12
+ parameters: {
13
+ layout: string;
14
+ };
15
+ args: {
16
+ currentCount: number;
17
+ maxCount: number;
18
+ loaderColor: string;
19
+ children: import("react/jsx-runtime").JSX.Element;
20
+ };
21
+ };
22
+ export default meta;
23
+ type TStory = StoryObj<typeof meta>;
24
+ export declare const ProgressVariants: TStory;
25
+ export declare const InfinityMode: TStory;
26
+ export declare const WithText: TStory;
27
+ export declare const CustomColorAndSize: TStory;
@@ -5,10 +5,9 @@ declare const meta: {
5
5
  progress: number;
6
6
  onTransitionEnd: () => void;
7
7
  }) => import("react/jsx-runtime").JSX.Element;
8
- decorators: import("@storybook/react-webpack5").Decorator[];
9
8
  args: {
10
9
  progress: number;
11
- onTransitionEnd: () => void;
10
+ onTransitionEnd: import("@vitest/spy").Mock<(...args: any[]) => any>;
12
11
  };
13
12
  };
14
13
  export default meta;
@@ -4,6 +4,10 @@ declare const meta: {
4
4
  component: import("react").FC<import("./SwitchItem").TSwitchItemProps>;
5
5
  decorators: import("@storybook/react-webpack5").Decorator[];
6
6
  argTypes: {};
7
+ args: {
8
+ onClick: import("@vitest/spy").Mock<(...args: any[]) => any>;
9
+ children: import("react/jsx-runtime").JSX.Element;
10
+ };
7
11
  };
8
12
  export default meta;
9
13
  type TStory = StoryObj<typeof meta>;
@@ -1,8 +1,11 @@
1
1
  import { ButtonHTMLAttributes } from 'react';
2
+ import { TModalName } from '../../../shared/model/modals';
2
3
  type TProps = {
3
4
  onClose?: () => void;
4
5
  textClassName?: string;
5
6
  isTurboActive?: boolean;
7
+ /** Modal this layer belongs to — input is ignored while another modal is stacked above it */
8
+ modalName?: TModalName;
6
9
  } & ButtonHTMLAttributes<HTMLButtonElement>;
7
- export declare const TapAnywhere: ({ onClose, textClassName, isTurboActive, ...props }: TProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const TapAnywhere: ({ onClose, textClassName, isTurboActive, modalName, ...props }: TProps) => import("react/jsx-runtime").JSX.Element;
8
11
  export {};
@@ -1,5 +1,5 @@
1
1
  import { FC, HTMLAttributes } from 'react';
2
- type TValueSelectorProps = {
2
+ type TProps = {
3
3
  value: number | string;
4
4
  onIncrease: () => void;
5
5
  onDecrease: () => void;
@@ -7,5 +7,5 @@ type TValueSelectorProps = {
7
7
  isMinValue: boolean;
8
8
  title?: string;
9
9
  } & HTMLAttributes<HTMLDivElement>;
10
- export declare const ValueSelector: FC<TValueSelectorProps>;
10
+ export declare const ValueSelector: FC<TProps>;
11
11
  export {};
@@ -0,0 +1,27 @@
1
+ import type { StoryObj } from '@storybook/react-webpack5';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import("react").FC<{
5
+ value: number | string;
6
+ onIncrease: () => void;
7
+ onDecrease: () => void;
8
+ isMaxValue: boolean;
9
+ isMinValue: boolean;
10
+ title?: string;
11
+ } & import("react").HTMLAttributes<HTMLDivElement>>;
12
+ decorators: import("@storybook/react-webpack5").Decorator[];
13
+ args: {
14
+ value: number;
15
+ isMinValue: false;
16
+ isMaxValue: false;
17
+ onIncrease: import("@vitest/spy").Mock<(...args: any[]) => any>;
18
+ onDecrease: import("@vitest/spy").Mock<(...args: any[]) => any>;
19
+ };
20
+ };
21
+ export default meta;
22
+ type TStory = StoryObj<typeof meta>;
23
+ export declare const Default: TStory;
24
+ export declare const MinValue: TStory;
25
+ export declare const MaxValue: TStory;
26
+ export declare const WithTitle: TStory;
27
+ export declare const Portrait: TStory;
@@ -0,0 +1 @@
1
+ export { ValueSelector } from './ValueSelector';
@@ -3,9 +3,6 @@ declare const meta: {
3
3
  title: string;
4
4
  component: () => import("react/jsx-runtime").JSX.Element;
5
5
  decorators: import("@storybook/react-webpack5").Decorator[];
6
- parameters: {
7
- imagesToLoad: string[];
8
- };
9
6
  };
10
7
  export default meta;
11
8
  type TStory = StoryObj<typeof meta>;
@@ -32,3 +32,5 @@ export declare const PortraitSixCardsOneBonusBet: import("storybook/internal/csf
32
32
  export declare const PortraitExcessBuyTwoBonusBet: import("storybook/internal/csf").StoryAnnotations<import("@storybook/react-webpack5").ReactRenderer, {}, {}>;
33
33
  export declare const PortraitExcessBuyThreeBonusBet: import("storybook/internal/csf").StoryAnnotations<import("@storybook/react-webpack5").ReactRenderer, {}, {}>;
34
34
  export declare const PortraitPreselectedOutOfView: import("storybook/internal/csf").StoryAnnotations<import("@storybook/react-webpack5").ReactRenderer, {}, {}>;
35
+ export declare const LandscapeNarrowLayout: import("storybook/internal/csf").StoryAnnotations<import("@storybook/react-webpack5").ReactRenderer, {}, {}>;
36
+ export declare const PortraitNarrowLayout: import("storybook/internal/csf").StoryAnnotations<import("@storybook/react-webpack5").ReactRenderer, {}, {}>;
@@ -3,9 +3,6 @@ declare const meta: {
3
3
  title: string;
4
4
  component: () => import("react/jsx-runtime").JSX.Element;
5
5
  decorators: import("@storybook/react-webpack5").Decorator[];
6
- parameters: {
7
- imagesToLoad: string[];
8
- };
9
6
  };
10
7
  export default meta;
11
8
  type TStory = StoryObj<typeof meta>;
@@ -0,0 +1,14 @@
1
+ import { StoryObj } from '@storybook/react-webpack5';
2
+ declare const meta: {
3
+ title: string;
4
+ component: () => import("react/jsx-runtime").JSX.Element;
5
+ decorators: import("@storybook/react-webpack5").Decorator[];
6
+ parameters: {
7
+ mockingDate: Date;
8
+ };
9
+ };
10
+ export default meta;
11
+ type TStory = StoryObj<typeof meta>;
12
+ export declare const Landscape: TStory;
13
+ export declare const Portrait: TStory;
14
+ export declare const WithRoundsHistory: TStory;
@@ -0,0 +1,11 @@
1
+ import { StoryObj } from '@storybook/react-webpack5';
2
+ declare const meta: {
3
+ title: string;
4
+ component: () => import("react/jsx-runtime").JSX.Element;
5
+ decorators: import("@storybook/react-webpack5").Decorator[];
6
+ };
7
+ export default meta;
8
+ type TStory = StoryObj<typeof meta>;
9
+ export declare const LossLimitLandscape: TStory;
10
+ export declare const LossLimitPortrait: TStory;
11
+ export declare const BonusReached: TStory;
@@ -0,0 +1,12 @@
1
+ import { StoryObj } from '@storybook/react-webpack5';
2
+ declare const meta: {
3
+ title: string;
4
+ component: () => import("react/jsx-runtime").JSX.Element;
5
+ decorators: import("@storybook/react-webpack5").Decorator[];
6
+ };
7
+ export default meta;
8
+ type TStory = StoryObj<typeof meta>;
9
+ export declare const Landscape: TStory;
10
+ export declare const Portrait: TStory;
11
+ export declare const FullScreenUnsupported: TStory;
12
+ export declare const RealityCheckOn: TStory;
@@ -11,3 +11,6 @@ export declare const LandscapeFew: TStory;
11
11
  export declare const PortraitMany: TStory;
12
12
  export declare const LandscapeMany: TStory;
13
13
  export declare const PortraitCrypto: TStory;
14
+ export declare const PortraitLevels: TStory;
15
+ export declare const LandscapeLevels: TStory;
16
+ export declare const PortraitLevelsMin: TStory;
@@ -3,6 +3,9 @@ declare const meta: {
3
3
  title: string;
4
4
  component: () => import("react/jsx-runtime").JSX.Element;
5
5
  decorators: Decorator[];
6
+ parameters: {
7
+ imagesToLoad: string[];
8
+ };
6
9
  };
7
10
  export default meta;
8
11
  type TStory = StoryObj<typeof meta>;
@@ -33,10 +36,16 @@ export declare const DefaultLandscapePlayingSkipTurbo: import("storybook/interna
33
36
  export declare const DefaultLandscapePlayingFastActiveUIFrozen: import("storybook/internal/csf").StoryAnnotations<import("@storybook/react-webpack5").ReactRenderer, {}, {}>;
34
37
  export declare const DefaultLandscapePlayingAuto: import("storybook/internal/csf").StoryAnnotations<import("@storybook/react-webpack5").ReactRenderer, {}, {}>;
35
38
  export declare const DefaultLandscapePlayingAutoUIFrozen: import("storybook/internal/csf").StoryAnnotations<import("@storybook/react-webpack5").ReactRenderer, {}, {}>;
39
+ export declare const DefaultLandscapePlayingAutoInfinity: import("storybook/internal/csf").StoryAnnotations<import("@storybook/react-webpack5").ReactRenderer, {}, {}>;
36
40
  export declare const DefaultLandscapeBonusBet: import("storybook/internal/csf").StoryAnnotations<import("@storybook/react-webpack5").ReactRenderer, {}, {}>;
37
41
  export declare const DefaultLandscapePlayingBonusBet: import("storybook/internal/csf").StoryAnnotations<import("@storybook/react-webpack5").ReactRenderer, {}, {}>;
38
42
  export declare const DefaultLandscapePlayingSkipBonusBet: import("storybook/internal/csf").StoryAnnotations<import("@storybook/react-webpack5").ReactRenderer, {}, {}>;
39
43
  export declare const DefaultLandscapeBonusBetUIFrozen: import("storybook/internal/csf").StoryAnnotations<import("@storybook/react-webpack5").ReactRenderer, {}, {}>;
44
+ export declare const DefaultLandscapeSocialCasino: import("storybook/internal/csf").StoryAnnotations<import("@storybook/react-webpack5").ReactRenderer, {}, {}>;
45
+ export declare const DefaultPortraitSocialCasino: import("storybook/internal/csf").StoryAnnotations<import("@storybook/react-webpack5").ReactRenderer, {}, {}>;
46
+ export declare const DefaultLandscapeSocialCasinoBonusBet: import("storybook/internal/csf").StoryAnnotations<import("@storybook/react-webpack5").ReactRenderer, {}, {}>;
47
+ export declare const DefaultLandscapeBonusShopDimmed: import("storybook/internal/csf").StoryAnnotations<import("@storybook/react-webpack5").ReactRenderer, {}, {}>;
48
+ export declare const DefaultPortraitBonusShopDimmed: import("storybook/internal/csf").StoryAnnotations<import("@storybook/react-webpack5").ReactRenderer, {}, {}>;
40
49
  export declare const DefaultLandscapeCounter: import("storybook/internal/csf").StoryAnnotations<import("@storybook/react-webpack5").ReactRenderer, {}, {}>;
41
50
  export declare const DefaultPortraitCounter: import("storybook/internal/csf").StoryAnnotations<import("@storybook/react-webpack5").ReactRenderer, {}, {}>;
42
51
  export declare const DefaultLandscapeCounterAuto: import("storybook/internal/csf").StoryAnnotations<import("@storybook/react-webpack5").ReactRenderer, {}, {}>;
@@ -1,5 +1,5 @@
1
1
  type TProps = {
2
- /** Bonus shop is open: plate bg fades to 40% of its normal look, buttons stay fully visible */
2
+ /** Bonus shop is open: plate bg drops to 40% of its normal look, buttons stay fully visible */
3
3
  dimmed?: boolean;
4
4
  };
5
5
  /** Panel plate: translucent blurred bar with a bump for the spin button.
@@ -5,6 +5,7 @@ declare const meta: {
5
5
  decorators: import("@storybook/react-webpack5").Decorator[];
6
6
  parameters: {
7
7
  mockingDate: Date;
8
+ imagesToLoad: string[];
8
9
  };
9
10
  render: () => import("react/jsx-runtime").JSX.Element;
10
11
  };
@@ -12,6 +13,8 @@ export default meta;
12
13
  type TStory = StoryObj<typeof meta>;
13
14
  export declare const Default: TStory;
14
15
  export declare const DefaultPortrait: TStory;
16
+ export declare const CustomLogo: TStory;
17
+ export declare const CustomLogoPortrait: TStory;
15
18
  export declare const FreeRoundsBadge: TStory;
16
19
  export declare const DemoBadge: TStory;
17
20
  export declare const FreeRoundsHiddenWhenModalOpen: TStory;
@@ -33,3 +36,6 @@ export declare const FreeRoundsBadgePortraitModeB: TStory;
33
36
  export declare const FreeRoundsBadgePortraitModeC: TStory;
34
37
  export declare const FreeRoundsBadgeLandscapeNarrowModeB: TStory;
35
38
  export declare const FreeRoundsBadgeLandscapeNarrowModeC: TStory;
39
+ export declare const PortraitMenuInPanelLayout: TStory;
40
+ export declare const PortraitMenuDisabled: TStory;
41
+ export declare const PortraitUIHiddenMenuAbsent: TStory;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truelab/truelogic",
3
- "version": "4.2.0-1",
3
+ "version": "4.2.0-2",
4
4
  "description": "",
5
5
  "main": "./dist/truelogic.min.js",
6
6
  "types": "./dist/types/src/index.d.ts",
@@ -1,9 +0,0 @@
1
- type TCloseButtonProps = {
2
- onClick: (event: React.MouseEvent) => void;
3
- isActive: boolean;
4
- cashPrice: number;
5
- disabled: boolean;
6
- className?: string;
7
- };
8
- export declare const BonusConfirmButton: ({ onClick, className, isActive, cashPrice, disabled }: TCloseButtonProps) => import("react/jsx-runtime").JSX.Element;
9
- export {};
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- export declare const PreloaderErrorScene: React.FC;
3
- declare const _default: {
4
- title: string;
5
- component: React.FC<{}>;
6
- };
7
- export default _default;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- export declare const PreloaderScene: React.FC;
3
- declare const _default: {
4
- title: string;
5
- component: React.FC<{}>;
6
- };
7
- export default _default;