@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.
Files changed (72) hide show
  1. package/dist/advanced.d.mts +3 -7
  2. package/dist/advanced.d.ts +3 -7
  3. package/dist/advanced.js +23 -23
  4. package/dist/advanced.mjs +4 -4
  5. package/dist/{client-DHBwvh7U.d.ts → catalogue-BlQ85Uma.d.mts} +492 -748
  6. package/dist/{client-BfpNjJ_a.d.mts → catalogue-C8TqOj9K.d.ts} +492 -748
  7. package/dist/{payment-H5LoIvXU.d.mts → checkout-BqK9XUz5.d.mts} +4338 -1495
  8. package/dist/{payment-H5LoIvXU.d.ts → checkout-BqK9XUz5.d.ts} +4338 -1495
  9. package/dist/{chunk-GOHSXBKW.mjs → chunk-33VCYWVL.mjs} +25 -1
  10. package/dist/{chunk-C2JSNJUC.mjs → chunk-6G3ANKQA.mjs} +1080 -369
  11. package/dist/{chunk-QOWPGS7Z.js → chunk-BWEIMKLF.js} +572 -17
  12. package/dist/{chunk-JSWJ4XDE.js → chunk-DQEXY542.js} +1630 -824
  13. package/dist/{chunk-CNN7Z2IP.js → chunk-EV2EVOYS.js} +27 -0
  14. package/dist/{chunk-VIL6IQCG.js → chunk-HYFA67A7.js} +1084 -373
  15. package/dist/{chunk-H7ACMHM3.mjs → chunk-L5SNEU2O.mjs} +553 -16
  16. package/dist/{chunk-JG5CQNCB.js → chunk-RBNBSQI7.mjs} +221 -19
  17. package/dist/{chunk-VNPEYLB2.mjs → chunk-SFUJMS5E.js} +265 -2
  18. package/dist/{chunk-M4URVKHE.mjs → chunk-U54CWUUT.mjs} +11 -2
  19. package/dist/{chunk-GERXZQSX.mjs → chunk-UFOWPN3D.mjs} +967 -582
  20. package/dist/{chunk-J6PNHDHL.mjs → chunk-V4457OKB.mjs} +1580 -785
  21. package/dist/{chunk-R6OLQ33I.js → chunk-WXREIBFW.js} +1041 -654
  22. package/dist/{chunk-NNG6IFFX.js → chunk-XAUSDMMZ.js} +13 -3
  23. package/dist/{client-DpqRobY9.d.mts → client-DhXeiUrf.d.ts} +2 -2
  24. package/dist/{client-Dqg2mc-7.d.ts → client-mXiUrV4X.d.mts} +2 -2
  25. package/dist/{index-C8uDqLwJ.d.ts → index-B0AdZvrM.d.mts} +9 -4
  26. package/dist/{index-e2y6AK70.d.mts → index-CK8Nk5uQ.d.ts} +9 -4
  27. package/dist/index-DPWI5XcU.d.ts +8 -0
  28. package/dist/index-DVfUh-ci.d.mts +8 -0
  29. package/dist/index.d.mts +34 -15
  30. package/dist/index.d.ts +34 -15
  31. package/dist/index.js +306 -133
  32. package/dist/index.mjs +7 -6
  33. package/dist/mock/cli.mjs +1494 -395
  34. package/dist/mock/library.js +1220 -361
  35. package/dist/mock/library.mjs +1220 -361
  36. package/dist/mock/msw.js +1220 -361
  37. package/dist/mock/msw.mjs +1220 -361
  38. package/dist/{price-C2RqscMY.d.ts → price-6hQIIac9.d.ts} +1 -1
  39. package/dist/{price-BvePgDXe.d.mts → price-BUDv1rI7.d.mts} +1 -1
  40. package/dist/react.d.mts +10 -5
  41. package/dist/react.d.ts +10 -5
  42. package/dist/react.js +279 -225
  43. package/dist/react.mjs +140 -86
  44. package/dist/{server-DoXIpSd7.d.ts → server-DJ0mSs9i.d.mts} +33 -57
  45. package/dist/{server-C7FyLdrz.d.mts → server-DSTX76Ki.d.ts} +33 -57
  46. package/dist/server.d.mts +3 -4
  47. package/dist/server.d.ts +3 -4
  48. package/dist/server.js +12 -11
  49. package/dist/server.mjs +6 -5
  50. package/dist/styles.css +2 -2
  51. package/dist/testing/msw.d.mts +2 -2
  52. package/dist/testing/msw.d.ts +2 -2
  53. package/dist/testing/msw.js +4 -4
  54. package/dist/testing/msw.mjs +3 -3
  55. package/dist/testing/suite.d.mts +5 -6
  56. package/dist/testing/suite.d.ts +5 -6
  57. package/dist/testing/suite.js +29 -28
  58. package/dist/testing/suite.mjs +10 -9
  59. package/dist/testing.d.mts +2217 -14
  60. package/dist/testing.d.ts +2217 -14
  61. package/dist/testing.js +173 -83
  62. package/dist/testing.mjs +28 -10
  63. package/dist/utils.d.mts +3 -4
  64. package/dist/utils.d.ts +3 -4
  65. package/dist/utils.js +35 -31
  66. package/dist/utils.mjs +2 -2
  67. package/package.json +9 -9
  68. package/registry/chat-widget.json +1 -1
  69. package/registry/order-history.json +1 -1
  70. package/registry/order-summary.json +1 -1
  71. package/dist/link-cuNVYc2s.d.mts +0 -297
  72. package/dist/link-cuNVYc2s.d.ts +0 -297
@@ -1,4 +1,4 @@
1
- import { af as CurrencyCode, W as ChosenPrice, bz as SaleInfo, bW as UpcomingSale } from './payment-H5LoIvXU.js';
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 { af as CurrencyCode, W as ChosenPrice, bz as SaleInfo, bW as UpcomingSale } from './payment-H5LoIvXU.mjs';
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 { ac as CimplifyClient, bL as OrderType, c4 as ProcessCheckoutResult, a9 as CheckoutStatus, aa as CheckoutStatusContext, aN as EnrichedOrderItem, aM as EnrichedOrder, t as Business, bd as Location, cl as ReorderResult, bJ as OrderStatus, bo as Order, c6 as QuoteBundleSelectionInput, c7 as QuoteCompositeSelectionInput, c0 as PriceQuote, ca as QuoteUiMessage, cE as Service, o as AvailableSlot, al as DayAvailability, ai as CustomerBooking, E as CancelBookingResult, d as ActivityStateResponse, cN as SessionMessage, a as ActivityRecommendation, an as DeliveryFeeResponse, aq as DeliveryOptionsResponse, aY as FxRateResponse, cW as StoreCreditBalance, cY as StorefrontBootstrap, U as ChatWidgetStarter, Q as ChatMessage, T as ChatUploadAttachment, e as AddressInfo, j as AuthenticatedData, aL as ElementsOptions, bW as PaymentMethodInfo, aJ as ElementsCheckoutResult, c3 as ProcessCheckoutOptions, af as CimplifyElements, N as ChatAttachment, b6 as LineItem, cQ as Staff, cz as Room, S as ChatReplyContext } from './client-BfpNjJ_a.mjs';
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 { af as CurrencyCode, be as Product, aW as Pagination, X as CimplifyError, bs as ProductWithDetails, U as Category, aU as Money, W as ChosenPrice, G as BundleSelectionInput, a3 as ComponentSelectionInput, F as BundleSelectionData, ac as CompositeSelectionData, Y as Collection, bn as ProductTaxonomy, bQ as TaxonomyWithChildren, bo as ProductTimeProfile, al as Deal, bj as ProductDealInfo, au as DiscountValidation, I as BundleSummary, aa as CompositePriceResult, bK as SubscriptionWithDetails, bJ as SubscriptionStatus, bG as Subscription, ag as CustomAttributeDefinition, bt as PropertyFacet, bi as ProductBillingPlan, c7 as VariantView, c1 as VariantAxisWithValues, f as AddOnWithOptions, C as BundleComponentView, D as BundlePriceType, a8 as CompositeGroupView, ax as DisplayCart, bk as ProductInputField, i as AddressValue, bz as SaleInfo, bW as UpcomingSale, aA as DurationUnit, v as BoundaryKind, bB as SchedulingMode, an as DepositType, ah as CustomAttributeValue, bl as ProductProperty, bv as QuantityPricingTier } from './payment-H5LoIvXU.mjs';
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 { ac as CimplifyClient, bL as OrderType, c4 as ProcessCheckoutResult, a9 as CheckoutStatus, aa as CheckoutStatusContext, aN as EnrichedOrderItem, aM as EnrichedOrder, t as Business, bd as Location, cl as ReorderResult, bJ as OrderStatus, bo as Order, c6 as QuoteBundleSelectionInput, c7 as QuoteCompositeSelectionInput, c0 as PriceQuote, ca as QuoteUiMessage, cE as Service, o as AvailableSlot, al as DayAvailability, ai as CustomerBooking, E as CancelBookingResult, d as ActivityStateResponse, cN as SessionMessage, a as ActivityRecommendation, an as DeliveryFeeResponse, aq as DeliveryOptionsResponse, aY as FxRateResponse, cW as StoreCreditBalance, cY as StorefrontBootstrap, U as ChatWidgetStarter, Q as ChatMessage, T as ChatUploadAttachment, e as AddressInfo, j as AuthenticatedData, aL as ElementsOptions, bW as PaymentMethodInfo, aJ as ElementsCheckoutResult, c3 as ProcessCheckoutOptions, af as CimplifyElements, N as ChatAttachment, b6 as LineItem, cQ as Staff, cz as Room, S as ChatReplyContext } from './client-DHBwvh7U.js';
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 { af as CurrencyCode, be as Product, aW as Pagination, X as CimplifyError, bs as ProductWithDetails, U as Category, aU as Money, W as ChosenPrice, G as BundleSelectionInput, a3 as ComponentSelectionInput, F as BundleSelectionData, ac as CompositeSelectionData, Y as Collection, bn as ProductTaxonomy, bQ as TaxonomyWithChildren, bo as ProductTimeProfile, al as Deal, bj as ProductDealInfo, au as DiscountValidation, I as BundleSummary, aa as CompositePriceResult, bK as SubscriptionWithDetails, bJ as SubscriptionStatus, bG as Subscription, ag as CustomAttributeDefinition, bt as PropertyFacet, bi as ProductBillingPlan, c7 as VariantView, c1 as VariantAxisWithValues, f as AddOnWithOptions, C as BundleComponentView, D as BundlePriceType, a8 as CompositeGroupView, ax as DisplayCart, bk as ProductInputField, i as AddressValue, bz as SaleInfo, bW as UpcomingSale, aA as DurationUnit, v as BoundaryKind, bB as SchedulingMode, an as DepositType, ah as CustomAttributeValue, bl as ProductProperty, bv as QuantityPricingTier } from './payment-H5LoIvXU.js';
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;