@aprilium/tripsm_global-states 0.0.44 → 0.0.46

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.
package/lib/index.d.ts CHANGED
@@ -3,26 +3,24 @@ import { Store } from 'redux';
3
3
  import { Saga } from 'redux-saga';
4
4
  import { PersistGate } from 'redux-persist/integration/react';
5
5
  import { PersistConfig } from 'redux-persist';
6
- import { PassengerState } from '@aprilium/tripsm_passenger/lib/state';
7
- import { ConstantState } from '@aprilium/tripsm_constants/lib/state';
6
+ import { State as passengerState } from '@aprilium/tripsm_passenger/lib/state';
7
+ import { State as constantState } from '@aprilium/tripsm_constants/lib/state';
8
8
  import passengerSaga from '@aprilium/tripsm_passenger/lib/effects';
9
- import constantsSaga from '@aprilium/tripsm_constants/lib/effects';
10
9
  export declare const sagaMiddleware: import("redux-saga").SagaMiddleware<object>;
11
10
  export declare const reducers: {
12
- passenger: import("immer-reducer").ImmerReducerFunction<typeof PassengerState>;
13
- constants: import("immer-reducer").ImmerReducerFunction<typeof ConstantState>;
11
+ passenger: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger/lib/state").PassengerState>;
12
+ constants: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_constants/lib/state").ConstantState>;
14
13
  };
15
14
  export declare const initialSagas: {
16
15
  passenger: typeof passengerSaga;
17
- constants: typeof constantsSaga;
18
16
  };
19
17
  export type States = {
20
- passenger: PassengerState;
21
- constants: ConstantState;
18
+ passenger: passengerState;
19
+ constants: constantState;
22
20
  };
23
21
  export type StateName = 'passenger' | 'constants';
24
22
  export declare function setUrlConfig(coreApi: string, debugMode?: boolean): void;
25
- export declare const sagas: (typeof passengerSaga | typeof constantsSaga)[];
23
+ export declare const sagas: (typeof passengerSaga)[];
26
24
  export declare function initSagaMiddleware(extraSagas?: Array<Saga>, // local sagas from frontEnd Client
27
25
  waitForRehydrate?: boolean): void;
28
26
  declare function configStore(extraMiddleWares: any[] | undefined, // Adding other middlewares
package/lib/index.js CHANGED
@@ -63,15 +63,14 @@ var state_1 = require("@aprilium/tripsm_passenger/lib/state");
63
63
  var state_2 = require("@aprilium/tripsm_constants/lib/state");
64
64
  //import sagas
65
65
  var effects_2 = __importDefault(require("@aprilium/tripsm_passenger/lib/effects"));
66
- var effects_3 = __importDefault(require("@aprilium/tripsm_constants/lib/effects"));
67
66
  exports.sagaMiddleware = (0, redux_saga_1.default)();
68
67
  exports.reducers = {
69
- passenger: state_1.PassengerReducerFunction,
68
+ passenger: state_1.passengerReducerFunction,
70
69
  constants: state_2.ConstantsReducerFunction
71
70
  };
72
71
  exports.initialSagas = {
73
72
  passenger: effects_2.default,
74
- constants: effects_3.default
73
+ //constants: constantsSaga
75
74
  };
76
75
  function setUrlConfig(coreApi, debugMode) {
77
76
  if (debugMode === void 0) { debugMode = false; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aprilium/tripsm_global-states",
3
- "version": "0.0.44",
3
+ "version": "0.0.46",
4
4
  "description": "global states",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -12,9 +12,9 @@
12
12
  "build":"tsc"
13
13
  },
14
14
  "dependencies": {
15
- "@aprilium/tripsm_passenger": "^0.0.35",
15
+ "@aprilium/tripsm_passenger": "^0.0.36",
16
16
  "@aprilium/tripsm_common": "^0.0.4",
17
- "@aprilium/tripsm_constants": "^0.0.4",
17
+ "@aprilium/tripsm_constants": "^0.0.5",
18
18
  "@types/react": "^17.0.0",
19
19
  "axios": "^0.21.1",
20
20
  "immer": "^9.0.15",