@botonic/webviews 2.30.0 → 2.31.1-alpha.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 +8 -0
- package/index.js +7 -7
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## 2.31.1-alpha.0 (2026-06-16)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
5
|
+
## 2.31.0 (2026-06-15)
|
|
6
|
+
|
|
7
|
+
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
|
8
|
+
|
|
1
9
|
## 2.30.0 (2026-06-11)
|
|
2
10
|
|
|
3
11
|
This was a version bump only for @botonic/webviews to align it with other projects, there were no code changes.
|
package/index.js
CHANGED
|
@@ -3708,15 +3708,15 @@ class S1 {
|
|
|
3708
3708
|
async postMessage(t, n) {
|
|
3709
3709
|
console.log("incoming message", t);
|
|
3710
3710
|
try {
|
|
3711
|
-
const
|
|
3711
|
+
const o = {
|
|
3712
3712
|
message: t,
|
|
3713
3713
|
sender: n
|
|
3714
|
-
},
|
|
3714
|
+
}, a = await this.makeRequest("POST", "", o);
|
|
3715
3715
|
return {
|
|
3716
|
-
success:
|
|
3717
|
-
data:
|
|
3718
|
-
error:
|
|
3719
|
-
status:
|
|
3716
|
+
success: a.ok,
|
|
3717
|
+
data: a.ok ? await a.json() : null,
|
|
3718
|
+
error: a.ok ? void 0 : `HTTP ${a.status}: ${a.statusText}`,
|
|
3719
|
+
status: a.status
|
|
3720
3720
|
};
|
|
3721
3721
|
} catch (r) {
|
|
3722
3722
|
return console.error("Error posting message:", r), {
|
|
@@ -3780,7 +3780,7 @@ class S1 {
|
|
|
3780
3780
|
updateConfig(t) {
|
|
3781
3781
|
if (this.config = { ...this.config, ...t }, t.appId || t.apiUrl) {
|
|
3782
3782
|
const n = this.config.apiUrl || typeof window < "u" && window.VITE_HUBTYPE_API_URL || "https://api.hubtype.com";
|
|
3783
|
-
this._webchatWebhooksEndpointUrl = `${n}/
|
|
3783
|
+
this._webchatWebhooksEndpointUrl = `${n}/webhooks/webchat/v2/${this.config.appId}/`;
|
|
3784
3784
|
}
|
|
3785
3785
|
}
|
|
3786
3786
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botonic/webviews",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.31.1-alpha.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@botonic/core": "2.
|
|
16
|
-
"@botonic/shared": "2.
|
|
17
|
-
"@botonic/webchat-core": "2.
|
|
15
|
+
"@botonic/core": "2.31.1-alpha.10",
|
|
16
|
+
"@botonic/shared": "2.31.1-alpha.10",
|
|
17
|
+
"@botonic/webchat-core": "2.31.1-alpha.10",
|
|
18
18
|
"@lilara/foundations": ">=0.9.0",
|
|
19
19
|
"class-variance-authority": "^0.7.0",
|
|
20
20
|
"react": "18.3.1"
|