jp.ui.app.toolkit 1.0.18 → 1.0.20

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.
@@ -4,8 +4,9 @@ import { shopScreenSlice } from './shop-screen-slice';
4
4
  import { tablesScreenSlice } from './tables-screen-slice';
5
5
  import { raiseBottomSheetBlockSlice } from './raise-bottom-sheet-block-slice';
6
6
  import { reactionBottomSheetBlockSlice } from './reaction-bottom-sheet-block-slice';
7
- import { wsConnectorSlice } from './ws-connector-slice.ts';
8
- export { appSlice, menuScreenSlice, shopScreenSlice, tablesScreenSlice, raiseBottomSheetBlockSlice, reactionBottomSheetBlockSlice, wsConnectorSlice, };
7
+ import { wsConnectorSlice } from './ws-connector-slice';
8
+ import { gameTableScreenSlice } from './game-table-screen-slice';
9
+ export { appSlice, menuScreenSlice, shopScreenSlice, tablesScreenSlice, raiseBottomSheetBlockSlice, reactionBottomSheetBlockSlice, wsConnectorSlice, gameTableScreenSlice, };
9
10
  export declare function getBaseSlices(): (import("@reduxjs/toolkit").Slice<import("./app-slice").AppSlice, {
10
11
  initApp: (state: import("./app-slice").AppSlice) => {
11
12
  isLoading: boolean;
@@ -114,21 +115,33 @@ export declare function getBaseSlices(): (import("@reduxjs/toolkit").Slice<impor
114
115
  };
115
116
  }, "reactionBottomSheetBlockSlice", "reactionBottomSheetBlockSlice", {
116
117
  getIsOpen: (sliceState: import("./reaction-bottom-sheet-block-slice").ReactionBottomSheetBlockState) => boolean;
117
- }> | import("@reduxjs/toolkit").Slice<import("./ws-connector-slice.ts").WsConnectorState, {
118
- connect: (state: import("./ws-connector-slice.ts").WsConnectorState) => {
118
+ }> | import("@reduxjs/toolkit").Slice<import("./ws-connector-slice").WsConnectorState, {
119
+ connect: (state: import("./ws-connector-slice").WsConnectorState) => {
119
120
  isConnected: boolean;
120
121
  error: object | null;
121
122
  };
122
- connected: (state: import("./ws-connector-slice.ts").WsConnectorState) => {
123
+ connected: (state: import("./ws-connector-slice").WsConnectorState) => {
123
124
  isConnected: boolean;
124
125
  error: object | null;
125
126
  };
126
- disconnect: (state: import("./ws-connector-slice.ts").WsConnectorState, action: import("@reduxjs/toolkit").PayloadAction<string>) => {
127
+ disconnect: (state: import("./ws-connector-slice").WsConnectorState, action: import("@reduxjs/toolkit").PayloadAction<string>) => {
127
128
  isConnected: boolean;
128
129
  error: object | null;
129
130
  };
130
- error: (state: import("./ws-connector-slice.ts").WsConnectorState, action: import("@reduxjs/toolkit").PayloadAction<string>) => import("./ws-connector-slice.ts").WsConnectorState;
131
- message: (state: import("./ws-connector-slice.ts").WsConnectorState, action: import("@reduxjs/toolkit").PayloadAction<object>) => import("./ws-connector-slice.ts").WsConnectorState;
131
+ error: (state: import("./ws-connector-slice").WsConnectorState, action: import("@reduxjs/toolkit").PayloadAction<string>) => import("./ws-connector-slice").WsConnectorState;
132
+ message: (state: import("./ws-connector-slice").WsConnectorState, action: import("@reduxjs/toolkit").PayloadAction<object>) => import("./ws-connector-slice").WsConnectorState;
132
133
  }, "wsConnectorSlice", "wsConnectorSlice", {
133
- getIsConnected: (sliceState: import("./ws-connector-slice.ts").WsConnectorState) => boolean;
134
+ getIsConnected: (sliceState: import("./ws-connector-slice").WsConnectorState) => boolean;
134
135
  }>)[];
136
+ export declare function getBaseSlicesReducer(): {
137
+ appSlice: import("redux").Reducer<import("./app-slice").AppSlice>;
138
+ menuScreenSlice: import("redux").Reducer<import("./menu-screen-slice").MenuScreenState>;
139
+ shopScreenSlice: import("redux").Reducer<import("./shop-screen-slice").ShopScreenState>;
140
+ tablesScreenSlice: import("redux").Reducer<import("./tables-screen-slice").TablesScreenState>;
141
+ raiseBottomSheetBlockSlice: import("redux").Reducer<import("./raise-bottom-sheet-block-slice").RaiseBottomSheetBlockState>;
142
+ reactionBottomSheetBlockSlice: import("redux").Reducer<import("./reaction-bottom-sheet-block-slice").ReactionBottomSheetBlockState>;
143
+ wsConnectorSlice: import("redux").Reducer<import("./ws-connector-slice").WsConnectorState>;
144
+ gameTableScreenSlice: import("redux").Reducer<import("./game-table-screen-slice/reducer").IBaseTableScreenState> & {
145
+ getInitialState: () => import("./game-table-screen-slice/reducer").IBaseTableScreenState;
146
+ };
147
+ };
@@ -1,5 +1,3 @@
1
- export declare const store: import("@reduxjs/toolkit").EnhancedStore<any, import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
2
- dispatch: import("redux-thunk").ThunkDispatch<any, undefined, import("redux").UnknownAction>;
3
- }>, import("redux").StoreEnhancer]>>;
1
+ export declare const store: any;
4
2
  export type RootState = ReturnType<typeof store.getState>;
5
3
  export type AppDispatch = typeof store.dispatch;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jp.ui.app.toolkit",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "types": "dist/index.d.ts",
@@ -19,11 +19,15 @@
19
19
  "@emotion/styled": "^11.13.5",
20
20
  "@material-design-icons/svg": "0.14.15",
21
21
  "@reduxjs/toolkit": "2.9.2",
22
+ "@types/lodash.clonedeep": "4.5.9",
22
23
  "axios": "0.30.2",
23
24
  "dayjs": "1.11.18",
25
+ "jp.common.models": "file:../jp.common.models",
26
+ "jp.common.utils": "1.0.1",
24
27
  "jp.common.view": "1.1.9",
25
28
  "jp.ui.app.ds": "1.0.6",
26
29
  "jp.ui.theme": "1.0.0",
30
+ "lodash.clonedeep": "4.5.0",
27
31
  "mobile-detect": "1.4.5",
28
32
  "react": "^19.2.0",
29
33
  "react-dom": "^19.2.0",
@@ -1,2 +0,0 @@
1
- import * as React from 'react';
2
- export declare const AppRouter: () => React.JSX.Element;
@@ -1,2 +0,0 @@
1
- declare const App: () => import("react").JSX.Element;
2
- export default App;
@@ -1,3 +0,0 @@
1
- import { AxiosResponse } from 'axios';
2
- import type { TableGameStateType } from './table-game-state.type';
3
- export declare function enterTheTableRequest(roomId: string, tableId: string): Promise<AxiosResponse<TableGameStateType>>;
@@ -1,3 +0,0 @@
1
- import { AxiosResponse } from 'axios';
2
- import type { TableGameStateType } from './table-game-state.type';
3
- export declare function moveOnTheTableRequest(roomId: string, tableId: string): Promise<AxiosResponse<TableGameStateType>>;
@@ -1,8 +0,0 @@
1
- export type TableGameStateType = {
2
- roomId: string;
3
- tableId: string;
4
- gameId: string;
5
- pot: number;
6
- players: Array<string>;
7
- actions: Array<string>;
8
- };
@@ -1,3 +0,0 @@
1
- import { AxiosResponse } from 'axios';
2
- import type { TableGameStateType } from './table-game-state.type';
3
- export declare function watchTheTableRequest(roomId: string, tableId: string): Promise<AxiosResponse<TableGameStateType>>;
@@ -1,9 +0,0 @@
1
- export declare enum ChannelTypes {
2
- VK = "VK",
3
- YA = "YA",
4
- OK = "OK",
5
- WEB = "WEB",
6
- AT = "AT",
7
- VKIOS = "VKIOS",
8
- TG = "TG"
9
- }
@@ -1,6 +0,0 @@
1
- export declare enum GameTypes {
2
- JUST_POKER = "JUST_POKER",
3
- JUST_FOOL = "JUST_FOOL",
4
- JUST_BLACK_JACK = "JUST_BLACK_JACK",
5
- JUST_SPADES = "JUST_SPADES"
6
- }
@@ -1,5 +0,0 @@
1
- import { JSX } from 'react';
2
- export type RouteType = {
3
- route: string;
4
- screen: JSX.Element;
5
- };
@@ -1,4 +0,0 @@
1
- import type { AppScreenTypes } from 'jp.common.view';
2
- export type ScreenResponse = {
3
- screen?: AppScreenTypes;
4
- };
@@ -1,7 +0,0 @@
1
- export declare class GlobalStorage {
2
- private static instance;
3
- private data;
4
- static getInstance(): GlobalStorage;
5
- getValue(key: string): string;
6
- setValue(key: string, value: string): void;
7
- }