@authsignal/browser 0.0.19 → 0.0.21

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 +1,5 @@
1
+ import "iframe-resizer/js/iframeResizer";
2
+ import "iframe-resizer/js/iframeResizer.contentWindow";
1
3
  declare type PopupShowInput = {
2
4
  url: string;
3
5
  };
@@ -5,12 +7,12 @@ declare type EventType = "show" | "hide" | "destroy" | "create";
5
7
  declare type EventHandler = (node: Element, event?: Event) => void;
6
8
  declare type PopupHandlerOptions = {
7
9
  width?: string;
8
- height?: string;
9
10
  };
10
11
  declare class PopupHandler {
11
12
  private popup;
12
- constructor({ width, height }: PopupHandlerOptions);
13
- create({ width, height }: PopupHandlerOptions): void;
13
+ private isHeightAutoResized;
14
+ constructor({ width }: PopupHandlerOptions);
15
+ create({ width }: PopupHandlerOptions): void;
14
16
  destroy(): void;
15
17
  show({ url }: PopupShowInput): void;
16
18
  close(): void;
package/dist/types.d.ts CHANGED
@@ -14,9 +14,11 @@ declare type PopupLaunchOptions = BaseLaunchOptions & {
14
14
  mode: "popup";
15
15
  popupOptions?: {
16
16
  /** Any valid CSS value for the `width` property. */
17
- width: string;
18
- /** Any valid CSS value for the `height` property. */
19
- height: string;
17
+ width?: string;
18
+ /**
19
+ * @deprecated The popup will automatically resize to fit the content.
20
+ */
21
+ height?: string;
20
22
  };
21
23
  };
22
24
  export declare type LaunchOptions = RedirectLaunchOptions | PopupLaunchOptions;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@authsignal/browser",
3
3
  "type": "module",
4
- "version": "0.0.19",
4
+ "version": "0.0.21",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
@@ -23,11 +23,13 @@
23
23
  "dependencies": {
24
24
  "@fingerprintjs/fingerprintjs": "^3.3.6",
25
25
  "a11y-dialog": "^7.5.2",
26
+ "iframe-resizer": "^4.3.6",
26
27
  "uuid": "^9.0.0"
27
28
  },
28
29
  "devDependencies": {
29
30
  "@rollup/plugin-node-resolve": "^14.1.0",
30
31
  "@rollup/plugin-typescript": "^8.5.0",
32
+ "@types/iframe-resizer": "^3.5.9",
31
33
  "@types/uuid": "^8.3.4",
32
34
  "@typescript-eslint/eslint-plugin": "^5.39.0",
33
35
  "@typescript-eslint/parser": "^5.39.0",