@astropay/payments-lib 2.0.14 → 2.0.15

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.
@@ -1,4 +1,4 @@
1
- import { p as x, V as z, W as H, w as O, X as W, Y as v, Z as X, O as Y, M as Z } from "./main-BRkwwMvM.js";
1
+ import { p as x, V as z, W as H, w as O, X as W, Y as v, Z as X, O as Y, M as Z } from "./main-DZea78vM.js";
2
2
  function q(e) {
3
3
  let t = 0;
4
4
  for (const o of e)
@@ -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-BRkwwMvM.js";
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-DZea78vM.js";
2
2
  const P = /* @__PURE__ */ new WeakMap();
3
3
  function T(t) {
4
4
  return P.has(t);
@@ -202,6 +202,48 @@ type APComponentStyles = {
202
202
  inactiveTextColor: string;
203
203
  itemBorderRadius: number;
204
204
  };
205
+ savedCardSelector: {
206
+ row: {
207
+ borderColor: string;
208
+ borderWidth: number;
209
+ borderRadius: number;
210
+ };
211
+ radio: {
212
+ color: string;
213
+ activeColor: string;
214
+ };
215
+ cardNumber: {
216
+ textColor: string;
217
+ };
218
+ cardMeta: {
219
+ textColor: string;
220
+ };
221
+ deleteButton: {
222
+ color: string;
223
+ hoverColor: string;
224
+ hoverBackgroundColor: string;
225
+ confirmBackground: string;
226
+ confirmTextColor: string;
227
+ confirmActionBackground: string;
228
+ confirmActionColor: string;
229
+ confirmCancelColor: string;
230
+ confirmCancelHoverBackground: string;
231
+ confirmCancelHoverColor: string;
232
+ };
233
+ panel: {
234
+ borderColor: string;
235
+ };
236
+ };
237
+ checkbox: {
238
+ box: {
239
+ borderColor: string;
240
+ size: number;
241
+ borderRadius: number;
242
+ };
243
+ check: {
244
+ iconColor: string;
245
+ };
246
+ };
205
247
  };
206
248
  type APCore = {
207
249
  environment?: APEnvironment;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.0.14",
2
+ "version": "2.0.15",
3
3
  "type": "module",
4
4
  "name": "@astropay/payments-lib",
5
5
  "description": "Official AstroPay payments library for web and mobile.",
@@ -56,6 +56,7 @@
56
56
  "build:test": "tsc -b ./tsconfig.lib.json && vite build",
57
57
  "build": "tsc -b ./tsconfig.lib.json && vite build",
58
58
  "lint": "eslint .",
59
+ "typecheck": "tsc -p ./tsconfig.lib.json --noEmit",
59
60
  "preview": "vite preview",
60
61
  "test": "jest",
61
62
  "test:watch": "jest --watch",
@@ -91,6 +92,7 @@
91
92
  "globals": "^16.0.0",
92
93
  "husky": "^9.1.7",
93
94
  "jest": "^29.7.0",
95
+ "jest-environment-jsdom": "^29.7.0",
94
96
  "prettier": "^3.4.2",
95
97
  "rollup-plugin-visualizer": "^5.14.0",
96
98
  "standard-version": "^9.5.0",