@droppii-org/chat-sdk 0.1.81 → 0.1.82
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 +24523 -24523
- package/dist/assets/sdk/sql-wasm.wasm +0 -0
- package/dist/assets/svg/canned-response.tsx +48 -48
- package/dist/assets/svg/document.tsx +37 -37
- package/dist/assets/svg/index.ts +1 -1
- package/dist/components/conversation/ConversationBySessionItem.d.ts.map +1 -1
- package/dist/components/conversation/ConversationBySessionItem.js +3 -0
- package/dist/components/conversation-inbox/ConversationInboxList.d.ts.map +1 -1
- package/dist/components/conversation-inbox/ConversationInboxList.js +3 -0
- package/dist/hooks/user/useUpdateFcmToken.d.ts.map +1 -1
- package/dist/hooks/user/useUpdateFcmToken.js +15 -1
- package/dist/locales/i18n.ts +19 -19
- package/dist/locales/vi/common.json +162 -162
- package/dist/locales/vi/conversation-inbox.json +52 -52
- package/dist/screens/conversation-detail/index.d.ts.map +1 -1
- package/dist/screens/conversation-detail/index.js +3 -0
- package/dist/screens/conversation-inbox/index.d.ts.map +1 -1
- package/dist/screens/conversation-inbox/index.js +5 -1
- package/package.json +132 -132
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/types/sticker.d.ts +0 -9
- package/dist/types/sticker.d.ts.map +0 -1
- package/dist/types/sticker.js +0 -5
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
{
|
|
2
|
-
"tabs": {
|
|
3
|
-
"messages": "Tin nhắn"
|
|
4
|
-
},
|
|
5
|
-
"empty": {
|
|
6
|
-
"no_conversations": "Chưa có cuộc trò chuyện",
|
|
7
|
-
"no_messages": "Chưa có tin nhắn"
|
|
8
|
-
},
|
|
9
|
-
"thread_card": {
|
|
10
|
-
"fallback_name": "Người dùng",
|
|
11
|
-
"bot_crm_name": "Droppii Hỗ Trợ",
|
|
12
|
-
"badge": {
|
|
13
|
-
"mall": "Mall",
|
|
14
|
-
"bot": "Bot"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"thread_detail": {
|
|
18
|
-
"profile_hint": "Nhấn để xem thông tin",
|
|
19
|
-
"input_placeholder": "Nhập tin nhắn...",
|
|
20
|
-
"resolve_failed": "Không thể mở cuộc trò chuyện",
|
|
21
|
-
"more_option": {
|
|
22
|
-
"toggle": "Tùy chọn khác",
|
|
23
|
-
"media": "Ảnh/Video",
|
|
24
|
-
"camera": "Chụp ảnh",
|
|
25
|
-
"document": "Tài liệu",
|
|
26
|
-
"order": "Gửi đơn hàng",
|
|
27
|
-
"product": "Gửi sản phẩm",
|
|
28
|
-
"appointment": "Tạo lịch hẹn"
|
|
29
|
-
},
|
|
30
|
-
"bot": {
|
|
31
|
-
"start": "Bắt đầu",
|
|
32
|
-
"restart": "Bắt đầu lại",
|
|
33
|
-
"inactive_notice": "Người dùng này không còn khả dụng",
|
|
34
|
-
"menu": {
|
|
35
|
-
"title": "Gợi ý",
|
|
36
|
-
"trigger": "Gợi ý khác",
|
|
37
|
-
"open_menu": "Xem gợi ý khác"
|
|
38
|
-
},
|
|
39
|
-
"cs_confirm": {
|
|
40
|
-
"title": "Kết thúc phiên hỗ trợ",
|
|
41
|
-
"body": "Bạn đang trong phiên hỗ trợ với hỗ trợ viên, bạn có muốn <bold>kết thúc phiên hỗ trợ</bold> ngay bây giờ?",
|
|
42
|
-
"confirm": "Kết thúc",
|
|
43
|
-
"cancel": "Tiếp tục",
|
|
44
|
-
"close_failed": "Không thể kết thúc phiên hỗ trợ. Vui lòng thử lại."
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
"link_preview": {
|
|
49
|
-
"loading": "Đang tải xem trước liên kết...",
|
|
50
|
-
"remove": "Xóa xem trước liên kết"
|
|
51
|
-
},
|
|
52
|
-
"link_open_error": "Không thể mở liên kết. Vui lòng thử lại."
|
|
1
|
+
{
|
|
2
|
+
"tabs": {
|
|
3
|
+
"messages": "Tin nhắn"
|
|
4
|
+
},
|
|
5
|
+
"empty": {
|
|
6
|
+
"no_conversations": "Chưa có cuộc trò chuyện",
|
|
7
|
+
"no_messages": "Chưa có tin nhắn"
|
|
8
|
+
},
|
|
9
|
+
"thread_card": {
|
|
10
|
+
"fallback_name": "Người dùng",
|
|
11
|
+
"bot_crm_name": "Droppii Hỗ Trợ",
|
|
12
|
+
"badge": {
|
|
13
|
+
"mall": "Mall",
|
|
14
|
+
"bot": "Bot"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"thread_detail": {
|
|
18
|
+
"profile_hint": "Nhấn để xem thông tin",
|
|
19
|
+
"input_placeholder": "Nhập tin nhắn...",
|
|
20
|
+
"resolve_failed": "Không thể mở cuộc trò chuyện",
|
|
21
|
+
"more_option": {
|
|
22
|
+
"toggle": "Tùy chọn khác",
|
|
23
|
+
"media": "Ảnh/Video",
|
|
24
|
+
"camera": "Chụp ảnh",
|
|
25
|
+
"document": "Tài liệu",
|
|
26
|
+
"order": "Gửi đơn hàng",
|
|
27
|
+
"product": "Gửi sản phẩm",
|
|
28
|
+
"appointment": "Tạo lịch hẹn"
|
|
29
|
+
},
|
|
30
|
+
"bot": {
|
|
31
|
+
"start": "Bắt đầu",
|
|
32
|
+
"restart": "Bắt đầu lại",
|
|
33
|
+
"inactive_notice": "Người dùng này không còn khả dụng",
|
|
34
|
+
"menu": {
|
|
35
|
+
"title": "Gợi ý",
|
|
36
|
+
"trigger": "Gợi ý khác",
|
|
37
|
+
"open_menu": "Xem gợi ý khác"
|
|
38
|
+
},
|
|
39
|
+
"cs_confirm": {
|
|
40
|
+
"title": "Kết thúc phiên hỗ trợ",
|
|
41
|
+
"body": "Bạn đang trong phiên hỗ trợ với hỗ trợ viên, bạn có muốn <bold>kết thúc phiên hỗ trợ</bold> ngay bây giờ?",
|
|
42
|
+
"confirm": "Kết thúc",
|
|
43
|
+
"cancel": "Tiếp tục",
|
|
44
|
+
"close_failed": "Không thể kết thúc phiên hỗ trợ. Vui lòng thử lại."
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"link_preview": {
|
|
49
|
+
"loading": "Đang tải xem trước liên kết...",
|
|
50
|
+
"remove": "Xóa xem trước liên kết"
|
|
51
|
+
},
|
|
52
|
+
"link_open_error": "Không thể mở liên kết. Vui lòng thử lại."
|
|
53
53
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/screens/conversation-detail/index.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAWrF,OAAO,EAEL,KAAK,4BAA4B,EAClC,MAAM,6CAA6C,CAAC;AAGrD,MAAM,WAAW,4BACf,SAAQ,4BAA4B,EACpC,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,uBAAuB,GAAI,wFAS9B,4BAA4B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/screens/conversation-detail/index.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAWrF,OAAO,EAEL,KAAK,4BAA4B,EAClC,MAAM,6CAA6C,CAAC;AAGrD,MAAM,WAAW,4BACf,SAAQ,4BAA4B,EACpC,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,uBAAuB,GAAI,wFAS9B,4BAA4B,mDA4I9B,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -47,6 +47,9 @@ const DChatConversationDetail = (_a) => {
|
|
|
47
47
|
const handleBack = () => {
|
|
48
48
|
const newSearchParams = new URLSearchParams(searchParams);
|
|
49
49
|
newSearchParams.delete("threadId");
|
|
50
|
+
newSearchParams.delete("userId");
|
|
51
|
+
newSearchParams.delete("groupId");
|
|
52
|
+
newSearchParams.delete("botId");
|
|
50
53
|
const query = newSearchParams.toString();
|
|
51
54
|
router.replace(query ? `${pathname}?${query}` : pathname);
|
|
52
55
|
onBack === null || onBack === void 0 ? void 0 : onBack();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/screens/conversation-inbox/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAG/D,MAAM,WAAW,2BAA2B;IAC1C,cAAc,CAAC,EAAE,CAAC,YAAY,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAClC;AAED,QAAA,MAAM,sBAAsB,GAAI,6CAI7B,2BAA2B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/screens/conversation-inbox/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAG/D,MAAM,WAAW,2BAA2B;IAC1C,cAAc,CAAC,EAAE,CAAC,YAAY,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAClC;AAED,QAAA,MAAM,sBAAsB,GAAI,6CAI7B,2BAA2B,4CA2D7B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -13,9 +13,13 @@ import DChatConversationDetail from "../../screens/conversation-detail";
|
|
|
13
13
|
import { DChatApplicationType } from "../../types/chat";
|
|
14
14
|
import { Icon } from "../../components/icon";
|
|
15
15
|
const DChatConversationInbox = ({ onSelectThread, className, moreOptions, }) => {
|
|
16
|
+
var _a, _b, _c;
|
|
16
17
|
const { t } = useTranslation("conversation-inbox");
|
|
17
18
|
const searchParams = useSearchParams();
|
|
18
19
|
const threadId = searchParams.get("threadId");
|
|
20
|
+
const userId = (_a = searchParams.get("userId")) !== null && _a !== void 0 ? _a : undefined;
|
|
21
|
+
const groupId = (_b = searchParams.get("groupId")) !== null && _b !== void 0 ? _b : undefined;
|
|
22
|
+
const botId = (_c = searchParams.get("botId")) !== null && _c !== void 0 ? _c : undefined;
|
|
19
23
|
const applicationType = useAuthStore((state) => state.applicationType);
|
|
20
24
|
const isApplicationTypeValid = Object.values(DChatApplicationType).includes(applicationType);
|
|
21
25
|
const conversationList = useConversationList({
|
|
@@ -23,7 +27,7 @@ const DChatConversationInbox = ({ onSelectThread, className, moreOptions, }) =>
|
|
|
23
27
|
});
|
|
24
28
|
useActiveConversation(conversationList.items);
|
|
25
29
|
if (threadId) {
|
|
26
|
-
return (_jsx(DChatConversationDetail, { className: className, moreOptions: moreOptions }));
|
|
30
|
+
return (_jsx(DChatConversationDetail, { className: className, moreOptions: moreOptions, conversationId: threadId, userId: userId, groupId: groupId, botId: botId }));
|
|
27
31
|
}
|
|
28
32
|
return (_jsxs("div", { "data-testid": "conversation-inbox-root", className: clsx("flex h-full w-full flex-col bg-white", className), children: [_jsx(ConversationInboxHeader, {}), !isApplicationTypeValid ? (_jsx("div", { className: "flex flex-1 items-center justify-center py-12", children: _jsx(Empty, { image: _jsx(Icon, { icon: "chat-square-b", size: 80, className: "text-gray-300" }), description: t("empty.no_conversations") }) })) : (_jsx(ConversationInboxList, { items: conversationList.items, isLoading: conversationList.isLoading, isFetchingNextPage: conversationList.isFetchingNextPage, hasNextPage: conversationList.hasNextPage, onLoadMore: conversationList.fetchNextPage, onSelectThread: onSelectThread }))] }));
|
|
29
33
|
};
|
package/package.json
CHANGED
|
@@ -1,132 +1,132 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@droppii-org/chat-sdk",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Droppii React Chat SDK",
|
|
5
|
-
"repository": {
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/droppii/chat.git",
|
|
8
|
-
"directory": "packages/chat-sdk"
|
|
9
|
-
},
|
|
10
|
-
"main": "./dist/index.js",
|
|
11
|
-
"types": "./dist/index.d.ts",
|
|
12
|
-
"exports": {
|
|
13
|
-
".": {
|
|
14
|
-
"import": "./dist/index.js",
|
|
15
|
-
"types": "./dist/index.d.ts"
|
|
16
|
-
},
|
|
17
|
-
"./components/*": {
|
|
18
|
-
"import": "./dist/components/*.js",
|
|
19
|
-
"types": "./dist/components/*.d.ts"
|
|
20
|
-
},
|
|
21
|
-
"./hooks/*": {
|
|
22
|
-
"import": "./dist/hooks/*.js",
|
|
23
|
-
"types": "./dist/hooks/*.d.ts"
|
|
24
|
-
},
|
|
25
|
-
"./context/*": {
|
|
26
|
-
"import": "./dist/context/*.js",
|
|
27
|
-
"types": "./dist/context/*.d.ts"
|
|
28
|
-
},
|
|
29
|
-
"./types/*": {
|
|
30
|
-
"import": "./dist/types/*.js",
|
|
31
|
-
"types": "./dist/types/*.d.ts"
|
|
32
|
-
},
|
|
33
|
-
"./screens/*": {
|
|
34
|
-
"import": "./dist/screens/*.js",
|
|
35
|
-
"types": "./dist/screens/*.d.ts"
|
|
36
|
-
},
|
|
37
|
-
"./assets/*": {
|
|
38
|
-
"import": "./dist/assets/*.js",
|
|
39
|
-
"types": "./dist/assets/*.d.ts"
|
|
40
|
-
},
|
|
41
|
-
"./constants/*": {
|
|
42
|
-
"import": "./dist/constants/*.js",
|
|
43
|
-
"types": "./dist/constants/*.d.ts"
|
|
44
|
-
},
|
|
45
|
-
"./layout/*": {
|
|
46
|
-
"import": "./dist/layout/*.js",
|
|
47
|
-
"types": "./dist/layout/*.d.ts"
|
|
48
|
-
},
|
|
49
|
-
"./utils/*": {
|
|
50
|
-
"import": "./dist/utils/*.js",
|
|
51
|
-
"types": "./dist/utils/*.d.ts"
|
|
52
|
-
},
|
|
53
|
-
"./services/*": {
|
|
54
|
-
"import": "./dist/services/*.js",
|
|
55
|
-
"types": "./dist/services/*.d.ts"
|
|
56
|
-
},
|
|
57
|
-
"./locales/*": "./dist/locales/*",
|
|
58
|
-
"./styles/global.css": "./dist/styles/global.css"
|
|
59
|
-
},
|
|
60
|
-
"files": [
|
|
61
|
-
"dist"
|
|
62
|
-
],
|
|
63
|
-
"scripts": {
|
|
64
|
-
"build": "pnpm build:css && tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && pnpm copy-assets",
|
|
65
|
-
"build:css": "tailwindcss -i ./src/styles/global.css -o ./dist/styles/global.css --minify",
|
|
66
|
-
"dev": "tsc --noEmit --watch",
|
|
67
|
-
"lint": "eslint src/",
|
|
68
|
-
"type-check": "tsc --noEmit",
|
|
69
|
-
"prepublishOnly": "pnpm build",
|
|
70
|
-
"copy-assets": "shx cp -r src/assets dist && shx cp -r src/locales dist"
|
|
71
|
-
},
|
|
72
|
-
"keywords": [
|
|
73
|
-
"chat",
|
|
74
|
-
"sdk",
|
|
75
|
-
"react",
|
|
76
|
-
"messenger-style"
|
|
77
|
-
],
|
|
78
|
-
"author": "Garru",
|
|
79
|
-
"license": "MIT",
|
|
80
|
-
"publishConfig": {
|
|
81
|
-
"access": "public"
|
|
82
|
-
},
|
|
83
|
-
"dependencies": {
|
|
84
|
-
"@ant-design/icons": "^6.0.0",
|
|
85
|
-
"@lexical/code": "^0.34.0",
|
|
86
|
-
"@lexical/html": "^0.34.0",
|
|
87
|
-
"@lexical/link": "^0.34.0",
|
|
88
|
-
"@lexical/list": "^0.34.0",
|
|
89
|
-
"@lexical/react": "^0.34.0",
|
|
90
|
-
"@lexical/rich-text": "^0.34.0",
|
|
91
|
-
"@openim/wasm-client-sdk": "3.8.3-patch.10",
|
|
92
|
-
"@tailwindcss/postcss": "^4.1.12",
|
|
93
|
-
"@tanstack/react-query": "^5.85.5",
|
|
94
|
-
"ahooks": "^3.9.4",
|
|
95
|
-
"antd": "^5.27.0",
|
|
96
|
-
"axios": "^1.11.0",
|
|
97
|
-
"clsx": "^2.0.0",
|
|
98
|
-
"dayjs": "^1.11.13",
|
|
99
|
-
"dompurify": "^3.3.1",
|
|
100
|
-
"i18next": "^25.5.2",
|
|
101
|
-
"jwt-decode": "^4.0.0",
|
|
102
|
-
"lexical": "^0.34.0",
|
|
103
|
-
"lodash": "^4.17.21",
|
|
104
|
-
"lucide-react": "^0.263.1",
|
|
105
|
-
"mitt": "^3.0.1",
|
|
106
|
-
"postcss": "^8.5.6",
|
|
107
|
-
"query-string": "^9.3.1",
|
|
108
|
-
"react-i18next": "^15.7.3",
|
|
109
|
-
"react-icomoon": "^2.6.1",
|
|
110
|
-
"react-infinite-scroll-component": "^6.1.0",
|
|
111
|
-
"react-sticky-box": "^2.0.5",
|
|
112
|
-
"react-virtuoso": "^4.14.0",
|
|
113
|
-
"tailwind-merge": "^2.0.0",
|
|
114
|
-
"tailwindcss": "^3.3.0",
|
|
115
|
-
"uuid": "^11.1.0",
|
|
116
|
-
"zustand": "^5.0.7"
|
|
117
|
-
},
|
|
118
|
-
"peerDependencies": {
|
|
119
|
-
"react": "^18.0.0",
|
|
120
|
-
"react-dom": "^18.0.0"
|
|
121
|
-
},
|
|
122
|
-
"devDependencies": {
|
|
123
|
-
"@types/dompurify": "^3.2.0",
|
|
124
|
-
"@types/lodash": "^4.17.20",
|
|
125
|
-
"@types/node": "^20.0.0",
|
|
126
|
-
"@types/react": "^18.2.37",
|
|
127
|
-
"@types/react-dom": "^18.2.15",
|
|
128
|
-
"shx": "^0.4.0",
|
|
129
|
-
"tsc-alias": "^1.8.17",
|
|
130
|
-
"typescript": "^5.2.2"
|
|
131
|
-
}
|
|
132
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@droppii-org/chat-sdk",
|
|
3
|
+
"version": "0.1.82",
|
|
4
|
+
"description": "Droppii React Chat SDK",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/droppii/chat.git",
|
|
8
|
+
"directory": "packages/chat-sdk"
|
|
9
|
+
},
|
|
10
|
+
"main": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts"
|
|
16
|
+
},
|
|
17
|
+
"./components/*": {
|
|
18
|
+
"import": "./dist/components/*.js",
|
|
19
|
+
"types": "./dist/components/*.d.ts"
|
|
20
|
+
},
|
|
21
|
+
"./hooks/*": {
|
|
22
|
+
"import": "./dist/hooks/*.js",
|
|
23
|
+
"types": "./dist/hooks/*.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./context/*": {
|
|
26
|
+
"import": "./dist/context/*.js",
|
|
27
|
+
"types": "./dist/context/*.d.ts"
|
|
28
|
+
},
|
|
29
|
+
"./types/*": {
|
|
30
|
+
"import": "./dist/types/*.js",
|
|
31
|
+
"types": "./dist/types/*.d.ts"
|
|
32
|
+
},
|
|
33
|
+
"./screens/*": {
|
|
34
|
+
"import": "./dist/screens/*.js",
|
|
35
|
+
"types": "./dist/screens/*.d.ts"
|
|
36
|
+
},
|
|
37
|
+
"./assets/*": {
|
|
38
|
+
"import": "./dist/assets/*.js",
|
|
39
|
+
"types": "./dist/assets/*.d.ts"
|
|
40
|
+
},
|
|
41
|
+
"./constants/*": {
|
|
42
|
+
"import": "./dist/constants/*.js",
|
|
43
|
+
"types": "./dist/constants/*.d.ts"
|
|
44
|
+
},
|
|
45
|
+
"./layout/*": {
|
|
46
|
+
"import": "./dist/layout/*.js",
|
|
47
|
+
"types": "./dist/layout/*.d.ts"
|
|
48
|
+
},
|
|
49
|
+
"./utils/*": {
|
|
50
|
+
"import": "./dist/utils/*.js",
|
|
51
|
+
"types": "./dist/utils/*.d.ts"
|
|
52
|
+
},
|
|
53
|
+
"./services/*": {
|
|
54
|
+
"import": "./dist/services/*.js",
|
|
55
|
+
"types": "./dist/services/*.d.ts"
|
|
56
|
+
},
|
|
57
|
+
"./locales/*": "./dist/locales/*",
|
|
58
|
+
"./styles/global.css": "./dist/styles/global.css"
|
|
59
|
+
},
|
|
60
|
+
"files": [
|
|
61
|
+
"dist"
|
|
62
|
+
],
|
|
63
|
+
"scripts": {
|
|
64
|
+
"build": "pnpm build:css && tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && pnpm copy-assets",
|
|
65
|
+
"build:css": "tailwindcss -i ./src/styles/global.css -o ./dist/styles/global.css --minify",
|
|
66
|
+
"dev": "tsc --noEmit --watch",
|
|
67
|
+
"lint": "eslint src/",
|
|
68
|
+
"type-check": "tsc --noEmit",
|
|
69
|
+
"prepublishOnly": "pnpm build",
|
|
70
|
+
"copy-assets": "shx cp -r src/assets dist && shx cp -r src/locales dist"
|
|
71
|
+
},
|
|
72
|
+
"keywords": [
|
|
73
|
+
"chat",
|
|
74
|
+
"sdk",
|
|
75
|
+
"react",
|
|
76
|
+
"messenger-style"
|
|
77
|
+
],
|
|
78
|
+
"author": "Garru",
|
|
79
|
+
"license": "MIT",
|
|
80
|
+
"publishConfig": {
|
|
81
|
+
"access": "public"
|
|
82
|
+
},
|
|
83
|
+
"dependencies": {
|
|
84
|
+
"@ant-design/icons": "^6.0.0",
|
|
85
|
+
"@lexical/code": "^0.34.0",
|
|
86
|
+
"@lexical/html": "^0.34.0",
|
|
87
|
+
"@lexical/link": "^0.34.0",
|
|
88
|
+
"@lexical/list": "^0.34.0",
|
|
89
|
+
"@lexical/react": "^0.34.0",
|
|
90
|
+
"@lexical/rich-text": "^0.34.0",
|
|
91
|
+
"@openim/wasm-client-sdk": "3.8.3-patch.10",
|
|
92
|
+
"@tailwindcss/postcss": "^4.1.12",
|
|
93
|
+
"@tanstack/react-query": "^5.85.5",
|
|
94
|
+
"ahooks": "^3.9.4",
|
|
95
|
+
"antd": "^5.27.0",
|
|
96
|
+
"axios": "^1.11.0",
|
|
97
|
+
"clsx": "^2.0.0",
|
|
98
|
+
"dayjs": "^1.11.13",
|
|
99
|
+
"dompurify": "^3.3.1",
|
|
100
|
+
"i18next": "^25.5.2",
|
|
101
|
+
"jwt-decode": "^4.0.0",
|
|
102
|
+
"lexical": "^0.34.0",
|
|
103
|
+
"lodash": "^4.17.21",
|
|
104
|
+
"lucide-react": "^0.263.1",
|
|
105
|
+
"mitt": "^3.0.1",
|
|
106
|
+
"postcss": "^8.5.6",
|
|
107
|
+
"query-string": "^9.3.1",
|
|
108
|
+
"react-i18next": "^15.7.3",
|
|
109
|
+
"react-icomoon": "^2.6.1",
|
|
110
|
+
"react-infinite-scroll-component": "^6.1.0",
|
|
111
|
+
"react-sticky-box": "^2.0.5",
|
|
112
|
+
"react-virtuoso": "^4.14.0",
|
|
113
|
+
"tailwind-merge": "^2.0.0",
|
|
114
|
+
"tailwindcss": "^3.3.0",
|
|
115
|
+
"uuid": "^11.1.0",
|
|
116
|
+
"zustand": "^5.0.7"
|
|
117
|
+
},
|
|
118
|
+
"peerDependencies": {
|
|
119
|
+
"react": "^18.0.0",
|
|
120
|
+
"react-dom": "^18.0.0"
|
|
121
|
+
},
|
|
122
|
+
"devDependencies": {
|
|
123
|
+
"@types/dompurify": "^3.2.0",
|
|
124
|
+
"@types/lodash": "^4.17.20",
|
|
125
|
+
"@types/node": "^20.0.0",
|
|
126
|
+
"@types/react": "^18.2.37",
|
|
127
|
+
"@types/react-dom": "^18.2.15",
|
|
128
|
+
"shx": "^0.4.0",
|
|
129
|
+
"tsc-alias": "^1.8.17",
|
|
130
|
+
"typescript": "^5.2.2"
|
|
131
|
+
}
|
|
132
|
+
}
|