@cimplify/sdk 0.8.8 → 0.8.9

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
@@ -7,49 +7,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
7
7
 
8
8
  var React3__default = /*#__PURE__*/_interopDefault(React3);
9
9
 
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
- };
10
+ // src/ads/index.tsx
53
11
 
54
12
  // src/ads/identity.ts
55
13
  var COOKIE_NAME = "_cimplify_uid";
@@ -2833,6 +2791,48 @@ var FxService = class {
2833
2791
  }
2834
2792
  };
2835
2793
 
2794
+ // src/types/elements.ts
2795
+ var ELEMENT_TYPES = {
2796
+ AUTH: "auth",
2797
+ ADDRESS: "address",
2798
+ PAYMENT: "payment",
2799
+ CHECKOUT: "checkout"
2800
+ };
2801
+ var MESSAGE_TYPES = {
2802
+ // Parent → Iframe
2803
+ INIT: "init",
2804
+ SET_TOKEN: "set_token",
2805
+ SET_CART: "set_cart",
2806
+ GET_DATA: "get_data",
2807
+ PROCESS_CHECKOUT: "process_checkout",
2808
+ ABORT_CHECKOUT: "abort_checkout",
2809
+ // Iframe → Parent
2810
+ READY: "ready",
2811
+ HEIGHT_CHANGE: "height_change",
2812
+ AUTHENTICATED: "authenticated",
2813
+ REQUIRES_OTP: "requires_otp",
2814
+ ERROR: "error",
2815
+ ADDRESS_CHANGED: "address_changed",
2816
+ ADDRESS_SELECTED: "address_selected",
2817
+ PAYMENT_METHOD_SELECTED: "payment_method_selected",
2818
+ TOKEN_REFRESHED: "token_refreshed",
2819
+ LOGOUT_COMPLETE: "logout_complete",
2820
+ CONTACT_PROVIDED: "contact_provided",
2821
+ CHECKOUT_STATUS: "checkout_status",
2822
+ CHECKOUT_COMPLETE: "checkout_complete",
2823
+ ORDER_TYPE_CHANGED: "order_type_changed",
2824
+ REQUEST_SUBMIT: "request_submit"
2825
+ };
2826
+ var EVENT_TYPES = {
2827
+ READY: "ready",
2828
+ AUTHENTICATED: "authenticated",
2829
+ REQUIRES_OTP: "requires_otp",
2830
+ ERROR: "error",
2831
+ CHANGE: "change",
2832
+ ORDER_TYPE_CHANGED: "order_type_changed",
2833
+ REQUEST_SUBMIT: "request_submit"
2834
+ };
2835
+
2836
2836
  // src/elements.ts
2837
2837
  function toCheckoutError(code, message, recoverable) {
2838
2838
  const hint = getErrorHint(code);
package/dist/react.mjs CHANGED
@@ -1,49 +1,7 @@
1
1
  import React3, { createContext, useContext, useState, useEffect, useRef, useMemo, useCallback, useSyncExternalStore } from 'react';
2
2
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
3
3
 
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
- };
4
+ // src/ads/index.tsx
47
5
 
48
6
  // src/ads/identity.ts
49
7
  var COOKIE_NAME = "_cimplify_uid";
@@ -2827,6 +2785,48 @@ var FxService = class {
2827
2785
  }
2828
2786
  };
2829
2787
 
2788
+ // src/types/elements.ts
2789
+ var ELEMENT_TYPES = {
2790
+ AUTH: "auth",
2791
+ ADDRESS: "address",
2792
+ PAYMENT: "payment",
2793
+ CHECKOUT: "checkout"
2794
+ };
2795
+ var MESSAGE_TYPES = {
2796
+ // Parent → Iframe
2797
+ INIT: "init",
2798
+ SET_TOKEN: "set_token",
2799
+ SET_CART: "set_cart",
2800
+ GET_DATA: "get_data",
2801
+ PROCESS_CHECKOUT: "process_checkout",
2802
+ ABORT_CHECKOUT: "abort_checkout",
2803
+ // Iframe → Parent
2804
+ READY: "ready",
2805
+ HEIGHT_CHANGE: "height_change",
2806
+ AUTHENTICATED: "authenticated",
2807
+ REQUIRES_OTP: "requires_otp",
2808
+ ERROR: "error",
2809
+ ADDRESS_CHANGED: "address_changed",
2810
+ ADDRESS_SELECTED: "address_selected",
2811
+ PAYMENT_METHOD_SELECTED: "payment_method_selected",
2812
+ TOKEN_REFRESHED: "token_refreshed",
2813
+ LOGOUT_COMPLETE: "logout_complete",
2814
+ CONTACT_PROVIDED: "contact_provided",
2815
+ CHECKOUT_STATUS: "checkout_status",
2816
+ CHECKOUT_COMPLETE: "checkout_complete",
2817
+ ORDER_TYPE_CHANGED: "order_type_changed",
2818
+ REQUEST_SUBMIT: "request_submit"
2819
+ };
2820
+ var EVENT_TYPES = {
2821
+ READY: "ready",
2822
+ AUTHENTICATED: "authenticated",
2823
+ REQUIRES_OTP: "requires_otp",
2824
+ ERROR: "error",
2825
+ CHANGE: "change",
2826
+ ORDER_TYPE_CHANGED: "order_type_changed",
2827
+ REQUEST_SUBMIT: "request_submit"
2828
+ };
2829
+
2830
2830
  // src/elements.ts
2831
2831
  function toCheckoutError(code, message, recoverable) {
2832
2832
  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.9",
4
4
  "description": "Cimplify Commerce SDK for storefronts",
5
5
  "keywords": [
6
6
  "cimplify",