@simpoobusiness/sdk 2.0.86 → 2.0.88

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/embed.d.ts CHANGED
@@ -15,8 +15,10 @@ export declare function init(config: {
15
15
  /**
16
16
  * Renders the Inventory widget inside a container.
17
17
  * @param widgetName - name for the inventory widget.
18
- * @param selector - CSS selector for the container element.
18
+ * @param selector - CSS selector for the container element OR a direct DOM Element.
19
19
  * @example
20
20
  * SimpooSDK.renderWidget("inventory", "#inventory-widget");
21
21
  */
22
- export declare function renderWidget(widgetName: string, selector: string, props?: Record<string, any>): Promise<void>;
22
+ export declare function renderWidget(widgetName: string, selector: string | Element, props?: Record<string, any>): Promise<{
23
+ unmount: () => void;
24
+ } | undefined>;