bitsnap-react 1.12.0 → 1.13.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 (90) hide show
  1. package/README.md +40 -3
  2. package/dist/CartProvider-F7ER3WSS.js +2 -0
  3. package/dist/CartProvider-F7ER3WSS.js.map +1 -0
  4. package/dist/CartProvider-N73XNL7S.mjs +2 -0
  5. package/dist/analytics.js +1 -1
  6. package/dist/analytics.js.map +1 -1
  7. package/dist/analytics.mjs +1 -1
  8. package/dist/catalog.js +1 -1
  9. package/dist/catalog.js.map +1 -1
  10. package/dist/catalog.mjs +1 -1
  11. package/dist/{chunk-ICFYSZTV.js → chunk-3A4YOO7Z.js} +2 -2
  12. package/dist/chunk-3A4YOO7Z.js.map +1 -0
  13. package/dist/{chunk-UCESDAEC.mjs → chunk-3DGHF373.mjs} +2 -2
  14. package/dist/chunk-5GMWRCHK.mjs +4 -0
  15. package/dist/chunk-5GMWRCHK.mjs.map +1 -0
  16. package/dist/{chunk-MLSKHOA3.js → chunk-6CUCRTIK.js} +2 -2
  17. package/dist/chunk-6CUCRTIK.js.map +1 -0
  18. package/dist/{chunk-DGUIG334.js → chunk-EWLOGFF2.js} +2 -2
  19. package/dist/chunk-EWLOGFF2.js.map +1 -0
  20. package/dist/chunk-GAVLY6RX.mjs +2 -0
  21. package/dist/chunk-GAVLY6RX.mjs.map +1 -0
  22. package/dist/{chunk-XTIY6PXH.js → chunk-IP4OOWZ6.js} +2 -2
  23. package/dist/chunk-IP4OOWZ6.js.map +1 -0
  24. package/dist/chunk-JSDGZ4NY.js.map +1 -1
  25. package/dist/{chunk-3QG7H2AI.mjs → chunk-K2EITRNW.mjs} +2 -2
  26. package/dist/{chunk-5R3WR22A.mjs → chunk-KH7DFTJY.mjs} +2 -2
  27. package/dist/chunk-KOYBZORL.js.map +1 -1
  28. package/dist/{chunk-E5DCEFI2.mjs → chunk-L6J6H73J.mjs} +2 -2
  29. package/dist/chunk-M4KEUK6I.js +2 -0
  30. package/dist/chunk-M4KEUK6I.js.map +1 -0
  31. package/dist/{chunk-QSIKRVZL.mjs → chunk-OC7YS3UY.mjs} +2 -2
  32. package/dist/chunk-TMBC2BHN.js +4 -0
  33. package/dist/chunk-TMBC2BHN.js.map +1 -0
  34. package/dist/{chunk-DF2IK2GN.js → chunk-TSJCVFOX.js} +2 -2
  35. package/dist/chunk-TSJCVFOX.js.map +1 -0
  36. package/dist/{chunk-6IACFTJR.js → chunk-UFQVOGBS.js} +2 -2
  37. package/dist/chunk-UFQVOGBS.js.map +1 -0
  38. package/dist/chunk-XIHGWNTS.js.map +1 -1
  39. package/dist/{chunk-FF2ICGFQ.mjs → chunk-YNGXQJPE.mjs} +2 -2
  40. package/dist/{chunk-FF2ICGFQ.mjs.map → chunk-YNGXQJPE.mjs.map} +1 -1
  41. package/dist/consent.js.map +1 -1
  42. package/dist/course.js +1 -1
  43. package/dist/course.js.map +1 -1
  44. package/dist/course.mjs +1 -1
  45. package/dist/embed/analytics.js +1 -1
  46. package/dist/errors.js.map +1 -1
  47. package/dist/index.css +1 -1
  48. package/dist/index.css.map +1 -1
  49. package/dist/index.d.mts +59 -2
  50. package/dist/index.d.ts +59 -2
  51. package/dist/index.js +1 -1
  52. package/dist/index.js.map +1 -1
  53. package/dist/index.mjs +1 -1
  54. package/dist/index.mjs.map +1 -1
  55. package/dist/internal.js.map +1 -1
  56. package/dist/methods-ADH5XI4I.js +2 -0
  57. package/dist/methods-ADH5XI4I.js.map +1 -0
  58. package/dist/methods-BCR54EWX.mjs +2 -0
  59. package/dist/models.js.map +1 -1
  60. package/dist/returns.js +1 -1
  61. package/dist/returns.js.map +1 -1
  62. package/dist/returns.mjs +1 -1
  63. package/package.json +26 -51
  64. package/dist/CartProvider-XNFSUOCB.js +0 -2
  65. package/dist/CartProvider-XNFSUOCB.js.map +0 -1
  66. package/dist/CartProvider-YMJ7RFO4.mjs +0 -2
  67. package/dist/chunk-4BW6J7FP.js +0 -4
  68. package/dist/chunk-4BW6J7FP.js.map +0 -1
  69. package/dist/chunk-6IACFTJR.js.map +0 -1
  70. package/dist/chunk-DF2IK2GN.js.map +0 -1
  71. package/dist/chunk-DGUIG334.js.map +0 -1
  72. package/dist/chunk-ERL4Z7M7.js +0 -2
  73. package/dist/chunk-ERL4Z7M7.js.map +0 -1
  74. package/dist/chunk-ICFYSZTV.js.map +0 -1
  75. package/dist/chunk-MLSKHOA3.js.map +0 -1
  76. package/dist/chunk-P4Q5KXKS.mjs +0 -2
  77. package/dist/chunk-P4Q5KXKS.mjs.map +0 -1
  78. package/dist/chunk-PNTO3L2C.mjs +0 -4
  79. package/dist/chunk-PNTO3L2C.mjs.map +0 -1
  80. package/dist/chunk-XTIY6PXH.js.map +0 -1
  81. package/dist/methods-DDGOXLP6.mjs +0 -2
  82. package/dist/methods-RQPDIUUN.js +0 -2
  83. package/dist/methods-RQPDIUUN.js.map +0 -1
  84. /package/dist/{CartProvider-YMJ7RFO4.mjs.map → CartProvider-N73XNL7S.mjs.map} +0 -0
  85. /package/dist/{chunk-UCESDAEC.mjs.map → chunk-3DGHF373.mjs.map} +0 -0
  86. /package/dist/{chunk-3QG7H2AI.mjs.map → chunk-K2EITRNW.mjs.map} +0 -0
  87. /package/dist/{chunk-5R3WR22A.mjs.map → chunk-KH7DFTJY.mjs.map} +0 -0
  88. /package/dist/{chunk-E5DCEFI2.mjs.map → chunk-L6J6H73J.mjs.map} +0 -0
  89. /package/dist/{chunk-QSIKRVZL.mjs.map → chunk-OC7YS3UY.mjs.map} +0 -0
  90. /package/dist/{methods-DDGOXLP6.mjs.map → methods-BCR54EWX.mjs.map} +0 -0
package/dist/index.d.mts CHANGED
@@ -97,7 +97,7 @@ type CheckoutAppearanceTokens = {
97
97
  * Stable slot names. They are exposed as `data-bitsnap-checkout-slot`
98
98
  * attributes so they can also be targeted from plain CSS.
99
99
  */
100
- declare const CHECKOUT_SLOT_NAMES: readonly ["root", "overlay", "panel", "header", "title", "closeButton", "productList", "product", "productImage", "productName", "productPrice", "quantityControl", "quantityInput", "quantityButton", "removeButton", "summary", "totalLabel", "totalValue", "deliveryText", "summaryNote", "countryLabel", "countryTrigger", "countryDropdown", "countrySearch", "countryOption", "paymentButtons", "checkoutButton", "emptyState", "error", "skeleton"];
100
+ declare const CHECKOUT_SLOT_NAMES: readonly ["root", "overlay", "panel", "header", "title", "closeButton", "productList", "product", "productImage", "productName", "productPrice", "quantityControl", "quantityInput", "quantityButton", "removeButton", "summary", "totalLabel", "totalValue", "deliveryText", "summaryNote", "countryLabel", "countryTrigger", "countryDropdown", "countrySearch", "countryOption", "paymentButtons", "paymentMethods", "paymentMethodOption", "checkoutButton", "emptyState", "error", "skeleton"];
101
101
  type CheckoutSlotName = (typeof CHECKOUT_SLOT_NAMES)[number];
102
102
  type CheckoutSlotAppearance = SlotAppearance;
103
103
  type CheckoutAppearanceElements = AppearanceElements<CheckoutSlotName>;
@@ -185,6 +185,28 @@ type CheckoutTexts = {
185
185
  loadFailed: string;
186
186
  /** Button that loads the cart again. */
187
187
  retry: string;
188
+ /** Heading of the payment method choice (shown only when the shop offers paying by hand). */
189
+ paymentMethodLegend: string;
190
+ /** Option that pays through the shop's online gateway. */
191
+ paymentMethodOnline: string;
192
+ /** Hint under the online option. */
193
+ paymentMethodOnlineDescription: string;
194
+ /** Manual option when the seller takes bank transfers only. */
195
+ paymentMethodManualTransfer: string;
196
+ /** Manual option when the seller takes BLIK transfers to a phone number only. */
197
+ paymentMethodManualBlik: string;
198
+ /** Manual option when the seller takes both. */
199
+ paymentMethodManualBoth: string;
200
+ /** What paying by hand means: the details come after the order is placed. */
201
+ paymentMethodManualDescription: string;
202
+ /** Shown with a selected manual option that includes BLIK to a phone number. */
203
+ paymentMethodManualBlikNote: string;
204
+ /** Cash on delivery option. */
205
+ paymentMethodCod: string;
206
+ /** Hint under the cash on delivery option. */
207
+ paymentMethodCodDescription: string;
208
+ /** Error shown when the shop refused cash on delivery for the order. */
209
+ paymentMethodCodUnavailable: string;
188
210
  };
189
211
 
190
212
  type BitsnapCartProps = {
@@ -398,6 +420,29 @@ type Err = {
398
420
  };
399
421
  declare function Err(message: string, type?: ErrTypes, data?: unknown): Err;
400
422
 
423
+ /**
424
+ * The buyer's choice between paying online, paying the seller by hand (bank
425
+ * transfer or "BLIK przelew na telefon") and paying the courier on delivery,
426
+ * offered when the seller turned on "show at checkout" for the manual payment
427
+ * gateway or offers cash on delivery.
428
+ *
429
+ * `POST /public-commerce/payment-methods` takes the body of `/buy` and answers
430
+ * `{ success: true, choice: null }` (nothing to choose) or
431
+ * `{ success: true, choice: { methods, manualAccountTypes } }`. The pick goes
432
+ * to `/buy` as `paymentMethod`. Anything else (an old backend, an error, a
433
+ * timeout) counts as "nothing to choose", so the cart buys as before.
434
+ */
435
+
436
+ /** `cod` is cash on delivery: the buyer pays the courier (Poland only, shipped carts). */
437
+ type PaymentMethod = "online" | "manual" | "cod";
438
+ type ManualAccountType = "bankTransfer" | "blik";
439
+ type PaymentMethodChoice = {
440
+ /** In the seller's order (cash on delivery last); the first one is selected by default. */
441
+ methods: PaymentMethod[];
442
+ /** How the manual option is paid; decides its label. */
443
+ manualAccountTypes: ManualAccountType[];
444
+ };
445
+
401
446
  declare function setLocale(locale?: string): void;
402
447
  declare function getLocale(): string;
403
448
 
@@ -482,6 +527,11 @@ declare const linkRequestSchema: z__default.ZodObject<{
482
527
  answer: z__default.ZodOptional<z__default.ZodBoolean>;
483
528
  }, z__default.core.$strip>>>;
484
529
  blikCode: z__default.ZodOptional<z__default.ZodString>;
530
+ paymentMethod: z__default.ZodOptional<z__default.ZodEnum<{
531
+ online: "online";
532
+ manual: "manual";
533
+ cod: "cod";
534
+ }>>;
485
535
  couponCode: z__default.ZodOptional<z__default.ZodString>;
486
536
  redirect: z__default.ZodOptional<z__default.ZodObject<{
487
537
  successURL: z__default.ZodOptional<z__default.ZodString>;
@@ -511,6 +561,13 @@ declare namespace Bitsnap {
511
561
  function showCart(): void;
512
562
  function hideCart(): void;
513
563
  }
564
+ /**
565
+ * Whether the buyer may choose between paying online, paying the seller by
566
+ * transfer / BLIK to a phone number and paying on delivery, for the cart
567
+ * `/buy` would get. `null`
568
+ * means nothing to choose, also when the request fails.
569
+ */
570
+ declare function getPaymentMethodChoice(request: LinkRequest): Promise<PaymentMethodChoice | null>;
514
571
  declare function createPaymentURL(request: LinkRequest): Promise<Err | {
515
572
  projectId?: string | undefined;
516
573
  orderId?: string | undefined;
@@ -596,4 +653,4 @@ declare function persistReturnURL(returnURL: string | null): void;
596
653
  declare function readPersistedReturnURL(): string | null;
597
654
  declare function buildAccessTokenRedirect(returnURL: string, accessToken: string): string;
598
655
 
599
- export { AnalyticsOption, Wrapper$2 as ApplePayButton, type Props$3 as ApplePayButtonProps, Bitsnap, type BitsnapCartProps, BitsnapCart as BitsnapCheckout, type BuyErrorData, CHECKOUT_SLOT_NAMES, type CheckoutAppearance, type CheckoutAppearanceElements, type CheckoutAppearanceTokens, type CheckoutSlotAppearance, type CheckoutSlotName, type CheckoutTexts, type CheckoutTheme, type ComponentClassNames, type CreateCheckoutResult, type CustomizationTexts, GetThemeOutput, Wrapper$1 as GooglePayButton, type Props$2 as GooglePayButtonProps, ITEM_IDS_NOT_FOUND, type LinkRequest, type NotificationGroup, Wrapper as NotificationsComponent, type Props$1 as NotificationsComponentProps, type NotificationsComponentPublicProps, PanelPage as Panel, type PanelConfig, PanelLogin, PanelProps, PanelProvider, type PublicNotificationGroup, PublicOrderPage, buildAccessTokenRedirect, createCheckout, createPaymentURL, getAllowedReturnOrigins, getLocale, getPanelConfig, getReferenceIfPossible, getReturnURLFromSearch, injectReferenceToRequestIfNeeded, persistReturnURL, readPersistedReturnURL, setAllowedReturnOrigins, setCustomHost, setHost, setLocale, setLoginURL, setPanelConfig, setProjectID as setPanelProjectID, setProjectID$1 as setProjectID, setTheme, usePanelConfig };
656
+ export { AnalyticsOption, Wrapper$2 as ApplePayButton, type Props$3 as ApplePayButtonProps, Bitsnap, type BitsnapCartProps, BitsnapCart as BitsnapCheckout, type BuyErrorData, CHECKOUT_SLOT_NAMES, type CheckoutAppearance, type CheckoutAppearanceElements, type CheckoutAppearanceTokens, type CheckoutSlotAppearance, type CheckoutSlotName, type CheckoutTexts, type CheckoutTheme, type ComponentClassNames, type CreateCheckoutResult, type CustomizationTexts, GetThemeOutput, Wrapper$1 as GooglePayButton, type Props$2 as GooglePayButtonProps, ITEM_IDS_NOT_FOUND, type LinkRequest, type NotificationGroup, Wrapper as NotificationsComponent, type Props$1 as NotificationsComponentProps, type NotificationsComponentPublicProps, PanelPage as Panel, type PanelConfig, PanelLogin, PanelProps, PanelProvider, type PublicNotificationGroup, PublicOrderPage, buildAccessTokenRedirect, createCheckout, createPaymentURL, getAllowedReturnOrigins, getLocale, getPanelConfig, getPaymentMethodChoice, getReferenceIfPossible, getReturnURLFromSearch, injectReferenceToRequestIfNeeded, persistReturnURL, readPersistedReturnURL, setAllowedReturnOrigins, setCustomHost, setHost, setLocale, setLoginURL, setPanelConfig, setProjectID as setPanelProjectID, setProjectID$1 as setProjectID, setTheme, usePanelConfig };
package/dist/index.d.ts CHANGED
@@ -97,7 +97,7 @@ type CheckoutAppearanceTokens = {
97
97
  * Stable slot names. They are exposed as `data-bitsnap-checkout-slot`
98
98
  * attributes so they can also be targeted from plain CSS.
99
99
  */
100
- declare const CHECKOUT_SLOT_NAMES: readonly ["root", "overlay", "panel", "header", "title", "closeButton", "productList", "product", "productImage", "productName", "productPrice", "quantityControl", "quantityInput", "quantityButton", "removeButton", "summary", "totalLabel", "totalValue", "deliveryText", "summaryNote", "countryLabel", "countryTrigger", "countryDropdown", "countrySearch", "countryOption", "paymentButtons", "checkoutButton", "emptyState", "error", "skeleton"];
100
+ declare const CHECKOUT_SLOT_NAMES: readonly ["root", "overlay", "panel", "header", "title", "closeButton", "productList", "product", "productImage", "productName", "productPrice", "quantityControl", "quantityInput", "quantityButton", "removeButton", "summary", "totalLabel", "totalValue", "deliveryText", "summaryNote", "countryLabel", "countryTrigger", "countryDropdown", "countrySearch", "countryOption", "paymentButtons", "paymentMethods", "paymentMethodOption", "checkoutButton", "emptyState", "error", "skeleton"];
101
101
  type CheckoutSlotName = (typeof CHECKOUT_SLOT_NAMES)[number];
102
102
  type CheckoutSlotAppearance = SlotAppearance;
103
103
  type CheckoutAppearanceElements = AppearanceElements<CheckoutSlotName>;
@@ -185,6 +185,28 @@ type CheckoutTexts = {
185
185
  loadFailed: string;
186
186
  /** Button that loads the cart again. */
187
187
  retry: string;
188
+ /** Heading of the payment method choice (shown only when the shop offers paying by hand). */
189
+ paymentMethodLegend: string;
190
+ /** Option that pays through the shop's online gateway. */
191
+ paymentMethodOnline: string;
192
+ /** Hint under the online option. */
193
+ paymentMethodOnlineDescription: string;
194
+ /** Manual option when the seller takes bank transfers only. */
195
+ paymentMethodManualTransfer: string;
196
+ /** Manual option when the seller takes BLIK transfers to a phone number only. */
197
+ paymentMethodManualBlik: string;
198
+ /** Manual option when the seller takes both. */
199
+ paymentMethodManualBoth: string;
200
+ /** What paying by hand means: the details come after the order is placed. */
201
+ paymentMethodManualDescription: string;
202
+ /** Shown with a selected manual option that includes BLIK to a phone number. */
203
+ paymentMethodManualBlikNote: string;
204
+ /** Cash on delivery option. */
205
+ paymentMethodCod: string;
206
+ /** Hint under the cash on delivery option. */
207
+ paymentMethodCodDescription: string;
208
+ /** Error shown when the shop refused cash on delivery for the order. */
209
+ paymentMethodCodUnavailable: string;
188
210
  };
189
211
 
190
212
  type BitsnapCartProps = {
@@ -398,6 +420,29 @@ type Err = {
398
420
  };
399
421
  declare function Err(message: string, type?: ErrTypes, data?: unknown): Err;
400
422
 
423
+ /**
424
+ * The buyer's choice between paying online, paying the seller by hand (bank
425
+ * transfer or "BLIK przelew na telefon") and paying the courier on delivery,
426
+ * offered when the seller turned on "show at checkout" for the manual payment
427
+ * gateway or offers cash on delivery.
428
+ *
429
+ * `POST /public-commerce/payment-methods` takes the body of `/buy` and answers
430
+ * `{ success: true, choice: null }` (nothing to choose) or
431
+ * `{ success: true, choice: { methods, manualAccountTypes } }`. The pick goes
432
+ * to `/buy` as `paymentMethod`. Anything else (an old backend, an error, a
433
+ * timeout) counts as "nothing to choose", so the cart buys as before.
434
+ */
435
+
436
+ /** `cod` is cash on delivery: the buyer pays the courier (Poland only, shipped carts). */
437
+ type PaymentMethod = "online" | "manual" | "cod";
438
+ type ManualAccountType = "bankTransfer" | "blik";
439
+ type PaymentMethodChoice = {
440
+ /** In the seller's order (cash on delivery last); the first one is selected by default. */
441
+ methods: PaymentMethod[];
442
+ /** How the manual option is paid; decides its label. */
443
+ manualAccountTypes: ManualAccountType[];
444
+ };
445
+
401
446
  declare function setLocale(locale?: string): void;
402
447
  declare function getLocale(): string;
403
448
 
@@ -482,6 +527,11 @@ declare const linkRequestSchema: z__default.ZodObject<{
482
527
  answer: z__default.ZodOptional<z__default.ZodBoolean>;
483
528
  }, z__default.core.$strip>>>;
484
529
  blikCode: z__default.ZodOptional<z__default.ZodString>;
530
+ paymentMethod: z__default.ZodOptional<z__default.ZodEnum<{
531
+ online: "online";
532
+ manual: "manual";
533
+ cod: "cod";
534
+ }>>;
485
535
  couponCode: z__default.ZodOptional<z__default.ZodString>;
486
536
  redirect: z__default.ZodOptional<z__default.ZodObject<{
487
537
  successURL: z__default.ZodOptional<z__default.ZodString>;
@@ -511,6 +561,13 @@ declare namespace Bitsnap {
511
561
  function showCart(): void;
512
562
  function hideCart(): void;
513
563
  }
564
+ /**
565
+ * Whether the buyer may choose between paying online, paying the seller by
566
+ * transfer / BLIK to a phone number and paying on delivery, for the cart
567
+ * `/buy` would get. `null`
568
+ * means nothing to choose, also when the request fails.
569
+ */
570
+ declare function getPaymentMethodChoice(request: LinkRequest): Promise<PaymentMethodChoice | null>;
514
571
  declare function createPaymentURL(request: LinkRequest): Promise<Err | {
515
572
  projectId?: string | undefined;
516
573
  orderId?: string | undefined;
@@ -596,4 +653,4 @@ declare function persistReturnURL(returnURL: string | null): void;
596
653
  declare function readPersistedReturnURL(): string | null;
597
654
  declare function buildAccessTokenRedirect(returnURL: string, accessToken: string): string;
598
655
 
599
- export { AnalyticsOption, Wrapper$2 as ApplePayButton, type Props$3 as ApplePayButtonProps, Bitsnap, type BitsnapCartProps, BitsnapCart as BitsnapCheckout, type BuyErrorData, CHECKOUT_SLOT_NAMES, type CheckoutAppearance, type CheckoutAppearanceElements, type CheckoutAppearanceTokens, type CheckoutSlotAppearance, type CheckoutSlotName, type CheckoutTexts, type CheckoutTheme, type ComponentClassNames, type CreateCheckoutResult, type CustomizationTexts, GetThemeOutput, Wrapper$1 as GooglePayButton, type Props$2 as GooglePayButtonProps, ITEM_IDS_NOT_FOUND, type LinkRequest, type NotificationGroup, Wrapper as NotificationsComponent, type Props$1 as NotificationsComponentProps, type NotificationsComponentPublicProps, PanelPage as Panel, type PanelConfig, PanelLogin, PanelProps, PanelProvider, type PublicNotificationGroup, PublicOrderPage, buildAccessTokenRedirect, createCheckout, createPaymentURL, getAllowedReturnOrigins, getLocale, getPanelConfig, getReferenceIfPossible, getReturnURLFromSearch, injectReferenceToRequestIfNeeded, persistReturnURL, readPersistedReturnURL, setAllowedReturnOrigins, setCustomHost, setHost, setLocale, setLoginURL, setPanelConfig, setProjectID as setPanelProjectID, setProjectID$1 as setProjectID, setTheme, usePanelConfig };
656
+ export { AnalyticsOption, Wrapper$2 as ApplePayButton, type Props$3 as ApplePayButtonProps, Bitsnap, type BitsnapCartProps, BitsnapCart as BitsnapCheckout, type BuyErrorData, CHECKOUT_SLOT_NAMES, type CheckoutAppearance, type CheckoutAppearanceElements, type CheckoutAppearanceTokens, type CheckoutSlotAppearance, type CheckoutSlotName, type CheckoutTexts, type CheckoutTheme, type ComponentClassNames, type CreateCheckoutResult, type CustomizationTexts, GetThemeOutput, Wrapper$1 as GooglePayButton, type Props$2 as GooglePayButtonProps, ITEM_IDS_NOT_FOUND, type LinkRequest, type NotificationGroup, Wrapper as NotificationsComponent, type Props$1 as NotificationsComponentProps, type NotificationsComponentPublicProps, PanelPage as Panel, type PanelConfig, PanelLogin, PanelProps, PanelProvider, type PublicNotificationGroup, PublicOrderPage, buildAccessTokenRedirect, createCheckout, createPaymentURL, getAllowedReturnOrigins, getLocale, getPanelConfig, getPaymentMethodChoice, getReferenceIfPossible, getReturnURLFromSearch, injectReferenceToRequestIfNeeded, persistReturnURL, readPersistedReturnURL, setAllowedReturnOrigins, setCustomHost, setHost, setLocale, setLoginURL, setPanelConfig, setProjectID as setPanelProjectID, setProjectID$1 as setProjectID, setTheme, usePanelConfig };