@aprilium/tripsm_global-states 0.0.38 → 0.0.40

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
@@ -4,18 +4,22 @@ import { Saga } from 'redux-saga';
4
4
  import { PersistGate } from 'redux-persist/integration/react';
5
5
  import { PersistConfig } from 'redux-persist';
6
6
  import { PassengerState } from '@aprilium/tripsm_passenger/lib/state';
7
+ import { ConstantState } from '@aprilium/tripsm_constants/lib/state';
7
8
  import passengerSaga from '@aprilium/tripsm_passenger/lib/effects';
8
9
  export declare const sagaMiddleware: import("redux-saga").SagaMiddleware<object>;
9
10
  export declare const reducers: {
10
11
  passenger: import("immer-reducer").ImmerReducerFunction<typeof PassengerState>;
12
+ constants: import("immer-reducer").ImmerReducerFunction<typeof ConstantState>;
11
13
  };
12
14
  export declare const initialSagas: {
13
15
  passenger: typeof passengerSaga;
16
+ constants: typeof passengerSaga;
14
17
  };
15
18
  export type States = {
16
19
  passenger: PassengerState;
20
+ constants: ConstantState;
17
21
  };
18
- export type StateName = 'passenger';
22
+ export type StateName = 'passenger' | 'constants';
19
23
  export declare function setUrlConfig(coreApi: string, debugMode?: boolean): void;
20
24
  export declare const sagas: (typeof passengerSaga)[];
21
25
  export declare function initSagaMiddleware(extraSagas?: Array<Saga>, // local sagas from frontEnd Client
package/lib/index.js CHANGED
@@ -59,14 +59,18 @@ var redux_persist_1 = require("redux-persist");
59
59
  var lib_1 = require("@aprilium/tripsm_passenger/lib");
60
60
  //import state
61
61
  var state_1 = require("@aprilium/tripsm_passenger/lib/state");
62
+ var state_2 = require("@aprilium/tripsm_constants/lib/state");
62
63
  //import sagas
63
64
  var effects_2 = __importDefault(require("@aprilium/tripsm_passenger/lib/effects"));
65
+ var effects_3 = __importDefault(require("@aprilium/tripsm_passenger/lib/effects"));
64
66
  exports.sagaMiddleware = (0, redux_saga_1.default)();
65
67
  exports.reducers = {
66
- passenger: state_1.PassengerReducerFunction
68
+ passenger: state_1.PassengerReducerFunction,
69
+ constants: state_2.ConstantsReducerFunction
67
70
  };
68
71
  exports.initialSagas = {
69
- passenger: effects_2.default
72
+ passenger: effects_2.default,
73
+ constants: effects_3.default
70
74
  };
71
75
  function setUrlConfig(coreApi, debugMode) {
72
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.38",
3
+ "version": "0.0.40",
4
4
  "description": "global states",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -12,8 +12,9 @@
12
12
  "build":"tsc"
13
13
  },
14
14
  "dependencies": {
15
- "@aprilium/tripsm_passenger": "^0.0.39",
15
+ "@aprilium/tripsm_passenger": "^0.0.35",
16
16
  "@aprilium/tripsm_common": "^0.0.4",
17
+ "@aprilium/tripsm_constants": "^0.0.2",
17
18
  "@types/react": "^17.0.0",
18
19
  "axios": "^0.21.1",
19
20
  "immer": "^9.0.15",