@droppii-org/chat-sdk 0.1.12 → 0.1.13
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/dist/assets/droppiiFontSelection.json +14521 -14521
- package/dist/assets/sdk/sql-wasm.wasm +0 -0
- package/dist/assets/svg/cannedResponse.tsx +48 -48
- package/dist/assets/svg/document.tsx +37 -37
- package/dist/assets/svg/index.ts +2 -2
- package/dist/hooks/message/useMessage.d.ts.map +1 -1
- package/dist/hooks/message/useMessage.js +0 -12
- package/dist/hooks/message/usePullSessionMessages.d.ts.map +1 -1
- package/dist/hooks/message/usePullSessionMessages.js +0 -7
- package/dist/locales/i18n.ts +18 -18
- package/dist/locales/vi/common.json +112 -112
- package/dist/screens/chatBubble/index.d.ts +1 -1
- package/dist/screens/chatBubble/index.d.ts.map +1 -1
- package/dist/screens/chatBubble/index.js +5 -7
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -10
- package/dist/utils/messageEx.d.ts +0 -5
- package/dist/utils/messageEx.d.ts.map +0 -1
- package/dist/utils/messageEx.js +0 -11
|
File without changes
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
interface ISvgProps {
|
|
2
|
-
size?: number;
|
|
3
|
-
className?: string;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
const CannedResponseIcon = (props: ISvgProps) => (
|
|
7
|
-
<svg
|
|
8
|
-
width={props.size || 18}
|
|
9
|
-
height={props.size || 18}
|
|
10
|
-
viewBox={`${0} ${0} ${props.size || 18} ${props.size || 18}`}
|
|
11
|
-
fill="none"
|
|
12
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
-
className={props?.className}
|
|
14
|
-
>
|
|
15
|
-
<g clipPath="url(#clip0_4070_70030)">
|
|
16
|
-
<path
|
|
17
|
-
fillRule="evenodd"
|
|
18
|
-
clipRule="evenodd"
|
|
19
|
-
d="M6.66732 0.833374C7.12755 0.833374 7.50065 1.20647 7.50065 1.66671L5.00065 18.3334C5.00065 18.7936 4.62755 19.1667 4.16732 19.1667C3.70708 19.1667 3.33398 18.7936 3.33398 18.3334L5.83398 1.66671C5.83398 1.20647 6.20708 0.833374 6.66732 0.833374Z"
|
|
20
|
-
fill="currentColor"
|
|
21
|
-
/>
|
|
22
|
-
<path
|
|
23
|
-
fillRule="evenodd"
|
|
24
|
-
clipRule="evenodd"
|
|
25
|
-
d="M14.9993 0.833374C15.4596 0.833374 15.8327 1.20647 15.8327 1.66671L13.3327 18.3334C13.3327 18.7936 12.9596 19.1667 12.4993 19.1667C12.0391 19.1667 11.666 18.7936 11.666 18.3334L14.166 1.66671C14.166 1.20647 14.5391 0.833374 14.9993 0.833374Z"
|
|
26
|
-
fill="currentColor"
|
|
27
|
-
/>
|
|
28
|
-
<path
|
|
29
|
-
fillRule="evenodd"
|
|
30
|
-
clipRule="evenodd"
|
|
31
|
-
d="M19.1673 5.83333C19.1673 6.29357 18.7942 6.66667 18.334 6.66667H1.66732C1.20708 6.66667 0.833984 6.29357 0.833984 5.83333C0.833984 5.37309 1.20708 5 1.66732 5H18.334C18.7942 5 19.1673 5.3731 19.1673 5.83333Z"
|
|
32
|
-
fill="currentColor"
|
|
33
|
-
/>
|
|
34
|
-
<path
|
|
35
|
-
fillRule="evenodd"
|
|
36
|
-
clipRule="evenodd"
|
|
37
|
-
d="M19.1673 14.1667C19.1673 14.627 18.7942 15 18.334 15H1.66732C1.20708 15 0.833984 14.627 0.833984 14.1667C0.833984 13.7065 1.20708 13.3334 1.66732 13.3334H18.334C18.7942 13.3334 19.1673 13.7065 19.1673 14.1667Z"
|
|
38
|
-
fill="currentColor"
|
|
39
|
-
/>
|
|
40
|
-
</g>
|
|
41
|
-
<defs>
|
|
42
|
-
<clipPath id="clip0_4070_70030">
|
|
43
|
-
<rect width={props.size || 18} height={props.size || 18} fill="white" />
|
|
44
|
-
</clipPath>
|
|
45
|
-
</defs>
|
|
46
|
-
</svg>
|
|
47
|
-
);
|
|
48
|
-
export default CannedResponseIcon;
|
|
1
|
+
interface ISvgProps {
|
|
2
|
+
size?: number;
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
const CannedResponseIcon = (props: ISvgProps) => (
|
|
7
|
+
<svg
|
|
8
|
+
width={props.size || 18}
|
|
9
|
+
height={props.size || 18}
|
|
10
|
+
viewBox={`${0} ${0} ${props.size || 18} ${props.size || 18}`}
|
|
11
|
+
fill="none"
|
|
12
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
+
className={props?.className}
|
|
14
|
+
>
|
|
15
|
+
<g clipPath="url(#clip0_4070_70030)">
|
|
16
|
+
<path
|
|
17
|
+
fillRule="evenodd"
|
|
18
|
+
clipRule="evenodd"
|
|
19
|
+
d="M6.66732 0.833374C7.12755 0.833374 7.50065 1.20647 7.50065 1.66671L5.00065 18.3334C5.00065 18.7936 4.62755 19.1667 4.16732 19.1667C3.70708 19.1667 3.33398 18.7936 3.33398 18.3334L5.83398 1.66671C5.83398 1.20647 6.20708 0.833374 6.66732 0.833374Z"
|
|
20
|
+
fill="currentColor"
|
|
21
|
+
/>
|
|
22
|
+
<path
|
|
23
|
+
fillRule="evenodd"
|
|
24
|
+
clipRule="evenodd"
|
|
25
|
+
d="M14.9993 0.833374C15.4596 0.833374 15.8327 1.20647 15.8327 1.66671L13.3327 18.3334C13.3327 18.7936 12.9596 19.1667 12.4993 19.1667C12.0391 19.1667 11.666 18.7936 11.666 18.3334L14.166 1.66671C14.166 1.20647 14.5391 0.833374 14.9993 0.833374Z"
|
|
26
|
+
fill="currentColor"
|
|
27
|
+
/>
|
|
28
|
+
<path
|
|
29
|
+
fillRule="evenodd"
|
|
30
|
+
clipRule="evenodd"
|
|
31
|
+
d="M19.1673 5.83333C19.1673 6.29357 18.7942 6.66667 18.334 6.66667H1.66732C1.20708 6.66667 0.833984 6.29357 0.833984 5.83333C0.833984 5.37309 1.20708 5 1.66732 5H18.334C18.7942 5 19.1673 5.3731 19.1673 5.83333Z"
|
|
32
|
+
fill="currentColor"
|
|
33
|
+
/>
|
|
34
|
+
<path
|
|
35
|
+
fillRule="evenodd"
|
|
36
|
+
clipRule="evenodd"
|
|
37
|
+
d="M19.1673 14.1667C19.1673 14.627 18.7942 15 18.334 15H1.66732C1.20708 15 0.833984 14.627 0.833984 14.1667C0.833984 13.7065 1.20708 13.3334 1.66732 13.3334H18.334C18.7942 13.3334 19.1673 13.7065 19.1673 14.1667Z"
|
|
38
|
+
fill="currentColor"
|
|
39
|
+
/>
|
|
40
|
+
</g>
|
|
41
|
+
<defs>
|
|
42
|
+
<clipPath id="clip0_4070_70030">
|
|
43
|
+
<rect width={props.size || 18} height={props.size || 18} fill="white" />
|
|
44
|
+
</clipPath>
|
|
45
|
+
</defs>
|
|
46
|
+
</svg>
|
|
47
|
+
);
|
|
48
|
+
export default CannedResponseIcon;
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
export const documentIcon = (
|
|
2
|
-
<svg
|
|
3
|
-
width="40"
|
|
4
|
-
height="40"
|
|
5
|
-
viewBox="0 0 40 40"
|
|
6
|
-
fill="none"
|
|
7
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
8
|
-
>
|
|
9
|
-
<path
|
|
10
|
-
d="M10.1923 5.83301L23.4363 5.83301L34.1656 14.2054V29.8639C34.1656 31.8997 32.5286 34.1663 29.8068 34.1663C27.0849 34.1663 10.1923 34.1663 10.1923 34.1663C7.4704 34.1663 5.8335 31.8997 5.8335 29.8639V10.0305C5.8335 7.99475 7.4704 5.83301 10.1923 5.83301Z"
|
|
11
|
-
fill="#24B0FF"
|
|
12
|
-
></path>
|
|
13
|
-
<path
|
|
14
|
-
d="M10.8335 28.1394V20.833H16.0309V22.4222H12.7026V23.5916H15.3612V25.1708H12.7026V28.1394H10.8335Z"
|
|
15
|
-
fill="#edf6ff"
|
|
16
|
-
></path>
|
|
17
|
-
<path
|
|
18
|
-
d="M19.0073 28.0885V20.833H20.8613V26.5118H24.0146V28.0885L19.0073 28.0885Z"
|
|
19
|
-
fill="#edf6ff"
|
|
20
|
-
></path>
|
|
21
|
-
<path
|
|
22
|
-
d="M16.5918 28.1001V20.833H18.4485V28.1001H16.5918Z"
|
|
23
|
-
fill="#edf6ff"
|
|
24
|
-
></path>
|
|
25
|
-
<path
|
|
26
|
-
d="M24.5737 20.833V28.1393H29.7723V26.5573H26.439L26.4422 25.1708H29.1017V23.5916H26.4422V22.4222H29.7723V20.833H24.5737Z"
|
|
27
|
-
fill="#edf6ff"
|
|
28
|
-
></path>
|
|
29
|
-
<path
|
|
30
|
-
opacity="0.302"
|
|
31
|
-
fillRule="evenodd"
|
|
32
|
-
clipRule="evenodd"
|
|
33
|
-
d="M23.2686 5.83301V14.2281H34.1655L23.2686 5.83301Z"
|
|
34
|
-
fill="#edf6ff"
|
|
35
|
-
></path>
|
|
36
|
-
</svg>
|
|
37
|
-
);
|
|
1
|
+
export const documentIcon = (
|
|
2
|
+
<svg
|
|
3
|
+
width="40"
|
|
4
|
+
height="40"
|
|
5
|
+
viewBox="0 0 40 40"
|
|
6
|
+
fill="none"
|
|
7
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
8
|
+
>
|
|
9
|
+
<path
|
|
10
|
+
d="M10.1923 5.83301L23.4363 5.83301L34.1656 14.2054V29.8639C34.1656 31.8997 32.5286 34.1663 29.8068 34.1663C27.0849 34.1663 10.1923 34.1663 10.1923 34.1663C7.4704 34.1663 5.8335 31.8997 5.8335 29.8639V10.0305C5.8335 7.99475 7.4704 5.83301 10.1923 5.83301Z"
|
|
11
|
+
fill="#24B0FF"
|
|
12
|
+
></path>
|
|
13
|
+
<path
|
|
14
|
+
d="M10.8335 28.1394V20.833H16.0309V22.4222H12.7026V23.5916H15.3612V25.1708H12.7026V28.1394H10.8335Z"
|
|
15
|
+
fill="#edf6ff"
|
|
16
|
+
></path>
|
|
17
|
+
<path
|
|
18
|
+
d="M19.0073 28.0885V20.833H20.8613V26.5118H24.0146V28.0885L19.0073 28.0885Z"
|
|
19
|
+
fill="#edf6ff"
|
|
20
|
+
></path>
|
|
21
|
+
<path
|
|
22
|
+
d="M16.5918 28.1001V20.833H18.4485V28.1001H16.5918Z"
|
|
23
|
+
fill="#edf6ff"
|
|
24
|
+
></path>
|
|
25
|
+
<path
|
|
26
|
+
d="M24.5737 20.833V28.1393H29.7723V26.5573H26.439L26.4422 25.1708H29.1017V23.5916H26.4422V22.4222H29.7723V20.833H24.5737Z"
|
|
27
|
+
fill="#edf6ff"
|
|
28
|
+
></path>
|
|
29
|
+
<path
|
|
30
|
+
opacity="0.302"
|
|
31
|
+
fillRule="evenodd"
|
|
32
|
+
clipRule="evenodd"
|
|
33
|
+
d="M23.2686 5.83301V14.2281H34.1655L23.2686 5.83301Z"
|
|
34
|
+
fill="#edf6ff"
|
|
35
|
+
></path>
|
|
36
|
+
</svg>
|
|
37
|
+
);
|
package/dist/assets/svg/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./document";
|
|
2
|
-
export * from "./cannedResponse";
|
|
1
|
+
export * from "./document";
|
|
2
|
+
export * from "./cannedResponse";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMessage.d.ts","sourceRoot":"","sources":["../../../src/hooks/message/useMessage.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,WAAW,EACX,WAAW,EAEZ,MAAM,yBAAyB,CAAC;AAUjC,eAAO,MAAM,kBAAkB,eAgB9B,CAAC;AAEF,eAAO,MAAM,UAAU,GACrB,iBAAiB,MAAM,EACvB,oBAAoB,MAAM;;;;;qBAOL,WAAW,EAAE;;;;;;qBAAb,WAAW,EAAE;;;;;;
|
|
1
|
+
{"version":3,"file":"useMessage.d.ts","sourceRoot":"","sources":["../../../src/hooks/message/useMessage.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,WAAW,EACX,WAAW,EAEZ,MAAM,yBAAyB,CAAC;AAUjC,eAAO,MAAM,kBAAkB,eAgB9B,CAAC;AAEF,eAAO,MAAM,UAAU,GACrB,iBAAiB,MAAM,EACvB,oBAAoB,MAAM;;;;;qBAOL,WAAW,EAAE;;;;;;qBAAb,WAAW,EAAE;;;;;;CAiPnC,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,SAAS,WAAW,SACpB,CAAC;AAChC,eAAO,MAAM,gBAAgB,GAAI,SAAS,WAAW,SACpB,CAAC;AAClC,eAAO,MAAM,gBAAgB,GAAI,aAAa,MAAM,SACf,CAAC;AAEtC,eAAO,MAAM,kBAAkB,GAC7B,aAAa,WAAW,EAAE,EAC1B,SAAS,WAAW,EACpB,WAAW,MAAM,GAAG,MAAM,KACzB,WAAW,GAAG,SAkBhB,CAAC"}
|
|
@@ -44,19 +44,7 @@ export const useMessage = (conversationId, searchClientMsgID) => {
|
|
|
44
44
|
conversationID: conversationId !== null && conversationId !== void 0 ? conversationId : "",
|
|
45
45
|
viewType: ViewType.History,
|
|
46
46
|
};
|
|
47
|
-
console.log("useMessage getMoreOldMessages params", {
|
|
48
|
-
conversationId,
|
|
49
|
-
loadMore,
|
|
50
|
-
params,
|
|
51
|
-
});
|
|
52
47
|
const { data } = await DChatSDK.getAdvancedHistoryMessageList(params);
|
|
53
|
-
console.log("useMessage getMoreOldMessages result", {
|
|
54
|
-
conversationId,
|
|
55
|
-
loadMore,
|
|
56
|
-
count: data.messageList.length,
|
|
57
|
-
isEnd: data.isEnd,
|
|
58
|
-
messages: data.messageList,
|
|
59
|
-
});
|
|
60
48
|
if (conversationId !== reqConversationID)
|
|
61
49
|
return;
|
|
62
50
|
setTimeout(() => setLoadState((preState) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePullSessionMessages.d.ts","sourceRoot":"","sources":["../../../src/hooks/message/usePullSessionMessages.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAetD,UAAU,4BAA4B;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,sBAAsB,GAAI,sCAIpC,4BAA4B,
|
|
1
|
+
{"version":3,"file":"usePullSessionMessages.d.ts","sourceRoot":"","sources":["../../../src/hooks/message/usePullSessionMessages.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAetD,UAAU,4BAA4B;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,sBAAsB,GAAI,sCAIpC,4BAA4B,yEA4B9B,CAAC"}
|
|
@@ -16,17 +16,10 @@ export const usePullSessionMessages = ({ conversationID, userID, enabled = true,
|
|
|
16
16
|
userID: userID !== null && userID !== void 0 ? userID : "",
|
|
17
17
|
applicationType,
|
|
18
18
|
};
|
|
19
|
-
console.log("usePullSessionMessages payload", payload);
|
|
20
19
|
const res = await apiInstance.post(ENDPOINTS.chatService.pullSessionMessages, payload);
|
|
21
20
|
const group = (_c = (_b = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msgs) === null || _c === void 0 ? void 0 : _c[conversationID !== null && conversationID !== void 0 ? conversationID : ""];
|
|
22
21
|
const rawList = (_d = group === null || group === void 0 ? void 0 : group.Msgs) !== null && _d !== void 0 ? _d : [];
|
|
23
22
|
const messageList = sortMessagesDesc(rawList.map(transformPulledMessage));
|
|
24
|
-
console.log("usePullSessionMessages result", {
|
|
25
|
-
conversationID,
|
|
26
|
-
rawCount: rawList.length,
|
|
27
|
-
messageCount: messageList.length,
|
|
28
|
-
messages: messageList,
|
|
29
|
-
});
|
|
30
23
|
return messageList;
|
|
31
24
|
},
|
|
32
25
|
});
|
package/dist/locales/i18n.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import i18n from "i18next";
|
|
2
|
-
import { initReactI18next } from "react-i18next";
|
|
3
|
-
import vi from "./vi/common.json";
|
|
4
|
-
|
|
5
|
-
if (!i18n.isInitialized) {
|
|
6
|
-
i18n.use(initReactI18next).init({
|
|
7
|
-
resources: {
|
|
8
|
-
vi: { common: vi },
|
|
9
|
-
},
|
|
10
|
-
lng: "vi", // default
|
|
11
|
-
fallbackLng: "vi",
|
|
12
|
-
interpolation: { escapeValue: false },
|
|
13
|
-
ns: ["common"],
|
|
14
|
-
defaultNS: "common",
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export default i18n;
|
|
1
|
+
import i18n from "i18next";
|
|
2
|
+
import { initReactI18next } from "react-i18next";
|
|
3
|
+
import vi from "./vi/common.json";
|
|
4
|
+
|
|
5
|
+
if (!i18n.isInitialized) {
|
|
6
|
+
i18n.use(initReactI18next).init({
|
|
7
|
+
resources: {
|
|
8
|
+
vi: { common: vi },
|
|
9
|
+
},
|
|
10
|
+
lng: "vi", // default
|
|
11
|
+
fallbackLng: "vi",
|
|
12
|
+
interpolation: { escapeValue: false },
|
|
13
|
+
ns: ["common"],
|
|
14
|
+
defaultNS: "common",
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export default i18n;
|
|
@@ -1,113 +1,113 @@
|
|
|
1
|
-
{
|
|
2
|
-
"library": "Thư viện",
|
|
3
|
-
"image": "Ảnh",
|
|
4
|
-
"video": "Video",
|
|
5
|
-
"file": "Tập tin",
|
|
6
|
-
"link": "Liên kết",
|
|
7
|
-
"no_conversation_data": "Vui lòng chọn một cuộc trò chuyện",
|
|
8
|
-
"no_media_files": "Không có tập tin phương tiện",
|
|
9
|
-
"search": "Tìm kiếm",
|
|
10
|
-
"all": "Tất cả",
|
|
11
|
-
"users": "Người dùng",
|
|
12
|
-
"messages": "Tin nhắn",
|
|
13
|
-
"no_conversation": "Không tìm thấy cuộc trò chuyện",
|
|
14
|
-
"download": "Tải xuống",
|
|
15
|
-
"active_sessions": "Đang mở",
|
|
16
|
-
"closed_sessions": "Đã đóng",
|
|
17
|
-
"unassigned": "Chưa phân công",
|
|
18
|
-
"waiting_process": "Chờ xử lý",
|
|
19
|
-
"in_process": "Đang xử lý",
|
|
20
|
-
"completed": "Hoàn thành",
|
|
21
|
-
"awaiting_reply": "Chưa trả lời",
|
|
22
|
-
"slow_processing": "Chậm xử lý",
|
|
23
|
-
"temporarily_paused": "Tạm chờ",
|
|
24
|
-
"see_more": "Xem thêm",
|
|
25
|
-
"err_get_conversation": "Lỗi khi lấy thông tin cuộc trò chuyện",
|
|
26
|
-
"enter_message": "Nhập tin nhắn",
|
|
27
|
-
"enter_internal_message": "Tin nhắn nội bộ chỉ hiển thị với bạn và các thành viên trong nhóm.",
|
|
28
|
-
"reply": "Reply",
|
|
29
|
-
"internal": "Internal",
|
|
30
|
-
"canned_response_hint": "Gõ # và nhấn Enter để chèn câu trả lời nhanh",
|
|
31
|
-
"update_session_status_title": "Cập nhật status",
|
|
32
|
-
"update_session_tag_title": "Cập nhật tag",
|
|
33
|
-
"cancel": "Hủy",
|
|
34
|
-
"update": "Cập nhật",
|
|
35
|
-
"update_session_status_failed": "Cập nhật status không thành công",
|
|
36
|
-
"update_session_tag_failed": "Cập nhật tag không thành công",
|
|
37
|
-
"customer": "Khách hàng",
|
|
38
|
-
"you": "Bạn",
|
|
39
|
-
"message_sender_unnamed": "Thành viên",
|
|
40
|
-
"select_tag": "Chọn tag",
|
|
41
|
-
"search_message": "Tìm kiếm tin nhắn",
|
|
42
|
-
"no_result": "Không có kết quả",
|
|
43
|
-
"no_search_text": "Nhập từ khoá tìm kiếm",
|
|
44
|
-
"add_note": "Thêm ghi chú",
|
|
45
|
-
"note_created": "Đã tạo ghi chú",
|
|
46
|
-
"note_updated": "Đã cập nhật ghi chú",
|
|
47
|
-
"create_note_failed": "Thêm ghi chú thất bại",
|
|
48
|
-
"update_note_failed": "Cập nhật ghi chú thất bại",
|
|
49
|
-
"copied_to_clipboard": "Đã sao chép",
|
|
50
|
-
"message_send_failed": "Gửi tin nhắn thất bại, bạn vui lòng <bold>nhấn để gửi lại</bold>",
|
|
51
|
-
"message_send_failed_no_retry": "Gửi tin nhắn thất bại",
|
|
52
|
-
"context_menu_reply": "Trả lời",
|
|
53
|
-
"context_menu_revoke": "Thu hồi",
|
|
54
|
-
"revoke_message_confirm_title": "Thu hồi tin nhắn?",
|
|
55
|
-
"revoke_message_confirm_message": "Bạn có chắc chắn muốn thu hồi tin nhắn này?",
|
|
56
|
-
"revoke": "Thu hồi",
|
|
57
|
-
"revoked": "Đã thu hồi tin nhắn",
|
|
58
|
-
"manual_assign_search_placeholder": "Tìm kiếm",
|
|
59
|
-
"manual_assign_no_results": "Không có kết quả phù hợp",
|
|
60
|
-
"manual_assign_confirm_question": "Phân công lại cho <bold>{{name}}</bold>?",
|
|
61
|
-
"manual_assign_button_reassign": "Phân công lại",
|
|
62
|
-
"manual_assign_success": "Phân công thành công",
|
|
63
|
-
"manual_assign_failed": "Phân công thất bại",
|
|
64
|
-
"manual_assign_current": "Đang xử lý",
|
|
65
|
-
"video_limit_exceeded": "Chỉ được phép tải lên 1 video duy nhất",
|
|
66
|
-
"select_status": "Chọn trạng thái",
|
|
67
|
-
"invalid_file_format": "{{fileName}} không đúng định dạng JPG, JPEG, PNG hoặc VIDEO",
|
|
68
|
-
"file_size_exceeded": "{{fileName}} có kích thước tập tin vượt quá {{maxSize}}MB",
|
|
69
|
-
"file_processing_error": "Đã xảy ra lỗi khi xử lý tệp",
|
|
70
|
-
"invalid_document_format": "{{fileName}} không đúng định dạng (chỉ hỗ trợ PDF, DOC, DOCX)",
|
|
71
|
-
"view_message": "Xem tin nhắn",
|
|
72
|
-
"search_message_title": "Tìm kiếm tin nhắn",
|
|
73
|
-
"msg_type_image": "[Hình ảnh]",
|
|
74
|
-
"msg_type_voice": "[Tin nhắn thoại]",
|
|
75
|
-
"msg_type_file": "[File đính kèm]",
|
|
76
|
-
"msg_type_link": "[Liên kết]",
|
|
77
|
-
"msg_type_unsupported": "Tin nhắn không khả dụng",
|
|
78
|
-
"session_started": "Phiên chat đã bắt đầu",
|
|
79
|
-
"session_ended": "Phiên chat đã kết thúc",
|
|
80
|
-
"new_message": "Bạn có tin nhắn mới",
|
|
81
|
-
"close_session_success": "Đóng phiên chat thành công",
|
|
82
|
-
"close_session_failed": "Đóng phiên chat thất bại",
|
|
83
|
-
"session_active": "Đang hoạt động",
|
|
84
|
-
"session_add_tag_placeholder": "Thêm thẻ...",
|
|
85
|
-
"session_issue_detail_placeholder": "Vấn đề cụ thể...",
|
|
86
|
-
"session_note_placeholder": "Ghi chú...",
|
|
87
|
-
"session_close_button": "Đóng",
|
|
88
|
-
"member_count": "{{count}} thành viên",
|
|
89
|
-
"choose_emoji": "Chọn biểu tượng cảm xúc",
|
|
90
|
-
"emoji_smileys": "Mặt cười",
|
|
91
|
-
"emoji_nature": "Động vật",
|
|
92
|
-
"emoji_food": "Đồ ăn",
|
|
93
|
-
"emoji_activities": "Hoạt động",
|
|
94
|
-
"session_label": "Phiên {{order}}",
|
|
95
|
-
"sessions_heading": "PHIÊN HỖ TRỢ",
|
|
96
|
-
"reply_to": "Đang trả lời {{name}}",
|
|
97
|
-
"your_self": "chính mình",
|
|
98
|
-
"canned_responses": "Câu trả lời nhanh",
|
|
99
|
-
"team": "Team",
|
|
100
|
-
"personal": "Cá nhân",
|
|
101
|
-
"no_canned_response": "Không tìm thấy kết quả phù hợp",
|
|
102
|
-
"add_canned_response": "Thêm câu trả lời nhanh",
|
|
103
|
-
"canned_response_quick_search_placeholder": "Câu trả lời nhanh phù hợp với",
|
|
104
|
-
"replied_yourself": "đã trả lời chính mình",
|
|
105
|
-
"replied_you": "đã trả lời bạn",
|
|
106
|
-
"replied": "đã trả lời",
|
|
107
|
-
"my_messages": "Tin nhắn của tôi",
|
|
108
|
-
"team_messages": "Tin nhắn nhóm",
|
|
109
|
-
"join_group_required": "Bạn phải là thành viên để gửi tin nhắn",
|
|
110
|
-
"join_group": "Tham gia",
|
|
111
|
-
"join_group_success": "Tham gia nhóm thành công",
|
|
112
|
-
"join_group_failed": "Tham gia nhóm thất bại"
|
|
1
|
+
{
|
|
2
|
+
"library": "Thư viện",
|
|
3
|
+
"image": "Ảnh",
|
|
4
|
+
"video": "Video",
|
|
5
|
+
"file": "Tập tin",
|
|
6
|
+
"link": "Liên kết",
|
|
7
|
+
"no_conversation_data": "Vui lòng chọn một cuộc trò chuyện",
|
|
8
|
+
"no_media_files": "Không có tập tin phương tiện",
|
|
9
|
+
"search": "Tìm kiếm",
|
|
10
|
+
"all": "Tất cả",
|
|
11
|
+
"users": "Người dùng",
|
|
12
|
+
"messages": "Tin nhắn",
|
|
13
|
+
"no_conversation": "Không tìm thấy cuộc trò chuyện",
|
|
14
|
+
"download": "Tải xuống",
|
|
15
|
+
"active_sessions": "Đang mở",
|
|
16
|
+
"closed_sessions": "Đã đóng",
|
|
17
|
+
"unassigned": "Chưa phân công",
|
|
18
|
+
"waiting_process": "Chờ xử lý",
|
|
19
|
+
"in_process": "Đang xử lý",
|
|
20
|
+
"completed": "Hoàn thành",
|
|
21
|
+
"awaiting_reply": "Chưa trả lời",
|
|
22
|
+
"slow_processing": "Chậm xử lý",
|
|
23
|
+
"temporarily_paused": "Tạm chờ",
|
|
24
|
+
"see_more": "Xem thêm",
|
|
25
|
+
"err_get_conversation": "Lỗi khi lấy thông tin cuộc trò chuyện",
|
|
26
|
+
"enter_message": "Nhập tin nhắn",
|
|
27
|
+
"enter_internal_message": "Tin nhắn nội bộ chỉ hiển thị với bạn và các thành viên trong nhóm.",
|
|
28
|
+
"reply": "Reply",
|
|
29
|
+
"internal": "Internal",
|
|
30
|
+
"canned_response_hint": "Gõ # và nhấn Enter để chèn câu trả lời nhanh",
|
|
31
|
+
"update_session_status_title": "Cập nhật status",
|
|
32
|
+
"update_session_tag_title": "Cập nhật tag",
|
|
33
|
+
"cancel": "Hủy",
|
|
34
|
+
"update": "Cập nhật",
|
|
35
|
+
"update_session_status_failed": "Cập nhật status không thành công",
|
|
36
|
+
"update_session_tag_failed": "Cập nhật tag không thành công",
|
|
37
|
+
"customer": "Khách hàng",
|
|
38
|
+
"you": "Bạn",
|
|
39
|
+
"message_sender_unnamed": "Thành viên",
|
|
40
|
+
"select_tag": "Chọn tag",
|
|
41
|
+
"search_message": "Tìm kiếm tin nhắn",
|
|
42
|
+
"no_result": "Không có kết quả",
|
|
43
|
+
"no_search_text": "Nhập từ khoá tìm kiếm",
|
|
44
|
+
"add_note": "Thêm ghi chú",
|
|
45
|
+
"note_created": "Đã tạo ghi chú",
|
|
46
|
+
"note_updated": "Đã cập nhật ghi chú",
|
|
47
|
+
"create_note_failed": "Thêm ghi chú thất bại",
|
|
48
|
+
"update_note_failed": "Cập nhật ghi chú thất bại",
|
|
49
|
+
"copied_to_clipboard": "Đã sao chép",
|
|
50
|
+
"message_send_failed": "Gửi tin nhắn thất bại, bạn vui lòng <bold>nhấn để gửi lại</bold>",
|
|
51
|
+
"message_send_failed_no_retry": "Gửi tin nhắn thất bại",
|
|
52
|
+
"context_menu_reply": "Trả lời",
|
|
53
|
+
"context_menu_revoke": "Thu hồi",
|
|
54
|
+
"revoke_message_confirm_title": "Thu hồi tin nhắn?",
|
|
55
|
+
"revoke_message_confirm_message": "Bạn có chắc chắn muốn thu hồi tin nhắn này?",
|
|
56
|
+
"revoke": "Thu hồi",
|
|
57
|
+
"revoked": "Đã thu hồi tin nhắn",
|
|
58
|
+
"manual_assign_search_placeholder": "Tìm kiếm",
|
|
59
|
+
"manual_assign_no_results": "Không có kết quả phù hợp",
|
|
60
|
+
"manual_assign_confirm_question": "Phân công lại cho <bold>{{name}}</bold>?",
|
|
61
|
+
"manual_assign_button_reassign": "Phân công lại",
|
|
62
|
+
"manual_assign_success": "Phân công thành công",
|
|
63
|
+
"manual_assign_failed": "Phân công thất bại",
|
|
64
|
+
"manual_assign_current": "Đang xử lý",
|
|
65
|
+
"video_limit_exceeded": "Chỉ được phép tải lên 1 video duy nhất",
|
|
66
|
+
"select_status": "Chọn trạng thái",
|
|
67
|
+
"invalid_file_format": "{{fileName}} không đúng định dạng JPG, JPEG, PNG hoặc VIDEO",
|
|
68
|
+
"file_size_exceeded": "{{fileName}} có kích thước tập tin vượt quá {{maxSize}}MB",
|
|
69
|
+
"file_processing_error": "Đã xảy ra lỗi khi xử lý tệp",
|
|
70
|
+
"invalid_document_format": "{{fileName}} không đúng định dạng (chỉ hỗ trợ PDF, DOC, DOCX)",
|
|
71
|
+
"view_message": "Xem tin nhắn",
|
|
72
|
+
"search_message_title": "Tìm kiếm tin nhắn",
|
|
73
|
+
"msg_type_image": "[Hình ảnh]",
|
|
74
|
+
"msg_type_voice": "[Tin nhắn thoại]",
|
|
75
|
+
"msg_type_file": "[File đính kèm]",
|
|
76
|
+
"msg_type_link": "[Liên kết]",
|
|
77
|
+
"msg_type_unsupported": "Tin nhắn không khả dụng",
|
|
78
|
+
"session_started": "Phiên chat đã bắt đầu",
|
|
79
|
+
"session_ended": "Phiên chat đã kết thúc",
|
|
80
|
+
"new_message": "Bạn có tin nhắn mới",
|
|
81
|
+
"close_session_success": "Đóng phiên chat thành công",
|
|
82
|
+
"close_session_failed": "Đóng phiên chat thất bại",
|
|
83
|
+
"session_active": "Đang hoạt động",
|
|
84
|
+
"session_add_tag_placeholder": "Thêm thẻ...",
|
|
85
|
+
"session_issue_detail_placeholder": "Vấn đề cụ thể...",
|
|
86
|
+
"session_note_placeholder": "Ghi chú...",
|
|
87
|
+
"session_close_button": "Đóng",
|
|
88
|
+
"member_count": "{{count}} thành viên",
|
|
89
|
+
"choose_emoji": "Chọn biểu tượng cảm xúc",
|
|
90
|
+
"emoji_smileys": "Mặt cười",
|
|
91
|
+
"emoji_nature": "Động vật",
|
|
92
|
+
"emoji_food": "Đồ ăn",
|
|
93
|
+
"emoji_activities": "Hoạt động",
|
|
94
|
+
"session_label": "Phiên {{order}}",
|
|
95
|
+
"sessions_heading": "PHIÊN HỖ TRỢ",
|
|
96
|
+
"reply_to": "Đang trả lời {{name}}",
|
|
97
|
+
"your_self": "chính mình",
|
|
98
|
+
"canned_responses": "Câu trả lời nhanh",
|
|
99
|
+
"team": "Team",
|
|
100
|
+
"personal": "Cá nhân",
|
|
101
|
+
"no_canned_response": "Không tìm thấy kết quả phù hợp",
|
|
102
|
+
"add_canned_response": "Thêm câu trả lời nhanh",
|
|
103
|
+
"canned_response_quick_search_placeholder": "Câu trả lời nhanh phù hợp với",
|
|
104
|
+
"replied_yourself": "đã trả lời chính mình",
|
|
105
|
+
"replied_you": "đã trả lời bạn",
|
|
106
|
+
"replied": "đã trả lời",
|
|
107
|
+
"my_messages": "Tin nhắn của tôi",
|
|
108
|
+
"team_messages": "Tin nhắn nhóm",
|
|
109
|
+
"join_group_required": "Bạn phải là thành viên để gửi tin nhắn",
|
|
110
|
+
"join_group": "Tham gia",
|
|
111
|
+
"join_group_success": "Tham gia nhóm thành công",
|
|
112
|
+
"join_group_failed": "Tham gia nhóm thất bại"
|
|
113
113
|
}
|
|
@@ -2,6 +2,6 @@ interface DChatBubbleProps {
|
|
|
2
2
|
conversationID?: string;
|
|
3
3
|
className?: string;
|
|
4
4
|
}
|
|
5
|
-
declare const DChatBubble: (props: DChatBubbleProps) => import("react/jsx-runtime").JSX.Element
|
|
5
|
+
declare const DChatBubble: (props: DChatBubbleProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export default DChatBubble;
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/screens/chatBubble/index.tsx"],"names":[],"mappings":"AAOA,UAAU,gBAAgB;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,WAAW,GAAI,OAAO,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/screens/chatBubble/index.tsx"],"names":[],"mappings":"AAOA,UAAU,gBAAgB;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,WAAW,GAAI,OAAO,gBAAgB,4CAiD3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -14,10 +14,11 @@ const DChatBubble = (props) => {
|
|
|
14
14
|
const setConversationData = useConversationStore((state) => state.setConversationData);
|
|
15
15
|
const updateConversationList = useConversationStore((state) => state.updateConversationList);
|
|
16
16
|
const selectedConversationId = useConversationStore((state) => state.selectedConversationId);
|
|
17
|
-
const resolvedConversationID = conversationID ||
|
|
17
|
+
const resolvedConversationID = conversationID ||
|
|
18
|
+
selectedConversationId ||
|
|
19
|
+
((_a = conversationList === null || conversationList === void 0 ? void 0 : conversationList[0]) === null || _a === void 0 ? void 0 : _a.conversationID);
|
|
18
20
|
useEffect(() => {
|
|
19
|
-
if (connectStatus !== ConnectStatus.Connected ||
|
|
20
|
-
!resolvedConversationID) {
|
|
21
|
+
if (connectStatus !== ConnectStatus.Connected || !resolvedConversationID) {
|
|
21
22
|
return;
|
|
22
23
|
}
|
|
23
24
|
const conversation = conversationList === null || conversationList === void 0 ? void 0 : conversationList.find((item) => item.conversationID === resolvedConversationID);
|
|
@@ -34,10 +35,7 @@ const DChatBubble = (props) => {
|
|
|
34
35
|
}
|
|
35
36
|
});
|
|
36
37
|
}
|
|
37
|
-
}, [connectStatus, conversationList, resolvedConversationID]);
|
|
38
|
-
if (connectStatus !== ConnectStatus.Connected) {
|
|
39
|
-
return null;
|
|
40
|
-
}
|
|
38
|
+
}, [connectStatus, conversationList === null || conversationList === void 0 ? void 0 : conversationList.length, resolvedConversationID]);
|
|
41
39
|
return _jsx(ChatBubble, { className: className });
|
|
42
40
|
};
|
|
43
41
|
export default DChatBubble;
|