@soyio/soyio-widget 0.0.7 → 0.0.9
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 +3 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +365 -359
- package/dist/index.umd.cjs +9 -9
- package/dist/widget.d.ts +1 -1
- package/package.json +1 -1
package/dist/constants.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export declare const CONTAINER_ID = "soyio-widget-iframe-container";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const IFRAME_ID = "soyio-widget-iframe";
|
|
3
|
+
export declare const STAGING_WIDGET_URL = "https://staging.soyio.id/widget";
|
|
4
|
+
export declare const LOCALHOST_WIDGET_URL = "http://localhost:3000/widget";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
export interface WidgetProps {
|
|
2
2
|
userEmail?: string;
|
|
3
3
|
companyName?: string;
|
|
4
|
+
widgetUrl?: WidgetUrl;
|
|
4
5
|
}
|
|
5
6
|
declare class Widget {
|
|
6
7
|
private iframe;
|
|
7
8
|
userEmail?: string;
|
|
8
9
|
companyName?: string;
|
|
9
|
-
constructor({ userEmail, companyName }: WidgetProps);
|
|
10
|
+
constructor({ userEmail, companyName, widgetUrl }: WidgetProps);
|
|
10
11
|
initialize(): void;
|
|
11
12
|
}
|
|
12
13
|
export default Widget;
|