@xapp/chat-widget 1.50.2 → 1.52.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.
@@ -1,7 +1,7 @@
1
+ import { ChatUserInfo } from "@xapp/stentor-chat-widget";
1
2
  import { FC } from "react";
2
3
  import { Display } from "stentor-models";
3
4
  import { ChatMessageRequest } from "../xapp/ChatServerMessage";
4
- import { ChatUserInfo } from "../xapp/UserInfo";
5
5
  export declare type MessageMiddlewareSendMessage = Omit<ChatMessageRequest, "timestamp">;
6
6
  export interface MessageMiddlewareContext {
7
7
  readonly user: ChatUserInfo;
@@ -1,4 +1,4 @@
1
- import { ChatUserInfo } from "../xapp/UserInfo";
1
+ import { ChatUserInfo } from "@xapp/stentor-chat-widget";
2
2
  import { MessageMiddlewareContext } from "./message-middleware";
3
3
  export declare type MessageMiddlewareContextTemplate = Omit<MessageMiddlewareContext, "user">;
4
4
  export declare class MiddlewareContextFactory {
@@ -1,7 +1,7 @@
1
+ import { ChatUserInfo } from "@xapp/stentor-chat-widget";
1
2
  import { Action } from "redux";
2
3
  import { Attachment } from "../xapp/Attachment";
3
4
  import { ChatServerMessage } from "../xapp/ChatServerMessage";
4
- import { ChatUserInfo } from "../xapp/UserInfo";
5
5
  export declare type CONNECTION_STATUS_TYPE = "online" | "pending" | "offline";
6
6
  export declare type ACCOUNT_STATUS_TYPE = "offline" | "online";
7
7
  export declare type ACTION_TYPE = "chat" | "account_status" | "connection_update" | "department_update" | "visitor_update" | "agent_update" | "error" | "reset";
@@ -1,5 +1,5 @@
1
+ import { ChatUserInfo } from "@xapp/stentor-chat-widget";
1
2
  import { ChatServerActionLink } from "../xapp/ChatServerMessage";
2
- import { ChatUserInfo } from "../xapp/UserInfo";
3
3
  import { ACCOUNT_STATUS_TYPE, ChatDetail, CONNECTION_STATUS_TYPE, DepartmentUpdateDetail } from "./ChatAction";
4
4
  interface ChatDepartments {
5
5
  [id: string]: DepartmentUpdateDetail;
@@ -1,4 +1,4 @@
1
+ import { ChatUserInfo } from "@xapp/stentor-chat-widget";
1
2
  import { ChatServerMessage } from "../../xapp/ChatServerMessage";
2
- import { ChatUserInfo } from "../../xapp/UserInfo";
3
3
  import { ActionType } from "../ChatAction";
4
4
  export declare function writeMessage(msg: ChatServerMessage, user: ChatUserInfo): ActionType;
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This mirrors the declaration in Chat-Server
3
3
  */
4
+ import { ChatUserInfo } from "@xapp/stentor-chat-widget";
4
5
  import { Display } from "stentor-models";
5
- import { ChatUserInfo } from "./UserInfo";
6
6
  /**
7
7
  * It's the same request in both (visitor <-> agent) direction!
8
8
  */
@@ -1,7 +1,7 @@
1
+ import { ChatUserInfo } from "@xapp/stentor-chat-widget";
1
2
  import { ActionType } from "../store/ChatAction";
2
3
  import { ChatServer, ChatServerOptions, OfflineMessage } from "./ChatServer";
3
4
  import { ChatMessageRequest, ChatServerMessage } from "./ChatServerMessage";
4
- import { ChatUserInfo } from "./UserInfo";
5
5
  export interface StentorServerChatConfig {
6
6
  readonly url: string;
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xapp/chat-widget",
3
- "version": "1.50.2",
3
+ "version": "1.52.0",
4
4
  "description": "XAPP Chat Widget",
5
5
  "scripts": {
6
6
  "clean": "rm -rf ./lib/* && rm -rf ./dist/*",
@@ -103,12 +103,12 @@
103
103
  "dependencies": {
104
104
  "@rollup/plugin-replace": "^4.0.0",
105
105
  "@xapp/chat-widget-core": "1.50.0",
106
- "@xapp/stentor-chat-widget": "1.50.0",
106
+ "@xapp/stentor-chat-widget": "1.52.0",
107
107
  "date-fns": "2.28.0",
108
108
  "react-transition-group": "4.4.5",
109
109
  "socket.io-client": "4.5.1",
110
110
  "store": "2.0.12",
111
111
  "tslib": "2.4.0"
112
112
  },
113
- "gitHead": "a4ee3849ef82fa008ecaa1c5e8aabaa2aa0450b5"
113
+ "gitHead": "17f4054da7560f3054cf84b9f3e7f2dc5c491acf"
114
114
  }