@seamly/web-ui 21.0.3-beta.1 → 21.0.3-beta.3
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.
- package/build/dist/lib/components.js +132 -134
- package/build/dist/lib/components.min.js +1 -1
- package/build/dist/lib/index.debug.js +3 -3
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.js +3 -5
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/standalone.js +3 -5
- package/build/dist/lib/standalone.min.js +1 -1
- package/build/dist/lib/style-guide.js +3 -3
- package/build/dist/lib/style-guide.min.js +1 -1
- package/build/dist/lib/utils.js +3 -3
- package/build/dist/lib/utils.min.js +1 -1
- package/package.json +1 -1
- package/src/javascripts/api/conversation-connector.ts +2 -2
- package/src/javascripts/ui/components/view/deprecated-view.js +0 -2
package/package.json
CHANGED
|
@@ -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
|
|
170
|
-
const complete =
|
|
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 (
|