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.
- package/AGENTS.md +5 -0
- package/README.md +87 -0
- package/dist/CartProvider-ECQQH3PS.css +2 -0
- package/dist/CartProvider-ECQQH3PS.css.map +1 -0
- package/dist/CartProvider-OEI526IN.js +2 -0
- package/dist/{CartProvider-VGZMDVFJ.js.map → CartProvider-OEI526IN.js.map} +1 -1
- package/dist/CartProvider-RYAA3JDA.mjs +2 -0
- package/dist/{PanelModelFiles-NYCOFPLY.js → PanelModelFiles-7HPXWONN.js} +2 -2
- package/dist/{PanelModelFiles-NYCOFPLY.js.map → PanelModelFiles-7HPXWONN.js.map} +1 -1
- package/dist/PanelModelFiles-JZFSF7BF.mjs +2 -0
- package/dist/PanelModelFiles-JZFSF7BF.mjs.map +1 -0
- package/dist/analytics.d.mts +2 -2
- package/dist/analytics.d.ts +2 -2
- package/dist/analytics.js +1 -1
- package/dist/analytics.mjs +1 -1
- package/dist/catalog.css +1 -1
- package/dist/catalog.css.map +1 -1
- package/dist/catalog.d.mts +3 -1
- package/dist/catalog.d.ts +3 -1
- package/dist/catalog.js +1 -1
- package/dist/catalog.mjs +1 -1
- package/dist/{chunk-GXUNRJ5S.js → chunk-4HGZZJEL.js} +2 -2
- package/dist/{chunk-GXUNRJ5S.js.map → chunk-4HGZZJEL.js.map} +1 -1
- package/dist/chunk-4OVOKGGS.mjs +2 -0
- package/dist/chunk-4OVOKGGS.mjs.map +1 -0
- package/dist/chunk-5X7TP3TQ.mjs +2 -0
- package/dist/{chunk-SULHGFYN.mjs.map → chunk-5X7TP3TQ.mjs.map} +1 -1
- package/dist/{chunk-QQQ2JSPQ.mjs → chunk-CF45RDMD.mjs} +2 -2
- package/dist/{chunk-QQQ2JSPQ.mjs.map → chunk-CF45RDMD.mjs.map} +1 -1
- package/dist/{chunk-GQJDFLSL.js → chunk-DP2NOHCI.js} +2 -2
- package/dist/{chunk-GQJDFLSL.js.map → chunk-DP2NOHCI.js.map} +1 -1
- package/dist/chunk-EVIDNS22.mjs +2 -0
- package/dist/chunk-EVIDNS22.mjs.map +1 -0
- package/dist/chunk-G4V2KWTV.js +2 -0
- package/dist/chunk-G4V2KWTV.js.map +1 -0
- package/dist/{chunk-SXKJ26OA.mjs → chunk-GEBRXFT3.mjs} +2 -2
- package/dist/chunk-GWF3MRUP.js +2 -0
- package/dist/chunk-GWF3MRUP.js.map +1 -0
- package/dist/chunk-JA62KNAQ.js +2 -0
- package/dist/chunk-JA62KNAQ.js.map +1 -0
- package/dist/chunk-JHJ3ZZF4.mjs +2 -0
- package/dist/chunk-JHJ3ZZF4.mjs.map +1 -0
- package/dist/{chunk-WKE6ECID.mjs → chunk-UPAOIY4R.mjs} +2 -2
- package/dist/chunk-V5ECGBFW.js +5 -0
- package/dist/chunk-V5ECGBFW.js.map +1 -0
- package/dist/{chunk-SRQOFCMO.js → chunk-VNV5BD4X.js} +2 -2
- package/dist/{chunk-SRQOFCMO.js.map → chunk-VNV5BD4X.js.map} +1 -1
- package/dist/chunk-WJO5GSY3.mjs +5 -0
- package/dist/chunk-WJO5GSY3.mjs.map +1 -0
- package/dist/chunk-ZATPBYOA.js +2 -0
- package/dist/chunk-ZATPBYOA.js.map +1 -0
- package/dist/chunk-ZHTMK5TA.mjs +2 -0
- package/dist/chunk-ZHTMK5TA.mjs.map +1 -0
- package/dist/course.d.mts +13 -3
- package/dist/course.d.ts +13 -3
- package/dist/course.js +1 -1
- package/dist/course.js.map +1 -1
- package/dist/course.mjs +1 -1
- package/dist/course.mjs.map +1 -1
- package/dist/embed/analytics.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +41 -12
- package/dist/index.d.ts +41 -12
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{instrument-BE8ktMUv.d.mts → instrument-eXaC8hc2.d.mts} +1 -1
- package/dist/{instrument-BE8ktMUv.d.ts → instrument-eXaC8hc2.d.ts} +1 -1
- package/dist/methods-AULQDKVS.mjs +2 -0
- package/dist/methods-OJEZREBK.css +2 -0
- package/dist/methods-OJEZREBK.css.map +1 -0
- package/dist/methods-PMH5VQ25.js +2 -0
- package/dist/{methods-WRONKK3D.js.map → methods-PMH5VQ25.js.map} +1 -1
- package/dist/returns.d.mts +19 -10
- package/dist/returns.d.ts +19 -10
- package/dist/returns.js +1 -1
- package/dist/returns.js.map +1 -1
- package/dist/returns.mjs +1 -1
- package/dist/{texts-tQtAGJCT.d.mts → texts-LGhuQfA9.d.mts} +28 -3
- package/dist/{texts-CIEFbJTN.d.ts → texts-m6XQGZ6w.d.ts} +28 -3
- package/dist/types-ClFCVzk_.d.ts +121 -0
- package/dist/types-D6LsoycW.d.mts +121 -0
- package/dist/viewer3d.css +1 -1
- package/dist/viewer3d.css.map +1 -1
- package/dist/viewer3d.mjs +1 -1
- package/package.json +2 -2
- package/dist/CartProvider-PDEV6GCV.css +0 -2
- package/dist/CartProvider-PDEV6GCV.css.map +0 -1
- package/dist/CartProvider-VGZMDVFJ.js +0 -2
- package/dist/CartProvider-ZY5OLTAF.mjs +0 -2
- package/dist/PanelModelFiles-RV7OHUUZ.mjs +0 -2
- package/dist/PanelModelFiles-RV7OHUUZ.mjs.map +0 -1
- package/dist/chunk-5AYH23UJ.mjs +0 -4
- package/dist/chunk-5AYH23UJ.mjs.map +0 -1
- package/dist/chunk-AGYS7Z6G.mjs +0 -2
- package/dist/chunk-AGYS7Z6G.mjs.map +0 -1
- package/dist/chunk-DPKWYLN7.mjs +0 -2
- package/dist/chunk-DPKWYLN7.mjs.map +0 -1
- package/dist/chunk-I3QXJJ7U.mjs +0 -2
- package/dist/chunk-I3QXJJ7U.mjs.map +0 -1
- package/dist/chunk-LL7ASBGY.js +0 -2
- package/dist/chunk-LL7ASBGY.js.map +0 -1
- package/dist/chunk-OZHXRKMX.js +0 -2
- package/dist/chunk-OZHXRKMX.js.map +0 -1
- package/dist/chunk-QERYM7RC.js +0 -2
- package/dist/chunk-QERYM7RC.js.map +0 -1
- package/dist/chunk-QXGK337V.mjs +0 -2
- package/dist/chunk-QXGK337V.mjs.map +0 -1
- package/dist/chunk-SULHGFYN.mjs +0 -2
- package/dist/chunk-WPOXLITY.js +0 -2
- package/dist/chunk-WPOXLITY.js.map +0 -1
- package/dist/chunk-Y5KWVTXT.js +0 -4
- package/dist/chunk-Y5KWVTXT.js.map +0 -1
- package/dist/methods-NJEP64AG.mjs +0 -2
- package/dist/methods-QAZED7TJ.css +0 -2
- package/dist/methods-QAZED7TJ.css.map +0 -1
- package/dist/methods-WRONKK3D.js +0 -2
- package/dist/types-DP1vxo5E.d.mts +0 -53
- package/dist/types-u8VwmC3j.d.ts +0 -53
- /package/dist/{CartProvider-ZY5OLTAF.mjs.map → CartProvider-RYAA3JDA.mjs.map} +0 -0
- /package/dist/{chunk-SXKJ26OA.mjs.map → chunk-GEBRXFT3.mjs.map} +0 -0
- /package/dist/{chunk-WKE6ECID.mjs.map → chunk-UPAOIY4R.mjs.map} +0 -0
- /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 {
|
|
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-
|
|
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-
|
|
10
|
-
export {
|
|
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
|
-
|
|
620
|
-
|
|
621
|
-
|
|
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 {
|
|
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-
|
|
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-
|
|
10
|
-
export {
|
|
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
|
-
|
|
620
|
-
|
|
621
|
-
|
|
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 };
|