zh-web-sdk 2.1.4 → 2.1.5
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/index.js +5 -5
- package/dist/index.js.map +3 -3
- package/dist/styles.d.ts +0 -1
- package/package.json +1 -1
- package/src/iframe-container/AppContainer.tsx +0 -2
- package/src/styles.ts +2 -5
package/dist/styles.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ export declare const containerMediaStyles: {
|
|
|
9
9
|
[id: string]: CSSProperties;
|
|
10
10
|
};
|
|
11
11
|
export declare const appWrapperStyle: CSSProperties;
|
|
12
|
-
export declare const height: CSSProperties;
|
|
13
12
|
export declare const appWrapperHiddenStyle: CSSProperties;
|
|
14
13
|
export declare const modalStyle: CSSProperties;
|
|
15
14
|
export declare const iframeWrapperStyle: CSSProperties;
|
package/package.json
CHANGED
|
@@ -11,7 +11,6 @@ import {
|
|
|
11
11
|
modalStyle,
|
|
12
12
|
screenSizes,
|
|
13
13
|
appWrapperHiddenStyle,
|
|
14
|
-
height
|
|
15
14
|
} from "../styles";
|
|
16
15
|
import {
|
|
17
16
|
MESSAGE_TYPE_SEND_JWT_TOKEN_ACH_DEPOSITS,
|
|
@@ -149,7 +148,6 @@ const AppContainer = ({
|
|
|
149
148
|
<div
|
|
150
149
|
style={isAppActive ? {
|
|
151
150
|
...appWrapperStyle,
|
|
152
|
-
...height
|
|
153
151
|
} : appWrapperHiddenStyle}
|
|
154
152
|
onClick={() => closeModal(appIdentifier)}
|
|
155
153
|
>
|
package/src/styles.ts
CHANGED
|
@@ -48,15 +48,12 @@ export const appWrapperStyle: CSSProperties = {
|
|
|
48
48
|
alignItems: "center",
|
|
49
49
|
flexDirection: "column",
|
|
50
50
|
width: "100vw",
|
|
51
|
-
height: "
|
|
51
|
+
height: CSS.supports("height: 100dvh") ? "100dvh" : window.innerHeight + "px",
|
|
52
|
+
maxHeight: window.innerHeight + "px",
|
|
52
53
|
background: "rgba(0,0,0,0.5)",
|
|
53
54
|
cursor: "pointer",
|
|
54
55
|
}
|
|
55
56
|
|
|
56
|
-
export const height: CSSProperties = {
|
|
57
|
-
height: "100dvh",
|
|
58
|
-
}
|
|
59
|
-
|
|
60
57
|
export const appWrapperHiddenStyle: CSSProperties = {
|
|
61
58
|
display: "none",
|
|
62
59
|
width: 0,
|