@heybello/bello-sdk 0.1.0

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.
@@ -0,0 +1,6 @@
1
+ import type { InitOptions, Cmd } from './types';
2
+ import './polyfills';
3
+ export declare function initWidget(opts: InitOptions): Promise<void>;
4
+ export declare function updateWidget(opts: Partial<InitOptions>): void;
5
+ export declare function dispatchWidgetEvent(type: 'open' | 'close'): void;
6
+ export declare function handleCommand(cmd: Cmd): Promise<void>;
@@ -0,0 +1,8 @@
1
+ import type { Cmd } from './types';
2
+ declare global {
3
+ interface Window {
4
+ Bello?: Cmd[] & {
5
+ push?: (c: Cmd) => number;
6
+ };
7
+ }
8
+ }
@@ -0,0 +1,2 @@
1
+ export type * from './types';
2
+ export { default as BelloWidget } from './react-wrapper';
@@ -0,0 +1,2 @@
1
+ export declare function ensureContainer(id?: string): HTMLElement;
2
+ export declare function createShadowHost(container: HTMLElement): ShadowRoot;
@@ -0,0 +1,6 @@
1
+ declare global {
2
+ interface Window {
3
+ process?: any;
4
+ }
5
+ }
6
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { InitOptions } from './types';
2
+ export default function BelloWidget(props: InitOptions): null;