@cimplify/sdk 0.103.0 → 0.104.1
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-DHBwvh7U.d.ts → catalogue-BlQ85Uma.d.mts} +492 -748
- package/dist/{client-BfpNjJ_a.d.mts → catalogue-C8TqOj9K.d.ts} +492 -748
- package/dist/{payment-H5LoIvXU.d.mts → checkout-BqK9XUz5.d.mts} +4338 -1495
- package/dist/{payment-H5LoIvXU.d.ts → checkout-BqK9XUz5.d.ts} +4338 -1495
- package/dist/{chunk-GOHSXBKW.mjs → chunk-33VCYWVL.mjs} +25 -1
- package/dist/{chunk-C2JSNJUC.mjs → chunk-6G3ANKQA.mjs} +1080 -369
- package/dist/{chunk-QOWPGS7Z.js → chunk-BWEIMKLF.js} +572 -17
- package/dist/{chunk-JSWJ4XDE.js → chunk-DQEXY542.js} +1630 -824
- package/dist/{chunk-CNN7Z2IP.js → chunk-EV2EVOYS.js} +27 -0
- package/dist/{chunk-VIL6IQCG.js → chunk-HYFA67A7.js} +1084 -373
- package/dist/{chunk-H7ACMHM3.mjs → chunk-L5SNEU2O.mjs} +553 -16
- package/dist/{chunk-JG5CQNCB.js → chunk-RBNBSQI7.mjs} +221 -19
- package/dist/{chunk-VNPEYLB2.mjs → chunk-SFUJMS5E.js} +265 -2
- package/dist/{chunk-M4URVKHE.mjs → chunk-U54CWUUT.mjs} +11 -2
- package/dist/{chunk-GERXZQSX.mjs → chunk-UFOWPN3D.mjs} +967 -582
- package/dist/{chunk-J6PNHDHL.mjs → chunk-V4457OKB.mjs} +1580 -785
- package/dist/{chunk-R6OLQ33I.js → chunk-WXREIBFW.js} +1041 -654
- package/dist/{chunk-NNG6IFFX.js → chunk-XAUSDMMZ.js} +13 -3
- package/dist/{client-DpqRobY9.d.mts → client-DhXeiUrf.d.ts} +2 -2
- package/dist/{client-Dqg2mc-7.d.ts → client-mXiUrV4X.d.mts} +2 -2
- package/dist/{index-C8uDqLwJ.d.ts → index-B0AdZvrM.d.mts} +9 -4
- package/dist/{index-e2y6AK70.d.mts → index-CK8Nk5uQ.d.ts} +9 -4
- package/dist/index-DPWI5XcU.d.ts +8 -0
- package/dist/index-DVfUh-ci.d.mts +8 -0
- package/dist/index.d.mts +34 -15
- package/dist/index.d.ts +34 -15
- package/dist/index.js +306 -133
- package/dist/index.mjs +7 -6
- package/dist/mock/cli.mjs +1494 -395
- package/dist/mock/library.js +1220 -361
- package/dist/mock/library.mjs +1220 -361
- package/dist/mock/msw.js +1220 -361
- package/dist/mock/msw.mjs +1220 -361
- package/dist/{price-C2RqscMY.d.ts → price-6hQIIac9.d.ts} +1 -1
- package/dist/{price-BvePgDXe.d.mts → price-BUDv1rI7.d.mts} +1 -1
- package/dist/react.d.mts +10 -5
- package/dist/react.d.ts +10 -5
- package/dist/react.js +279 -225
- package/dist/react.mjs +140 -86
- package/dist/{server-DoXIpSd7.d.ts → server-DJ0mSs9i.d.mts} +33 -57
- package/dist/{server-C7FyLdrz.d.mts → server-DSTX76Ki.d.ts} +33 -57
- package/dist/server.d.mts +3 -4
- package/dist/server.d.ts +3 -4
- package/dist/server.js +12 -11
- package/dist/server.mjs +6 -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 +2217 -14
- package/dist/testing.d.ts +2217 -14
- package/dist/testing.js +173 -83
- package/dist/testing.mjs +28 -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/chat-widget.json +1 -1
- package/registry/order-history.json +1 -1
- package/registry/order-summary.json +1 -1
- package/dist/link-cuNVYc2s.d.mts +0 -297
- package/dist/link-cuNVYc2s.d.ts +0 -297
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as CurrencyCode, a as ChosenPrice, S as SaleInfo, U as UpcomingSale } from './checkout-BqK9XUz5.js';
|
|
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-BqK9XUz5.mjs';
|
|
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-BlQ85Uma.mjs';
|
|
6
|
+
import { g as CheckoutTermsView, cI as OrderType, dB as ProcessCheckoutResult, aR as CheckoutStatus, aS as CheckoutStatusContext, C as CurrencyCode, P as Product, d4 as Pagination, c as CimplifyError, e as ProductWithDetails, b as Category, cC as Money, a as ChosenPrice, a1 as BundleSelectionInput, b0 as ComponentSelectionInput, a0 as BundleSelectionData, b9 as CompositeSelectionData, d as Collection, dK as ProductTaxonomy, ew as TaxonomyWithChildren, dL as ProductTimeProfile, bs as Deal, dG as ProductDealInfo, bC as DiscountValidation, a3 as BundleSummary, b7 as CompositePriceResult, er as SubscriptionWithDetails, eq as SubscriptionStatus, en as Subscription, bg as CustomAttributeDefinition, dP as PropertyFacet, dF as ProductBillingPlan, eQ as VariantView, eK as VariantAxisWithValues, w as AddressInfo, J as AuthenticatedData, b_ as ElementsOptions, de as PaymentMethodInfo, bY as ElementsCheckoutResult, dA as ProcessCheckoutOptions, s as AddOnWithOptions, Z as BundleComponentView, _ as BundlePriceType, b5 as CompositeGroupView, bF as DisplayCart, dH as ProductInputField, x as AddressValue, S as SaleInfo, U as UpcomingSale, D as DurationUnit, R as BoundaryKind, ef as SchedulingMode, bu as DepositType, bh as CustomAttributeValue, dI as ProductProperty, e5 as QuantityPricingTier } from './checkout-BqK9XUz5.mjs';
|
|
6
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
|
-
import {
|
|
8
|
-
import { P as ProductWithPrice } from './price-BvePgDXe.mjs';
|
|
8
|
+
import { P as ProductWithPrice } from './price-BUDv1rI7.mjs';
|
|
9
9
|
import { ClassValue } from 'clsx';
|
|
10
10
|
import { Matcher } from 'react-day-picker';
|
|
11
|
-
import './link-cuNVYc2s.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-C8TqOj9K.js';
|
|
6
|
+
import { g as CheckoutTermsView, cI as OrderType, dB as ProcessCheckoutResult, aR as CheckoutStatus, aS as CheckoutStatusContext, C as CurrencyCode, P as Product, d4 as Pagination, c as CimplifyError, e as ProductWithDetails, b as Category, cC as Money, a as ChosenPrice, a1 as BundleSelectionInput, b0 as ComponentSelectionInput, a0 as BundleSelectionData, b9 as CompositeSelectionData, d as Collection, dK as ProductTaxonomy, ew as TaxonomyWithChildren, dL as ProductTimeProfile, bs as Deal, dG as ProductDealInfo, bC as DiscountValidation, a3 as BundleSummary, b7 as CompositePriceResult, er as SubscriptionWithDetails, eq as SubscriptionStatus, en as Subscription, bg as CustomAttributeDefinition, dP as PropertyFacet, dF as ProductBillingPlan, eQ as VariantView, eK as VariantAxisWithValues, w as AddressInfo, J as AuthenticatedData, b_ as ElementsOptions, de as PaymentMethodInfo, bY as ElementsCheckoutResult, dA as ProcessCheckoutOptions, s as AddOnWithOptions, Z as BundleComponentView, _ as BundlePriceType, b5 as CompositeGroupView, bF as DisplayCart, dH as ProductInputField, x as AddressValue, S as SaleInfo, U as UpcomingSale, D as DurationUnit, R as BoundaryKind, ef as SchedulingMode, bu as DepositType, bh as CustomAttributeValue, dI as ProductProperty, e5 as QuantityPricingTier } from './checkout-BqK9XUz5.js';
|
|
6
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
|
-
import {
|
|
8
|
-
import { P as ProductWithPrice } from './price-C2RqscMY.js';
|
|
8
|
+
import { P as ProductWithPrice } from './price-6hQIIac9.js';
|
|
9
9
|
import { ClassValue } from 'clsx';
|
|
10
10
|
import { Matcher } from 'react-day-picker';
|
|
11
|
-
import './link-cuNVYc2s.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;
|