@astropay/payments-lib 2.0.1 → 2.0.2
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/astropay-payments-lib.es.js +1 -1
- package/dist/astropay-payments-lib.umd.js +150 -129
- package/dist/{main-BIfFvI__.js → main-ZcUHJXUX.js} +5499 -5418
- package/dist/{profiler-CxLdnpFk.js → profiler-COmigUcA.js} +1 -1
- package/dist/{startRecording-CL6q7wlP.js → startRecording-BQf7KsKA.js} +1 -1
- package/dist/types/index.d.ts +11 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as A, C, b as ft, i as Y, g as V, N as h, P as X, S as pt, a as B, c as ht, d as mt, e as St, f as q, r as gt, h as Et, j as yt, k as Tt, l as j, m as J, t as _, n as x, o as M, p as K, q as N, u as Q, v as Z, w as Nt, x as vt, y as b, z as D, A as R, B as wt, D as Mt, E as It, F as Rt, G as Ct, H as bt, I as _t, J as Lt, K as Dt, L as xt, M as Ot, O as At, Q as Vt, R as Pt, T as kt, U as zt } from "./main-
|
|
1
|
+
import { s as A, C, b as ft, i as Y, g as V, N as h, P as X, S as pt, a as B, c as ht, d as mt, e as St, f as q, r as gt, h as Et, j as yt, k as Tt, l as j, m as J, t as _, n as x, o as M, p as K, q as N, u as Q, v as Z, w as Nt, x as vt, y as b, z as D, A as R, B as wt, D as Mt, E as It, F as Rt, G as Ct, H as bt, I as _t, J as Lt, K as Dt, L as xt, M as Ot, O as At, Q as Vt, R as Pt, T as kt, U as zt } from "./main-ZcUHJXUX.js";
|
|
2
2
|
const P = /* @__PURE__ */ new WeakMap();
|
|
3
3
|
function T(t) {
|
|
4
4
|
return P.has(t);
|
package/dist/types/index.d.ts
CHANGED
|
@@ -5,14 +5,24 @@ export declare const CONFIG_ENVIRONMENT_VALUES: readonly ["production", "sandbox
|
|
|
5
5
|
export declare const CONFIG_THEME_VALUES: readonly ["light", "dark"];
|
|
6
6
|
export declare const CONFIG_LANGUAGE_VALUES: readonly ["en", "pt", "es"];
|
|
7
7
|
export declare const CONFIG_CURRENCY_MODE_VALUES: readonly ["iso", "symbol"];
|
|
8
|
+
export declare const CONFIG_FONT_SCALE_VALUES: readonly ["sm", "md", "lg"];
|
|
8
9
|
type APEnvironment = (typeof CONFIG_ENVIRONMENT_VALUES)[number];
|
|
9
10
|
type APAvailableTheme = (typeof CONFIG_THEME_VALUES)[number];
|
|
10
11
|
type APAvailableLanguages = (typeof CONFIG_LANGUAGE_VALUES)[number];
|
|
11
12
|
type APAvailableCurrencyMode = (typeof CONFIG_CURRENCY_MODE_VALUES)[number];
|
|
13
|
+
type APAvailableFontScale = (typeof CONFIG_FONT_SCALE_VALUES)[number];
|
|
12
14
|
type APComponentStyles = {
|
|
13
15
|
backgroundColor: string;
|
|
14
16
|
fontFamily: string;
|
|
15
17
|
textColor: string;
|
|
18
|
+
fontScale: APAvailableFontScale | Partial<{
|
|
19
|
+
xSmall: number;
|
|
20
|
+
small: number;
|
|
21
|
+
medium: number;
|
|
22
|
+
base: number;
|
|
23
|
+
large: number;
|
|
24
|
+
xLarge: number;
|
|
25
|
+
}>;
|
|
16
26
|
primaryColor: string;
|
|
17
27
|
textPrimaryColor: string;
|
|
18
28
|
secondaryColor: string;
|
|
@@ -23,11 +33,9 @@ type APComponentStyles = {
|
|
|
23
33
|
messages: {
|
|
24
34
|
success: {
|
|
25
35
|
textColor: string;
|
|
26
|
-
textSize: number;
|
|
27
36
|
};
|
|
28
37
|
error: {
|
|
29
38
|
textColor: string;
|
|
30
|
-
textSize: number;
|
|
31
39
|
};
|
|
32
40
|
};
|
|
33
41
|
input: {
|
|
@@ -329,4 +337,4 @@ type APCardPayment = {
|
|
|
329
337
|
onSuccess?: () => void;
|
|
330
338
|
onError?: () => void;
|
|
331
339
|
};
|
|
332
|
-
export type { APEnvironment, APAvailableTheme, APAvailableLanguages, APAvailableCurrencyMode, APComponentStyles, APCore, APFullCheckout, APPayment, APCardPayment, };
|
|
340
|
+
export type { APEnvironment, APAvailableTheme, APAvailableLanguages, APAvailableCurrencyMode, APAvailableFontScale, APComponentStyles, APCore, APFullCheckout, APPayment, APCardPayment, };
|
package/package.json
CHANGED