@superlogic/spree-pay 0.2.2 → 0.3.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/README.md +1 -0
- package/build/{CryptoComTab-7DN7HG7M.js → CryptoComTab-56XWMDNP.js} +2 -2
- package/build/{CryptoTab-Z46HR527.js → CryptoTab-3T5GBOMU.js} +2 -2
- package/build/{chunk-NQAB4YTR.js → chunk-2NS5OFHY.js} +1 -1
- package/build/{chunk-4BDR3N7M.js → chunk-5N74UPWG.js} +1 -1
- package/build/{chunk-KPMIOTDR.js → chunk-72WHAUEF.js} +28 -31
- package/build/index.cjs +29 -32
- package/build/index.d.cts +2 -1
- package/build/index.d.ts +2 -1
- package/build/index.js +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -120,6 +120,7 @@ type ENV = {
|
|
|
120
120
|
redirect3dsURI: string; // Path to 3DS redirect handler (e.g., '/3ds')
|
|
121
121
|
accessToken?: string; // Optional: provide pre-authenticated token to skip Keycloak SSO
|
|
122
122
|
useWeb3Points?: boolean; // Optional: enable Web3-based points (default: true)
|
|
123
|
+
keycloakClientId?: string; // Optional: custom Keycloak client ID
|
|
123
124
|
};
|
|
124
125
|
```
|
|
125
126
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Iframe3ds
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5N74UPWG.js";
|
|
4
4
|
import {
|
|
5
5
|
InfoBanner,
|
|
6
6
|
Legal,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
useSpreePayRegister,
|
|
13
13
|
useSpreePaymentMethod,
|
|
14
14
|
useStaticConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-72WHAUEF.js";
|
|
16
16
|
|
|
17
17
|
// src/components/CryptoComTab/CryptoComTab.tsx
|
|
18
18
|
import { useCallback, useEffect } from "react";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
CheckoutButton,
|
|
3
3
|
PointsSwitch,
|
|
4
4
|
cn as cn2
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2NS5OFHY.js";
|
|
6
6
|
import {
|
|
7
7
|
Dialog,
|
|
8
8
|
DialogContent,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
useSpreePayConfig,
|
|
17
17
|
useSpreePayRegister,
|
|
18
18
|
useSpreePaymentMethod
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-72WHAUEF.js";
|
|
20
20
|
|
|
21
21
|
// src/components/CryptoTab/Crypto/CryptoWrapper.tsx
|
|
22
22
|
import { useMemo as useMemo2 } from "react";
|
|
@@ -9,7 +9,7 @@ var PaymentType = /* @__PURE__ */ ((PaymentType2) => {
|
|
|
9
9
|
})(PaymentType || {});
|
|
10
10
|
|
|
11
11
|
// package.json
|
|
12
|
-
var version = "0.
|
|
12
|
+
var version = "0.3.0";
|
|
13
13
|
|
|
14
14
|
// src/utils/logger.ts
|
|
15
15
|
var LogLevel = /* @__PURE__ */ ((LogLevel2) => {
|
|
@@ -241,82 +241,79 @@ var config = {
|
|
|
241
241
|
dev: {
|
|
242
242
|
bookit: {
|
|
243
243
|
slapiUrl: "https://slapi.dev.superlogic.com",
|
|
244
|
-
keycloakUrl: "https://auth.dev.join.bookit.com"
|
|
245
|
-
keycloakClientId: "oneof-next"
|
|
244
|
+
keycloakUrl: "https://auth.dev.join.bookit.com"
|
|
246
245
|
},
|
|
247
246
|
moca: {
|
|
248
247
|
slapiUrl: "https://slapi.dev.air.shop",
|
|
249
|
-
keycloakUrl: "https://login.dev.air.shop"
|
|
250
|
-
keycloakClientId: "oneof-next"
|
|
248
|
+
keycloakUrl: "https://login.dev.air.shop"
|
|
251
249
|
},
|
|
252
250
|
qiibee: {
|
|
253
251
|
slapiUrl: "https://slapi.dev.superlogic.com",
|
|
254
|
-
keycloakUrl: "https://sso.dev.tickets.qiibeefoundation.org"
|
|
255
|
-
keycloakClientId: "oneof-next"
|
|
252
|
+
keycloakUrl: "https://sso.dev.tickets.qiibeefoundation.org"
|
|
256
253
|
},
|
|
257
254
|
umhp: {
|
|
258
255
|
slapiUrl: "https://slapi.dev.umusicpassport.com",
|
|
259
|
-
keycloakUrl: "https://auth.dev.umusicpassport.com"
|
|
260
|
-
keycloakClientId: "oneof-next"
|
|
256
|
+
keycloakUrl: "https://auth.dev.umusicpassport.com"
|
|
261
257
|
},
|
|
262
258
|
cdc: {
|
|
263
259
|
slapiUrl: "https://slapi.dev.superlogic.com",
|
|
264
|
-
keycloakUrl: "https://auth.dev02.superlogic.com"
|
|
265
|
-
|
|
260
|
+
keycloakUrl: "https://auth.dev02.superlogic.com"
|
|
261
|
+
},
|
|
262
|
+
tria: {
|
|
263
|
+
slapiUrl: "https://slapi.dev.tria.superlogic.com",
|
|
264
|
+
keycloakUrl: "https://auth.dev.tria.superlogic.com"
|
|
266
265
|
}
|
|
267
266
|
},
|
|
268
267
|
stg: {
|
|
269
268
|
bookit: {
|
|
270
269
|
slapiUrl: "https://slapi.stg.superlogic.com",
|
|
271
|
-
keycloakUrl: "https://auth.stg.join.bookit.com"
|
|
272
|
-
keycloakClientId: "oneof-next"
|
|
270
|
+
keycloakUrl: "https://auth.stg.join.bookit.com"
|
|
273
271
|
},
|
|
274
272
|
moca: {
|
|
275
273
|
slapiUrl: "https://slapi.stg.air.shop",
|
|
276
|
-
keycloakUrl: "https://login.stg.air.shop"
|
|
277
|
-
keycloakClientId: "oneof-next"
|
|
274
|
+
keycloakUrl: "https://login.stg.air.shop"
|
|
278
275
|
},
|
|
279
276
|
qiibee: {
|
|
280
277
|
slapiUrl: "https://slapi.stg.tickets.qiibeefoundation.org",
|
|
281
|
-
keycloakUrl: "https://sso.stg.tickets.qiibeefoundation.org"
|
|
282
|
-
keycloakClientId: "oneof-next"
|
|
278
|
+
keycloakUrl: "https://sso.stg.tickets.qiibeefoundation.org"
|
|
283
279
|
},
|
|
284
280
|
umhp: {
|
|
285
281
|
slapiUrl: "https://slapi.stg.umusicpassport.com",
|
|
286
|
-
keycloakUrl: "https://auth.stg.umusicpassport.com"
|
|
287
|
-
keycloakClientId: "oneof-next"
|
|
282
|
+
keycloakUrl: "https://auth.stg.umusicpassport.com"
|
|
288
283
|
},
|
|
289
284
|
cdc: {
|
|
290
285
|
slapiUrl: "https://slapi.stg.superlogic.com",
|
|
291
|
-
keycloakUrl: "https://auth.stg02.superlogic.com"
|
|
292
|
-
|
|
286
|
+
keycloakUrl: "https://auth.stg02.superlogic.com"
|
|
287
|
+
},
|
|
288
|
+
tria: {
|
|
289
|
+
slapiUrl: "https://slapi.stg.tria.superlogic.com",
|
|
290
|
+
keycloakUrl: "https://auth.stg.tria.superlogic.com"
|
|
293
291
|
}
|
|
294
292
|
},
|
|
295
293
|
prod: {
|
|
296
294
|
bookit: {
|
|
297
295
|
slapiUrl: "https://slapi.superlogic.com",
|
|
298
|
-
keycloakUrl: "https://auth.join.bookit.com"
|
|
299
|
-
keycloakClientId: "oneof-next"
|
|
296
|
+
keycloakUrl: "https://auth.join.bookit.com"
|
|
300
297
|
},
|
|
301
298
|
moca: {
|
|
302
299
|
slapiUrl: "https://slapi.air.shop",
|
|
303
|
-
keycloakUrl: "https://login.air.shop"
|
|
304
|
-
keycloakClientId: "oneof-next"
|
|
300
|
+
keycloakUrl: "https://login.air.shop"
|
|
305
301
|
},
|
|
306
302
|
qiibee: {
|
|
307
303
|
slapiUrl: "https://slapi.tickets.qiibeefoundation.org",
|
|
308
|
-
keycloakUrl: "https://sso.tickets.qiibeefoundation.org"
|
|
309
|
-
keycloakClientId: "oneof-next"
|
|
304
|
+
keycloakUrl: "https://sso.tickets.qiibeefoundation.org"
|
|
310
305
|
},
|
|
311
306
|
umhp: {
|
|
312
307
|
slapiUrl: "https://slapi.umusicpassport.com",
|
|
313
|
-
keycloakUrl: "https://auth.umusicpassport.com"
|
|
314
|
-
keycloakClientId: "oneof-next"
|
|
308
|
+
keycloakUrl: "https://auth.umusicpassport.com"
|
|
315
309
|
},
|
|
316
310
|
cdc: {
|
|
317
311
|
slapiUrl: "https://slapi.superlogic.com",
|
|
318
|
-
keycloakUrl: "https://auth.superlogic.com"
|
|
319
|
-
|
|
312
|
+
keycloakUrl: "https://auth.superlogic.com"
|
|
313
|
+
},
|
|
314
|
+
tria: {
|
|
315
|
+
slapiUrl: "https://auth.travel.tria.so",
|
|
316
|
+
keycloakUrl: "https://slapi.travel.tria.so"
|
|
320
317
|
}
|
|
321
318
|
}
|
|
322
319
|
};
|
package/build/index.cjs
CHANGED
|
@@ -68,7 +68,7 @@ var init_payments = __esm({
|
|
|
68
68
|
var version;
|
|
69
69
|
var init_package = __esm({
|
|
70
70
|
"package.json"() {
|
|
71
|
-
version = "0.
|
|
71
|
+
version = "0.3.0";
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
74
|
|
|
@@ -304,82 +304,79 @@ var init_config = __esm({
|
|
|
304
304
|
dev: {
|
|
305
305
|
bookit: {
|
|
306
306
|
slapiUrl: "https://slapi.dev.superlogic.com",
|
|
307
|
-
keycloakUrl: "https://auth.dev.join.bookit.com"
|
|
308
|
-
keycloakClientId: "oneof-next"
|
|
307
|
+
keycloakUrl: "https://auth.dev.join.bookit.com"
|
|
309
308
|
},
|
|
310
309
|
moca: {
|
|
311
310
|
slapiUrl: "https://slapi.dev.air.shop",
|
|
312
|
-
keycloakUrl: "https://login.dev.air.shop"
|
|
313
|
-
keycloakClientId: "oneof-next"
|
|
311
|
+
keycloakUrl: "https://login.dev.air.shop"
|
|
314
312
|
},
|
|
315
313
|
qiibee: {
|
|
316
314
|
slapiUrl: "https://slapi.dev.superlogic.com",
|
|
317
|
-
keycloakUrl: "https://sso.dev.tickets.qiibeefoundation.org"
|
|
318
|
-
keycloakClientId: "oneof-next"
|
|
315
|
+
keycloakUrl: "https://sso.dev.tickets.qiibeefoundation.org"
|
|
319
316
|
},
|
|
320
317
|
umhp: {
|
|
321
318
|
slapiUrl: "https://slapi.dev.umusicpassport.com",
|
|
322
|
-
keycloakUrl: "https://auth.dev.umusicpassport.com"
|
|
323
|
-
keycloakClientId: "oneof-next"
|
|
319
|
+
keycloakUrl: "https://auth.dev.umusicpassport.com"
|
|
324
320
|
},
|
|
325
321
|
cdc: {
|
|
326
322
|
slapiUrl: "https://slapi.dev.superlogic.com",
|
|
327
|
-
keycloakUrl: "https://auth.dev02.superlogic.com"
|
|
328
|
-
|
|
323
|
+
keycloakUrl: "https://auth.dev02.superlogic.com"
|
|
324
|
+
},
|
|
325
|
+
tria: {
|
|
326
|
+
slapiUrl: "https://slapi.dev.tria.superlogic.com",
|
|
327
|
+
keycloakUrl: "https://auth.dev.tria.superlogic.com"
|
|
329
328
|
}
|
|
330
329
|
},
|
|
331
330
|
stg: {
|
|
332
331
|
bookit: {
|
|
333
332
|
slapiUrl: "https://slapi.stg.superlogic.com",
|
|
334
|
-
keycloakUrl: "https://auth.stg.join.bookit.com"
|
|
335
|
-
keycloakClientId: "oneof-next"
|
|
333
|
+
keycloakUrl: "https://auth.stg.join.bookit.com"
|
|
336
334
|
},
|
|
337
335
|
moca: {
|
|
338
336
|
slapiUrl: "https://slapi.stg.air.shop",
|
|
339
|
-
keycloakUrl: "https://login.stg.air.shop"
|
|
340
|
-
keycloakClientId: "oneof-next"
|
|
337
|
+
keycloakUrl: "https://login.stg.air.shop"
|
|
341
338
|
},
|
|
342
339
|
qiibee: {
|
|
343
340
|
slapiUrl: "https://slapi.stg.tickets.qiibeefoundation.org",
|
|
344
|
-
keycloakUrl: "https://sso.stg.tickets.qiibeefoundation.org"
|
|
345
|
-
keycloakClientId: "oneof-next"
|
|
341
|
+
keycloakUrl: "https://sso.stg.tickets.qiibeefoundation.org"
|
|
346
342
|
},
|
|
347
343
|
umhp: {
|
|
348
344
|
slapiUrl: "https://slapi.stg.umusicpassport.com",
|
|
349
|
-
keycloakUrl: "https://auth.stg.umusicpassport.com"
|
|
350
|
-
keycloakClientId: "oneof-next"
|
|
345
|
+
keycloakUrl: "https://auth.stg.umusicpassport.com"
|
|
351
346
|
},
|
|
352
347
|
cdc: {
|
|
353
348
|
slapiUrl: "https://slapi.stg.superlogic.com",
|
|
354
|
-
keycloakUrl: "https://auth.stg02.superlogic.com"
|
|
355
|
-
|
|
349
|
+
keycloakUrl: "https://auth.stg02.superlogic.com"
|
|
350
|
+
},
|
|
351
|
+
tria: {
|
|
352
|
+
slapiUrl: "https://slapi.stg.tria.superlogic.com",
|
|
353
|
+
keycloakUrl: "https://auth.stg.tria.superlogic.com"
|
|
356
354
|
}
|
|
357
355
|
},
|
|
358
356
|
prod: {
|
|
359
357
|
bookit: {
|
|
360
358
|
slapiUrl: "https://slapi.superlogic.com",
|
|
361
|
-
keycloakUrl: "https://auth.join.bookit.com"
|
|
362
|
-
keycloakClientId: "oneof-next"
|
|
359
|
+
keycloakUrl: "https://auth.join.bookit.com"
|
|
363
360
|
},
|
|
364
361
|
moca: {
|
|
365
362
|
slapiUrl: "https://slapi.air.shop",
|
|
366
|
-
keycloakUrl: "https://login.air.shop"
|
|
367
|
-
keycloakClientId: "oneof-next"
|
|
363
|
+
keycloakUrl: "https://login.air.shop"
|
|
368
364
|
},
|
|
369
365
|
qiibee: {
|
|
370
366
|
slapiUrl: "https://slapi.tickets.qiibeefoundation.org",
|
|
371
|
-
keycloakUrl: "https://sso.tickets.qiibeefoundation.org"
|
|
372
|
-
keycloakClientId: "oneof-next"
|
|
367
|
+
keycloakUrl: "https://sso.tickets.qiibeefoundation.org"
|
|
373
368
|
},
|
|
374
369
|
umhp: {
|
|
375
370
|
slapiUrl: "https://slapi.umusicpassport.com",
|
|
376
|
-
keycloakUrl: "https://auth.umusicpassport.com"
|
|
377
|
-
keycloakClientId: "oneof-next"
|
|
371
|
+
keycloakUrl: "https://auth.umusicpassport.com"
|
|
378
372
|
},
|
|
379
373
|
cdc: {
|
|
380
374
|
slapiUrl: "https://slapi.superlogic.com",
|
|
381
|
-
keycloakUrl: "https://auth.superlogic.com"
|
|
382
|
-
|
|
375
|
+
keycloakUrl: "https://auth.superlogic.com"
|
|
376
|
+
},
|
|
377
|
+
tria: {
|
|
378
|
+
slapiUrl: "https://auth.travel.tria.so",
|
|
379
|
+
keycloakUrl: "https://slapi.travel.tria.so"
|
|
383
380
|
}
|
|
384
381
|
}
|
|
385
382
|
};
|
|
@@ -4901,7 +4898,7 @@ var SpreePayInner = () => {
|
|
|
4901
4898
|
const { isChecking, accessToken } = useKeycloakSSO({
|
|
4902
4899
|
realm: tenantId,
|
|
4903
4900
|
url: staticConfig.keycloakUrl,
|
|
4904
|
-
clientId:
|
|
4901
|
+
clientId: env.keycloakClientId ?? "oneof-next",
|
|
4905
4902
|
ssoPageURI: env?.ssoPageURI,
|
|
4906
4903
|
enabled: !env?.accessToken
|
|
4907
4904
|
});
|
package/build/index.d.cts
CHANGED
|
@@ -14,7 +14,7 @@ declare const SpreePay: FC<SpreePayProps>;
|
|
|
14
14
|
|
|
15
15
|
declare const useCapture3DS: (searchParams: Record<string, string | null>) => void;
|
|
16
16
|
|
|
17
|
-
type TenantId = 'bookit' | 'moca' | 'qiibee' | 'umhp' | 'cdc';
|
|
17
|
+
type TenantId = 'bookit' | 'moca' | 'qiibee' | 'umhp' | 'cdc' | 'tria';
|
|
18
18
|
|
|
19
19
|
type Environment = 'dev' | 'stg' | 'prod';
|
|
20
20
|
type ENV = {
|
|
@@ -24,6 +24,7 @@ type ENV = {
|
|
|
24
24
|
redirect3dsURI: string;
|
|
25
25
|
accessToken?: string;
|
|
26
26
|
useWeb3Points?: boolean;
|
|
27
|
+
keycloakClientId?: string;
|
|
27
28
|
};
|
|
28
29
|
|
|
29
30
|
declare enum BASE_SYMBOLS {
|
package/build/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ declare const SpreePay: FC<SpreePayProps>;
|
|
|
14
14
|
|
|
15
15
|
declare const useCapture3DS: (searchParams: Record<string, string | null>) => void;
|
|
16
16
|
|
|
17
|
-
type TenantId = 'bookit' | 'moca' | 'qiibee' | 'umhp' | 'cdc';
|
|
17
|
+
type TenantId = 'bookit' | 'moca' | 'qiibee' | 'umhp' | 'cdc' | 'tria';
|
|
18
18
|
|
|
19
19
|
type Environment = 'dev' | 'stg' | 'prod';
|
|
20
20
|
type ENV = {
|
|
@@ -24,6 +24,7 @@ type ENV = {
|
|
|
24
24
|
redirect3dsURI: string;
|
|
25
25
|
accessToken?: string;
|
|
26
26
|
useWeb3Points?: boolean;
|
|
27
|
+
keycloakClientId?: string;
|
|
27
28
|
};
|
|
28
29
|
|
|
29
30
|
declare enum BASE_SYMBOLS {
|
package/build/index.js
CHANGED
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
getSplitAmount,
|
|
9
9
|
getTransactionFee,
|
|
10
10
|
useSlapiBalance
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2NS5OFHY.js";
|
|
12
12
|
import {
|
|
13
13
|
Iframe3ds
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5N74UPWG.js";
|
|
15
15
|
import {
|
|
16
16
|
InfoBanner,
|
|
17
17
|
LogLevel,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
useSpreePayRegister,
|
|
32
32
|
useSpreePaymentMethod,
|
|
33
33
|
useStaticConfig
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-72WHAUEF.js";
|
|
35
35
|
|
|
36
36
|
// src/SpreePay.tsx
|
|
37
37
|
import { useCallback as useCallback7, useEffect as useEffect8, useMemo as useMemo7, useState as useState10 } from "react";
|
|
@@ -2190,9 +2190,9 @@ var TabButtons = (props) => {
|
|
|
2190
2190
|
|
|
2191
2191
|
// src/SpreePayContent.tsx
|
|
2192
2192
|
import { jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2193
|
-
var CryptoTab = lazy(() => import("./CryptoTab-
|
|
2193
|
+
var CryptoTab = lazy(() => import("./CryptoTab-3T5GBOMU.js").then((module) => ({ default: module.CryptoTab })));
|
|
2194
2194
|
var CryptoComTab = lazy(
|
|
2195
|
-
() => import("./CryptoComTab-
|
|
2195
|
+
() => import("./CryptoComTab-56XWMDNP.js").then((module) => ({ default: module.CryptoComTab }))
|
|
2196
2196
|
);
|
|
2197
2197
|
var TabLoadingFallback = () => /* @__PURE__ */ jsx18("div", { className: "flex items-center justify-center px-5 py-8 md:px-7", children: /* @__PURE__ */ jsxs11("div", { className: "flex flex-col items-center gap-3", children: [
|
|
2198
2198
|
/* @__PURE__ */ jsx18("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-(--border-component-specific-card) border-t-(--brand-primary)" }),
|
|
@@ -2355,7 +2355,7 @@ var SpreePayInner = () => {
|
|
|
2355
2355
|
const { isChecking, accessToken } = useKeycloakSSO({
|
|
2356
2356
|
realm: tenantId,
|
|
2357
2357
|
url: staticConfig.keycloakUrl,
|
|
2358
|
-
clientId:
|
|
2358
|
+
clientId: env.keycloakClientId ?? "oneof-next",
|
|
2359
2359
|
ssoPageURI: env?.ssoPageURI,
|
|
2360
2360
|
enabled: !env?.accessToken
|
|
2361
2361
|
});
|