@truelab/truelogic 4.2.0 → 4.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 (223) 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/487.min.js +1 -1
  14. package/dist/546.min.js +1 -1
  15. package/dist/585.min.js +1 -1
  16. package/dist/59.min.js +1 -1
  17. package/dist/683.min.js +1 -1
  18. package/dist/699.min.js +1 -1
  19. package/dist/728.min.js +1 -1
  20. package/dist/755.min.js +1 -1
  21. package/dist/756.min.js +1 -1
  22. package/dist/761.min.js +1 -1
  23. package/dist/763.min.js +1 -1
  24. package/dist/80.min.js +1 -1
  25. package/dist/887.48666879.css +3 -0
  26. package/dist/887.min.js +1 -0
  27. package/dist/90.min.js +1 -1
  28. package/dist/929.min.js +1 -1
  29. package/dist/937.min.js +1 -1
  30. package/dist/988.min.js +1 -1
  31. package/dist/assets/events-empty.e864d6cd0e2060d9eb98.webp +0 -0
  32. package/dist/assets/locales/cs.json +5 -1
  33. package/dist/assets/locales/de.json +5 -1
  34. package/dist/assets/locales/en.json +5 -1
  35. package/dist/assets/locales/es.json +5 -1
  36. package/dist/assets/locales/fi.json +5 -1
  37. package/dist/assets/locales/fr.json +5 -1
  38. package/dist/assets/locales/hi.json +5 -1
  39. package/dist/assets/locales/hr.json +5 -1
  40. package/dist/assets/locales/id.json +5 -1
  41. package/dist/assets/locales/it.json +5 -1
  42. package/dist/assets/locales/ja.json +5 -1
  43. package/dist/assets/locales/kk.json +5 -1
  44. package/dist/assets/locales/ko.json +5 -1
  45. package/dist/assets/locales/nl.json +5 -1
  46. package/dist/assets/locales/no.json +5 -1
  47. package/dist/assets/locales/pl.json +5 -1
  48. package/dist/assets/locales/pt.json +5 -1
  49. package/dist/assets/locales/ru.json +5 -1
  50. package/dist/assets/locales/sc_en.json +26 -22
  51. package/dist/assets/locales/sr.json +5 -1
  52. package/dist/assets/locales/sv.json +5 -1
  53. package/dist/assets/locales/th.json +5 -1
  54. package/dist/assets/locales/tr.json +5 -1
  55. package/dist/assets/locales/uk.json +5 -1
  56. package/dist/assets/locales/vi.json +5 -1
  57. package/dist/assets/locales/zh.json +5 -1
  58. package/dist/truelogic.min.css +1 -1
  59. package/dist/truelogic.min.js +1 -1
  60. package/dist/types/src/app/lib/functions/getConfigurationNonCriticalImages.test.d.ts +1 -0
  61. package/dist/types/src/app/lib/singletones/publicEmitter.d.ts +9 -0
  62. package/dist/types/src/app/store.d.ts +35 -30
  63. package/dist/types/src/entities/autoplay/model/autoPlaySlice.d.ts +7 -6
  64. package/dist/types/src/entities/bonus/model/bonusSlice.d.ts +35 -30
  65. package/dist/types/src/entities/gameInfo/index.d.ts +3 -1
  66. package/dist/types/src/entities/gameInfo/lib/getGameInfoSections.d.ts +24 -0
  67. package/dist/types/src/entities/gameInfo/lib/getGameInfoSections.test.d.ts +1 -0
  68. package/dist/types/src/entities/gameInfo/model/gameInfoSlice.d.ts +4 -3
  69. package/dist/types/src/entities/gameInfo/model/types.d.ts +23 -2
  70. package/dist/types/src/entities/menu/index.d.ts +2 -1
  71. package/dist/types/src/entities/menu/model/menuSlice.d.ts +34 -0
  72. package/dist/types/src/entities/menu/model/menuSlice.test.d.ts +1 -0
  73. package/dist/types/src/entities/modals/index.d.ts +0 -1
  74. package/dist/types/src/entities/payTable/model/types.d.ts +5 -0
  75. package/dist/types/src/entities/payTable/ui/PayTableConstructor/PayTableConstructor.d.ts +13 -1
  76. package/dist/types/src/entities/payTable/ui/PayTableConstructor/PayTableConstructor.stories.d.ts +8 -1
  77. package/dist/types/src/entities/payTable/ui/PayTableConstructor/items/PayTableLine.stories.d.ts +5 -1
  78. package/dist/types/src/entities/payTable/ui/PayTableConstructor/items/PayTableSymbolGridV1.stories.d.ts +5 -1
  79. package/dist/types/src/entities/payTable/ui/PayTableConstructor/items/PayTableSymbolSpecialV1.stories.d.ts +5 -1
  80. package/dist/types/src/entities/payTable/ui/PayTableConstructor/items/PayTableSymbolSpecialV2.stories.d.ts +5 -1
  81. package/dist/types/src/entities/payTable/ui/PayTableConstructor/items/PayTableTitle.stories.d.ts +5 -1
  82. package/dist/types/src/entities/realityCheck/index.d.ts +0 -1
  83. package/dist/types/src/entities/roundsHistory/ui/RoundsHistoryCard.d.ts +1 -0
  84. package/dist/types/src/entities/sound/ui/SoundSettingsSwitcher/SoundSettingsSwitcher.d.ts +1 -0
  85. package/dist/types/src/features/menu/index.d.ts +2 -1
  86. package/dist/types/src/features/menu/lib/useInfoClick.d.ts +10 -0
  87. package/dist/types/src/features/menu/ui/InfoButton/InfoButton.d.ts +15 -0
  88. package/dist/types/src/features/menu/ui/PanelInfo/PanelInfo.d.ts +11 -0
  89. package/dist/types/src/modules/promoLobby/app/model/index.d.ts +2 -2
  90. package/dist/types/src/modules/promoLobby/app/model/promoLobbySlice.d.ts +30 -2
  91. package/dist/types/src/modules/promoLobby/app/model/promoLobbySlice.test.d.ts +1 -0
  92. package/dist/types/src/modules/promoLobby/app/model/types.d.ts +6 -1
  93. package/dist/types/src/modules/promoLobby/entities/modals/index.d.ts +0 -2
  94. package/dist/types/src/modules/promoLobby/entities/modals/ui/ModalBase.d.ts +1 -1
  95. package/dist/types/src/modules/promoLobby/entities/modals/ui/ModalBaseHeader.d.ts +1 -1
  96. package/dist/types/src/modules/promoLobby/entities/prizeDrop/lib/isTrueTokenCampaign.d.ts +2 -0
  97. package/dist/types/src/modules/promoLobby/entities/prizeDrop/ui/PrizeDropEvents/PrizeDropEventsEmpty.d.ts +5 -0
  98. package/dist/types/src/modules/promoLobby/entities/prizeDrop/ui/PrizeDropEvents/PrizeDropEventsList.d.ts +2 -0
  99. package/dist/types/src/modules/promoLobby/entities/prizeDrop/ui/PrizeDropEvents/components/PrizeDropEventsPrizes.d.ts +4 -0
  100. package/dist/types/src/modules/promoLobby/shared/lib/analytics/promoLobbyAnalytics.d.ts +2 -1
  101. package/dist/types/src/modules/promoLobby/shared/lib/analytics/subscribePromoLobbyAnalytics.d.ts +9 -0
  102. package/dist/types/src/modules/promoLobby/shared/lib/hooks/useHasNotifications.d.ts +7 -3
  103. package/dist/types/src/modules/promoLobby/shared/modals/modalsSlice.d.ts +2 -1
  104. package/dist/types/src/modules/promoLobby/styles/tailwind.config.d.ts +3 -1
  105. package/dist/types/src/modules/promoLobby/widgets/panel/ui/PanelPromoLobby.d.ts +1 -4
  106. package/dist/types/src/modules/promoLobby/widgets/promoLobbyTab/index.d.ts +1 -0
  107. package/dist/types/src/modules/promoLobby/widgets/promoLobbyTab/ui/PromoLobbyTab.d.ts +7 -0
  108. package/dist/types/src/modules/promoLobby/widgets/topBar/ui/TopBar.d.ts +9 -0
  109. package/dist/types/src/sandbox/config.d.ts +10 -12
  110. package/dist/types/src/sandbox/gui/gui.d.ts +3 -6
  111. package/dist/types/src/sandbox/gui/helpers/index.d.ts +1 -1
  112. package/dist/types/src/sandbox/gui/helpers/serializationGameInfo.d.ts +6 -0
  113. package/dist/types/src/sandbox/gui/sections/configuration/gameInfo/index.d.ts +12 -0
  114. package/dist/types/src/sandbox/gui/sections/configuration/gameInfo/items/generateInfoItem.d.ts +11 -0
  115. package/dist/types/src/sandbox/gui/sections/configuration/gameInfo/items/generateLineItem.d.ts +11 -0
  116. package/dist/types/src/sandbox/gui/sections/configuration/gameInfo/items/generateSymbolItem.d.ts +11 -0
  117. package/dist/types/src/sandbox/gui/sections/configuration/gameInfo/items/index.d.ts +3 -0
  118. package/dist/types/src/sandbox/gui/sections/promoLobby/index.d.ts +8 -0
  119. package/dist/types/src/sandbox/presets/index.d.ts +1 -0
  120. package/dist/types/src/sandbox/presets/prizeDrop/campaignsList.d.ts +2 -0
  121. package/dist/types/src/sandbox/presets/prizeDrop/lobbyInit.d.ts +2 -0
  122. package/dist/types/src/sandbox/types/GameInfo.d.ts +11 -0
  123. package/dist/types/src/sandbox/types/PayTable.d.ts +1 -6
  124. package/dist/types/src/shared/api/config/types.d.ts +4 -0
  125. package/dist/types/src/shared/api/modules/promoLobby/config.d.ts +4 -0
  126. package/dist/types/src/shared/lib/classes/integration/OperatorAbstractService.d.ts +0 -2
  127. package/dist/types/src/shared/lib/classes/integration/OperatorBaseService.d.ts +0 -4
  128. package/dist/types/src/shared/lib/classes/integration/OperatorGeneralService.d.ts +1 -3
  129. package/dist/types/src/shared/lib/constants/cssVars.d.ts +7 -0
  130. package/dist/types/src/shared/lib/constants/index.d.ts +1 -0
  131. package/dist/types/src/shared/lib/constants/widgetZIndex.d.ts +1 -0
  132. package/dist/types/src/shared/lib/functions/formatCount.d.ts +5 -0
  133. package/dist/types/src/shared/lib/functions/index.d.ts +1 -0
  134. package/dist/types/src/shared/lib/hooks/index.d.ts +1 -1
  135. package/dist/types/src/shared/lib/hooks/useElementsBottomCssVar.d.ts +14 -0
  136. package/dist/types/src/shared/lib/panelLayout/types.d.ts +2 -2
  137. package/dist/types/src/shared/lib/singletones/analyticsEmitter.d.ts +0 -1
  138. package/dist/types/src/shared/lib/singletones/gameEmitter.d.ts +1 -1
  139. package/dist/types/src/shared/lib/singletones/operatorEmitter.d.ts +0 -2
  140. package/dist/types/src/shared/lib/store/redux.d.ts +14 -12
  141. package/dist/types/src/shared/lib/tests/utils/getPreloadedState.d.ts +7 -6
  142. package/dist/types/src/shared/lib/tests/utils/setupTestStore.d.ts +14 -12
  143. package/dist/types/src/shared/model/menu/types.d.ts +2 -1
  144. package/dist/types/src/shared/model/modals/index.d.ts +1 -1
  145. package/dist/types/src/shared/model/modals/modalsSlice.d.ts +2 -3
  146. package/dist/types/src/shared/modules/menuInnerPage.d.ts +25 -0
  147. package/dist/types/src/shared/modules/menuTabsRegistry.d.ts +3 -0
  148. package/dist/types/src/shared/ui/CustomScroll/CustomScroll.d.ts +3 -0
  149. package/dist/types/src/shared/ui/FixedWidthLabel/FixedWidthLabel.d.ts +1 -0
  150. package/dist/types/src/shared/ui/InfoConstructor/InfoConstructor.d.ts +3 -1
  151. package/dist/types/src/shared/ui/InfoConstructor/items/InfoIconListItem.d.ts +4 -1
  152. package/dist/types/src/shared/ui/InfoSeparator/InfoSeparator.d.ts +13 -0
  153. package/dist/types/src/shared/ui/InfoSeparator/index.d.ts +1 -0
  154. package/dist/types/src/shared/ui/SettingsSwitchCard/SettingsSwitchCard.d.ts +16 -0
  155. package/dist/types/src/shared/ui/SettingsSwitchCard/index.d.ts +1 -0
  156. package/dist/types/src/shared/ui/Switch/index.d.ts +0 -2
  157. package/dist/types/src/shared/ui/TabBar/TabBar.d.ts +16 -0
  158. package/dist/types/src/shared/ui/TabBar/TabBar.stories.d.ts +1804 -0
  159. package/dist/types/src/shared/ui/TabBar/TabBarIconButton.d.ts +8 -0
  160. package/dist/types/src/shared/ui/TabBar/TabBarItem.d.ts +12 -0
  161. package/dist/types/src/shared/ui/TabBar/index.d.ts +3 -0
  162. package/dist/types/src/shared/ui/TapAnywhere/TapAnywhere.d.ts +4 -2
  163. package/dist/types/src/widgets/menu/index.d.ts +3 -0
  164. package/dist/types/src/widgets/menu/lib/selectors.d.ts +11 -0
  165. package/dist/types/src/widgets/menu/lib/useMenuTabs.d.ts +25 -0
  166. package/dist/types/src/widgets/menu/ui/GameInfoLight/GameInfoLight.d.ts +16 -0
  167. package/dist/types/src/widgets/menu/ui/MenuHeader/MenuHeader.d.ts +18 -0
  168. package/dist/types/src/widgets/menu/ui/MenuTabBar/MenuTabBar.d.ts +11 -0
  169. package/dist/types/src/widgets/menu/ui/MenuTabContent/MenuTabContent.d.ts +17 -0
  170. package/dist/types/src/widgets/menu/ui/ModalMenu/ModalMenu.test.d.ts +1 -0
  171. package/dist/types/src/widgets/menu/ui/tabs/ActivityTab.d.ts +2 -0
  172. package/dist/types/src/widgets/menu/ui/tabs/ActivityTab.test.d.ts +1 -0
  173. package/dist/types/src/widgets/menu/ui/tabs/GameInfoTab.d.ts +14 -0
  174. package/dist/types/src/widgets/menu/ui/tabs/GameInfoTab.test.d.ts +1 -0
  175. package/dist/types/src/widgets/menu/ui/tabs/RealityCheckSettings.d.ts +7 -0
  176. package/dist/types/src/widgets/menu/ui/tabs/RealityCheckSettings.test.d.ts +1 -0
  177. package/dist/types/src/widgets/menu/ui/tabs/RoundDetailsPage.d.ts +9 -0
  178. package/dist/types/src/widgets/menu/ui/tabs/SettingsTab.d.ts +2 -0
  179. package/dist/types/src/widgets/{modals/ui/ModalSettings.stories.d.ts → menu/ui/tabs/SettingsTab.stories.d.ts} +3 -3
  180. package/dist/types/src/widgets/modals/index.d.ts +0 -7
  181. package/dist/types/src/widgets/modals/ui/ModalRealityCheckReminder.test.d.ts +1 -0
  182. package/package.json +1 -1
  183. package/dist/318.a4e04288.css +0 -3
  184. package/dist/318.min.js +0 -1
  185. package/dist/assets/coming-soon.378973f1d8788623bbe9.webp +0 -0
  186. package/dist/assets/true-coin.1428441fe478e319cb4e.webp +0 -0
  187. package/dist/types/src/entities/menu/ui/MenuSwitchItem.d.ts +0 -6
  188. package/dist/types/src/entities/menu/ui/MenuSwitchItem.stories.d.ts +0 -35
  189. package/dist/types/src/entities/modals/ui/ModalMenuItemCard.d.ts +0 -8
  190. package/dist/types/src/entities/realityCheck/ui/RealityCheckSwitcher/RealityCheckSwitcher.d.ts +0 -7
  191. package/dist/types/src/features/menu/ui/PanelMenu/PanelMenu.d.ts +0 -10
  192. package/dist/types/src/modules/promoLobby/entities/modals/ui/ModalFullHeightBase.d.ts +0 -10
  193. package/dist/types/src/modules/promoLobby/entities/modals/ui/ModalMenuItemCard.d.ts +0 -8
  194. package/dist/types/src/modules/promoLobby/screens/InfoScreen/InfoScreen.d.ts +0 -1
  195. package/dist/types/src/modules/promoLobby/screens/ProfileScreen/ProfileScreen.d.ts +0 -1
  196. package/dist/types/src/modules/promoLobby/shared/lib/constants/index.d.ts +0 -1
  197. package/dist/types/src/modules/promoLobby/shared/lib/constants/widgetZIndex.d.ts +0 -3
  198. package/dist/types/src/modules/promoLobby/shared/lib/hooks/usePromoLobbyAnalyticsEvents.d.ts +0 -1
  199. package/dist/types/src/modules/promoLobby/widgets/modals/ui/ModalPromoLobby.d.ts +0 -2
  200. package/dist/types/src/modules/promoLobby/widgets/navbar/index.d.ts +0 -2
  201. package/dist/types/src/modules/promoLobby/widgets/navbar/lib/navbarConfig.d.ts +0 -7
  202. package/dist/types/src/modules/promoLobby/widgets/navbar/ui/Navbar.d.ts +0 -1
  203. package/dist/types/src/modules/promoLobby/widgets/navbar/ui/NavbarItem.d.ts +0 -12
  204. package/dist/types/src/sandbox/gui/helpers/serializationPayTable.d.ts +0 -3
  205. package/dist/types/src/sandbox/gui/sections/configuration/gameInfo.d.ts +0 -2
  206. package/dist/types/src/sandbox/gui/sections/configuration/payTable.d.ts +0 -2
  207. package/dist/types/src/shared/lib/hooks/useFullScreen.d.ts +0 -5
  208. package/dist/types/src/shared/lib/hooks/useFullScreenSupport.d.ts +0 -1
  209. package/dist/types/src/shared/model/fullScreen/fullScreenSlice.d.ts +0 -7
  210. package/dist/types/src/shared/model/fullScreen/index.d.ts +0 -1
  211. package/dist/types/src/shared/ui/Switch/SwitchItem.d.ts +0 -21
  212. package/dist/types/src/shared/ui/Switch/SwitchItem.stories.d.ts +0 -14
  213. package/dist/types/src/widgets/modals/ui/ModalGameInfo.d.ts +0 -1
  214. package/dist/types/src/widgets/modals/ui/ModalMenu/ModalMenu.stories.d.ts +0 -17
  215. package/dist/types/src/widgets/modals/ui/ModalPayTable.d.ts +0 -1
  216. package/dist/types/src/widgets/modals/ui/ModalPayTable.stories.d.ts +0 -15
  217. package/dist/types/src/widgets/modals/ui/ModalRealityCheck.d.ts +0 -1
  218. package/dist/types/src/widgets/modals/ui/ModalRoundDetails.d.ts +0 -1
  219. package/dist/types/src/widgets/modals/ui/ModalRoundsHistory.d.ts +0 -1
  220. package/dist/types/src/widgets/modals/ui/ModalSettings.d.ts +0 -1
  221. package/dist/types/src/widgets/topBar/ui/TopBar.d.ts +0 -5
  222. /package/dist/types/src/{widgets → modules/promoLobby/widgets}/topBar/index.d.ts +0 -0
  223. /package/dist/types/src/widgets/{modals → menu}/ui/ModalMenu/ModalMenu.d.ts +0 -0
@@ -0,0 +1,8 @@
1
+ import { ButtonHTMLAttributes, ElementType, FC } from 'react';
2
+ type TProps = {
3
+ icon: ElementType;
4
+ onClick: (event: React.MouseEvent) => void;
5
+ } & ButtonHTMLAttributes<HTMLButtonElement>;
6
+ /** Square icon-only member of the tab bar family (Close), same 10px corners as a tab. */
7
+ export declare const TabBarIconButton: FC<TProps>;
8
+ export {};
@@ -0,0 +1,12 @@
1
+ import { ButtonHTMLAttributes, ElementType, FC } from 'react';
2
+ type TProps = {
3
+ icon: ElementType;
4
+ label: string;
5
+ onClick: (event: React.MouseEvent) => void;
6
+ isActive?: boolean;
7
+ labelFontSize?: number;
8
+ onLabelFontSizeAdjust?: (fontSize: number) => void;
9
+ } & ButtonHTMLAttributes<HTMLButtonElement>;
10
+ /** Tab of the game menu tab bar: 28x28 icon above a single-line label. */
11
+ export declare const TabBarItem: FC<TProps>;
12
+ export {};
@@ -0,0 +1,3 @@
1
+ export { TabBar } from './TabBar';
2
+ export { TabBarIconButton } from './TabBarIconButton';
3
+ export { TabBarItem } from './TabBarItem';
@@ -6,6 +6,8 @@ type TProps = {
6
6
  isTurboActive?: boolean;
7
7
  /** Modal this layer belongs to — input is ignored while another modal is stacked above it */
8
8
  modalName?: TModalName;
9
- } & ButtonHTMLAttributes<HTMLButtonElement>;
10
- export declare const TapAnywhere: ({ onClose, textClassName, isTurboActive, modalName, ...props }: TProps) => import("react/jsx-runtime").JSX.Element;
9
+ /** The host covers the layer with its own page (Game Info on welcome): taps and keys are ignored */
10
+ disabled?: boolean;
11
+ } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'disabled'>;
12
+ export declare const TapAnywhere: ({ onClose, textClassName, isTurboActive, modalName, disabled, ...props }: TProps) => import("react/jsx-runtime").JSX.Element;
11
13
  export {};
@@ -0,0 +1,3 @@
1
+ export { getMenuIsGameInfoTabVisible } from './lib/selectors';
2
+ export { GameInfoLight } from './ui/GameInfoLight/GameInfoLight';
3
+ export { ModalMenu } from './ui/ModalMenu/ModalMenu';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Paytable section of the Game Info tab: shown only when the game actually has paytable content.
3
+ * The blocks come either from the legacy `payTable` config or from the unified `gameInfo` one.
4
+ */
5
+ export declare function getMenuIsPayTableSectionVisible(state: TRootState): boolean;
6
+ /** Rules section of the Game Info tab. */
7
+ export declare function getMenuIsGameInfoSectionVisible(state: TRootState): boolean;
8
+ /** The tab exists while at least one of its two sections does. */
9
+ export declare function getMenuIsGameInfoTabVisible(state: TRootState): boolean;
10
+ export declare function getMenuIsActivityTabVisible(state: TRootState): boolean;
11
+ export declare function getMenuIsSettingsTabVisible(state: TRootState): boolean;
@@ -0,0 +1,25 @@
1
+ import { ComponentType, ElementType } from 'react';
2
+ import { TMenuTab } from '../../../entities/menu';
3
+ export type TMenuTabDescriptor = {
4
+ id: TMenuTab;
5
+ icon: ElementType;
6
+ /**
7
+ * Tab caption, also the shell title (uppercased by the header). Localized and single-line:
8
+ * a translation that does not fit the caption box shrinks the captions of the whole bar
9
+ * together (see `getTabBarLabelFontSize`).
10
+ */
11
+ label: string;
12
+ Content: ComponentType;
13
+ /**
14
+ * The content box is stretched to the full scroll height for this tab, so short content can
15
+ * centre itself in the free area. Opt-in: the other tabs keep hugging their own height, where
16
+ * a percentage height collapses to `auto` as they were written to expect.
17
+ */
18
+ stretch?: boolean;
19
+ };
20
+ /**
21
+ * Tabs the player can actually reach, in tab-bar order. A tab that the integrator hid via
22
+ * `configuration.menu`, or whose content is unavailable, is absent rather than disabled —
23
+ * a game without promoLobby simply gets a shorter bar.
24
+ */
25
+ export declare const useMenuTabs: () => TMenuTabDescriptor[];
@@ -0,0 +1,16 @@
1
+ import { FC } from 'react';
2
+ type TProps = {
3
+ onClose: () => void;
4
+ };
5
+ /**
6
+ * The light Game Info page of the welcome screen: the menu shell trimmed down to a title, a
7
+ * close button and the Game Info content — no tab bar, no home or sound buttons, the other
8
+ * sections are out of reach (GTT-2760).
9
+ *
10
+ * Plain local UI of the welcome screen on purpose: nothing goes through the modals stack or
11
+ * the menu slice, so no session starts, no gameplay lock is armed and the welcome state stays
12
+ * as it was; the cross simply brings the player back to the welcome screen. The layout repeats
13
+ * the menu shell, so the page lands exactly where the in-game Game Info tab would.
14
+ */
15
+ export declare const GameInfoLight: FC<TProps>;
16
+ export {};
@@ -0,0 +1,18 @@
1
+ import { FC } from 'react';
2
+ type TProps = {
3
+ /** Title of the active tab — an inner page of that tab replaces it with its own. */
4
+ title: string;
5
+ onClose: () => void;
6
+ /** Title and close button only, no home or sound: the light Game Info page of the welcome screen */
7
+ light?: boolean;
8
+ };
9
+ /**
10
+ * Menu title row, sitting right under the top line: home button on one side, sound toggle
11
+ * on the other. The home button replaces the one the old menu modal had in its header.
12
+ *
13
+ * An inner page of a tab takes the row over: its own title, and a back button instead of the
14
+ * home and sound buttons. When the tab bar is hidden — the reality check reminder sends the
15
+ * player to a single page of the menu — the row carries the close button the bar would have had.
16
+ */
17
+ export declare const MenuHeader: FC<TProps>;
18
+ export {};
@@ -0,0 +1,11 @@
1
+ import { FC } from 'react';
2
+ import { TMenuTab } from '../../../../entities/menu';
3
+ import { TMenuTabDescriptor } from '../../lib/useMenuTabs';
4
+ type TProps = {
5
+ tabs: TMenuTabDescriptor[];
6
+ activeTabId: TMenuTab;
7
+ onTabClick: (tabId: TMenuTab) => void;
8
+ onClose: () => void;
9
+ };
10
+ export declare const MenuTabBar: FC<TProps>;
11
+ export {};
@@ -0,0 +1,17 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { TMenuTab } from '../../../../entities/menu';
3
+ type TProps = {
4
+ tabId: TMenuTab;
5
+ /** 1 when the player moved right along the tab bar, -1 when left */
6
+ direction: number;
7
+ children: ReactNode;
8
+ };
9
+ /**
10
+ * Content of the active tab, sliding in from the side the player reached for.
11
+ *
12
+ * `mode="wait"` lets the leaving tab finish before the next one mounts, so two tab contents —
13
+ * and their effects, requests and the promo lobby provider — are never alive at the same time.
14
+ * `initial={false}` keeps the content still when the menu has only just opened.
15
+ */
16
+ export declare const MenuTabContent: FC<TProps>;
17
+ export {};
@@ -0,0 +1,2 @@
1
+ /** Rounds history feed, with the details of a round as an inner page of the tab. */
2
+ export declare const ActivityTab: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Symbols/Lines (paytable) and Features/Rules (game information) as one scrollable page.
3
+ *
4
+ * Both config forms end up on the same page:
5
+ *
6
+ * - **legacy** — the integrator passes `payTable` and `gameInfo` separately, and the divider
7
+ * between the two sections is added here;
8
+ * - **new** — one `gameInfo` config describes the whole page, block order included, and the
9
+ * dividers are its own `separator` items.
10
+ *
11
+ * The mode follows from the configs: a `payTable` config means legacy, otherwise the blocks of
12
+ * `gameInfo` are split into sections by the constructor that owns each block type.
13
+ */
14
+ export declare const GameInfoTab: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Reality check plate of the Settings tab: the switch, the reminder intervals it reveals and
3
+ * Save. It replaces the reality check modal, so it also carries what that modal did around the
4
+ * editing — the reminder is paused while the player is here, and whatever was not saved is
5
+ * rolled back on the way out.
6
+ */
7
+ export declare const RealityCheckSettings: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ type TProps = {
2
+ roundId: string;
3
+ };
4
+ /**
5
+ * Details of one round: an inner page of the Activity tab, reached from the feed. Replay and
6
+ * the replay link keep the behaviour they had in the round details modal.
7
+ */
8
+ export declare const RoundDetailsPage: ({ roundId }: TProps) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,2 @@
1
+ /** Sound and reality check, each a plate that opens its own settings in place. */
2
+ export declare const SettingsTab: () => import("react/jsx-runtime").JSX.Element;
@@ -3,10 +3,10 @@ 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
+ render: () => import("react/jsx-runtime").JSX.Element;
6
7
  };
7
8
  export default meta;
8
9
  type TStory = StoryObj<typeof meta>;
9
- export declare const Landscape: TStory;
10
10
  export declare const Portrait: TStory;
11
- export declare const FullScreenUnsupported: TStory;
12
- export declare const RealityCheckOn: TStory;
11
+ export declare const Landscape: TStory;
12
+ export declare const LongLabels: TStory;
@@ -2,14 +2,8 @@ export { ModalAutoPlay } from './ui/ModalAutoPlay/ModalAutoPlay';
2
2
  export { ModalBonusFeature } from './ui/ModalBonusFeature';
3
3
  export { ModalFreeRounds } from './ui/ModalFreeRounds';
4
4
  export { ModalFreeRoundsResult } from './ui/ModalFreeRoundsResult';
5
- export { ModalGameInfo } from './ui/ModalGameInfo';
6
- export { ModalMenu } from './ui/ModalMenu/ModalMenu';
7
- export { ModalPayTable } from './ui/ModalPayTable';
8
- export { ModalRealityCheck } from './ui/ModalRealityCheck';
9
5
  export { ModalRealityCheckReminder } from './ui/ModalRealityCheckReminder';
10
6
  export { ModalReplay } from './ui/ModalReplay';
11
- export { ModalRoundDetails } from './ui/ModalRoundDetails';
12
- export { ModalRoundsHistory } from './ui/ModalRoundsHistory';
13
7
  export { ModalServiceAutoPlay } from './ui/ModalServiceAutoPlay';
14
8
  export { ModalServiceConnectionLost } from './ui/ModalServiceConnectionLost';
15
9
  export { ModalServiceError } from './ui/ModalServiceError';
@@ -20,5 +14,4 @@ export { ModalServiceMaxWin } from './ui/ModalServiceMaxWin';
20
14
  export { ModalServiceQuitTheGame } from './ui/ModalServiceQuitTheGame';
21
15
  export { ModalServiceRestore } from './ui/ModalServiceRestore';
22
16
  export { ModalServiceSessionExpired } from './ui/ModalServiceSessionExpired';
23
- export { ModalSettings } from './ui/ModalSettings';
24
17
  export { ModalStakeAmounts } from './ui/ModalStakeAmounts/ModalStakeAmounts';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truelab/truelogic",
3
- "version": "4.2.0",
3
+ "version": "4.3.0-0",
4
4
  "description": "",
5
5
  "main": "./dist/truelogic.min.js",
6
6
  "types": "./dist/types/src/index.d.ts",