@cimplify/sdk 0.66.0 → 0.68.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.
Files changed (55) hide show
  1. package/dist/advanced.d.mts +1 -1
  2. package/dist/advanced.d.ts +1 -1
  3. package/dist/advanced.js +20 -20
  4. package/dist/advanced.mjs +1 -1
  5. package/dist/{chunk-J3MGY6AU.js → chunk-5HAUJBOK.js} +36 -82
  6. package/dist/chunk-E6T5VJMG.mjs +156 -0
  7. package/dist/{chunk-3G4QCENX.mjs → chunk-FVGVJ4TC.mjs} +12 -50
  8. package/dist/chunk-IQLJJW2H.js +168 -0
  9. package/dist/{chunk-227XTAEB.mjs → chunk-KNPE4WCQ.mjs} +2 -48
  10. package/dist/{chunk-H6DBPHMZ.js → chunk-NGQCWFKF.js} +4 -4
  11. package/dist/{chunk-R6363CC7.mjs → chunk-SOV4H6PQ.mjs} +509 -79
  12. package/dist/{chunk-HCZTBWU4.js → chunk-SXGFJEME.js} +12 -50
  13. package/dist/{chunk-MWI5GAUF.mjs → chunk-TAKORJP4.mjs} +2 -2
  14. package/dist/{chunk-AVQL3TSJ.js → chunk-WCSAZRNC.js} +519 -78
  15. package/dist/{client-CUrA1uQ0.d.mts → client-CBE7ksYC.d.mts} +1 -1
  16. package/dist/{client-Bo5rujc2.d.ts → client-CfeQRwhl.d.ts} +55 -21
  17. package/dist/{client-DasPHOJh.d.ts → client-DlXfZy7N.d.ts} +1 -1
  18. package/dist/{client-Dka2cGhu.d.mts → client-Dyo3dvNy.d.mts} +55 -21
  19. package/dist/index.d.mts +2 -2
  20. package/dist/index.d.ts +2 -2
  21. package/dist/index.js +104 -88
  22. package/dist/index.mjs +16 -12
  23. package/dist/mock/cli.mjs +12 -50
  24. package/dist/mock/library.js +12 -50
  25. package/dist/mock/library.mjs +12 -50
  26. package/dist/mock/msw.js +12 -50
  27. package/dist/mock/msw.mjs +12 -50
  28. package/dist/react.d.mts +44 -44
  29. package/dist/react.d.ts +44 -44
  30. package/dist/react.js +298 -175
  31. package/dist/react.mjs +240 -117
  32. package/dist/server.d.mts +2 -2
  33. package/dist/server.d.ts +2 -2
  34. package/dist/server.js +16 -9
  35. package/dist/server.mjs +11 -4
  36. package/dist/{sign-in-dr7m09nm.d.ts → sign-in-DQlIdqsi.d.mts} +14 -1
  37. package/dist/{sign-in-dr7m09nm.d.mts → sign-in-DQlIdqsi.d.ts} +14 -1
  38. package/dist/styles.css +1 -1
  39. package/dist/testing/msw.js +2 -2
  40. package/dist/testing/msw.mjs +1 -1
  41. package/dist/testing/suite.d.mts +2 -2
  42. package/dist/testing/suite.d.ts +2 -2
  43. package/dist/testing/suite.js +23 -23
  44. package/dist/testing/suite.mjs +4 -4
  45. package/dist/testing.d.mts +17 -17
  46. package/dist/testing.d.ts +17 -17
  47. package/dist/testing.js +79 -79
  48. package/dist/testing.mjs +5 -5
  49. package/package.json +1 -1
  50. package/registry/index.json +0 -9
  51. package/dist/chunk-3Z3FQH7X.mjs +0 -323
  52. package/dist/chunk-7BKKBJQM.mjs +0 -52
  53. package/dist/chunk-GDAGM26J.js +0 -338
  54. package/dist/chunk-KWYI2TTA.js +0 -60
  55. package/registry/account.json +0 -15
@@ -2718,10 +2718,10 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
2718
2718
  REFRESH_TOKEN: "refresh_token", LOGOUT: "logout",
2719
2719
  PROCESS_CHECKOUT: "process_checkout", ABORT_CHECKOUT: "abort_checkout",
2720
2720
  READY: "ready", HEIGHT_CHANGE: "height_change",
2721
- AUTHENTICATED: "authenticated", REQUIRES_OTP: "requires_otp", ERROR: "error",
2721
+ AUTH_REQUESTED: "auth_requested", ERROR: "error",
2722
2722
  ADDRESS_CHANGED: "address_changed", ADDRESS_SELECTED: "address_selected",
2723
2723
  PAYMENT_METHOD_SELECTED: "payment_method_selected",
2724
- TOKEN_REFRESHED: "token_refreshed", LOGOUT_COMPLETE: "logout_complete",
2724
+ LOGOUT_COMPLETE: "logout_complete",
2725
2725
  CONTACT_PROVIDED: "contact_provided",
2726
2726
  CHECKOUT_STATUS: "checkout_status", CHECKOUT_COMPLETE: "checkout_complete",
2727
2727
  ORDER_TYPE_CHANGED: "order_type_changed", REQUEST_SUBMIT: "request_submit"
@@ -2730,6 +2730,7 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
2730
2730
  var AUTO = qs.get("auto") === "true";
2731
2731
  var DEMO_OTP = qs.get("otp") || "123456";
2732
2732
  var ORIGIN = qs.get("origin") || "*";
2733
+ var NONCE = qs.get("nonce");
2733
2734
  var state = {
2734
2735
  businessId: DEFAULT_BUSINESS,
2735
2736
  token: null,
@@ -2744,7 +2745,10 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
2744
2745
  var content = document.getElementById("content");
2745
2746
  var title = document.getElementById("title");
2746
2747
 
2747
- function send(msg) { parent.postMessage(msg, ORIGIN); }
2748
+ function send(msg) {
2749
+ if (NONCE) msg.nonce = NONCE;
2750
+ parent.postMessage(msg, ORIGIN);
2751
+ }
2748
2752
  function reportHeight() { send({ type: MSG.HEIGHT_CHANGE, height: document.documentElement.scrollHeight }); }
2749
2753
  function ready() { send({ type: MSG.READY, height: document.documentElement.scrollHeight }); }
2750
2754
 
@@ -2764,54 +2768,13 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
2764
2768
  function renderAuth() {
2765
2769
  title.textContent = "Sign in";
2766
2770
  content.innerHTML =
2767
- '<label>Email or phone</label>' +
2768
- '<input id="contact" placeholder="you@example.com or +233..." value="' + (qs.get("contact") || "") + '">' +
2769
- '<button id="send-otp">Send code</button>' +
2770
- '<div id="otp-box" style="display:none">' +
2771
- ' <label>Verification code (mock: ' + DEMO_OTP + ')</label>' +
2772
- ' <input id="otp" maxlength="6" value="' + DEMO_OTP + '">' +
2773
- ' <button id="verify-otp">Verify</button>' +
2774
- '</div>' +
2771
+ '<button id="start-auth">Continue with Cimplify</button>' +
2775
2772
  '<div class="err" id="err"></div>';
2776
- document.getElementById("send-otp").onclick = function () {
2777
- var contact = document.getElementById("contact").value.trim();
2778
- if (!contact) { document.getElementById("err").textContent = "Enter contact"; return; }
2779
- state.contact = contact;
2780
- var contactType = contact.indexOf("@") >= 0 ? "email" : "phone";
2781
- send({ type: MSG.CONTACT_PROVIDED, contact: contact, contactType: contactType });
2782
- send({ type: MSG.REQUIRES_OTP, contactMasked: contact.slice(0, 3) + "***" });
2783
- document.getElementById("otp-box").style.display = "block";
2784
- reportHeight();
2785
- };
2786
- document.getElementById("verify-otp").onclick = function () {
2787
- var code = document.getElementById("otp").value.trim();
2788
- if (code !== DEMO_OTP) { document.getElementById("err").textContent = "Invalid code"; return; }
2789
- fetch("/api/v1/auth/verify-otp", {
2790
- method: "POST",
2791
- headers: { "content-type": "application/json" },
2792
- body: JSON.stringify({ contact: state.contact, code: code })
2793
- }).then(function (r) { return r.json(); }).then(function (body) {
2794
- var session = body.session || {};
2795
- state.token = session.token || body.token;
2796
- state.customer = {
2797
- name: session.customer_name || "Customer",
2798
- email: session.customer_email || (state.contact && state.contact.indexOf("@") >= 0 ? state.contact : null),
2799
- phone: session.customer_phone || (state.contact && state.contact.indexOf("@") < 0 ? state.contact : null)
2800
- };
2801
- send({
2802
- type: MSG.AUTHENTICATED,
2803
- accountId: "acct_mock_" + (session.id || "x"),
2804
- customerId: session.customer_id || "cust_mock",
2805
- token: state.token,
2806
- customer: state.customer
2807
- });
2808
- }).catch(function (e) {
2809
- send({ type: MSG.ERROR, code: "AUTH_FAILED", message: String(e) });
2810
- });
2773
+ document.getElementById("start-auth").onclick = function () {
2774
+ send({ type: MSG.AUTH_REQUESTED });
2811
2775
  };
2812
2776
  if (AUTO) {
2813
- setTimeout(function () { document.getElementById("send-otp").click(); }, 50);
2814
- setTimeout(function () { document.getElementById("verify-otp").click(); }, 150);
2777
+ setTimeout(function () { document.getElementById("start-auth").click(); }, 50);
2815
2778
  }
2816
2779
  }
2817
2780
 
@@ -2988,7 +2951,6 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
2988
2951
  break;
2989
2952
  case MSG.SET_TOKEN:
2990
2953
  state.token = msg.token;
2991
- send({ type: MSG.TOKEN_REFRESHED, token: state.token });
2992
2954
  break;
2993
2955
  case MSG.SET_CART:
2994
2956
  state.cart = msg.cart;
@@ -3000,7 +2962,7 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
3000
2962
  send({ type: MSG.HEIGHT_CHANGE, height: document.documentElement.scrollHeight });
3001
2963
  break;
3002
2964
  case MSG.REFRESH_TOKEN:
3003
- send({ type: MSG.TOKEN_REFRESHED, token: state.token || "tok_mock_refreshed" });
2965
+ reportHeight();
3004
2966
  break;
3005
2967
  case MSG.LOGOUT:
3006
2968
  state.token = null;
@@ -2716,10 +2716,10 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
2716
2716
  REFRESH_TOKEN: "refresh_token", LOGOUT: "logout",
2717
2717
  PROCESS_CHECKOUT: "process_checkout", ABORT_CHECKOUT: "abort_checkout",
2718
2718
  READY: "ready", HEIGHT_CHANGE: "height_change",
2719
- AUTHENTICATED: "authenticated", REQUIRES_OTP: "requires_otp", ERROR: "error",
2719
+ AUTH_REQUESTED: "auth_requested", ERROR: "error",
2720
2720
  ADDRESS_CHANGED: "address_changed", ADDRESS_SELECTED: "address_selected",
2721
2721
  PAYMENT_METHOD_SELECTED: "payment_method_selected",
2722
- TOKEN_REFRESHED: "token_refreshed", LOGOUT_COMPLETE: "logout_complete",
2722
+ LOGOUT_COMPLETE: "logout_complete",
2723
2723
  CONTACT_PROVIDED: "contact_provided",
2724
2724
  CHECKOUT_STATUS: "checkout_status", CHECKOUT_COMPLETE: "checkout_complete",
2725
2725
  ORDER_TYPE_CHANGED: "order_type_changed", REQUEST_SUBMIT: "request_submit"
@@ -2728,6 +2728,7 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
2728
2728
  var AUTO = qs.get("auto") === "true";
2729
2729
  var DEMO_OTP = qs.get("otp") || "123456";
2730
2730
  var ORIGIN = qs.get("origin") || "*";
2731
+ var NONCE = qs.get("nonce");
2731
2732
  var state = {
2732
2733
  businessId: DEFAULT_BUSINESS,
2733
2734
  token: null,
@@ -2742,7 +2743,10 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
2742
2743
  var content = document.getElementById("content");
2743
2744
  var title = document.getElementById("title");
2744
2745
 
2745
- function send(msg) { parent.postMessage(msg, ORIGIN); }
2746
+ function send(msg) {
2747
+ if (NONCE) msg.nonce = NONCE;
2748
+ parent.postMessage(msg, ORIGIN);
2749
+ }
2746
2750
  function reportHeight() { send({ type: MSG.HEIGHT_CHANGE, height: document.documentElement.scrollHeight }); }
2747
2751
  function ready() { send({ type: MSG.READY, height: document.documentElement.scrollHeight }); }
2748
2752
 
@@ -2762,54 +2766,13 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
2762
2766
  function renderAuth() {
2763
2767
  title.textContent = "Sign in";
2764
2768
  content.innerHTML =
2765
- '<label>Email or phone</label>' +
2766
- '<input id="contact" placeholder="you@example.com or +233..." value="' + (qs.get("contact") || "") + '">' +
2767
- '<button id="send-otp">Send code</button>' +
2768
- '<div id="otp-box" style="display:none">' +
2769
- ' <label>Verification code (mock: ' + DEMO_OTP + ')</label>' +
2770
- ' <input id="otp" maxlength="6" value="' + DEMO_OTP + '">' +
2771
- ' <button id="verify-otp">Verify</button>' +
2772
- '</div>' +
2769
+ '<button id="start-auth">Continue with Cimplify</button>' +
2773
2770
  '<div class="err" id="err"></div>';
2774
- document.getElementById("send-otp").onclick = function () {
2775
- var contact = document.getElementById("contact").value.trim();
2776
- if (!contact) { document.getElementById("err").textContent = "Enter contact"; return; }
2777
- state.contact = contact;
2778
- var contactType = contact.indexOf("@") >= 0 ? "email" : "phone";
2779
- send({ type: MSG.CONTACT_PROVIDED, contact: contact, contactType: contactType });
2780
- send({ type: MSG.REQUIRES_OTP, contactMasked: contact.slice(0, 3) + "***" });
2781
- document.getElementById("otp-box").style.display = "block";
2782
- reportHeight();
2783
- };
2784
- document.getElementById("verify-otp").onclick = function () {
2785
- var code = document.getElementById("otp").value.trim();
2786
- if (code !== DEMO_OTP) { document.getElementById("err").textContent = "Invalid code"; return; }
2787
- fetch("/api/v1/auth/verify-otp", {
2788
- method: "POST",
2789
- headers: { "content-type": "application/json" },
2790
- body: JSON.stringify({ contact: state.contact, code: code })
2791
- }).then(function (r) { return r.json(); }).then(function (body) {
2792
- var session = body.session || {};
2793
- state.token = session.token || body.token;
2794
- state.customer = {
2795
- name: session.customer_name || "Customer",
2796
- email: session.customer_email || (state.contact && state.contact.indexOf("@") >= 0 ? state.contact : null),
2797
- phone: session.customer_phone || (state.contact && state.contact.indexOf("@") < 0 ? state.contact : null)
2798
- };
2799
- send({
2800
- type: MSG.AUTHENTICATED,
2801
- accountId: "acct_mock_" + (session.id || "x"),
2802
- customerId: session.customer_id || "cust_mock",
2803
- token: state.token,
2804
- customer: state.customer
2805
- });
2806
- }).catch(function (e) {
2807
- send({ type: MSG.ERROR, code: "AUTH_FAILED", message: String(e) });
2808
- });
2771
+ document.getElementById("start-auth").onclick = function () {
2772
+ send({ type: MSG.AUTH_REQUESTED });
2809
2773
  };
2810
2774
  if (AUTO) {
2811
- setTimeout(function () { document.getElementById("send-otp").click(); }, 50);
2812
- setTimeout(function () { document.getElementById("verify-otp").click(); }, 150);
2775
+ setTimeout(function () { document.getElementById("start-auth").click(); }, 50);
2813
2776
  }
2814
2777
  }
2815
2778
 
@@ -2986,7 +2949,6 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
2986
2949
  break;
2987
2950
  case MSG.SET_TOKEN:
2988
2951
  state.token = msg.token;
2989
- send({ type: MSG.TOKEN_REFRESHED, token: state.token });
2990
2952
  break;
2991
2953
  case MSG.SET_CART:
2992
2954
  state.cart = msg.cart;
@@ -2998,7 +2960,7 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
2998
2960
  send({ type: MSG.HEIGHT_CHANGE, height: document.documentElement.scrollHeight });
2999
2961
  break;
3000
2962
  case MSG.REFRESH_TOKEN:
3001
- send({ type: MSG.TOKEN_REFRESHED, token: state.token || "tok_mock_refreshed" });
2963
+ reportHeight();
3002
2964
  break;
3003
2965
  case MSG.LOGOUT:
3004
2966
  state.token = null;
package/dist/mock/msw.js CHANGED
@@ -2716,10 +2716,10 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
2716
2716
  REFRESH_TOKEN: "refresh_token", LOGOUT: "logout",
2717
2717
  PROCESS_CHECKOUT: "process_checkout", ABORT_CHECKOUT: "abort_checkout",
2718
2718
  READY: "ready", HEIGHT_CHANGE: "height_change",
2719
- AUTHENTICATED: "authenticated", REQUIRES_OTP: "requires_otp", ERROR: "error",
2719
+ AUTH_REQUESTED: "auth_requested", ERROR: "error",
2720
2720
  ADDRESS_CHANGED: "address_changed", ADDRESS_SELECTED: "address_selected",
2721
2721
  PAYMENT_METHOD_SELECTED: "payment_method_selected",
2722
- TOKEN_REFRESHED: "token_refreshed", LOGOUT_COMPLETE: "logout_complete",
2722
+ LOGOUT_COMPLETE: "logout_complete",
2723
2723
  CONTACT_PROVIDED: "contact_provided",
2724
2724
  CHECKOUT_STATUS: "checkout_status", CHECKOUT_COMPLETE: "checkout_complete",
2725
2725
  ORDER_TYPE_CHANGED: "order_type_changed", REQUEST_SUBMIT: "request_submit"
@@ -2728,6 +2728,7 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
2728
2728
  var AUTO = qs.get("auto") === "true";
2729
2729
  var DEMO_OTP = qs.get("otp") || "123456";
2730
2730
  var ORIGIN = qs.get("origin") || "*";
2731
+ var NONCE = qs.get("nonce");
2731
2732
  var state = {
2732
2733
  businessId: DEFAULT_BUSINESS,
2733
2734
  token: null,
@@ -2742,7 +2743,10 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
2742
2743
  var content = document.getElementById("content");
2743
2744
  var title = document.getElementById("title");
2744
2745
 
2745
- function send(msg) { parent.postMessage(msg, ORIGIN); }
2746
+ function send(msg) {
2747
+ if (NONCE) msg.nonce = NONCE;
2748
+ parent.postMessage(msg, ORIGIN);
2749
+ }
2746
2750
  function reportHeight() { send({ type: MSG.HEIGHT_CHANGE, height: document.documentElement.scrollHeight }); }
2747
2751
  function ready() { send({ type: MSG.READY, height: document.documentElement.scrollHeight }); }
2748
2752
 
@@ -2762,54 +2766,13 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
2762
2766
  function renderAuth() {
2763
2767
  title.textContent = "Sign in";
2764
2768
  content.innerHTML =
2765
- '<label>Email or phone</label>' +
2766
- '<input id="contact" placeholder="you@example.com or +233..." value="' + (qs.get("contact") || "") + '">' +
2767
- '<button id="send-otp">Send code</button>' +
2768
- '<div id="otp-box" style="display:none">' +
2769
- ' <label>Verification code (mock: ' + DEMO_OTP + ')</label>' +
2770
- ' <input id="otp" maxlength="6" value="' + DEMO_OTP + '">' +
2771
- ' <button id="verify-otp">Verify</button>' +
2772
- '</div>' +
2769
+ '<button id="start-auth">Continue with Cimplify</button>' +
2773
2770
  '<div class="err" id="err"></div>';
2774
- document.getElementById("send-otp").onclick = function () {
2775
- var contact = document.getElementById("contact").value.trim();
2776
- if (!contact) { document.getElementById("err").textContent = "Enter contact"; return; }
2777
- state.contact = contact;
2778
- var contactType = contact.indexOf("@") >= 0 ? "email" : "phone";
2779
- send({ type: MSG.CONTACT_PROVIDED, contact: contact, contactType: contactType });
2780
- send({ type: MSG.REQUIRES_OTP, contactMasked: contact.slice(0, 3) + "***" });
2781
- document.getElementById("otp-box").style.display = "block";
2782
- reportHeight();
2783
- };
2784
- document.getElementById("verify-otp").onclick = function () {
2785
- var code = document.getElementById("otp").value.trim();
2786
- if (code !== DEMO_OTP) { document.getElementById("err").textContent = "Invalid code"; return; }
2787
- fetch("/api/v1/auth/verify-otp", {
2788
- method: "POST",
2789
- headers: { "content-type": "application/json" },
2790
- body: JSON.stringify({ contact: state.contact, code: code })
2791
- }).then(function (r) { return r.json(); }).then(function (body) {
2792
- var session = body.session || {};
2793
- state.token = session.token || body.token;
2794
- state.customer = {
2795
- name: session.customer_name || "Customer",
2796
- email: session.customer_email || (state.contact && state.contact.indexOf("@") >= 0 ? state.contact : null),
2797
- phone: session.customer_phone || (state.contact && state.contact.indexOf("@") < 0 ? state.contact : null)
2798
- };
2799
- send({
2800
- type: MSG.AUTHENTICATED,
2801
- accountId: "acct_mock_" + (session.id || "x"),
2802
- customerId: session.customer_id || "cust_mock",
2803
- token: state.token,
2804
- customer: state.customer
2805
- });
2806
- }).catch(function (e) {
2807
- send({ type: MSG.ERROR, code: "AUTH_FAILED", message: String(e) });
2808
- });
2771
+ document.getElementById("start-auth").onclick = function () {
2772
+ send({ type: MSG.AUTH_REQUESTED });
2809
2773
  };
2810
2774
  if (AUTO) {
2811
- setTimeout(function () { document.getElementById("send-otp").click(); }, 50);
2812
- setTimeout(function () { document.getElementById("verify-otp").click(); }, 150);
2775
+ setTimeout(function () { document.getElementById("start-auth").click(); }, 50);
2813
2776
  }
2814
2777
  }
2815
2778
 
@@ -2986,7 +2949,6 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
2986
2949
  break;
2987
2950
  case MSG.SET_TOKEN:
2988
2951
  state.token = msg.token;
2989
- send({ type: MSG.TOKEN_REFRESHED, token: state.token });
2990
2952
  break;
2991
2953
  case MSG.SET_CART:
2992
2954
  state.cart = msg.cart;
@@ -2998,7 +2960,7 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
2998
2960
  send({ type: MSG.HEIGHT_CHANGE, height: document.documentElement.scrollHeight });
2999
2961
  break;
3000
2962
  case MSG.REFRESH_TOKEN:
3001
- send({ type: MSG.TOKEN_REFRESHED, token: state.token || "tok_mock_refreshed" });
2963
+ reportHeight();
3002
2964
  break;
3003
2965
  case MSG.LOGOUT:
3004
2966
  state.token = null;
package/dist/mock/msw.mjs CHANGED
@@ -2714,10 +2714,10 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
2714
2714
  REFRESH_TOKEN: "refresh_token", LOGOUT: "logout",
2715
2715
  PROCESS_CHECKOUT: "process_checkout", ABORT_CHECKOUT: "abort_checkout",
2716
2716
  READY: "ready", HEIGHT_CHANGE: "height_change",
2717
- AUTHENTICATED: "authenticated", REQUIRES_OTP: "requires_otp", ERROR: "error",
2717
+ AUTH_REQUESTED: "auth_requested", ERROR: "error",
2718
2718
  ADDRESS_CHANGED: "address_changed", ADDRESS_SELECTED: "address_selected",
2719
2719
  PAYMENT_METHOD_SELECTED: "payment_method_selected",
2720
- TOKEN_REFRESHED: "token_refreshed", LOGOUT_COMPLETE: "logout_complete",
2720
+ LOGOUT_COMPLETE: "logout_complete",
2721
2721
  CONTACT_PROVIDED: "contact_provided",
2722
2722
  CHECKOUT_STATUS: "checkout_status", CHECKOUT_COMPLETE: "checkout_complete",
2723
2723
  ORDER_TYPE_CHANGED: "order_type_changed", REQUEST_SUBMIT: "request_submit"
@@ -2726,6 +2726,7 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
2726
2726
  var AUTO = qs.get("auto") === "true";
2727
2727
  var DEMO_OTP = qs.get("otp") || "123456";
2728
2728
  var ORIGIN = qs.get("origin") || "*";
2729
+ var NONCE = qs.get("nonce");
2729
2730
  var state = {
2730
2731
  businessId: DEFAULT_BUSINESS,
2731
2732
  token: null,
@@ -2740,7 +2741,10 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
2740
2741
  var content = document.getElementById("content");
2741
2742
  var title = document.getElementById("title");
2742
2743
 
2743
- function send(msg) { parent.postMessage(msg, ORIGIN); }
2744
+ function send(msg) {
2745
+ if (NONCE) msg.nonce = NONCE;
2746
+ parent.postMessage(msg, ORIGIN);
2747
+ }
2744
2748
  function reportHeight() { send({ type: MSG.HEIGHT_CHANGE, height: document.documentElement.scrollHeight }); }
2745
2749
  function ready() { send({ type: MSG.READY, height: document.documentElement.scrollHeight }); }
2746
2750
 
@@ -2760,54 +2764,13 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
2760
2764
  function renderAuth() {
2761
2765
  title.textContent = "Sign in";
2762
2766
  content.innerHTML =
2763
- '<label>Email or phone</label>' +
2764
- '<input id="contact" placeholder="you@example.com or +233..." value="' + (qs.get("contact") || "") + '">' +
2765
- '<button id="send-otp">Send code</button>' +
2766
- '<div id="otp-box" style="display:none">' +
2767
- ' <label>Verification code (mock: ' + DEMO_OTP + ')</label>' +
2768
- ' <input id="otp" maxlength="6" value="' + DEMO_OTP + '">' +
2769
- ' <button id="verify-otp">Verify</button>' +
2770
- '</div>' +
2767
+ '<button id="start-auth">Continue with Cimplify</button>' +
2771
2768
  '<div class="err" id="err"></div>';
2772
- document.getElementById("send-otp").onclick = function () {
2773
- var contact = document.getElementById("contact").value.trim();
2774
- if (!contact) { document.getElementById("err").textContent = "Enter contact"; return; }
2775
- state.contact = contact;
2776
- var contactType = contact.indexOf("@") >= 0 ? "email" : "phone";
2777
- send({ type: MSG.CONTACT_PROVIDED, contact: contact, contactType: contactType });
2778
- send({ type: MSG.REQUIRES_OTP, contactMasked: contact.slice(0, 3) + "***" });
2779
- document.getElementById("otp-box").style.display = "block";
2780
- reportHeight();
2781
- };
2782
- document.getElementById("verify-otp").onclick = function () {
2783
- var code = document.getElementById("otp").value.trim();
2784
- if (code !== DEMO_OTP) { document.getElementById("err").textContent = "Invalid code"; return; }
2785
- fetch("/api/v1/auth/verify-otp", {
2786
- method: "POST",
2787
- headers: { "content-type": "application/json" },
2788
- body: JSON.stringify({ contact: state.contact, code: code })
2789
- }).then(function (r) { return r.json(); }).then(function (body) {
2790
- var session = body.session || {};
2791
- state.token = session.token || body.token;
2792
- state.customer = {
2793
- name: session.customer_name || "Customer",
2794
- email: session.customer_email || (state.contact && state.contact.indexOf("@") >= 0 ? state.contact : null),
2795
- phone: session.customer_phone || (state.contact && state.contact.indexOf("@") < 0 ? state.contact : null)
2796
- };
2797
- send({
2798
- type: MSG.AUTHENTICATED,
2799
- accountId: "acct_mock_" + (session.id || "x"),
2800
- customerId: session.customer_id || "cust_mock",
2801
- token: state.token,
2802
- customer: state.customer
2803
- });
2804
- }).catch(function (e) {
2805
- send({ type: MSG.ERROR, code: "AUTH_FAILED", message: String(e) });
2806
- });
2769
+ document.getElementById("start-auth").onclick = function () {
2770
+ send({ type: MSG.AUTH_REQUESTED });
2807
2771
  };
2808
2772
  if (AUTO) {
2809
- setTimeout(function () { document.getElementById("send-otp").click(); }, 50);
2810
- setTimeout(function () { document.getElementById("verify-otp").click(); }, 150);
2773
+ setTimeout(function () { document.getElementById("start-auth").click(); }, 50);
2811
2774
  }
2812
2775
  }
2813
2776
 
@@ -2984,7 +2947,6 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
2984
2947
  break;
2985
2948
  case MSG.SET_TOKEN:
2986
2949
  state.token = msg.token;
2987
- send({ type: MSG.TOKEN_REFRESHED, token: state.token });
2988
2950
  break;
2989
2951
  case MSG.SET_CART:
2990
2952
  state.cart = msg.cart;
@@ -2996,7 +2958,7 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
2996
2958
  send({ type: MSG.HEIGHT_CHANGE, height: document.documentElement.scrollHeight });
2997
2959
  break;
2998
2960
  case MSG.REFRESH_TOKEN:
2999
- send({ type: MSG.TOKEN_REFRESHED, token: state.token || "tok_mock_refreshed" });
2961
+ reportHeight();
3000
2962
  break;
3001
2963
  case MSG.LOGOUT:
3002
2964
  state.token = null;
package/dist/react.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import React$1, { ReactNode } from 'react';
2
- import { d as AdSlot, c as AdPosition, a as AdContextValue, S as SignInOptions } from './sign-in-dr7m09nm.mjs';
3
- export { A as AdConfig, g as getVariantDisplayName } from './sign-in-dr7m09nm.mjs';
4
- import { ac as CimplifyClient, c0 as ProcessCheckoutResult, a9 as CheckoutStatus, aa as CheckoutStatusContext, w as Business, bd as Location, ch as ReorderResult, bK as OrderStatus, bt as Order, c2 as QuoteBundleSelectionInput, c3 as QuoteCompositeSelectionInput, bY as PriceQuote, c6 as QuoteUiMessage, cC as Service, r as AvailableSlot, au as DayAvailability, am as CustomerBooking, L as CancelBookingResult, f as ActivityStateResponse, cL as SessionMessage, c as ActivityRecommendation, aw as DeliveryFeeResponse, aX as FxRateResponse, cU as StorefrontBootstrap, X as ChatWidgetStarter, W as ChatMessage, h as AddressInfo, n as AuthenticatedData, aL as ElementsOptions, bS as PaymentMethodInfo, aJ as ElementsCheckoutResult, b$ as ProcessCheckoutOptions, af as CimplifyElements, b4 as LineItem, cO as Staff, cx as Room } from './client-Dka2cGhu.mjs';
2
+ import { d as AdSlot, c as AdPosition, a as AdContextValue, S as SignInOptions } from './sign-in-DQlIdqsi.mjs';
3
+ export { A as AdConfig, g as getVariantDisplayName } from './sign-in-DQlIdqsi.mjs';
4
+ import { ac as CimplifyClient, c7 as ProcessCheckoutResult, a9 as CheckoutStatus, aa as CheckoutStatusContext, w as Business, bk as Location, co as ReorderResult, bR as OrderStatus, bA as Order, c9 as QuoteBundleSelectionInput, ca as QuoteCompositeSelectionInput, c3 as PriceQuote, cd as QuoteUiMessage, cJ as Service, r as AvailableSlot, au as DayAvailability, am as CustomerBooking, L as CancelBookingResult, f as ActivityStateResponse, cS as SessionMessage, c as ActivityRecommendation, aw as DeliveryFeeResponse, b2 as FxRateResponse, c$ as StorefrontBootstrap, X as ChatWidgetStarter, W as ChatMessage, h as AddressInfo, n as AuthenticatedData, aS as ElementsOptions, bZ as PaymentMethodInfo, aQ as ElementsCheckoutResult, c6 as ProcessCheckoutOptions, af as CimplifyElements, bb as LineItem, cV as Staff, cE as Room } from './client-Dyo3dvNy.mjs';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import { ab as CurrencyCode, aX as Product, aO as Pagination, T as CimplifyError, b9 as ProductWithDetails, Q as Category, aM as Money, C as BundleSelectionInput, $ as ComponentSelectionInput, z as BundleSelectionData, a8 as CompositeSelectionData, U as Collection, b4 as ProductTaxonomy, bt as TaxonomyWithChildren, b5 as ProductTimeProfile, ah as Deal, b0 as ProductDealInfo, an as DiscountValidation, E as BundleSummary, a6 as CompositePriceResult, bo as SubscriptionWithDetails, bn as SubscriptionStatus, bk as Subscription, ac as CustomAttributeDefinition, ba as PropertyFacet, a$ as ProductBillingPlan, bL as VariantView, bF as VariantAxisWithValues, f as AddOnWithOptions, w as BundleComponentView, x as BundlePriceType, a4 as CompositeGroupView, aq as DisplayCart, b1 as ProductInputField, bg as SchedulingMode, at as DurationUnit, ad as CustomAttributeValue, b2 as ProductProperty, bc as QuantityPricingTier } from './product-B_kS4Oxa.mjs';
7
7
  import { P as ProductWithPrice } from './price-Cm0tU0V5.mjs';
@@ -83,42 +83,6 @@ interface CimplifyCheckoutProps {
83
83
  }
84
84
  declare function CimplifyCheckout({ client, businessId, cartId, locationId, linkUrl, orderTypes, defaultOrderType, submitLabel, enrollInLink, onComplete, onError, onStatusChange, appearance, className, }: CimplifyCheckoutProps): React$1.ReactElement;
85
85
 
86
- interface CimplifyAccountProps {
87
- /** CimplifyClient instance. Falls back to provider context. */
88
- client?: CimplifyClient;
89
- /** Override the Link base URL. */
90
- linkUrl?: string;
91
- /** Initial section to show: "dashboard" | "orders" | "addresses" | "payment-methods" | "sessions" | "settings". */
92
- section?: string;
93
- /**
94
- * Per-merchant scope for the embedded account widget. When set, the
95
- * widget filters orders/subs/sessions to this business and hides
96
- * cross-merchant surfaces. Defaults to the client's configured
97
- * business ID so storefronts get scoping for free.
98
- */
99
- businessId?: string;
100
- /**
101
- * Display name of the embedding merchant — shown in the widget's
102
- * scoping footer ("Showing your account with Acme Threads only.").
103
- * Optional but recommended for trust signal.
104
- */
105
- merchantName?: string;
106
- /** Appearance variables — passed to Link for theming. */
107
- appearance?: {
108
- theme?: "light" | "dark";
109
- variables?: {
110
- primaryColor?: string;
111
- fontFamily?: string;
112
- borderRadius?: string;
113
- };
114
- };
115
- /** Called when the user logs out from the account portal. */
116
- onLogout?: () => void;
117
- /** Additional CSS class for the container. */
118
- className?: string;
119
- }
120
- declare function CimplifyAccount({ client: clientProp, linkUrl, section, businessId: businessIdProp, merchantName, appearance, onLogout, className, }: CimplifyAccountProps): React$1.ReactElement;
121
-
122
86
  interface NavItem {
123
87
  label: string;
124
88
  href: string;
@@ -592,6 +556,45 @@ interface UseCimplifySessionResult {
592
556
  }
593
557
  declare function useCimplifySession(options?: UseCimplifySessionOptions): UseCimplifySessionResult;
594
558
 
559
+ interface UserButtonLink {
560
+ label: string;
561
+ href: string;
562
+ icon?: React$1.ReactNode;
563
+ external?: boolean;
564
+ }
565
+ interface CimplifyUserButtonProps {
566
+ /** Controlled session. When omitted, the component reads it from `sessionUri`. */
567
+ session?: CimplifyClientSession | null;
568
+ /** Session endpoint for the uncontrolled case. Defaults to `/auth/session`. */
569
+ sessionUri?: string;
570
+ /**
571
+ * Storefront-scoped quick links shown in the menu. These resolve against the
572
+ * merchant's own pages (the business-scoped token already in the page reads
573
+ * the data). Defaults to the native `/account/*` routes.
574
+ */
575
+ links?: UserButtonLink[];
576
+ /**
577
+ * Cross-merchant identity home. Profile, security, passkeys and devices live
578
+ * on the root session at `link.cimplify.io` — never in the merchant frame —
579
+ * so this is always an external link.
580
+ */
581
+ identityUrl?: string;
582
+ /** Sign-out target. A `<form>` POST is used so the BFF can clear cookies. */
583
+ signOutHref?: string;
584
+ onSignOut?: () => void;
585
+ /** Signed-out state delegates to the hosted OAuth flow. */
586
+ clientId?: string;
587
+ redirectUri?: string;
588
+ signInLabel?: string;
589
+ onSignIn?: () => void;
590
+ /** Hide the name beside the avatar (avatar-only trigger). */
591
+ hideName?: boolean;
592
+ /** Menu alignment relative to the trigger. */
593
+ align?: "start" | "end";
594
+ className?: string;
595
+ }
596
+ declare function CimplifyUserButton({ session: controlledSession, sessionUri, links, identityUrl, signOutHref, onSignOut, clientId, redirectUri, signInLabel, onSignIn, hideName, align, className, }: CimplifyUserButtonProps): React$1.ReactElement | null;
597
+
595
598
  interface PriceProps {
596
599
  /** The amount in base (business) currency. */
597
600
  amount: number | string;
@@ -1278,11 +1281,8 @@ interface BaseElementProps {
1278
1281
  interface AuthElementProps extends BaseElementProps {
1279
1282
  prefillEmail?: string;
1280
1283
  onAuthenticated?: (data: AuthenticatedData) => void;
1281
- onRequiresOtp?: (data: {
1282
- contactMasked: string;
1283
- }) => void;
1284
1284
  }
1285
- declare function AuthElement({ className, style, prefillEmail, onReady, onAuthenticated, onRequiresOtp, onError, }: AuthElementProps): React$1.ReactElement | null;
1285
+ declare function AuthElement({ className, style, prefillEmail, onReady, onAuthenticated, onError, }: AuthElementProps): React$1.ReactElement | null;
1286
1286
  interface AddressElementProps extends BaseElementProps {
1287
1287
  mode?: "shipping" | "billing";
1288
1288
  onChange?: (data: {
@@ -3451,4 +3451,4 @@ interface ChatWidgetProps {
3451
3451
  }
3452
3452
  declare function ChatWidget({ client: clientProp, businessName, greeting, subtitle, starters, placeholder, position, defaultOpen, pollInterval, className, classNames, }: ChatWidgetProps): react_jsx_runtime.JSX.Element;
3453
3453
 
3454
- export { AccommodationCard, AccountContent, type AccountContentProps, AccountDashboardPage, type AccountDashboardPageProps, AccountHero, type AccountHeroProps, AccountIdentityStrip, type AccountIdentityStripProps, AccountNav, type AccountNavProps, AccountOrderDetailPage, type AccountOrderDetailPageProps, AccountOrdersPage, type AccountOrdersPageProps, type AccountPageBaseProps, AccountShell, type AccountShellProps, AccountSidebar, type AccountSidebarProps, AccountSignedOutPrompt, type AccountSignedOutPromptProps, AccountSubscriptionDetailPage, type AccountSubscriptionDetailPageProps, AccountSubscriptionsPage, type AccountSubscriptionsPageProps, Ad, AdPosition, type AdProps, AdProvider, AdSlot, AddOnSelector, type AddOnSelectorClassNames, type AddOnSelectorProps, type AddToCartOptions, AddressElement, AuthElement, AvailabilityBadge, type AvailabilityBadgeClassNames, type AvailabilityBadgeProps, BackLink, type BackLinkProps, BillingPlanSelector, type BillingPlanSelectorClassNames, type BillingPlanSelectorProps, BookingCard, type BookingCardClassNames, type BookingCardProps, BookingList, type BookingListClassNames, type BookingListProps, BookingPage, type BookingPageClassNames, type BookingPageProps, BookingsPage, type BookingsPageClassNames, type BookingsPageProps, BoxIcon24, BundleProductCard, BundleProductLayout, BundleSelector, type BundleSelectorClassNames, type BundleSelectorProps, Button, type ButtonProps, CardImage, type CardLayoutProps, CardShell, CardVariant, type CartAddOnOptionSelection, CartDrawer, type CartDrawerProps, CartDrawerProvider, type CartLayoutProps, CartPage, type CartPageClassNames, type CartPageProps, CartSummary, type CartSummaryClassNames, type CartSummaryProps, CartTemplate, type CartVariantSelection, CatalogueCollectionLayout, type CatalogueLayoutProps, CataloguePage, type CataloguePageClassNames, type CataloguePageProps, CatalogueTemplate, CategoryFilter, type CategoryFilterClassNames, type CategoryFilterProps, CategoryGrid, type CategoryGridClassNames, type CategoryGridProps, ChatWidget, type ChatWidgetClassNames, type ChatWidgetProps, CheckIcon, CheckoutPage, type CheckoutPageClassNames, type CheckoutPageProps, CimplifyAccount, type CimplifyAccountProps, CimplifyCheckout, type CimplifyCheckoutProps, type CimplifyClientContextValue, type CimplifyClientSession, type CimplifyContextValue, CimplifyProvider, type CimplifyProviderProps, CimplifySignInButton, type CimplifySignInButtonProps, type CollectionLayoutProps, CollectionPage, type CollectionPageClassNames, type CollectionPageProps, CollectionTemplate, CompactCartLayout, CompactCatalogueLayout, CompactSearchLayout, CompactServiceCard, CompositeProductCard, CompositeProductLayout, CompositeSelector, type CompositeSelectorClassNames, type CompositeSelectorProps, ContextCard, type ContextCardProps, type ContextRow, ContinuityCard, type ContinuityCardProps, CurrencySelector, type CurrencySelectorClassNames, type CurrencySelectorProps, CustomAttributesTable, CustomerInputFields, type CustomerInputFieldsClassNames, type CustomerInputFieldsProps, DashboardIcon, DashboardIcon20, DatePicker, type DatePickerClassNames, type DatePickerProps, DateSlotPicker, type DateSlotPickerClassNames, type DateSlotPickerProps, DealBanner, type DealBannerClassNames, type DealBannerProps, DealsPage, type DealsPageClassNames, type DealsPageProps, DefaultCartLayout, DefaultCatalogueLayout, DefaultCollectionLayout, DefaultProductLayout, DefaultSearchLayout, DeliveryEstimate, type DeliveryEstimateClassNames, type DeliveryEstimateProps, DeliveryTruckIcon, DigitalProductCard, DigitalProductLayout, DiscountInput, type DiscountInputClassNames, type DiscountInputProps, ElementsProvider, EmptyState, type EmptyStateProps, ErrorState, type ErrorStateProps, FeaturedCollectionLayout, type FilterTabItem, FilterTabs, type FilterTabsProps, FoodProductCard, FoodProductLayout, HappeningCard, type HappeningCardProps, type HappeningPaneData, IdentityIcon, IdentityOfframp, type IdentityOfframpProps, type IdentitySummary, InventoryBadge, ItemsCard, type ItemsCardProps, LeaseServiceCard, LocationPicker, type LocationPickerClassNames, type LocationPickerProps, MediaGallery, type MediaGalleryProps, type MediaItem, MetadataStringList, MobileAccountShell, type MobileAccountShellProps, MobileBackButton, MobileMoreButton, MobileTabBar, type MobileTabBarProps, type NavItem, NextDeliveryCard, type NextDeliveryCardProps, OrderDetailHeader, type OrderDetailHeaderProps, OrderDetailMetaPipe, OrderDetailPage, type OrderDetailPageClassNames, type OrderDetailPageProps, OrderHistory, type OrderHistoryClassNames, OrderHistoryPage, type OrderHistoryPageClassNames, type OrderHistoryPageProps, type OrderHistoryProps, type OrderItemData, OrderList, type OrderListProps, OrderRow, type OrderRowData, type OrderRowProps, type OrderRowStatus, OrderSummary, type OrderSummaryClassNames, type OrderSummaryProps, OrderTimeline, type OrderTimelineProps, OrderTotals, type OrderTotalsProps, OrdersIcon, OrdersIcon20, OvenIcon, PackageIcon, PaymentElement, Price, type PriceProps, PriceRange, type PriceRangeProps, ProductCard, type ProductCardClassNames, type ProductCardProps, ProductCustomizer, type ProductCustomizerClassNames, type ProductCustomizerProps, ProductGrid, type ProductGridClassNames, type ProductGridProps, ProductImageGallery, type ProductImageGalleryProps, type ProductLayoutProps, ProductModel3D, type ProductModel3DProps, ProductPage, type ProductPageClassNames, type ProductPageProps, ProductSheet, type ProductSheetClassNames, type ProductSheetProps, ProductTemplate, PropertiesTable, QuantitySelector, type QuantitySelectorClassNames, type QuantitySelectorProps, QuickAddButton, RecentlyViewed, type RecentlyViewedClassNames, type RecentlyViewedProps, RecommendationCarousel, type RecommendationCarouselClassNames, type RecommendationCarouselProps, RelatedProductsSection, RentalServiceCard, type Resource, ResourcePicker, type ResourcePickerClassNames, type ResourcePickerProps, RetailProductCard, RichText, type RichTextProps, SaleBadge, type SaleBadgeClassNames, type SaleBadgeProps, ScheduleServiceCard, SearchInput, type SearchInputClassNames, type SearchInputProps, type SearchLayoutProps, SearchPage, type SearchPageClassNames, type SearchPageProps, SearchTemplate, Section, SectionMore, type SectionMoreProps, type SectionProps, type ServiceCardLayoutProps, ServiceProductLayout, SessionMessageBanner, type SessionMessageBannerClassNames, type SessionMessageBannerProps, SignOutIcon, Skeleton, type SkeletonProps, SlotPicker, type SlotPickerClassNames, type SlotPickerProps, SoldOutOverlay, StaffPicker, type StaffPickerClassNames, type StaffPickerProps, StandardServiceCard, Status, type StatusProps, StoreNav, type StoreNavClassNames, type StoreNavProps, StoreVideo, type StoreVideoProps, SubscriptionCard, SubscriptionList, type SubscriptionListProps, SubscriptionRow, type SubscriptionRowData, type SubscriptionRowProps, SubscriptionsIcon, SubscriptionsIcon20, TagPills, TimePicker, type TimePickerClassNames, type TimePickerProps, type TimelineStep, Toast, type ToastProps, type TotalsData, TwoColumnGrid, type UseActivityStateOptions, type UseActivityStateResult, type UseAttributeDefinitionsOptions, type UseAttributeDefinitionsResult, type UseAvailableSlotsOptions, type UseAvailableSlotsResult, type UseBillingPlansOptions, type UseBillingPlansResult, type UseBookingsOptions, type UseBookingsResult, type UseBootstrapOptions, type UseBootstrapResult, type UseBundlesOptions, type UseBundlesResult, type UseCartItem, type UseCartOptions, type UseCartResult, type UseCategoriesOptions, type UseCategoriesResult, type UseChatOptions, type UseChatResult, type UseCimplifySessionOptions, type UseCimplifySessionResult, type UseCollectionOptions, type UseCollectionResult, type UseCollectionsOptions, type UseCollectionsResult, type UseDealsOptions, type UseDealsResult, type UseDeliveryFeeOptions, type UseDeliveryFeeResult, type UseFxRateOptions, type UseFxRateResult, type UseLocationsOptions, type UseLocationsResult, type UseOrderOptions, type UseOrderResult, type UseOrdersOptions, type UseOrdersResult, type UseProductAvailabilityOptions, type UseProductAvailabilityResult, type UseProductDealsOptions, type UseProductDealsResult, type UseProductOptions, type UseProductPriceInput, type UseProductPriceResult, type UseProductResult, type UseProductSchedulesOptions, type UseProductSchedulesResult, type UseProductsOnSaleOptions, type UseProductsOnSaleResult, type UseProductsOptions, type UseProductsResult, type UsePropertyFacetsOptions, type UsePropertyFacetsResult, type UseQuoteInput, type UseQuoteOptions, type UseQuoteResult, type UseRecommendationsOptions, type UseRecommendationsResult, type UseSearchOptions, type UseSearchResult, type UseServiceAvailabilityOptions, type UseServiceAvailabilityResult, type UseServicesOptions, type UseServicesResult, type UseTaxonomiesOptions, type UseTaxonomiesResult, type UseTaxonomyOptions, type UseTaxonomyPathOptions, type UseTaxonomyPathResult, type UseTaxonomyResult, type UseValidateDiscountOptions, type UseValidateDiscountResult, type UseVariantSelectorOptions, type UseVariantSelectorResult, VariantSelector, type VariantSelectorClassNames, type VariantSelectorProps, VolumePricing, type VolumePricingClassNames, type VolumePricingProps, WelcomeCard, type WelcomeCardProps, WholesaleProductCard, WholesaleProductLayout, WishlistButton, cn, roomToResource, sanitizeRichTextHtml, stripHtmlToText, useActivityState, useAds, useAttributeDefinitions, useAvailableSlots, useBillingPlans, useBookings, useBootstrap, useBundles, useCart, useCartDrawer, useCategories, useChat, useCheckout, useCimplify, useCimplifyClient, useCimplifySession, useCollection, useCollections, useDeals, useDeliveryFee, useElements, useElementsReady, useFxRate, useLocations, useOptionalCimplify, useOrder, useOrders, useProduct, useProductAvailability, useProductDeals, useProductPrice, useProductSchedules, useProducts, useProductsOnSale, usePropertyFacets, useQuote, useRecommendations, useSearch, useServiceAvailability, useServices, useSubscription, useSubscriptions, useTaxonomies, useTaxonomy, useTaxonomyPath, useValidateDiscount, useVariantSelector };
3454
+ export { AccommodationCard, AccountContent, type AccountContentProps, AccountDashboardPage, type AccountDashboardPageProps, AccountHero, type AccountHeroProps, AccountIdentityStrip, type AccountIdentityStripProps, AccountNav, type AccountNavProps, AccountOrderDetailPage, type AccountOrderDetailPageProps, AccountOrdersPage, type AccountOrdersPageProps, type AccountPageBaseProps, AccountShell, type AccountShellProps, AccountSidebar, type AccountSidebarProps, AccountSignedOutPrompt, type AccountSignedOutPromptProps, AccountSubscriptionDetailPage, type AccountSubscriptionDetailPageProps, AccountSubscriptionsPage, type AccountSubscriptionsPageProps, Ad, AdPosition, type AdProps, AdProvider, AdSlot, AddOnSelector, type AddOnSelectorClassNames, type AddOnSelectorProps, type AddToCartOptions, AddressElement, AuthElement, AvailabilityBadge, type AvailabilityBadgeClassNames, type AvailabilityBadgeProps, BackLink, type BackLinkProps, BillingPlanSelector, type BillingPlanSelectorClassNames, type BillingPlanSelectorProps, BookingCard, type BookingCardClassNames, type BookingCardProps, BookingList, type BookingListClassNames, type BookingListProps, BookingPage, type BookingPageClassNames, type BookingPageProps, BookingsPage, type BookingsPageClassNames, type BookingsPageProps, BoxIcon24, BundleProductCard, BundleProductLayout, BundleSelector, type BundleSelectorClassNames, type BundleSelectorProps, Button, type ButtonProps, CardImage, type CardLayoutProps, CardShell, CardVariant, type CartAddOnOptionSelection, CartDrawer, type CartDrawerProps, CartDrawerProvider, type CartLayoutProps, CartPage, type CartPageClassNames, type CartPageProps, CartSummary, type CartSummaryClassNames, type CartSummaryProps, CartTemplate, type CartVariantSelection, CatalogueCollectionLayout, type CatalogueLayoutProps, CataloguePage, type CataloguePageClassNames, type CataloguePageProps, CatalogueTemplate, CategoryFilter, type CategoryFilterClassNames, type CategoryFilterProps, CategoryGrid, type CategoryGridClassNames, type CategoryGridProps, ChatWidget, type ChatWidgetClassNames, type ChatWidgetProps, CheckIcon, CheckoutPage, type CheckoutPageClassNames, type CheckoutPageProps, CimplifyCheckout, type CimplifyCheckoutProps, type CimplifyClientContextValue, type CimplifyClientSession, type CimplifyContextValue, CimplifyProvider, type CimplifyProviderProps, CimplifySignInButton, type CimplifySignInButtonProps, CimplifyUserButton, type CimplifyUserButtonProps, type CollectionLayoutProps, CollectionPage, type CollectionPageClassNames, type CollectionPageProps, CollectionTemplate, CompactCartLayout, CompactCatalogueLayout, CompactSearchLayout, CompactServiceCard, CompositeProductCard, CompositeProductLayout, CompositeSelector, type CompositeSelectorClassNames, type CompositeSelectorProps, ContextCard, type ContextCardProps, type ContextRow, ContinuityCard, type ContinuityCardProps, CurrencySelector, type CurrencySelectorClassNames, type CurrencySelectorProps, CustomAttributesTable, CustomerInputFields, type CustomerInputFieldsClassNames, type CustomerInputFieldsProps, DashboardIcon, DashboardIcon20, DatePicker, type DatePickerClassNames, type DatePickerProps, DateSlotPicker, type DateSlotPickerClassNames, type DateSlotPickerProps, DealBanner, type DealBannerClassNames, type DealBannerProps, DealsPage, type DealsPageClassNames, type DealsPageProps, DefaultCartLayout, DefaultCatalogueLayout, DefaultCollectionLayout, DefaultProductLayout, DefaultSearchLayout, DeliveryEstimate, type DeliveryEstimateClassNames, type DeliveryEstimateProps, DeliveryTruckIcon, DigitalProductCard, DigitalProductLayout, DiscountInput, type DiscountInputClassNames, type DiscountInputProps, ElementsProvider, EmptyState, type EmptyStateProps, ErrorState, type ErrorStateProps, FeaturedCollectionLayout, type FilterTabItem, FilterTabs, type FilterTabsProps, FoodProductCard, FoodProductLayout, HappeningCard, type HappeningCardProps, type HappeningPaneData, IdentityIcon, IdentityOfframp, type IdentityOfframpProps, type IdentitySummary, InventoryBadge, ItemsCard, type ItemsCardProps, LeaseServiceCard, LocationPicker, type LocationPickerClassNames, type LocationPickerProps, MediaGallery, type MediaGalleryProps, type MediaItem, MetadataStringList, MobileAccountShell, type MobileAccountShellProps, MobileBackButton, MobileMoreButton, MobileTabBar, type MobileTabBarProps, type NavItem, NextDeliveryCard, type NextDeliveryCardProps, OrderDetailHeader, type OrderDetailHeaderProps, OrderDetailMetaPipe, OrderDetailPage, type OrderDetailPageClassNames, type OrderDetailPageProps, OrderHistory, type OrderHistoryClassNames, OrderHistoryPage, type OrderHistoryPageClassNames, type OrderHistoryPageProps, type OrderHistoryProps, type OrderItemData, OrderList, type OrderListProps, OrderRow, type OrderRowData, type OrderRowProps, type OrderRowStatus, OrderSummary, type OrderSummaryClassNames, type OrderSummaryProps, OrderTimeline, type OrderTimelineProps, OrderTotals, type OrderTotalsProps, OrdersIcon, OrdersIcon20, OvenIcon, PackageIcon, PaymentElement, Price, type PriceProps, PriceRange, type PriceRangeProps, ProductCard, type ProductCardClassNames, type ProductCardProps, ProductCustomizer, type ProductCustomizerClassNames, type ProductCustomizerProps, ProductGrid, type ProductGridClassNames, type ProductGridProps, ProductImageGallery, type ProductImageGalleryProps, type ProductLayoutProps, ProductModel3D, type ProductModel3DProps, ProductPage, type ProductPageClassNames, type ProductPageProps, ProductSheet, type ProductSheetClassNames, type ProductSheetProps, ProductTemplate, PropertiesTable, QuantitySelector, type QuantitySelectorClassNames, type QuantitySelectorProps, QuickAddButton, RecentlyViewed, type RecentlyViewedClassNames, type RecentlyViewedProps, RecommendationCarousel, type RecommendationCarouselClassNames, type RecommendationCarouselProps, RelatedProductsSection, RentalServiceCard, type Resource, ResourcePicker, type ResourcePickerClassNames, type ResourcePickerProps, RetailProductCard, RichText, type RichTextProps, SaleBadge, type SaleBadgeClassNames, type SaleBadgeProps, ScheduleServiceCard, SearchInput, type SearchInputClassNames, type SearchInputProps, type SearchLayoutProps, SearchPage, type SearchPageClassNames, type SearchPageProps, SearchTemplate, Section, SectionMore, type SectionMoreProps, type SectionProps, type ServiceCardLayoutProps, ServiceProductLayout, SessionMessageBanner, type SessionMessageBannerClassNames, type SessionMessageBannerProps, SignOutIcon, Skeleton, type SkeletonProps, SlotPicker, type SlotPickerClassNames, type SlotPickerProps, SoldOutOverlay, StaffPicker, type StaffPickerClassNames, type StaffPickerProps, StandardServiceCard, Status, type StatusProps, StoreNav, type StoreNavClassNames, type StoreNavProps, StoreVideo, type StoreVideoProps, SubscriptionCard, SubscriptionList, type SubscriptionListProps, SubscriptionRow, type SubscriptionRowData, type SubscriptionRowProps, SubscriptionsIcon, SubscriptionsIcon20, TagPills, TimePicker, type TimePickerClassNames, type TimePickerProps, type TimelineStep, Toast, type ToastProps, type TotalsData, TwoColumnGrid, type UseActivityStateOptions, type UseActivityStateResult, type UseAttributeDefinitionsOptions, type UseAttributeDefinitionsResult, type UseAvailableSlotsOptions, type UseAvailableSlotsResult, type UseBillingPlansOptions, type UseBillingPlansResult, type UseBookingsOptions, type UseBookingsResult, type UseBootstrapOptions, type UseBootstrapResult, type UseBundlesOptions, type UseBundlesResult, type UseCartItem, type UseCartOptions, type UseCartResult, type UseCategoriesOptions, type UseCategoriesResult, type UseChatOptions, type UseChatResult, type UseCimplifySessionOptions, type UseCimplifySessionResult, type UseCollectionOptions, type UseCollectionResult, type UseCollectionsOptions, type UseCollectionsResult, type UseDealsOptions, type UseDealsResult, type UseDeliveryFeeOptions, type UseDeliveryFeeResult, type UseFxRateOptions, type UseFxRateResult, type UseLocationsOptions, type UseLocationsResult, type UseOrderOptions, type UseOrderResult, type UseOrdersOptions, type UseOrdersResult, type UseProductAvailabilityOptions, type UseProductAvailabilityResult, type UseProductDealsOptions, type UseProductDealsResult, type UseProductOptions, type UseProductPriceInput, type UseProductPriceResult, type UseProductResult, type UseProductSchedulesOptions, type UseProductSchedulesResult, type UseProductsOnSaleOptions, type UseProductsOnSaleResult, type UseProductsOptions, type UseProductsResult, type UsePropertyFacetsOptions, type UsePropertyFacetsResult, type UseQuoteInput, type UseQuoteOptions, type UseQuoteResult, type UseRecommendationsOptions, type UseRecommendationsResult, type UseSearchOptions, type UseSearchResult, type UseServiceAvailabilityOptions, type UseServiceAvailabilityResult, type UseServicesOptions, type UseServicesResult, type UseTaxonomiesOptions, type UseTaxonomiesResult, type UseTaxonomyOptions, type UseTaxonomyPathOptions, type UseTaxonomyPathResult, type UseTaxonomyResult, type UseValidateDiscountOptions, type UseValidateDiscountResult, type UseVariantSelectorOptions, type UseVariantSelectorResult, type UserButtonLink, VariantSelector, type VariantSelectorClassNames, type VariantSelectorProps, VolumePricing, type VolumePricingClassNames, type VolumePricingProps, WelcomeCard, type WelcomeCardProps, WholesaleProductCard, WholesaleProductLayout, WishlistButton, cn, roomToResource, sanitizeRichTextHtml, stripHtmlToText, useActivityState, useAds, useAttributeDefinitions, useAvailableSlots, useBillingPlans, useBookings, useBootstrap, useBundles, useCart, useCartDrawer, useCategories, useChat, useCheckout, useCimplify, useCimplifyClient, useCimplifySession, useCollection, useCollections, useDeals, useDeliveryFee, useElements, useElementsReady, useFxRate, useLocations, useOptionalCimplify, useOrder, useOrders, useProduct, useProductAvailability, useProductDeals, useProductPrice, useProductSchedules, useProducts, useProductsOnSale, usePropertyFacets, useQuote, useRecommendations, useSearch, useServiceAvailability, useServices, useSubscription, useSubscriptions, useTaxonomies, useTaxonomy, useTaxonomyPath, useValidateDiscount, useVariantSelector };