@droppii-org/chat-sdk 0.1.84 → 0.1.85

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 (38) hide show
  1. package/dist/assets/droppiiFontSelection.json +24523 -24523
  2. package/dist/assets/images/emptyResources.png +0 -0
  3. package/dist/assets/sdk/sql-wasm.wasm +0 -0
  4. package/dist/assets/svg/canned-response.tsx +48 -48
  5. package/dist/assets/svg/document.tsx +37 -37
  6. package/dist/assets/svg/index.d.ts +0 -1
  7. package/dist/assets/svg/index.d.ts.map +1 -1
  8. package/dist/assets/svg/index.js +0 -1
  9. package/dist/assets/svg/index.ts +2 -3
  10. package/dist/components/media-resources/ResourceEmptyState.d.ts.map +1 -1
  11. package/dist/components/media-resources/ResourceEmptyState.js +2 -2
  12. package/dist/constants/images.d.ts +1 -0
  13. package/dist/constants/images.d.ts.map +1 -1
  14. package/dist/constants/images.js +2 -0
  15. package/dist/locales/i18n.ts +19 -19
  16. package/dist/locales/vi/common.json +171 -171
  17. package/dist/locales/vi/conversation-inbox.json +53 -53
  18. package/dist/store/auth.d.ts.map +1 -1
  19. package/dist/store/auth.js +9 -3
  20. package/package.json +132 -132
  21. package/dist/assets/svg/empty-box.d.ts +0 -2
  22. package/dist/assets/svg/empty-box.d.ts.map +0 -1
  23. package/dist/assets/svg/empty-box.js +0 -2
  24. package/dist/assets/svg/empty-box.tsx +0 -34
  25. package/dist/assets/svg/file-pdf.d.ts +0 -2
  26. package/dist/assets/svg/file-pdf.d.ts.map +0 -1
  27. package/dist/assets/svg/file-pdf.js +0 -2
  28. package/dist/assets/svg/file-pdf.tsx +0 -13
  29. package/dist/components/media-resources/VideoPreviewModal.d.ts +0 -10
  30. package/dist/components/media-resources/VideoPreviewModal.d.ts.map +0 -1
  31. package/dist/components/media-resources/VideoPreviewModal.js +0 -26
  32. package/dist/hooks/message/useJumpToMessage.d.ts +0 -5
  33. package/dist/hooks/message/useJumpToMessage.d.ts.map +0 -1
  34. package/dist/hooks/message/useJumpToMessage.js +0 -32
  35. package/dist/tsconfig.tsbuildinfo +0 -1
  36. package/dist/types/sticker.d.ts +0 -9
  37. package/dist/types/sticker.d.ts.map +0 -1
  38. package/dist/types/sticker.js +0 -5
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
+ );
@@ -1,4 +1,3 @@
1
1
  export * from "./document";
2
2
  export * from "./canned-response";
3
- export * from "./empty-box";
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/assets/svg/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/assets/svg/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC"}
@@ -1,3 +1,2 @@
1
1
  export * from "./document";
2
2
  export * from "./canned-response";
3
- export * from "./empty-box";
@@ -1,3 +1,2 @@
1
- export * from "./document";
2
- export * from "./canned-response";
3
- export * from "./empty-box";
1
+ export * from "./document";
2
+ export * from "./canned-response";
@@ -1 +1 @@
1
- {"version":3,"file":"ResourceEmptyState.d.ts","sourceRoot":"","sources":["../../../src/components/media-resources/ResourceEmptyState.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,mBAAmB,EAEpB,MAAM,aAAa,CAAC;AAErB,UAAU,uBAAuB;IAC/B,MAAM,EAAE,mBAAmB,CAAC;CAC7B;AAED,QAAA,MAAM,kBAAkB,GAAI,YAAY,uBAAuB,4CAc9D,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"ResourceEmptyState.d.ts","sourceRoot":"","sources":["../../../src/components/media-resources/ResourceEmptyState.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,mBAAmB,EAEpB,MAAM,aAAa,CAAC;AAErB,UAAU,uBAAuB;IAC/B,MAAM,EAAE,mBAAmB,CAAC;CAC7B;AAED,QAAA,MAAM,kBAAkB,GAAI,YAAY,uBAAuB,4CAkB9D,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useTranslation } from "react-i18next";
4
- import { emptyBoxIcon } from "../../assets/svg";
4
+ import { images } from "../../constants/images";
5
5
  import { RESOURCE_EMPTY_TEXT_KEY, } from "./constants";
6
6
  const ResourceEmptyState = ({ tabKey }) => {
7
7
  const { t } = useTranslation();
8
- return (_jsxs("div", { "data-testid": "resource-empty-state", className: "flex h-full w-full flex-col items-center gap-3 bg-white px-8 py-[42px]", children: [_jsx("div", { className: "h-[120px] w-[120px] shrink-0", children: emptyBoxIcon }), _jsx("p", { className: "text-center text-[16px] font-normal leading-[1.6] tracking-[0.16px] text-gray-600", children: t(RESOURCE_EMPTY_TEXT_KEY[tabKey]) })] }));
8
+ return (_jsxs("div", { "data-testid": "resource-empty-state", className: "flex h-full w-full flex-col items-center gap-3 bg-white px-8 py-[42px]", children: [_jsx("img", { src: images.emptyResources, alt: "", className: "h-[120px] w-[120px] shrink-0" }), _jsx("p", { className: "text-center text-[16px] font-normal leading-[1.6] tracking-[0.16px] text-gray-600", children: t(RESOURCE_EMPTY_TEXT_KEY[tabKey]) })] }));
9
9
  };
10
10
  export default ResourceEmptyState;
@@ -1,5 +1,6 @@
1
1
  export declare const images: {
2
2
  conversationBg: string;
3
3
  imageFailed: string;
4
+ emptyResources: string;
4
5
  };
5
6
  //# sourceMappingURL=images.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"images.d.ts","sourceRoot":"","sources":["../../src/constants/images.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,MAAM;;;CAGlB,CAAC"}
1
+ {"version":3,"file":"images.d.ts","sourceRoot":"","sources":["../../src/constants/images.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,MAAM;;;;CAIlB,CAAC"}
@@ -1,7 +1,9 @@
1
1
  const conversationBg = new URL("../assets/images/conversationBg.png", import.meta.url).href;
2
2
  const imageFailed = new URL("../assets/images/imageFailed.png", import.meta.url)
3
3
  .href;
4
+ const emptyResources = new URL("../assets/images/emptyResources.png", import.meta.url).href;
4
5
  export const images = {
5
6
  conversationBg,
6
7
  imageFailed,
8
+ emptyResources,
7
9
  };
@@ -1,19 +1,19 @@
1
- import i18n from "i18next";
2
- import { initReactI18next } from "react-i18next";
3
- import vi from "./vi/common.json";
4
- import viConversationInbox from "./vi/conversation-inbox.json";
5
-
6
- if (!i18n.isInitialized) {
7
- i18n.use(initReactI18next).init({
8
- resources: {
9
- vi: { common: vi, "conversation-inbox": viConversationInbox },
10
- },
11
- lng: "vi",
12
- fallbackLng: "vi",
13
- interpolation: { escapeValue: false },
14
- ns: ["common", "conversation-inbox"],
15
- defaultNS: "common",
16
- });
17
- }
18
-
19
- export default i18n;
1
+ import i18n from "i18next";
2
+ import { initReactI18next } from "react-i18next";
3
+ import vi from "./vi/common.json";
4
+ import viConversationInbox from "./vi/conversation-inbox.json";
5
+
6
+ if (!i18n.isInitialized) {
7
+ i18n.use(initReactI18next).init({
8
+ resources: {
9
+ vi: { common: vi, "conversation-inbox": viConversationInbox },
10
+ },
11
+ lng: "vi",
12
+ fallbackLng: "vi",
13
+ interpolation: { escapeValue: false },
14
+ ns: ["common", "conversation-inbox"],
15
+ defaultNS: "common",
16
+ });
17
+ }
18
+
19
+ export default i18n;