bitsnap-react 1.16.0 → 1.18.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 (125) hide show
  1. package/AGENTS.md +5 -0
  2. package/README.md +87 -0
  3. package/dist/CartProvider-ECQQH3PS.css +2 -0
  4. package/dist/CartProvider-ECQQH3PS.css.map +1 -0
  5. package/dist/CartProvider-OEI526IN.js +2 -0
  6. package/dist/{CartProvider-VGZMDVFJ.js.map → CartProvider-OEI526IN.js.map} +1 -1
  7. package/dist/CartProvider-RYAA3JDA.mjs +2 -0
  8. package/dist/{PanelModelFiles-NYCOFPLY.js → PanelModelFiles-7HPXWONN.js} +2 -2
  9. package/dist/{PanelModelFiles-NYCOFPLY.js.map → PanelModelFiles-7HPXWONN.js.map} +1 -1
  10. package/dist/PanelModelFiles-JZFSF7BF.mjs +2 -0
  11. package/dist/PanelModelFiles-JZFSF7BF.mjs.map +1 -0
  12. package/dist/analytics.d.mts +2 -2
  13. package/dist/analytics.d.ts +2 -2
  14. package/dist/analytics.js +1 -1
  15. package/dist/analytics.mjs +1 -1
  16. package/dist/catalog.css +1 -1
  17. package/dist/catalog.css.map +1 -1
  18. package/dist/catalog.d.mts +3 -1
  19. package/dist/catalog.d.ts +3 -1
  20. package/dist/catalog.js +1 -1
  21. package/dist/catalog.mjs +1 -1
  22. package/dist/{chunk-GXUNRJ5S.js → chunk-4HGZZJEL.js} +2 -2
  23. package/dist/{chunk-GXUNRJ5S.js.map → chunk-4HGZZJEL.js.map} +1 -1
  24. package/dist/chunk-4OVOKGGS.mjs +2 -0
  25. package/dist/chunk-4OVOKGGS.mjs.map +1 -0
  26. package/dist/chunk-5X7TP3TQ.mjs +2 -0
  27. package/dist/{chunk-SULHGFYN.mjs.map → chunk-5X7TP3TQ.mjs.map} +1 -1
  28. package/dist/{chunk-QQQ2JSPQ.mjs → chunk-CF45RDMD.mjs} +2 -2
  29. package/dist/{chunk-QQQ2JSPQ.mjs.map → chunk-CF45RDMD.mjs.map} +1 -1
  30. package/dist/{chunk-GQJDFLSL.js → chunk-DP2NOHCI.js} +2 -2
  31. package/dist/{chunk-GQJDFLSL.js.map → chunk-DP2NOHCI.js.map} +1 -1
  32. package/dist/chunk-EVIDNS22.mjs +2 -0
  33. package/dist/chunk-EVIDNS22.mjs.map +1 -0
  34. package/dist/chunk-G4V2KWTV.js +2 -0
  35. package/dist/chunk-G4V2KWTV.js.map +1 -0
  36. package/dist/{chunk-SXKJ26OA.mjs → chunk-GEBRXFT3.mjs} +2 -2
  37. package/dist/chunk-GWF3MRUP.js +2 -0
  38. package/dist/chunk-GWF3MRUP.js.map +1 -0
  39. package/dist/chunk-JA62KNAQ.js +2 -0
  40. package/dist/chunk-JA62KNAQ.js.map +1 -0
  41. package/dist/chunk-JHJ3ZZF4.mjs +2 -0
  42. package/dist/chunk-JHJ3ZZF4.mjs.map +1 -0
  43. package/dist/{chunk-WKE6ECID.mjs → chunk-UPAOIY4R.mjs} +2 -2
  44. package/dist/chunk-V5ECGBFW.js +5 -0
  45. package/dist/chunk-V5ECGBFW.js.map +1 -0
  46. package/dist/{chunk-SRQOFCMO.js → chunk-VNV5BD4X.js} +2 -2
  47. package/dist/{chunk-SRQOFCMO.js.map → chunk-VNV5BD4X.js.map} +1 -1
  48. package/dist/chunk-WJO5GSY3.mjs +5 -0
  49. package/dist/chunk-WJO5GSY3.mjs.map +1 -0
  50. package/dist/chunk-ZATPBYOA.js +2 -0
  51. package/dist/chunk-ZATPBYOA.js.map +1 -0
  52. package/dist/chunk-ZHTMK5TA.mjs +2 -0
  53. package/dist/chunk-ZHTMK5TA.mjs.map +1 -0
  54. package/dist/course.d.mts +13 -3
  55. package/dist/course.d.ts +13 -3
  56. package/dist/course.js +1 -1
  57. package/dist/course.js.map +1 -1
  58. package/dist/course.mjs +1 -1
  59. package/dist/course.mjs.map +1 -1
  60. package/dist/embed/analytics.js +1 -1
  61. package/dist/index.css +1 -1
  62. package/dist/index.css.map +1 -1
  63. package/dist/index.d.mts +41 -12
  64. package/dist/index.d.ts +41 -12
  65. package/dist/index.js +1 -1
  66. package/dist/index.js.map +1 -1
  67. package/dist/index.mjs +1 -1
  68. package/dist/index.mjs.map +1 -1
  69. package/dist/{instrument-BE8ktMUv.d.mts → instrument-eXaC8hc2.d.mts} +1 -1
  70. package/dist/{instrument-BE8ktMUv.d.ts → instrument-eXaC8hc2.d.ts} +1 -1
  71. package/dist/methods-AULQDKVS.mjs +2 -0
  72. package/dist/methods-OJEZREBK.css +2 -0
  73. package/dist/methods-OJEZREBK.css.map +1 -0
  74. package/dist/methods-PMH5VQ25.js +2 -0
  75. package/dist/{methods-WRONKK3D.js.map → methods-PMH5VQ25.js.map} +1 -1
  76. package/dist/returns.d.mts +19 -10
  77. package/dist/returns.d.ts +19 -10
  78. package/dist/returns.js +1 -1
  79. package/dist/returns.js.map +1 -1
  80. package/dist/returns.mjs +1 -1
  81. package/dist/{texts-tQtAGJCT.d.mts → texts-LGhuQfA9.d.mts} +28 -3
  82. package/dist/{texts-CIEFbJTN.d.ts → texts-m6XQGZ6w.d.ts} +28 -3
  83. package/dist/types-ClFCVzk_.d.ts +121 -0
  84. package/dist/types-D6LsoycW.d.mts +121 -0
  85. package/dist/viewer3d.css +1 -1
  86. package/dist/viewer3d.css.map +1 -1
  87. package/dist/viewer3d.mjs +1 -1
  88. package/package.json +2 -2
  89. package/dist/CartProvider-PDEV6GCV.css +0 -2
  90. package/dist/CartProvider-PDEV6GCV.css.map +0 -1
  91. package/dist/CartProvider-VGZMDVFJ.js +0 -2
  92. package/dist/CartProvider-ZY5OLTAF.mjs +0 -2
  93. package/dist/PanelModelFiles-RV7OHUUZ.mjs +0 -2
  94. package/dist/PanelModelFiles-RV7OHUUZ.mjs.map +0 -1
  95. package/dist/chunk-5AYH23UJ.mjs +0 -4
  96. package/dist/chunk-5AYH23UJ.mjs.map +0 -1
  97. package/dist/chunk-AGYS7Z6G.mjs +0 -2
  98. package/dist/chunk-AGYS7Z6G.mjs.map +0 -1
  99. package/dist/chunk-DPKWYLN7.mjs +0 -2
  100. package/dist/chunk-DPKWYLN7.mjs.map +0 -1
  101. package/dist/chunk-I3QXJJ7U.mjs +0 -2
  102. package/dist/chunk-I3QXJJ7U.mjs.map +0 -1
  103. package/dist/chunk-LL7ASBGY.js +0 -2
  104. package/dist/chunk-LL7ASBGY.js.map +0 -1
  105. package/dist/chunk-OZHXRKMX.js +0 -2
  106. package/dist/chunk-OZHXRKMX.js.map +0 -1
  107. package/dist/chunk-QERYM7RC.js +0 -2
  108. package/dist/chunk-QERYM7RC.js.map +0 -1
  109. package/dist/chunk-QXGK337V.mjs +0 -2
  110. package/dist/chunk-QXGK337V.mjs.map +0 -1
  111. package/dist/chunk-SULHGFYN.mjs +0 -2
  112. package/dist/chunk-WPOXLITY.js +0 -2
  113. package/dist/chunk-WPOXLITY.js.map +0 -1
  114. package/dist/chunk-Y5KWVTXT.js +0 -4
  115. package/dist/chunk-Y5KWVTXT.js.map +0 -1
  116. package/dist/methods-NJEP64AG.mjs +0 -2
  117. package/dist/methods-QAZED7TJ.css +0 -2
  118. package/dist/methods-QAZED7TJ.css.map +0 -1
  119. package/dist/methods-WRONKK3D.js +0 -2
  120. package/dist/types-DP1vxo5E.d.mts +0 -53
  121. package/dist/types-u8VwmC3j.d.ts +0 -53
  122. /package/dist/{CartProvider-ZY5OLTAF.mjs.map → CartProvider-RYAA3JDA.mjs.map} +0 -0
  123. /package/dist/{chunk-SXKJ26OA.mjs.map → chunk-GEBRXFT3.mjs.map} +0 -0
  124. /package/dist/{chunk-WKE6ECID.mjs.map → chunk-UPAOIY4R.mjs.map} +0 -0
  125. /package/dist/{methods-NJEP64AG.mjs.map → methods-AULQDKVS.mjs.map} +0 -0
package/dist/index.d.mts CHANGED
@@ -1,13 +1,13 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { A as AnalyticsOption, l as Instrument } from './instrument-BE8ktMUv.mjs';
2
+ import { k as AnalyticsOption, l as Instrument } from './instrument-eXaC8hc2.mjs';
3
3
  import { S as SlotAppearance, A as AppearanceElements } from './appearance-core-Dt2grZdl.mjs';
4
4
  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';
5
5
  export { BitsnapReturns, BitsnapReturnsProps, BitsnapReturnsProvider, BitsnapReturnsProviderProps, CreateReturnInput, Environment, LegacyCreateReturnInput, LegacyReturnsTexts, LegacyReturnsTheme, ReturnsAppearanceProvider, ReturnsChallenge, ReturnsCodeStep, ReturnsCodeStepProps, ReturnsConfirmation, ReturnsConfirmationProps, ReturnsEmailStep, ReturnsEmailStepProps, ReturnsEnvironment, ReturnsEnvironmentInput, ReturnsMyReturnDetail, ReturnsMyReturnDetailProps, ReturnsMyReturnsList, ReturnsMyReturnsListProps, ReturnsOrderDetail, ReturnsOrderDetailProps, ReturnsOrderList, ReturnsOrderListProps, ReturnsProvider, ReturnsProviderProps, ReturnsResult, ReturnsResultProps, ReturnsSessionStatus, ReturnsTextsInput, SelectedReturnLine, UseCreateReturnResult, UseMyReturnResult, UseMyReturnsResult, UseReturnOrdersResult, UseReturnSessionResult, UseReturnableOrderResult, useCreateReturn, useMyReturn, useMyReturns, useReturnOrders, useReturnSession, useReturnableOrder, useReturnsAppearance, useReturnsSlot, useReturnsText } from './returns.mjs';
6
- export { b as RETURNS_SLOT_NAMES, R as ReturnsAppearance, c as ReturnsAppearanceElements, d as ReturnsAppearanceTokens, e as ReturnsSlotAppearance, f as ReturnsSlotName, h as ReturnsTextKey, a as ReturnsTexts, g as ReturnsTheme } from './texts-tQtAGJCT.mjs';
6
+ export { b as RETURNS_SLOT_NAMES, R as ReturnsAppearance, c as ReturnsAppearanceElements, d as ReturnsAppearanceTokens, e as ReturnsSlotAppearance, f as ReturnsSlotName, h as ReturnsTextKey, a as ReturnsTexts, g as ReturnsTheme } from './texts-LGhuQfA9.mjs';
7
7
  import { ReactNode } from 'react';
8
8
  import z__default from 'zod';
9
- import { P as PanelProps, G as GetThemeOutput } from './types-DP1vxo5E.mjs';
10
- export { a as PanelLoginProps, b as PanelScreen, c as PanelSearchParamsType } from './types-DP1vxo5E.mjs';
9
+ import { P as PanelLoginProps, a as PanelProps, G as GetThemeOutput } from './types-D6LsoycW.mjs';
10
+ export { b as PanelScreen, c as PanelSearchParamsType } from './types-D6LsoycW.mjs';
11
11
  import './models.mjs';
12
12
  import '@bufbuild/protobuf/wkt';
13
13
  import '@bufbuild/protobuf';
@@ -319,7 +319,34 @@ interface CustomizationTexts {
319
319
  loginVerifyCodeError?: string;
320
320
  loginResendEmailError?: string;
321
321
  loginTitle?: string;
322
+ /** Submit button of the code step. */
323
+ loginVerifyButton?: string;
324
+ /** Placeholder `{seconds}`: the resend button while the cooldown runs. */
325
+ loginResendInText?: string;
326
+ loginResentMessage?: string;
327
+ loginExpiredError?: string;
328
+ loginTooManyAttemptsError?: string;
329
+ /** Placeholder `{time}`, for example "45 s" or "2 min". */
330
+ loginRateLimitedError?: string;
331
+ loginNetworkError?: string;
332
+ loginSpamHint?: string;
333
+ loginValidityHint?: string;
322
334
  loginDescription?: string;
335
+ /** Code button while the code is checked. */
336
+ loginVerifyingButton?: string;
337
+ /** Spoken when the e-mail step is shown again. */
338
+ loginStepEmailHint?: string;
339
+ /** Spoken when the code step is shown. */
340
+ loginStepCodeHint?: string;
341
+ /** Placeholder `{time}`: a code was sent a moment ago, a new one comes later. */
342
+ loginAlreadySentMessage?: string;
343
+ loginEmailNotFoundError?: string;
344
+ loginDeliveryUnavailableError?: string;
345
+ /** Resend button once the code expired or ran out of attempts. */
346
+ loginResendNewCodeButton?: string;
347
+ /** Link in the "I already have a code" view that goes back to sending one. */
348
+ loginNoCodeButton?: string;
349
+ loginCodeIncompleteError?: string;
323
350
  }
324
351
  interface ComponentClassNames {
325
352
  container?: string;
@@ -339,9 +366,6 @@ interface ComponentClassNames {
339
366
  manageDataSection?: string;
340
367
  manageDataTitle?: string;
341
368
  }
342
- /**
343
- * Props for the NotificationsComponentPublic component.
344
- */
345
369
  interface NotificationsComponentPublicProps {
346
370
  /**
347
371
  * Unique identifier for the project (if not provided, productID will be used via CartProvider).
@@ -367,6 +391,11 @@ interface NotificationsComponentPublicProps {
367
391
  * URL or path to the project's logo (dark mode).
368
392
  */
369
393
  projectLogoDark?: string;
394
+ /**
395
+ * The login dialog shows the project logo (`projectLogo`, else the one of
396
+ * the shop settings, else Bitsnap's). `false` hides it.
397
+ */
398
+ showLoginLogo?: boolean;
370
399
  /**
371
400
  * Array of notification groups that the user can subscribe to. If you will provide group, we will not show all possible public groups from dashboard.
372
401
  */
@@ -409,7 +438,7 @@ interface NotificationsComponentPublicProps {
409
438
  }
410
439
 
411
440
  type Props$1 = NotificationsComponentPublicProps;
412
- declare function Wrapper({ slug, userID, productID, projectID, analytics, projectName, projectLogo, projectLogoDark, groups, isManaging, texts, showQRCode, showPhoneInput, hiddenGroupIds, className, }: Props$1): react_jsx_runtime.JSX.Element;
441
+ declare function Wrapper({ slug, userID, productID, projectID, analytics, projectName, projectLogo, projectLogoDark, showLoginLogo, groups, isManaging, texts, showQRCode, showPhoneInput, hiddenGroupIds, className, }: Props$1): react_jsx_runtime.JSX.Element;
413
442
 
414
443
  type ErrTypes = "internal" | "badInput" | "notFound";
415
444
  type Err = {
@@ -616,9 +645,9 @@ type BuyErrorData = {
616
645
  itemIds?: string[];
617
646
  };
618
647
 
619
- declare const PanelLogin: ({ analytics, }?: {
620
- analytics?: AnalyticsOption;
621
- }) => react_jsx_runtime.JSX.Element;
648
+ /** Props of {@link PanelLogin}; `PanelLoginProps` of the package is a superset. */
649
+ type PanelLoginComponentProps = Pick<PanelLoginProps, "analytics" | "texts" | "locale" | "showLogo" | "logoUrl" | "logoDarkUrl">;
650
+ declare const PanelLogin: (props?: PanelLoginComponentProps) => react_jsx_runtime.JSX.Element;
622
651
 
623
652
  declare const PanelPage: ({ returnsAppearance, returnsTexts, analytics, }?: Pick<PanelProps, "returnsAppearance" | "returnsTexts" | "analytics">) => react_jsx_runtime.JSX.Element;
624
653
 
@@ -668,4 +697,4 @@ declare function persistReturnURL(returnURL: string | null): void;
668
697
  declare function readPersistedReturnURL(): string | null;
669
698
  declare function buildAccessTokenRedirect(returnURL: string, accessToken: string): string;
670
699
 
671
- 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 };
700
+ 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, PanelLoginProps, 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
@@ -1,13 +1,13 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { A as AnalyticsOption, l as Instrument } from './instrument-BE8ktMUv.js';
2
+ import { k as AnalyticsOption, l as Instrument } from './instrument-eXaC8hc2.js';
3
3
  import { S as SlotAppearance, A as AppearanceElements } from './appearance-core-Dt2grZdl.js';
4
4
  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';
5
5
  export { BitsnapReturns, BitsnapReturnsProps, BitsnapReturnsProvider, BitsnapReturnsProviderProps, CreateReturnInput, Environment, LegacyCreateReturnInput, LegacyReturnsTexts, LegacyReturnsTheme, ReturnsAppearanceProvider, ReturnsChallenge, ReturnsCodeStep, ReturnsCodeStepProps, ReturnsConfirmation, ReturnsConfirmationProps, ReturnsEmailStep, ReturnsEmailStepProps, ReturnsEnvironment, ReturnsEnvironmentInput, ReturnsMyReturnDetail, ReturnsMyReturnDetailProps, ReturnsMyReturnsList, ReturnsMyReturnsListProps, ReturnsOrderDetail, ReturnsOrderDetailProps, ReturnsOrderList, ReturnsOrderListProps, ReturnsProvider, ReturnsProviderProps, ReturnsResult, ReturnsResultProps, ReturnsSessionStatus, ReturnsTextsInput, SelectedReturnLine, UseCreateReturnResult, UseMyReturnResult, UseMyReturnsResult, UseReturnOrdersResult, UseReturnSessionResult, UseReturnableOrderResult, useCreateReturn, useMyReturn, useMyReturns, useReturnOrders, useReturnSession, useReturnableOrder, useReturnsAppearance, useReturnsSlot, useReturnsText } from './returns.js';
6
- export { b as RETURNS_SLOT_NAMES, R as ReturnsAppearance, c as ReturnsAppearanceElements, d as ReturnsAppearanceTokens, e as ReturnsSlotAppearance, f as ReturnsSlotName, h as ReturnsTextKey, a as ReturnsTexts, g as ReturnsTheme } from './texts-CIEFbJTN.js';
6
+ export { b as RETURNS_SLOT_NAMES, R as ReturnsAppearance, c as ReturnsAppearanceElements, d as ReturnsAppearanceTokens, e as ReturnsSlotAppearance, f as ReturnsSlotName, h as ReturnsTextKey, a as ReturnsTexts, g as ReturnsTheme } from './texts-m6XQGZ6w.js';
7
7
  import { ReactNode } from 'react';
8
8
  import z__default from 'zod';
9
- import { P as PanelProps, G as GetThemeOutput } from './types-u8VwmC3j.js';
10
- export { a as PanelLoginProps, b as PanelScreen, c as PanelSearchParamsType } from './types-u8VwmC3j.js';
9
+ import { P as PanelLoginProps, a as PanelProps, G as GetThemeOutput } from './types-ClFCVzk_.js';
10
+ export { b as PanelScreen, c as PanelSearchParamsType } from './types-ClFCVzk_.js';
11
11
  import './models.js';
12
12
  import '@bufbuild/protobuf/wkt';
13
13
  import '@bufbuild/protobuf';
@@ -319,7 +319,34 @@ interface CustomizationTexts {
319
319
  loginVerifyCodeError?: string;
320
320
  loginResendEmailError?: string;
321
321
  loginTitle?: string;
322
+ /** Submit button of the code step. */
323
+ loginVerifyButton?: string;
324
+ /** Placeholder `{seconds}`: the resend button while the cooldown runs. */
325
+ loginResendInText?: string;
326
+ loginResentMessage?: string;
327
+ loginExpiredError?: string;
328
+ loginTooManyAttemptsError?: string;
329
+ /** Placeholder `{time}`, for example "45 s" or "2 min". */
330
+ loginRateLimitedError?: string;
331
+ loginNetworkError?: string;
332
+ loginSpamHint?: string;
333
+ loginValidityHint?: string;
322
334
  loginDescription?: string;
335
+ /** Code button while the code is checked. */
336
+ loginVerifyingButton?: string;
337
+ /** Spoken when the e-mail step is shown again. */
338
+ loginStepEmailHint?: string;
339
+ /** Spoken when the code step is shown. */
340
+ loginStepCodeHint?: string;
341
+ /** Placeholder `{time}`: a code was sent a moment ago, a new one comes later. */
342
+ loginAlreadySentMessage?: string;
343
+ loginEmailNotFoundError?: string;
344
+ loginDeliveryUnavailableError?: string;
345
+ /** Resend button once the code expired or ran out of attempts. */
346
+ loginResendNewCodeButton?: string;
347
+ /** Link in the "I already have a code" view that goes back to sending one. */
348
+ loginNoCodeButton?: string;
349
+ loginCodeIncompleteError?: string;
323
350
  }
324
351
  interface ComponentClassNames {
325
352
  container?: string;
@@ -339,9 +366,6 @@ interface ComponentClassNames {
339
366
  manageDataSection?: string;
340
367
  manageDataTitle?: string;
341
368
  }
342
- /**
343
- * Props for the NotificationsComponentPublic component.
344
- */
345
369
  interface NotificationsComponentPublicProps {
346
370
  /**
347
371
  * Unique identifier for the project (if not provided, productID will be used via CartProvider).
@@ -367,6 +391,11 @@ interface NotificationsComponentPublicProps {
367
391
  * URL or path to the project's logo (dark mode).
368
392
  */
369
393
  projectLogoDark?: string;
394
+ /**
395
+ * The login dialog shows the project logo (`projectLogo`, else the one of
396
+ * the shop settings, else Bitsnap's). `false` hides it.
397
+ */
398
+ showLoginLogo?: boolean;
370
399
  /**
371
400
  * Array of notification groups that the user can subscribe to. If you will provide group, we will not show all possible public groups from dashboard.
372
401
  */
@@ -409,7 +438,7 @@ interface NotificationsComponentPublicProps {
409
438
  }
410
439
 
411
440
  type Props$1 = NotificationsComponentPublicProps;
412
- declare function Wrapper({ slug, userID, productID, projectID, analytics, projectName, projectLogo, projectLogoDark, groups, isManaging, texts, showQRCode, showPhoneInput, hiddenGroupIds, className, }: Props$1): react_jsx_runtime.JSX.Element;
441
+ declare function Wrapper({ slug, userID, productID, projectID, analytics, projectName, projectLogo, projectLogoDark, showLoginLogo, groups, isManaging, texts, showQRCode, showPhoneInput, hiddenGroupIds, className, }: Props$1): react_jsx_runtime.JSX.Element;
413
442
 
414
443
  type ErrTypes = "internal" | "badInput" | "notFound";
415
444
  type Err = {
@@ -616,9 +645,9 @@ type BuyErrorData = {
616
645
  itemIds?: string[];
617
646
  };
618
647
 
619
- declare const PanelLogin: ({ analytics, }?: {
620
- analytics?: AnalyticsOption;
621
- }) => react_jsx_runtime.JSX.Element;
648
+ /** Props of {@link PanelLogin}; `PanelLoginProps` of the package is a superset. */
649
+ type PanelLoginComponentProps = Pick<PanelLoginProps, "analytics" | "texts" | "locale" | "showLogo" | "logoUrl" | "logoDarkUrl">;
650
+ declare const PanelLogin: (props?: PanelLoginComponentProps) => react_jsx_runtime.JSX.Element;
622
651
 
623
652
  declare const PanelPage: ({ returnsAppearance, returnsTexts, analytics, }?: Pick<PanelProps, "returnsAppearance" | "returnsTexts" | "analytics">) => react_jsx_runtime.JSX.Element;
624
653
 
@@ -668,4 +697,4 @@ declare function persistReturnURL(returnURL: string | null): void;
668
697
  declare function readPersistedReturnURL(): string | null;
669
698
  declare function buildAccessTokenRedirect(returnURL: string, accessToken: string): string;
670
699
 
671
- 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 };
700
+ 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, PanelLoginProps, 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 };