@soyio/soyio-widget 0.0.8 → 0.0.10
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/constants.d.ts +1 -1
- package/dist/events.d.ts +2 -2
- package/dist/index.d.ts +13 -6
- package/dist/index.js +381 -373
- package/dist/index.umd.cjs +10 -10
- package/dist/widget.d.ts +1 -1
- package/package.json +1 -1
package/dist/constants.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const CONTAINER_ID = "soyio-widget-iframe-container";
|
|
2
2
|
export declare const IFRAME_ID = "soyio-widget-iframe";
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const BASE_URL = "https://staging.soyio.id/widget";
|
package/dist/events.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ConfigProps } from './index';
|
|
2
2
|
declare function setReady(iframe: HTMLIFrameElement): void;
|
|
3
|
-
declare function setConfig(iframe: HTMLIFrameElement, config:
|
|
3
|
+
declare function setConfig(iframe: HTMLIFrameElement, config: Partial<ConfigProps>): void;
|
|
4
4
|
export { setReady, setConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
export interface
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export interface WidgetConstructorProps {
|
|
2
|
+
flow: 'authenticate' | 'register';
|
|
3
|
+
developmentUrl?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface ConfigProps {
|
|
6
|
+
companyId: string;
|
|
7
|
+
userReference: string;
|
|
8
|
+
flowTemplateId: string;
|
|
9
|
+
identityId: string;
|
|
4
10
|
}
|
|
5
11
|
declare class Widget {
|
|
6
12
|
private iframe;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
constructor(
|
|
13
|
+
private constructorProps;
|
|
14
|
+
private configProps;
|
|
15
|
+
constructor(constructorProps: WidgetConstructorProps, configProps: Partial<ConfigProps>);
|
|
10
16
|
initialize(): void;
|
|
17
|
+
propsAreValid(): string | false | undefined;
|
|
11
18
|
}
|
|
12
19
|
export default Widget;
|