@morgan-and-morgan/intake-agent 1.9.0-beta.1 → 1.9.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.
@@ -3,7 +3,7 @@
3
3
  const readLoaderConfig = (script, baseUri) => {
4
4
  var _a;
5
5
  const scriptUrl = new URL(script.src, baseUri);
6
- const bundledChatUrl = "https://chat-uat.mx2.dev/embed/intake";
6
+ const bundledChatUrl = "https://chat.mx2.law/embed/intake";
7
7
  const chatUrl = new URL((_a = script.dataset.chatUrl) != null ? _a : bundledChatUrl, scriptUrl).href;
8
8
  return {
9
9
  assetBaseUrl: new URL(".", scriptUrl).href,
@@ -125,6 +125,8 @@
125
125
  const EMBED_MESSAGE_TYPE = Object.freeze({
126
126
  HOST_READY: "mm:intake:host-ready",
127
127
  CHILD_READY: "mm:intake:child-ready",
128
+ NEW_CHAT: "mm:intake:new-chat",
129
+ SESSION_RESET: "mm:intake:session-reset",
128
130
  // Host asks the embedded chat to put the caret in its composer. Kept
129
131
  // separate from HOST_READY so signing-card handshakes never steal focus.
130
132
  FOCUS_COMPOSER: "mm:intake:focus-composer",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morgan-and-morgan/intake-agent",
3
- "version": "1.9.0-beta.1",
3
+ "version": "1.9.0",
4
4
  "description": "Embeddable chat widget loader.",
5
5
  "license": "UNLICENSED",
6
6
  "files": [