@pushwoosh/smart-components-kit 1.0.25 → 1.0.26

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.
@@ -1,7 +1,8 @@
1
1
  import { type History } from 'history';
2
2
  import type { GrpcBridge } from '@pushwoosh/grpc-bridge';
3
3
  import type { GrpcClient, HttpClient, RpcClient } from '@pushwoosh/http-client';
4
- import type { API } from '@pushwoosh/rpc-v2-http-api-data';
4
+ import type { API as RpcGatewayJourneyAPI } from '@pushwoosh/rpc-gateway-journey-data';
5
+ import type { API as RpcGatewayAPI } from '@pushwoosh/rpc-v2-http-api-data';
5
6
  import type { SessionStore } from '@pushwoosh/session-store';
6
7
  export type SPAContextType = {
7
8
  readonly history: History;
@@ -10,7 +11,8 @@ export type SPAContextType = {
10
11
  readonly grpcClient: GrpcClient;
11
12
  readonly grpcBridge: GrpcBridge;
12
13
  readonly sessionStore: SessionStore;
13
- readonly rpcGateway: API;
14
+ readonly rpcGateway: RpcGatewayAPI;
15
+ readonly rpcGatewayJourney: RpcGatewayJourneyAPI;
14
16
  readonly language: string;
15
17
  readonly helpers: {
16
18
  getApiOrigin: (name: string) => string;
package/package.json CHANGED
@@ -43,6 +43,7 @@
43
43
  "@pushwoosh/grpc-bridge": "^1.5.36",
44
44
  "@pushwoosh/http-client": "^2.5.0",
45
45
  "@pushwoosh/rpc-v2-http-api-data": "^0.1.501",
46
+ "@pushwoosh/rpc-gateway-journey-data": "^0.26.206",
46
47
  "@pushwoosh/session-store": "^2.5.0",
47
48
  "react": "^16.14.0 || ^18.0.0",
48
49
  "react-dom": "^16.14.0 || ^18.0.0"
@@ -50,5 +51,5 @@
50
51
  "engines": {
51
52
  "node": ">= 18"
52
53
  },
53
- "version": "1.0.25"
54
+ "version": "1.0.26"
54
55
  }