@cimplify/sdk 0.104.0 → 0.105.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 -7
- package/dist/advanced.d.ts +3 -7
- package/dist/advanced.js +23 -23
- package/dist/advanced.mjs +4 -4
- package/dist/{client-BuLcOWLv.d.ts → catalogue-D1jkpGcr.d.ts} +415 -763
- package/dist/{client-D5AoobFc.d.mts → catalogue-DjutZ0FC.d.mts} +415 -763
- package/dist/{payment-g0HFkEDU.d.mts → checkout-XoV4HNg2.d.mts} +4156 -1498
- package/dist/{payment-g0HFkEDU.d.ts → checkout-XoV4HNg2.d.ts} +4156 -1498
- package/dist/{chunk-GOHSXBKW.mjs → chunk-33VCYWVL.mjs} +25 -1
- package/dist/{chunk-OKADBZAI.mjs → chunk-37ZZCE7P.mjs} +808 -574
- package/dist/{chunk-5BDYDZ4U.js → chunk-3IMPJEUI.js} +892 -657
- package/dist/{chunk-YVAEY3VC.js → chunk-7PMMV5X4.js} +1040 -364
- package/dist/{chunk-H3RATH4B.mjs → chunk-AVXA4F6G.js} +293 -2
- package/dist/{chunk-CNN7Z2IP.js → chunk-EV2EVOYS.js} +27 -0
- package/dist/{chunk-4BKOKHE3.js → chunk-NJYR6GGM.mjs} +244 -19
- package/dist/{chunk-DYIAX3WI.mjs → chunk-NYDVVNZI.mjs} +11 -2
- package/dist/{chunk-E4K2VQDD.js → chunk-PDTXSUHZ.js} +559 -16
- package/dist/{chunk-2WPVUIHX.mjs → chunk-Q5HX7LVE.mjs} +1036 -360
- package/dist/{chunk-5RT4HYMP.mjs → chunk-TINYV5E2.mjs} +542 -15
- package/dist/{chunk-7PDEX54K.js → chunk-UYFTOIFW.js} +13 -3
- package/dist/{chunk-OCCNG6MO.mjs → chunk-X7RPMALQ.mjs} +1310 -722
- package/dist/{chunk-IQFFSKE2.js → chunk-XHVQDEVO.js} +1345 -746
- package/dist/{client-BVNWjk6W.d.ts → client-BBZj15JJ.d.ts} +2 -2
- package/dist/{client-fM716k7G.d.mts → client-CZ8MjJ_o.d.mts} +2 -2
- package/dist/index-CZjNWbQf.d.ts +8 -0
- package/dist/index-DNxWfRHF.d.mts +8 -0
- package/dist/{index-BtcoqrY1.d.ts → index-DRMBo26v.d.mts} +9 -4
- package/dist/{index-D7Tf3v7c.d.mts → index-DweR60Cv.d.ts} +9 -4
- package/dist/index.d.mts +31 -14
- package/dist/index.d.ts +31 -14
- package/dist/index.js +325 -133
- package/dist/index.mjs +6 -6
- package/dist/mock/cli.mjs +1450 -386
- package/dist/mock/library.js +1176 -352
- package/dist/mock/library.mjs +1176 -352
- package/dist/mock/msw.js +1176 -352
- package/dist/mock/msw.mjs +1176 -352
- package/dist/{price-BLIeAb8K.d.ts → price-CUGIYRtD.d.mts} +1 -1
- package/dist/{price-Czq_cTC_.d.mts → price-De-sxcuj.d.ts} +1 -1
- package/dist/react.d.mts +10 -5
- package/dist/react.d.ts +10 -5
- package/dist/react.js +227 -197
- package/dist/react.mjs +90 -60
- package/dist/{server-DKK_D-PP.d.ts → server-Byr4d0hL.d.mts} +31 -57
- package/dist/{server-BkVhOIwn.d.mts → server-C_RIDnHU.d.ts} +31 -57
- package/dist/server.d.mts +3 -4
- package/dist/server.d.ts +3 -4
- package/dist/server.js +11 -11
- package/dist/server.mjs +5 -5
- package/dist/styles.css +2 -2
- package/dist/testing/msw.d.mts +2 -2
- package/dist/testing/msw.d.ts +2 -2
- package/dist/testing/msw.js +4 -4
- package/dist/testing/msw.mjs +3 -3
- package/dist/testing/suite.d.mts +5 -6
- package/dist/testing/suite.d.ts +5 -6
- package/dist/testing/suite.js +29 -28
- package/dist/testing/suite.mjs +10 -9
- package/dist/testing.d.mts +2478 -14
- package/dist/testing.d.ts +2478 -14
- package/dist/testing.js +167 -89
- package/dist/testing.mjs +24 -10
- package/dist/utils.d.mts +3 -4
- package/dist/utils.d.ts +3 -4
- package/dist/utils.js +35 -31
- package/dist/utils.mjs +2 -2
- package/package.json +9 -9
- package/registry/order-history.json +1 -1
- package/registry/order-summary.json +1 -1
- package/dist/link-D9iSVxt5.d.mts +0 -308
- package/dist/link-D9iSVxt5.d.ts +0 -308
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as CurrencyCode, a as ChosenPrice, S as SaleInfo, U as UpcomingSale } from './checkout-XoV4HNg2.mjs';
|
|
2
2
|
|
|
3
3
|
interface ProductWithPrice {
|
|
4
4
|
price_info?: ChosenPrice;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as CurrencyCode, a as ChosenPrice, S as SaleInfo, U as UpcomingSale } from './checkout-XoV4HNg2.js';
|
|
2
2
|
|
|
3
3
|
interface ProductWithPrice {
|
|
4
4
|
price_info?: ChosenPrice;
|
package/dist/react.d.mts
CHANGED
|
@@ -2,13 +2,12 @@ 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 {
|
|
5
|
+
import { C as CimplifyClient, aj as EnrichedOrderItem, ai as EnrichedOrder, u as Business, aN as Location, bQ as ReorderResult, be as OrderStatus, aV as Order, bC as QuoteBundleSelectionInput, bD as QuoteCompositeSelectionInput, bs as PriceQuote, bG as QuoteUiMessage, c8 as Service, p as AvailableSlot, a8 as DayAvailability, a5 as CustomerBooking, F as CancelBookingResult, h as ActivityStateResponse, ci as SessionMessage, A as ActivityRecommendation, aa as DeliveryFeeResponse, ae as DeliveryOptionsResponse, aw as FxRateResponse, cr as StoreCreditBalance, ct as StorefrontBootstrap, W as ChatWidgetStarter, T as ChatMessage, V as ChatUploadAttachment, a1 as CimplifyElements, O as ChatAttachment, aG as LineItem, cl as Staff, c2 as Room, U as ChatReplyContext } from './catalogue-DjutZ0FC.mjs';
|
|
6
|
+
import { g as CheckoutTermsView, cP as OrderType, dK as ProcessCheckoutResult, aW as CheckoutStatus, aX as CheckoutStatusContext, C as CurrencyCode, P as Product, dd as Pagination, c as CimplifyError, e as ProductWithDetails, b as Category, cH as Money, a as ChosenPrice, a1 as BundleSelectionInput, b5 as ComponentSelectionInput, a0 as BundleSelectionData, be as CompositeSelectionData, d as Collection, dT as ProductTaxonomy, eI as TaxonomyWithChildren, dU as ProductTimeProfile, bx as Deal, dP as ProductDealInfo, bH as DiscountValidation, a3 as BundleSummary, bc as CompositePriceResult, eD as SubscriptionWithDetails, eC as SubscriptionStatus, ez as Subscription, bl as CustomAttributeDefinition, dY as PropertyFacet, dO as ProductBillingPlan, f0 as VariantView, eW as VariantAxisWithValues, w as AddressInfo, J as AuthenticatedData, c3 as ElementsOptions, dn as PaymentMethodInfo, c1 as ElementsCheckoutResult, dJ as ProcessCheckoutOptions, s as AddOnWithOptions, Z as BundleComponentView, _ as BundlePriceType, ba as CompositeGroupView, bK as DisplayCart, dQ as ProductInputField, x as AddressValue, S as SaleInfo, U as UpcomingSale, D as DurationUnit, R as BoundaryKind, er as SchedulingMode, bz as DepositType, bm as CustomAttributeValue, dR as ProductProperty, eh as QuantityPricingTier } from './checkout-XoV4HNg2.mjs';
|
|
6
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
|
-
import {
|
|
8
|
-
import { P as ProductWithPrice } from './price-Czq_cTC_.mjs';
|
|
8
|
+
import { P as ProductWithPrice } from './price-CUGIYRtD.mjs';
|
|
9
9
|
import { ClassValue } from 'clsx';
|
|
10
10
|
import { Matcher } from 'react-day-picker';
|
|
11
|
-
import './link-D9iSVxt5.mjs';
|
|
12
11
|
|
|
13
12
|
interface UserIdentity {
|
|
14
13
|
uid: string;
|
|
@@ -60,6 +59,12 @@ interface CimplifyCheckoutProps {
|
|
|
60
59
|
client: CimplifyClient;
|
|
61
60
|
businessId?: string;
|
|
62
61
|
cartId?: string;
|
|
62
|
+
/** Confirm this hosted/durable intent instead of minting a new cart intent. */
|
|
63
|
+
intentId?: string;
|
|
64
|
+
/** Bind hosted calls to the checkout-session owner rather than the API session. */
|
|
65
|
+
hostedSessionId?: string;
|
|
66
|
+
/** Initial render hint; server authority is re-read before confirmation. */
|
|
67
|
+
initialTerms?: CheckoutTermsView;
|
|
63
68
|
locationId?: string;
|
|
64
69
|
linkUrl?: string;
|
|
65
70
|
orderTypes?: CheckoutOrderType[];
|
|
@@ -82,7 +87,7 @@ interface CimplifyCheckoutProps {
|
|
|
82
87
|
};
|
|
83
88
|
className?: string;
|
|
84
89
|
}
|
|
85
|
-
declare function CimplifyCheckout({ client, businessId, cartId, locationId, linkUrl, orderTypes, defaultOrderType, submitLabel, enrollInLink, onComplete, onError, onStatusChange, appearance, className, }: CimplifyCheckoutProps): React__default.ReactElement;
|
|
90
|
+
declare function CimplifyCheckout({ client, businessId, cartId, intentId, hostedSessionId, initialTerms, locationId, linkUrl, orderTypes, defaultOrderType, submitLabel, enrollInLink, onComplete, onError, onStatusChange, appearance, className, }: CimplifyCheckoutProps): React__default.ReactElement;
|
|
86
91
|
|
|
87
92
|
interface NavItem {
|
|
88
93
|
label: string;
|
package/dist/react.d.ts
CHANGED
|
@@ -2,13 +2,12 @@ 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 {
|
|
5
|
+
import { C as CimplifyClient, aj as EnrichedOrderItem, ai as EnrichedOrder, u as Business, aN as Location, bQ as ReorderResult, be as OrderStatus, aV as Order, bC as QuoteBundleSelectionInput, bD as QuoteCompositeSelectionInput, bs as PriceQuote, bG as QuoteUiMessage, c8 as Service, p as AvailableSlot, a8 as DayAvailability, a5 as CustomerBooking, F as CancelBookingResult, h as ActivityStateResponse, ci as SessionMessage, A as ActivityRecommendation, aa as DeliveryFeeResponse, ae as DeliveryOptionsResponse, aw as FxRateResponse, cr as StoreCreditBalance, ct as StorefrontBootstrap, W as ChatWidgetStarter, T as ChatMessage, V as ChatUploadAttachment, a1 as CimplifyElements, O as ChatAttachment, aG as LineItem, cl as Staff, c2 as Room, U as ChatReplyContext } from './catalogue-D1jkpGcr.js';
|
|
6
|
+
import { g as CheckoutTermsView, cP as OrderType, dK as ProcessCheckoutResult, aW as CheckoutStatus, aX as CheckoutStatusContext, C as CurrencyCode, P as Product, dd as Pagination, c as CimplifyError, e as ProductWithDetails, b as Category, cH as Money, a as ChosenPrice, a1 as BundleSelectionInput, b5 as ComponentSelectionInput, a0 as BundleSelectionData, be as CompositeSelectionData, d as Collection, dT as ProductTaxonomy, eI as TaxonomyWithChildren, dU as ProductTimeProfile, bx as Deal, dP as ProductDealInfo, bH as DiscountValidation, a3 as BundleSummary, bc as CompositePriceResult, eD as SubscriptionWithDetails, eC as SubscriptionStatus, ez as Subscription, bl as CustomAttributeDefinition, dY as PropertyFacet, dO as ProductBillingPlan, f0 as VariantView, eW as VariantAxisWithValues, w as AddressInfo, J as AuthenticatedData, c3 as ElementsOptions, dn as PaymentMethodInfo, c1 as ElementsCheckoutResult, dJ as ProcessCheckoutOptions, s as AddOnWithOptions, Z as BundleComponentView, _ as BundlePriceType, ba as CompositeGroupView, bK as DisplayCart, dQ as ProductInputField, x as AddressValue, S as SaleInfo, U as UpcomingSale, D as DurationUnit, R as BoundaryKind, er as SchedulingMode, bz as DepositType, bm as CustomAttributeValue, dR as ProductProperty, eh as QuantityPricingTier } from './checkout-XoV4HNg2.js';
|
|
6
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
|
-
import {
|
|
8
|
-
import { P as ProductWithPrice } from './price-BLIeAb8K.js';
|
|
8
|
+
import { P as ProductWithPrice } from './price-De-sxcuj.js';
|
|
9
9
|
import { ClassValue } from 'clsx';
|
|
10
10
|
import { Matcher } from 'react-day-picker';
|
|
11
|
-
import './link-D9iSVxt5.js';
|
|
12
11
|
|
|
13
12
|
interface UserIdentity {
|
|
14
13
|
uid: string;
|
|
@@ -60,6 +59,12 @@ interface CimplifyCheckoutProps {
|
|
|
60
59
|
client: CimplifyClient;
|
|
61
60
|
businessId?: string;
|
|
62
61
|
cartId?: string;
|
|
62
|
+
/** Confirm this hosted/durable intent instead of minting a new cart intent. */
|
|
63
|
+
intentId?: string;
|
|
64
|
+
/** Bind hosted calls to the checkout-session owner rather than the API session. */
|
|
65
|
+
hostedSessionId?: string;
|
|
66
|
+
/** Initial render hint; server authority is re-read before confirmation. */
|
|
67
|
+
initialTerms?: CheckoutTermsView;
|
|
63
68
|
locationId?: string;
|
|
64
69
|
linkUrl?: string;
|
|
65
70
|
orderTypes?: CheckoutOrderType[];
|
|
@@ -82,7 +87,7 @@ interface CimplifyCheckoutProps {
|
|
|
82
87
|
};
|
|
83
88
|
className?: string;
|
|
84
89
|
}
|
|
85
|
-
declare function CimplifyCheckout({ client, businessId, cartId, locationId, linkUrl, orderTypes, defaultOrderType, submitLabel, enrollInLink, onComplete, onError, onStatusChange, appearance, className, }: CimplifyCheckoutProps): React__default.ReactElement;
|
|
90
|
+
declare function CimplifyCheckout({ client, businessId, cartId, intentId, hostedSessionId, initialTerms, locationId, linkUrl, orderTypes, defaultOrderType, submitLabel, enrollInLink, onComplete, onError, onStatusChange, appearance, className, }: CimplifyCheckoutProps): React__default.ReactElement;
|
|
86
91
|
|
|
87
92
|
interface NavItem {
|
|
88
93
|
label: string;
|