@rebilly/framepay-react 3.9.0 → 4.0.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/CHANGELOG.md +11 -0
- package/build/lib/components/injector.d.ts +140 -140
- package/build/lib/components/injector.js +1 -1
- package/package.json +1 -1
- package/src/lib/components/injector.tsx +14 -35
- package/types/injector.d.ts +22 -22
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## [4.0.0](https://github.com/Rebilly/rebilly/compare/framepay-react-v3.9.0...framepay-react-v4.0.0) (2023-10-09)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### ⚠ BREAKING CHANGES
|
|
5
|
+
|
|
6
|
+
* **framepay-react:** Props types (#1694)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **framepay-react:** Props types ([#1694](https://github.com/Rebilly/rebilly/issues/1694)) ([c96787e](https://github.com/Rebilly/rebilly/commit/c96787e586d27990c78ef48d553b1df428d769fa))
|
|
11
|
+
|
|
1
12
|
## [3.9.0](https://github.com/Rebilly/rebilly/compare/framepay-react-v3.8.0...framepay-react-v3.9.0) (2023-10-06)
|
|
2
13
|
|
|
3
14
|
|
|
@@ -1,351 +1,351 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { FramePayApplePayProps, FramePayBankProps, FramePayCardProps, FramePayComponentProps, FramePayGooglePayProps, FramePayIBANProps, FramePayPaypalProps } from '../../../types/injector';
|
|
3
3
|
export declare function withFramePay<OriginalProps extends object>(WrappedComponent: React.ComponentType<OriginalProps & FramePayComponentProps>): {
|
|
4
|
-
new (props:
|
|
4
|
+
new (props: OriginalProps | Readonly<OriginalProps>): {
|
|
5
5
|
render(): JSX.Element;
|
|
6
6
|
context: unknown;
|
|
7
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OriginalProps
|
|
7
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OriginalProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
8
8
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
9
|
-
readonly props: Readonly<OriginalProps
|
|
9
|
+
readonly props: Readonly<OriginalProps>;
|
|
10
10
|
state: Readonly<{}>;
|
|
11
11
|
refs: {
|
|
12
12
|
[key: string]: React.ReactInstance;
|
|
13
13
|
};
|
|
14
14
|
componentDidMount?(): void;
|
|
15
|
-
shouldComponentUpdate?(nextProps: Readonly<OriginalProps
|
|
15
|
+
shouldComponentUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
16
16
|
componentWillUnmount?(): void;
|
|
17
17
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
18
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<OriginalProps
|
|
19
|
-
componentDidUpdate?(prevProps: Readonly<OriginalProps
|
|
18
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<OriginalProps>, prevState: Readonly<{}>): any;
|
|
19
|
+
componentDidUpdate?(prevProps: Readonly<OriginalProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
20
20
|
componentWillMount?(): void;
|
|
21
21
|
UNSAFE_componentWillMount?(): void;
|
|
22
|
-
componentWillReceiveProps?(nextProps: Readonly<OriginalProps
|
|
23
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<OriginalProps
|
|
24
|
-
componentWillUpdate?(nextProps: Readonly<OriginalProps
|
|
25
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<OriginalProps
|
|
22
|
+
componentWillReceiveProps?(nextProps: Readonly<OriginalProps>, nextContext: any): void;
|
|
23
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<OriginalProps>, nextContext: any): void;
|
|
24
|
+
componentWillUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
25
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
26
26
|
};
|
|
27
|
-
new (props: OriginalProps
|
|
27
|
+
new (props: OriginalProps, context: any): {
|
|
28
28
|
render(): JSX.Element;
|
|
29
29
|
context: unknown;
|
|
30
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OriginalProps
|
|
30
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OriginalProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
31
31
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
32
|
-
readonly props: Readonly<OriginalProps
|
|
32
|
+
readonly props: Readonly<OriginalProps>;
|
|
33
33
|
state: Readonly<{}>;
|
|
34
34
|
refs: {
|
|
35
35
|
[key: string]: React.ReactInstance;
|
|
36
36
|
};
|
|
37
37
|
componentDidMount?(): void;
|
|
38
|
-
shouldComponentUpdate?(nextProps: Readonly<OriginalProps
|
|
38
|
+
shouldComponentUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
39
39
|
componentWillUnmount?(): void;
|
|
40
40
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
41
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<OriginalProps
|
|
42
|
-
componentDidUpdate?(prevProps: Readonly<OriginalProps
|
|
41
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<OriginalProps>, prevState: Readonly<{}>): any;
|
|
42
|
+
componentDidUpdate?(prevProps: Readonly<OriginalProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
43
43
|
componentWillMount?(): void;
|
|
44
44
|
UNSAFE_componentWillMount?(): void;
|
|
45
|
-
componentWillReceiveProps?(nextProps: Readonly<OriginalProps
|
|
46
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<OriginalProps
|
|
47
|
-
componentWillUpdate?(nextProps: Readonly<OriginalProps
|
|
48
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<OriginalProps
|
|
45
|
+
componentWillReceiveProps?(nextProps: Readonly<OriginalProps>, nextContext: any): void;
|
|
46
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<OriginalProps>, nextContext: any): void;
|
|
47
|
+
componentWillUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
48
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
49
49
|
};
|
|
50
50
|
readonly displayName: string;
|
|
51
51
|
contextType?: React.Context<any> | undefined;
|
|
52
52
|
};
|
|
53
53
|
export declare function withFramePayCardComponent<OriginalProps extends object>(WrappedComponent: React.ComponentType<OriginalProps & FramePayCardProps>): {
|
|
54
|
-
new (props:
|
|
54
|
+
new (props: OriginalProps | Readonly<OriginalProps>): {
|
|
55
55
|
render(): JSX.Element;
|
|
56
56
|
context: unknown;
|
|
57
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OriginalProps
|
|
57
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OriginalProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
58
58
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
59
|
-
readonly props: Readonly<OriginalProps
|
|
59
|
+
readonly props: Readonly<OriginalProps>;
|
|
60
60
|
state: Readonly<{}>;
|
|
61
61
|
refs: {
|
|
62
62
|
[key: string]: React.ReactInstance;
|
|
63
63
|
};
|
|
64
64
|
componentDidMount?(): void;
|
|
65
|
-
shouldComponentUpdate?(nextProps: Readonly<OriginalProps
|
|
65
|
+
shouldComponentUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
66
66
|
componentWillUnmount?(): void;
|
|
67
67
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
68
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<OriginalProps
|
|
69
|
-
componentDidUpdate?(prevProps: Readonly<OriginalProps
|
|
68
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<OriginalProps>, prevState: Readonly<{}>): any;
|
|
69
|
+
componentDidUpdate?(prevProps: Readonly<OriginalProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
70
70
|
componentWillMount?(): void;
|
|
71
71
|
UNSAFE_componentWillMount?(): void;
|
|
72
|
-
componentWillReceiveProps?(nextProps: Readonly<OriginalProps
|
|
73
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<OriginalProps
|
|
74
|
-
componentWillUpdate?(nextProps: Readonly<OriginalProps
|
|
75
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<OriginalProps
|
|
72
|
+
componentWillReceiveProps?(nextProps: Readonly<OriginalProps>, nextContext: any): void;
|
|
73
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<OriginalProps>, nextContext: any): void;
|
|
74
|
+
componentWillUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
75
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
76
76
|
};
|
|
77
|
-
new (props: OriginalProps
|
|
77
|
+
new (props: OriginalProps, context: any): {
|
|
78
78
|
render(): JSX.Element;
|
|
79
79
|
context: unknown;
|
|
80
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OriginalProps
|
|
80
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OriginalProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
81
81
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
82
|
-
readonly props: Readonly<OriginalProps
|
|
82
|
+
readonly props: Readonly<OriginalProps>;
|
|
83
83
|
state: Readonly<{}>;
|
|
84
84
|
refs: {
|
|
85
85
|
[key: string]: React.ReactInstance;
|
|
86
86
|
};
|
|
87
87
|
componentDidMount?(): void;
|
|
88
|
-
shouldComponentUpdate?(nextProps: Readonly<OriginalProps
|
|
88
|
+
shouldComponentUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
89
89
|
componentWillUnmount?(): void;
|
|
90
90
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
91
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<OriginalProps
|
|
92
|
-
componentDidUpdate?(prevProps: Readonly<OriginalProps
|
|
91
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<OriginalProps>, prevState: Readonly<{}>): any;
|
|
92
|
+
componentDidUpdate?(prevProps: Readonly<OriginalProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
93
93
|
componentWillMount?(): void;
|
|
94
94
|
UNSAFE_componentWillMount?(): void;
|
|
95
|
-
componentWillReceiveProps?(nextProps: Readonly<OriginalProps
|
|
96
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<OriginalProps
|
|
97
|
-
componentWillUpdate?(nextProps: Readonly<OriginalProps
|
|
98
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<OriginalProps
|
|
95
|
+
componentWillReceiveProps?(nextProps: Readonly<OriginalProps>, nextContext: any): void;
|
|
96
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<OriginalProps>, nextContext: any): void;
|
|
97
|
+
componentWillUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
98
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
99
99
|
};
|
|
100
100
|
readonly displayName: string;
|
|
101
101
|
contextType?: React.Context<any> | undefined;
|
|
102
102
|
};
|
|
103
103
|
export declare function withFramePayBankComponent<OriginalProps extends object>(WrappedComponent: React.ComponentType<OriginalProps & FramePayBankProps>): {
|
|
104
|
-
new (props:
|
|
104
|
+
new (props: OriginalProps | Readonly<OriginalProps>): {
|
|
105
105
|
render(): JSX.Element;
|
|
106
106
|
context: unknown;
|
|
107
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OriginalProps
|
|
107
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OriginalProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
108
108
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
109
|
-
readonly props: Readonly<OriginalProps
|
|
109
|
+
readonly props: Readonly<OriginalProps>;
|
|
110
110
|
state: Readonly<{}>;
|
|
111
111
|
refs: {
|
|
112
112
|
[key: string]: React.ReactInstance;
|
|
113
113
|
};
|
|
114
114
|
componentDidMount?(): void;
|
|
115
|
-
shouldComponentUpdate?(nextProps: Readonly<OriginalProps
|
|
115
|
+
shouldComponentUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
116
116
|
componentWillUnmount?(): void;
|
|
117
117
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
118
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<OriginalProps
|
|
119
|
-
componentDidUpdate?(prevProps: Readonly<OriginalProps
|
|
118
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<OriginalProps>, prevState: Readonly<{}>): any;
|
|
119
|
+
componentDidUpdate?(prevProps: Readonly<OriginalProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
120
120
|
componentWillMount?(): void;
|
|
121
121
|
UNSAFE_componentWillMount?(): void;
|
|
122
|
-
componentWillReceiveProps?(nextProps: Readonly<OriginalProps
|
|
123
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<OriginalProps
|
|
124
|
-
componentWillUpdate?(nextProps: Readonly<OriginalProps
|
|
125
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<OriginalProps
|
|
122
|
+
componentWillReceiveProps?(nextProps: Readonly<OriginalProps>, nextContext: any): void;
|
|
123
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<OriginalProps>, nextContext: any): void;
|
|
124
|
+
componentWillUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
125
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
126
126
|
};
|
|
127
|
-
new (props: OriginalProps
|
|
127
|
+
new (props: OriginalProps, context: any): {
|
|
128
128
|
render(): JSX.Element;
|
|
129
129
|
context: unknown;
|
|
130
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OriginalProps
|
|
130
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OriginalProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
131
131
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
132
|
-
readonly props: Readonly<OriginalProps
|
|
132
|
+
readonly props: Readonly<OriginalProps>;
|
|
133
133
|
state: Readonly<{}>;
|
|
134
134
|
refs: {
|
|
135
135
|
[key: string]: React.ReactInstance;
|
|
136
136
|
};
|
|
137
137
|
componentDidMount?(): void;
|
|
138
|
-
shouldComponentUpdate?(nextProps: Readonly<OriginalProps
|
|
138
|
+
shouldComponentUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
139
139
|
componentWillUnmount?(): void;
|
|
140
140
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
141
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<OriginalProps
|
|
142
|
-
componentDidUpdate?(prevProps: Readonly<OriginalProps
|
|
141
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<OriginalProps>, prevState: Readonly<{}>): any;
|
|
142
|
+
componentDidUpdate?(prevProps: Readonly<OriginalProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
143
143
|
componentWillMount?(): void;
|
|
144
144
|
UNSAFE_componentWillMount?(): void;
|
|
145
|
-
componentWillReceiveProps?(nextProps: Readonly<OriginalProps
|
|
146
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<OriginalProps
|
|
147
|
-
componentWillUpdate?(nextProps: Readonly<OriginalProps
|
|
148
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<OriginalProps
|
|
145
|
+
componentWillReceiveProps?(nextProps: Readonly<OriginalProps>, nextContext: any): void;
|
|
146
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<OriginalProps>, nextContext: any): void;
|
|
147
|
+
componentWillUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
148
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
149
149
|
};
|
|
150
150
|
readonly displayName: string;
|
|
151
151
|
contextType?: React.Context<any> | undefined;
|
|
152
152
|
};
|
|
153
153
|
export declare function withFramePayIBANComponent<OriginalProps extends object>(WrappedComponent: React.ComponentType<OriginalProps & FramePayIBANProps>): {
|
|
154
|
-
new (props:
|
|
154
|
+
new (props: OriginalProps | Readonly<OriginalProps>): {
|
|
155
155
|
render(): JSX.Element;
|
|
156
156
|
context: unknown;
|
|
157
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OriginalProps
|
|
157
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OriginalProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
158
158
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
159
|
-
readonly props: Readonly<OriginalProps
|
|
159
|
+
readonly props: Readonly<OriginalProps>;
|
|
160
160
|
state: Readonly<{}>;
|
|
161
161
|
refs: {
|
|
162
162
|
[key: string]: React.ReactInstance;
|
|
163
163
|
};
|
|
164
164
|
componentDidMount?(): void;
|
|
165
|
-
shouldComponentUpdate?(nextProps: Readonly<OriginalProps
|
|
165
|
+
shouldComponentUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
166
166
|
componentWillUnmount?(): void;
|
|
167
167
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
168
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<OriginalProps
|
|
169
|
-
componentDidUpdate?(prevProps: Readonly<OriginalProps
|
|
168
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<OriginalProps>, prevState: Readonly<{}>): any;
|
|
169
|
+
componentDidUpdate?(prevProps: Readonly<OriginalProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
170
170
|
componentWillMount?(): void;
|
|
171
171
|
UNSAFE_componentWillMount?(): void;
|
|
172
|
-
componentWillReceiveProps?(nextProps: Readonly<OriginalProps
|
|
173
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<OriginalProps
|
|
174
|
-
componentWillUpdate?(nextProps: Readonly<OriginalProps
|
|
175
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<OriginalProps
|
|
172
|
+
componentWillReceiveProps?(nextProps: Readonly<OriginalProps>, nextContext: any): void;
|
|
173
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<OriginalProps>, nextContext: any): void;
|
|
174
|
+
componentWillUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
175
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
176
176
|
};
|
|
177
|
-
new (props: OriginalProps
|
|
177
|
+
new (props: OriginalProps, context: any): {
|
|
178
178
|
render(): JSX.Element;
|
|
179
179
|
context: unknown;
|
|
180
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OriginalProps
|
|
180
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OriginalProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
181
181
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
182
|
-
readonly props: Readonly<OriginalProps
|
|
182
|
+
readonly props: Readonly<OriginalProps>;
|
|
183
183
|
state: Readonly<{}>;
|
|
184
184
|
refs: {
|
|
185
185
|
[key: string]: React.ReactInstance;
|
|
186
186
|
};
|
|
187
187
|
componentDidMount?(): void;
|
|
188
|
-
shouldComponentUpdate?(nextProps: Readonly<OriginalProps
|
|
188
|
+
shouldComponentUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
189
189
|
componentWillUnmount?(): void;
|
|
190
190
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
191
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<OriginalProps
|
|
192
|
-
componentDidUpdate?(prevProps: Readonly<OriginalProps
|
|
191
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<OriginalProps>, prevState: Readonly<{}>): any;
|
|
192
|
+
componentDidUpdate?(prevProps: Readonly<OriginalProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
193
193
|
componentWillMount?(): void;
|
|
194
194
|
UNSAFE_componentWillMount?(): void;
|
|
195
|
-
componentWillReceiveProps?(nextProps: Readonly<OriginalProps
|
|
196
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<OriginalProps
|
|
197
|
-
componentWillUpdate?(nextProps: Readonly<OriginalProps
|
|
198
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<OriginalProps
|
|
195
|
+
componentWillReceiveProps?(nextProps: Readonly<OriginalProps>, nextContext: any): void;
|
|
196
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<OriginalProps>, nextContext: any): void;
|
|
197
|
+
componentWillUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
198
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
199
199
|
};
|
|
200
200
|
readonly displayName: string;
|
|
201
201
|
contextType?: React.Context<any> | undefined;
|
|
202
202
|
};
|
|
203
203
|
export declare function withFramePayApplePayComponent<OriginalProps extends object>(WrappedComponent: React.ComponentType<OriginalProps & FramePayApplePayProps>): {
|
|
204
|
-
new (props:
|
|
204
|
+
new (props: OriginalProps | Readonly<OriginalProps>): {
|
|
205
205
|
render(): JSX.Element;
|
|
206
206
|
context: unknown;
|
|
207
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OriginalProps
|
|
207
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OriginalProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
208
208
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
209
|
-
readonly props: Readonly<OriginalProps
|
|
209
|
+
readonly props: Readonly<OriginalProps>;
|
|
210
210
|
state: Readonly<{}>;
|
|
211
211
|
refs: {
|
|
212
212
|
[key: string]: React.ReactInstance;
|
|
213
213
|
};
|
|
214
214
|
componentDidMount?(): void;
|
|
215
|
-
shouldComponentUpdate?(nextProps: Readonly<OriginalProps
|
|
215
|
+
shouldComponentUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
216
216
|
componentWillUnmount?(): void;
|
|
217
217
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
218
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<OriginalProps
|
|
219
|
-
componentDidUpdate?(prevProps: Readonly<OriginalProps
|
|
218
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<OriginalProps>, prevState: Readonly<{}>): any;
|
|
219
|
+
componentDidUpdate?(prevProps: Readonly<OriginalProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
220
220
|
componentWillMount?(): void;
|
|
221
221
|
UNSAFE_componentWillMount?(): void;
|
|
222
|
-
componentWillReceiveProps?(nextProps: Readonly<OriginalProps
|
|
223
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<OriginalProps
|
|
224
|
-
componentWillUpdate?(nextProps: Readonly<OriginalProps
|
|
225
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<OriginalProps
|
|
222
|
+
componentWillReceiveProps?(nextProps: Readonly<OriginalProps>, nextContext: any): void;
|
|
223
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<OriginalProps>, nextContext: any): void;
|
|
224
|
+
componentWillUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
225
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
226
226
|
};
|
|
227
|
-
new (props: OriginalProps
|
|
227
|
+
new (props: OriginalProps, context: any): {
|
|
228
228
|
render(): JSX.Element;
|
|
229
229
|
context: unknown;
|
|
230
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OriginalProps
|
|
230
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OriginalProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
231
231
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
232
|
-
readonly props: Readonly<OriginalProps
|
|
232
|
+
readonly props: Readonly<OriginalProps>;
|
|
233
233
|
state: Readonly<{}>;
|
|
234
234
|
refs: {
|
|
235
235
|
[key: string]: React.ReactInstance;
|
|
236
236
|
};
|
|
237
237
|
componentDidMount?(): void;
|
|
238
|
-
shouldComponentUpdate?(nextProps: Readonly<OriginalProps
|
|
238
|
+
shouldComponentUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
239
239
|
componentWillUnmount?(): void;
|
|
240
240
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
241
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<OriginalProps
|
|
242
|
-
componentDidUpdate?(prevProps: Readonly<OriginalProps
|
|
241
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<OriginalProps>, prevState: Readonly<{}>): any;
|
|
242
|
+
componentDidUpdate?(prevProps: Readonly<OriginalProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
243
243
|
componentWillMount?(): void;
|
|
244
244
|
UNSAFE_componentWillMount?(): void;
|
|
245
|
-
componentWillReceiveProps?(nextProps: Readonly<OriginalProps
|
|
246
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<OriginalProps
|
|
247
|
-
componentWillUpdate?(nextProps: Readonly<OriginalProps
|
|
248
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<OriginalProps
|
|
245
|
+
componentWillReceiveProps?(nextProps: Readonly<OriginalProps>, nextContext: any): void;
|
|
246
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<OriginalProps>, nextContext: any): void;
|
|
247
|
+
componentWillUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
248
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
249
249
|
};
|
|
250
250
|
readonly displayName: string;
|
|
251
251
|
contextType?: React.Context<any> | undefined;
|
|
252
252
|
};
|
|
253
253
|
export declare function withFramePayGooglePayComponent<OriginalProps extends object>(WrappedComponent: React.ComponentType<OriginalProps & FramePayGooglePayProps>): {
|
|
254
|
-
new (props:
|
|
254
|
+
new (props: OriginalProps | Readonly<OriginalProps>): {
|
|
255
255
|
render(): JSX.Element;
|
|
256
256
|
context: unknown;
|
|
257
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OriginalProps
|
|
257
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OriginalProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
258
258
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
259
|
-
readonly props: Readonly<OriginalProps
|
|
259
|
+
readonly props: Readonly<OriginalProps>;
|
|
260
260
|
state: Readonly<{}>;
|
|
261
261
|
refs: {
|
|
262
262
|
[key: string]: React.ReactInstance;
|
|
263
263
|
};
|
|
264
264
|
componentDidMount?(): void;
|
|
265
|
-
shouldComponentUpdate?(nextProps: Readonly<OriginalProps
|
|
265
|
+
shouldComponentUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
266
266
|
componentWillUnmount?(): void;
|
|
267
267
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
268
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<OriginalProps
|
|
269
|
-
componentDidUpdate?(prevProps: Readonly<OriginalProps
|
|
268
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<OriginalProps>, prevState: Readonly<{}>): any;
|
|
269
|
+
componentDidUpdate?(prevProps: Readonly<OriginalProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
270
270
|
componentWillMount?(): void;
|
|
271
271
|
UNSAFE_componentWillMount?(): void;
|
|
272
|
-
componentWillReceiveProps?(nextProps: Readonly<OriginalProps
|
|
273
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<OriginalProps
|
|
274
|
-
componentWillUpdate?(nextProps: Readonly<OriginalProps
|
|
275
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<OriginalProps
|
|
272
|
+
componentWillReceiveProps?(nextProps: Readonly<OriginalProps>, nextContext: any): void;
|
|
273
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<OriginalProps>, nextContext: any): void;
|
|
274
|
+
componentWillUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
275
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
276
276
|
};
|
|
277
|
-
new (props: OriginalProps
|
|
277
|
+
new (props: OriginalProps, context: any): {
|
|
278
278
|
render(): JSX.Element;
|
|
279
279
|
context: unknown;
|
|
280
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OriginalProps
|
|
280
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OriginalProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
281
281
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
282
|
-
readonly props: Readonly<OriginalProps
|
|
282
|
+
readonly props: Readonly<OriginalProps>;
|
|
283
283
|
state: Readonly<{}>;
|
|
284
284
|
refs: {
|
|
285
285
|
[key: string]: React.ReactInstance;
|
|
286
286
|
};
|
|
287
287
|
componentDidMount?(): void;
|
|
288
|
-
shouldComponentUpdate?(nextProps: Readonly<OriginalProps
|
|
288
|
+
shouldComponentUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
289
289
|
componentWillUnmount?(): void;
|
|
290
290
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
291
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<OriginalProps
|
|
292
|
-
componentDidUpdate?(prevProps: Readonly<OriginalProps
|
|
291
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<OriginalProps>, prevState: Readonly<{}>): any;
|
|
292
|
+
componentDidUpdate?(prevProps: Readonly<OriginalProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
293
293
|
componentWillMount?(): void;
|
|
294
294
|
UNSAFE_componentWillMount?(): void;
|
|
295
|
-
componentWillReceiveProps?(nextProps: Readonly<OriginalProps
|
|
296
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<OriginalProps
|
|
297
|
-
componentWillUpdate?(nextProps: Readonly<OriginalProps
|
|
298
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<OriginalProps
|
|
295
|
+
componentWillReceiveProps?(nextProps: Readonly<OriginalProps>, nextContext: any): void;
|
|
296
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<OriginalProps>, nextContext: any): void;
|
|
297
|
+
componentWillUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
298
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
299
299
|
};
|
|
300
300
|
readonly displayName: string;
|
|
301
301
|
contextType?: React.Context<any> | undefined;
|
|
302
302
|
};
|
|
303
303
|
export declare function withFramePayPaypalComponent<OriginalProps extends object>(WrappedComponent: React.ComponentType<OriginalProps & FramePayPaypalProps>): {
|
|
304
|
-
new (props:
|
|
304
|
+
new (props: OriginalProps | Readonly<OriginalProps>): {
|
|
305
305
|
render(): JSX.Element;
|
|
306
306
|
context: unknown;
|
|
307
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OriginalProps
|
|
307
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OriginalProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
308
308
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
309
|
-
readonly props: Readonly<OriginalProps
|
|
309
|
+
readonly props: Readonly<OriginalProps>;
|
|
310
310
|
state: Readonly<{}>;
|
|
311
311
|
refs: {
|
|
312
312
|
[key: string]: React.ReactInstance;
|
|
313
313
|
};
|
|
314
314
|
componentDidMount?(): void;
|
|
315
|
-
shouldComponentUpdate?(nextProps: Readonly<OriginalProps
|
|
315
|
+
shouldComponentUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
316
316
|
componentWillUnmount?(): void;
|
|
317
317
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
318
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<OriginalProps
|
|
319
|
-
componentDidUpdate?(prevProps: Readonly<OriginalProps
|
|
318
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<OriginalProps>, prevState: Readonly<{}>): any;
|
|
319
|
+
componentDidUpdate?(prevProps: Readonly<OriginalProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
320
320
|
componentWillMount?(): void;
|
|
321
321
|
UNSAFE_componentWillMount?(): void;
|
|
322
|
-
componentWillReceiveProps?(nextProps: Readonly<OriginalProps
|
|
323
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<OriginalProps
|
|
324
|
-
componentWillUpdate?(nextProps: Readonly<OriginalProps
|
|
325
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<OriginalProps
|
|
322
|
+
componentWillReceiveProps?(nextProps: Readonly<OriginalProps>, nextContext: any): void;
|
|
323
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<OriginalProps>, nextContext: any): void;
|
|
324
|
+
componentWillUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
325
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
326
326
|
};
|
|
327
|
-
new (props: OriginalProps
|
|
327
|
+
new (props: OriginalProps, context: any): {
|
|
328
328
|
render(): JSX.Element;
|
|
329
329
|
context: unknown;
|
|
330
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OriginalProps
|
|
330
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OriginalProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
331
331
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
332
|
-
readonly props: Readonly<OriginalProps
|
|
332
|
+
readonly props: Readonly<OriginalProps>;
|
|
333
333
|
state: Readonly<{}>;
|
|
334
334
|
refs: {
|
|
335
335
|
[key: string]: React.ReactInstance;
|
|
336
336
|
};
|
|
337
337
|
componentDidMount?(): void;
|
|
338
|
-
shouldComponentUpdate?(nextProps: Readonly<OriginalProps
|
|
338
|
+
shouldComponentUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
339
339
|
componentWillUnmount?(): void;
|
|
340
340
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
341
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<OriginalProps
|
|
342
|
-
componentDidUpdate?(prevProps: Readonly<OriginalProps
|
|
341
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<OriginalProps>, prevState: Readonly<{}>): any;
|
|
342
|
+
componentDidUpdate?(prevProps: Readonly<OriginalProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
343
343
|
componentWillMount?(): void;
|
|
344
344
|
UNSAFE_componentWillMount?(): void;
|
|
345
|
-
componentWillReceiveProps?(nextProps: Readonly<OriginalProps
|
|
346
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<OriginalProps
|
|
347
|
-
componentWillUpdate?(nextProps: Readonly<OriginalProps
|
|
348
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<OriginalProps
|
|
345
|
+
componentWillReceiveProps?(nextProps: Readonly<OriginalProps>, nextContext: any): void;
|
|
346
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<OriginalProps>, nextContext: any): void;
|
|
347
|
+
componentWillUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
348
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<OriginalProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
349
349
|
};
|
|
350
350
|
readonly displayName: string;
|
|
351
351
|
contextType?: React.Context<any> | undefined;
|
|
@@ -372,4 +372,4 @@ function withFramePayPaypalComponent(WrappedComponent) {
|
|
|
372
372
|
_a;
|
|
373
373
|
}
|
|
374
374
|
exports.withFramePayPaypalComponent = withFramePayPaypalComponent;
|
|
375
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
375
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5qZWN0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL2NvbXBvbmVudHMvaW5qZWN0b3IudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxzQ0FBc0M7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUV0QywyQ0FBK0I7QUFDL0Isc0NBQTZDO0FBQzdDLGlGQUFtRTtBQUNuRSx5RUFBMkQ7QUFDM0QseUVBQTJEO0FBQzNELG1GQUFxRTtBQUNyRSx5RUFBMkQ7QUFDM0QsNkVBQStEO0FBWS9ELElBQU0sZ0JBQWdCLEdBQUcsVUFBQyxJQUFxQjtJQUMzQyxPQUFBLE1BQU0sQ0FBQyxNQUFNLENBQUMsTUFBTSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsR0FBRyxJQUFJLEVBQUUsQ0FBQyxFQUFFO1FBQ3pDLEtBQUssRUFBRSxJQUFJLENBQUMsS0FBSztRQUNqQixLQUFLLEVBQUUsSUFBSSxDQUFDLEtBQUs7S0FDcEIsQ0FBaUI7QUFIbEIsQ0FHa0IsQ0FBQztBQUV2QixTQUFTLEdBQUcsQ0FDUixJQUFZLEVBQ1osZ0JBQXdDLEVBQ3hDLFFBQTJDOztJQUUzQztZQUFxQiwyQkFBc0I7WUFBcEM7O1lBbUJQLENBQUM7WUFkRyx3QkFBTSxHQUFOO2dCQUFBLGlCQWFDO2dCQVpHLE9BQU8sQ0FDSCxvQkFBQyx5QkFBZSxRQUNYLFVBQUMsS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kFBTSxHQUFOO2dCQUFBLGlCQWdCQztnQkFmRyxPQUFPLENBQ0gsb0JBQUMseUJBQWUsUUFDWCxVQUFDLElBQXFCO29CQUNuQixPQUFPLENBQ0gsb0JBQUMsZ0JBQWdCLDhDQUVOLEtBQUksQ0FBQyxLQUFLLEdBQ1YsUUFBUSxLQUNYLE9BQU8sRUFBRSxnQkFBZ0IsQ0FBQyxJQUFJLENBQUMsS0FFckMsQ0FDTCxDQUFDO2dCQUNOLENBQUMsQ0FDYSxDQUNyQixDQUFDO1lBQ04sQ0FBQztZQUNMLGNBQUM7UUFBRCxDQUFDLEFBdEJNLENBQWMsS0FBSyxDQUFDLFNBQVM7UUFDaEIsY0FBVyxHQUFHLHFDQUE4QixJQUFJLGNBQzVELGdCQUFnQixDQUFDLFdBQVcsSUFBSSxnQkFBZ0IsQ0FBQyxJQUFJLElBQUksV0FBVyxNQUNwRTtXQW1CTjtBQUNOLENBQUM7QUEzQkQsa0VBMkJDIn0=
|
package/package.json
CHANGED
|
@@ -271,11 +271,8 @@ export function withFramePay<OriginalProps extends object>(
|
|
|
271
271
|
...elementsFabric('applePay'),
|
|
272
272
|
...elementsFabric('googlePay'),
|
|
273
273
|
...elementsFabric('paypal')
|
|
274
|
-
};
|
|
275
|
-
return class extends React.Component<
|
|
276
|
-
OriginalProps & FramePayComponentProps,
|
|
277
|
-
{}
|
|
278
|
-
> {
|
|
274
|
+
} as FramePayComponentProps;
|
|
275
|
+
return class extends React.Component<OriginalProps, {}> {
|
|
279
276
|
static readonly displayName = `withFramePay${name}(${
|
|
280
277
|
WrappedComponent.displayName || WrappedComponent.name || 'Component'
|
|
281
278
|
})`;
|
|
@@ -303,11 +300,8 @@ export function withFramePay<OriginalProps extends object>(
|
|
|
303
300
|
export function withFramePayCardComponent<OriginalProps extends object>(
|
|
304
301
|
WrappedComponent: React.ComponentType<OriginalProps & FramePayCardProps>
|
|
305
302
|
) {
|
|
306
|
-
const elements = elementsFabric('card');
|
|
307
|
-
return class extends React.Component<
|
|
308
|
-
OriginalProps & FramePayCardProps,
|
|
309
|
-
{}
|
|
310
|
-
> {
|
|
303
|
+
const elements = elementsFabric('card') as FramePayCardProps;
|
|
304
|
+
return class extends React.Component<OriginalProps, {}> {
|
|
311
305
|
static readonly displayName = `withFramePayCardComponent${name}(${
|
|
312
306
|
WrappedComponent.displayName || WrappedComponent.name || 'Component'
|
|
313
307
|
})`;
|
|
@@ -335,11 +329,8 @@ export function withFramePayCardComponent<OriginalProps extends object>(
|
|
|
335
329
|
export function withFramePayBankComponent<OriginalProps extends object>(
|
|
336
330
|
WrappedComponent: React.ComponentType<OriginalProps & FramePayBankProps>
|
|
337
331
|
) {
|
|
338
|
-
const elements = elementsFabric('bankAccount');
|
|
339
|
-
return class extends React.Component<
|
|
340
|
-
OriginalProps & FramePayBankProps,
|
|
341
|
-
{}
|
|
342
|
-
> {
|
|
332
|
+
const elements = elementsFabric('bankAccount') as FramePayBankProps;
|
|
333
|
+
return class extends React.Component<OriginalProps, {}> {
|
|
343
334
|
static readonly displayName = `withFramePayBankComponent${name}(${
|
|
344
335
|
WrappedComponent.displayName || WrappedComponent.name || 'Component'
|
|
345
336
|
})`;
|
|
@@ -367,11 +358,8 @@ export function withFramePayBankComponent<OriginalProps extends object>(
|
|
|
367
358
|
export function withFramePayIBANComponent<OriginalProps extends object>(
|
|
368
359
|
WrappedComponent: React.ComponentType<OriginalProps & FramePayIBANProps>
|
|
369
360
|
) {
|
|
370
|
-
const elements = elementsFabric('iban');
|
|
371
|
-
return class extends React.Component<
|
|
372
|
-
OriginalProps & FramePayIBANProps,
|
|
373
|
-
{}
|
|
374
|
-
> {
|
|
361
|
+
const elements = elementsFabric('iban') as FramePayIBANProps;
|
|
362
|
+
return class extends React.Component<OriginalProps, {}> {
|
|
375
363
|
static readonly displayName = `withFramePayIBANComponent${name}(${
|
|
376
364
|
WrappedComponent.displayName || WrappedComponent.name || 'Component'
|
|
377
365
|
})`;
|
|
@@ -399,11 +387,8 @@ export function withFramePayIBANComponent<OriginalProps extends object>(
|
|
|
399
387
|
export function withFramePayApplePayComponent<OriginalProps extends object>(
|
|
400
388
|
WrappedComponent: React.ComponentType<OriginalProps & FramePayApplePayProps>
|
|
401
389
|
) {
|
|
402
|
-
const elements = elementsFabric('applePay');
|
|
403
|
-
return class extends React.Component<
|
|
404
|
-
OriginalProps & FramePayApplePayProps,
|
|
405
|
-
{}
|
|
406
|
-
> {
|
|
390
|
+
const elements = elementsFabric('applePay') as FramePayApplePayProps;
|
|
391
|
+
return class extends React.Component<OriginalProps, {}> {
|
|
407
392
|
static readonly displayName = `withFramePayApplePayComponent${name}(${
|
|
408
393
|
WrappedComponent.displayName || WrappedComponent.name || 'Component'
|
|
409
394
|
})`;
|
|
@@ -433,11 +418,8 @@ export function withFramePayGooglePayComponent<OriginalProps extends object>(
|
|
|
433
418
|
OriginalProps & FramePayGooglePayProps
|
|
434
419
|
>
|
|
435
420
|
) {
|
|
436
|
-
const elements = elementsFabric('googlePay');
|
|
437
|
-
return class extends React.Component<
|
|
438
|
-
OriginalProps & FramePayGooglePayProps,
|
|
439
|
-
{}
|
|
440
|
-
> {
|
|
421
|
+
const elements = elementsFabric('googlePay') as FramePayGooglePayProps;
|
|
422
|
+
return class extends React.Component<OriginalProps, {}> {
|
|
441
423
|
static readonly displayName = `withFramePayGooglePayComponent${name}(${
|
|
442
424
|
WrappedComponent.displayName || WrappedComponent.name || 'Component'
|
|
443
425
|
})`;
|
|
@@ -465,11 +447,8 @@ export function withFramePayGooglePayComponent<OriginalProps extends object>(
|
|
|
465
447
|
export function withFramePayPaypalComponent<OriginalProps extends object>(
|
|
466
448
|
WrappedComponent: React.ComponentType<OriginalProps & FramePayPaypalProps>
|
|
467
449
|
) {
|
|
468
|
-
const elements = elementsFabric('paypal');
|
|
469
|
-
return class extends React.Component<
|
|
470
|
-
OriginalProps & FramePayPaypalProps,
|
|
471
|
-
{}
|
|
472
|
-
> {
|
|
450
|
+
const elements = elementsFabric('paypal') as FramePayPaypalProps;
|
|
451
|
+
return class extends React.Component<OriginalProps, {}> {
|
|
473
452
|
static readonly displayName = `withFramePayPaypalComponent${name}(${
|
|
474
453
|
WrappedComponent.displayName || WrappedComponent.name || 'Component'
|
|
475
454
|
})`;
|
package/types/injector.d.ts
CHANGED
|
@@ -3,56 +3,56 @@ export interface FramePayComponentProps {
|
|
|
3
3
|
readonly Rebilly: RebillyProps;
|
|
4
4
|
|
|
5
5
|
// Card Components
|
|
6
|
-
readonly CardCvvElement: React.
|
|
7
|
-
readonly CardElement: React.
|
|
8
|
-
readonly CardExpiryElement: React.
|
|
9
|
-
readonly CardNumberElement: React.
|
|
6
|
+
readonly CardCvvElement: React.ElementType;
|
|
7
|
+
readonly CardElement: React.ElementType;
|
|
8
|
+
readonly CardExpiryElement: React.ElementType;
|
|
9
|
+
readonly CardNumberElement: React.ElementType;
|
|
10
10
|
|
|
11
11
|
// Bank Components
|
|
12
|
-
readonly BankAccountNumberElement: React.
|
|
13
|
-
readonly BankAccountTypeElement: React.
|
|
14
|
-
readonly BankRoutingNumberElement: React.
|
|
12
|
+
readonly BankAccountNumberElement: React.ElementType;
|
|
13
|
+
readonly BankAccountTypeElement: React.ElementType;
|
|
14
|
+
readonly BankRoutingNumberElement: React.ElementType;
|
|
15
15
|
|
|
16
16
|
// IBAN components
|
|
17
|
-
readonly IBANElement: React.
|
|
17
|
+
readonly IBANElement: React.ElementType;
|
|
18
18
|
|
|
19
19
|
// Express method components
|
|
20
|
-
readonly ApplePayElement: React.
|
|
21
|
-
readonly GooglePayElement: React.
|
|
22
|
-
readonly PaypalElement: React.
|
|
20
|
+
readonly ApplePayElement: React.ElementType;
|
|
21
|
+
readonly GooglePayElement: React.ElementType;
|
|
22
|
+
readonly PaypalElement: React.ElementType;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
export interface FramePayCardProps {
|
|
26
26
|
readonly Rebilly: RebillyProps;
|
|
27
|
-
readonly CardCvvElement: React.
|
|
28
|
-
readonly CardElement: React.
|
|
29
|
-
readonly CardExpiryElement: React.
|
|
30
|
-
readonly CardNumberElement: React.
|
|
27
|
+
readonly CardCvvElement: React.ElementType;
|
|
28
|
+
readonly CardElement: React.ElementType;
|
|
29
|
+
readonly CardExpiryElement: React.ElementType;
|
|
30
|
+
readonly CardNumberElement: React.ElementType;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
export interface FramePayBankProps {
|
|
34
34
|
readonly Rebilly: RebillyProps;
|
|
35
|
-
readonly BankAccountNumberElement: React.
|
|
36
|
-
readonly BankAccountTypeElement: React.
|
|
37
|
-
readonly BankRoutingNumberElement: React.
|
|
35
|
+
readonly BankAccountNumberElement: React.ElementType;
|
|
36
|
+
readonly BankAccountTypeElement: React.ElementType;
|
|
37
|
+
readonly BankRoutingNumberElement: React.ElementType;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
export interface FramePayIBANProps {
|
|
41
41
|
readonly Rebilly: RebillyProps;
|
|
42
|
-
readonly IBANElement: React.
|
|
42
|
+
readonly IBANElement: React.ElementType;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
export interface FramePayApplePayProps {
|
|
46
46
|
readonly Rebilly: RebillyProps;
|
|
47
|
-
readonly ApplePayElement: React.
|
|
47
|
+
readonly ApplePayElement: React.ElementType;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
export interface FramePayGooglePayProps {
|
|
51
51
|
readonly Rebilly: RebillyProps;
|
|
52
|
-
readonly GooglePayElement: React.
|
|
52
|
+
readonly GooglePayElement: React.ElementType;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
export interface FramePayPaypalProps {
|
|
56
56
|
readonly Rebilly: RebillyProps;
|
|
57
|
-
readonly PaypalElement: React.
|
|
57
|
+
readonly PaypalElement: React.ElementType;
|
|
58
58
|
}
|