zh-web-sdk 2.6.0 → 2.7.0
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/dist/iframe-container/AppContainer.d.ts +4 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +7 -7
- package/dist/index.js.map +3 -3
- package/dist/redux/reducers/constants.d.ts +1 -0
- package/dist/redux/reducers/crypto-buy.d.ts +3 -0
- package/dist/redux/reducers/index.d.ts +1 -1
- package/dist/redux/store/index.d.ts +1 -1
- package/dist/types.d.ts +15 -0
- package/package.json +1 -1
- package/src/iframe-container/AppContainer.tsx +42 -11
- package/src/index.tsx +9 -2
- package/src/redux/reducers/constants.ts +2 -1
- package/src/redux/reducers/crypto-buy.ts +13 -2
- package/src/types.ts +17 -0
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { AppIdentifier } from "../types";
|
|
2
|
+
import { AppIdentifier, Filters } from "../types";
|
|
3
3
|
interface AppContainerProps {
|
|
4
4
|
isAppActive?: boolean;
|
|
5
5
|
isAppLoaded?: boolean;
|
|
6
6
|
jwt?: string;
|
|
7
7
|
zeroHashAppURL: string;
|
|
8
8
|
appIdentifier: AppIdentifier;
|
|
9
|
+
filters?: Filters;
|
|
9
10
|
}
|
|
10
|
-
declare const _default: import("react-redux").ConnectedComponent<({ isAppActive, isAppLoaded, jwt, zeroHashAppURL, appIdentifier }: AppContainerProps) => import("react/jsx-runtime").JSX.Element, {
|
|
11
|
+
declare const _default: import("react-redux").ConnectedComponent<({ isAppActive, isAppLoaded, jwt, zeroHashAppURL, appIdentifier, }: AppContainerProps) => import("react/jsx-runtime").JSX.Element, {
|
|
11
12
|
zeroHashAppURL: string;
|
|
12
13
|
appIdentifier: AppIdentifier;
|
|
13
14
|
isAppActive?: boolean | undefined;
|
|
14
15
|
isAppLoaded?: boolean | undefined;
|
|
15
16
|
jwt?: string | undefined;
|
|
17
|
+
filters?: Filters | undefined;
|
|
16
18
|
context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
17
19
|
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
18
20
|
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppIdentifier, IInitializeParameters, IOpenModalParameters, IOpenOnboardingModalParameters, ISetJWTParameters, ISetUserOnboardingJWTParameters, IZeroHashSDK } from "./types";
|
|
1
|
+
import { AppIdentifier, IInitializeParameters, IOpenModalParameters, IOpenOnboardingModalParameters, ISetFiltersParameters, ISetJWTParameters, ISetUserOnboardingJWTParameters, IZeroHashSDK } from "./types";
|
|
2
2
|
export declare class ZeroHashSDK implements IZeroHashSDK {
|
|
3
3
|
private rootQuerySelector;
|
|
4
4
|
private onboardingInitialized;
|
|
@@ -25,6 +25,7 @@ export declare class ZeroHashSDK implements IZeroHashSDK {
|
|
|
25
25
|
* whitelisted IPs that come from your server.
|
|
26
26
|
*/
|
|
27
27
|
setJWT({ jwt, appIdentifier }: ISetJWTParameters): void;
|
|
28
|
+
setFilters({ filters, appIdentifier }: ISetFiltersParameters): void;
|
|
28
29
|
/**
|
|
29
30
|
* setUserOnboardingJWT sets the JWT to be whatever value is provided.
|
|
30
31
|
* The JWT should be the UserJWT provided by ZeroHash via the platform
|
|
@@ -56,7 +57,7 @@ export declare class ZeroHashSDK implements IZeroHashSDK {
|
|
|
56
57
|
/**
|
|
57
58
|
* openModal opens the modal for the appIdentifier provided.
|
|
58
59
|
*/
|
|
59
|
-
openModal({ jwt, appIdentifier }: IOpenModalParameters): void;
|
|
60
|
+
openModal({ jwt, appIdentifier, filters }: IOpenModalParameters): void;
|
|
60
61
|
/**
|
|
61
62
|
* openOnboardingModal opens the onboarding modal
|
|
62
63
|
* @deprecated in favor of openModal({appIdentifier: "onboarding", jwt: <userOnboardingJWT>})
|