@placetopay/lightbox-sdk 0.3.1 → 0.3.2
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.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LightboxStyles } from '../types';
|
|
2
2
|
export declare const LightboxApp: {
|
|
3
3
|
close: () => void;
|
|
4
4
|
emit: (type: string, payload: unknown) => {
|
|
5
5
|
close: () => void;
|
|
6
6
|
};
|
|
7
|
-
sendStyles: (styles:
|
|
7
|
+
sendStyles: (styles: LightboxStyles) => void;
|
|
8
8
|
hideCloseButton: () => void;
|
|
9
9
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ClientCallbacks,
|
|
2
|
-
export declare const mountListener: (callbacks: ClientCallbacks, styles:
|
|
3
|
-
export declare const mountLightbox: (url: string, styles:
|
|
1
|
+
import { ClientCallbacks, LightboxStyles } from '../types';
|
|
2
|
+
export declare const mountListener: (callbacks: ClientCallbacks, styles: LightboxStyles) => void;
|
|
3
|
+
export declare const mountLightbox: (url: string, styles: LightboxStyles, closeButtonEnabled: boolean) => void;
|
package/dist/types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare type ClientCallback = (data: unknown) => void;
|
|
|
3
3
|
export declare type ClientCallbacks = {
|
|
4
4
|
[key: string]: ClientCallback | undefined;
|
|
5
5
|
};
|
|
6
|
-
export declare type
|
|
6
|
+
export declare type LightboxStyles = {
|
|
7
7
|
background?: {
|
|
8
8
|
color?: string;
|
|
9
9
|
opacity?: number;
|
|
@@ -17,7 +17,7 @@ export declare type InitOptions = {
|
|
|
17
17
|
allowRedirects?: boolean;
|
|
18
18
|
callbacks?: ClientCallbacks;
|
|
19
19
|
closeButton?: boolean;
|
|
20
|
-
styles?:
|
|
20
|
+
styles?: LightboxStyles;
|
|
21
21
|
};
|
|
22
22
|
export declare type ApiStructure = {
|
|
23
23
|
payload: unknown;
|
|
@@ -33,7 +33,7 @@ export declare type LightboxEvents = {
|
|
|
33
33
|
payload: ApiStructure;
|
|
34
34
|
} | {
|
|
35
35
|
type: LightboxAppEvents.SEND_STYLES;
|
|
36
|
-
payload:
|
|
36
|
+
payload: LightboxStyles;
|
|
37
37
|
} | {
|
|
38
38
|
type: LightboxAppEvents.HIDE_CLOSE_BUTTON;
|
|
39
39
|
};
|
package/package.json
CHANGED