@chatwoot/agent-react-components 4.2.1-1750146809.1b31b8b93c → 4.2.1-1750241647.1b31b8b93c

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 (3) hide show
  1. package/index.cjs +2 -2
  2. package/index.js +4 -4
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -75677,7 +75677,7 @@ const nWe = 2e4, sWe = 1e3, Il = class Il {
75677
75677
  Ve(this, "onDisconnected", () => {
75678
75678
  });
75679
75679
  Ve(this, "onReceived", ({ event: e, data: r } = {}) => {
75680
- this.isAValidEvent(r) && this.events[e] && typeof this.events[e] == "function" && this.events[e](r);
75680
+ console.group(e), console.log("ActionCable received:", { event: e, data: r }), this.isAValidEvent(r) ? (console.log("Event validation passed for:", e), this.events[e] && typeof this.events[e] == "function" ? (console.log("Executing event handler for:", e), this.events[e](r)) : console.log("No handler found for event:", e)) : console.log("Event validation failed for:", e, r), console.groupEnd();
75681
75681
  });
75682
75682
  const o = a ? `${a}/cable` : void 0;
75683
75683
  this.consumer = iWe.createConsumer(o), this.subscription = this.consumer.subscriptions.create(
@@ -75911,7 +75911,7 @@ class AWe extends Fp {
75911
75911
  conversation: { last_activity_at: a },
75912
75912
  conversation_id: o
75913
75913
  } = r;
75914
- window.__WOOT_ISOLATED_SHELL__ || EWe.onNewMessage(r), this.app.$store.dispatch("addMessage", r), this.app.$store.dispatch("updateConversationLastActivity", {
75914
+ window.__WOOT_ISOLATED_SHELL__ || EWe.onNewMessage(r), console.log("PROCESSING MESSAGE CREATED"), this.app.$store.dispatch("addMessage", r), this.app.$store.dispatch("updateConversationLastActivity", {
75915
75915
  lastActivityAt: a,
75916
75916
  conversationId: o
75917
75917
  });
@@ -76007,7 +76007,7 @@ class AWe extends Fp {
76007
76007
  }
76008
76008
  const lM = {
76009
76009
  init(t, e) {
76010
- return new AWe({ $store: t }, e);
76010
+ return console.log("INITIALIZING ACTIONCABLE", { pubsubToken: e }), new AWe({ $store: t }, e);
76011
76011
  }
76012
76012
  };
76013
76013
  /*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */
@@ -78319,7 +78319,7 @@ const {
78319
78319
  };
78320
78320
  function m() {
78321
78321
  $We(), window.__WOOT_API_HOST__ = h.baseURL, window.__WOOT_ACCOUNT_ID__ = h.accountId, window.__WOOT_ACCESS_TOKEN__ = h.userToken, window.__WEBSOCKET_URL__ = h.websocketURL, window.__PUBSUB_TOKEN__ = h.pubsubToken, window.__WOOT_CONVERSATION_ID__ = h.conversationId, window.__EDITOR_DISABLE_UPLOAD__ = h.disableUpload, window.__EDITOR_DISABLE_PRIVATE_NOTE__ = h.disablePrivateNote, window.__DISABLE_EDITOR__ = h.disableEditor, window.__WOOT_ISOLATED_SHELL__ = !0, mBe(), window.WootConstants = ac, window.axios = OJe(_t), vc.dispatch("setUser").then(() => {
78322
- lM.init(vc, h.pubsubToken), g(!0);
78322
+ console.log("INITALIZING USER AND ACTION CABLE"), lM.init(vc, h.pubsubToken), g(!0);
78323
78323
  });
78324
78324
  }
78325
78325
  return H3(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chatwoot/agent-react-components",
3
- "version": "4.2.1-1750146809.1b31b8b93c",
3
+ "version": "4.2.1-1750241647.1b31b8b93c",
4
4
  "description": "React components for Chatwoot messaging interface with Vue Web Components",
5
5
  "main": "index.cjs",
6
6
  "module": "index.js",