@salesforce/sdk-chat 1.123.0 → 1.126.0

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -5
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -43,7 +43,7 @@ class d {
43
43
  */
44
44
  handleToolCancelled(t) {
45
45
  const o = t.reason ?? "";
46
- this.canceledCallbacks.forEach((r) => r(o));
46
+ this.canceledCallbacks.forEach((l) => l(o));
47
47
  }
48
48
  /**
49
49
  * Request display mode change from host
@@ -133,7 +133,7 @@ class d {
133
133
  this.subscriptions.forEach((t) => t());
134
134
  }
135
135
  }
136
- const l = "openai:set_globals";
136
+ const r = "openai:set_globals";
137
137
  class p {
138
138
  sendMessageToHost(t) {
139
139
  return window.openai.sendFollowUpMessage({ prompt: t.content });
@@ -169,8 +169,8 @@ class p {
169
169
  }
170
170
  subscribe(t) {
171
171
  const e = () => t();
172
- return window.addEventListener(l, e), () => {
173
- window.removeEventListener(l, e);
172
+ return window.addEventListener(r, e), () => {
173
+ window.removeEventListener(r, e);
174
174
  };
175
175
  }
176
176
  }
@@ -196,7 +196,7 @@ async function f(s) {
196
196
  switch (u(s?.surface)) {
197
197
  case n.OpenAI:
198
198
  return new p();
199
- case n.UIBundle:
199
+ case n.WebApp:
200
200
  case n.Mosaic:
201
201
  return {};
202
202
  case n.SalesforceACC:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/sdk-chat",
3
- "version": "1.123.0",
3
+ "version": "1.126.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -26,7 +26,7 @@
26
26
  "test:coverage": "vitest run --coverage"
27
27
  },
28
28
  "dependencies": {
29
- "@salesforce/sdk-core": "^1.123.0"
29
+ "@salesforce/sdk-core": "^1.126.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "vite": "^7.3.1",