@cimplify/sdk 0.100.0 → 0.100.2
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/advanced.js +22 -22
- package/dist/advanced.mjs +3 -3
- package/dist/{chunk-X6G6QERR.js → chunk-6JEKKL3M.js} +53 -38
- package/dist/{chunk-7TEMLVDT.mjs → chunk-B2YOCOLH.mjs} +2 -2
- package/dist/{chunk-V5TU5JKA.mjs → chunk-DLW3RWRK.mjs} +30 -6
- package/dist/{chunk-FECGCIVV.js → chunk-IFAQLFAJ.js} +4 -4
- package/dist/{chunk-J3UYIBKH.js → chunk-IJI7KMTG.js} +89 -82
- package/dist/{chunk-AETVRBKI.js → chunk-NIOUSKQQ.js} +1 -0
- package/dist/{chunk-K5EN2W2Q.mjs → chunk-O3YUHLZL.mjs} +1 -0
- package/dist/{chunk-GWKIDFN6.mjs → chunk-PJUXAUM2.mjs} +20 -14
- package/dist/{chunk-ZA5VKVUB.js → chunk-QRBBSIAY.js} +4 -4
- package/dist/{chunk-OX5L6XE7.mjs → chunk-TIQLOH2B.mjs} +30 -15
- package/dist/{chunk-64EDCDBR.js → chunk-WMEC5JWN.js} +32 -7
- package/dist/{chunk-I7L4VRHI.mjs → chunk-YWNJJO2U.mjs} +2 -2
- package/dist/{client-DQpvwf-p.d.mts → client-C6wb92AD.d.mts} +2 -2
- package/dist/{client-DmR3Z6pQ.d.ts → client-CgXkRu2o.d.ts} +2 -2
- package/dist/{client-C1vS5pf0.d.ts → client-D8XcrONA.d.mts} +38 -26
- package/dist/{client-B5MeD8da.d.mts → client-LPg_AUUr.d.ts} +38 -26
- package/dist/{index-Br-vFygC.d.ts → index-B_RYmvlF.d.ts} +3 -3
- package/dist/{index-DUOCn1Cs.d.mts → index-D-LUYk1Y.d.mts} +3 -3
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +117 -117
- package/dist/index.mjs +5 -5
- package/dist/mock/cli.mjs +1 -1
- package/dist/mock/library.js +1 -1
- package/dist/mock/library.mjs +1 -1
- package/dist/mock/msw.js +1 -1
- package/dist/mock/msw.mjs +1 -1
- package/dist/{payment-BIpS9oPG.d.mts → payment-BSzy7sly.d.mts} +1 -1
- package/dist/{payment-CsuBKHqg.d.ts → payment-jK8ztICx.d.ts} +1 -1
- package/dist/{price-Ml_uPoiY.d.ts → price-CJLfcYKd.d.ts} +1 -1
- package/dist/{price-IOOoVYS-.d.mts → price-D96h6c6L.d.mts} +1 -1
- package/dist/{product-BKV6TBj_.d.ts → product-CeV8euw4.d.mts} +23 -11
- package/dist/{product-BKV6TBj_.d.mts → product-CeV8euw4.d.ts} +23 -11
- package/dist/react.d.mts +10 -5
- package/dist/react.d.ts +10 -5
- package/dist/react.js +856 -450
- package/dist/react.mjs +737 -331
- package/dist/{server-C0iEk55_.d.mts → server--RyVAfPN.d.mts} +1 -1
- package/dist/{server-CfpYhSV_.d.ts → server-CNyy47HL.d.ts} +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +10 -10
- package/dist/server.mjs +4 -4
- package/dist/testing/msw.d.mts +2 -2
- package/dist/testing/msw.d.ts +2 -2
- package/dist/testing/msw.js +3 -3
- package/dist/testing/msw.mjs +2 -2
- package/dist/testing/suite.d.mts +6 -6
- package/dist/testing/suite.d.ts +6 -6
- package/dist/testing/suite.js +25 -25
- package/dist/testing/suite.mjs +6 -6
- package/dist/testing.d.mts +5 -5
- package/dist/testing.d.ts +5 -5
- package/dist/testing.js +81 -81
- package/dist/testing.mjs +7 -7
- package/dist/utils.d.mts +4 -4
- package/dist/utils.d.ts +4 -4
- package/dist/utils.js +29 -29
- package/dist/utils.mjs +2 -2
- package/package.json +1 -1
- package/registry/cart-summary.json +1 -1
- package/registry/product-customizer.json +1 -1
- package/registry/sale-badge.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aO as Money, ad as CurrencyCode } from './product-
|
|
1
|
+
import { aO as Money, ad as CurrencyCode } from './product-CeV8euw4.mjs';
|
|
2
2
|
|
|
3
3
|
type PaymentStatus = "initialized" | "pending" | "processing" | "authorized" | "captured" | "not_required" | "failed" | "cancelled" | "refunded" | "unknown" | "voided" | "requires_action" | "abandoned" | "reversed" | "disputed" | "refund_pending";
|
|
4
4
|
type PaymentProvider = "stripe" | "paystack" | "cellulant" | "mtn_momo" | "offline" | "mtn" | "vodafone" | "airtel" | "cash" | "manual";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aO as Money, ad as CurrencyCode } from './product-
|
|
1
|
+
import { aO as Money, ad as CurrencyCode } from './product-CeV8euw4.js';
|
|
2
2
|
|
|
3
3
|
type PaymentStatus = "initialized" | "pending" | "processing" | "authorized" | "captured" | "not_required" | "failed" | "cancelled" | "refunded" | "unknown" | "voided" | "requires_action" | "abandoned" | "reversed" | "disputed" | "refund_pending";
|
|
4
4
|
type PaymentProvider = "stripe" | "paystack" | "cellulant" | "mtn_momo" | "offline" | "mtn" | "vodafone" | "airtel" | "cash" | "manual";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ad as CurrencyCode, U as ChosenPrice, bi as SaleInfo, bD as UpcomingSale } from './product-
|
|
1
|
+
import { ad as CurrencyCode, U as ChosenPrice, bi as SaleInfo, bD as UpcomingSale } from './product-CeV8euw4.js';
|
|
2
2
|
|
|
3
3
|
interface ProductWithPrice {
|
|
4
4
|
price_info?: ChosenPrice;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ad as CurrencyCode, U as ChosenPrice, bi as SaleInfo, bD as UpcomingSale } from './product-
|
|
1
|
+
import { ad as CurrencyCode, U as ChosenPrice, bi as SaleInfo, bD as UpcomingSale } from './product-CeV8euw4.mjs';
|
|
2
2
|
|
|
3
3
|
interface ProductWithPrice {
|
|
4
4
|
price_info?: ChosenPrice;
|
|
@@ -5,7 +5,7 @@ type Money = (string | number) & {
|
|
|
5
5
|
declare function money(value: string | number): Money;
|
|
6
6
|
declare function moneyFromNumber(value: number): Money;
|
|
7
7
|
declare const ZERO: Money;
|
|
8
|
-
type CurrencyCode = "USD" | "EUR" | "GBP" | "JPY" | "CNY" | "CHF" | "CAD" | "AUD" | "GHS" | "NGN" | "KES" | "ZAR" | "XOF" | "XAF" | "EGP" | "TZS" | "UGX" | "RWF" | "ETB" | "ZMW" | "BWP" | "MUR" | "NAD" | "MWK" | "AOA" | "CDF" | "GMD" | "GNF" | "LRD" | "SLL" | "MZN" | "BIF" | "INR" | "BRL" | "MXN" | "KRW" | "TRY" | "THB" | "MYR" | "PHP" | "IDR" | "VND" | "SGD" | "HKD" | "TWD" | "AED" | "SAR" | "ILS";
|
|
8
|
+
type CurrencyCode = "USD" | "EUR" | "GBP" | "JPY" | "CNY" | "CHF" | "CAD" | "AUD" | "GHS" | "NGN" | "KES" | "ZAR" | "XOF" | "XAF" | "EGP" | "TZS" | "UGX" | "RWF" | "ETB" | "ZMW" | "BWP" | "MUR" | "NAD" | "MWK" | "AOA" | "CDF" | "GMD" | "GNF" | "LRD" | "SLL" | "MZN" | "BIF" | "INR" | "BRL" | "COP" | "MXN" | "KRW" | "TRY" | "THB" | "MYR" | "PHP" | "IDR" | "VND" | "SGD" | "HKD" | "TWD" | "AED" | "SAR" | "ILS";
|
|
9
9
|
declare function isSupportedCurrency(code: string): code is CurrencyCode;
|
|
10
10
|
declare function currencyCode(value: string): CurrencyCode;
|
|
11
11
|
interface PaginationParams {
|
|
@@ -2333,8 +2333,8 @@ interface components {
|
|
|
2333
2333
|
* can be explained months later even if zones, rates, or providers change.
|
|
2334
2334
|
*/
|
|
2335
2335
|
DeliveryFeeDetails: {
|
|
2336
|
-
zone_id
|
|
2337
|
-
zone_name
|
|
2336
|
+
zone_id?: string | null;
|
|
2337
|
+
zone_name?: string | null;
|
|
2338
2338
|
provider: string;
|
|
2339
2339
|
provider_resolved_from: components["schemas"]["ProviderResolutionSource"];
|
|
2340
2340
|
/**
|
|
@@ -2343,10 +2343,10 @@ interface components {
|
|
|
2343
2343
|
*/
|
|
2344
2344
|
rate_id?: string | null;
|
|
2345
2345
|
rate_name?: string | null;
|
|
2346
|
-
distance_km
|
|
2347
|
-
base_fee
|
|
2348
|
-
per_km_fee
|
|
2349
|
-
surge_multiplier
|
|
2346
|
+
distance_km?: string | null;
|
|
2347
|
+
base_fee?: string | null;
|
|
2348
|
+
per_km_fee?: string | null;
|
|
2349
|
+
surge_multiplier?: string | null;
|
|
2350
2350
|
calculated_fee: string;
|
|
2351
2351
|
currency: string;
|
|
2352
2352
|
free_delivery_applied: boolean;
|
|
@@ -2362,9 +2362,10 @@ interface components {
|
|
|
2362
2362
|
details?: null | components["schemas"]["DeliveryFeeDetails"];
|
|
2363
2363
|
};
|
|
2364
2364
|
/**
|
|
2365
|
-
* @description One entry on the customer-facing delivery menu
|
|
2366
|
-
*
|
|
2367
|
-
*
|
|
2365
|
+
* @description One entry on the customer-facing delivery menu. Zone-backed rates are
|
|
2366
|
+
* priced for a concrete dropoff; all-zone flat rates can be priced from the
|
|
2367
|
+
* order value alone. `rate_id = None` is the synthesized fallback for
|
|
2368
|
+
* businesses with no named rates configured.
|
|
2368
2369
|
*/
|
|
2369
2370
|
DeliveryOption: {
|
|
2370
2371
|
rate_id?: string | null;
|
|
@@ -3642,6 +3643,12 @@ interface components {
|
|
|
3642
3643
|
sku?: string | null;
|
|
3643
3644
|
barcode?: string | null;
|
|
3644
3645
|
default_price?: string;
|
|
3646
|
+
/**
|
|
3647
|
+
* @description Currency of the evaluated storefront price. Kept beside the scalar
|
|
3648
|
+
* amount because the richer internal price path is intentionally not
|
|
3649
|
+
* serialized on catalogue payloads.
|
|
3650
|
+
*/
|
|
3651
|
+
currency?: string | null;
|
|
3645
3652
|
sale?: null | components["schemas"]["SaleInfo"];
|
|
3646
3653
|
upcoming_sale?: null | components["schemas"]["UpcomingSale"];
|
|
3647
3654
|
location_prices?: {
|
|
@@ -3814,7 +3821,7 @@ interface components {
|
|
|
3814
3821
|
* @description How the delivery provider was resolved.
|
|
3815
3822
|
* @enum {string}
|
|
3816
3823
|
*/
|
|
3817
|
-
ProviderResolutionSource: "zone" | "hint" | "fallback" | "best_price";
|
|
3824
|
+
ProviderResolutionSource: "zone" | "hint" | "fallback" | "rate" | "best_price";
|
|
3818
3825
|
QuantityPricingTier: {
|
|
3819
3826
|
/** Format: int32 */
|
|
3820
3827
|
min_quantity: number;
|
|
@@ -4558,6 +4565,7 @@ interface components {
|
|
|
4558
4565
|
sku?: string | null;
|
|
4559
4566
|
barcode?: string | null;
|
|
4560
4567
|
price_adjustment?: string;
|
|
4568
|
+
price_info?: null | components["schemas"]["ChosenPrice"];
|
|
4561
4569
|
location_prices?: {
|
|
4562
4570
|
[key: string]: components["schemas"]["ChosenPrice"];
|
|
4563
4571
|
} | null;
|
|
@@ -4824,6 +4832,8 @@ interface Product {
|
|
|
4824
4832
|
description?: string;
|
|
4825
4833
|
image_url?: string;
|
|
4826
4834
|
default_price: Money;
|
|
4835
|
+
/** Currency of `default_price`, resolved by the canonical pricing engine. */
|
|
4836
|
+
currency?: CurrencyCode | null;
|
|
4827
4837
|
/** Sales-engine overlay from the pricing API, when the product is on sale. */
|
|
4828
4838
|
sale?: SaleInfo | null;
|
|
4829
4839
|
/** A recurring sale that returns soon — present only when there's no live `sale`. */
|
|
@@ -5058,6 +5068,8 @@ interface VariantView {
|
|
|
5058
5068
|
sku?: string;
|
|
5059
5069
|
barcode?: string;
|
|
5060
5070
|
price_adjustment: Money;
|
|
5071
|
+
/** Canonical evaluated unit price in the active shopper/location scope. */
|
|
5072
|
+
price_info?: ChosenPrice;
|
|
5061
5073
|
location_prices?: Record<string, ChosenPrice>;
|
|
5062
5074
|
axis_selections?: Record<string, string>;
|
|
5063
5075
|
display_attributes?: VariantDisplayAttribute[];
|
|
@@ -5,7 +5,7 @@ type Money = (string | number) & {
|
|
|
5
5
|
declare function money(value: string | number): Money;
|
|
6
6
|
declare function moneyFromNumber(value: number): Money;
|
|
7
7
|
declare const ZERO: Money;
|
|
8
|
-
type CurrencyCode = "USD" | "EUR" | "GBP" | "JPY" | "CNY" | "CHF" | "CAD" | "AUD" | "GHS" | "NGN" | "KES" | "ZAR" | "XOF" | "XAF" | "EGP" | "TZS" | "UGX" | "RWF" | "ETB" | "ZMW" | "BWP" | "MUR" | "NAD" | "MWK" | "AOA" | "CDF" | "GMD" | "GNF" | "LRD" | "SLL" | "MZN" | "BIF" | "INR" | "BRL" | "MXN" | "KRW" | "TRY" | "THB" | "MYR" | "PHP" | "IDR" | "VND" | "SGD" | "HKD" | "TWD" | "AED" | "SAR" | "ILS";
|
|
8
|
+
type CurrencyCode = "USD" | "EUR" | "GBP" | "JPY" | "CNY" | "CHF" | "CAD" | "AUD" | "GHS" | "NGN" | "KES" | "ZAR" | "XOF" | "XAF" | "EGP" | "TZS" | "UGX" | "RWF" | "ETB" | "ZMW" | "BWP" | "MUR" | "NAD" | "MWK" | "AOA" | "CDF" | "GMD" | "GNF" | "LRD" | "SLL" | "MZN" | "BIF" | "INR" | "BRL" | "COP" | "MXN" | "KRW" | "TRY" | "THB" | "MYR" | "PHP" | "IDR" | "VND" | "SGD" | "HKD" | "TWD" | "AED" | "SAR" | "ILS";
|
|
9
9
|
declare function isSupportedCurrency(code: string): code is CurrencyCode;
|
|
10
10
|
declare function currencyCode(value: string): CurrencyCode;
|
|
11
11
|
interface PaginationParams {
|
|
@@ -2333,8 +2333,8 @@ interface components {
|
|
|
2333
2333
|
* can be explained months later even if zones, rates, or providers change.
|
|
2334
2334
|
*/
|
|
2335
2335
|
DeliveryFeeDetails: {
|
|
2336
|
-
zone_id
|
|
2337
|
-
zone_name
|
|
2336
|
+
zone_id?: string | null;
|
|
2337
|
+
zone_name?: string | null;
|
|
2338
2338
|
provider: string;
|
|
2339
2339
|
provider_resolved_from: components["schemas"]["ProviderResolutionSource"];
|
|
2340
2340
|
/**
|
|
@@ -2343,10 +2343,10 @@ interface components {
|
|
|
2343
2343
|
*/
|
|
2344
2344
|
rate_id?: string | null;
|
|
2345
2345
|
rate_name?: string | null;
|
|
2346
|
-
distance_km
|
|
2347
|
-
base_fee
|
|
2348
|
-
per_km_fee
|
|
2349
|
-
surge_multiplier
|
|
2346
|
+
distance_km?: string | null;
|
|
2347
|
+
base_fee?: string | null;
|
|
2348
|
+
per_km_fee?: string | null;
|
|
2349
|
+
surge_multiplier?: string | null;
|
|
2350
2350
|
calculated_fee: string;
|
|
2351
2351
|
currency: string;
|
|
2352
2352
|
free_delivery_applied: boolean;
|
|
@@ -2362,9 +2362,10 @@ interface components {
|
|
|
2362
2362
|
details?: null | components["schemas"]["DeliveryFeeDetails"];
|
|
2363
2363
|
};
|
|
2364
2364
|
/**
|
|
2365
|
-
* @description One entry on the customer-facing delivery menu
|
|
2366
|
-
*
|
|
2367
|
-
*
|
|
2365
|
+
* @description One entry on the customer-facing delivery menu. Zone-backed rates are
|
|
2366
|
+
* priced for a concrete dropoff; all-zone flat rates can be priced from the
|
|
2367
|
+
* order value alone. `rate_id = None` is the synthesized fallback for
|
|
2368
|
+
* businesses with no named rates configured.
|
|
2368
2369
|
*/
|
|
2369
2370
|
DeliveryOption: {
|
|
2370
2371
|
rate_id?: string | null;
|
|
@@ -3642,6 +3643,12 @@ interface components {
|
|
|
3642
3643
|
sku?: string | null;
|
|
3643
3644
|
barcode?: string | null;
|
|
3644
3645
|
default_price?: string;
|
|
3646
|
+
/**
|
|
3647
|
+
* @description Currency of the evaluated storefront price. Kept beside the scalar
|
|
3648
|
+
* amount because the richer internal price path is intentionally not
|
|
3649
|
+
* serialized on catalogue payloads.
|
|
3650
|
+
*/
|
|
3651
|
+
currency?: string | null;
|
|
3645
3652
|
sale?: null | components["schemas"]["SaleInfo"];
|
|
3646
3653
|
upcoming_sale?: null | components["schemas"]["UpcomingSale"];
|
|
3647
3654
|
location_prices?: {
|
|
@@ -3814,7 +3821,7 @@ interface components {
|
|
|
3814
3821
|
* @description How the delivery provider was resolved.
|
|
3815
3822
|
* @enum {string}
|
|
3816
3823
|
*/
|
|
3817
|
-
ProviderResolutionSource: "zone" | "hint" | "fallback" | "best_price";
|
|
3824
|
+
ProviderResolutionSource: "zone" | "hint" | "fallback" | "rate" | "best_price";
|
|
3818
3825
|
QuantityPricingTier: {
|
|
3819
3826
|
/** Format: int32 */
|
|
3820
3827
|
min_quantity: number;
|
|
@@ -4558,6 +4565,7 @@ interface components {
|
|
|
4558
4565
|
sku?: string | null;
|
|
4559
4566
|
barcode?: string | null;
|
|
4560
4567
|
price_adjustment?: string;
|
|
4568
|
+
price_info?: null | components["schemas"]["ChosenPrice"];
|
|
4561
4569
|
location_prices?: {
|
|
4562
4570
|
[key: string]: components["schemas"]["ChosenPrice"];
|
|
4563
4571
|
} | null;
|
|
@@ -4824,6 +4832,8 @@ interface Product {
|
|
|
4824
4832
|
description?: string;
|
|
4825
4833
|
image_url?: string;
|
|
4826
4834
|
default_price: Money;
|
|
4835
|
+
/** Currency of `default_price`, resolved by the canonical pricing engine. */
|
|
4836
|
+
currency?: CurrencyCode | null;
|
|
4827
4837
|
/** Sales-engine overlay from the pricing API, when the product is on sale. */
|
|
4828
4838
|
sale?: SaleInfo | null;
|
|
4829
4839
|
/** A recurring sale that returns soon — present only when there's no live `sale`. */
|
|
@@ -5058,6 +5068,8 @@ interface VariantView {
|
|
|
5058
5068
|
sku?: string;
|
|
5059
5069
|
barcode?: string;
|
|
5060
5070
|
price_adjustment: Money;
|
|
5071
|
+
/** Canonical evaluated unit price in the active shopper/location scope. */
|
|
5072
|
+
price_info?: ChosenPrice;
|
|
5061
5073
|
location_prices?: Record<string, ChosenPrice>;
|
|
5062
5074
|
axis_selections?: Record<string, string>;
|
|
5063
5075
|
display_attributes?: VariantDisplayAttribute[];
|
package/dist/react.d.mts
CHANGED
|
@@ -2,13 +2,13 @@ import * as React$1 from 'react';
|
|
|
2
2
|
import React__default, { ReactNode, PointerEvent, MouseEvent } from 'react';
|
|
3
3
|
import { d as AdSlot, c as AdPosition, a as AdContextValue, S as SignInOptions } from './sign-in-DQlIdqsi.mjs';
|
|
4
4
|
export { A as AdConfig, g as getVariantDisplayName } from './sign-in-DQlIdqsi.mjs';
|
|
5
|
-
import { af as CimplifyClient,
|
|
5
|
+
import { af as CimplifyClient, cb as OrderType, cw as ProcessCheckoutResult, ac as CheckoutStatus, ad as CheckoutStatusContext, a$ as EnrichedOrderItem, a_ as EnrichedOrder, w as Business, bA as Location, cN as ReorderResult, c9 as OrderStatus, bQ as Order, cy as QuoteBundleSelectionInput, cz as QuoteCompositeSelectionInput, cs as PriceQuote, cC as QuoteUiMessage, d7 as Service, r as AvailableSlot, ay as DayAvailability, aq as CustomerBooking, L as CancelBookingResult, f as ActivityStateResponse, dg as SessionMessage, c as ActivityRecommendation, aA as DeliveryFeeResponse, aD as DeliveryOptionsResponse, bd as FxRateResponse, dq as StoreCreditBalance, ds as StorefrontBootstrap, _ as ChatWidgetStarter, W as ChatMessage, Z as ChatUploadAttachment, h as AddressInfo, n as AuthenticatedData, aZ as ElementsOptions, cm as PaymentMethodInfo, aX as ElementsCheckoutResult, cv as ProcessCheckoutOptions, ai as CimplifyElements, T as ChatAttachment, bp as LineItem, dj as Staff, d2 as Room, Y as ChatReplyContext } from './client-D8XcrONA.mjs';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
|
-
import { ad as CurrencyCode, aZ as Product, aQ as Pagination, V as CimplifyError, bb as ProductWithDetails, S as Category, aO as Money, E as BundleSelectionInput, a1 as ComponentSelectionInput, D as BundleSelectionData, aa as CompositeSelectionData, W as Collection, b6 as ProductTaxonomy, bx as TaxonomyWithChildren, b7 as ProductTimeProfile, aj as Deal, b2 as ProductDealInfo, ap as DiscountValidation, G as BundleSummary, a8 as CompositePriceResult, bs as SubscriptionWithDetails, br as SubscriptionStatus, bo as Subscription, ae as CustomAttributeDefinition, bc as PropertyFacet, b1 as ProductBillingPlan, bQ as VariantView, bK as VariantAxisWithValues, f as AddOnWithOptions, y as BundleComponentView, z as BundlePriceType, a6 as CompositeGroupView, as as DisplayCart, b3 as ProductInputField, h as AddressValue, bi as SaleInfo, bD as UpcomingSale, av as DurationUnit, t as BoundaryKind, bk as SchedulingMode, al as DepositType, af as CustomAttributeValue, b4 as ProductProperty, be as QuantityPricingTier } from './product-
|
|
8
|
-
import { P as ProductWithPrice } from './price-
|
|
7
|
+
import { ad as CurrencyCode, aZ as Product, aQ as Pagination, V as CimplifyError, bb as ProductWithDetails, S as Category, aO as Money, U as ChosenPrice, E as BundleSelectionInput, a1 as ComponentSelectionInput, D as BundleSelectionData, aa as CompositeSelectionData, W as Collection, b6 as ProductTaxonomy, bx as TaxonomyWithChildren, b7 as ProductTimeProfile, aj as Deal, b2 as ProductDealInfo, ap as DiscountValidation, G as BundleSummary, a8 as CompositePriceResult, bs as SubscriptionWithDetails, br as SubscriptionStatus, bo as Subscription, ae as CustomAttributeDefinition, bc as PropertyFacet, b1 as ProductBillingPlan, bQ as VariantView, bK as VariantAxisWithValues, f as AddOnWithOptions, y as BundleComponentView, z as BundlePriceType, a6 as CompositeGroupView, as as DisplayCart, b3 as ProductInputField, h as AddressValue, bi as SaleInfo, bD as UpcomingSale, av as DurationUnit, t as BoundaryKind, bk as SchedulingMode, al as DepositType, af as CustomAttributeValue, b4 as ProductProperty, be as QuantityPricingTier } from './product-CeV8euw4.mjs';
|
|
8
|
+
import { P as ProductWithPrice } from './price-D96h6c6L.mjs';
|
|
9
9
|
import { ClassValue } from 'clsx';
|
|
10
10
|
import { Matcher } from 'react-day-picker';
|
|
11
|
-
import './payment-
|
|
11
|
+
import './payment-BSzy7sly.mjs';
|
|
12
12
|
|
|
13
13
|
interface UserIdentity {
|
|
14
14
|
uid: string;
|
|
@@ -933,6 +933,8 @@ interface CartVariantSelection {
|
|
|
933
933
|
id: string;
|
|
934
934
|
name: string;
|
|
935
935
|
price_adjustment?: Money;
|
|
936
|
+
/** Canonical evaluated variant price in the active shopper scope. */
|
|
937
|
+
price_info?: ChosenPrice;
|
|
936
938
|
}
|
|
937
939
|
interface CartAddOnOptionSelection {
|
|
938
940
|
id: string;
|
|
@@ -974,6 +976,8 @@ interface AddToCartOptions {
|
|
|
974
976
|
variantId?: string;
|
|
975
977
|
variant?: CartVariantSelection;
|
|
976
978
|
quoteId?: string;
|
|
979
|
+
/** Shopper-payable unit amount used until the authoritative cart returns. */
|
|
980
|
+
quotedUnitPrice?: Money;
|
|
977
981
|
addOnOptionIds?: string[];
|
|
978
982
|
addOnOptions?: CartAddOnOptionSelection[];
|
|
979
983
|
bundleSelections?: BundleSelectionInput[];
|
|
@@ -1226,6 +1230,7 @@ interface UseProductPriceInput {
|
|
|
1226
1230
|
quantity?: number;
|
|
1227
1231
|
variant?: {
|
|
1228
1232
|
price_adjustment?: number | string;
|
|
1233
|
+
price_info?: ChosenPrice;
|
|
1229
1234
|
};
|
|
1230
1235
|
addOnOptions?: Array<{
|
|
1231
1236
|
default_price?: number | string;
|
|
@@ -1775,7 +1780,7 @@ interface ProductCustomizerProps {
|
|
|
1775
1780
|
className?: string;
|
|
1776
1781
|
classNames?: ProductCustomizerClassNames;
|
|
1777
1782
|
}
|
|
1778
|
-
declare function ProductCustomizer(
|
|
1783
|
+
declare function ProductCustomizer(props: ProductCustomizerProps): React__default.ReactElement;
|
|
1779
1784
|
|
|
1780
1785
|
interface ProductImageGalleryProps {
|
|
1781
1786
|
images: string[];
|
package/dist/react.d.ts
CHANGED
|
@@ -2,13 +2,13 @@ import * as React$1 from 'react';
|
|
|
2
2
|
import React__default, { ReactNode, PointerEvent, MouseEvent } from 'react';
|
|
3
3
|
import { d as AdSlot, c as AdPosition, a as AdContextValue, S as SignInOptions } from './sign-in-DQlIdqsi.js';
|
|
4
4
|
export { A as AdConfig, g as getVariantDisplayName } from './sign-in-DQlIdqsi.js';
|
|
5
|
-
import { af as CimplifyClient,
|
|
5
|
+
import { af as CimplifyClient, cb as OrderType, cw as ProcessCheckoutResult, ac as CheckoutStatus, ad as CheckoutStatusContext, a$ as EnrichedOrderItem, a_ as EnrichedOrder, w as Business, bA as Location, cN as ReorderResult, c9 as OrderStatus, bQ as Order, cy as QuoteBundleSelectionInput, cz as QuoteCompositeSelectionInput, cs as PriceQuote, cC as QuoteUiMessage, d7 as Service, r as AvailableSlot, ay as DayAvailability, aq as CustomerBooking, L as CancelBookingResult, f as ActivityStateResponse, dg as SessionMessage, c as ActivityRecommendation, aA as DeliveryFeeResponse, aD as DeliveryOptionsResponse, bd as FxRateResponse, dq as StoreCreditBalance, ds as StorefrontBootstrap, _ as ChatWidgetStarter, W as ChatMessage, Z as ChatUploadAttachment, h as AddressInfo, n as AuthenticatedData, aZ as ElementsOptions, cm as PaymentMethodInfo, aX as ElementsCheckoutResult, cv as ProcessCheckoutOptions, ai as CimplifyElements, T as ChatAttachment, bp as LineItem, dj as Staff, d2 as Room, Y as ChatReplyContext } from './client-LPg_AUUr.js';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
|
-
import { ad as CurrencyCode, aZ as Product, aQ as Pagination, V as CimplifyError, bb as ProductWithDetails, S as Category, aO as Money, E as BundleSelectionInput, a1 as ComponentSelectionInput, D as BundleSelectionData, aa as CompositeSelectionData, W as Collection, b6 as ProductTaxonomy, bx as TaxonomyWithChildren, b7 as ProductTimeProfile, aj as Deal, b2 as ProductDealInfo, ap as DiscountValidation, G as BundleSummary, a8 as CompositePriceResult, bs as SubscriptionWithDetails, br as SubscriptionStatus, bo as Subscription, ae as CustomAttributeDefinition, bc as PropertyFacet, b1 as ProductBillingPlan, bQ as VariantView, bK as VariantAxisWithValues, f as AddOnWithOptions, y as BundleComponentView, z as BundlePriceType, a6 as CompositeGroupView, as as DisplayCart, b3 as ProductInputField, h as AddressValue, bi as SaleInfo, bD as UpcomingSale, av as DurationUnit, t as BoundaryKind, bk as SchedulingMode, al as DepositType, af as CustomAttributeValue, b4 as ProductProperty, be as QuantityPricingTier } from './product-
|
|
8
|
-
import { P as ProductWithPrice } from './price-
|
|
7
|
+
import { ad as CurrencyCode, aZ as Product, aQ as Pagination, V as CimplifyError, bb as ProductWithDetails, S as Category, aO as Money, U as ChosenPrice, E as BundleSelectionInput, a1 as ComponentSelectionInput, D as BundleSelectionData, aa as CompositeSelectionData, W as Collection, b6 as ProductTaxonomy, bx as TaxonomyWithChildren, b7 as ProductTimeProfile, aj as Deal, b2 as ProductDealInfo, ap as DiscountValidation, G as BundleSummary, a8 as CompositePriceResult, bs as SubscriptionWithDetails, br as SubscriptionStatus, bo as Subscription, ae as CustomAttributeDefinition, bc as PropertyFacet, b1 as ProductBillingPlan, bQ as VariantView, bK as VariantAxisWithValues, f as AddOnWithOptions, y as BundleComponentView, z as BundlePriceType, a6 as CompositeGroupView, as as DisplayCart, b3 as ProductInputField, h as AddressValue, bi as SaleInfo, bD as UpcomingSale, av as DurationUnit, t as BoundaryKind, bk as SchedulingMode, al as DepositType, af as CustomAttributeValue, b4 as ProductProperty, be as QuantityPricingTier } from './product-CeV8euw4.js';
|
|
8
|
+
import { P as ProductWithPrice } from './price-CJLfcYKd.js';
|
|
9
9
|
import { ClassValue } from 'clsx';
|
|
10
10
|
import { Matcher } from 'react-day-picker';
|
|
11
|
-
import './payment-
|
|
11
|
+
import './payment-jK8ztICx.js';
|
|
12
12
|
|
|
13
13
|
interface UserIdentity {
|
|
14
14
|
uid: string;
|
|
@@ -933,6 +933,8 @@ interface CartVariantSelection {
|
|
|
933
933
|
id: string;
|
|
934
934
|
name: string;
|
|
935
935
|
price_adjustment?: Money;
|
|
936
|
+
/** Canonical evaluated variant price in the active shopper scope. */
|
|
937
|
+
price_info?: ChosenPrice;
|
|
936
938
|
}
|
|
937
939
|
interface CartAddOnOptionSelection {
|
|
938
940
|
id: string;
|
|
@@ -974,6 +976,8 @@ interface AddToCartOptions {
|
|
|
974
976
|
variantId?: string;
|
|
975
977
|
variant?: CartVariantSelection;
|
|
976
978
|
quoteId?: string;
|
|
979
|
+
/** Shopper-payable unit amount used until the authoritative cart returns. */
|
|
980
|
+
quotedUnitPrice?: Money;
|
|
977
981
|
addOnOptionIds?: string[];
|
|
978
982
|
addOnOptions?: CartAddOnOptionSelection[];
|
|
979
983
|
bundleSelections?: BundleSelectionInput[];
|
|
@@ -1226,6 +1230,7 @@ interface UseProductPriceInput {
|
|
|
1226
1230
|
quantity?: number;
|
|
1227
1231
|
variant?: {
|
|
1228
1232
|
price_adjustment?: number | string;
|
|
1233
|
+
price_info?: ChosenPrice;
|
|
1229
1234
|
};
|
|
1230
1235
|
addOnOptions?: Array<{
|
|
1231
1236
|
default_price?: number | string;
|
|
@@ -1775,7 +1780,7 @@ interface ProductCustomizerProps {
|
|
|
1775
1780
|
className?: string;
|
|
1776
1781
|
classNames?: ProductCustomizerClassNames;
|
|
1777
1782
|
}
|
|
1778
|
-
declare function ProductCustomizer(
|
|
1783
|
+
declare function ProductCustomizer(props: ProductCustomizerProps): React__default.ReactElement;
|
|
1779
1784
|
|
|
1780
1785
|
interface ProductImageGalleryProps {
|
|
1781
1786
|
images: string[];
|