@cimplify/sdk 0.76.0 → 0.79.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/dist/advanced.d.mts +3 -3
- package/dist/advanced.d.ts +3 -3
- package/dist/{chunk-QS4XDVHI.js → chunk-5BPBDWAA.js} +94 -0
- package/dist/{chunk-J7L5LHGK.mjs → chunk-BNA4GW4D.mjs} +34 -11
- package/dist/{chunk-BYWJSPT4.mjs → chunk-FURKCWVG.mjs} +6 -3
- package/dist/{chunk-H337NF4O.mjs → chunk-LBFTEXGD.mjs} +94 -1
- package/dist/{chunk-OGQFDCZM.js → chunk-OSTOGR4F.js} +34 -11
- package/dist/{chunk-Y64AIRGW.js → chunk-T7ALPOK7.js} +8 -5
- package/dist/{client-D7MP5Zi7.d.ts → client-BAzvXSLJ.d.ts} +2 -2
- package/dist/{client-DDWRDb9m.d.mts → client-Byysg2IX.d.mts} +2 -2
- package/dist/{client-CBQJQn7E.d.mts → client-Cn5trGYV.d.ts} +41 -4
- package/dist/{client-ciWgfgLw.d.ts → client-D16qfHAB.d.mts} +41 -4
- package/dist/{index-lt-fe29V.d.mts → index-Bu76UyFz.d.mts} +3 -3
- package/dist/{index-DTGS0QC1.d.ts → index-Moe4cGMB.d.ts} +3 -3
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +13 -9
- package/dist/index.mjs +1 -1
- package/dist/mock/cli.mjs +34 -11
- package/dist/mock/library.js +34 -11
- package/dist/mock/library.mjs +34 -11
- package/dist/mock/msw.js +34 -11
- package/dist/mock/msw.mjs +34 -11
- package/dist/{payment-C-2gApyQ.d.mts → payment-B7qzWdaJ.d.mts} +1 -1
- package/dist/{payment-CfemTORM.d.ts → payment-mVIJIJcq.d.ts} +1 -1
- package/dist/{price-CZBQw-Rh.d.mts → price-BfOaGqjx.d.mts} +1 -1
- package/dist/{price-DNeyoO7y.d.ts → price-CS1IsORZ.d.ts} +1 -1
- package/dist/{product-_GFoaPHU.d.mts → product-BgFOFmQw.d.mts} +7 -0
- package/dist/{product-_GFoaPHU.d.ts → product-BgFOFmQw.d.ts} +7 -0
- package/dist/react.d.mts +18 -5
- package/dist/react.d.ts +18 -5
- package/dist/react.js +22 -3
- package/dist/react.mjs +21 -3
- package/dist/server-BXT62nBC.d.mts +1186 -0
- package/dist/server-BXT62nBC.d.ts +1186 -0
- package/dist/{server-G8I4JtqK.d.mts → server-CGO4zneR.d.mts} +1 -1
- package/dist/{server-1hXIXH2k.d.ts → server-Daq42vK7.d.ts} +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +2 -2
- package/dist/server.mjs +1 -1
- package/dist/testing/msw.d.mts +2 -2
- package/dist/testing/msw.d.ts +2 -2
- package/dist/testing/msw.js +2 -2
- package/dist/testing/msw.mjs +1 -1
- package/dist/testing/suite.d.mts +6 -6
- package/dist/testing/suite.d.ts +6 -6
- package/dist/testing/suite.js +22 -22
- package/dist/testing/suite.mjs +3 -3
- package/dist/testing.d.mts +20 -5
- package/dist/testing.d.ts +20 -5
- package/dist/testing.js +78 -78
- package/dist/testing.mjs +4 -4
- package/dist/utils.d.mts +4 -4
- package/dist/utils.d.ts +4 -4
- package/package.json +1 -1
package/dist/mock/library.js
CHANGED
|
@@ -2519,6 +2519,14 @@ function buildV1(deps) {
|
|
|
2519
2519
|
const body = await c.req.json().catch(() => ({}));
|
|
2520
2520
|
return tryRoute(c, () => deps.uploads.confirm(body));
|
|
2521
2521
|
});
|
|
2522
|
+
app.get(
|
|
2523
|
+
"/store-credit/balance",
|
|
2524
|
+
(c) => c.json({ data: { balance: "0.00", currency: "USD" } })
|
|
2525
|
+
);
|
|
2526
|
+
app.post("/activity/session", async (c) => {
|
|
2527
|
+
await c.req.json().catch(() => ({}));
|
|
2528
|
+
return c.json({ data: { recorded: true } });
|
|
2529
|
+
});
|
|
2522
2530
|
app.post("/activity/events", async (c) => {
|
|
2523
2531
|
const body = await c.req.json().catch(() => ({}));
|
|
2524
2532
|
return tryRoute(c, () => deps.activity.recordEvents(deps.defaultBusinessId, c.var.session.id, body.events ?? []));
|
|
@@ -4527,17 +4535,27 @@ function recalculateTotals(opts) {
|
|
|
4527
4535
|
const lineTotal = multiply(add(item.price, item.add_ons_price), item.quantity);
|
|
4528
4536
|
subtotal = add(subtotal, lineTotal);
|
|
4529
4537
|
}
|
|
4530
|
-
const
|
|
4531
|
-
const
|
|
4532
|
-
const
|
|
4533
|
-
const
|
|
4534
|
-
const
|
|
4538
|
+
const subtotalNum = parseFloat(subtotal);
|
|
4539
|
+
const rawDiscount = opts.appliedCouponCodes.includes("WELCOME10") ? parseFloat(percent(subtotal, 10)) : 0;
|
|
4540
|
+
const cappedDiscount = Math.min(rawDiscount, subtotalNum);
|
|
4541
|
+
const taxable = Math.max(subtotalNum - cappedDiscount, 0);
|
|
4542
|
+
const service = 0;
|
|
4543
|
+
const rate2 = opts.taxRatePct / 100;
|
|
4544
|
+
let tax;
|
|
4545
|
+
let total;
|
|
4546
|
+
if (opts.taxInclusive) {
|
|
4547
|
+
tax = 0;
|
|
4548
|
+
total = subtotalNum + service - cappedDiscount;
|
|
4549
|
+
} else {
|
|
4550
|
+
tax = (taxable + service) * rate2;
|
|
4551
|
+
total = subtotalNum + service + tax - cappedDiscount;
|
|
4552
|
+
}
|
|
4535
4553
|
return {
|
|
4536
4554
|
subtotal,
|
|
4537
|
-
total_discounts:
|
|
4538
|
-
tax_amount: tax,
|
|
4539
|
-
service_charge: service,
|
|
4540
|
-
total_price: total
|
|
4555
|
+
total_discounts: money(cappedDiscount),
|
|
4556
|
+
tax_amount: money(tax),
|
|
4557
|
+
service_charge: money(service),
|
|
4558
|
+
total_price: money(total)
|
|
4541
4559
|
};
|
|
4542
4560
|
}
|
|
4543
4561
|
function computeLineKey(opts) {
|
|
@@ -4670,7 +4688,10 @@ function toUICart(registry, cart) {
|
|
|
4670
4688
|
total_price: cart.total_price,
|
|
4671
4689
|
currency: cart.currency,
|
|
4672
4690
|
tax_rate: cart.tax_rate,
|
|
4673
|
-
service_charge_rate: cart.service_charge_rate
|
|
4691
|
+
service_charge_rate: cart.service_charge_rate,
|
|
4692
|
+
tax_inclusive: false,
|
|
4693
|
+
deposit_required: false,
|
|
4694
|
+
deposit_amount: "0.00"
|
|
4674
4695
|
},
|
|
4675
4696
|
customer_info: {
|
|
4676
4697
|
name: cart.customer_name,
|
|
@@ -4689,6 +4710,7 @@ function toUICart(registry, cart) {
|
|
|
4689
4710
|
|
|
4690
4711
|
// src/mock/domain/cart/index.ts
|
|
4691
4712
|
var CART_TTL_MS = 24 * 60 * 60 * 1e3;
|
|
4713
|
+
var TAX_RATE_PCT = 0;
|
|
4692
4714
|
var ZERO2 = "0.00";
|
|
4693
4715
|
function createCartService(opts) {
|
|
4694
4716
|
const { registry, clock, ids, bus, inventory } = opts;
|
|
@@ -4730,7 +4752,8 @@ function createCartService(opts) {
|
|
|
4730
4752
|
const recalc = (cart) => {
|
|
4731
4753
|
const totals = recalculateTotals({
|
|
4732
4754
|
items: cart.items,
|
|
4733
|
-
appliedCouponCodes: cart.applied_discount_codes
|
|
4755
|
+
appliedCouponCodes: cart.applied_discount_codes,
|
|
4756
|
+
taxRatePct: TAX_RATE_PCT});
|
|
4734
4757
|
const updated = {
|
|
4735
4758
|
...cart,
|
|
4736
4759
|
...totals,
|
package/dist/mock/library.mjs
CHANGED
|
@@ -2517,6 +2517,14 @@ function buildV1(deps) {
|
|
|
2517
2517
|
const body = await c.req.json().catch(() => ({}));
|
|
2518
2518
|
return tryRoute(c, () => deps.uploads.confirm(body));
|
|
2519
2519
|
});
|
|
2520
|
+
app.get(
|
|
2521
|
+
"/store-credit/balance",
|
|
2522
|
+
(c) => c.json({ data: { balance: "0.00", currency: "USD" } })
|
|
2523
|
+
);
|
|
2524
|
+
app.post("/activity/session", async (c) => {
|
|
2525
|
+
await c.req.json().catch(() => ({}));
|
|
2526
|
+
return c.json({ data: { recorded: true } });
|
|
2527
|
+
});
|
|
2520
2528
|
app.post("/activity/events", async (c) => {
|
|
2521
2529
|
const body = await c.req.json().catch(() => ({}));
|
|
2522
2530
|
return tryRoute(c, () => deps.activity.recordEvents(deps.defaultBusinessId, c.var.session.id, body.events ?? []));
|
|
@@ -4525,17 +4533,27 @@ function recalculateTotals(opts) {
|
|
|
4525
4533
|
const lineTotal = multiply(add(item.price, item.add_ons_price), item.quantity);
|
|
4526
4534
|
subtotal = add(subtotal, lineTotal);
|
|
4527
4535
|
}
|
|
4528
|
-
const
|
|
4529
|
-
const
|
|
4530
|
-
const
|
|
4531
|
-
const
|
|
4532
|
-
const
|
|
4536
|
+
const subtotalNum = parseFloat(subtotal);
|
|
4537
|
+
const rawDiscount = opts.appliedCouponCodes.includes("WELCOME10") ? parseFloat(percent(subtotal, 10)) : 0;
|
|
4538
|
+
const cappedDiscount = Math.min(rawDiscount, subtotalNum);
|
|
4539
|
+
const taxable = Math.max(subtotalNum - cappedDiscount, 0);
|
|
4540
|
+
const service = 0;
|
|
4541
|
+
const rate2 = opts.taxRatePct / 100;
|
|
4542
|
+
let tax;
|
|
4543
|
+
let total;
|
|
4544
|
+
if (opts.taxInclusive) {
|
|
4545
|
+
tax = 0;
|
|
4546
|
+
total = subtotalNum + service - cappedDiscount;
|
|
4547
|
+
} else {
|
|
4548
|
+
tax = (taxable + service) * rate2;
|
|
4549
|
+
total = subtotalNum + service + tax - cappedDiscount;
|
|
4550
|
+
}
|
|
4533
4551
|
return {
|
|
4534
4552
|
subtotal,
|
|
4535
|
-
total_discounts:
|
|
4536
|
-
tax_amount: tax,
|
|
4537
|
-
service_charge: service,
|
|
4538
|
-
total_price: total
|
|
4553
|
+
total_discounts: money(cappedDiscount),
|
|
4554
|
+
tax_amount: money(tax),
|
|
4555
|
+
service_charge: money(service),
|
|
4556
|
+
total_price: money(total)
|
|
4539
4557
|
};
|
|
4540
4558
|
}
|
|
4541
4559
|
function computeLineKey(opts) {
|
|
@@ -4668,7 +4686,10 @@ function toUICart(registry, cart) {
|
|
|
4668
4686
|
total_price: cart.total_price,
|
|
4669
4687
|
currency: cart.currency,
|
|
4670
4688
|
tax_rate: cart.tax_rate,
|
|
4671
|
-
service_charge_rate: cart.service_charge_rate
|
|
4689
|
+
service_charge_rate: cart.service_charge_rate,
|
|
4690
|
+
tax_inclusive: false,
|
|
4691
|
+
deposit_required: false,
|
|
4692
|
+
deposit_amount: "0.00"
|
|
4672
4693
|
},
|
|
4673
4694
|
customer_info: {
|
|
4674
4695
|
name: cart.customer_name,
|
|
@@ -4687,6 +4708,7 @@ function toUICart(registry, cart) {
|
|
|
4687
4708
|
|
|
4688
4709
|
// src/mock/domain/cart/index.ts
|
|
4689
4710
|
var CART_TTL_MS = 24 * 60 * 60 * 1e3;
|
|
4711
|
+
var TAX_RATE_PCT = 0;
|
|
4690
4712
|
var ZERO2 = "0.00";
|
|
4691
4713
|
function createCartService(opts) {
|
|
4692
4714
|
const { registry, clock, ids, bus, inventory } = opts;
|
|
@@ -4728,7 +4750,8 @@ function createCartService(opts) {
|
|
|
4728
4750
|
const recalc = (cart) => {
|
|
4729
4751
|
const totals = recalculateTotals({
|
|
4730
4752
|
items: cart.items,
|
|
4731
|
-
appliedCouponCodes: cart.applied_discount_codes
|
|
4753
|
+
appliedCouponCodes: cart.applied_discount_codes,
|
|
4754
|
+
taxRatePct: TAX_RATE_PCT});
|
|
4732
4755
|
const updated = {
|
|
4733
4756
|
...cart,
|
|
4734
4757
|
...totals,
|
package/dist/mock/msw.js
CHANGED
|
@@ -2517,6 +2517,14 @@ function buildV1(deps) {
|
|
|
2517
2517
|
const body = await c.req.json().catch(() => ({}));
|
|
2518
2518
|
return tryRoute(c, () => deps.uploads.confirm(body));
|
|
2519
2519
|
});
|
|
2520
|
+
app.get(
|
|
2521
|
+
"/store-credit/balance",
|
|
2522
|
+
(c) => c.json({ data: { balance: "0.00", currency: "USD" } })
|
|
2523
|
+
);
|
|
2524
|
+
app.post("/activity/session", async (c) => {
|
|
2525
|
+
await c.req.json().catch(() => ({}));
|
|
2526
|
+
return c.json({ data: { recorded: true } });
|
|
2527
|
+
});
|
|
2520
2528
|
app.post("/activity/events", async (c) => {
|
|
2521
2529
|
const body = await c.req.json().catch(() => ({}));
|
|
2522
2530
|
return tryRoute(c, () => deps.activity.recordEvents(deps.defaultBusinessId, c.var.session.id, body.events ?? []));
|
|
@@ -4525,17 +4533,27 @@ function recalculateTotals(opts) {
|
|
|
4525
4533
|
const lineTotal = multiply(add(item.price, item.add_ons_price), item.quantity);
|
|
4526
4534
|
subtotal = add(subtotal, lineTotal);
|
|
4527
4535
|
}
|
|
4528
|
-
const
|
|
4529
|
-
const
|
|
4530
|
-
const
|
|
4531
|
-
const
|
|
4532
|
-
const
|
|
4536
|
+
const subtotalNum = parseFloat(subtotal);
|
|
4537
|
+
const rawDiscount = opts.appliedCouponCodes.includes("WELCOME10") ? parseFloat(percent(subtotal, 10)) : 0;
|
|
4538
|
+
const cappedDiscount = Math.min(rawDiscount, subtotalNum);
|
|
4539
|
+
const taxable = Math.max(subtotalNum - cappedDiscount, 0);
|
|
4540
|
+
const service = 0;
|
|
4541
|
+
const rate2 = opts.taxRatePct / 100;
|
|
4542
|
+
let tax;
|
|
4543
|
+
let total;
|
|
4544
|
+
if (opts.taxInclusive) {
|
|
4545
|
+
tax = 0;
|
|
4546
|
+
total = subtotalNum + service - cappedDiscount;
|
|
4547
|
+
} else {
|
|
4548
|
+
tax = (taxable + service) * rate2;
|
|
4549
|
+
total = subtotalNum + service + tax - cappedDiscount;
|
|
4550
|
+
}
|
|
4533
4551
|
return {
|
|
4534
4552
|
subtotal,
|
|
4535
|
-
total_discounts:
|
|
4536
|
-
tax_amount: tax,
|
|
4537
|
-
service_charge: service,
|
|
4538
|
-
total_price: total
|
|
4553
|
+
total_discounts: money(cappedDiscount),
|
|
4554
|
+
tax_amount: money(tax),
|
|
4555
|
+
service_charge: money(service),
|
|
4556
|
+
total_price: money(total)
|
|
4539
4557
|
};
|
|
4540
4558
|
}
|
|
4541
4559
|
function computeLineKey(opts) {
|
|
@@ -4668,7 +4686,10 @@ function toUICart(registry, cart) {
|
|
|
4668
4686
|
total_price: cart.total_price,
|
|
4669
4687
|
currency: cart.currency,
|
|
4670
4688
|
tax_rate: cart.tax_rate,
|
|
4671
|
-
service_charge_rate: cart.service_charge_rate
|
|
4689
|
+
service_charge_rate: cart.service_charge_rate,
|
|
4690
|
+
tax_inclusive: false,
|
|
4691
|
+
deposit_required: false,
|
|
4692
|
+
deposit_amount: "0.00"
|
|
4672
4693
|
},
|
|
4673
4694
|
customer_info: {
|
|
4674
4695
|
name: cart.customer_name,
|
|
@@ -4687,6 +4708,7 @@ function toUICart(registry, cart) {
|
|
|
4687
4708
|
|
|
4688
4709
|
// src/mock/domain/cart/index.ts
|
|
4689
4710
|
var CART_TTL_MS = 24 * 60 * 60 * 1e3;
|
|
4711
|
+
var TAX_RATE_PCT = 0;
|
|
4690
4712
|
var ZERO2 = "0.00";
|
|
4691
4713
|
function createCartService(opts) {
|
|
4692
4714
|
const { registry, clock, ids, bus, inventory } = opts;
|
|
@@ -4728,7 +4750,8 @@ function createCartService(opts) {
|
|
|
4728
4750
|
const recalc = (cart) => {
|
|
4729
4751
|
const totals = recalculateTotals({
|
|
4730
4752
|
items: cart.items,
|
|
4731
|
-
appliedCouponCodes: cart.applied_discount_codes
|
|
4753
|
+
appliedCouponCodes: cart.applied_discount_codes,
|
|
4754
|
+
taxRatePct: TAX_RATE_PCT});
|
|
4732
4755
|
const updated = {
|
|
4733
4756
|
...cart,
|
|
4734
4757
|
...totals,
|
package/dist/mock/msw.mjs
CHANGED
|
@@ -2515,6 +2515,14 @@ function buildV1(deps) {
|
|
|
2515
2515
|
const body = await c.req.json().catch(() => ({}));
|
|
2516
2516
|
return tryRoute(c, () => deps.uploads.confirm(body));
|
|
2517
2517
|
});
|
|
2518
|
+
app.get(
|
|
2519
|
+
"/store-credit/balance",
|
|
2520
|
+
(c) => c.json({ data: { balance: "0.00", currency: "USD" } })
|
|
2521
|
+
);
|
|
2522
|
+
app.post("/activity/session", async (c) => {
|
|
2523
|
+
await c.req.json().catch(() => ({}));
|
|
2524
|
+
return c.json({ data: { recorded: true } });
|
|
2525
|
+
});
|
|
2518
2526
|
app.post("/activity/events", async (c) => {
|
|
2519
2527
|
const body = await c.req.json().catch(() => ({}));
|
|
2520
2528
|
return tryRoute(c, () => deps.activity.recordEvents(deps.defaultBusinessId, c.var.session.id, body.events ?? []));
|
|
@@ -4523,17 +4531,27 @@ function recalculateTotals(opts) {
|
|
|
4523
4531
|
const lineTotal = multiply(add(item.price, item.add_ons_price), item.quantity);
|
|
4524
4532
|
subtotal = add(subtotal, lineTotal);
|
|
4525
4533
|
}
|
|
4526
|
-
const
|
|
4527
|
-
const
|
|
4528
|
-
const
|
|
4529
|
-
const
|
|
4530
|
-
const
|
|
4534
|
+
const subtotalNum = parseFloat(subtotal);
|
|
4535
|
+
const rawDiscount = opts.appliedCouponCodes.includes("WELCOME10") ? parseFloat(percent(subtotal, 10)) : 0;
|
|
4536
|
+
const cappedDiscount = Math.min(rawDiscount, subtotalNum);
|
|
4537
|
+
const taxable = Math.max(subtotalNum - cappedDiscount, 0);
|
|
4538
|
+
const service = 0;
|
|
4539
|
+
const rate2 = opts.taxRatePct / 100;
|
|
4540
|
+
let tax;
|
|
4541
|
+
let total;
|
|
4542
|
+
if (opts.taxInclusive) {
|
|
4543
|
+
tax = 0;
|
|
4544
|
+
total = subtotalNum + service - cappedDiscount;
|
|
4545
|
+
} else {
|
|
4546
|
+
tax = (taxable + service) * rate2;
|
|
4547
|
+
total = subtotalNum + service + tax - cappedDiscount;
|
|
4548
|
+
}
|
|
4531
4549
|
return {
|
|
4532
4550
|
subtotal,
|
|
4533
|
-
total_discounts:
|
|
4534
|
-
tax_amount: tax,
|
|
4535
|
-
service_charge: service,
|
|
4536
|
-
total_price: total
|
|
4551
|
+
total_discounts: money(cappedDiscount),
|
|
4552
|
+
tax_amount: money(tax),
|
|
4553
|
+
service_charge: money(service),
|
|
4554
|
+
total_price: money(total)
|
|
4537
4555
|
};
|
|
4538
4556
|
}
|
|
4539
4557
|
function computeLineKey(opts) {
|
|
@@ -4666,7 +4684,10 @@ function toUICart(registry, cart) {
|
|
|
4666
4684
|
total_price: cart.total_price,
|
|
4667
4685
|
currency: cart.currency,
|
|
4668
4686
|
tax_rate: cart.tax_rate,
|
|
4669
|
-
service_charge_rate: cart.service_charge_rate
|
|
4687
|
+
service_charge_rate: cart.service_charge_rate,
|
|
4688
|
+
tax_inclusive: false,
|
|
4689
|
+
deposit_required: false,
|
|
4690
|
+
deposit_amount: "0.00"
|
|
4670
4691
|
},
|
|
4671
4692
|
customer_info: {
|
|
4672
4693
|
name: cart.customer_name,
|
|
@@ -4685,6 +4706,7 @@ function toUICart(registry, cart) {
|
|
|
4685
4706
|
|
|
4686
4707
|
// src/mock/domain/cart/index.ts
|
|
4687
4708
|
var CART_TTL_MS = 24 * 60 * 60 * 1e3;
|
|
4709
|
+
var TAX_RATE_PCT = 0;
|
|
4688
4710
|
var ZERO2 = "0.00";
|
|
4689
4711
|
function createCartService(opts) {
|
|
4690
4712
|
const { registry, clock, ids, bus, inventory } = opts;
|
|
@@ -4726,7 +4748,8 @@ function createCartService(opts) {
|
|
|
4726
4748
|
const recalc = (cart) => {
|
|
4727
4749
|
const totals = recalculateTotals({
|
|
4728
4750
|
items: cart.items,
|
|
4729
|
-
appliedCouponCodes: cart.applied_discount_codes
|
|
4751
|
+
appliedCouponCodes: cart.applied_discount_codes,
|
|
4752
|
+
taxRatePct: TAX_RATE_PCT});
|
|
4730
4753
|
const updated = {
|
|
4731
4754
|
...cart,
|
|
4732
4755
|
...totals,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aM as Money, ab as CurrencyCode } from './product-
|
|
1
|
+
import { aM as Money, ab as CurrencyCode } from './product-BgFOFmQw.mjs';
|
|
2
2
|
|
|
3
3
|
type PaymentStatus = "initialized" | "pending" | "processing" | "authorized" | "captured" | "failed" | "cancelled" | "refunded" | "unknown" | "voided" | "requires_action" | "abandoned" | "reversed" | "disputed" | "refund_pending";
|
|
4
4
|
type PaymentProvider = "stripe" | "paystack" | "cellulant" | "mtnmomo" | "offline" | "mtn" | "vodafone" | "airtel" | "cash" | "manual";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aM as Money, ab as CurrencyCode } from './product-
|
|
1
|
+
import { aM as Money, ab as CurrencyCode } from './product-BgFOFmQw.js';
|
|
2
2
|
|
|
3
3
|
type PaymentStatus = "initialized" | "pending" | "processing" | "authorized" | "captured" | "failed" | "cancelled" | "refunded" | "unknown" | "voided" | "requires_action" | "abandoned" | "reversed" | "disputed" | "refund_pending";
|
|
4
4
|
type PaymentProvider = "stripe" | "paystack" | "cellulant" | "mtnmomo" | "offline" | "mtn" | "vodafone" | "airtel" | "cash" | "manual";
|
|
@@ -466,6 +466,13 @@ interface UICartPricing {
|
|
|
466
466
|
tax_rate?: Money;
|
|
467
467
|
service_charge_rate?: Money;
|
|
468
468
|
currency: CurrencyCode;
|
|
469
|
+
/** Tax is baked into the prices (e.g. Ghana VAT), so `tax_amount` is the
|
|
470
|
+
* portion already inside `subtotal`/`total_price`, not an addition. */
|
|
471
|
+
tax_inclusive: boolean;
|
|
472
|
+
/** Deposit computed from the catalogue when the cart has deposit-eligible
|
|
473
|
+
* service items; lets checkout offer "pay deposit now, balance later". */
|
|
474
|
+
deposit_required?: boolean;
|
|
475
|
+
deposit_amount?: Money;
|
|
469
476
|
}
|
|
470
477
|
interface AddOnOptionDetails {
|
|
471
478
|
id: string;
|
|
@@ -466,6 +466,13 @@ interface UICartPricing {
|
|
|
466
466
|
tax_rate?: Money;
|
|
467
467
|
service_charge_rate?: Money;
|
|
468
468
|
currency: CurrencyCode;
|
|
469
|
+
/** Tax is baked into the prices (e.g. Ghana VAT), so `tax_amount` is the
|
|
470
|
+
* portion already inside `subtotal`/`total_price`, not an addition. */
|
|
471
|
+
tax_inclusive: boolean;
|
|
472
|
+
/** Deposit computed from the catalogue when the cart has deposit-eligible
|
|
473
|
+
* service items; lets checkout offer "pay deposit now, balance later". */
|
|
474
|
+
deposit_required?: boolean;
|
|
475
|
+
deposit_amount?: Money;
|
|
469
476
|
}
|
|
470
477
|
interface AddOnOptionDetails {
|
|
471
478
|
id: string;
|
package/dist/react.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
2
|
import { d as AdSlot, c as AdPosition, a as AdContextValue, S as SignInOptions } from './sign-in-DQlIdqsi.mjs';
|
|
3
3
|
export { A as AdConfig, g as getVariantDisplayName } from './sign-in-DQlIdqsi.mjs';
|
|
4
|
-
import { ad as CimplifyClient, cj as ProcessCheckoutResult, aa as CheckoutStatus, ab as CheckoutStatusContext, aV as EnrichedOrderItem, aU as EnrichedOrder, w as Business, bp as Location, cA as ReorderResult, b$ as OrderStatus, bF as Order, cl as QuoteBundleSelectionInput, cm as QuoteCompositeSelectionInput, cf as PriceQuote, cp as QuoteUiMessage, cV as Service, r as AvailableSlot, av as DayAvailability, an as CustomerBooking, M as CancelBookingResult, f as ActivityStateResponse, d2 as SessionMessage, c as ActivityRecommendation, ax as DeliveryFeeResponse, b6 as FxRateResponse, db as StorefrontBootstrap, Y as ChatWidgetStarter, X as ChatMessage, h as AddressInfo, n as AuthenticatedData, aT as ElementsOptions, c9 as PaymentMethodInfo, aR as ElementsCheckoutResult, ci as ProcessCheckoutOptions, ag as CimplifyElements, bg as LineItem, d5 as Staff, cQ as Room } from './client-
|
|
4
|
+
import { ad as CimplifyClient, cj as ProcessCheckoutResult, aa as CheckoutStatus, ab as CheckoutStatusContext, aV as EnrichedOrderItem, aU as EnrichedOrder, w as Business, bp as Location, cA as ReorderResult, b$ as OrderStatus, bF as Order, cl as QuoteBundleSelectionInput, cm as QuoteCompositeSelectionInput, cf as PriceQuote, cp as QuoteUiMessage, cV as Service, r as AvailableSlot, av as DayAvailability, an as CustomerBooking, M as CancelBookingResult, f as ActivityStateResponse, d2 as SessionMessage, c as ActivityRecommendation, ax as DeliveryFeeResponse, b6 as FxRateResponse, db as StoreCreditBalance, dd as StorefrontBootstrap, Y as ChatWidgetStarter, X as ChatMessage, h as AddressInfo, n as AuthenticatedData, aT as ElementsOptions, c9 as PaymentMethodInfo, aR as ElementsCheckoutResult, ci as ProcessCheckoutOptions, ag as CimplifyElements, bg as LineItem, d5 as Staff, cQ as Room } from './client-D16qfHAB.mjs';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
-
import { ab as CurrencyCode, aX as Product, aO as Pagination, T as CimplifyError, b9 as ProductWithDetails, Q as Category, aM as Money, C as BundleSelectionInput, $ as ComponentSelectionInput, z as BundleSelectionData, a8 as CompositeSelectionData, U as Collection, b4 as ProductTaxonomy, bt as TaxonomyWithChildren, b5 as ProductTimeProfile, ah as Deal, b0 as ProductDealInfo, an as DiscountValidation, E as BundleSummary, a6 as CompositePriceResult, bo as SubscriptionWithDetails, bn as SubscriptionStatus, bk as Subscription, ac as CustomAttributeDefinition, ba as PropertyFacet, a$ as ProductBillingPlan, bL as VariantView, bF as VariantAxisWithValues, f as AddOnWithOptions, w as BundleComponentView, x as BundlePriceType, a4 as CompositeGroupView, aq as DisplayCart, b1 as ProductInputField, bg as SchedulingMode, at as DurationUnit, aj as DepositType, ad as CustomAttributeValue, b2 as ProductProperty, bc as QuantityPricingTier } from './product-
|
|
7
|
-
import { P as ProductWithPrice } from './price-
|
|
6
|
+
import { ab as CurrencyCode, aX as Product, aO as Pagination, T as CimplifyError, b9 as ProductWithDetails, Q as Category, aM as Money, C as BundleSelectionInput, $ as ComponentSelectionInput, z as BundleSelectionData, a8 as CompositeSelectionData, U as Collection, b4 as ProductTaxonomy, bt as TaxonomyWithChildren, b5 as ProductTimeProfile, ah as Deal, b0 as ProductDealInfo, an as DiscountValidation, E as BundleSummary, a6 as CompositePriceResult, bo as SubscriptionWithDetails, bn as SubscriptionStatus, bk as Subscription, ac as CustomAttributeDefinition, ba as PropertyFacet, a$ as ProductBillingPlan, bL as VariantView, bF as VariantAxisWithValues, f as AddOnWithOptions, w as BundleComponentView, x as BundlePriceType, a4 as CompositeGroupView, aq as DisplayCart, b1 as ProductInputField, bg as SchedulingMode, at as DurationUnit, aj as DepositType, ad as CustomAttributeValue, b2 as ProductProperty, bc as QuantityPricingTier } from './product-BgFOFmQw.mjs';
|
|
7
|
+
import { P as ProductWithPrice } from './price-BfOaGqjx.mjs';
|
|
8
8
|
import { ClassValue } from 'clsx';
|
|
9
9
|
import { Matcher } from 'react-day-picker';
|
|
10
|
-
import './payment-
|
|
10
|
+
import './payment-B7qzWdaJ.mjs';
|
|
11
11
|
|
|
12
12
|
interface UserIdentity {
|
|
13
13
|
uid: string;
|
|
@@ -1423,6 +1423,19 @@ interface UseFxRateResult {
|
|
|
1423
1423
|
}
|
|
1424
1424
|
declare function useFxRate(options: UseFxRateOptions): UseFxRateResult;
|
|
1425
1425
|
|
|
1426
|
+
type UseStoreCreditOptions = CachedQueryBaseOptions;
|
|
1427
|
+
interface UseStoreCreditResult {
|
|
1428
|
+
balance: StoreCreditBalance | null;
|
|
1429
|
+
isLoading: boolean;
|
|
1430
|
+
error: CimplifyError | null;
|
|
1431
|
+
refetch: () => Promise<void>;
|
|
1432
|
+
}
|
|
1433
|
+
/**
|
|
1434
|
+
* The signed-in shopper's store-credit balance for the current storefront.
|
|
1435
|
+
* Errors (and yields a null balance) for guests — gate the UI on `balance`.
|
|
1436
|
+
*/
|
|
1437
|
+
declare function useStoreCredit(options?: UseStoreCreditOptions): UseStoreCreditResult;
|
|
1438
|
+
|
|
1426
1439
|
interface UseBootstrapOptions extends CachedQueryBaseOptions {
|
|
1427
1440
|
}
|
|
1428
1441
|
interface UseBootstrapResult {
|
|
@@ -3696,4 +3709,4 @@ interface ChatWidgetProps {
|
|
|
3696
3709
|
}
|
|
3697
3710
|
declare function ChatWidget({ client: clientProp, businessName, greeting, subtitle, starters, placeholder, position, defaultOpen, pollInterval, className, classNames, }: ChatWidgetProps): react_jsx_runtime.JSX.Element;
|
|
3698
3711
|
|
|
3699
|
-
export { AccommodationCard, AccountContent, type AccountContentProps, AccountDashboardPage, type AccountDashboardPageProps, AccountHero, type AccountHeroProps, AccountIdentityStrip, type AccountIdentityStripProps, AccountLineItem, type AccountLineItemData, type AccountLineItemProps, AccountLineItems, type AccountLineItemsProps, AccountNav, type AccountNavProps, AccountOrderDetailPage, type AccountOrderDetailPageProps, AccountOrderView, type AccountOrderViewProps, AccountOrdersPage, type AccountOrdersPageProps, type AccountPageBaseProps, AccountShell, type AccountShellProps, AccountSidebar, type AccountSidebarProps, AccountSignedOutPrompt, type AccountSignedOutPromptProps, AccountSubscriptionDetailPage, type AccountSubscriptionDetailPageProps, AccountSubscriptionsPage, type AccountSubscriptionsPageProps, Ad, AdPosition, type AdProps, AdProvider, AdSlot, AddOnSelector, type AddOnSelectorClassNames, type AddOnSelectorProps, type AddToCartOptions, AddressElement, AuthElement, AvailabilityBadge, type AvailabilityBadgeClassNames, type AvailabilityBadgeProps, BackLink, type BackLinkProps, BillingPlanSelector, type BillingPlanSelectorClassNames, type BillingPlanSelectorProps, BookingCard, type BookingCardClassNames, type BookingCardProps, BookingList, type BookingListClassNames, type BookingListProps, BookingPage, type BookingPageClassNames, type BookingPageProps, BookingSummary, type BookingSummaryClassNames, type BookingSummaryProps, BookingsPage, type BookingsPageClassNames, type BookingsPageProps, BoxIcon24, BundleProductCard, BundleProductLayout, BundleSelector, type BundleSelectorClassNames, type BundleSelectorProps, Button, type ButtonProps, CardImage, type CardLayoutProps, CardShell, CardVariant, type CartAddOnOptionSelection, CartDrawer, type CartDrawerProps, CartDrawerProvider, type CartLayoutProps, CartPage, type CartPageClassNames, type CartPageProps, CartSummary, type CartSummaryClassNames, type CartSummaryProps, CartTemplate, type CartVariantSelection, CatalogueCollectionLayout, type CatalogueLayoutProps, CataloguePage, type CataloguePageClassNames, type CataloguePageProps, CatalogueTemplate, CategoryFilter, type CategoryFilterClassNames, type CategoryFilterProps, CategoryGrid, type CategoryGridClassNames, type CategoryGridProps, ChatWidget, type ChatWidgetClassNames, type ChatWidgetProps, CheckIcon, CheckoutPage, type CheckoutPageClassNames, type CheckoutPageProps, CimplifyCheckout, type CimplifyCheckoutProps, type CimplifyClientContextValue, type CimplifyClientSession, type CimplifyContextValue, CimplifyProvider, type CimplifyProviderProps, CimplifySignInButton, type CimplifySignInButtonProps, CimplifyUserButton, type CimplifyUserButtonProps, type CollectionLayoutProps, CollectionPage, type CollectionPageClassNames, type CollectionPageProps, CollectionTemplate, CompactCartLayout, CompactCatalogueLayout, CompactSearchLayout, CompactServiceCard, CompositeProductCard, CompositeProductLayout, CompositeSelector, type CompositeSelectorClassNames, type CompositeSelectorProps, ContextCard, type ContextCardProps, type ContextRow, ContinuityCard, type ContinuityCardProps, CurrencySelector, type CurrencySelectorClassNames, type CurrencySelectorProps, CustomAttributesTable, type CustomerInput, CustomerInputFields, type CustomerInputFieldsClassNames, type CustomerInputFieldsProps, type CustomerInputType, DashboardIcon, DashboardIcon20, DatePicker, type DatePickerClassNames, type DatePickerProps, DateSlotPicker, type DateSlotPickerClassNames, type DateSlotPickerProps, DealBanner, type DealBannerClassNames, type DealBannerProps, DealsPage, type DealsPageClassNames, type DealsPageProps, DefaultCartLayout, DefaultCatalogueLayout, DefaultCollectionLayout, DefaultProductLayout, DefaultSearchLayout, DeliveryEstimate, type DeliveryEstimateClassNames, type DeliveryEstimateProps, type DeliveryLive, type DeliveryRider, DeliveryTracker, type DeliveryTrackerProps, DeliveryTruckIcon, type DigitalFulfillment, DigitalProductCard, DigitalProductLayout, DiscountInput, type DiscountInputClassNames, type DiscountInputProps, ElementsProvider, EmptyState, type EmptyStateProps, ErrorState, type ErrorStateProps, FeaturedCollectionLayout, type FilterTabItem, FilterTabs, type FilterTabsProps, FoodProductCard, FoodProductLayout, HappeningCard, type HappeningCardProps, type HappeningPaneData, IdentityIcon, IdentityOfframp, type IdentityOfframpProps, type IdentitySummary, InventoryBadge, ItemsCard, type ItemsCardProps, LeaseServiceCard, LineItemDetails, type LineItemSemanticKind, type LineScheduling, type LineSelection, type LineStateTone, LocationPicker, type LocationPickerClassNames, type LocationPickerProps, MediaGallery, type MediaGalleryProps, type MediaItem, MetadataStringList, MobileAccountShell, type MobileAccountShellProps, MobileBackButton, MobileMoreButton, MobileTabBar, type MobileTabBarProps, type NavItem, NextDeliveryCard, type NextDeliveryCardProps, OrderDetailHeader, type OrderDetailHeaderProps, OrderDetailMetaPipe, OrderDetailPage, type OrderDetailPageClassNames, type OrderDetailPageProps, OrderHistory, type OrderHistoryClassNames, OrderHistoryPage, type OrderHistoryPageClassNames, type OrderHistoryPageProps, type OrderHistoryProps, type OrderItemData, OrderList, type OrderListProps, OrderRow, type OrderRowData, type OrderRowProps, type OrderRowStatus, type OrderStatusTone, OrderSummary, type OrderSummaryClassNames, type OrderSummaryProps, OrderTimeline, type OrderTimelineProps, OrderTotals, type OrderTotalsProps, type OrderViewDelivery, type OrderViewPayment, type OrderViewPaymentRow, OrdersIcon, OrdersIcon20, OvenIcon, PackageIcon, PaymentElement, Price, type PriceProps, PriceRange, type PriceRangeProps, ProductCard, type ProductCardClassNames, type ProductCardProps, ProductCustomizer, type ProductCustomizerClassNames, type ProductCustomizerProps, ProductGrid, type ProductGridClassNames, type ProductGridProps, ProductImageGallery, type ProductImageGalleryProps, type ProductLayoutProps, ProductModel3D, type ProductModel3DProps, ProductPage, type ProductPageClassNames, type ProductPageProps, ProductSheet, type ProductSheetClassNames, type ProductSheetProps, ProductTemplate, PropertiesTable, QuantitySelector, type QuantitySelectorClassNames, type QuantitySelectorProps, QuickAddButton, RecentlyViewed, type RecentlyViewedClassNames, type RecentlyViewedProps, RecommendationCarousel, type RecommendationCarouselClassNames, type RecommendationCarouselProps, RelatedProductsSection, RentalServiceCard, type Resource, ResourcePicker, type ResourcePickerClassNames, type ResourcePickerProps, RetailProductCard, RichText, type RichTextProps, SaleBadge, type SaleBadgeClassNames, type SaleBadgeProps, ScheduleServiceCard, SearchInput, type SearchInputClassNames, type SearchInputProps, type SearchLayoutProps, SearchPage, type SearchPageClassNames, type SearchPageProps, SearchTemplate, Section, SectionMore, type SectionMoreProps, type SectionProps, type ServiceCardLayoutProps, ServiceProductLayout, SessionMessageBanner, type SessionMessageBannerClassNames, type SessionMessageBannerProps, SignOutIcon, Skeleton, type SkeletonProps, SlotPicker, type SlotPickerClassNames, type SlotPickerProps, SoldOutOverlay, StaffPicker, type StaffPickerClassNames, type StaffPickerProps, StandardServiceCard, Status, type StatusProps, StoreNav, type StoreNavClassNames, type StoreNavProps, StoreVideo, type StoreVideoProps, SubscriptionCard, SubscriptionList, type SubscriptionListProps, SubscriptionRow, type SubscriptionRowData, type SubscriptionRowProps, SubscriptionsIcon, SubscriptionsIcon20, TagPills, TimePicker, type TimePickerClassNames, type TimePickerProps, type TimelineStep, type ToAccountOrderViewOptions, Toast, type ToastProps, type TotalsData, TwoColumnGrid, type UseActivityStateOptions, type UseActivityStateResult, type UseAttributeDefinitionsOptions, type UseAttributeDefinitionsResult, type UseAvailableSlotsOptions, type UseAvailableSlotsResult, type UseBillingPlansOptions, type UseBillingPlansResult, type UseBookingsOptions, type UseBookingsResult, type UseBootstrapOptions, type UseBootstrapResult, type UseBundlesOptions, type UseBundlesResult, type UseCartItem, type UseCartOptions, type UseCartResult, type UseCategoriesOptions, type UseCategoriesResult, type UseChatOptions, type UseChatResult, type UseCimplifySessionOptions, type UseCimplifySessionResult, type UseCollectionOptions, type UseCollectionResult, type UseCollectionsOptions, type UseCollectionsResult, type UseDealsOptions, type UseDealsResult, type UseDeliveryFeeOptions, type UseDeliveryFeeResult, type UseFxRateOptions, type UseFxRateResult, type UseLocationsOptions, type UseLocationsResult, type UseOrderOptions, type UseOrderResult, type UseOrdersOptions, type UseOrdersResult, type UseProductAvailabilityOptions, type UseProductAvailabilityResult, type UseProductDealsOptions, type UseProductDealsResult, type UseProductOptions, type UseProductPriceInput, type UseProductPriceResult, type UseProductResult, type UseProductSchedulesOptions, type UseProductSchedulesResult, type UseProductsOnSaleOptions, type UseProductsOnSaleResult, type UseProductsOptions, type UseProductsResult, type UsePropertyFacetsOptions, type UsePropertyFacetsResult, type UseQuoteInput, type UseQuoteOptions, type UseQuoteResult, type UseRecommendationsOptions, type UseRecommendationsResult, type UseSearchOptions, type UseSearchResult, type UseServiceAvailabilityOptions, type UseServiceAvailabilityResult, type UseServicesOptions, type UseServicesResult, type UseTaxonomiesOptions, type UseTaxonomiesResult, type UseTaxonomyOptions, type UseTaxonomyPathOptions, type UseTaxonomyPathResult, type UseTaxonomyResult, type UseValidateDiscountOptions, type UseValidateDiscountResult, type UseVariantSelectorOptions, type UseVariantSelectorResult, type UserButtonLink, VariantSelector, type VariantSelectorClassNames, type VariantSelectorProps, VolumePricing, type VolumePricingClassNames, type VolumePricingProps, WelcomeCard, type WelcomeCardProps, WholesaleProductCard, WholesaleProductLayout, WishlistButton, cn, roomToResource, sanitizeRichTextHtml, stripHtmlToText, toAccountLineItem, toAccountLineItems, toAccountOrderView, useActivityState, useAds, useAttributeDefinitions, useAvailableSlots, useBillingPlans, useBookings, useBootstrap, useBundles, useCart, useCartDrawer, useCategories, useChat, useCheckout, useCimplify, useCimplifyClient, useCimplifySession, useCollection, useCollections, useDeals, useDeliveryFee, useElements, useElementsReady, useFxRate, useLocations, useOptionalCimplify, useOrder, useOrders, useProduct, useProductAvailability, useProductDeals, useProductPrice, useProductSchedules, useProducts, useProductsOnSale, usePropertyFacets, useQuote, useRecommendations, useSearch, useServiceAvailability, useServices, useSubscription, useSubscriptions, useTaxonomies, useTaxonomy, useTaxonomyPath, useValidateDiscount, useVariantSelector };
|
|
3712
|
+
export { AccommodationCard, AccountContent, type AccountContentProps, AccountDashboardPage, type AccountDashboardPageProps, AccountHero, type AccountHeroProps, AccountIdentityStrip, type AccountIdentityStripProps, AccountLineItem, type AccountLineItemData, type AccountLineItemProps, AccountLineItems, type AccountLineItemsProps, AccountNav, type AccountNavProps, AccountOrderDetailPage, type AccountOrderDetailPageProps, AccountOrderView, type AccountOrderViewProps, AccountOrdersPage, type AccountOrdersPageProps, type AccountPageBaseProps, AccountShell, type AccountShellProps, AccountSidebar, type AccountSidebarProps, AccountSignedOutPrompt, type AccountSignedOutPromptProps, AccountSubscriptionDetailPage, type AccountSubscriptionDetailPageProps, AccountSubscriptionsPage, type AccountSubscriptionsPageProps, Ad, AdPosition, type AdProps, AdProvider, AdSlot, AddOnSelector, type AddOnSelectorClassNames, type AddOnSelectorProps, type AddToCartOptions, AddressElement, AuthElement, AvailabilityBadge, type AvailabilityBadgeClassNames, type AvailabilityBadgeProps, BackLink, type BackLinkProps, BillingPlanSelector, type BillingPlanSelectorClassNames, type BillingPlanSelectorProps, BookingCard, type BookingCardClassNames, type BookingCardProps, BookingList, type BookingListClassNames, type BookingListProps, BookingPage, type BookingPageClassNames, type BookingPageProps, BookingSummary, type BookingSummaryClassNames, type BookingSummaryProps, BookingsPage, type BookingsPageClassNames, type BookingsPageProps, BoxIcon24, BundleProductCard, BundleProductLayout, BundleSelector, type BundleSelectorClassNames, type BundleSelectorProps, Button, type ButtonProps, CardImage, type CardLayoutProps, CardShell, CardVariant, type CartAddOnOptionSelection, CartDrawer, type CartDrawerProps, CartDrawerProvider, type CartLayoutProps, CartPage, type CartPageClassNames, type CartPageProps, CartSummary, type CartSummaryClassNames, type CartSummaryProps, CartTemplate, type CartVariantSelection, CatalogueCollectionLayout, type CatalogueLayoutProps, CataloguePage, type CataloguePageClassNames, type CataloguePageProps, CatalogueTemplate, CategoryFilter, type CategoryFilterClassNames, type CategoryFilterProps, CategoryGrid, type CategoryGridClassNames, type CategoryGridProps, ChatWidget, type ChatWidgetClassNames, type ChatWidgetProps, CheckIcon, CheckoutPage, type CheckoutPageClassNames, type CheckoutPageProps, CimplifyCheckout, type CimplifyCheckoutProps, type CimplifyClientContextValue, type CimplifyClientSession, type CimplifyContextValue, CimplifyProvider, type CimplifyProviderProps, CimplifySignInButton, type CimplifySignInButtonProps, CimplifyUserButton, type CimplifyUserButtonProps, type CollectionLayoutProps, CollectionPage, type CollectionPageClassNames, type CollectionPageProps, CollectionTemplate, CompactCartLayout, CompactCatalogueLayout, CompactSearchLayout, CompactServiceCard, CompositeProductCard, CompositeProductLayout, CompositeSelector, type CompositeSelectorClassNames, type CompositeSelectorProps, ContextCard, type ContextCardProps, type ContextRow, ContinuityCard, type ContinuityCardProps, CurrencySelector, type CurrencySelectorClassNames, type CurrencySelectorProps, CustomAttributesTable, type CustomerInput, CustomerInputFields, type CustomerInputFieldsClassNames, type CustomerInputFieldsProps, type CustomerInputType, DashboardIcon, DashboardIcon20, DatePicker, type DatePickerClassNames, type DatePickerProps, DateSlotPicker, type DateSlotPickerClassNames, type DateSlotPickerProps, DealBanner, type DealBannerClassNames, type DealBannerProps, DealsPage, type DealsPageClassNames, type DealsPageProps, DefaultCartLayout, DefaultCatalogueLayout, DefaultCollectionLayout, DefaultProductLayout, DefaultSearchLayout, DeliveryEstimate, type DeliveryEstimateClassNames, type DeliveryEstimateProps, type DeliveryLive, type DeliveryRider, DeliveryTracker, type DeliveryTrackerProps, DeliveryTruckIcon, type DigitalFulfillment, DigitalProductCard, DigitalProductLayout, DiscountInput, type DiscountInputClassNames, type DiscountInputProps, ElementsProvider, EmptyState, type EmptyStateProps, ErrorState, type ErrorStateProps, FeaturedCollectionLayout, type FilterTabItem, FilterTabs, type FilterTabsProps, FoodProductCard, FoodProductLayout, HappeningCard, type HappeningCardProps, type HappeningPaneData, IdentityIcon, IdentityOfframp, type IdentityOfframpProps, type IdentitySummary, InventoryBadge, ItemsCard, type ItemsCardProps, LeaseServiceCard, LineItemDetails, type LineItemSemanticKind, type LineScheduling, type LineSelection, type LineStateTone, LocationPicker, type LocationPickerClassNames, type LocationPickerProps, MediaGallery, type MediaGalleryProps, type MediaItem, MetadataStringList, MobileAccountShell, type MobileAccountShellProps, MobileBackButton, MobileMoreButton, MobileTabBar, type MobileTabBarProps, type NavItem, NextDeliveryCard, type NextDeliveryCardProps, OrderDetailHeader, type OrderDetailHeaderProps, OrderDetailMetaPipe, OrderDetailPage, type OrderDetailPageClassNames, type OrderDetailPageProps, OrderHistory, type OrderHistoryClassNames, OrderHistoryPage, type OrderHistoryPageClassNames, type OrderHistoryPageProps, type OrderHistoryProps, type OrderItemData, OrderList, type OrderListProps, OrderRow, type OrderRowData, type OrderRowProps, type OrderRowStatus, type OrderStatusTone, OrderSummary, type OrderSummaryClassNames, type OrderSummaryProps, OrderTimeline, type OrderTimelineProps, OrderTotals, type OrderTotalsProps, type OrderViewDelivery, type OrderViewPayment, type OrderViewPaymentRow, OrdersIcon, OrdersIcon20, OvenIcon, PackageIcon, PaymentElement, Price, type PriceProps, PriceRange, type PriceRangeProps, ProductCard, type ProductCardClassNames, type ProductCardProps, ProductCustomizer, type ProductCustomizerClassNames, type ProductCustomizerProps, ProductGrid, type ProductGridClassNames, type ProductGridProps, ProductImageGallery, type ProductImageGalleryProps, type ProductLayoutProps, ProductModel3D, type ProductModel3DProps, ProductPage, type ProductPageClassNames, type ProductPageProps, ProductSheet, type ProductSheetClassNames, type ProductSheetProps, ProductTemplate, PropertiesTable, QuantitySelector, type QuantitySelectorClassNames, type QuantitySelectorProps, QuickAddButton, RecentlyViewed, type RecentlyViewedClassNames, type RecentlyViewedProps, RecommendationCarousel, type RecommendationCarouselClassNames, type RecommendationCarouselProps, RelatedProductsSection, RentalServiceCard, type Resource, ResourcePicker, type ResourcePickerClassNames, type ResourcePickerProps, RetailProductCard, RichText, type RichTextProps, SaleBadge, type SaleBadgeClassNames, type SaleBadgeProps, ScheduleServiceCard, SearchInput, type SearchInputClassNames, type SearchInputProps, type SearchLayoutProps, SearchPage, type SearchPageClassNames, type SearchPageProps, SearchTemplate, Section, SectionMore, type SectionMoreProps, type SectionProps, type ServiceCardLayoutProps, ServiceProductLayout, SessionMessageBanner, type SessionMessageBannerClassNames, type SessionMessageBannerProps, SignOutIcon, Skeleton, type SkeletonProps, SlotPicker, type SlotPickerClassNames, type SlotPickerProps, SoldOutOverlay, StaffPicker, type StaffPickerClassNames, type StaffPickerProps, StandardServiceCard, Status, type StatusProps, StoreNav, type StoreNavClassNames, type StoreNavProps, StoreVideo, type StoreVideoProps, SubscriptionCard, SubscriptionList, type SubscriptionListProps, SubscriptionRow, type SubscriptionRowData, type SubscriptionRowProps, SubscriptionsIcon, SubscriptionsIcon20, TagPills, TimePicker, type TimePickerClassNames, type TimePickerProps, type TimelineStep, type ToAccountOrderViewOptions, Toast, type ToastProps, type TotalsData, TwoColumnGrid, type UseActivityStateOptions, type UseActivityStateResult, type UseAttributeDefinitionsOptions, type UseAttributeDefinitionsResult, type UseAvailableSlotsOptions, type UseAvailableSlotsResult, type UseBillingPlansOptions, type UseBillingPlansResult, type UseBookingsOptions, type UseBookingsResult, type UseBootstrapOptions, type UseBootstrapResult, type UseBundlesOptions, type UseBundlesResult, type UseCartItem, type UseCartOptions, type UseCartResult, type UseCategoriesOptions, type UseCategoriesResult, type UseChatOptions, type UseChatResult, type UseCimplifySessionOptions, type UseCimplifySessionResult, type UseCollectionOptions, type UseCollectionResult, type UseCollectionsOptions, type UseCollectionsResult, type UseDealsOptions, type UseDealsResult, type UseDeliveryFeeOptions, type UseDeliveryFeeResult, type UseFxRateOptions, type UseFxRateResult, type UseLocationsOptions, type UseLocationsResult, type UseOrderOptions, type UseOrderResult, type UseOrdersOptions, type UseOrdersResult, type UseProductAvailabilityOptions, type UseProductAvailabilityResult, type UseProductDealsOptions, type UseProductDealsResult, type UseProductOptions, type UseProductPriceInput, type UseProductPriceResult, type UseProductResult, type UseProductSchedulesOptions, type UseProductSchedulesResult, type UseProductsOnSaleOptions, type UseProductsOnSaleResult, type UseProductsOptions, type UseProductsResult, type UsePropertyFacetsOptions, type UsePropertyFacetsResult, type UseQuoteInput, type UseQuoteOptions, type UseQuoteResult, type UseRecommendationsOptions, type UseRecommendationsResult, type UseSearchOptions, type UseSearchResult, type UseServiceAvailabilityOptions, type UseServiceAvailabilityResult, type UseServicesOptions, type UseServicesResult, type UseStoreCreditOptions, type UseStoreCreditResult, type UseTaxonomiesOptions, type UseTaxonomiesResult, type UseTaxonomyOptions, type UseTaxonomyPathOptions, type UseTaxonomyPathResult, type UseTaxonomyResult, type UseValidateDiscountOptions, type UseValidateDiscountResult, type UseVariantSelectorOptions, type UseVariantSelectorResult, type UserButtonLink, VariantSelector, type VariantSelectorClassNames, type VariantSelectorProps, VolumePricing, type VolumePricingClassNames, type VolumePricingProps, WelcomeCard, type WelcomeCardProps, WholesaleProductCard, WholesaleProductLayout, WishlistButton, cn, roomToResource, sanitizeRichTextHtml, stripHtmlToText, toAccountLineItem, toAccountLineItems, toAccountOrderView, useActivityState, useAds, useAttributeDefinitions, useAvailableSlots, useBillingPlans, useBookings, useBootstrap, useBundles, useCart, useCartDrawer, useCategories, useChat, useCheckout, useCimplify, useCimplifyClient, useCimplifySession, useCollection, useCollections, useDeals, useDeliveryFee, useElements, useElementsReady, useFxRate, useLocations, useOptionalCimplify, useOrder, useOrders, useProduct, useProductAvailability, useProductDeals, useProductPrice, useProductSchedules, useProducts, useProductsOnSale, usePropertyFacets, useQuote, useRecommendations, useSearch, useServiceAvailability, useServices, useStoreCredit, useSubscription, useSubscriptions, useTaxonomies, useTaxonomy, useTaxonomyPath, useValidateDiscount, useVariantSelector };
|
package/dist/react.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
2
|
import { d as AdSlot, c as AdPosition, a as AdContextValue, S as SignInOptions } from './sign-in-DQlIdqsi.js';
|
|
3
3
|
export { A as AdConfig, g as getVariantDisplayName } from './sign-in-DQlIdqsi.js';
|
|
4
|
-
import { ad as CimplifyClient, cj as ProcessCheckoutResult, aa as CheckoutStatus, ab as CheckoutStatusContext, aV as EnrichedOrderItem, aU as EnrichedOrder, w as Business, bp as Location, cA as ReorderResult, b$ as OrderStatus, bF as Order, cl as QuoteBundleSelectionInput, cm as QuoteCompositeSelectionInput, cf as PriceQuote, cp as QuoteUiMessage, cV as Service, r as AvailableSlot, av as DayAvailability, an as CustomerBooking, M as CancelBookingResult, f as ActivityStateResponse, d2 as SessionMessage, c as ActivityRecommendation, ax as DeliveryFeeResponse, b6 as FxRateResponse, db as StorefrontBootstrap, Y as ChatWidgetStarter, X as ChatMessage, h as AddressInfo, n as AuthenticatedData, aT as ElementsOptions, c9 as PaymentMethodInfo, aR as ElementsCheckoutResult, ci as ProcessCheckoutOptions, ag as CimplifyElements, bg as LineItem, d5 as Staff, cQ as Room } from './client-
|
|
4
|
+
import { ad as CimplifyClient, cj as ProcessCheckoutResult, aa as CheckoutStatus, ab as CheckoutStatusContext, aV as EnrichedOrderItem, aU as EnrichedOrder, w as Business, bp as Location, cA as ReorderResult, b$ as OrderStatus, bF as Order, cl as QuoteBundleSelectionInput, cm as QuoteCompositeSelectionInput, cf as PriceQuote, cp as QuoteUiMessage, cV as Service, r as AvailableSlot, av as DayAvailability, an as CustomerBooking, M as CancelBookingResult, f as ActivityStateResponse, d2 as SessionMessage, c as ActivityRecommendation, ax as DeliveryFeeResponse, b6 as FxRateResponse, db as StoreCreditBalance, dd as StorefrontBootstrap, Y as ChatWidgetStarter, X as ChatMessage, h as AddressInfo, n as AuthenticatedData, aT as ElementsOptions, c9 as PaymentMethodInfo, aR as ElementsCheckoutResult, ci as ProcessCheckoutOptions, ag as CimplifyElements, bg as LineItem, d5 as Staff, cQ as Room } from './client-Cn5trGYV.js';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
-
import { ab as CurrencyCode, aX as Product, aO as Pagination, T as CimplifyError, b9 as ProductWithDetails, Q as Category, aM as Money, C as BundleSelectionInput, $ as ComponentSelectionInput, z as BundleSelectionData, a8 as CompositeSelectionData, U as Collection, b4 as ProductTaxonomy, bt as TaxonomyWithChildren, b5 as ProductTimeProfile, ah as Deal, b0 as ProductDealInfo, an as DiscountValidation, E as BundleSummary, a6 as CompositePriceResult, bo as SubscriptionWithDetails, bn as SubscriptionStatus, bk as Subscription, ac as CustomAttributeDefinition, ba as PropertyFacet, a$ as ProductBillingPlan, bL as VariantView, bF as VariantAxisWithValues, f as AddOnWithOptions, w as BundleComponentView, x as BundlePriceType, a4 as CompositeGroupView, aq as DisplayCart, b1 as ProductInputField, bg as SchedulingMode, at as DurationUnit, aj as DepositType, ad as CustomAttributeValue, b2 as ProductProperty, bc as QuantityPricingTier } from './product-
|
|
7
|
-
import { P as ProductWithPrice } from './price-
|
|
6
|
+
import { ab as CurrencyCode, aX as Product, aO as Pagination, T as CimplifyError, b9 as ProductWithDetails, Q as Category, aM as Money, C as BundleSelectionInput, $ as ComponentSelectionInput, z as BundleSelectionData, a8 as CompositeSelectionData, U as Collection, b4 as ProductTaxonomy, bt as TaxonomyWithChildren, b5 as ProductTimeProfile, ah as Deal, b0 as ProductDealInfo, an as DiscountValidation, E as BundleSummary, a6 as CompositePriceResult, bo as SubscriptionWithDetails, bn as SubscriptionStatus, bk as Subscription, ac as CustomAttributeDefinition, ba as PropertyFacet, a$ as ProductBillingPlan, bL as VariantView, bF as VariantAxisWithValues, f as AddOnWithOptions, w as BundleComponentView, x as BundlePriceType, a4 as CompositeGroupView, aq as DisplayCart, b1 as ProductInputField, bg as SchedulingMode, at as DurationUnit, aj as DepositType, ad as CustomAttributeValue, b2 as ProductProperty, bc as QuantityPricingTier } from './product-BgFOFmQw.js';
|
|
7
|
+
import { P as ProductWithPrice } from './price-CS1IsORZ.js';
|
|
8
8
|
import { ClassValue } from 'clsx';
|
|
9
9
|
import { Matcher } from 'react-day-picker';
|
|
10
|
-
import './payment-
|
|
10
|
+
import './payment-mVIJIJcq.js';
|
|
11
11
|
|
|
12
12
|
interface UserIdentity {
|
|
13
13
|
uid: string;
|
|
@@ -1423,6 +1423,19 @@ interface UseFxRateResult {
|
|
|
1423
1423
|
}
|
|
1424
1424
|
declare function useFxRate(options: UseFxRateOptions): UseFxRateResult;
|
|
1425
1425
|
|
|
1426
|
+
type UseStoreCreditOptions = CachedQueryBaseOptions;
|
|
1427
|
+
interface UseStoreCreditResult {
|
|
1428
|
+
balance: StoreCreditBalance | null;
|
|
1429
|
+
isLoading: boolean;
|
|
1430
|
+
error: CimplifyError | null;
|
|
1431
|
+
refetch: () => Promise<void>;
|
|
1432
|
+
}
|
|
1433
|
+
/**
|
|
1434
|
+
* The signed-in shopper's store-credit balance for the current storefront.
|
|
1435
|
+
* Errors (and yields a null balance) for guests — gate the UI on `balance`.
|
|
1436
|
+
*/
|
|
1437
|
+
declare function useStoreCredit(options?: UseStoreCreditOptions): UseStoreCreditResult;
|
|
1438
|
+
|
|
1426
1439
|
interface UseBootstrapOptions extends CachedQueryBaseOptions {
|
|
1427
1440
|
}
|
|
1428
1441
|
interface UseBootstrapResult {
|
|
@@ -3696,4 +3709,4 @@ interface ChatWidgetProps {
|
|
|
3696
3709
|
}
|
|
3697
3710
|
declare function ChatWidget({ client: clientProp, businessName, greeting, subtitle, starters, placeholder, position, defaultOpen, pollInterval, className, classNames, }: ChatWidgetProps): react_jsx_runtime.JSX.Element;
|
|
3698
3711
|
|
|
3699
|
-
export { AccommodationCard, AccountContent, type AccountContentProps, AccountDashboardPage, type AccountDashboardPageProps, AccountHero, type AccountHeroProps, AccountIdentityStrip, type AccountIdentityStripProps, AccountLineItem, type AccountLineItemData, type AccountLineItemProps, AccountLineItems, type AccountLineItemsProps, AccountNav, type AccountNavProps, AccountOrderDetailPage, type AccountOrderDetailPageProps, AccountOrderView, type AccountOrderViewProps, AccountOrdersPage, type AccountOrdersPageProps, type AccountPageBaseProps, AccountShell, type AccountShellProps, AccountSidebar, type AccountSidebarProps, AccountSignedOutPrompt, type AccountSignedOutPromptProps, AccountSubscriptionDetailPage, type AccountSubscriptionDetailPageProps, AccountSubscriptionsPage, type AccountSubscriptionsPageProps, Ad, AdPosition, type AdProps, AdProvider, AdSlot, AddOnSelector, type AddOnSelectorClassNames, type AddOnSelectorProps, type AddToCartOptions, AddressElement, AuthElement, AvailabilityBadge, type AvailabilityBadgeClassNames, type AvailabilityBadgeProps, BackLink, type BackLinkProps, BillingPlanSelector, type BillingPlanSelectorClassNames, type BillingPlanSelectorProps, BookingCard, type BookingCardClassNames, type BookingCardProps, BookingList, type BookingListClassNames, type BookingListProps, BookingPage, type BookingPageClassNames, type BookingPageProps, BookingSummary, type BookingSummaryClassNames, type BookingSummaryProps, BookingsPage, type BookingsPageClassNames, type BookingsPageProps, BoxIcon24, BundleProductCard, BundleProductLayout, BundleSelector, type BundleSelectorClassNames, type BundleSelectorProps, Button, type ButtonProps, CardImage, type CardLayoutProps, CardShell, CardVariant, type CartAddOnOptionSelection, CartDrawer, type CartDrawerProps, CartDrawerProvider, type CartLayoutProps, CartPage, type CartPageClassNames, type CartPageProps, CartSummary, type CartSummaryClassNames, type CartSummaryProps, CartTemplate, type CartVariantSelection, CatalogueCollectionLayout, type CatalogueLayoutProps, CataloguePage, type CataloguePageClassNames, type CataloguePageProps, CatalogueTemplate, CategoryFilter, type CategoryFilterClassNames, type CategoryFilterProps, CategoryGrid, type CategoryGridClassNames, type CategoryGridProps, ChatWidget, type ChatWidgetClassNames, type ChatWidgetProps, CheckIcon, CheckoutPage, type CheckoutPageClassNames, type CheckoutPageProps, CimplifyCheckout, type CimplifyCheckoutProps, type CimplifyClientContextValue, type CimplifyClientSession, type CimplifyContextValue, CimplifyProvider, type CimplifyProviderProps, CimplifySignInButton, type CimplifySignInButtonProps, CimplifyUserButton, type CimplifyUserButtonProps, type CollectionLayoutProps, CollectionPage, type CollectionPageClassNames, type CollectionPageProps, CollectionTemplate, CompactCartLayout, CompactCatalogueLayout, CompactSearchLayout, CompactServiceCard, CompositeProductCard, CompositeProductLayout, CompositeSelector, type CompositeSelectorClassNames, type CompositeSelectorProps, ContextCard, type ContextCardProps, type ContextRow, ContinuityCard, type ContinuityCardProps, CurrencySelector, type CurrencySelectorClassNames, type CurrencySelectorProps, CustomAttributesTable, type CustomerInput, CustomerInputFields, type CustomerInputFieldsClassNames, type CustomerInputFieldsProps, type CustomerInputType, DashboardIcon, DashboardIcon20, DatePicker, type DatePickerClassNames, type DatePickerProps, DateSlotPicker, type DateSlotPickerClassNames, type DateSlotPickerProps, DealBanner, type DealBannerClassNames, type DealBannerProps, DealsPage, type DealsPageClassNames, type DealsPageProps, DefaultCartLayout, DefaultCatalogueLayout, DefaultCollectionLayout, DefaultProductLayout, DefaultSearchLayout, DeliveryEstimate, type DeliveryEstimateClassNames, type DeliveryEstimateProps, type DeliveryLive, type DeliveryRider, DeliveryTracker, type DeliveryTrackerProps, DeliveryTruckIcon, type DigitalFulfillment, DigitalProductCard, DigitalProductLayout, DiscountInput, type DiscountInputClassNames, type DiscountInputProps, ElementsProvider, EmptyState, type EmptyStateProps, ErrorState, type ErrorStateProps, FeaturedCollectionLayout, type FilterTabItem, FilterTabs, type FilterTabsProps, FoodProductCard, FoodProductLayout, HappeningCard, type HappeningCardProps, type HappeningPaneData, IdentityIcon, IdentityOfframp, type IdentityOfframpProps, type IdentitySummary, InventoryBadge, ItemsCard, type ItemsCardProps, LeaseServiceCard, LineItemDetails, type LineItemSemanticKind, type LineScheduling, type LineSelection, type LineStateTone, LocationPicker, type LocationPickerClassNames, type LocationPickerProps, MediaGallery, type MediaGalleryProps, type MediaItem, MetadataStringList, MobileAccountShell, type MobileAccountShellProps, MobileBackButton, MobileMoreButton, MobileTabBar, type MobileTabBarProps, type NavItem, NextDeliveryCard, type NextDeliveryCardProps, OrderDetailHeader, type OrderDetailHeaderProps, OrderDetailMetaPipe, OrderDetailPage, type OrderDetailPageClassNames, type OrderDetailPageProps, OrderHistory, type OrderHistoryClassNames, OrderHistoryPage, type OrderHistoryPageClassNames, type OrderHistoryPageProps, type OrderHistoryProps, type OrderItemData, OrderList, type OrderListProps, OrderRow, type OrderRowData, type OrderRowProps, type OrderRowStatus, type OrderStatusTone, OrderSummary, type OrderSummaryClassNames, type OrderSummaryProps, OrderTimeline, type OrderTimelineProps, OrderTotals, type OrderTotalsProps, type OrderViewDelivery, type OrderViewPayment, type OrderViewPaymentRow, OrdersIcon, OrdersIcon20, OvenIcon, PackageIcon, PaymentElement, Price, type PriceProps, PriceRange, type PriceRangeProps, ProductCard, type ProductCardClassNames, type ProductCardProps, ProductCustomizer, type ProductCustomizerClassNames, type ProductCustomizerProps, ProductGrid, type ProductGridClassNames, type ProductGridProps, ProductImageGallery, type ProductImageGalleryProps, type ProductLayoutProps, ProductModel3D, type ProductModel3DProps, ProductPage, type ProductPageClassNames, type ProductPageProps, ProductSheet, type ProductSheetClassNames, type ProductSheetProps, ProductTemplate, PropertiesTable, QuantitySelector, type QuantitySelectorClassNames, type QuantitySelectorProps, QuickAddButton, RecentlyViewed, type RecentlyViewedClassNames, type RecentlyViewedProps, RecommendationCarousel, type RecommendationCarouselClassNames, type RecommendationCarouselProps, RelatedProductsSection, RentalServiceCard, type Resource, ResourcePicker, type ResourcePickerClassNames, type ResourcePickerProps, RetailProductCard, RichText, type RichTextProps, SaleBadge, type SaleBadgeClassNames, type SaleBadgeProps, ScheduleServiceCard, SearchInput, type SearchInputClassNames, type SearchInputProps, type SearchLayoutProps, SearchPage, type SearchPageClassNames, type SearchPageProps, SearchTemplate, Section, SectionMore, type SectionMoreProps, type SectionProps, type ServiceCardLayoutProps, ServiceProductLayout, SessionMessageBanner, type SessionMessageBannerClassNames, type SessionMessageBannerProps, SignOutIcon, Skeleton, type SkeletonProps, SlotPicker, type SlotPickerClassNames, type SlotPickerProps, SoldOutOverlay, StaffPicker, type StaffPickerClassNames, type StaffPickerProps, StandardServiceCard, Status, type StatusProps, StoreNav, type StoreNavClassNames, type StoreNavProps, StoreVideo, type StoreVideoProps, SubscriptionCard, SubscriptionList, type SubscriptionListProps, SubscriptionRow, type SubscriptionRowData, type SubscriptionRowProps, SubscriptionsIcon, SubscriptionsIcon20, TagPills, TimePicker, type TimePickerClassNames, type TimePickerProps, type TimelineStep, type ToAccountOrderViewOptions, Toast, type ToastProps, type TotalsData, TwoColumnGrid, type UseActivityStateOptions, type UseActivityStateResult, type UseAttributeDefinitionsOptions, type UseAttributeDefinitionsResult, type UseAvailableSlotsOptions, type UseAvailableSlotsResult, type UseBillingPlansOptions, type UseBillingPlansResult, type UseBookingsOptions, type UseBookingsResult, type UseBootstrapOptions, type UseBootstrapResult, type UseBundlesOptions, type UseBundlesResult, type UseCartItem, type UseCartOptions, type UseCartResult, type UseCategoriesOptions, type UseCategoriesResult, type UseChatOptions, type UseChatResult, type UseCimplifySessionOptions, type UseCimplifySessionResult, type UseCollectionOptions, type UseCollectionResult, type UseCollectionsOptions, type UseCollectionsResult, type UseDealsOptions, type UseDealsResult, type UseDeliveryFeeOptions, type UseDeliveryFeeResult, type UseFxRateOptions, type UseFxRateResult, type UseLocationsOptions, type UseLocationsResult, type UseOrderOptions, type UseOrderResult, type UseOrdersOptions, type UseOrdersResult, type UseProductAvailabilityOptions, type UseProductAvailabilityResult, type UseProductDealsOptions, type UseProductDealsResult, type UseProductOptions, type UseProductPriceInput, type UseProductPriceResult, type UseProductResult, type UseProductSchedulesOptions, type UseProductSchedulesResult, type UseProductsOnSaleOptions, type UseProductsOnSaleResult, type UseProductsOptions, type UseProductsResult, type UsePropertyFacetsOptions, type UsePropertyFacetsResult, type UseQuoteInput, type UseQuoteOptions, type UseQuoteResult, type UseRecommendationsOptions, type UseRecommendationsResult, type UseSearchOptions, type UseSearchResult, type UseServiceAvailabilityOptions, type UseServiceAvailabilityResult, type UseServicesOptions, type UseServicesResult, type UseTaxonomiesOptions, type UseTaxonomiesResult, type UseTaxonomyOptions, type UseTaxonomyPathOptions, type UseTaxonomyPathResult, type UseTaxonomyResult, type UseValidateDiscountOptions, type UseValidateDiscountResult, type UseVariantSelectorOptions, type UseVariantSelectorResult, type UserButtonLink, VariantSelector, type VariantSelectorClassNames, type VariantSelectorProps, VolumePricing, type VolumePricingClassNames, type VolumePricingProps, WelcomeCard, type WelcomeCardProps, WholesaleProductCard, WholesaleProductLayout, WishlistButton, cn, roomToResource, sanitizeRichTextHtml, stripHtmlToText, toAccountLineItem, toAccountLineItems, toAccountOrderView, useActivityState, useAds, useAttributeDefinitions, useAvailableSlots, useBillingPlans, useBookings, useBootstrap, useBundles, useCart, useCartDrawer, useCategories, useChat, useCheckout, useCimplify, useCimplifyClient, useCimplifySession, useCollection, useCollections, useDeals, useDeliveryFee, useElements, useElementsReady, useFxRate, useLocations, useOptionalCimplify, useOrder, useOrders, useProduct, useProductAvailability, useProductDeals, useProductPrice, useProductSchedules, useProducts, useProductsOnSale, usePropertyFacets, useQuote, useRecommendations, useSearch, useServiceAvailability, useServices, useSubscription, useSubscriptions, useTaxonomies, useTaxonomy, useTaxonomyPath, useValidateDiscount, useVariantSelector };
|
|
3712
|
+
export { AccommodationCard, AccountContent, type AccountContentProps, AccountDashboardPage, type AccountDashboardPageProps, AccountHero, type AccountHeroProps, AccountIdentityStrip, type AccountIdentityStripProps, AccountLineItem, type AccountLineItemData, type AccountLineItemProps, AccountLineItems, type AccountLineItemsProps, AccountNav, type AccountNavProps, AccountOrderDetailPage, type AccountOrderDetailPageProps, AccountOrderView, type AccountOrderViewProps, AccountOrdersPage, type AccountOrdersPageProps, type AccountPageBaseProps, AccountShell, type AccountShellProps, AccountSidebar, type AccountSidebarProps, AccountSignedOutPrompt, type AccountSignedOutPromptProps, AccountSubscriptionDetailPage, type AccountSubscriptionDetailPageProps, AccountSubscriptionsPage, type AccountSubscriptionsPageProps, Ad, AdPosition, type AdProps, AdProvider, AdSlot, AddOnSelector, type AddOnSelectorClassNames, type AddOnSelectorProps, type AddToCartOptions, AddressElement, AuthElement, AvailabilityBadge, type AvailabilityBadgeClassNames, type AvailabilityBadgeProps, BackLink, type BackLinkProps, BillingPlanSelector, type BillingPlanSelectorClassNames, type BillingPlanSelectorProps, BookingCard, type BookingCardClassNames, type BookingCardProps, BookingList, type BookingListClassNames, type BookingListProps, BookingPage, type BookingPageClassNames, type BookingPageProps, BookingSummary, type BookingSummaryClassNames, type BookingSummaryProps, BookingsPage, type BookingsPageClassNames, type BookingsPageProps, BoxIcon24, BundleProductCard, BundleProductLayout, BundleSelector, type BundleSelectorClassNames, type BundleSelectorProps, Button, type ButtonProps, CardImage, type CardLayoutProps, CardShell, CardVariant, type CartAddOnOptionSelection, CartDrawer, type CartDrawerProps, CartDrawerProvider, type CartLayoutProps, CartPage, type CartPageClassNames, type CartPageProps, CartSummary, type CartSummaryClassNames, type CartSummaryProps, CartTemplate, type CartVariantSelection, CatalogueCollectionLayout, type CatalogueLayoutProps, CataloguePage, type CataloguePageClassNames, type CataloguePageProps, CatalogueTemplate, CategoryFilter, type CategoryFilterClassNames, type CategoryFilterProps, CategoryGrid, type CategoryGridClassNames, type CategoryGridProps, ChatWidget, type ChatWidgetClassNames, type ChatWidgetProps, CheckIcon, CheckoutPage, type CheckoutPageClassNames, type CheckoutPageProps, CimplifyCheckout, type CimplifyCheckoutProps, type CimplifyClientContextValue, type CimplifyClientSession, type CimplifyContextValue, CimplifyProvider, type CimplifyProviderProps, CimplifySignInButton, type CimplifySignInButtonProps, CimplifyUserButton, type CimplifyUserButtonProps, type CollectionLayoutProps, CollectionPage, type CollectionPageClassNames, type CollectionPageProps, CollectionTemplate, CompactCartLayout, CompactCatalogueLayout, CompactSearchLayout, CompactServiceCard, CompositeProductCard, CompositeProductLayout, CompositeSelector, type CompositeSelectorClassNames, type CompositeSelectorProps, ContextCard, type ContextCardProps, type ContextRow, ContinuityCard, type ContinuityCardProps, CurrencySelector, type CurrencySelectorClassNames, type CurrencySelectorProps, CustomAttributesTable, type CustomerInput, CustomerInputFields, type CustomerInputFieldsClassNames, type CustomerInputFieldsProps, type CustomerInputType, DashboardIcon, DashboardIcon20, DatePicker, type DatePickerClassNames, type DatePickerProps, DateSlotPicker, type DateSlotPickerClassNames, type DateSlotPickerProps, DealBanner, type DealBannerClassNames, type DealBannerProps, DealsPage, type DealsPageClassNames, type DealsPageProps, DefaultCartLayout, DefaultCatalogueLayout, DefaultCollectionLayout, DefaultProductLayout, DefaultSearchLayout, DeliveryEstimate, type DeliveryEstimateClassNames, type DeliveryEstimateProps, type DeliveryLive, type DeliveryRider, DeliveryTracker, type DeliveryTrackerProps, DeliveryTruckIcon, type DigitalFulfillment, DigitalProductCard, DigitalProductLayout, DiscountInput, type DiscountInputClassNames, type DiscountInputProps, ElementsProvider, EmptyState, type EmptyStateProps, ErrorState, type ErrorStateProps, FeaturedCollectionLayout, type FilterTabItem, FilterTabs, type FilterTabsProps, FoodProductCard, FoodProductLayout, HappeningCard, type HappeningCardProps, type HappeningPaneData, IdentityIcon, IdentityOfframp, type IdentityOfframpProps, type IdentitySummary, InventoryBadge, ItemsCard, type ItemsCardProps, LeaseServiceCard, LineItemDetails, type LineItemSemanticKind, type LineScheduling, type LineSelection, type LineStateTone, LocationPicker, type LocationPickerClassNames, type LocationPickerProps, MediaGallery, type MediaGalleryProps, type MediaItem, MetadataStringList, MobileAccountShell, type MobileAccountShellProps, MobileBackButton, MobileMoreButton, MobileTabBar, type MobileTabBarProps, type NavItem, NextDeliveryCard, type NextDeliveryCardProps, OrderDetailHeader, type OrderDetailHeaderProps, OrderDetailMetaPipe, OrderDetailPage, type OrderDetailPageClassNames, type OrderDetailPageProps, OrderHistory, type OrderHistoryClassNames, OrderHistoryPage, type OrderHistoryPageClassNames, type OrderHistoryPageProps, type OrderHistoryProps, type OrderItemData, OrderList, type OrderListProps, OrderRow, type OrderRowData, type OrderRowProps, type OrderRowStatus, type OrderStatusTone, OrderSummary, type OrderSummaryClassNames, type OrderSummaryProps, OrderTimeline, type OrderTimelineProps, OrderTotals, type OrderTotalsProps, type OrderViewDelivery, type OrderViewPayment, type OrderViewPaymentRow, OrdersIcon, OrdersIcon20, OvenIcon, PackageIcon, PaymentElement, Price, type PriceProps, PriceRange, type PriceRangeProps, ProductCard, type ProductCardClassNames, type ProductCardProps, ProductCustomizer, type ProductCustomizerClassNames, type ProductCustomizerProps, ProductGrid, type ProductGridClassNames, type ProductGridProps, ProductImageGallery, type ProductImageGalleryProps, type ProductLayoutProps, ProductModel3D, type ProductModel3DProps, ProductPage, type ProductPageClassNames, type ProductPageProps, ProductSheet, type ProductSheetClassNames, type ProductSheetProps, ProductTemplate, PropertiesTable, QuantitySelector, type QuantitySelectorClassNames, type QuantitySelectorProps, QuickAddButton, RecentlyViewed, type RecentlyViewedClassNames, type RecentlyViewedProps, RecommendationCarousel, type RecommendationCarouselClassNames, type RecommendationCarouselProps, RelatedProductsSection, RentalServiceCard, type Resource, ResourcePicker, type ResourcePickerClassNames, type ResourcePickerProps, RetailProductCard, RichText, type RichTextProps, SaleBadge, type SaleBadgeClassNames, type SaleBadgeProps, ScheduleServiceCard, SearchInput, type SearchInputClassNames, type SearchInputProps, type SearchLayoutProps, SearchPage, type SearchPageClassNames, type SearchPageProps, SearchTemplate, Section, SectionMore, type SectionMoreProps, type SectionProps, type ServiceCardLayoutProps, ServiceProductLayout, SessionMessageBanner, type SessionMessageBannerClassNames, type SessionMessageBannerProps, SignOutIcon, Skeleton, type SkeletonProps, SlotPicker, type SlotPickerClassNames, type SlotPickerProps, SoldOutOverlay, StaffPicker, type StaffPickerClassNames, type StaffPickerProps, StandardServiceCard, Status, type StatusProps, StoreNav, type StoreNavClassNames, type StoreNavProps, StoreVideo, type StoreVideoProps, SubscriptionCard, SubscriptionList, type SubscriptionListProps, SubscriptionRow, type SubscriptionRowData, type SubscriptionRowProps, SubscriptionsIcon, SubscriptionsIcon20, TagPills, TimePicker, type TimePickerClassNames, type TimePickerProps, type TimelineStep, type ToAccountOrderViewOptions, Toast, type ToastProps, type TotalsData, TwoColumnGrid, type UseActivityStateOptions, type UseActivityStateResult, type UseAttributeDefinitionsOptions, type UseAttributeDefinitionsResult, type UseAvailableSlotsOptions, type UseAvailableSlotsResult, type UseBillingPlansOptions, type UseBillingPlansResult, type UseBookingsOptions, type UseBookingsResult, type UseBootstrapOptions, type UseBootstrapResult, type UseBundlesOptions, type UseBundlesResult, type UseCartItem, type UseCartOptions, type UseCartResult, type UseCategoriesOptions, type UseCategoriesResult, type UseChatOptions, type UseChatResult, type UseCimplifySessionOptions, type UseCimplifySessionResult, type UseCollectionOptions, type UseCollectionResult, type UseCollectionsOptions, type UseCollectionsResult, type UseDealsOptions, type UseDealsResult, type UseDeliveryFeeOptions, type UseDeliveryFeeResult, type UseFxRateOptions, type UseFxRateResult, type UseLocationsOptions, type UseLocationsResult, type UseOrderOptions, type UseOrderResult, type UseOrdersOptions, type UseOrdersResult, type UseProductAvailabilityOptions, type UseProductAvailabilityResult, type UseProductDealsOptions, type UseProductDealsResult, type UseProductOptions, type UseProductPriceInput, type UseProductPriceResult, type UseProductResult, type UseProductSchedulesOptions, type UseProductSchedulesResult, type UseProductsOnSaleOptions, type UseProductsOnSaleResult, type UseProductsOptions, type UseProductsResult, type UsePropertyFacetsOptions, type UsePropertyFacetsResult, type UseQuoteInput, type UseQuoteOptions, type UseQuoteResult, type UseRecommendationsOptions, type UseRecommendationsResult, type UseSearchOptions, type UseSearchResult, type UseServiceAvailabilityOptions, type UseServiceAvailabilityResult, type UseServicesOptions, type UseServicesResult, type UseStoreCreditOptions, type UseStoreCreditResult, type UseTaxonomiesOptions, type UseTaxonomiesResult, type UseTaxonomyOptions, type UseTaxonomyPathOptions, type UseTaxonomyPathResult, type UseTaxonomyResult, type UseValidateDiscountOptions, type UseValidateDiscountResult, type UseVariantSelectorOptions, type UseVariantSelectorResult, type UserButtonLink, VariantSelector, type VariantSelectorClassNames, type VariantSelectorProps, VolumePricing, type VolumePricingClassNames, type VolumePricingProps, WelcomeCard, type WelcomeCardProps, WholesaleProductCard, WholesaleProductLayout, WishlistButton, cn, roomToResource, sanitizeRichTextHtml, stripHtmlToText, toAccountLineItem, toAccountLineItems, toAccountOrderView, useActivityState, useAds, useAttributeDefinitions, useAvailableSlots, useBillingPlans, useBookings, useBootstrap, useBundles, useCart, useCartDrawer, useCategories, useChat, useCheckout, useCimplify, useCimplifyClient, useCimplifySession, useCollection, useCollections, useDeals, useDeliveryFee, useElements, useElementsReady, useFxRate, useLocations, useOptionalCimplify, useOrder, useOrders, useProduct, useProductAvailability, useProductDeals, useProductPrice, useProductSchedules, useProducts, useProductsOnSale, usePropertyFacets, useQuote, useRecommendations, useSearch, useServiceAvailability, useServices, useStoreCredit, useSubscription, useSubscriptions, useTaxonomies, useTaxonomy, useTaxonomyPath, useValidateDiscount, useVariantSelector };
|
package/dist/react.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkIQLJJW2H_js = require('./chunk-IQLJJW2H.js');
|
|
5
|
-
var
|
|
5
|
+
var chunk5BPBDWAA_js = require('./chunk-5BPBDWAA.js');
|
|
6
6
|
var chunkCV5QMDQS_js = require('./chunk-CV5QMDQS.js');
|
|
7
7
|
var chunk7Y2O3E4D_js = require('./chunk-7Y2O3E4D.js');
|
|
8
8
|
var chunkXA3ZNR75_js = require('./chunk-XA3ZNR75.js');
|
|
@@ -407,7 +407,10 @@ function transformToCheckoutCart(cart, fx) {
|
|
|
407
407
|
total_discounts: amt(cart.pricing.total_discounts),
|
|
408
408
|
service_charge: amt(cart.pricing.service_charge),
|
|
409
409
|
total: amt(cart.pricing.total_price),
|
|
410
|
-
currency: fx?.displayCurrency ?? cart.pricing.currency
|
|
410
|
+
currency: fx?.displayCurrency ?? cart.pricing.currency,
|
|
411
|
+
tax_inclusive: cart.pricing.tax_inclusive ?? false,
|
|
412
|
+
deposit_required: cart.pricing.deposit_required ?? false,
|
|
413
|
+
deposit_amount: cart.pricing.deposit_amount != null ? amt(cart.pricing.deposit_amount) : void 0
|
|
411
414
|
};
|
|
412
415
|
}
|
|
413
416
|
|
|
@@ -1086,7 +1089,7 @@ var DEFAULT_COUNTRY = "US";
|
|
|
1086
1089
|
function createDefaultClient() {
|
|
1087
1090
|
const processRef = globalThis.process;
|
|
1088
1091
|
const envPublicKey = processRef?.env?.NEXT_PUBLIC_CIMPLIFY_PUBLIC_KEY || "";
|
|
1089
|
-
return
|
|
1092
|
+
return chunk5BPBDWAA_js.createCimplifyClient({ publicKey: envPublicKey });
|
|
1090
1093
|
}
|
|
1091
1094
|
function getStoredLocationId() {
|
|
1092
1095
|
if (typeof window === "undefined" || !window.localStorage) {
|
|
@@ -5724,6 +5727,21 @@ function useFxRate(options) {
|
|
|
5724
5727
|
return { rate: data, isLoading, error, refetch };
|
|
5725
5728
|
}
|
|
5726
5729
|
|
|
5730
|
+
// src/react/hooks/use-store-credit.ts
|
|
5731
|
+
var storeCreditQuery = createCachedQuery({
|
|
5732
|
+
name: "useStoreCredit",
|
|
5733
|
+
key: (client) => cacheKey(client.getPublicKey(), "store-credit"),
|
|
5734
|
+
fetch: async (client) => {
|
|
5735
|
+
const result = await client.storeCredit.balance();
|
|
5736
|
+
if (!result.ok) throw result.error;
|
|
5737
|
+
return result.value;
|
|
5738
|
+
}
|
|
5739
|
+
});
|
|
5740
|
+
function useStoreCredit(options = {}) {
|
|
5741
|
+
const { data, isLoading, error, refetch } = storeCreditQuery(options);
|
|
5742
|
+
return { balance: data, isLoading, error, refetch };
|
|
5743
|
+
}
|
|
5744
|
+
|
|
5727
5745
|
// src/react/hooks/use-bootstrap.ts
|
|
5728
5746
|
var bootstrapQuery = createCachedQuery({
|
|
5729
5747
|
name: "useBootstrap",
|
|
@@ -16984,6 +17002,7 @@ exports.useRecommendations = useRecommendations;
|
|
|
16984
17002
|
exports.useSearch = useSearch;
|
|
16985
17003
|
exports.useServiceAvailability = useServiceAvailability;
|
|
16986
17004
|
exports.useServices = useServices;
|
|
17005
|
+
exports.useStoreCredit = useStoreCredit;
|
|
16987
17006
|
exports.useSubscription = useSubscription;
|
|
16988
17007
|
exports.useSubscriptions = useSubscriptions;
|
|
16989
17008
|
exports.useTaxonomies = useTaxonomies;
|