@seamly/web-ui 21.0.3-beta.1 → 21.0.3-beta.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.
@@ -6796,8 +6796,8 @@ _ConversationConnector_connectionListeners = new WeakMap(), _ConversationConnect
6796
6796
  }, _ConversationConnector_emitConnectionState = function _ConversationConnector_emitConnectionState(payload) {
6797
6797
  // Loop in reverse order to enable splicing the array while iterating
6798
6798
  for (let i = __classPrivateFieldGet(this, _ConversationConnector_connectionListeners, "f").length - 1; i >= 0; i--) {
6799
- const cb = __classPrivateFieldGet(this, _ConversationConnector_connectionListeners, "f")[i];
6800
- const complete = cb(payload);
6799
+ const callback = __classPrivateFieldGet(this, _ConversationConnector_connectionListeners, "f")[i];
6800
+ const complete = callback(payload);
6801
6801
  // If we only want to execute the callback once, remove it from the listener
6802
6802
  if (complete) {
6803
6803
  __classPrivateFieldGet(this, _ConversationConnector_connectionListeners, "f").splice(i, 1);
@@ -6940,8 +6940,8 @@ _ConversationConnector_connectionListeners = new WeakMap(), _ConversationConnect
6940
6940
  }, _ConversationConnector_emitConnectionState = function _ConversationConnector_emitConnectionState(payload) {
6941
6941
  // Loop in reverse order to enable splicing the array while iterating
6942
6942
  for (let i = __classPrivateFieldGet(this, _ConversationConnector_connectionListeners, "f").length - 1; i >= 0; i--) {
6943
- const cb = __classPrivateFieldGet(this, _ConversationConnector_connectionListeners, "f")[i];
6944
- const complete = cb(payload);
6943
+ const callback = __classPrivateFieldGet(this, _ConversationConnector_connectionListeners, "f")[i];
6944
+ const complete = callback(payload);
6945
6945
  // If we only want to execute the callback once, remove it from the listener
6946
6946
  if (complete) {
6947
6947
  __classPrivateFieldGet(this, _ConversationConnector_connectionListeners, "f").splice(i, 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamly/web-ui",
3
- "version": "21.0.3-beta.1",
3
+ "version": "21.0.3-beta.2",
4
4
  "main": "build/dist/lib/index.js",
5
5
  "types": "build/src/javascripts/index.d.ts",
6
6
  "module": "",
@@ -166,8 +166,8 @@ export default class ConversationConnector {
166
166
  #emitConnectionState(payload: ConnectionState) {
167
167
  // Loop in reverse order to enable splicing the array while iterating
168
168
  for (let i = this.#connectionListeners.length - 1; i >= 0; i--) {
169
- const cb = this.#connectionListeners[i]
170
- const complete = cb(payload)
169
+ const callback = this.#connectionListeners[i]
170
+ const complete = callback(payload)
171
171
 
172
172
  // If we only want to execute the callback once, remove it from the listener
173
173
  if (complete) {
@@ -1,6 +1,5 @@
1
1
  import ChatFrame from 'ui/components/layout/deprecated-chat-frame'
2
2
  import { useShowInlineView, useVisibility } from 'domains/visibility/hooks'
3
- import { useSeamlyChat } from '../../hooks/seamly-hooks'
4
3
  import Conversation from '../conversation/conversation'
5
4
  import DeprecatedToggleButton from '../entry/deprecated-toggle-button'
6
5
  import AgentInfo from '../layout/agent-info'
@@ -15,7 +14,6 @@ const ShowInlineView = ({ children }) => {
15
14
  }
16
15
 
17
16
  const DeprecatedView = () => {
18
- useSeamlyChat()
19
17
  const { isVisible, openChat, closeChat } = useVisibility()
20
18
 
21
19
  return (