@cimplify/sdk 0.8.8 → 0.8.10

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/react.d.mts CHANGED
@@ -1,8 +1,8 @@
1
- import { C as CimplifyClient, Y as ProcessCheckoutResult, _ as CheckoutStatus, $ as CheckoutStatusContext, bq as Location, bn as Business, aS as Order, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, g as QuoteUiMessage, s as CimplifyElements, w as ElementsOptions, cK as AuthenticatedData, cG as AddressInfo, cH as PaymentMethodInfo, cM as ElementsCheckoutResult, X as ProcessCheckoutOptions } from './client-D1rHAIZY.mjs';
2
1
  import React, { ReactNode } from 'react';
3
- import { r as Product, d as Pagination, h as CimplifyError, s as ProductWithDetails, L as Category, ax as BundleSelectionInput, a8 as ComponentSelectionInput, O as Collection, Y as BundleWithDetails, a4 as CompositeWithDetails, a9 as CompositePriceResult, C as CurrencyCode } from './payment-BKjX2fAs.mjs';
4
2
  import { A as AdSlot, a as AdPosition, e as AdContextValue } from './ads-t3FBTU8p.mjs';
5
3
  export { c as AdConfig } from './ads-t3FBTU8p.mjs';
4
+ import { C as CimplifyClient, Y as ProcessCheckoutResult, _ as CheckoutStatus, $ as CheckoutStatusContext, bq as Location, bn as Business, aS as Order, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, g as QuoteUiMessage, w as ElementsOptions, cK as AuthenticatedData, cG as AddressInfo, cH as PaymentMethodInfo, s as CimplifyElements, cM as ElementsCheckoutResult, X as ProcessCheckoutOptions } from './client-D1rHAIZY.mjs';
5
+ import { r as Product, d as Pagination, h as CimplifyError, s as ProductWithDetails, L as Category, ax as BundleSelectionInput, a8 as ComponentSelectionInput, O as Collection, Y as BundleWithDetails, a4 as CompositeWithDetails, a9 as CompositePriceResult, C as CurrencyCode } from './payment-BKjX2fAs.mjs';
6
6
 
7
7
  interface UserIdentity {
8
8
  uid: string;
package/dist/react.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { C as CimplifyClient, Y as ProcessCheckoutResult, _ as CheckoutStatus, $ as CheckoutStatusContext, bq as Location, bn as Business, aS as Order, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, g as QuoteUiMessage, s as CimplifyElements, w as ElementsOptions, cK as AuthenticatedData, cG as AddressInfo, cH as PaymentMethodInfo, cM as ElementsCheckoutResult, X as ProcessCheckoutOptions } from './client-Dklt51q-.js';
2
1
  import React, { ReactNode } from 'react';
3
- import { r as Product, d as Pagination, h as CimplifyError, s as ProductWithDetails, L as Category, ax as BundleSelectionInput, a8 as ComponentSelectionInput, O as Collection, Y as BundleWithDetails, a4 as CompositeWithDetails, a9 as CompositePriceResult, C as CurrencyCode } from './payment-BKjX2fAs.js';
4
2
  import { A as AdSlot, a as AdPosition, e as AdContextValue } from './ads-t3FBTU8p.js';
5
3
  export { c as AdConfig } from './ads-t3FBTU8p.js';
4
+ import { C as CimplifyClient, Y as ProcessCheckoutResult, _ as CheckoutStatus, $ as CheckoutStatusContext, bq as Location, bn as Business, aS as Order, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, g as QuoteUiMessage, w as ElementsOptions, cK as AuthenticatedData, cG as AddressInfo, cH as PaymentMethodInfo, s as CimplifyElements, cM as ElementsCheckoutResult, X as ProcessCheckoutOptions } from './client-Dklt51q-.js';
5
+ import { r as Product, d as Pagination, h as CimplifyError, s as ProductWithDetails, L as Category, ax as BundleSelectionInput, a8 as ComponentSelectionInput, O as Collection, Y as BundleWithDetails, a4 as CompositeWithDetails, a9 as CompositePriceResult, C as CurrencyCode } from './payment-BKjX2fAs.js';
6
6
 
7
7
  interface UserIdentity {
8
8
  uid: string;
package/dist/react.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  'use strict';
2
3
 
3
4
  var React3 = require('react');
@@ -7,49 +8,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
7
8
 
8
9
  var React3__default = /*#__PURE__*/_interopDefault(React3);
9
10
 
10
- // src/react/index.tsx
11
-
12
- // src/types/elements.ts
13
- var ELEMENT_TYPES = {
14
- AUTH: "auth",
15
- ADDRESS: "address",
16
- PAYMENT: "payment",
17
- CHECKOUT: "checkout"
18
- };
19
- var MESSAGE_TYPES = {
20
- // Parent → Iframe
21
- INIT: "init",
22
- SET_TOKEN: "set_token",
23
- SET_CART: "set_cart",
24
- GET_DATA: "get_data",
25
- PROCESS_CHECKOUT: "process_checkout",
26
- ABORT_CHECKOUT: "abort_checkout",
27
- // Iframe → Parent
28
- READY: "ready",
29
- HEIGHT_CHANGE: "height_change",
30
- AUTHENTICATED: "authenticated",
31
- REQUIRES_OTP: "requires_otp",
32
- ERROR: "error",
33
- ADDRESS_CHANGED: "address_changed",
34
- ADDRESS_SELECTED: "address_selected",
35
- PAYMENT_METHOD_SELECTED: "payment_method_selected",
36
- TOKEN_REFRESHED: "token_refreshed",
37
- LOGOUT_COMPLETE: "logout_complete",
38
- CONTACT_PROVIDED: "contact_provided",
39
- CHECKOUT_STATUS: "checkout_status",
40
- CHECKOUT_COMPLETE: "checkout_complete",
41
- ORDER_TYPE_CHANGED: "order_type_changed",
42
- REQUEST_SUBMIT: "request_submit"
43
- };
44
- var EVENT_TYPES = {
45
- READY: "ready",
46
- AUTHENTICATED: "authenticated",
47
- REQUIRES_OTP: "requires_otp",
48
- ERROR: "error",
49
- CHANGE: "change",
50
- ORDER_TYPE_CHANGED: "order_type_changed",
51
- REQUEST_SUBMIT: "request_submit"
52
- };
11
+ // src/ads/index.tsx
53
12
 
54
13
  // src/ads/identity.ts
55
14
  var COOKIE_NAME = "_cimplify_uid";
@@ -2833,6 +2792,48 @@ var FxService = class {
2833
2792
  }
2834
2793
  };
2835
2794
 
2795
+ // src/types/elements.ts
2796
+ var ELEMENT_TYPES = {
2797
+ AUTH: "auth",
2798
+ ADDRESS: "address",
2799
+ PAYMENT: "payment",
2800
+ CHECKOUT: "checkout"
2801
+ };
2802
+ var MESSAGE_TYPES = {
2803
+ // Parent → Iframe
2804
+ INIT: "init",
2805
+ SET_TOKEN: "set_token",
2806
+ SET_CART: "set_cart",
2807
+ GET_DATA: "get_data",
2808
+ PROCESS_CHECKOUT: "process_checkout",
2809
+ ABORT_CHECKOUT: "abort_checkout",
2810
+ // Iframe → Parent
2811
+ READY: "ready",
2812
+ HEIGHT_CHANGE: "height_change",
2813
+ AUTHENTICATED: "authenticated",
2814
+ REQUIRES_OTP: "requires_otp",
2815
+ ERROR: "error",
2816
+ ADDRESS_CHANGED: "address_changed",
2817
+ ADDRESS_SELECTED: "address_selected",
2818
+ PAYMENT_METHOD_SELECTED: "payment_method_selected",
2819
+ TOKEN_REFRESHED: "token_refreshed",
2820
+ LOGOUT_COMPLETE: "logout_complete",
2821
+ CONTACT_PROVIDED: "contact_provided",
2822
+ CHECKOUT_STATUS: "checkout_status",
2823
+ CHECKOUT_COMPLETE: "checkout_complete",
2824
+ ORDER_TYPE_CHANGED: "order_type_changed",
2825
+ REQUEST_SUBMIT: "request_submit"
2826
+ };
2827
+ var EVENT_TYPES = {
2828
+ READY: "ready",
2829
+ AUTHENTICATED: "authenticated",
2830
+ REQUIRES_OTP: "requires_otp",
2831
+ ERROR: "error",
2832
+ CHANGE: "change",
2833
+ ORDER_TYPE_CHANGED: "order_type_changed",
2834
+ REQUEST_SUBMIT: "request_submit"
2835
+ };
2836
+
2836
2837
  // src/elements.ts
2837
2838
  function toCheckoutError(code, message, recoverable) {
2838
2839
  const hint = getErrorHint(code);
package/dist/react.mjs CHANGED
@@ -1,49 +1,8 @@
1
+ "use client";
1
2
  import React3, { createContext, useContext, useState, useEffect, useRef, useMemo, useCallback, useSyncExternalStore } from 'react';
2
3
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
3
4
 
4
- // src/react/index.tsx
5
-
6
- // src/types/elements.ts
7
- var ELEMENT_TYPES = {
8
- AUTH: "auth",
9
- ADDRESS: "address",
10
- PAYMENT: "payment",
11
- CHECKOUT: "checkout"
12
- };
13
- var MESSAGE_TYPES = {
14
- // Parent → Iframe
15
- INIT: "init",
16
- SET_TOKEN: "set_token",
17
- SET_CART: "set_cart",
18
- GET_DATA: "get_data",
19
- PROCESS_CHECKOUT: "process_checkout",
20
- ABORT_CHECKOUT: "abort_checkout",
21
- // Iframe → Parent
22
- READY: "ready",
23
- HEIGHT_CHANGE: "height_change",
24
- AUTHENTICATED: "authenticated",
25
- REQUIRES_OTP: "requires_otp",
26
- ERROR: "error",
27
- ADDRESS_CHANGED: "address_changed",
28
- ADDRESS_SELECTED: "address_selected",
29
- PAYMENT_METHOD_SELECTED: "payment_method_selected",
30
- TOKEN_REFRESHED: "token_refreshed",
31
- LOGOUT_COMPLETE: "logout_complete",
32
- CONTACT_PROVIDED: "contact_provided",
33
- CHECKOUT_STATUS: "checkout_status",
34
- CHECKOUT_COMPLETE: "checkout_complete",
35
- ORDER_TYPE_CHANGED: "order_type_changed",
36
- REQUEST_SUBMIT: "request_submit"
37
- };
38
- var EVENT_TYPES = {
39
- READY: "ready",
40
- AUTHENTICATED: "authenticated",
41
- REQUIRES_OTP: "requires_otp",
42
- ERROR: "error",
43
- CHANGE: "change",
44
- ORDER_TYPE_CHANGED: "order_type_changed",
45
- REQUEST_SUBMIT: "request_submit"
46
- };
5
+ // src/ads/index.tsx
47
6
 
48
7
  // src/ads/identity.ts
49
8
  var COOKIE_NAME = "_cimplify_uid";
@@ -2827,6 +2786,48 @@ var FxService = class {
2827
2786
  }
2828
2787
  };
2829
2788
 
2789
+ // src/types/elements.ts
2790
+ var ELEMENT_TYPES = {
2791
+ AUTH: "auth",
2792
+ ADDRESS: "address",
2793
+ PAYMENT: "payment",
2794
+ CHECKOUT: "checkout"
2795
+ };
2796
+ var MESSAGE_TYPES = {
2797
+ // Parent → Iframe
2798
+ INIT: "init",
2799
+ SET_TOKEN: "set_token",
2800
+ SET_CART: "set_cart",
2801
+ GET_DATA: "get_data",
2802
+ PROCESS_CHECKOUT: "process_checkout",
2803
+ ABORT_CHECKOUT: "abort_checkout",
2804
+ // Iframe → Parent
2805
+ READY: "ready",
2806
+ HEIGHT_CHANGE: "height_change",
2807
+ AUTHENTICATED: "authenticated",
2808
+ REQUIRES_OTP: "requires_otp",
2809
+ ERROR: "error",
2810
+ ADDRESS_CHANGED: "address_changed",
2811
+ ADDRESS_SELECTED: "address_selected",
2812
+ PAYMENT_METHOD_SELECTED: "payment_method_selected",
2813
+ TOKEN_REFRESHED: "token_refreshed",
2814
+ LOGOUT_COMPLETE: "logout_complete",
2815
+ CONTACT_PROVIDED: "contact_provided",
2816
+ CHECKOUT_STATUS: "checkout_status",
2817
+ CHECKOUT_COMPLETE: "checkout_complete",
2818
+ ORDER_TYPE_CHANGED: "order_type_changed",
2819
+ REQUEST_SUBMIT: "request_submit"
2820
+ };
2821
+ var EVENT_TYPES = {
2822
+ READY: "ready",
2823
+ AUTHENTICATED: "authenticated",
2824
+ REQUIRES_OTP: "requires_otp",
2825
+ ERROR: "error",
2826
+ CHANGE: "change",
2827
+ ORDER_TYPE_CHANGED: "order_type_changed",
2828
+ REQUEST_SUBMIT: "request_submit"
2829
+ };
2830
+
2830
2831
  // src/elements.ts
2831
2832
  function toCheckoutError(code, message, recoverable) {
2832
2833
  const hint = getErrorHint(code);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cimplify/sdk",
3
- "version": "0.8.8",
3
+ "version": "0.8.10",
4
4
  "description": "Cimplify Commerce SDK for storefronts",
5
5
  "keywords": [
6
6
  "cimplify",