@botonic/webviews 2.30.0 → 2.31.1-alpha.2

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 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 r = {
3711
+ const o = {
3712
3712
  message: t,
3713
3713
  sender: n
3714
- }, i = await this.makeRequest("POST", "", r);
3714
+ }, a = await this.makeRequest("POST", "", o);
3715
3715
  return {
3716
- success: i.ok,
3717
- data: i.ok ? await i.json() : null,
3718
- error: i.ok ? void 0 : `HTTP ${i.status}: ${i.statusText}`,
3719
- status: i.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}/v2/webhooks/webchat/${this.config.appId}/`;
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.30.0",
3
+ "version": "2.31.1-alpha.2",
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.30.0",
16
- "@botonic/shared": "2.30.0",
17
- "@botonic/webchat-core": "2.30.0",
15
+ "@botonic/core": "2.31.1-alpha.2",
16
+ "@botonic/shared": "2.31.1-alpha.2",
17
+ "@botonic/webchat-core": "2.31.1-alpha.2",
18
18
  "@lilara/foundations": ">=0.9.0",
19
19
  "class-variance-authority": "^0.7.0",
20
20
  "react": "18.3.1"