@soyio/soyio-widget 0.0.4 → 0.0.6
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 +2 -2
- package/dist/events.d.ts +3 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +201 -199
- package/dist/index.umd.cjs +10 -10
- package/package.json +1 -1
package/dist/constants.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const DEVELOPMENT_WIDGET_URL = "
|
|
1
|
+
export declare const CONTAINER_ID = "soyio-widget-iframe-container";
|
|
2
|
+
export declare const DEVELOPMENT_WIDGET_URL = "http://localhost:3000/widget";
|
package/dist/events.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { WidgetProps } from './index';
|
|
1
2
|
declare function setReady(iframe: HTMLIFrameElement): void;
|
|
2
|
-
declare function
|
|
3
|
-
export { setReady,
|
|
3
|
+
declare function setConfig(iframe: HTMLIFrameElement, config: WidgetProps): void;
|
|
4
|
+
export { setReady, setConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
interface WidgetProps {
|
|
1
|
+
export interface WidgetProps {
|
|
2
2
|
userEmail?: string;
|
|
3
|
+
companyName?: string;
|
|
3
4
|
}
|
|
4
5
|
declare class Widget {
|
|
5
6
|
private iframe;
|
|
6
7
|
userEmail?: string;
|
|
7
|
-
|
|
8
|
+
companyName?: string;
|
|
9
|
+
constructor({ userEmail, companyName }: WidgetProps);
|
|
8
10
|
initialize(): void;
|
|
9
11
|
}
|
|
10
12
|
export default Widget;
|