@returningai/widget-sdk 1.8.8 → 1.8.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.
@@ -15570,7 +15570,7 @@ class CustomWidget extends BaseWidget {
15570
15570
  }
15571
15571
  }
15572
15572
  }
15573
- console.log(`[rai-widget] v${"1.8.8"}`);
15573
+ console.log(`[rai-widget] v${"1.8.9"}`);
15574
15574
  class StoreWidgetCompat extends StoreWidget {
15575
15575
  }
15576
15576
  const WIDGET_REGISTRY = [
@@ -15634,7 +15634,7 @@ function exposePublicApi() {
15634
15634
  })();
15635
15635
  const widget = container == null ? void 0 : container.querySelector(ALL_WIDGET_SELECTOR);
15636
15636
  window.ReturningAIWidget = {
15637
- version: "1.8.8",
15637
+ version: "1.8.9",
15638
15638
  reload: () => (widget == null ? void 0 : widget.reload()) ?? Promise.resolve(),
15639
15639
  logout: () => (widget == null ? void 0 : widget.logoutPublic()) ?? Promise.resolve(),
15640
15640
  isAuthenticated: () => (widget == null ? void 0 : widget.isAuthenticated()) ?? false,
@@ -54,12 +54,20 @@ interface RaiWidgetIntrinsicElements {
54
54
  'rai-widget': RaiCommunityWidgetElementAttributes
55
55
  }
56
56
 
57
+ type RaiGlobalIntrinsicElements = JSX.IntrinsicElements
58
+
57
59
  declare global {
58
60
  namespace React {
59
61
  namespace JSX {
60
- interface IntrinsicElements extends RaiWidgetIntrinsicElements {}
62
+ interface IntrinsicElements
63
+ extends RaiGlobalIntrinsicElements,
64
+ RaiWidgetIntrinsicElements {}
61
65
  }
62
66
  }
67
+
68
+ namespace JSX {
69
+ interface IntrinsicElements extends RaiWidgetIntrinsicElements {}
70
+ }
63
71
  }
64
72
 
65
73
  declare module '@vue/runtime-core' {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@returningai/widget-sdk",
3
- "version": "1.8.8",
3
+ "version": "1.8.9",
4
4
  "description": "Shadow DOM isolated widget SDK for ReturningAI",
5
5
  "main": "dist/rai-widget.iife.js",
6
6
  "module": "dist/rai-widget.js",