bitsnap-react 1.6.1 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/README.md +135 -0
  2. package/dist/CartProvider-F2VH7WFO.mjs +2 -0
  3. package/dist/CartProvider-F2VH7WFO.mjs.map +1 -0
  4. package/dist/CartProvider-PDEV6GCV.css +2 -0
  5. package/dist/CartProvider-PDEV6GCV.css.map +1 -0
  6. package/dist/appearance-core-Dt2grZdl.d.mts +19 -0
  7. package/dist/appearance-core-Dt2grZdl.d.ts +19 -0
  8. package/dist/catalog.css +2 -0
  9. package/dist/catalog.css.map +1 -0
  10. package/dist/catalog.d.mts +214 -0
  11. package/dist/catalog.d.ts +214 -0
  12. package/dist/catalog.js +2 -0
  13. package/dist/catalog.js.map +1 -0
  14. package/dist/catalog.mjs +2 -0
  15. package/dist/catalog.mjs.map +1 -0
  16. package/dist/chunk-3TENJTY4.mjs +2 -0
  17. package/dist/chunk-3TENJTY4.mjs.map +1 -0
  18. package/dist/chunk-4HOZFM6V.mjs +2 -0
  19. package/dist/chunk-4HOZFM6V.mjs.map +1 -0
  20. package/dist/chunk-6KQBDN7M.mjs +2 -0
  21. package/dist/chunk-6KQBDN7M.mjs.map +1 -0
  22. package/dist/chunk-FTYJTO6O.mjs +2 -0
  23. package/dist/chunk-FTYJTO6O.mjs.map +1 -0
  24. package/dist/chunk-RATFYRKZ.mjs +4 -0
  25. package/dist/chunk-RATFYRKZ.mjs.map +1 -0
  26. package/dist/index.css +1 -1
  27. package/dist/index.css.map +1 -1
  28. package/dist/index.d.mts +62 -23
  29. package/dist/index.d.ts +62 -23
  30. package/dist/index.js +2 -2
  31. package/dist/index.js.map +1 -1
  32. package/dist/index.mjs +1 -3
  33. package/dist/index.mjs.map +1 -1
  34. package/dist/methods-PFZSMZFU.mjs +2 -0
  35. package/dist/methods-PFZSMZFU.mjs.map +1 -0
  36. package/dist/methods-QAZED7TJ.css +2 -0
  37. package/dist/methods-QAZED7TJ.css.map +1 -0
  38. package/dist/models.d.mts +54 -0
  39. package/dist/models.d.ts +54 -0
  40. package/dist/models.js +1 -1
  41. package/dist/models.js.map +1 -1
  42. package/dist/models.mjs +1 -1
  43. package/dist/models.mjs.map +1 -1
  44. package/dist/returns.d.mts +602 -52
  45. package/dist/returns.d.ts +602 -52
  46. package/dist/returns.js +1 -1
  47. package/dist/returns.js.map +1 -1
  48. package/dist/returns.mjs +1 -1
  49. package/package.json +21 -26
  50. package/dist/chunk-O4ICBP4G.mjs +0 -2
  51. package/dist/chunk-O4ICBP4G.mjs.map +0 -1
package/dist/index.d.mts CHANGED
@@ -1,8 +1,11 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { CSSProperties, ReactNode } from 'react';
2
+ import { S as SlotAppearance, A as AppearanceElements } from './appearance-core-Dt2grZdl.mjs';
3
+ export { PRODUCT_LIST_SLOT_NAMES, ProductList, ProductListAppearance, ProductListAppearanceElements, ProductListAppearanceTokens, ProductListData, ProductListItemContext, ProductListProps, ProductListSlotAppearance, ProductListSlotName, ProductListTextKey, ProductListTexts, ProductListTheme, PublicListProduct, UseProductsOptions, UseProductsResult, formatProductPrice, useProducts } from './catalog.mjs';
4
+ import { ReturnsAppearance, ReturnsTexts } from './returns.mjs';
5
+ export { BitsnapReturns, BitsnapReturnsProps, BitsnapReturnsProvider, BitsnapReturnsProviderProps, CreateReturnInput, Environment, LegacyCreateReturnInput, LegacyReturnsTexts, LegacyReturnsTheme, RETURNS_SLOT_NAMES, ReturnsAppearanceElements, ReturnsAppearanceProvider, ReturnsAppearanceTokens, ReturnsChallenge, ReturnsCodeStep, ReturnsCodeStepProps, ReturnsConfirmation, ReturnsConfirmationProps, ReturnsEmailStep, ReturnsEmailStepProps, ReturnsEnvironment, ReturnsEnvironmentInput, ReturnsMyReturnDetail, ReturnsMyReturnDetailProps, ReturnsMyReturnsList, ReturnsMyReturnsListProps, ReturnsOrderDetail, ReturnsOrderDetailProps, ReturnsOrderList, ReturnsOrderListProps, ReturnsProvider, ReturnsProviderProps, ReturnsResult, ReturnsResultProps, ReturnsSessionStatus, ReturnsSlotAppearance, ReturnsSlotName, ReturnsTextKey, ReturnsTextsInput, ReturnsTheme, SelectedReturnLine, UseCreateReturnResult, UseMyReturnResult, UseMyReturnsResult, UseReturnOrdersResult, UseReturnSessionResult, UseReturnableOrderResult, useCreateReturn, useMyReturn, useMyReturns, useReturnOrders, useReturnSession, useReturnableOrder, useReturnsAppearance, useReturnsSlot, useReturnsText } from './returns.mjs';
6
+ import { ReactNode } from 'react';
3
7
  import z__default from 'zod';
4
- export { BitsnapReturns, BitsnapReturnsProps, BitsnapReturnsProvider, BitsnapReturnsProviderProps, Environment, useCreateReturn, useMyReturns, useReturnOrders, useReturnSession, useReturnableOrder } from './returns.mjs';
5
- import '@tanstack/react-query';
8
+ import './models.mjs';
6
9
  import '@bufbuild/protobuf/wkt';
7
10
  import '@bufbuild/protobuf';
8
11
 
@@ -85,13 +88,8 @@ type CheckoutAppearanceTokens = {
85
88
  */
86
89
  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", "countryLabel", "countryTrigger", "countryDropdown", "countrySearch", "countryOption", "paymentButtons", "checkoutButton", "emptyState", "error", "skeleton"];
87
90
  type CheckoutSlotName = (typeof CHECKOUT_SLOT_NAMES)[number];
88
- type CheckoutSlotAppearance = {
89
- /** Merged after the built-in classes with `cn`, so Tailwind conflicts resolve. */
90
- className?: string;
91
- /** Merged after the built-in inline styles. */
92
- style?: CSSProperties;
93
- };
94
- type CheckoutAppearanceElements = Partial<Record<CheckoutSlotName, CheckoutSlotAppearance>>;
91
+ type CheckoutSlotAppearance = SlotAppearance;
92
+ type CheckoutAppearanceElements = AppearanceElements<CheckoutSlotName>;
95
93
  type CheckoutAppearance = {
96
94
  /**
97
95
  * `"dark"` keeps the current presentation, `"light"` applies the light preset.
@@ -104,6 +102,28 @@ type CheckoutAppearance = {
104
102
  elements?: CheckoutAppearanceElements;
105
103
  };
106
104
 
105
+ /**
106
+ * Every string the checkout renders. Pass a partial object through the
107
+ * `texts` prop of `BitsnapCheckout` to override any of them, whatever the
108
+ * locale.
109
+ */
110
+ type CheckoutTexts = {
111
+ /** Drawer title. */
112
+ cart: string;
113
+ /** Shown when the cart has no products. */
114
+ emptyCart: string;
115
+ /** Label next to the total price. */
116
+ total: string;
117
+ /** Delivery note next to the total price. */
118
+ delivery: string;
119
+ /** Country selector placeholder. */
120
+ chooseCountry: string;
121
+ /** Checkout button label. */
122
+ nextStep: string;
123
+ /** Error shown when some products are out of stock. */
124
+ unavailableProducts: string;
125
+ };
126
+
107
127
  type BitsnapCartProps = {
108
128
  projectID: string;
109
129
  locale?: string;
@@ -119,8 +139,13 @@ type BitsnapCartProps = {
119
139
  * current presentation; every token and element slot is partial.
120
140
  */
121
141
  appearance?: CheckoutAppearance;
142
+ /**
143
+ * Optional text overrides. Any key given here replaces the built-in string
144
+ * whatever the locale; omitted keys keep the `pl`/`en` defaults.
145
+ */
146
+ texts?: Partial<CheckoutTexts>;
122
147
  };
123
- declare function BitsnapCart({ projectID, locale, children, onVisibleChange, className, numberOfProductsInCartOptions, appearance, }: BitsnapCartProps): react_jsx_runtime.JSX.Element;
148
+ declare function BitsnapCart({ projectID, locale, children, onVisibleChange, className, numberOfProductsInCartOptions, appearance, texts, }: BitsnapCartProps): react_jsx_runtime.JSX.Element;
124
149
 
125
150
  type Props$2 = {
126
151
  test?: boolean;
@@ -378,6 +403,11 @@ declare const linkRequestSchema: z__default.ZodObject<{
378
403
  }, z__default.core.$strip>;
379
404
 
380
405
  declare namespace Bitsnap {
406
+ /**
407
+ * Adds a product or variant to the cart. Returns an `Err` instead of adding
408
+ * anything when the backend does not know the id
409
+ * (`item-ids-not-found`, with the unknown ids in `data`).
410
+ */
381
411
  function addProductToCart(id: string, quantity?: number, metadata?: Record<string, string | undefined>, args?: {
382
412
  name?: string;
383
413
  price?: number;
@@ -401,16 +431,6 @@ declare function injectReferenceToRequestIfNeeded(request: LinkRequest): LinkReq
401
431
 
402
432
  declare const PanelLogin: () => react_jsx_runtime.JSX.Element;
403
433
 
404
- declare const PanelPage: () => react_jsx_runtime.JSX.Element;
405
-
406
- interface Props {
407
- orderID: string;
408
- initialEmail?: string;
409
- accessToken?: string;
410
- onBack?: () => void;
411
- }
412
- declare function PublicOrderPage(props: Props): react_jsx_runtime.JSX.Element;
413
-
414
434
  interface GetThemeOutput {
415
435
  logoURL?: string;
416
436
  logoDarkURL?: string;
@@ -419,22 +439,41 @@ interface GetThemeOutput {
419
439
  brandDark?: string;
420
440
  };
421
441
  }
422
- type PanelScreen = "products" | "notifications" | "profile" | "plans" | "orders" | "order-details";
442
+ type PanelScreen = "products" | "notifications" | "profile" | "plans" | "orders" | "order-details" | "returns" | "return-details";
423
443
  type PanelSearchParamsType = {
424
444
  product?: string;
425
445
  state: PanelScreen;
426
446
  orderId?: string;
447
+ returnId?: string;
427
448
  };
428
449
  interface PanelProps {
429
450
  projectID: string;
430
451
  theme?: GetThemeOutput;
431
452
  loginURL: string;
453
+ /**
454
+ * Appearance of the Returns screen. When omitted, `buttonBackground`,
455
+ * `focusRing` and a readable `buttonForeground` are derived from
456
+ * `theme.colors.brand`.
457
+ */
458
+ returnsAppearance?: ReturnsAppearance;
459
+ /** Text overrides of the Returns screen. */
460
+ returnsTexts?: Partial<ReturnsTexts>;
432
461
  }
433
462
  interface PanelLoginProps {
434
463
  projectID: string;
435
464
  theme?: GetThemeOutput;
436
465
  }
437
466
 
467
+ declare const PanelPage: ({ returnsAppearance, returnsTexts, }?: Pick<PanelProps, "returnsAppearance" | "returnsTexts">) => react_jsx_runtime.JSX.Element;
468
+
469
+ interface Props {
470
+ orderID: string;
471
+ initialEmail?: string;
472
+ accessToken?: string;
473
+ onBack?: () => void;
474
+ }
475
+ declare function PublicOrderPage(props: Props): react_jsx_runtime.JSX.Element;
476
+
438
477
  interface PanelConfig {
439
478
  projectID?: string;
440
479
  loginURL?: string;
@@ -461,4 +500,4 @@ declare function persistReturnURL(returnURL: string | null): void;
461
500
  declare function readPersistedReturnURL(): string | null;
462
501
  declare function buildAccessTokenRedirect(returnURL: string, accessToken: string): string;
463
502
 
464
- export { Wrapper$2 as ApplePayButton, type Props$3 as ApplePayButtonProps, Bitsnap, type BitsnapCartProps, BitsnapCart as BitsnapCheckout, CHECKOUT_SLOT_NAMES, type CheckoutAppearance, type CheckoutAppearanceElements, type CheckoutAppearanceTokens, type CheckoutSlotAppearance, type CheckoutSlotName, type CheckoutTheme, type ComponentClassNames, type CustomizationTexts, type GetThemeOutput, Wrapper$1 as GooglePayButton, type Props$2 as GooglePayButtonProps, type LinkRequest, type NotificationGroup, Wrapper as NotificationsComponent, type Props$1 as NotificationsComponentProps, type NotificationsComponentPublicProps, PanelPage as Panel, type PanelConfig, PanelLogin, type PanelLoginProps, type PanelProps, PanelProvider, type PanelScreen, type PanelSearchParamsType, 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 };
503
+ export { Wrapper$2 as ApplePayButton, type Props$3 as ApplePayButtonProps, Bitsnap, type BitsnapCartProps, BitsnapCart as BitsnapCheckout, CHECKOUT_SLOT_NAMES, type CheckoutAppearance, type CheckoutAppearanceElements, type CheckoutAppearanceTokens, type CheckoutSlotAppearance, type CheckoutSlotName, type CheckoutTexts, type CheckoutTheme, type ComponentClassNames, type CustomizationTexts, type GetThemeOutput, Wrapper$1 as GooglePayButton, type Props$2 as GooglePayButtonProps, type LinkRequest, type NotificationGroup, Wrapper as NotificationsComponent, type Props$1 as NotificationsComponentProps, type NotificationsComponentPublicProps, PanelPage as Panel, type PanelConfig, PanelLogin, type PanelLoginProps, type PanelProps, PanelProvider, type PanelScreen, type PanelSearchParamsType, type PublicNotificationGroup, PublicOrderPage, ReturnsAppearance, ReturnsTexts, 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 };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,11 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { CSSProperties, ReactNode } from 'react';
2
+ import { S as SlotAppearance, A as AppearanceElements } from './appearance-core-Dt2grZdl.js';
3
+ export { PRODUCT_LIST_SLOT_NAMES, ProductList, ProductListAppearance, ProductListAppearanceElements, ProductListAppearanceTokens, ProductListData, ProductListItemContext, ProductListProps, ProductListSlotAppearance, ProductListSlotName, ProductListTextKey, ProductListTexts, ProductListTheme, PublicListProduct, UseProductsOptions, UseProductsResult, formatProductPrice, useProducts } from './catalog.js';
4
+ import { ReturnsAppearance, ReturnsTexts } from './returns.js';
5
+ export { BitsnapReturns, BitsnapReturnsProps, BitsnapReturnsProvider, BitsnapReturnsProviderProps, CreateReturnInput, Environment, LegacyCreateReturnInput, LegacyReturnsTexts, LegacyReturnsTheme, RETURNS_SLOT_NAMES, ReturnsAppearanceElements, ReturnsAppearanceProvider, ReturnsAppearanceTokens, ReturnsChallenge, ReturnsCodeStep, ReturnsCodeStepProps, ReturnsConfirmation, ReturnsConfirmationProps, ReturnsEmailStep, ReturnsEmailStepProps, ReturnsEnvironment, ReturnsEnvironmentInput, ReturnsMyReturnDetail, ReturnsMyReturnDetailProps, ReturnsMyReturnsList, ReturnsMyReturnsListProps, ReturnsOrderDetail, ReturnsOrderDetailProps, ReturnsOrderList, ReturnsOrderListProps, ReturnsProvider, ReturnsProviderProps, ReturnsResult, ReturnsResultProps, ReturnsSessionStatus, ReturnsSlotAppearance, ReturnsSlotName, ReturnsTextKey, ReturnsTextsInput, ReturnsTheme, SelectedReturnLine, UseCreateReturnResult, UseMyReturnResult, UseMyReturnsResult, UseReturnOrdersResult, UseReturnSessionResult, UseReturnableOrderResult, useCreateReturn, useMyReturn, useMyReturns, useReturnOrders, useReturnSession, useReturnableOrder, useReturnsAppearance, useReturnsSlot, useReturnsText } from './returns.js';
6
+ import { ReactNode } from 'react';
3
7
  import z__default from 'zod';
4
- export { BitsnapReturns, BitsnapReturnsProps, BitsnapReturnsProvider, BitsnapReturnsProviderProps, Environment, useCreateReturn, useMyReturns, useReturnOrders, useReturnSession, useReturnableOrder } from './returns.js';
5
- import '@tanstack/react-query';
8
+ import './models.js';
6
9
  import '@bufbuild/protobuf/wkt';
7
10
  import '@bufbuild/protobuf';
8
11
 
@@ -85,13 +88,8 @@ type CheckoutAppearanceTokens = {
85
88
  */
86
89
  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", "countryLabel", "countryTrigger", "countryDropdown", "countrySearch", "countryOption", "paymentButtons", "checkoutButton", "emptyState", "error", "skeleton"];
87
90
  type CheckoutSlotName = (typeof CHECKOUT_SLOT_NAMES)[number];
88
- type CheckoutSlotAppearance = {
89
- /** Merged after the built-in classes with `cn`, so Tailwind conflicts resolve. */
90
- className?: string;
91
- /** Merged after the built-in inline styles. */
92
- style?: CSSProperties;
93
- };
94
- type CheckoutAppearanceElements = Partial<Record<CheckoutSlotName, CheckoutSlotAppearance>>;
91
+ type CheckoutSlotAppearance = SlotAppearance;
92
+ type CheckoutAppearanceElements = AppearanceElements<CheckoutSlotName>;
95
93
  type CheckoutAppearance = {
96
94
  /**
97
95
  * `"dark"` keeps the current presentation, `"light"` applies the light preset.
@@ -104,6 +102,28 @@ type CheckoutAppearance = {
104
102
  elements?: CheckoutAppearanceElements;
105
103
  };
106
104
 
105
+ /**
106
+ * Every string the checkout renders. Pass a partial object through the
107
+ * `texts` prop of `BitsnapCheckout` to override any of them, whatever the
108
+ * locale.
109
+ */
110
+ type CheckoutTexts = {
111
+ /** Drawer title. */
112
+ cart: string;
113
+ /** Shown when the cart has no products. */
114
+ emptyCart: string;
115
+ /** Label next to the total price. */
116
+ total: string;
117
+ /** Delivery note next to the total price. */
118
+ delivery: string;
119
+ /** Country selector placeholder. */
120
+ chooseCountry: string;
121
+ /** Checkout button label. */
122
+ nextStep: string;
123
+ /** Error shown when some products are out of stock. */
124
+ unavailableProducts: string;
125
+ };
126
+
107
127
  type BitsnapCartProps = {
108
128
  projectID: string;
109
129
  locale?: string;
@@ -119,8 +139,13 @@ type BitsnapCartProps = {
119
139
  * current presentation; every token and element slot is partial.
120
140
  */
121
141
  appearance?: CheckoutAppearance;
142
+ /**
143
+ * Optional text overrides. Any key given here replaces the built-in string
144
+ * whatever the locale; omitted keys keep the `pl`/`en` defaults.
145
+ */
146
+ texts?: Partial<CheckoutTexts>;
122
147
  };
123
- declare function BitsnapCart({ projectID, locale, children, onVisibleChange, className, numberOfProductsInCartOptions, appearance, }: BitsnapCartProps): react_jsx_runtime.JSX.Element;
148
+ declare function BitsnapCart({ projectID, locale, children, onVisibleChange, className, numberOfProductsInCartOptions, appearance, texts, }: BitsnapCartProps): react_jsx_runtime.JSX.Element;
124
149
 
125
150
  type Props$2 = {
126
151
  test?: boolean;
@@ -378,6 +403,11 @@ declare const linkRequestSchema: z__default.ZodObject<{
378
403
  }, z__default.core.$strip>;
379
404
 
380
405
  declare namespace Bitsnap {
406
+ /**
407
+ * Adds a product or variant to the cart. Returns an `Err` instead of adding
408
+ * anything when the backend does not know the id
409
+ * (`item-ids-not-found`, with the unknown ids in `data`).
410
+ */
381
411
  function addProductToCart(id: string, quantity?: number, metadata?: Record<string, string | undefined>, args?: {
382
412
  name?: string;
383
413
  price?: number;
@@ -401,16 +431,6 @@ declare function injectReferenceToRequestIfNeeded(request: LinkRequest): LinkReq
401
431
 
402
432
  declare const PanelLogin: () => react_jsx_runtime.JSX.Element;
403
433
 
404
- declare const PanelPage: () => react_jsx_runtime.JSX.Element;
405
-
406
- interface Props {
407
- orderID: string;
408
- initialEmail?: string;
409
- accessToken?: string;
410
- onBack?: () => void;
411
- }
412
- declare function PublicOrderPage(props: Props): react_jsx_runtime.JSX.Element;
413
-
414
434
  interface GetThemeOutput {
415
435
  logoURL?: string;
416
436
  logoDarkURL?: string;
@@ -419,22 +439,41 @@ interface GetThemeOutput {
419
439
  brandDark?: string;
420
440
  };
421
441
  }
422
- type PanelScreen = "products" | "notifications" | "profile" | "plans" | "orders" | "order-details";
442
+ type PanelScreen = "products" | "notifications" | "profile" | "plans" | "orders" | "order-details" | "returns" | "return-details";
423
443
  type PanelSearchParamsType = {
424
444
  product?: string;
425
445
  state: PanelScreen;
426
446
  orderId?: string;
447
+ returnId?: string;
427
448
  };
428
449
  interface PanelProps {
429
450
  projectID: string;
430
451
  theme?: GetThemeOutput;
431
452
  loginURL: string;
453
+ /**
454
+ * Appearance of the Returns screen. When omitted, `buttonBackground`,
455
+ * `focusRing` and a readable `buttonForeground` are derived from
456
+ * `theme.colors.brand`.
457
+ */
458
+ returnsAppearance?: ReturnsAppearance;
459
+ /** Text overrides of the Returns screen. */
460
+ returnsTexts?: Partial<ReturnsTexts>;
432
461
  }
433
462
  interface PanelLoginProps {
434
463
  projectID: string;
435
464
  theme?: GetThemeOutput;
436
465
  }
437
466
 
467
+ declare const PanelPage: ({ returnsAppearance, returnsTexts, }?: Pick<PanelProps, "returnsAppearance" | "returnsTexts">) => react_jsx_runtime.JSX.Element;
468
+
469
+ interface Props {
470
+ orderID: string;
471
+ initialEmail?: string;
472
+ accessToken?: string;
473
+ onBack?: () => void;
474
+ }
475
+ declare function PublicOrderPage(props: Props): react_jsx_runtime.JSX.Element;
476
+
438
477
  interface PanelConfig {
439
478
  projectID?: string;
440
479
  loginURL?: string;
@@ -461,4 +500,4 @@ declare function persistReturnURL(returnURL: string | null): void;
461
500
  declare function readPersistedReturnURL(): string | null;
462
501
  declare function buildAccessTokenRedirect(returnURL: string, accessToken: string): string;
463
502
 
464
- export { Wrapper$2 as ApplePayButton, type Props$3 as ApplePayButtonProps, Bitsnap, type BitsnapCartProps, BitsnapCart as BitsnapCheckout, CHECKOUT_SLOT_NAMES, type CheckoutAppearance, type CheckoutAppearanceElements, type CheckoutAppearanceTokens, type CheckoutSlotAppearance, type CheckoutSlotName, type CheckoutTheme, type ComponentClassNames, type CustomizationTexts, type GetThemeOutput, Wrapper$1 as GooglePayButton, type Props$2 as GooglePayButtonProps, type LinkRequest, type NotificationGroup, Wrapper as NotificationsComponent, type Props$1 as NotificationsComponentProps, type NotificationsComponentPublicProps, PanelPage as Panel, type PanelConfig, PanelLogin, type PanelLoginProps, type PanelProps, PanelProvider, type PanelScreen, type PanelSearchParamsType, 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 };
503
+ export { Wrapper$2 as ApplePayButton, type Props$3 as ApplePayButtonProps, Bitsnap, type BitsnapCartProps, BitsnapCart as BitsnapCheckout, CHECKOUT_SLOT_NAMES, type CheckoutAppearance, type CheckoutAppearanceElements, type CheckoutAppearanceTokens, type CheckoutSlotAppearance, type CheckoutSlotName, type CheckoutTexts, type CheckoutTheme, type ComponentClassNames, type CustomizationTexts, type GetThemeOutput, Wrapper$1 as GooglePayButton, type Props$2 as GooglePayButtonProps, type LinkRequest, type NotificationGroup, Wrapper as NotificationsComponent, type Props$1 as NotificationsComponentProps, type NotificationsComponentPublicProps, PanelPage as Panel, type PanelConfig, PanelLogin, type PanelLoginProps, type PanelProps, PanelProvider, type PanelScreen, type PanelSearchParamsType, type PublicNotificationGroup, PublicOrderPage, ReturnsAppearance, ReturnsTexts, 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 };