@webitel/chat-web-sdk 0.0.3 → 0.0.4-1
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/gen/ws/AckPayload.d.ts +18 -0
- package/dist/gen/ws/AckPayload.d.ts.map +1 -0
- package/dist/gen/ws/ConnectedPayload.d.ts +22 -0
- package/dist/gen/ws/ConnectedPayload.d.ts.map +1 -0
- package/dist/gen/ws/DisconnectedPayload.d.ts +22 -0
- package/dist/gen/ws/DisconnectedPayload.d.ts.map +1 -0
- package/dist/gen/ws/ErrorPayload.d.ts +22 -0
- package/dist/gen/ws/ErrorPayload.d.ts.map +1 -0
- package/dist/gen/ws/EventPayload.d.ts +45 -0
- package/dist/gen/ws/EventPayload.d.ts.map +1 -0
- package/dist/gen/ws/EventPriority.d.ts +8 -0
- package/dist/gen/ws/EventPriority.d.ts.map +1 -0
- package/dist/gen/ws/PingPayload.d.ts +14 -0
- package/dist/gen/ws/PingPayload.d.ts.map +1 -0
- package/dist/gen/ws/ServerEventPayload.d.ts +28 -0
- package/dist/gen/ws/ServerEventPayload.d.ts.map +1 -0
- package/dist/gen/ws/WsMessage.d.ts +51 -0
- package/dist/gen/ws/WsMessage.d.ts.map +1 -0
- package/dist/gen/ws/WsPeer.d.ts +30 -0
- package/dist/gen/ws/WsPeer.d.ts.map +1 -0
- package/dist/gen/ws/WsThread.d.ts +35 -0
- package/dist/gen/ws/WsThread.d.ts.map +1 -0
- package/dist/index.d.ts +16 -119
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5840 -7437
- package/dist/index.js.map +1 -1
- package/dist/modules/account/accountSevice.d.ts +5 -0
- package/dist/modules/account/accountSevice.d.ts.map +1 -0
- package/dist/modules/account/api/Account.api.d.ts +10 -0
- package/dist/modules/account/api/Account.api.d.ts.map +1 -0
- package/dist/modules/account/index.d.ts +3 -0
- package/dist/modules/account/index.d.ts.map +1 -0
- package/dist/modules/account/types/Account.types.d.ts +3 -0
- package/dist/modules/account/types/Account.types.d.ts.map +1 -0
- package/dist/modules/account/utils/fetchAccount.d.ts +7 -0
- package/dist/modules/account/utils/fetchAccount.d.ts.map +1 -0
- package/dist/modules/configs/index.d.ts +4 -0
- package/dist/modules/configs/index.d.ts.map +1 -0
- package/dist/modules/configs/serviceConfig/ServiceConfig.class.d.ts +14 -0
- package/dist/modules/configs/serviceConfig/ServiceConfig.class.d.ts.map +1 -0
- package/dist/modules/configs/socketConfig/SocketConfig.class.d.ts +11 -0
- package/dist/modules/configs/socketConfig/SocketConfig.class.d.ts.map +1 -0
- package/dist/modules/configs/types/ServiceConfigurable.types.d.ts +5 -0
- package/dist/modules/configs/types/ServiceConfigurable.types.d.ts.map +1 -0
- package/dist/modules/contacts/api/Contacts.api.d.ts +6 -0
- package/dist/modules/contacts/api/Contacts.api.d.ts.map +1 -0
- package/dist/modules/contacts/classes/Contact.class.d.ts +6 -0
- package/dist/modules/contacts/classes/Contact.class.d.ts.map +1 -0
- package/dist/modules/contacts/contactsSevice.d.ts +6 -0
- package/dist/modules/contacts/contactsSevice.d.ts.map +1 -0
- package/dist/modules/contacts/index.d.ts +4 -0
- package/dist/modules/contacts/index.d.ts.map +1 -0
- package/dist/modules/contacts/types/Contact.types.d.ts +11 -0
- package/dist/modules/contacts/types/Contact.types.d.ts.map +1 -0
- package/dist/modules/contacts/utils/fetchContacts.d.ts +9 -0
- package/dist/modules/contacts/utils/fetchContacts.d.ts.map +1 -0
- package/dist/modules/messages/api/Messages.api.d.ts +14 -0
- package/dist/modules/messages/api/Messages.api.d.ts.map +1 -0
- package/dist/modules/messages/classes/Message.class.d.ts +6 -0
- package/dist/modules/messages/classes/Message.class.d.ts.map +1 -0
- package/dist/modules/messages/index.d.ts +4 -0
- package/dist/modules/messages/index.d.ts.map +1 -0
- package/dist/modules/messages/messagesSevice.d.ts +11 -0
- package/dist/modules/messages/messagesSevice.d.ts.map +1 -0
- package/dist/modules/messages/types/Message.types.d.ts +22 -0
- package/dist/modules/messages/types/Message.types.d.ts.map +1 -0
- package/dist/modules/messages/utils/fetchMessageHistory.d.ts +9 -0
- package/dist/modules/messages/utils/fetchMessageHistory.d.ts.map +1 -0
- package/dist/modules/messages/utils/sendFileMessage.d.ts +5 -0
- package/dist/modules/messages/utils/sendFileMessage.d.ts.map +1 -0
- package/dist/modules/messages/utils/sendImageMessage.d.ts +5 -0
- package/dist/modules/messages/utils/sendImageMessage.d.ts.map +1 -0
- package/dist/modules/messages/utils/sendTextMessage.d.ts +5 -0
- package/dist/modules/messages/utils/sendTextMessage.d.ts.map +1 -0
- package/dist/modules/socket/classes/ChatsSoketClient.d.ts +25 -0
- package/dist/modules/socket/classes/ChatsSoketClient.d.ts.map +1 -0
- package/dist/modules/socket/enums/ChatsSocketMessage.enum.d.ts +12 -0
- package/dist/modules/socket/enums/ChatsSocketMessage.enum.d.ts.map +1 -0
- package/dist/modules/socket/enums/SocketClientConnectionStatus.enum.d.ts +9 -0
- package/dist/modules/socket/enums/SocketClientConnectionStatus.enum.d.ts.map +1 -0
- package/dist/modules/socket/index.d.ts +4 -0
- package/dist/modules/socket/index.d.ts.map +1 -0
- package/dist/modules/socket/types/ChatsSocketClientEventsPayload.types.d.ts +9 -0
- package/dist/modules/socket/types/ChatsSocketClientEventsPayload.types.d.ts.map +1 -0
- package/dist/modules/socket/utils/getSocketMessageNameFromEvent.d.ts +4 -0
- package/dist/modules/socket/utils/getSocketMessageNameFromEvent.d.ts.map +1 -0
- package/dist/modules/threads/api/Threads.api.d.ts +6 -0
- package/dist/modules/threads/api/Threads.api.d.ts.map +1 -0
- package/dist/modules/threads/classes/Thread.class.d.ts +6 -0
- package/dist/modules/threads/classes/Thread.class.d.ts.map +1 -0
- package/dist/modules/threads/index.d.ts +4 -0
- package/dist/modules/threads/index.d.ts.map +1 -0
- package/dist/modules/threads/threadsSevice.d.ts +6 -0
- package/dist/modules/threads/threadsSevice.d.ts.map +1 -0
- package/dist/modules/threads/types/Thread.types.d.ts +18 -0
- package/dist/modules/threads/types/Thread.types.d.ts.map +1 -0
- package/dist/modules/threads/utils/fetchThreads.d.ts +13 -0
- package/dist/modules/threads/utils/fetchThreads.d.ts.map +1 -0
- package/dist/modules/ui/components/WtChatAvatar.ce.d.ts +7 -0
- package/dist/modules/ui/components/WtChatAvatar.ce.d.ts.map +1 -0
- package/dist/modules/ui/components/WtChatAvatar.vue.d.ts +12 -0
- package/dist/modules/ui/components/WtChatAvatar.vue.d.ts.map +1 -0
- package/dist/modules/ui/components/WtChatMessageBubble.ce.d.ts +8 -0
- package/dist/modules/ui/components/WtChatMessageBubble.ce.d.ts.map +1 -0
- package/dist/modules/ui/components/WtChatMessageBubble.vue.d.ts +29 -0
- package/dist/modules/ui/components/WtChatMessageBubble.vue.d.ts.map +1 -0
- package/dist/modules/ui/index.d.ts +8 -0
- package/dist/modules/ui/index.d.ts.map +1 -0
- package/package.json +10 -7
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
text?: string;
|
|
3
|
+
sender?: string;
|
|
4
|
+
time?: string;
|
|
5
|
+
outgoing?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: {
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
rootEl: HTMLDivElement;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
17
|
+
time: string;
|
|
18
|
+
text: string;
|
|
19
|
+
sender: string;
|
|
20
|
+
outgoing: boolean;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=WtChatMessageBubble.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WtChatMessageBubble.vue.d.ts","sourceRoot":"","sources":["../../../../src/modules/ui/components/WtChatMessageBubble.vue"],"names":[],"mappings":"AAaA;AA8EA,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAmBH,iBAAS,cAAc;WAqDT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;UAzFZ,MAAM;UAFN,MAAM;YACJ,MAAM;cAEJ,OAAO;wFAgGlB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { WtChatAvatarElement } from './components/WtChatAvatar.ce';
|
|
2
|
+
import { WtChatMessageBubbleElement } from './components/WtChatMessageBubble.ce';
|
|
3
|
+
export { WtChatAvatarElement, WtChatMessageBubbleElement };
|
|
4
|
+
export type { WtChatAvatarProps } from './components/WtChatAvatar.ce';
|
|
5
|
+
export type { WtChatMessageBubbleProps } from './components/WtChatMessageBubble.ce';
|
|
6
|
+
export declare const defaultChatUiElements: Record<string, CustomElementConstructor>;
|
|
7
|
+
export declare const registerChatUiCustomElements: () => void;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/ui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAEjF,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,CAAC;AAE3D,YAAY,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtE,YAAY,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAEpF,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAG1E,CAAC;AAEF,eAAO,MAAM,4BAA4B,QAAO,IAM/C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/chat-web-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4-1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"workspaces": [
|
|
6
6
|
"../../webitel-ui-sdk/packages/api-services"
|
|
7
7
|
],
|
|
8
8
|
"scripts": {
|
|
9
9
|
"dev": "vite",
|
|
10
|
-
"build": "tsc --noEmit &&
|
|
10
|
+
"build": "vue-tsc --noEmit && vite build",
|
|
11
11
|
"publish": "npm publish --access public --tag latest",
|
|
12
12
|
"biome:format:all": "npx biome check --write ./src",
|
|
13
13
|
"biome:format:staged": "npx biome check --write --staged",
|
|
14
|
-
"gen:ws": "npx asyncapi generate models typescript https://raw.githubusercontent.com/webitel/im-delivery-service/refs/heads/main/api/asyncapi/asyncapi.yaml -o src/gen/ws --tsIncludeComments --tsExportType named",
|
|
14
|
+
"gen:ws": "rm -rf src/gen/ws && npx asyncapi generate models typescript https://raw.githubusercontent.com/webitel/im-delivery-service/refs/heads/main/api/asyncapi/asyncapi.yaml -o src/gen/ws --tsIncludeComments --tsExportType named --tsModelType class",
|
|
15
15
|
"prepare": "(husky || true)"
|
|
16
16
|
},
|
|
17
17
|
"main": "./dist/index.js",
|
|
@@ -20,17 +20,20 @@
|
|
|
20
20
|
"dist"
|
|
21
21
|
],
|
|
22
22
|
"devDependencies": {
|
|
23
|
+
"@vitejs/plugin-vue": "^6.0.0",
|
|
23
24
|
"@biomejs/biome": "2.4.8",
|
|
24
25
|
"@webitel/api-services": "^0.1.13",
|
|
25
26
|
"husky": "^9.1.7",
|
|
26
|
-
"tsup": "^8.5.1",
|
|
27
27
|
"typescript": "~5.9.3",
|
|
28
|
-
"vite": "^8.x"
|
|
28
|
+
"vite": "^8.x",
|
|
29
|
+
"vite-plugin-dts": "^4.5.4",
|
|
30
|
+
"vue-tsc": "^3.1.1"
|
|
29
31
|
},
|
|
30
32
|
"dependencies": {
|
|
31
|
-
"axios": "
|
|
33
|
+
"axios": "1.13.6",
|
|
32
34
|
"mitt": "^3.x",
|
|
33
|
-
"qs-esm": "^7.0.3"
|
|
35
|
+
"qs-esm": "^7.0.3",
|
|
36
|
+
"vue": "^3.5.22"
|
|
34
37
|
},
|
|
35
38
|
"exports": {
|
|
36
39
|
".": {
|