@astropay/payments-lib 1.0.1 → 1.0.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.
@@ -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-Dq44S91z.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-DRDqoMYX.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-Dq44S91z.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-DRDqoMYX.js";
2
2
  const P = /* @__PURE__ */ new WeakMap();
3
3
  function T(t) {
4
4
  return P.has(t);
@@ -23,6 +23,16 @@ type APComponentStyles = {
23
23
  width: string | number;
24
24
  paddingWrapper: string | number;
25
25
  borderRadiusWrapper: string | number;
26
+ messages: {
27
+ success: {
28
+ textColor: string;
29
+ textSize: number;
30
+ };
31
+ error: {
32
+ textColor: string;
33
+ textSize: number;
34
+ };
35
+ };
26
36
  input: {
27
37
  normal: {
28
38
  textColor: string;
@@ -96,6 +106,83 @@ type APComponentStyles = {
96
106
  borderWidth: number;
97
107
  };
98
108
  };
109
+ divider: {
110
+ color: string;
111
+ variant: 'dashed' | 'dotted' | 'solid';
112
+ size: number;
113
+ };
114
+ card: {
115
+ padding: number;
116
+ backgroundColor: string;
117
+ borderWidth: number;
118
+ borderStyle: 'dashed' | 'dotted' | 'solid' | 'none';
119
+ borderColor: string;
120
+ borderRadius: number;
121
+ };
122
+ qrCode: {
123
+ padding: number | string;
124
+ backgroundColor: string;
125
+ borderWidth: number;
126
+ borderStyle: 'dashed' | 'dotted' | 'solid' | 'none';
127
+ borderColor: string;
128
+ borderRadius: number;
129
+ };
130
+ badge: {
131
+ default: {
132
+ padding: number | string;
133
+ textColor: string;
134
+ backgroundColor: string;
135
+ borderWidth: number;
136
+ borderStyle: 'dashed' | 'dotted' | 'solid' | 'none';
137
+ borderColor: string;
138
+ borderRadius: number;
139
+ };
140
+ highlight: {
141
+ padding: number | string;
142
+ textColor: string;
143
+ backgroundColor: string;
144
+ borderWidth: number;
145
+ borderStyle: 'dashed' | 'dotted' | 'solid' | 'none';
146
+ borderColor: string;
147
+ borderRadius: number;
148
+ };
149
+ error: {
150
+ padding: number | string;
151
+ textColor: string;
152
+ backgroundColor: string;
153
+ borderWidth: number;
154
+ borderStyle: 'dashed' | 'dotted' | 'solid' | 'none';
155
+ borderColor: string;
156
+ borderRadius: number;
157
+ };
158
+ success: {
159
+ padding: number | string;
160
+ textColor: string;
161
+ backgroundColor: string;
162
+ borderWidth: number;
163
+ borderStyle: 'dashed' | 'dotted' | 'solid' | 'none';
164
+ borderColor: string;
165
+ borderRadius: number;
166
+ };
167
+ warning: {
168
+ padding: number | string;
169
+ textColor: string;
170
+ backgroundColor: string;
171
+ borderWidth: number;
172
+ borderStyle: 'dashed' | 'dotted' | 'solid' | 'none';
173
+ borderColor: string;
174
+ borderRadius: number;
175
+ };
176
+ };
177
+ timer: {
178
+ padding: number | string;
179
+ textColor: string;
180
+ backgroundColor: string;
181
+ borderWidth: number;
182
+ borderStyle: 'dashed' | 'dotted' | 'solid' | 'none';
183
+ borderColor: string;
184
+ borderRadius: number;
185
+ };
99
186
  };
100
187
  type APCore = {
101
188
  environment?: APEnvironment;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.1",
2
+ "version": "1.0.3",
3
3
  "type": "module",
4
4
  "name": "@astropay/payments-lib",
5
5
  "description": "Official AstroPay payments library for web and mobile.",
@@ -8,14 +8,14 @@
8
8
  "author": {
9
9
  "name": "AstroPay",
10
10
  "email": "support@astropay.com",
11
- "url": "https://developers.astropay.com/help"
11
+ "url": "https://developers.astropay.com/contact"
12
12
  },
13
13
  "publishConfig": {
14
14
  "access": "public"
15
15
  },
16
16
  "repository": {
17
17
  "type": "git",
18
- "url": "https://developers.astropay.com/docs/payments-library"
18
+ "url": "https://developers.astropay.com/docs/accept-astropay/checkout/payment-lib-web/introduction"
19
19
  },
20
20
  "contributors": [
21
21
  {
@@ -52,8 +52,8 @@
52
52
  ],
53
53
  "scripts": {
54
54
  "dev": "vite",
55
- "start": "vite --open --host --mode test",
56
- "build:test": "tsc -b ./tsconfig.lib.json && vite build --mode test",
55
+ "start": "vite --open --host",
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
59
  "preview": "vite preview",
@@ -78,7 +78,6 @@
78
78
  "@commitlint/config-conventional": "^19.7.1",
79
79
  "@emotion/css": "^11.13.5",
80
80
  "@eslint/js": "^9.25.1",
81
- "@testing-library/jest-dom": "^6.6.3",
82
81
  "@types/axios": "^0.14.4",
83
82
  "@types/jest": "^29.5.14",
84
83
  "@types/node": "^22.13.1",
@@ -95,7 +94,6 @@
95
94
  "husky": "^9.1.7",
96
95
  "i18next": "^24.2.2",
97
96
  "jest": "^29.7.0",
98
- "jest-environment-jsdom": "^29.7.0",
99
97
  "prettier": "^3.4.2",
100
98
  "qrcode": "^1.5.4",
101
99
  "rollup-plugin-visualizer": "^5.14.0",
@@ -105,8 +103,7 @@
105
103
  "typescript-eslint": "^8.31.1",
106
104
  "vite": "^6.1.0",
107
105
  "vite-plugin-dts": "^4.5.0",
108
- "vite-plugin-lib-inject-css": "^2.2.1",
109
- "vite-tsconfig-paths": "^5.1.4"
106
+ "vite-plugin-lib-inject-css": "^2.2.1"
110
107
  },
111
108
  "config": {
112
109
  "commitizen": {