@billsdk/time-travel 0.1.1 → 0.2.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/dist/client/index.d.ts +6 -4
- package/dist/client/index.js +962 -511
- package/dist/client/index.js.map +1 -1
- package/package.json +1 -1
package/dist/client/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
+
type Corner = "bottom-right" | "bottom-left" | "top-right" | "top-left";
|
|
3
4
|
interface TimeTravelOverlayProps {
|
|
4
5
|
/**
|
|
5
6
|
* Base URL for the BillSDK API
|
|
@@ -7,10 +8,10 @@ interface TimeTravelOverlayProps {
|
|
|
7
8
|
*/
|
|
8
9
|
baseUrl?: string;
|
|
9
10
|
/**
|
|
10
|
-
*
|
|
11
|
+
* Initial position of the overlay
|
|
11
12
|
* @default "bottom-right"
|
|
12
13
|
*/
|
|
13
|
-
|
|
14
|
+
defaultPosition?: Corner;
|
|
14
15
|
/**
|
|
15
16
|
* Initial collapsed state
|
|
16
17
|
* @default true
|
|
@@ -22,6 +23,7 @@ interface TimeTravelOverlayProps {
|
|
|
22
23
|
*/
|
|
23
24
|
customerId?: string;
|
|
24
25
|
}
|
|
26
|
+
|
|
25
27
|
/**
|
|
26
28
|
* Time Travel Overlay Component
|
|
27
29
|
*
|
|
@@ -48,6 +50,6 @@ interface TimeTravelOverlayProps {
|
|
|
48
50
|
* }
|
|
49
51
|
* ```
|
|
50
52
|
*/
|
|
51
|
-
declare function TimeTravelOverlay({ baseUrl,
|
|
53
|
+
declare function TimeTravelOverlay({ baseUrl, defaultPosition, defaultCollapsed, customerId, }: TimeTravelOverlayProps): react_jsx_runtime.JSX.Element;
|
|
52
54
|
|
|
53
|
-
export { TimeTravelOverlay, type TimeTravelOverlayProps };
|
|
55
|
+
export { type Corner, TimeTravelOverlay, type TimeTravelOverlayProps };
|