@returningai/widget-sdk 1.8.8 → 1.8.10
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/CHANGELOG.md +21 -0
- package/dist/rai-banner.iife.js +1 -1
- package/dist/rai-banner.js +1 -1
- package/dist/rai-widget.iife.js +1 -1
- package/dist/rai-widget.js +2 -2
- package/dist/types/jsx.d.ts +17 -1
- package/package.json +1 -1
package/dist/rai-widget.js
CHANGED
|
@@ -15570,7 +15570,7 @@ class CustomWidget extends BaseWidget {
|
|
|
15570
15570
|
}
|
|
15571
15571
|
}
|
|
15572
15572
|
}
|
|
15573
|
-
console.log(`[rai-widget] v${"1.8.
|
|
15573
|
+
console.log(`[rai-widget] v${"1.8.10"}`);
|
|
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.
|
|
15637
|
+
version: "1.8.10",
|
|
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,
|
package/dist/types/jsx.d.ts
CHANGED
|
@@ -54,11 +54,27 @@ 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
|
|
62
|
+
interface ElementChildrenAttribute {
|
|
63
|
+
children: {}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
interface IntrinsicElements
|
|
67
|
+
extends RaiGlobalIntrinsicElements,
|
|
68
|
+
RaiWidgetIntrinsicElements {}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
namespace JSX {
|
|
73
|
+
interface ElementChildrenAttribute {
|
|
74
|
+
children: {}
|
|
61
75
|
}
|
|
76
|
+
|
|
77
|
+
interface IntrinsicElements extends RaiWidgetIntrinsicElements {}
|
|
62
78
|
}
|
|
63
79
|
}
|
|
64
80
|
|