@imtbl/auth 2.10.7-alpha.3 → 2.10.7-alpha.5

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,3 +0,0 @@
1
- export { default as ConfirmationScreen } from './confirmation';
2
- export { default as EmbeddedLoginPrompt } from './embeddedLoginPrompt';
3
- export * from './types';
@@ -1,41 +0,0 @@
1
- export type PopUpProps = {
2
- url: string;
3
- title: string;
4
- width: number;
5
- height: number;
6
- query?: string;
7
- };
8
-
9
- export const openPopupCenter = ({
10
- url,
11
- title,
12
- width,
13
- height,
14
- }: PopUpProps): Window => {
15
- const left = Math.max(
16
- 0,
17
- Math.round(window.screenX + (window.outerWidth - width) / 2),
18
- );
19
- const top = Math.max(
20
- 0,
21
- Math.round(window.screenY + (window.outerHeight - height) / 2),
22
- );
23
-
24
- const newWindow = window.open(
25
- url,
26
- title,
27
- `
28
- scrollbars=yes,
29
- width=${width},
30
- height=${height},
31
- top=${top},
32
- left=${left}
33
- `,
34
- );
35
- if (!newWindow) {
36
- throw new Error('Failed to open confirmation screen');
37
- }
38
-
39
- newWindow.focus();
40
- return newWindow;
41
- };
File without changes
File without changes