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
|
@@ -940,4 +940,4 @@ declare function useInstrument(projectKey: string | null | undefined, analytics?
|
|
|
940
940
|
/** Score (0..100) → the contract's bucket. */
|
|
941
941
|
declare function scoreBucket(percent: number): "0-24" | "25-49" | "50-74" | "75-99" | "100";
|
|
942
942
|
|
|
943
|
-
export { type
|
|
943
|
+
export { type AppEventName as A, type BrowserEventName as B, type ClientEvent as C, DEFAULT_ENDPOINT as D, type Env as E, InstrumentProvider as I, type PageType as P, type Source as S, type Tracker as T, type TrackerOptions as a, type TrackExtra as b, createTracker as c, type Channel as d, type EventName as e, type EventProps as f, getTracker as g, type StorefrontEventName as h, initTracker as i, useInstrumentContext as j, type AnalyticsOption as k, type Instrument as l, noopInstrument as n, resetTracker as r, scoreBucket as s, useInstrument as u };
|
|
@@ -940,4 +940,4 @@ declare function useInstrument(projectKey: string | null | undefined, analytics?
|
|
|
940
940
|
/** Score (0..100) → the contract's bucket. */
|
|
941
941
|
declare function scoreBucket(percent: number): "0-24" | "25-49" | "50-74" | "75-99" | "100";
|
|
942
942
|
|
|
943
|
-
export { type
|
|
943
|
+
export { type AppEventName as A, type BrowserEventName as B, type ClientEvent as C, DEFAULT_ENDPOINT as D, type Env as E, InstrumentProvider as I, type PageType as P, type Source as S, type Tracker as T, type TrackerOptions as a, type TrackExtra as b, createTracker as c, type Channel as d, type EventName as e, type EventProps as f, getTracker as g, type StorefrontEventName as h, initTracker as i, useInstrumentContext as j, type AnalyticsOption as k, type Instrument as l, noopInstrument as n, resetTracker as r, scoreBucket as s, useInstrument as u };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{A as d,B as e,C as f,x as a,y as b,z as c}from"./chunk-WJO5GSY3.mjs";import"./chunk-4OVOKGGS.mjs";import"./chunk-KOVKUJAW.mjs";import"./chunk-5X7TP3TQ.mjs";import"./chunk-CUPG4B5W.mjs";import"./chunk-EVIDNS22.mjs";import"./chunk-5R6AGO3Z.mjs";import"./chunk-GEBRXFT3.mjs";import"./chunk-CF45RDMD.mjs";import"./chunk-VNYHJT6V.mjs";import"./chunk-MDCP5JNP.mjs";import"./chunk-U6FLIRIV.mjs";export{a as Bitsnap,d as createCheckout,c as createPaymentURL,b as getPaymentMethodChoice,e as getReferenceIfPossible,f as injectReferenceToRequestIfNeeded};
|
|
2
|
+
//# sourceMappingURL=methods-AULQDKVS.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.bitsnap-react .bitsnap-audio-player{--player-track: #d6d3d1;--player-fill: #44403c}.bitsnap-react .dark .bitsnap-audio-player{--player-track: #57534e;--player-fill: #e7e5e4}.bitsnap-react .bitsnap-audio-player button,.bitsnap-react .bitsnap-audio-player select{min-height:44px;min-width:44px}.bitsnap-react .bitsnap-audio-player select{max-width:100%;border:1px solid var(--player-track);border-radius:6px;padding:0 8px;color:inherit;background-color:transparent}.bitsnap-react .bitsnap-audio-player select option{color:#292524;background:#fafaf9}.bitsnap-react .dark .bitsnap-audio-player select option{color:#fafaf9;background:#292524}.bitsnap-react .bitsnap-audio-player input[type=range]{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:100%;min-height:44px;margin:0;padding:0;cursor:pointer;background:transparent}.bitsnap-react .bitsnap-audio-player input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:linear-gradient(to right,var(--player-fill) var(--seek-before-width),var(--player-track) var(--seek-before-width))}.bitsnap-react .bitsnap-audio-player input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;height:18px;width:18px;margin-top:-7px;border:2px solid var(--player-fill);border-radius:50%;background:var(--player-fill)}.bitsnap-react .bitsnap-audio-player input[type=range]::-moz-range-track{height:4px;border-radius:2px;background:var(--player-track)}.bitsnap-react .bitsnap-audio-player input[type=range]::-moz-range-progress{height:4px;background:var(--player-fill)}.bitsnap-react .bitsnap-audio-player input[type=range]::-moz-range-thumb{height:18px;width:18px;border:0;border-radius:50%;background:var(--player-fill)}.bitsnap-react .bitsnap-audio-player :is(input,button,select):focus-visible{outline:2px solid var(--player-fill);outline-offset:3px}
|
|
2
|
+
/*# sourceMappingURL=methods-OJEZREBK.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/panel/audio-player/audio-player.css"],"sourcesContent":[".bitsnap-react .bitsnap-audio-player {\n --player-track: #d6d3d1;\n --player-fill: #44403c;\n}\n.bitsnap-react .dark .bitsnap-audio-player {\n --player-track: #57534e;\n --player-fill: #e7e5e4;\n}\n.bitsnap-react .bitsnap-audio-player button,\n.bitsnap-react .bitsnap-audio-player select {\n min-height: 44px;\n min-width: 44px;\n}\n.bitsnap-react .bitsnap-audio-player select {\n max-width: 100%;\n border: 1px solid var(--player-track);\n border-radius: 6px;\n padding: 0 8px;\n color: inherit;\n background-color: transparent;\n}\n.bitsnap-react .bitsnap-audio-player select option {\n color: #292524;\n background: #fafaf9;\n}\n.bitsnap-react .dark .bitsnap-audio-player select option {\n color: #fafaf9;\n background: #292524;\n}\n.bitsnap-react .bitsnap-audio-player input[type=\"range\"] {\n -moz-appearance: none;\n appearance: none;\n -webkit-appearance: none;\n width: 100%;\n min-height: 44px;\n margin: 0;\n padding: 0;\n cursor: pointer;\n background: transparent;\n}\n.bitsnap-react .bitsnap-audio-player input[type=\"range\"]::-webkit-slider-runnable-track {\n height: 4px;\n border-radius: 2px;\n background: linear-gradient(\n to right,\n var(--player-fill) var(--seek-before-width),\n var(--player-track) var(--seek-before-width)\n );\n}\n.bitsnap-react .bitsnap-audio-player input[type=\"range\"]::-webkit-slider-thumb {\n appearance: none;\n -webkit-appearance: none;\n height: 18px;\n width: 18px;\n margin-top: -7px;\n border: 2px solid var(--player-fill);\n border-radius: 50%;\n background: var(--player-fill);\n}\n.bitsnap-react .bitsnap-audio-player input[type=\"range\"]::-moz-range-track {\n height: 4px;\n border-radius: 2px;\n background: var(--player-track);\n}\n.bitsnap-react .bitsnap-audio-player input[type=\"range\"]::-moz-range-progress {\n height: 4px;\n background: var(--player-fill);\n}\n.bitsnap-react .bitsnap-audio-player input[type=\"range\"]::-moz-range-thumb {\n height: 18px;\n width: 18px;\n border: 0;\n border-radius: 50%;\n background: var(--player-fill);\n}\n.bitsnap-react .bitsnap-audio-player :is(input, button, select):focus-visible {\n outline: 2px solid var(--player-fill);\n outline-offset: 3px;\n}\n"],"mappings":"AAAA,CAAC,cAAc,CAAC,qBACd,gBAAgB,QAChB,eAAe,OACjB,CACA,CAJC,cAIc,CAAC,KAAK,CAJL,qBAKd,gBAAgB,QAChB,eAAe,OACjB,CACA,CARC,cAQc,CARC,qBAQqB,OACrC,CATC,cASc,CATC,qBASqB,OACnC,WAAY,KACZ,UAAW,IACb,CACA,CAbC,cAac,CAbC,qBAaqB,OACnC,UAAW,KACX,OAAQ,IAAI,MAAM,IAAI,gBAfxB,cAgBiB,IAhBjB,QAiBW,EAAE,IACX,MAAO,QACP,iBAAkB,WACpB,CACA,CArBC,cAqBc,CArBC,qBAqBqB,OAAO,OAC1C,MAAO,QACP,WAAY,OACd,CACA,CAzBC,cAyBc,CArBC,KAqBK,CAzBL,qBAyB2B,OAAO,OAChD,MAAO,QACP,WAAY,OACd,CACA,CA7BC,cA6Bc,CA7BC,qBA6BqB,KAAK,CAAC,YACzC,gBAAiB,KACZ,WAAY,KACjB,mBAAoB,KACpB,MAAO,KACP,WAAY,KAlCd,OAmCU,EAnCV,QAoCW,EACT,OAAQ,QACR,WAAY,WACd,CACA,CAxCC,cAwCc,CAxCC,qBAwCqB,KAAK,CAAC,WAAa,gCACtD,OAAQ,IAzCV,cA0CiB,IACf,WAAY,gBACV,GAAG,KAAK,CACR,IAAI,eAAe,IAAI,oBAAoB,CAC3C,IAAI,gBAAgB,IAAI,qBAE5B,CACA,CAjDC,cAiDc,CAjDC,qBAiDqB,KAAK,CAAC,WAAa,uBACtD,WAAY,KACZ,mBAAoB,KACpB,OAAQ,KACR,MAAO,KACP,WAAY,KACZ,OAAQ,IAAI,MAAM,IAAI,eAvDxB,cAwDiB,IACf,WAAY,IAAI,cAClB,CACA,CA3DC,cA2Dc,CA3DC,qBA2DqB,KAAK,CAAC,WAAa,mBACtD,OAAQ,IA5DV,cA6DiB,IACf,WAAY,IAAI,eAClB,CACA,CAhEC,cAgEc,CAhEC,qBAgEqB,KAAK,CAAC,WAAa,sBACtD,OAAQ,IACR,WAAY,IAAI,cAClB,CACA,CApEC,cAoEc,CApEC,qBAoEqB,KAAK,CAAC,WAAa,mBACtD,OAAQ,KACR,MAAO,KACP,OAAQ,EAvEV,cAwEiB,IACf,WAAY,IAAI,cAClB,CACA,CA3EC,cA2Ec,CA3EC,qBA2EqB,IAAI,MAAO,OAAQ,OAAO,eAC7D,QAAS,IAAI,MAAM,IAAI,eACvB,eAAgB,GAClB","names":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkV5ECGBFWjs = require('./chunk-V5ECGBFW.js');require('./chunk-ZATPBYOA.js');require('./chunk-KOYBZORL.js');require('./chunk-VNV5BD4X.js');require('./chunk-G4V2KWTV.js');require('./chunk-4HGZZJEL.js');require('./chunk-DP2NOHCI.js');require('./chunk-7RXW6XFY.js');require('./chunk-W3RGQYPD.js');require('./chunk-JSDGZ4NY.js');exports.Bitsnap = _chunkV5ECGBFWjs.x; exports.createCheckout = _chunkV5ECGBFWjs.A; exports.createPaymentURL = _chunkV5ECGBFWjs.z; exports.getPaymentMethodChoice = _chunkV5ECGBFWjs.y; exports.getReferenceIfPossible = _chunkV5ECGBFWjs.B; exports.injectReferenceToRequestIfNeeded = _chunkV5ECGBFWjs.C;
|
|
2
|
+
//# sourceMappingURL=methods-PMH5VQ25.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/emems/web/bitsnap/bitsnap/bitsnap-react/dist/methods-
|
|
1
|
+
{"version":3,"sources":["/home/emems/web/bitsnap/bitsnap/bitsnap-react/dist/methods-PMH5VQ25.js"],"names":[],"mappings":"AAAA,+HAA0E,+BAA4B,+BAA4B,+BAA4B,+BAA4B,+BAA4B,+BAA4B,+BAA4B,+BAA4B,+BAA4B,0SAA6J","file":"/home/emems/web/bitsnap/bitsnap/bitsnap-react/dist/methods-PMH5VQ25.js"}
|
package/dist/returns.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { a as ReturnsTexts, R as ReturnsAppearance, L as LoginLogoOptions, h as ReturnsTextKey, i as ResolvedReturnsAppearance, f as ReturnsSlotName, e as ReturnsSlotAppearance } from './texts-LGhuQfA9.mjs';
|
|
3
|
+
export { b as RETURNS_SLOT_NAMES, c as ReturnsAppearanceElements, d as ReturnsAppearanceTokens, g as ReturnsTheme } from './texts-LGhuQfA9.mjs';
|
|
2
4
|
import { ReactNode } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import { a as ReturnsTexts, R as ReturnsAppearance, h as ReturnsTextKey, i as ResolvedReturnsAppearance, f as ReturnsSlotName, e as ReturnsSlotAppearance } from './texts-tQtAGJCT.mjs';
|
|
5
|
-
export { b as RETURNS_SLOT_NAMES, c as ReturnsAppearanceElements, d as ReturnsAppearanceTokens, g as ReturnsTheme } from './texts-tQtAGJCT.mjs';
|
|
5
|
+
import { k as AnalyticsOption } from './instrument-eXaC8hc2.mjs';
|
|
6
6
|
import { Timestamp } from '@bufbuild/protobuf/wkt';
|
|
7
7
|
import { Message } from '@bufbuild/protobuf';
|
|
8
8
|
import './appearance-core-Dt2grZdl.mjs';
|
|
@@ -123,7 +123,12 @@ declare function ReturnsProvider({ projectID, host, environment, appearance, tex
|
|
|
123
123
|
declare const BitsnapReturnsProvider: typeof ReturnsProvider;
|
|
124
124
|
type BitsnapReturnsProviderProps = ReturnsProviderProps;
|
|
125
125
|
|
|
126
|
-
|
|
126
|
+
/**
|
|
127
|
+
* Props of {@link BitsnapReturns}. `showLogo`, `logoUrl` and `logoDarkUrl` set
|
|
128
|
+
* the shop logo above the e-mail and code steps: by default the logo from the
|
|
129
|
+
* shop settings, or Bitsnap's when the shop has none.
|
|
130
|
+
*/
|
|
131
|
+
type BitsnapReturnsProps = Omit<ReturnsProviderProps, "children"> & LoginLogoOptions;
|
|
127
132
|
/**
|
|
128
133
|
* Customer return flow: email, code, orders, line selection, confirmation and
|
|
129
134
|
* result, plus the list of earlier returns. It is `ReturnsProvider` with the
|
|
@@ -134,24 +139,28 @@ type BitsnapReturnsProps = Omit<ReturnsProviderProps, "children">;
|
|
|
134
139
|
* <BitsnapReturns projectID="…" appearance={brand} texts={{ emailStepTitle: "Return a product" }} />
|
|
135
140
|
* ```
|
|
136
141
|
*/
|
|
137
|
-
declare function BitsnapReturns(props: BitsnapReturnsProps): react_jsx_runtime.JSX.Element;
|
|
142
|
+
declare function BitsnapReturns({ showLogo, logoUrl, logoDarkUrl, ...props }: BitsnapReturnsProps): react_jsx_runtime.JSX.Element;
|
|
138
143
|
|
|
139
|
-
type ReturnsEmailStepProps = {
|
|
144
|
+
type ReturnsEmailStepProps = LoginLogoOptions & {
|
|
140
145
|
/** Called after the verification code was sent, with the trimmed email. */
|
|
141
146
|
onSubmitted?: (email: string) => void;
|
|
142
147
|
className?: string;
|
|
143
148
|
};
|
|
144
149
|
/** First step: asks for the email the order was placed with. */
|
|
145
|
-
declare function ReturnsEmailStep({ onSubmitted, className, }: ReturnsEmailStepProps): react_jsx_runtime.JSX.Element;
|
|
146
|
-
type ReturnsCodeStepProps = {
|
|
150
|
+
declare function ReturnsEmailStep({ onSubmitted, className, ...logo }: ReturnsEmailStepProps): react_jsx_runtime.JSX.Element;
|
|
151
|
+
type ReturnsCodeStepProps = LoginLogoOptions & {
|
|
147
152
|
/** Called once the code was accepted and the session exists. */
|
|
148
153
|
onVerified?: () => void;
|
|
149
154
|
/** Shows a back button, for example to change the email. */
|
|
150
155
|
onBack?: () => void;
|
|
151
156
|
className?: string;
|
|
152
157
|
};
|
|
153
|
-
/**
|
|
154
|
-
|
|
158
|
+
/**
|
|
159
|
+
* Second step: asks for the code that was emailed to the customer. The code
|
|
160
|
+
* is a six digit one-time-code field that submits itself on the last digit;
|
|
161
|
+
* the button stays for those who prefer it.
|
|
162
|
+
*/
|
|
163
|
+
declare function ReturnsCodeStep({ onVerified, onBack, className, ...logo }: ReturnsCodeStepProps): react_jsx_runtime.JSX.Element;
|
|
155
164
|
|
|
156
165
|
/**
|
|
157
166
|
* @generated from message public.v1.StartReturnSessionResponse
|
package/dist/returns.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { a as ReturnsTexts, R as ReturnsAppearance, L as LoginLogoOptions, h as ReturnsTextKey, i as ResolvedReturnsAppearance, f as ReturnsSlotName, e as ReturnsSlotAppearance } from './texts-m6XQGZ6w.js';
|
|
3
|
+
export { b as RETURNS_SLOT_NAMES, c as ReturnsAppearanceElements, d as ReturnsAppearanceTokens, g as ReturnsTheme } from './texts-m6XQGZ6w.js';
|
|
2
4
|
import { ReactNode } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import { a as ReturnsTexts, R as ReturnsAppearance, h as ReturnsTextKey, i as ResolvedReturnsAppearance, f as ReturnsSlotName, e as ReturnsSlotAppearance } from './texts-CIEFbJTN.js';
|
|
5
|
-
export { b as RETURNS_SLOT_NAMES, c as ReturnsAppearanceElements, d as ReturnsAppearanceTokens, g as ReturnsTheme } from './texts-CIEFbJTN.js';
|
|
5
|
+
import { k as AnalyticsOption } from './instrument-eXaC8hc2.js';
|
|
6
6
|
import { Timestamp } from '@bufbuild/protobuf/wkt';
|
|
7
7
|
import { Message } from '@bufbuild/protobuf';
|
|
8
8
|
import './appearance-core-Dt2grZdl.js';
|
|
@@ -123,7 +123,12 @@ declare function ReturnsProvider({ projectID, host, environment, appearance, tex
|
|
|
123
123
|
declare const BitsnapReturnsProvider: typeof ReturnsProvider;
|
|
124
124
|
type BitsnapReturnsProviderProps = ReturnsProviderProps;
|
|
125
125
|
|
|
126
|
-
|
|
126
|
+
/**
|
|
127
|
+
* Props of {@link BitsnapReturns}. `showLogo`, `logoUrl` and `logoDarkUrl` set
|
|
128
|
+
* the shop logo above the e-mail and code steps: by default the logo from the
|
|
129
|
+
* shop settings, or Bitsnap's when the shop has none.
|
|
130
|
+
*/
|
|
131
|
+
type BitsnapReturnsProps = Omit<ReturnsProviderProps, "children"> & LoginLogoOptions;
|
|
127
132
|
/**
|
|
128
133
|
* Customer return flow: email, code, orders, line selection, confirmation and
|
|
129
134
|
* result, plus the list of earlier returns. It is `ReturnsProvider` with the
|
|
@@ -134,24 +139,28 @@ type BitsnapReturnsProps = Omit<ReturnsProviderProps, "children">;
|
|
|
134
139
|
* <BitsnapReturns projectID="…" appearance={brand} texts={{ emailStepTitle: "Return a product" }} />
|
|
135
140
|
* ```
|
|
136
141
|
*/
|
|
137
|
-
declare function BitsnapReturns(props: BitsnapReturnsProps): react_jsx_runtime.JSX.Element;
|
|
142
|
+
declare function BitsnapReturns({ showLogo, logoUrl, logoDarkUrl, ...props }: BitsnapReturnsProps): react_jsx_runtime.JSX.Element;
|
|
138
143
|
|
|
139
|
-
type ReturnsEmailStepProps = {
|
|
144
|
+
type ReturnsEmailStepProps = LoginLogoOptions & {
|
|
140
145
|
/** Called after the verification code was sent, with the trimmed email. */
|
|
141
146
|
onSubmitted?: (email: string) => void;
|
|
142
147
|
className?: string;
|
|
143
148
|
};
|
|
144
149
|
/** First step: asks for the email the order was placed with. */
|
|
145
|
-
declare function ReturnsEmailStep({ onSubmitted, className, }: ReturnsEmailStepProps): react_jsx_runtime.JSX.Element;
|
|
146
|
-
type ReturnsCodeStepProps = {
|
|
150
|
+
declare function ReturnsEmailStep({ onSubmitted, className, ...logo }: ReturnsEmailStepProps): react_jsx_runtime.JSX.Element;
|
|
151
|
+
type ReturnsCodeStepProps = LoginLogoOptions & {
|
|
147
152
|
/** Called once the code was accepted and the session exists. */
|
|
148
153
|
onVerified?: () => void;
|
|
149
154
|
/** Shows a back button, for example to change the email. */
|
|
150
155
|
onBack?: () => void;
|
|
151
156
|
className?: string;
|
|
152
157
|
};
|
|
153
|
-
/**
|
|
154
|
-
|
|
158
|
+
/**
|
|
159
|
+
* Second step: asks for the code that was emailed to the customer. The code
|
|
160
|
+
* is a six digit one-time-code field that submits itself on the last digit;
|
|
161
|
+
* the button stays for those who prefer it.
|
|
162
|
+
*/
|
|
163
|
+
declare function ReturnsCodeStep({ onVerified, onBack, className, ...logo }: ReturnsCodeStepProps): react_jsx_runtime.JSX.Element;
|
|
155
164
|
|
|
156
165
|
/**
|
|
157
166
|
* @generated from message public.v1.StartReturnSessionResponse
|
package/dist/returns.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkJA62KNAQjs = require('./chunk-JA62KNAQ.js');var _chunkZATPBYOAjs = require('./chunk-ZATPBYOA.js');require('./chunk-KOYBZORL.js');var _chunkG4V2KWTVjs = require('./chunk-G4V2KWTV.js');require('./chunk-4HGZZJEL.js');require('./chunk-DP2NOHCI.js');require('./chunk-7RXW6XFY.js');require('./chunk-W3RGQYPD.js');require('./chunk-JSDGZ4NY.js');exports.BitsnapReturns = _chunkJA62KNAQjs.a; exports.BitsnapReturnsProvider = _chunkZATPBYOAjs.v; exports.Environment = _chunkG4V2KWTVjs.i; exports.RETURNS_SLOT_NAMES = _chunkZATPBYOAjs.l; exports.ReturnsAppearanceProvider = _chunkZATPBYOAjs.m; exports.ReturnsCodeStep = _chunkZATPBYOAjs.E; exports.ReturnsConfirmation = _chunkZATPBYOAjs.H; exports.ReturnsEmailStep = _chunkZATPBYOAjs.D; exports.ReturnsMyReturnDetail = _chunkZATPBYOAjs.K; exports.ReturnsMyReturnsList = _chunkZATPBYOAjs.J; exports.ReturnsOrderDetail = _chunkZATPBYOAjs.G; exports.ReturnsOrderList = _chunkZATPBYOAjs.F; exports.ReturnsProvider = _chunkZATPBYOAjs.u; exports.ReturnsResult = _chunkZATPBYOAjs.I; exports.useCreateReturn = _chunkZATPBYOAjs.z; exports.useMyReturn = _chunkZATPBYOAjs.B; exports.useMyReturns = _chunkZATPBYOAjs.A; exports.useReturnOrders = _chunkZATPBYOAjs.x; exports.useReturnSession = _chunkZATPBYOAjs.w; exports.useReturnableOrder = _chunkZATPBYOAjs.y; exports.useReturnsAppearance = _chunkZATPBYOAjs.n; exports.useReturnsSlot = _chunkZATPBYOAjs.o; exports.useReturnsText = _chunkZATPBYOAjs.r;
|
|
2
2
|
//# sourceMappingURL=returns.js.map
|
package/dist/returns.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/emems/web/bitsnap/bitsnap/bitsnap-react/dist/returns.js"],"names":[],"mappings":"AAAA,+HAAuC,
|
|
1
|
+
{"version":3,"sources":["/home/emems/web/bitsnap/bitsnap/bitsnap-react/dist/returns.js"],"names":[],"mappings":"AAAA,+HAAuC,sDAA+K,+BAA4B,sDAAwC,+BAA4B,+BAA4B,+BAA4B,+BAA4B,+BAA4B,kkCAA4gB","file":"/home/emems/web/bitsnap/bitsnap/bitsnap-react/dist/returns.js"}
|
package/dist/returns.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as L}from"./chunk-
|
|
1
|
+
import{a as L}from"./chunk-JHJ3ZZF4.mjs";import{A as m,B as l,D as x,E as d,F as P,G as f,H as S,I as c,J as T,K as C,l as t,m as r,n as s,o as n,r as p,u,v as R,w as o,x as y,y as a,z as i}from"./chunk-4OVOKGGS.mjs";import"./chunk-KOVKUJAW.mjs";import{i as e}from"./chunk-EVIDNS22.mjs";import"./chunk-5R6AGO3Z.mjs";import"./chunk-GEBRXFT3.mjs";import"./chunk-CF45RDMD.mjs";import"./chunk-VNYHJT6V.mjs";import"./chunk-MDCP5JNP.mjs";import"./chunk-U6FLIRIV.mjs";export{L as BitsnapReturns,R as BitsnapReturnsProvider,e as Environment,t as RETURNS_SLOT_NAMES,r as ReturnsAppearanceProvider,d as ReturnsCodeStep,S as ReturnsConfirmation,x as ReturnsEmailStep,C as ReturnsMyReturnDetail,T as ReturnsMyReturnsList,f as ReturnsOrderDetail,P as ReturnsOrderList,u as ReturnsProvider,c as ReturnsResult,i as useCreateReturn,l as useMyReturn,m as useMyReturns,y as useReturnOrders,o as useReturnSession,a as useReturnableOrder,s as useReturnsAppearance,n as useReturnsSlot,p as useReturnsText};
|
|
2
2
|
//# sourceMappingURL=returns.mjs.map
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { S as SlotAppearance, A as AppearanceElements } from './appearance-core-Dt2grZdl.mjs';
|
|
3
3
|
|
|
4
|
+
/** Options every login surface passes through to {@link LoginBrandLogo}. */
|
|
5
|
+
type LoginLogoOptions = {
|
|
6
|
+
/** Shows the shop logo above the login. Default `true`; `false` hides it. */
|
|
7
|
+
showLogo?: boolean;
|
|
8
|
+
/** Logo for light backgrounds, instead of the one of the shop settings. */
|
|
9
|
+
logoUrl?: string;
|
|
10
|
+
/** Logo for dark backgrounds, instead of the one of the shop settings. */
|
|
11
|
+
logoDarkUrl?: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
4
14
|
/**
|
|
5
15
|
* Returns appearance API.
|
|
6
16
|
*
|
|
@@ -83,7 +93,14 @@ type ResolvedReturnsAppearance = {
|
|
|
83
93
|
* whatever the locale. Strings with `{name}` placeholders keep them in
|
|
84
94
|
* overrides; unknown placeholders are left untouched.
|
|
85
95
|
*/
|
|
86
|
-
type ReturnsTexts =
|
|
96
|
+
type ReturnsTexts = Omit<ResolvedReturnsTexts, OptionalReturnsTextKey> & Partial<Pick<ResolvedReturnsTexts, OptionalReturnsTextKey>>;
|
|
97
|
+
/**
|
|
98
|
+
* Keys added after 1.6: optional in {@link ReturnsTexts} so that code which
|
|
99
|
+
* builds a complete texts object keeps compiling. The defaults fill them in.
|
|
100
|
+
*/
|
|
101
|
+
type OptionalReturnsTextKey = "resendSent" | "codeSpamHint" | "codeValidity" | "codeIncomplete" | "errorNetwork";
|
|
102
|
+
/** The texts after the defaults are applied: every key is present. */
|
|
103
|
+
type ResolvedReturnsTexts = {
|
|
87
104
|
/** Label of the back buttons. */
|
|
88
105
|
back: string;
|
|
89
106
|
/** Step indicator, placeholders `{current}` and `{total}`. */
|
|
@@ -105,6 +122,13 @@ type ReturnsTexts = {
|
|
|
105
122
|
resend: string;
|
|
106
123
|
/** Placeholder `{seconds}`. */
|
|
107
124
|
resendIn: string;
|
|
125
|
+
/** Confirmation after a new code was sent. */
|
|
126
|
+
resendSent: string;
|
|
127
|
+
/** Hint under the code field. */
|
|
128
|
+
codeSpamHint: string;
|
|
129
|
+
codeValidity: string;
|
|
130
|
+
/** Shown when the form is submitted with fewer than 6 digits. */
|
|
131
|
+
codeIncomplete: string;
|
|
108
132
|
logout: string;
|
|
109
133
|
ordersTitle: string;
|
|
110
134
|
ordersDescription: string;
|
|
@@ -178,6 +202,7 @@ type ReturnsTexts = {
|
|
|
178
202
|
refundStatusFailed: string;
|
|
179
203
|
refundStatusFallback: string;
|
|
180
204
|
errorGeneric: string;
|
|
205
|
+
errorNetwork: string;
|
|
181
206
|
errorInvalidEmail: string;
|
|
182
207
|
errorInvalidCode: string;
|
|
183
208
|
errorSessionExpired: string;
|
|
@@ -191,6 +216,6 @@ type ReturnsTexts = {
|
|
|
191
216
|
errorDeliveryFailed: string;
|
|
192
217
|
errorRetry: string;
|
|
193
218
|
};
|
|
194
|
-
type ReturnsTextKey = keyof
|
|
219
|
+
type ReturnsTextKey = keyof ResolvedReturnsTexts;
|
|
195
220
|
|
|
196
|
-
export { type ReturnsAppearance as R, type ReturnsTexts as a, RETURNS_SLOT_NAMES as b, type ReturnsAppearanceElements as c, type ReturnsAppearanceTokens as d, type ReturnsSlotAppearance as e, type ReturnsSlotName as f, type ReturnsTheme as g, type ReturnsTextKey as h, type ResolvedReturnsAppearance as i };
|
|
221
|
+
export { type LoginLogoOptions as L, type ReturnsAppearance as R, type ReturnsTexts as a, RETURNS_SLOT_NAMES as b, type ReturnsAppearanceElements as c, type ReturnsAppearanceTokens as d, type ReturnsSlotAppearance as e, type ReturnsSlotName as f, type ReturnsTheme as g, type ReturnsTextKey as h, type ResolvedReturnsAppearance as i };
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { S as SlotAppearance, A as AppearanceElements } from './appearance-core-Dt2grZdl.js';
|
|
3
3
|
|
|
4
|
+
/** Options every login surface passes through to {@link LoginBrandLogo}. */
|
|
5
|
+
type LoginLogoOptions = {
|
|
6
|
+
/** Shows the shop logo above the login. Default `true`; `false` hides it. */
|
|
7
|
+
showLogo?: boolean;
|
|
8
|
+
/** Logo for light backgrounds, instead of the one of the shop settings. */
|
|
9
|
+
logoUrl?: string;
|
|
10
|
+
/** Logo for dark backgrounds, instead of the one of the shop settings. */
|
|
11
|
+
logoDarkUrl?: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
4
14
|
/**
|
|
5
15
|
* Returns appearance API.
|
|
6
16
|
*
|
|
@@ -83,7 +93,14 @@ type ResolvedReturnsAppearance = {
|
|
|
83
93
|
* whatever the locale. Strings with `{name}` placeholders keep them in
|
|
84
94
|
* overrides; unknown placeholders are left untouched.
|
|
85
95
|
*/
|
|
86
|
-
type ReturnsTexts =
|
|
96
|
+
type ReturnsTexts = Omit<ResolvedReturnsTexts, OptionalReturnsTextKey> & Partial<Pick<ResolvedReturnsTexts, OptionalReturnsTextKey>>;
|
|
97
|
+
/**
|
|
98
|
+
* Keys added after 1.6: optional in {@link ReturnsTexts} so that code which
|
|
99
|
+
* builds a complete texts object keeps compiling. The defaults fill them in.
|
|
100
|
+
*/
|
|
101
|
+
type OptionalReturnsTextKey = "resendSent" | "codeSpamHint" | "codeValidity" | "codeIncomplete" | "errorNetwork";
|
|
102
|
+
/** The texts after the defaults are applied: every key is present. */
|
|
103
|
+
type ResolvedReturnsTexts = {
|
|
87
104
|
/** Label of the back buttons. */
|
|
88
105
|
back: string;
|
|
89
106
|
/** Step indicator, placeholders `{current}` and `{total}`. */
|
|
@@ -105,6 +122,13 @@ type ReturnsTexts = {
|
|
|
105
122
|
resend: string;
|
|
106
123
|
/** Placeholder `{seconds}`. */
|
|
107
124
|
resendIn: string;
|
|
125
|
+
/** Confirmation after a new code was sent. */
|
|
126
|
+
resendSent: string;
|
|
127
|
+
/** Hint under the code field. */
|
|
128
|
+
codeSpamHint: string;
|
|
129
|
+
codeValidity: string;
|
|
130
|
+
/** Shown when the form is submitted with fewer than 6 digits. */
|
|
131
|
+
codeIncomplete: string;
|
|
108
132
|
logout: string;
|
|
109
133
|
ordersTitle: string;
|
|
110
134
|
ordersDescription: string;
|
|
@@ -178,6 +202,7 @@ type ReturnsTexts = {
|
|
|
178
202
|
refundStatusFailed: string;
|
|
179
203
|
refundStatusFallback: string;
|
|
180
204
|
errorGeneric: string;
|
|
205
|
+
errorNetwork: string;
|
|
181
206
|
errorInvalidEmail: string;
|
|
182
207
|
errorInvalidCode: string;
|
|
183
208
|
errorSessionExpired: string;
|
|
@@ -191,6 +216,6 @@ type ReturnsTexts = {
|
|
|
191
216
|
errorDeliveryFailed: string;
|
|
192
217
|
errorRetry: string;
|
|
193
218
|
};
|
|
194
|
-
type ReturnsTextKey = keyof
|
|
219
|
+
type ReturnsTextKey = keyof ResolvedReturnsTexts;
|
|
195
220
|
|
|
196
|
-
export { type ReturnsAppearance as R, type ReturnsTexts as a, RETURNS_SLOT_NAMES as b, type ReturnsAppearanceElements as c, type ReturnsAppearanceTokens as d, type ReturnsSlotAppearance as e, type ReturnsSlotName as f, type ReturnsTheme as g, type ReturnsTextKey as h, type ResolvedReturnsAppearance as i };
|
|
221
|
+
export { type LoginLogoOptions as L, type ReturnsAppearance as R, type ReturnsTexts as a, RETURNS_SLOT_NAMES as b, type ReturnsAppearanceElements as c, type ReturnsAppearanceTokens as d, type ReturnsSlotAppearance as e, type ReturnsSlotName as f, type ReturnsTheme as g, type ReturnsTextKey as h, type ResolvedReturnsAppearance as i };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { k as AnalyticsOption } from './instrument-eXaC8hc2.js';
|
|
2
|
+
import { R as ReturnsAppearance, a as ReturnsTexts, L as LoginLogoOptions } from './texts-m6XQGZ6w.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Strings of the shared e-mail + 6-digit-code login (panel, notifications).
|
|
6
|
+
* Strings with `{name}` placeholders keep them in overrides.
|
|
7
|
+
*/
|
|
8
|
+
type EmailCodeTexts = {
|
|
9
|
+
emailLabel: string;
|
|
10
|
+
emailPlaceholder: string;
|
|
11
|
+
/** Submit button of the e-mail step. */
|
|
12
|
+
sendCode: string;
|
|
13
|
+
/** Same button while the code is being sent. */
|
|
14
|
+
sending: string;
|
|
15
|
+
invalidEmail: string;
|
|
16
|
+
/** Placeholder `{email}`. */
|
|
17
|
+
codeSentTo: string;
|
|
18
|
+
/** Link back to the e-mail step ("Zmień"). */
|
|
19
|
+
changeEmail: string;
|
|
20
|
+
codeLabel: string;
|
|
21
|
+
/** Submit button of the code step. */
|
|
22
|
+
verify: string;
|
|
23
|
+
verifying: string;
|
|
24
|
+
codeIncomplete: string;
|
|
25
|
+
spamHint: string;
|
|
26
|
+
validity: string;
|
|
27
|
+
resend: string;
|
|
28
|
+
/** Placeholder `{seconds}`. */
|
|
29
|
+
resendIn: string;
|
|
30
|
+
/** Resend button after the code expired or ran out of attempts. */
|
|
31
|
+
resendNew: string;
|
|
32
|
+
resent: string;
|
|
33
|
+
/** "Masz już kod?" next to the {@link haveCode} link. */
|
|
34
|
+
haveCodePrompt: string;
|
|
35
|
+
haveCode: string;
|
|
36
|
+
/** In the "I already have a code" view: link back to sending one. */
|
|
37
|
+
noCode: string;
|
|
38
|
+
stepEmail: string;
|
|
39
|
+
stepCode: string;
|
|
40
|
+
wrongCode: string;
|
|
41
|
+
expired: string;
|
|
42
|
+
tooManyAttempts: string;
|
|
43
|
+
/** Placeholder `{time}`, for example "45 s" or "2 min". */
|
|
44
|
+
rateLimited: string;
|
|
45
|
+
/** Placeholder `{time}`. */
|
|
46
|
+
alreadySent: string;
|
|
47
|
+
emailNotFound: string;
|
|
48
|
+
deliveryFailed: string;
|
|
49
|
+
deliveryUnavailable: string;
|
|
50
|
+
network: string;
|
|
51
|
+
generic: string;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** Strings of `PanelLogin`: the shared login texts plus the two titles. */
|
|
55
|
+
type PanelLoginTexts = EmailCodeTexts & {
|
|
56
|
+
title: string;
|
|
57
|
+
description: string;
|
|
58
|
+
codeTitle: string;
|
|
59
|
+
codeDescription: string;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
interface GetThemeOutput {
|
|
63
|
+
logoURL?: string;
|
|
64
|
+
logoDarkURL?: string;
|
|
65
|
+
colors?: {
|
|
66
|
+
brand?: string;
|
|
67
|
+
brandDark?: string;
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
type PanelScreen = "products" | "notifications" | "profile" | "plans" | "orders" | "order-details" | "returns" | "return-details" | "course";
|
|
71
|
+
type PanelSearchParamsType = {
|
|
72
|
+
product?: string;
|
|
73
|
+
state: PanelScreen;
|
|
74
|
+
orderId?: string;
|
|
75
|
+
returnId?: string;
|
|
76
|
+
/** `state: "course"`: `UserProduct.accessId` of the open course. */
|
|
77
|
+
course?: string;
|
|
78
|
+
/** `state: "course"`: id of the open lesson or test. */
|
|
79
|
+
item?: string;
|
|
80
|
+
};
|
|
81
|
+
interface PanelProps {
|
|
82
|
+
projectID: string;
|
|
83
|
+
theme?: GetThemeOutput;
|
|
84
|
+
loginURL: string;
|
|
85
|
+
/**
|
|
86
|
+
* Appearance of the Returns screen. When omitted, `buttonBackground`,
|
|
87
|
+
* `focusRing` and a readable `buttonForeground` are derived from
|
|
88
|
+
* `theme.colors.brand`.
|
|
89
|
+
*/
|
|
90
|
+
returnsAppearance?: ReturnsAppearance;
|
|
91
|
+
/** Text overrides of the Returns screen. */
|
|
92
|
+
returnsTexts?: Partial<ReturnsTexts>;
|
|
93
|
+
/**
|
|
94
|
+
* Usage statistics for your Bitsnap dashboard (panel logins, orders viewed, downloads). On by default;
|
|
95
|
+
* `false` turns it off. An object lets you forward every event:
|
|
96
|
+
* `{ onEvent }`. Nothing is stored on the visitor's device.
|
|
97
|
+
*/
|
|
98
|
+
analytics?: AnalyticsOption;
|
|
99
|
+
}
|
|
100
|
+
interface PanelLoginProps extends LoginLogoOptions {
|
|
101
|
+
projectID: string;
|
|
102
|
+
theme?: GetThemeOutput;
|
|
103
|
+
/**
|
|
104
|
+
* Usage statistics for your Bitsnap dashboard (panel logins). On by default;
|
|
105
|
+
* `false` turns it off. An object lets you forward every event:
|
|
106
|
+
* `{ onEvent }`. Nothing is stored on the visitor's device.
|
|
107
|
+
*/
|
|
108
|
+
analytics?: AnalyticsOption;
|
|
109
|
+
/**
|
|
110
|
+
* Text overrides of the login: titles, buttons and every message. Polish
|
|
111
|
+
* and English defaults are chosen by `locale`.
|
|
112
|
+
*/
|
|
113
|
+
texts?: Partial<PanelLoginTexts>;
|
|
114
|
+
/**
|
|
115
|
+
* Language of the default texts: a locale starting with `en` gives English,
|
|
116
|
+
* anything else Polish. Defaults to the library locale (`setLocale`).
|
|
117
|
+
*/
|
|
118
|
+
locale?: string;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export type { GetThemeOutput as G, PanelLoginProps as P, PanelProps as a, PanelScreen as b, PanelSearchParamsType as c };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { k as AnalyticsOption } from './instrument-eXaC8hc2.mjs';
|
|
2
|
+
import { R as ReturnsAppearance, a as ReturnsTexts, L as LoginLogoOptions } from './texts-LGhuQfA9.mjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Strings of the shared e-mail + 6-digit-code login (panel, notifications).
|
|
6
|
+
* Strings with `{name}` placeholders keep them in overrides.
|
|
7
|
+
*/
|
|
8
|
+
type EmailCodeTexts = {
|
|
9
|
+
emailLabel: string;
|
|
10
|
+
emailPlaceholder: string;
|
|
11
|
+
/** Submit button of the e-mail step. */
|
|
12
|
+
sendCode: string;
|
|
13
|
+
/** Same button while the code is being sent. */
|
|
14
|
+
sending: string;
|
|
15
|
+
invalidEmail: string;
|
|
16
|
+
/** Placeholder `{email}`. */
|
|
17
|
+
codeSentTo: string;
|
|
18
|
+
/** Link back to the e-mail step ("Zmień"). */
|
|
19
|
+
changeEmail: string;
|
|
20
|
+
codeLabel: string;
|
|
21
|
+
/** Submit button of the code step. */
|
|
22
|
+
verify: string;
|
|
23
|
+
verifying: string;
|
|
24
|
+
codeIncomplete: string;
|
|
25
|
+
spamHint: string;
|
|
26
|
+
validity: string;
|
|
27
|
+
resend: string;
|
|
28
|
+
/** Placeholder `{seconds}`. */
|
|
29
|
+
resendIn: string;
|
|
30
|
+
/** Resend button after the code expired or ran out of attempts. */
|
|
31
|
+
resendNew: string;
|
|
32
|
+
resent: string;
|
|
33
|
+
/** "Masz już kod?" next to the {@link haveCode} link. */
|
|
34
|
+
haveCodePrompt: string;
|
|
35
|
+
haveCode: string;
|
|
36
|
+
/** In the "I already have a code" view: link back to sending one. */
|
|
37
|
+
noCode: string;
|
|
38
|
+
stepEmail: string;
|
|
39
|
+
stepCode: string;
|
|
40
|
+
wrongCode: string;
|
|
41
|
+
expired: string;
|
|
42
|
+
tooManyAttempts: string;
|
|
43
|
+
/** Placeholder `{time}`, for example "45 s" or "2 min". */
|
|
44
|
+
rateLimited: string;
|
|
45
|
+
/** Placeholder `{time}`. */
|
|
46
|
+
alreadySent: string;
|
|
47
|
+
emailNotFound: string;
|
|
48
|
+
deliveryFailed: string;
|
|
49
|
+
deliveryUnavailable: string;
|
|
50
|
+
network: string;
|
|
51
|
+
generic: string;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** Strings of `PanelLogin`: the shared login texts plus the two titles. */
|
|
55
|
+
type PanelLoginTexts = EmailCodeTexts & {
|
|
56
|
+
title: string;
|
|
57
|
+
description: string;
|
|
58
|
+
codeTitle: string;
|
|
59
|
+
codeDescription: string;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
interface GetThemeOutput {
|
|
63
|
+
logoURL?: string;
|
|
64
|
+
logoDarkURL?: string;
|
|
65
|
+
colors?: {
|
|
66
|
+
brand?: string;
|
|
67
|
+
brandDark?: string;
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
type PanelScreen = "products" | "notifications" | "profile" | "plans" | "orders" | "order-details" | "returns" | "return-details" | "course";
|
|
71
|
+
type PanelSearchParamsType = {
|
|
72
|
+
product?: string;
|
|
73
|
+
state: PanelScreen;
|
|
74
|
+
orderId?: string;
|
|
75
|
+
returnId?: string;
|
|
76
|
+
/** `state: "course"`: `UserProduct.accessId` of the open course. */
|
|
77
|
+
course?: string;
|
|
78
|
+
/** `state: "course"`: id of the open lesson or test. */
|
|
79
|
+
item?: string;
|
|
80
|
+
};
|
|
81
|
+
interface PanelProps {
|
|
82
|
+
projectID: string;
|
|
83
|
+
theme?: GetThemeOutput;
|
|
84
|
+
loginURL: string;
|
|
85
|
+
/**
|
|
86
|
+
* Appearance of the Returns screen. When omitted, `buttonBackground`,
|
|
87
|
+
* `focusRing` and a readable `buttonForeground` are derived from
|
|
88
|
+
* `theme.colors.brand`.
|
|
89
|
+
*/
|
|
90
|
+
returnsAppearance?: ReturnsAppearance;
|
|
91
|
+
/** Text overrides of the Returns screen. */
|
|
92
|
+
returnsTexts?: Partial<ReturnsTexts>;
|
|
93
|
+
/**
|
|
94
|
+
* Usage statistics for your Bitsnap dashboard (panel logins, orders viewed, downloads). On by default;
|
|
95
|
+
* `false` turns it off. An object lets you forward every event:
|
|
96
|
+
* `{ onEvent }`. Nothing is stored on the visitor's device.
|
|
97
|
+
*/
|
|
98
|
+
analytics?: AnalyticsOption;
|
|
99
|
+
}
|
|
100
|
+
interface PanelLoginProps extends LoginLogoOptions {
|
|
101
|
+
projectID: string;
|
|
102
|
+
theme?: GetThemeOutput;
|
|
103
|
+
/**
|
|
104
|
+
* Usage statistics for your Bitsnap dashboard (panel logins). On by default;
|
|
105
|
+
* `false` turns it off. An object lets you forward every event:
|
|
106
|
+
* `{ onEvent }`. Nothing is stored on the visitor's device.
|
|
107
|
+
*/
|
|
108
|
+
analytics?: AnalyticsOption;
|
|
109
|
+
/**
|
|
110
|
+
* Text overrides of the login: titles, buttons and every message. Polish
|
|
111
|
+
* and English defaults are chosen by `locale`.
|
|
112
|
+
*/
|
|
113
|
+
texts?: Partial<PanelLoginTexts>;
|
|
114
|
+
/**
|
|
115
|
+
* Language of the default texts: a locale starting with `en` gives English,
|
|
116
|
+
* anything else Polish. Defaults to the library locale (`setLocale`).
|
|
117
|
+
*/
|
|
118
|
+
locale?: string;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export type { GetThemeOutput as G, PanelLoginProps as P, PanelProps as a, PanelScreen as b, PanelSearchParamsType as c };
|
package/dist/viewer3d.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.bitsnap-react
|
|
1
|
+
.bitsnap-react .bitsnap-audio-player{--player-track: #d6d3d1;--player-fill: #44403c}.bitsnap-react .dark .bitsnap-audio-player{--player-track: #57534e;--player-fill: #e7e5e4}.bitsnap-react .bitsnap-audio-player button,.bitsnap-react .bitsnap-audio-player select{min-height:44px;min-width:44px}.bitsnap-react .bitsnap-audio-player select{max-width:100%;border:1px solid var(--player-track);border-radius:6px;padding:0 8px;color:inherit;background-color:transparent}.bitsnap-react .bitsnap-audio-player select option{color:#292524;background:#fafaf9}.bitsnap-react .dark .bitsnap-audio-player select option{color:#fafaf9;background:#292524}.bitsnap-react .bitsnap-audio-player input[type=range]{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:100%;min-height:44px;margin:0;padding:0;cursor:pointer;background:transparent}.bitsnap-react .bitsnap-audio-player input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:linear-gradient(to right,var(--player-fill) var(--seek-before-width),var(--player-track) var(--seek-before-width))}.bitsnap-react .bitsnap-audio-player input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;height:18px;width:18px;margin-top:-7px;border:2px solid var(--player-fill);border-radius:50%;background:var(--player-fill)}.bitsnap-react .bitsnap-audio-player input[type=range]::-moz-range-track{height:4px;border-radius:2px;background:var(--player-track)}.bitsnap-react .bitsnap-audio-player input[type=range]::-moz-range-progress{height:4px;background:var(--player-fill)}.bitsnap-react .bitsnap-audio-player input[type=range]::-moz-range-thumb{height:18px;width:18px;border:0;border-radius:50%;background:var(--player-fill)}.bitsnap-react .bitsnap-audio-player :is(input,button,select):focus-visible{outline:2px solid var(--player-fill);outline-offset:3px}
|
|
2
2
|
/*# sourceMappingURL=viewer3d.css.map */
|
package/dist/viewer3d.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/panel/audio-player/audio-player.css"],"sourcesContent":[".bitsnap-react
|
|
1
|
+
{"version":3,"sources":["../src/panel/audio-player/audio-player.css"],"sourcesContent":[".bitsnap-react .bitsnap-audio-player {\n --player-track: #d6d3d1;\n --player-fill: #44403c;\n}\n.bitsnap-react .dark .bitsnap-audio-player {\n --player-track: #57534e;\n --player-fill: #e7e5e4;\n}\n.bitsnap-react .bitsnap-audio-player button,\n.bitsnap-react .bitsnap-audio-player select {\n min-height: 44px;\n min-width: 44px;\n}\n.bitsnap-react .bitsnap-audio-player select {\n max-width: 100%;\n border: 1px solid var(--player-track);\n border-radius: 6px;\n padding: 0 8px;\n color: inherit;\n background-color: transparent;\n}\n.bitsnap-react .bitsnap-audio-player select option {\n color: #292524;\n background: #fafaf9;\n}\n.bitsnap-react .dark .bitsnap-audio-player select option {\n color: #fafaf9;\n background: #292524;\n}\n.bitsnap-react .bitsnap-audio-player input[type=\"range\"] {\n -moz-appearance: none;\n appearance: none;\n -webkit-appearance: none;\n width: 100%;\n min-height: 44px;\n margin: 0;\n padding: 0;\n cursor: pointer;\n background: transparent;\n}\n.bitsnap-react .bitsnap-audio-player input[type=\"range\"]::-webkit-slider-runnable-track {\n height: 4px;\n border-radius: 2px;\n background: linear-gradient(\n to right,\n var(--player-fill) var(--seek-before-width),\n var(--player-track) var(--seek-before-width)\n );\n}\n.bitsnap-react .bitsnap-audio-player input[type=\"range\"]::-webkit-slider-thumb {\n appearance: none;\n -webkit-appearance: none;\n height: 18px;\n width: 18px;\n margin-top: -7px;\n border: 2px solid var(--player-fill);\n border-radius: 50%;\n background: var(--player-fill);\n}\n.bitsnap-react .bitsnap-audio-player input[type=\"range\"]::-moz-range-track {\n height: 4px;\n border-radius: 2px;\n background: var(--player-track);\n}\n.bitsnap-react .bitsnap-audio-player input[type=\"range\"]::-moz-range-progress {\n height: 4px;\n background: var(--player-fill);\n}\n.bitsnap-react .bitsnap-audio-player input[type=\"range\"]::-moz-range-thumb {\n height: 18px;\n width: 18px;\n border: 0;\n border-radius: 50%;\n background: var(--player-fill);\n}\n.bitsnap-react .bitsnap-audio-player :is(input, button, select):focus-visible {\n outline: 2px solid var(--player-fill);\n outline-offset: 3px;\n}\n"],"mappings":"AAAA,CAAC,cAAc,CAAC,qBACd,gBAAgB,QAChB,eAAe,OACjB,CACA,CAJC,cAIc,CAAC,KAAK,CAJL,qBAKd,gBAAgB,QAChB,eAAe,OACjB,CACA,CARC,cAQc,CARC,qBAQqB,OACrC,CATC,cASc,CATC,qBASqB,OACnC,WAAY,KACZ,UAAW,IACb,CACA,CAbC,cAac,CAbC,qBAaqB,OACnC,UAAW,KACX,OAAQ,IAAI,MAAM,IAAI,gBAfxB,cAgBiB,IAhBjB,QAiBW,EAAE,IACX,MAAO,QACP,iBAAkB,WACpB,CACA,CArBC,cAqBc,CArBC,qBAqBqB,OAAO,OAC1C,MAAO,QACP,WAAY,OACd,CACA,CAzBC,cAyBc,CArBC,KAqBK,CAzBL,qBAyB2B,OAAO,OAChD,MAAO,QACP,WAAY,OACd,CACA,CA7BC,cA6Bc,CA7BC,qBA6BqB,KAAK,CAAC,YACzC,gBAAiB,KACZ,WAAY,KACjB,mBAAoB,KACpB,MAAO,KACP,WAAY,KAlCd,OAmCU,EAnCV,QAoCW,EACT,OAAQ,QACR,WAAY,WACd,CACA,CAxCC,cAwCc,CAxCC,qBAwCqB,KAAK,CAAC,WAAa,gCACtD,OAAQ,IAzCV,cA0CiB,IACf,WAAY,gBACV,GAAG,KAAK,CACR,IAAI,eAAe,IAAI,oBAAoB,CAC3C,IAAI,gBAAgB,IAAI,qBAE5B,CACA,CAjDC,cAiDc,CAjDC,qBAiDqB,KAAK,CAAC,WAAa,uBACtD,WAAY,KACZ,mBAAoB,KACpB,OAAQ,KACR,MAAO,KACP,WAAY,KACZ,OAAQ,IAAI,MAAM,IAAI,eAvDxB,cAwDiB,IACf,WAAY,IAAI,cAClB,CACA,CA3DC,cA2Dc,CA3DC,qBA2DqB,KAAK,CAAC,WAAa,mBACtD,OAAQ,IA5DV,cA6DiB,IACf,WAAY,IAAI,eAClB,CACA,CAhEC,cAgEc,CAhEC,qBAgEqB,KAAK,CAAC,WAAa,sBACtD,OAAQ,IACR,WAAY,IAAI,cAClB,CACA,CApEC,cAoEc,CApEC,qBAoEqB,KAAK,CAAC,WAAa,mBACtD,OAAQ,KACR,MAAO,KACP,OAAQ,EAvEV,cAwEiB,IACf,WAAY,IAAI,cAClB,CACA,CA3EC,cA2Ec,CA3EC,qBA2EqB,IAAI,MAAO,OAAQ,OAAO,eAC7D,QAAS,IAAI,MAAM,IAAI,eACvB,eAAgB,GAClB","names":[]}
|