@getopenpay/openpay-js 0.1.2 → 0.1.3
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.d.ts +123 -1
- package/dist/index.es.js +355 -345
- package/dist/index.umd.js +12 -12
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -48,7 +48,9 @@ declare const CheckoutPaymentMethod: z.ZodObject<{
|
|
|
48
48
|
|
|
49
49
|
declare type CheckoutPaymentMethod = z.infer<typeof CheckoutPaymentMethod>;
|
|
50
50
|
|
|
51
|
-
export declare type Config = ElementsFormProps
|
|
51
|
+
export declare type Config = ElementsFormProps & {
|
|
52
|
+
_frameUrl?: URL;
|
|
53
|
+
};
|
|
52
54
|
|
|
53
55
|
declare class ConnectionManager {
|
|
54
56
|
private connections;
|
|
@@ -87,8 +89,32 @@ declare const ElementsStyle: <T extends z.ZodTypeAny>(placeholderType: T) => z.Z
|
|
|
87
89
|
fontWeight: z.ZodOptional<z.ZodString>;
|
|
88
90
|
margin: z.ZodOptional<z.ZodString>;
|
|
89
91
|
padding: z.ZodOptional<z.ZodString>;
|
|
92
|
+
letterSpacing: z.ZodOptional<z.ZodString>;
|
|
93
|
+
lineHeight: z.ZodOptional<z.ZodString>;
|
|
90
94
|
}, {
|
|
91
95
|
placeholder: T;
|
|
96
|
+
placeholderStyle: z.ZodOptional<z.ZodObject<{
|
|
97
|
+
color: z.ZodOptional<z.ZodString>;
|
|
98
|
+
fontSize: z.ZodOptional<z.ZodString>;
|
|
99
|
+
fontWeight: z.ZodOptional<z.ZodString>;
|
|
100
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
101
|
+
letterSpacing: z.ZodOptional<z.ZodString>;
|
|
102
|
+
lineHeight: z.ZodOptional<z.ZodString>;
|
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
|
104
|
+
color?: string | undefined;
|
|
105
|
+
fontFamily?: string | undefined;
|
|
106
|
+
fontSize?: string | undefined;
|
|
107
|
+
fontWeight?: string | undefined;
|
|
108
|
+
letterSpacing?: string | undefined;
|
|
109
|
+
lineHeight?: string | undefined;
|
|
110
|
+
}, {
|
|
111
|
+
color?: string | undefined;
|
|
112
|
+
fontFamily?: string | undefined;
|
|
113
|
+
fontSize?: string | undefined;
|
|
114
|
+
fontWeight?: string | undefined;
|
|
115
|
+
letterSpacing?: string | undefined;
|
|
116
|
+
lineHeight?: string | undefined;
|
|
117
|
+
}>>;
|
|
92
118
|
}>, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<z.objectUtil.extendShape<{
|
|
93
119
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
94
120
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -97,8 +123,32 @@ declare const ElementsStyle: <T extends z.ZodTypeAny>(placeholderType: T) => z.Z
|
|
|
97
123
|
fontWeight: z.ZodOptional<z.ZodString>;
|
|
98
124
|
margin: z.ZodOptional<z.ZodString>;
|
|
99
125
|
padding: z.ZodOptional<z.ZodString>;
|
|
126
|
+
letterSpacing: z.ZodOptional<z.ZodString>;
|
|
127
|
+
lineHeight: z.ZodOptional<z.ZodString>;
|
|
100
128
|
}, {
|
|
101
129
|
placeholder: T;
|
|
130
|
+
placeholderStyle: z.ZodOptional<z.ZodObject<{
|
|
131
|
+
color: z.ZodOptional<z.ZodString>;
|
|
132
|
+
fontSize: z.ZodOptional<z.ZodString>;
|
|
133
|
+
fontWeight: z.ZodOptional<z.ZodString>;
|
|
134
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
135
|
+
letterSpacing: z.ZodOptional<z.ZodString>;
|
|
136
|
+
lineHeight: z.ZodOptional<z.ZodString>;
|
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
|
138
|
+
color?: string | undefined;
|
|
139
|
+
fontFamily?: string | undefined;
|
|
140
|
+
fontSize?: string | undefined;
|
|
141
|
+
fontWeight?: string | undefined;
|
|
142
|
+
letterSpacing?: string | undefined;
|
|
143
|
+
lineHeight?: string | undefined;
|
|
144
|
+
}, {
|
|
145
|
+
color?: string | undefined;
|
|
146
|
+
fontFamily?: string | undefined;
|
|
147
|
+
fontSize?: string | undefined;
|
|
148
|
+
fontWeight?: string | undefined;
|
|
149
|
+
letterSpacing?: string | undefined;
|
|
150
|
+
lineHeight?: string | undefined;
|
|
151
|
+
}>>;
|
|
102
152
|
}>>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<z.objectUtil.extendShape<{
|
|
103
153
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
104
154
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -107,8 +157,32 @@ declare const ElementsStyle: <T extends z.ZodTypeAny>(placeholderType: T) => z.Z
|
|
|
107
157
|
fontWeight: z.ZodOptional<z.ZodString>;
|
|
108
158
|
margin: z.ZodOptional<z.ZodString>;
|
|
109
159
|
padding: z.ZodOptional<z.ZodString>;
|
|
160
|
+
letterSpacing: z.ZodOptional<z.ZodString>;
|
|
161
|
+
lineHeight: z.ZodOptional<z.ZodString>;
|
|
110
162
|
}, {
|
|
111
163
|
placeholder: T;
|
|
164
|
+
placeholderStyle: z.ZodOptional<z.ZodObject<{
|
|
165
|
+
color: z.ZodOptional<z.ZodString>;
|
|
166
|
+
fontSize: z.ZodOptional<z.ZodString>;
|
|
167
|
+
fontWeight: z.ZodOptional<z.ZodString>;
|
|
168
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
169
|
+
letterSpacing: z.ZodOptional<z.ZodString>;
|
|
170
|
+
lineHeight: z.ZodOptional<z.ZodString>;
|
|
171
|
+
}, "strip", z.ZodTypeAny, {
|
|
172
|
+
color?: string | undefined;
|
|
173
|
+
fontFamily?: string | undefined;
|
|
174
|
+
fontSize?: string | undefined;
|
|
175
|
+
fontWeight?: string | undefined;
|
|
176
|
+
letterSpacing?: string | undefined;
|
|
177
|
+
lineHeight?: string | undefined;
|
|
178
|
+
}, {
|
|
179
|
+
color?: string | undefined;
|
|
180
|
+
fontFamily?: string | undefined;
|
|
181
|
+
fontSize?: string | undefined;
|
|
182
|
+
fontWeight?: string | undefined;
|
|
183
|
+
letterSpacing?: string | undefined;
|
|
184
|
+
lineHeight?: string | undefined;
|
|
185
|
+
}>>;
|
|
112
186
|
}>>, any>[k]; } : never, z.baseObjectInputType<z.objectUtil.extendShape<{
|
|
113
187
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
114
188
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -117,8 +191,32 @@ declare const ElementsStyle: <T extends z.ZodTypeAny>(placeholderType: T) => z.Z
|
|
|
117
191
|
fontWeight: z.ZodOptional<z.ZodString>;
|
|
118
192
|
margin: z.ZodOptional<z.ZodString>;
|
|
119
193
|
padding: z.ZodOptional<z.ZodString>;
|
|
194
|
+
letterSpacing: z.ZodOptional<z.ZodString>;
|
|
195
|
+
lineHeight: z.ZodOptional<z.ZodString>;
|
|
120
196
|
}, {
|
|
121
197
|
placeholder: T;
|
|
198
|
+
placeholderStyle: z.ZodOptional<z.ZodObject<{
|
|
199
|
+
color: z.ZodOptional<z.ZodString>;
|
|
200
|
+
fontSize: z.ZodOptional<z.ZodString>;
|
|
201
|
+
fontWeight: z.ZodOptional<z.ZodString>;
|
|
202
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
203
|
+
letterSpacing: z.ZodOptional<z.ZodString>;
|
|
204
|
+
lineHeight: z.ZodOptional<z.ZodString>;
|
|
205
|
+
}, "strip", z.ZodTypeAny, {
|
|
206
|
+
color?: string | undefined;
|
|
207
|
+
fontFamily?: string | undefined;
|
|
208
|
+
fontSize?: string | undefined;
|
|
209
|
+
fontWeight?: string | undefined;
|
|
210
|
+
letterSpacing?: string | undefined;
|
|
211
|
+
lineHeight?: string | undefined;
|
|
212
|
+
}, {
|
|
213
|
+
color?: string | undefined;
|
|
214
|
+
fontFamily?: string | undefined;
|
|
215
|
+
fontSize?: string | undefined;
|
|
216
|
+
fontWeight?: string | undefined;
|
|
217
|
+
letterSpacing?: string | undefined;
|
|
218
|
+
lineHeight?: string | undefined;
|
|
219
|
+
}>>;
|
|
122
220
|
}>> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<z.objectUtil.extendShape<{
|
|
123
221
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
124
222
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -127,8 +225,32 @@ declare const ElementsStyle: <T extends z.ZodTypeAny>(placeholderType: T) => z.Z
|
|
|
127
225
|
fontWeight: z.ZodOptional<z.ZodString>;
|
|
128
226
|
margin: z.ZodOptional<z.ZodString>;
|
|
129
227
|
padding: z.ZodOptional<z.ZodString>;
|
|
228
|
+
letterSpacing: z.ZodOptional<z.ZodString>;
|
|
229
|
+
lineHeight: z.ZodOptional<z.ZodString>;
|
|
130
230
|
}, {
|
|
131
231
|
placeholder: T;
|
|
232
|
+
placeholderStyle: z.ZodOptional<z.ZodObject<{
|
|
233
|
+
color: z.ZodOptional<z.ZodString>;
|
|
234
|
+
fontSize: z.ZodOptional<z.ZodString>;
|
|
235
|
+
fontWeight: z.ZodOptional<z.ZodString>;
|
|
236
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
237
|
+
letterSpacing: z.ZodOptional<z.ZodString>;
|
|
238
|
+
lineHeight: z.ZodOptional<z.ZodString>;
|
|
239
|
+
}, "strip", z.ZodTypeAny, {
|
|
240
|
+
color?: string | undefined;
|
|
241
|
+
fontFamily?: string | undefined;
|
|
242
|
+
fontSize?: string | undefined;
|
|
243
|
+
fontWeight?: string | undefined;
|
|
244
|
+
letterSpacing?: string | undefined;
|
|
245
|
+
lineHeight?: string | undefined;
|
|
246
|
+
}, {
|
|
247
|
+
color?: string | undefined;
|
|
248
|
+
fontFamily?: string | undefined;
|
|
249
|
+
fontSize?: string | undefined;
|
|
250
|
+
fontWeight?: string | undefined;
|
|
251
|
+
letterSpacing?: string | undefined;
|
|
252
|
+
lineHeight?: string | undefined;
|
|
253
|
+
}>>;
|
|
132
254
|
}>>[k_1]; } : never>;
|
|
133
255
|
|
|
134
256
|
declare type ElementsStyle<T extends z.ZodTypeAny> = z.infer<ReturnType<typeof ElementsStyle<T>>>;
|