@cedros/pay-react 1.1.22 → 1.1.24
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/{AISettingsSection-p3iikbSw.mjs → AISettingsSection-Dw0ZlxMf.mjs} +2 -2
- package/dist/{AISettingsSection-BtOxEweU.js → AISettingsSection-IXS1Wt_1.js} +1 -1
- package/dist/{AutosaveIndicator-CWbb-VXf.mjs → AutosaveIndicator-BJsg_kFZ.mjs} +1 -1
- package/dist/{AutosaveIndicator-C-CH-obR.js → AutosaveIndicator-CY_YHM1D.js} +1 -1
- package/dist/{CedrosContext-D-lnoEkR.js → CedrosContext-7dwmEeUY.js} +2 -2
- package/dist/{CedrosContext-BE6P5PQ0.mjs → CedrosContext-DQUbL8yP.mjs} +105 -88
- package/dist/{CryptoButton-Dy-g3bR0.js → CryptoButton-C1AAOOfj.js} +1 -1
- package/dist/{CryptoButton-CksMkZjL.mjs → CryptoButton-D1BCZBk4.mjs} +51 -51
- package/dist/{FAQSection-DQpF7hVx.js → FAQSection-BmgmzDN5.js} +1 -1
- package/dist/{FAQSection-byh7zfqI.mjs → FAQSection-C78MnK4k.mjs} +1 -1
- package/dist/{MessagingSection-B6EHvjDw.js → MessagingSection-CWLZcg11.js} +1 -1
- package/dist/{MessagingSection-CK208brx.mjs → MessagingSection-De3t8bSI.mjs} +2 -2
- package/dist/OrdersSection-BKOxsZw0.js +1 -0
- package/dist/OrdersSection-_xKVzjSZ.mjs +233 -0
- package/dist/{PaymentSettingsSection-Cmmuhmd4.js → PaymentSettingsSection-BTEn9Dxb.js} +1 -1
- package/dist/{PaymentSettingsSection-B9H253x1.mjs → PaymentSettingsSection-KjU_dN_d.mjs} +1 -1
- package/dist/{SettingsSection-DDLMaEPo.mjs → SettingsSection-8QHZB59k.mjs} +1 -1
- package/dist/{SettingsSection-DrzGdvHH.js → SettingsSection-cKF0tLnS.js} +1 -1
- package/dist/SingleCategorySettings--LK0TZW0.mjs +1006 -0
- package/dist/SingleCategorySettings-CRXTMTo5.js +3 -0
- package/dist/{StorefrontSection-DTpZ_GgO.js → StorefrontSection-C9DzCmOf.js} +1 -1
- package/dist/{StorefrontSection-Dr2ciBVg.mjs → StorefrontSection-CeCpr8hn.mjs} +2 -2
- package/dist/{SubscriptionsSection-CU3Ce8r9.mjs → SubscriptionsSection-C2xk8ApF.mjs} +1 -1
- package/dist/{SubscriptionsSection-CYJpArJ8.js → SubscriptionsSection-Dn5SY6S_.js} +1 -1
- package/dist/Token22Section-DUUl59dZ.js +1 -0
- package/dist/Token22Section-HygkDNtL.mjs +1685 -0
- package/dist/{WalletManager-QcfgQmap.js → WalletManager-Bwk3rgr1.js} +1 -1
- package/dist/{WalletManager-D78miaJ2.mjs → WalletManager-CXvQ0Zu9.mjs} +1 -1
- package/dist/bn-Bv2sKQMU.mjs +1185 -0
- package/dist/bn-CHyy7EgJ.js +1 -0
- package/dist/configApi-Ch0Rr7TD.mjs +554 -0
- package/dist/configApi-CxEbCAgG.js +1 -0
- package/dist/crypto-only.js +1 -1
- package/dist/crypto-only.mjs +54 -52
- package/dist/{index-CufXF9Yd.mjs → index-BHF82XBB.mjs} +6687 -5866
- package/dist/index-OaWkrl0G.js +84 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +34 -32
- package/dist/pay-react_false-CPX8Vyp9.mjs +5 -0
- package/dist/pay-react_false-DaeIe3_l.js +1 -0
- package/dist/{sections-CR7NRsjq.js → sections-8e5Y3ukY.js} +1 -1
- package/dist/sections-C1rb9YRh.mjs +9 -0
- package/dist/src/components/CreditsBalance.d.ts +24 -0
- package/dist/src/components/CreditsBalance.d.ts.map +1 -0
- package/dist/src/components/admin/AssetClassesTab.d.ts +20 -0
- package/dist/src/components/admin/AssetClassesTab.d.ts.map +1 -0
- package/dist/src/components/admin/AssetRedemptionManager.d.ts +21 -0
- package/dist/src/components/admin/AssetRedemptionManager.d.ts.map +1 -0
- package/dist/src/components/admin/CedrosPayAdminDashboard.d.ts +1 -1
- package/dist/src/components/admin/CedrosPayAdminDashboard.d.ts.map +1 -1
- package/dist/src/components/admin/GiftCardComplianceTab.d.ts +3 -0
- package/dist/src/components/admin/GiftCardComplianceTab.d.ts.map +1 -0
- package/dist/src/components/admin/LiquidityPoolTab.d.ts +11 -0
- package/dist/src/components/admin/LiquidityPoolTab.d.ts.map +1 -0
- package/dist/src/components/admin/OrdersSection.d.ts +3 -0
- package/dist/src/components/admin/OrdersSection.d.ts.map +1 -0
- package/dist/src/components/admin/ProductsSection.d.ts.map +1 -1
- package/dist/src/components/admin/RedemptionFormBuilder.d.ts +25 -0
- package/dist/src/components/admin/RedemptionFormBuilder.d.ts.map +1 -0
- package/dist/src/components/admin/Token22Section.d.ts +3 -0
- package/dist/src/components/admin/Token22Section.d.ts.map +1 -0
- package/dist/src/components/admin/configApi.d.ts.map +1 -1
- package/dist/src/components/admin/index.d.ts +3 -0
- package/dist/src/components/admin/index.d.ts.map +1 -1
- package/dist/src/ecommerce/adapters/mock/mockAdapter.d.ts.map +1 -1
- package/dist/src/ecommerce/adapters/paywall/paywallAdapter.d.ts.map +1 -1
- package/dist/src/ecommerce/components/catalog/AssetBadge.d.ts +13 -0
- package/dist/src/ecommerce/components/catalog/AssetBadge.d.ts.map +1 -0
- package/dist/src/ecommerce/components/catalog/ProductCard.d.ts.map +1 -1
- package/dist/src/ecommerce/components/checkout/CheckoutForm.d.ts.map +1 -1
- package/dist/src/ecommerce/components/checkout/CheckoutReceipt.d.ts +9 -2
- package/dist/src/ecommerce/components/checkout/CheckoutReceipt.d.ts.map +1 -1
- package/dist/src/ecommerce/components/checkout/CheckoutSuccessPage.d.ts +7 -1
- package/dist/src/ecommerce/components/checkout/CheckoutSuccessPage.d.ts.map +1 -1
- package/dist/src/ecommerce/components/checkout/RedemptionForm.d.ts +22 -0
- package/dist/src/ecommerce/components/checkout/RedemptionForm.d.ts.map +1 -0
- package/dist/src/ecommerce/components/gift-cards/GiftCardRedemptionPage.d.ts +36 -0
- package/dist/src/ecommerce/components/gift-cards/GiftCardRedemptionPage.d.ts.map +1 -0
- package/dist/src/ecommerce/components/orders/OrderCard.d.ts.map +1 -1
- package/dist/src/ecommerce/components/orders/OrderDetails.d.ts +5 -1
- package/dist/src/ecommerce/components/orders/OrderDetails.d.ts.map +1 -1
- package/dist/src/ecommerce/index.d.ts +6 -0
- package/dist/src/ecommerce/index.d.ts.map +1 -1
- package/dist/src/ecommerce/state/checkout/checkoutSchema.d.ts +1 -0
- package/dist/src/ecommerce/state/checkout/checkoutSchema.d.ts.map +1 -1
- package/dist/src/ecommerce/state/checkout/useCheckout.d.ts.map +1 -1
- package/dist/src/ecommerce/templates/ProductTemplate.d.ts.map +1 -1
- package/dist/src/ecommerce/templates/PurchaseHistoryTemplate.d.ts +5 -1
- package/dist/src/ecommerce/templates/PurchaseHistoryTemplate.d.ts.map +1 -1
- package/dist/src/ecommerce/types.d.ts +20 -0
- package/dist/src/ecommerce/types.d.ts.map +1 -1
- package/dist/src/ecommerce/utils/cartItemMetadata.d.ts.map +1 -1
- package/dist/src/ecommerce/utils/safeHref.d.ts +9 -0
- package/dist/src/ecommerce/utils/safeHref.d.ts.map +1 -0
- package/dist/src/hooks/useCreditsBalance.d.ts +32 -0
- package/dist/src/hooks/useCreditsBalance.d.ts.map +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/managers/CreditsManager.d.ts +15 -0
- package/dist/src/managers/CreditsManager.d.ts.map +1 -1
- package/dist/src/managers/MeteoraPoolManager.d.ts +86 -0
- package/dist/src/managers/MeteoraPoolManager.d.ts.map +1 -0
- package/dist/stripe-only.js +1 -1
- package/dist/stripe-only.mjs +2 -2
- package/dist/{styles-BWrLnaUW.js → styles-21F1-oqx.js} +1 -1
- package/dist/{styles--eKKnfdj.mjs → styles-Ag-7ZvAB.mjs} +46 -46
- package/dist/testing/index.js +1 -1
- package/dist/testing/index.mjs +1 -1
- package/dist/{walletPool-DShNjCQ6.mjs → walletPool-C_0P4mTw.mjs} +1 -1
- package/dist/{walletPool-BqNfOhB0.js → walletPool-Ddv33tej.js} +1 -1
- package/package.json +10 -1
- package/dist/SingleCategorySettings-BU98SRFV.mjs +0 -1418
- package/dist/SingleCategorySettings-DqcXe-q4.js +0 -3
- package/dist/index-IZ4WcMd7.js +0 -84
- package/dist/sections-Bc6ARlND.mjs +0 -8
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./styles-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./styles-21F1-oqx.js"),r=require("./index-OaWkrl0G.js"),t=require("./CedrosContext-7dwmEeUY.js");exports.CEDROS_EVENTS=e.CEDROS_EVENTS;exports.CSP_PRESETS=e.CSP_PRESETS;exports.CedrosPay=e.CedrosPay;exports.CreditsButton=e.CreditsButton;exports.CreditsSubscribeButton=e.CreditsSubscribeButton;exports.PaymentMethodBadge=e.PaymentMethodBadge;exports.PaymentModal=e.PaymentModal;exports.ProductPrice=e.ProductPrice;exports.PurchaseButton=e.PurchaseButton;exports.RPC_PROVIDERS=e.RPC_PROVIDERS;exports.SECURITY_RECOMMENDATIONS=e.SECURITY_RECOMMENDATIONS;exports.StripeButton=e.StripeButton;exports.SubscribeButton=e.SubscribeButton;exports.SubscriptionManagementPanel=e.SubscriptionManagementPanel;exports.calculateDiscountPercentage=e.calculateDiscountPercentage;exports.createTranslator=e.createTranslator;exports.detectLocale=e.detectLocale;exports.emitPaymentError=e.emitPaymentError;exports.emitPaymentProcessing=e.emitPaymentProcessing;exports.emitPaymentStart=e.emitPaymentStart;exports.emitPaymentSuccess=e.emitPaymentSuccess;exports.emitWalletConnect=e.emitWalletConnect;exports.emitWalletConnected=e.emitWalletConnected;exports.emitWalletError=e.emitWalletError;exports.formatCSP=e.formatCSP;exports.formatCouponCodes=e.formatCouponCodes;exports.generateCSP=e.generateCSP;exports.generateCSPDirectives=e.generateCSPDirectives;exports.getAvailableLocales=e.getAvailableLocales;exports.getLocalizedError=e.getLocalizedError;exports.getUserErrorMessage=e.getUserErrorMessage;exports.isRetryableError=e.isRetryableError;exports.loadLocale=e.loadLocale;exports.logSecurityReport=e.logSecurityReport;exports.parseCouponCodes=e.parseCouponCodes;exports.stackCheckoutCoupons=e.stackCheckoutCoupons;exports.useCreditsPayment=e.useCreditsPayment;exports.useCreditsSubscription=e.useCreditsSubscription;exports.useLocalizedError=e.useLocalizedError;exports.usePaymentMode=e.usePaymentMode;exports.useStripeCheckout=e.useStripeCheckout;exports.useSubscription=e.useSubscription;exports.useSubscriptionManagement=e.useSubscriptionManagement;exports.useTranslation=e.useTranslation;exports.validateSecurity=e.validateSecurity;exports.CEDROS_PAY_GROUPS=r.CEDROS_PAY_GROUPS;exports.CEDROS_PAY_SECTIONS=r.CEDROS_PAY_SECTIONS;exports.CEDROS_PAY_SECTION_IDS=r.CEDROS_PAY_SECTION_IDS;exports.CedrosPayAdminDashboard=r.CedrosPayAdminDashboard;exports.CreditsBalance=r.CreditsBalance;exports.cedrosPayPlugin=r.cedrosPayPlugin;exports.ecommerce=r.index;exports.useCreditsBalance=r.useCreditsBalance;exports.CIRCUIT_BREAKER_PRESETS=t.CIRCUIT_BREAKER_PRESETS;exports.CedrosProvider=t.CedrosProvider;exports.CircuitBreakerOpenError=t.CircuitBreakerOpenError;exports.CircuitState=t.CircuitState;exports.ERROR_CATEGORIES=t.ERROR_CATEGORIES;exports.LogLevel=t.LogLevel;exports.Logger=t.Logger;exports.RATE_LIMITER_PRESETS=t.RATE_LIMITER_PRESETS;exports.RETRY_PRESETS=t.RETRY_PRESETS;exports.createCircuitBreaker=t.createCircuitBreaker;exports.createLogger=t.createLogger;exports.createRateLimiter=t.createRateLimiter;exports.getLogger=t.getLogger;exports.retryWithBackoff=t.retryWithBackoff;exports.useCedrosContext=t.useCedrosContext;exports.useCedrosTheme=t.useCedrosTheme;exports.validateConfig=t.validateConfig;
|
package/dist/index.mjs
CHANGED
|
@@ -1,42 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { d as Ea,
|
|
1
|
+
import { C as s, a as t, b as r, c as o, d as i, P as c, e as n, f as C, g as u, R as S, S as E, h as P, i as d, j as R, k as l, l as m, m as g, n as T, o as _, p, q as y, r as b, s as L, t as O, u as B, v as I, w as D, x as f, y as A, z as M, A as h, B as v, D as k, E as N, F as x, G as Y, H as U, I as W, J as z, K as G, L as j, M as K, N as V, O as q, Q as w } from "./styles-Ag-7ZvAB.mjs";
|
|
2
|
+
import { C as H, a as J, b as Q, c as X, d as Z, e as $, i as aa, u as ea } from "./index-BHF82XBB.mjs";
|
|
3
|
+
import { C as ta, a as ra, b as oa, c as ia, E as ca, L as na, d as Ca, R as ua, e as Sa, f as Ea, g as Pa, h as da, i as Ra, r as la, u as ma, j as ga, v as Ta } from "./CedrosContext-DQUbL8yP.mjs";
|
|
4
4
|
export {
|
|
5
5
|
s as CEDROS_EVENTS,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
H as CEDROS_PAY_GROUPS,
|
|
7
|
+
J as CEDROS_PAY_SECTIONS,
|
|
8
|
+
Q as CEDROS_PAY_SECTION_IDS,
|
|
9
|
+
ta as CIRCUIT_BREAKER_PRESETS,
|
|
10
10
|
t as CSP_PRESETS,
|
|
11
11
|
r as CedrosPay,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
X as CedrosPayAdminDashboard,
|
|
13
|
+
ra as CedrosProvider,
|
|
14
|
+
oa as CircuitBreakerOpenError,
|
|
15
|
+
ia as CircuitState,
|
|
16
|
+
Z as CreditsBalance,
|
|
16
17
|
o as CreditsButton,
|
|
17
18
|
i as CreditsSubscribeButton,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
ca as ERROR_CATEGORIES,
|
|
20
|
+
na as LogLevel,
|
|
21
|
+
Ca as Logger,
|
|
21
22
|
c as PaymentMethodBadge,
|
|
22
23
|
n as PaymentModal,
|
|
23
24
|
C as ProductPrice,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
u as PurchaseButton,
|
|
26
|
+
ua as RATE_LIMITER_PRESETS,
|
|
27
|
+
Sa as RETRY_PRESETS,
|
|
28
|
+
S as RPC_PROVIDERS,
|
|
28
29
|
E as SECURITY_RECOMMENDATIONS,
|
|
29
30
|
P as StripeButton,
|
|
30
31
|
d as SubscribeButton,
|
|
31
32
|
R as SubscriptionManagementPanel,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
l as calculateDiscountPercentage,
|
|
34
|
+
$ as cedrosPayPlugin,
|
|
35
|
+
Ea as createCircuitBreaker,
|
|
36
|
+
Pa as createLogger,
|
|
37
|
+
da as createRateLimiter,
|
|
38
|
+
m as createTranslator,
|
|
38
39
|
g as detectLocale,
|
|
39
|
-
|
|
40
|
+
aa as ecommerce,
|
|
40
41
|
T as emitPaymentError,
|
|
41
42
|
_ as emitPaymentProcessing,
|
|
42
43
|
p as emitPaymentStart,
|
|
@@ -44,22 +45,23 @@ export {
|
|
|
44
45
|
b as emitWalletConnect,
|
|
45
46
|
L as emitWalletConnected,
|
|
46
47
|
O as emitWalletError,
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
B as formatCSP,
|
|
49
|
+
I as formatCouponCodes,
|
|
49
50
|
D as generateCSP,
|
|
50
51
|
f as generateCSPDirectives,
|
|
51
52
|
A as getAvailableLocales,
|
|
52
53
|
M as getLocalizedError,
|
|
53
|
-
|
|
54
|
+
Ra as getLogger,
|
|
54
55
|
h as getUserErrorMessage,
|
|
55
56
|
v as isRetryableError,
|
|
56
57
|
k as loadLocale,
|
|
57
58
|
N as logSecurityReport,
|
|
58
59
|
x as parseCouponCodes,
|
|
59
|
-
|
|
60
|
+
la as retryWithBackoff,
|
|
60
61
|
Y as stackCheckoutCoupons,
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
ma as useCedrosContext,
|
|
63
|
+
ga as useCedrosTheme,
|
|
64
|
+
ea as useCreditsBalance,
|
|
63
65
|
U as useCreditsPayment,
|
|
64
66
|
W as useCreditsSubscription,
|
|
65
67
|
z as useLocalizedError,
|
|
@@ -68,6 +70,6 @@ export {
|
|
|
68
70
|
K as useSubscription,
|
|
69
71
|
V as useSubscriptionManagement,
|
|
70
72
|
q as useTranslation,
|
|
71
|
-
|
|
73
|
+
Ta as validateConfig,
|
|
72
74
|
w as validateSecurity
|
|
73
75
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={};throw new Error('Could not resolve "@meteora-ag/dlmm" imported by "@cedros/pay-react".');exports.default=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-OaWkrl0G.js");exports.CouponsSection=t.CouponsSection;exports.ProductsSection=t.ProductsSection;exports.RefundsSection=t.RefundsSection;exports.SettingsSection=t.SettingsSection;exports.TransactionsSection=t.TransactionsSection;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** Props for the CreditsBalance component */
|
|
2
|
+
export interface CreditsBalanceProps {
|
|
3
|
+
/** JWT token from cedros-login for user authentication */
|
|
4
|
+
authToken?: string;
|
|
5
|
+
/** Custom CSS class name */
|
|
6
|
+
className?: string;
|
|
7
|
+
/** Custom formatter for the balance display. Receives available amount and currency. */
|
|
8
|
+
formatBalance?: (available: number, currency: string) => string;
|
|
9
|
+
/** Whether to show the held/reserved amount */
|
|
10
|
+
showHeld?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Displays the authenticated user's credits balance.
|
|
14
|
+
*
|
|
15
|
+
* Requires the user to be logged in via cedros-login.
|
|
16
|
+
* Fetches balance on mount and provides a refresh button.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* <CreditsBalance authToken={jwt} />
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function CreditsBalance({ authToken, className, formatBalance, showHeld, }: CreditsBalanceProps): import("react/jsx-runtime").JSX.Element | null;
|
|
24
|
+
//# sourceMappingURL=CreditsBalance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreditsBalance.d.ts","sourceRoot":"","sources":["../../../src/components/CreditsBalance.tsx"],"names":[],"mappings":"AAGA,6CAA6C;AAC7C,MAAM,WAAW,mBAAmB;IAClC,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wFAAwF;IACxF,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;IAChE,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,EAC7B,SAAS,EACT,SAAc,EACd,aAAa,EACb,QAAgB,GACjB,EAAE,mBAAmB,kDAyCrB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asset Classes Tab
|
|
3
|
+
*
|
|
4
|
+
* Manages tokenized asset class collections — securities, commodities,
|
|
5
|
+
* property, and collectibles. Each asset class is a Collection with
|
|
6
|
+
* a tokenizationConfig that defines minting and redemption rules.
|
|
7
|
+
*/
|
|
8
|
+
interface AssetClassesTabProps {
|
|
9
|
+
serverUrl: string;
|
|
10
|
+
apiKey?: string;
|
|
11
|
+
authManager?: {
|
|
12
|
+
isAuthenticated: () => boolean;
|
|
13
|
+
fetchWithAuth: <T>(path: string, opts?: RequestInit) => Promise<T>;
|
|
14
|
+
};
|
|
15
|
+
/** Called when the user clicks "Deploy Pool" — parent should switch to the Liquidity tab */
|
|
16
|
+
onNavigateToLiquidity?: () => void;
|
|
17
|
+
}
|
|
18
|
+
export declare function AssetClassesTab({ serverUrl, apiKey, authManager, onNavigateToLiquidity }: AssetClassesTabProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=AssetClassesTab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssetClassesTab.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/AssetClassesTab.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA0BH,UAAU,oBAAoB;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE;QAAE,eAAe,EAAE,MAAM,OAAO,CAAC;QAAC,aAAa,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,CAAA;KAAE,CAAC;IACrH,4FAA4F;IAC5F,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;CACpC;AAkHD,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,EAAE,oBAAoB,2CAoQ9G"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AssetRedemptionManager
|
|
3
|
+
*
|
|
4
|
+
* Admin component for managing asset redemption requests.
|
|
5
|
+
* Supports filtering, reviewing, approving, rejecting, and completing redemptions.
|
|
6
|
+
*
|
|
7
|
+
* Props:
|
|
8
|
+
* serverUrl — base URL for the Cedros Pay server
|
|
9
|
+
* apiKey — optional X-API-Key for unauthenticated admin access
|
|
10
|
+
* authManager — optional auth manager for JWT-authenticated requests
|
|
11
|
+
*/
|
|
12
|
+
export interface AssetRedemptionManagerProps {
|
|
13
|
+
serverUrl: string;
|
|
14
|
+
apiKey?: string;
|
|
15
|
+
authManager?: {
|
|
16
|
+
isAuthenticated: () => boolean;
|
|
17
|
+
fetchWithAuth: <T>(path: string, opts?: RequestInit) => Promise<T>;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export declare function AssetRedemptionManager({ serverUrl, apiKey, authManager }: AssetRedemptionManagerProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
//# sourceMappingURL=AssetRedemptionManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssetRedemptionManager.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/AssetRedemptionManager.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAgCH,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE;QACZ,eAAe,EAAE,MAAM,OAAO,CAAC;QAC/B,aAAa,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;KACpE,CAAC;CACH;AAkKD,wBAAgB,sBAAsB,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,2BAA2B,2CAsMrG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Available dashboard sections */
|
|
2
|
-
export type DashboardSection = 'products' | 'subscriptions' | 'transactions' | 'coupons' | 'refunds' | 'storefront' | 'ai-settings' | 'faqs' | 'payment-settings' | 'messaging' | 'settings';
|
|
2
|
+
export type DashboardSection = 'products' | 'subscriptions' | 'transactions' | 'orders' | 'coupons' | 'refunds' | 'storefront' | 'ai-settings' | 'faqs' | 'payment-settings' | 'messaging' | 'token22' | 'settings';
|
|
3
3
|
/** Theme mode for the dashboard */
|
|
4
4
|
export type AdminThemeMode = 'light' | 'dark' | 'system';
|
|
5
5
|
export interface CedrosPayAdminDashboardProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CedrosPayAdminDashboard.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/CedrosPayAdminDashboard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAcH,OAAO,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"CedrosPayAdminDashboard.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/CedrosPayAdminDashboard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAcH,OAAO,+BAA+B,CAAC;AA2BvC,mCAAmC;AACnC,MAAM,MAAM,gBAAgB,GACxB,UAAU,GACV,eAAe,GACf,cAAc,GACd,QAAQ,GACR,SAAS,GACT,SAAS,GACT,YAAY,GACZ,aAAa,GACb,MAAM,GACN,kBAAkB,GAClB,WAAW,GACX,SAAS,GACT,UAAU,CAAC;AAEf,mCAAmC;AACnC,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEzD,MAAM,WAAW,4BAA4B;IAC3C,yBAAyB;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,oEAAoE;IACpE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sBAAsB;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC9B,6BAA6B;IAC7B,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAClC;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oCAAoC;IACpC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACtD,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2DAA2D;IAC3D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,qFAAqF;IACrF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC;CACxB;AA2FD,wBAAgB,uBAAuB,CAAC,EACtC,SAAS,EACT,MAAM,EACN,KAAoB,EACpB,QAA0K,EAC1K,cAA+B,EAC/B,eAAe,EAAE,gBAAwB,EACzC,QAAa,EACb,eAAe,EACf,SAAc,EACd,gBAAgB,EAChB,OAAe,EACf,KAAgB,GACjB,EAAE,4BAA4B,2CAkP9B;AAED,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GiftCardComplianceTab.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/GiftCardComplianceTab.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AA4D5C,wBAAgB,qBAAqB,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,YAAY,2CAkD7E"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IAdminAuthManager } from './AdminAuthManager';
|
|
2
|
+
interface LiquidityPoolTabProps {
|
|
3
|
+
serverUrl: string;
|
|
4
|
+
authManager?: IAdminAuthManager;
|
|
5
|
+
mintConfigured: boolean;
|
|
6
|
+
mintAddress?: string;
|
|
7
|
+
tokenDecimals?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare function LiquidityPoolTab({ serverUrl, authManager, mintConfigured, mintAddress, tokenDecimals, }: LiquidityPoolTabProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=LiquidityPoolTab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LiquidityPoolTab.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/LiquidityPoolTab.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,UAAU,qBAAqB;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,cAAc,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAkBD,wBAAgB,gBAAgB,CAAC,EAC/B,SAAS,EACT,WAAW,EACX,cAAc,EACd,WAAW,EACX,aAAiB,GAClB,EAAE,qBAAqB,2CAyLvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrdersSection.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/OrdersSection.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AA+D5C,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,QAAa,EAAE,WAAW,EAAE,EAAE,YAAY,2CAiJ5F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductsSection.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/ProductsSection.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,KAAK,EAAE,YAAY,EAAW,MAAM,SAAS,CAAC;AAIrD,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,QAAa,EAAE,WAAW,EAAE,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"ProductsSection.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/ProductsSection.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,KAAK,EAAE,YAAY,EAAW,MAAM,SAAS,CAAC;AAIrD,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,QAAa,EAAE,WAAW,EAAE,EAAE,YAAY,2CAm5B9F"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RedemptionFormBuilder — visual form builder for admin to define redemption
|
|
3
|
+
* fields per asset class. value=null means the form is disabled.
|
|
4
|
+
*/
|
|
5
|
+
export interface RedemptionField {
|
|
6
|
+
id: string;
|
|
7
|
+
label: string;
|
|
8
|
+
fieldType: string;
|
|
9
|
+
required: boolean;
|
|
10
|
+
options: string[];
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface RedemptionConfig {
|
|
14
|
+
fields: RedemptionField[];
|
|
15
|
+
instructions?: string;
|
|
16
|
+
requiresApproval: boolean;
|
|
17
|
+
estimatedProcessingDays?: number;
|
|
18
|
+
}
|
|
19
|
+
interface RedemptionFormBuilderProps {
|
|
20
|
+
value: RedemptionConfig | null;
|
|
21
|
+
onChange: (config: RedemptionConfig | null) => void;
|
|
22
|
+
}
|
|
23
|
+
export declare function RedemptionFormBuilder({ value, onChange }: RedemptionFormBuilderProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=RedemptionFormBuilder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RedemptionFormBuilder.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/RedemptionFormBuilder.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,eAAe,EAAE,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,UAAU,0BAA0B;IAClC,KAAK,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC/B,QAAQ,EAAE,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI,KAAK,IAAI,CAAC;CACrD;AAiGD,wBAAgB,qBAAqB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,0BAA0B,2CAwFpF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Token22Section.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/Token22Section.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AASH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AA4B5C,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,YAAY,2CAuK9E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configApi.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/configApi.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,8BAA8B;AAC9B,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,+BAA+B;AAC/B,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,cAAc,EAAE,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,0BAA0B;AAC1B,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;CAC1B;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@ export declare const StorefrontSection: ComponentType<SectionProps>;
|
|
|
10
10
|
export declare const FAQSection: ComponentType<SectionProps>;
|
|
11
11
|
export type { SubscriptionPlan, SubscriptionSettings, ProductPageSettings, RelatedProductsMode } from './types';
|
|
12
12
|
export { ConfigApiClient, CONFIG_CATEGORIES, REDACTED_VALUE, isSecretField, type ConfigCategory, type CategoryMeta, type FieldMeta, type GetConfigResponse, type ValidateConfigResponse, type ConfigHistoryEntry, type AdminAuth, } from './configApi';
|
|
13
|
+
export declare const AssetClassesTab: ComponentType<SectionProps>;
|
|
14
|
+
export declare const AssetRedemptionManager: ComponentType<SectionProps>;
|
|
15
|
+
export { RedemptionFormBuilder, type RedemptionConfig, type RedemptionField } from './RedemptionFormBuilder';
|
|
13
16
|
export { AdminAuthManager, ADMIN_NONCE_PURPOSES, type IAdminAuthManager, type AdminAuthMethod, type AdminCredentials, type WalletSigner, type AdminAuthHeaders, type JwtAuthHeaders, } from './AdminAuthManager';
|
|
14
17
|
export { useAdminAuth, type AdminWalletState, type UseAdminAuthOptions, type UseAdminAuthResult, } from './useAdminAuth';
|
|
15
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAIL,KAAK,aAAa,EAGnB,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAkB9D,OAAO,EACL,uBAAuB,EACvB,KAAK,4BAA4B,EACjC,KAAK,gBAAgB,GACtB,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACtE,eAAO,MAAM,eAAe,qCAE3B,CAAC;AACF,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,eAAO,MAAM,oBAAoB,6BAEhC,CAAC;AACF,eAAO,MAAM,iBAAiB,6BAE7B,CAAC;AACF,eAAO,MAAM,UAAU,6BAEtB,CAAC;AAGF,YAAY,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAChH,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,SAAS,GACf,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,cAAc,GACpB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,YAAY,EACZ,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,GACxB,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAIL,KAAK,aAAa,EAGnB,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAkB9D,OAAO,EACL,uBAAuB,EACvB,KAAK,4BAA4B,EACjC,KAAK,gBAAgB,GACtB,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACtE,eAAO,MAAM,eAAe,qCAE3B,CAAC;AACF,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,eAAO,MAAM,oBAAoB,6BAEhC,CAAC;AACF,eAAO,MAAM,iBAAiB,6BAE7B,CAAC;AACF,eAAO,MAAM,UAAU,6BAEtB,CAAC;AAGF,YAAY,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAChH,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,SAAS,GACf,MAAM,aAAa,CAAC;AAGrB,eAAO,MAAM,eAAe,6BAE3B,CAAC;AACF,eAAO,MAAM,sBAAsB,6BAElC,CAAC;AACF,OAAO,EAAE,qBAAqB,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG7G,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,cAAc,GACpB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,YAAY,EACZ,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,GACxB,MAAM,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mockAdapter.d.ts","sourceRoot":"","sources":["../../../../../src/ecommerce/adapters/mock/mockAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EAMhB,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"mockAdapter.d.ts","sourceRoot":"","sources":["../../../../../src/ecommerce/adapters/mock/mockAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EAMhB,MAAM,oBAAoB,CAAC;AAyZ5B,wBAAgB,yBAAyB,IAAI,eAAe,CAgH3D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paywallAdapter.d.ts","sourceRoot":"","sources":["../../../../../src/ecommerce/adapters/paywall/paywallAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAA8J,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"paywallAdapter.d.ts","sourceRoot":"","sources":["../../../../../src/ecommerce/adapters/paywall/paywallAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAA8J,MAAM,oBAAoB,CAAC;AAiQtN,wBAAgB,4BAA4B,CAAC,IAAI,EAAE;IACjD,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,eAAe,CAyPlB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AssetBadge
|
|
3
|
+
*
|
|
4
|
+
* Displays the tokenized asset class for a product card.
|
|
5
|
+
*
|
|
6
|
+
* @param assetClass - The assetClassCollectionId from tokenizedAssetConfig
|
|
7
|
+
* (e.g. "securities", "commodities", "property", "collectibles").
|
|
8
|
+
* Falls back to a neutral "Tokenized Asset" badge for unknown values.
|
|
9
|
+
*/
|
|
10
|
+
export declare function AssetBadge({ assetClass }: {
|
|
11
|
+
assetClass: string;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=AssetBadge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssetBadge.d.ts","sourceRoot":"","sources":["../../../../../src/ecommerce/components/catalog/AssetBadge.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AA4BH,wBAAgB,UAAU,CAAC,EAAE,UAAU,EAAE,EAAE;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,2CAOhE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductCard.d.ts","sourceRoot":"","sources":["../../../../../src/ecommerce/components/catalog/ProductCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"ProductCard.d.ts","sourceRoot":"","sources":["../../../../../src/ecommerce/components/catalog/ProductCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAsB9F,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,IAAI,EACJ,WAAW,EACX,WAAW,EACX,SAAS,EACT,MAAgB,EAChB,SAAoB,GACrB,EAAE;IACD,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAAC;IACzE,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB;IACxB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,gCAAgC;IAChC,SAAS,CAAC,EAAE,iBAAiB,CAAC;CAC/B,2CA0HA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckoutForm.d.ts","sourceRoot":"","sources":["../../../../../src/ecommerce/components/checkout/CheckoutForm.tsx"],"names":[],"mappings":"AAkBA,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"CheckoutForm.d.ts","sourceRoot":"","sources":["../../../../../src/ecommerce/components/checkout/CheckoutForm.tsx"],"names":[],"mappings":"AAkBA,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,2CAgNjE"}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { CheckoutResult } from '../../hooks/useCheckoutResultFromUrl';
|
|
2
|
-
export
|
|
2
|
+
export interface CheckoutReceiptProps {
|
|
3
3
|
result: CheckoutResult;
|
|
4
4
|
onContinueShopping?: () => void;
|
|
5
5
|
onViewOrders?: () => void;
|
|
6
6
|
className?: string;
|
|
7
|
-
|
|
7
|
+
/** Cedros Pay server URL — required for tokenized asset redemption prompts. */
|
|
8
|
+
serverUrl?: string;
|
|
9
|
+
/** Auth token for authenticated redemption requests. */
|
|
10
|
+
authToken?: string;
|
|
11
|
+
/** Product IDs for tokenized assets in this order (renders redemption form). */
|
|
12
|
+
tokenizedProductIds?: string[];
|
|
13
|
+
}
|
|
14
|
+
export declare function CheckoutReceipt({ result, onContinueShopping, onViewOrders, className, serverUrl, authToken, tokenizedProductIds, }: CheckoutReceiptProps): import("react/jsx-runtime").JSX.Element | null;
|
|
8
15
|
//# sourceMappingURL=CheckoutReceipt.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckoutReceipt.d.ts","sourceRoot":"","sources":["../../../../../src/ecommerce/components/checkout/CheckoutReceipt.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"CheckoutReceipt.d.ts","sourceRoot":"","sources":["../../../../../src/ecommerce/components/checkout/CheckoutReceipt.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAM3E,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,cAAc,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+EAA+E;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gFAAgF;IAChF,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;CAChC;AAED,wBAAgB,eAAe,CAAC,EAC9B,MAAM,EACN,kBAAkB,EAClB,YAAY,EACZ,SAAS,EACT,SAAS,EACT,SAAS,EACT,mBAAmB,GACpB,EAAE,oBAAoB,kDAyKtB"}
|
|
@@ -24,6 +24,12 @@ export interface CheckoutSuccessPageProps {
|
|
|
24
24
|
className?: string;
|
|
25
25
|
/** Additional CSS class for the receipt card */
|
|
26
26
|
receiptClassName?: string;
|
|
27
|
+
/** Cedros Pay server URL — required for tokenized asset redemption prompts. */
|
|
28
|
+
serverUrl?: string;
|
|
29
|
+
/** Auth token for authenticated redemption requests. */
|
|
30
|
+
authToken?: string;
|
|
31
|
+
/** Product IDs for tokenized assets in this order (renders redemption form). */
|
|
32
|
+
tokenizedProductIds?: string[];
|
|
27
33
|
}
|
|
28
|
-
export declare function CheckoutSuccessPage({ onContinueShopping, onViewOrders, className, receiptClassName, }: CheckoutSuccessPageProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export declare function CheckoutSuccessPage({ onContinueShopping, onViewOrders, className, receiptClassName, serverUrl, authToken, tokenizedProductIds, }: CheckoutSuccessPageProps): import("react/jsx-runtime").JSX.Element;
|
|
29
35
|
//# sourceMappingURL=CheckoutSuccessPage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckoutSuccessPage.d.ts","sourceRoot":"","sources":["../../../../../src/ecommerce/components/checkout/CheckoutSuccessPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAMH,MAAM,WAAW,wBAAwB;IACvC,kDAAkD;IAClD,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,4CAA4C;IAC5C,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,gBAAgB,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"CheckoutSuccessPage.d.ts","sourceRoot":"","sources":["../../../../../src/ecommerce/components/checkout/CheckoutSuccessPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAMH,MAAM,WAAW,wBAAwB;IACvC,kDAAkD;IAClD,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,4CAA4C;IAC5C,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,+EAA+E;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gFAAgF;IAChF,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;CAChC;AAED,wBAAgB,mBAAmB,CAAC,EAClC,kBAAkB,EAClB,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,SAAS,EACT,SAAS,EACT,mBAAmB,GACpB,EAAE,wBAAwB,2CAqC1B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RedemptionForm
|
|
3
|
+
*
|
|
4
|
+
* Buyer-facing component rendered post-purchase so the buyer can submit
|
|
5
|
+
* redemption information for a tokenized asset product.
|
|
6
|
+
*
|
|
7
|
+
* @param serverUrl - Base URL of the Cedros Pay server.
|
|
8
|
+
* @param productId - The product for which redemption info is collected.
|
|
9
|
+
* @param authToken - Optional Bearer token for authenticated requests.
|
|
10
|
+
*
|
|
11
|
+
* Fetches form config from GET /paywall/v1/asset-redemption/:productId/form,
|
|
12
|
+
* also checks existing submission status on mount. Submits to
|
|
13
|
+
* POST /paywall/v1/asset-redemption/:productId/submit.
|
|
14
|
+
*/
|
|
15
|
+
export interface RedemptionFormProps {
|
|
16
|
+
serverUrl: string;
|
|
17
|
+
productId: string;
|
|
18
|
+
/** Optional auth token for authenticated requests */
|
|
19
|
+
authToken?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare function RedemptionForm({ serverUrl, productId, authToken }: RedemptionFormProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
//# sourceMappingURL=RedemptionForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RedemptionForm.d.ts","sourceRoot":"","sources":["../../../../../src/ecommerce/components/checkout/RedemptionForm.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAkJH,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,mBAAmB,2CAuKtF"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gift Card Redemption Page
|
|
3
|
+
*
|
|
4
|
+
* A landing page for recipients to claim a gift card via a redemption token.
|
|
5
|
+
* Fetches gift card info from the server and allows authenticated users to claim credits.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* // In your router (e.g., React Router)
|
|
10
|
+
* <Route path="/gift-card/claim/:token" element={
|
|
11
|
+
* <GiftCardRedemptionPage
|
|
12
|
+
* serverUrl="https://api.example.com"
|
|
13
|
+
* token={params.token}
|
|
14
|
+
* authToken={user?.jwt}
|
|
15
|
+
* onSignIn={() => navigate('/login?redirect=/gift-card/claim/' + params.token)}
|
|
16
|
+
* onContinueShopping={() => navigate('/')}
|
|
17
|
+
* />
|
|
18
|
+
* } />
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export interface GiftCardRedemptionPageProps {
|
|
22
|
+
/** Backend server URL (e.g., "https://api.example.com") */
|
|
23
|
+
serverUrl: string;
|
|
24
|
+
/** The redemption token from the URL */
|
|
25
|
+
token: string;
|
|
26
|
+
/** JWT auth token from cedros-login (required to claim) */
|
|
27
|
+
authToken?: string;
|
|
28
|
+
/** Called when unauthenticated user needs to sign in to claim */
|
|
29
|
+
onSignIn?: () => void;
|
|
30
|
+
/** Called when user clicks "Continue shopping" after claiming */
|
|
31
|
+
onContinueShopping?: () => void;
|
|
32
|
+
/** Additional CSS class for the page container */
|
|
33
|
+
className?: string;
|
|
34
|
+
}
|
|
35
|
+
export declare function GiftCardRedemptionPage({ serverUrl, token, authToken, onSignIn, onContinueShopping, className, }: GiftCardRedemptionPageProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
//# sourceMappingURL=GiftCardRedemptionPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GiftCardRedemptionPage.d.ts","sourceRoot":"","sources":["../../../../../src/ecommerce/components/gift-cards/GiftCardRedemptionPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAqBH,MAAM,WAAW,2BAA2B;IAC1C,2DAA2D;IAC3D,SAAS,EAAE,MAAM,CAAC;IAClB,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,2DAA2D;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,iEAAiE;IACjE,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAoBD,wBAAgB,sBAAsB,CAAC,EACrC,SAAS,EACT,KAAK,EACL,SAAS,EACT,QAAQ,EACR,kBAAkB,EAClB,SAAS,GACV,EAAE,2BAA2B,2CAqF7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrderCard.d.ts","sourceRoot":"","sources":["../../../../../src/ecommerce/components/orders/OrderCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"OrderCard.d.ts","sourceRoot":"","sources":["../../../../../src/ecommerce/components/orders/OrderCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AA+BzC,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,MAAM,EACN,SAAS,GACV,EAAE;IACD,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CA0EA"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { Order } from '../../types';
|
|
2
|
-
export declare function OrderDetails({ order, onBack, className, }: {
|
|
2
|
+
export declare function OrderDetails({ order, onBack, className, serverUrl, authToken, }: {
|
|
3
3
|
order: Order;
|
|
4
4
|
onBack?: () => void;
|
|
5
5
|
className?: string;
|
|
6
|
+
/** Cedros Pay server URL — enables redemption forms for tokenized asset items. */
|
|
7
|
+
serverUrl?: string;
|
|
8
|
+
/** Auth token for authenticated redemption requests. */
|
|
9
|
+
authToken?: string;
|
|
6
10
|
}): import("react/jsx-runtime").JSX.Element;
|
|
7
11
|
//# sourceMappingURL=OrderDetails.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrderDetails.d.ts","sourceRoot":"","sources":["../../../../../src/ecommerce/components/orders/OrderDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"OrderDetails.d.ts","sourceRoot":"","sources":["../../../../../src/ecommerce/components/orders/OrderDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AA2BzC,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,MAAM,EACN,SAAS,EACT,SAAS,EACT,SAAS,GACV,EAAE;IACD,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kFAAkF;IAClF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAyHA"}
|
|
@@ -75,6 +75,7 @@ export { ShippingMethodSelector } from './components/checkout/ShippingMethodSele
|
|
|
75
75
|
export { PaymentStep } from './components/checkout/PaymentStep';
|
|
76
76
|
export { OrderReview } from './components/checkout/OrderReview';
|
|
77
77
|
export { CheckoutReceipt } from './components/checkout/CheckoutReceipt';
|
|
78
|
+
export type { CheckoutReceiptProps } from './components/checkout/CheckoutReceipt';
|
|
78
79
|
export { CheckoutSuccessPage } from './components/checkout/CheckoutSuccessPage';
|
|
79
80
|
export type { CheckoutSuccessPageProps } from './components/checkout/CheckoutSuccessPage';
|
|
80
81
|
export { CheckoutCancelPage } from './components/checkout/CheckoutCancelPage';
|
|
@@ -84,6 +85,11 @@ export type { InventoryVerificationDialogProps } from './components/checkout/Inv
|
|
|
84
85
|
export { OrderList } from './components/orders/OrderList';
|
|
85
86
|
export { OrderCard } from './components/orders/OrderCard';
|
|
86
87
|
export { OrderDetails } from './components/orders/OrderDetails';
|
|
88
|
+
export { GiftCardRedemptionPage } from './components/gift-cards/GiftCardRedemptionPage';
|
|
89
|
+
export type { GiftCardRedemptionPageProps } from './components/gift-cards/GiftCardRedemptionPage';
|
|
90
|
+
export { AssetBadge } from './components/catalog/AssetBadge';
|
|
91
|
+
export { RedemptionForm } from './components/checkout/RedemptionForm';
|
|
92
|
+
export type { RedemptionFormProps } from './components/checkout/RedemptionForm';
|
|
87
93
|
export { ShopTemplate } from './templates/ShopTemplate';
|
|
88
94
|
export type { CedrosShopRoutes } from './templates/ShopTemplate';
|
|
89
95
|
export { CategoryTemplate } from './templates/CategoryTemplate';
|