@pushwoosh/smart-components-kit 1.0.52 → 1.0.53

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.
@@ -5,6 +5,12 @@ import type { API as RpcGatewayPaymentAPI } from '@pushwoosh/rpc-gateway-payment
5
5
  import type { API as RpcGatewayAPI } from '@pushwoosh/rpc-v2-http-api-data';
6
6
  import type { SessionStore } from '@pushwoosh/session-store';
7
7
  import type { SimpleEventEmitter } from './SimpleEventEmitter';
8
+ export type Environment = {
9
+ isPWI: boolean;
10
+ isPushwoosh: boolean;
11
+ isWavesend: boolean;
12
+ isOMO: boolean;
13
+ };
8
14
  export type SPAContextType = {
9
15
  readonly history: History;
10
16
  readonly httpClient: HttpClient;
@@ -25,5 +31,6 @@ export type SPAContextType = {
25
31
  readonly getJsonApiUrl: (method: string) => string;
26
32
  };
27
33
  readonly eventBus: SimpleEventEmitter;
34
+ readonly environment: Environment;
28
35
  readonly __smartComponentsCache: Record<string, any>;
29
36
  };
package/package.json CHANGED
@@ -51,5 +51,5 @@
51
51
  "react": "^16.14.0 || ^18.0.0",
52
52
  "react-dom": "^16.14.0 || ^18.0.0"
53
53
  },
54
- "version": "1.0.52"
54
+ "version": "1.0.53"
55
55
  }