@ada-support/embed2 1.6.37 → 1.6.40

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.
@@ -13260,7 +13260,7 @@ const client = new error_tracker_BrowserClient({
13260
13260
  return event;
13261
13261
  },
13262
13262
  environment: "production",
13263
- release: "1.6.37-7120077",
13263
+ release: "1.6.40-eca8973",
13264
13264
  sampleRate: 0.25,
13265
13265
  autoSessionTracking: false,
13266
13266
  // Integrations don't seem to work with Sentry: https://github.com/getsentry/sentry-javascript/issues/2541
@@ -13832,7 +13832,7 @@ function getEmbedURL(_ref) {
13832
13832
  } else {
13833
13833
  host = `http://${window.location.hostname}:9001`;
13834
13834
  }
13835
- return `${host}/embed/${frameName}/${"7120077"}/index.html`;
13835
+ return `${host}/embed/${frameName}/${"eca8973"}/index.html`;
13836
13836
  }
13837
13837
  function constructQueryString(query) {
13838
13838
  return Object.keys(query).map(key => {
@@ -15304,9 +15304,9 @@ async function log(message, extra, options) {
15304
15304
  service: "embed",
15305
15305
  env: "production",
15306
15306
  embedVersion: 2,
15307
- version: "1.6.37",
15307
+ version: "1.6.40",
15308
15308
  isNpm: true,
15309
- commitHash: "7120077"
15309
+ commitHash: "eca8973"
15310
15310
  }))
15311
15311
  });
15312
15312
  }
@@ -15675,17 +15675,16 @@ class ButtonFrame extends d {
15675
15675
  const {
15676
15676
  client
15677
15677
  } = this.props;
15678
- const roleDescription = () => {
15678
+ const getTitle = () => {
15679
15679
  if (!(client !== null && client !== void 0 && client.handle)) {
15680
- return "Chat Button";
15680
+ return "Chat Button Frame";
15681
15681
  }
15682
- return `${client.handle.charAt(0).toUpperCase() + client.handle.slice(1)} Chat Button`;
15682
+ return `${client.handle.charAt(0).toUpperCase() + client.handle.slice(1)} Chat Button Frame`;
15683
15683
  };
15684
15684
  return v(StoreContext.Consumer, null, store => v(MessageServiceContext.Consumer, null, messageService => v(components_IFrame, {
15685
- title: "Chat with bot",
15685
+ title: getTitle(),
15686
15686
  styles: this.styles,
15687
15687
  name: BUTTON_IFRAME,
15688
- roleDescription: roleDescription(),
15689
15688
  store: store,
15690
15689
  messageService: messageService,
15691
15690
  onTransitionEnd: this.handleOnTransitionEndBound
@@ -15835,7 +15834,7 @@ class ChatFrame extends d {
15835
15834
  const hostPageUrlParams = new URL(window.location.href).searchParams;
15836
15835
  const smsToken = hostPageUrlParams.get("adaSMSToken");
15837
15836
  const queryParams = {
15838
- embedVersion: "7120077".slice(0, 7),
15837
+ embedVersion: "eca8973".slice(0, 7),
15839
15838
  greeting,
15840
15839
  language,
15841
15840
  skipGreeting,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ada-support/embed2",
3
- "version": "1.6.37",
3
+ "version": "1.6.40",
4
4
  "description": "",
5
5
  "main": "dist/npm-entry",
6
6
  "typings": "dist/npm-entry/index-npm.d.ts",