@easemob-community/callkit-vue3 2.0.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/LICENSE +21 -0
- package/README.md +208 -0
- package/dist/callkit-vue3.css +1 -0
- package/dist/components/EasemobChatCallKitProvider.vue.d.ts +18 -0
- package/dist/components/EasemobChatMiniWindow.vue.d.ts +11 -0
- package/dist/components/InvitationNotification.vue.d.ts +2 -0
- package/dist/components/multiCall/EasemobChatGroupMemberList.vue.d.ts +19 -0
- package/dist/components/multiCall/EasemobChatMultiCall.vue.d.ts +69 -0
- package/dist/components/singleCall/CallControls.vue.d.ts +18 -0
- package/dist/components/singleCall/CallInfoBar.vue.d.ts +5 -0
- package/dist/components/singleCall/EasemobChatCallStream.vue.d.ts +12 -0
- package/dist/components/singleCall/EasemobChatCallWaiting.vue.d.ts +10 -0
- package/dist/components/singleCall/EasemobChatSingleCall.vue.d.ts +28 -0
- package/dist/composables/useAnswerCall.d.ts +10 -0
- package/dist/composables/useCallKit.d.ts +2 -0
- package/dist/composables/useCallKitCore.d.ts +998 -0
- package/dist/composables/useCallKitEvents.d.ts +42 -0
- package/dist/composables/useDraggable.d.ts +90 -0
- package/dist/composables/useEndCall.d.ts +15 -0
- package/dist/composables/useParticipants.d.ts +15 -0
- package/dist/composables/useRtcService.d.ts +80 -0
- package/dist/config/assets.d.ts +43 -0
- package/dist/core/events/CallKitEventBus.d.ts +40 -0
- package/dist/core/events/helpers.d.ts +59 -0
- package/dist/core/events/types.d.ts +264 -0
- package/dist/core/sdk/imSDK/index.d.ts +4 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.js +7806 -0
- package/dist/index.umd.js +72 -0
- package/dist/modules/groupCall/components/CallKitIcon.vue.d.ts +12 -0
- package/dist/modules/groupCall/components/GroupCallShell.vue.d.ts +34 -0
- package/dist/modules/groupCall/components/MainVideoLayout.vue.d.ts +32 -0
- package/dist/modules/groupCall/components/ParticipantTile.vue.d.ts +12 -0
- package/dist/modules/groupCall/components/VideoGrid.vue.d.ts +29 -0
- package/dist/modules/groupCall/components/iconRegistry.d.ts +2 -0
- package/dist/modules/groupCall/index.d.ts +7 -0
- package/dist/modules/groupCall/media/RtcMediaBridge.d.ts +26 -0
- package/dist/modules/groupCall/signaling/GroupCallSignalingAdapter.d.ts +29 -0
- package/dist/modules/groupCall/types.d.ts +37 -0
- package/dist/modules/groupCall/viewModel/GroupCallStore.d.ts +345 -0
- package/dist/modules/groupCall/viewModel/useGroupCallViewModel.d.ts +35 -0
- package/dist/services/CallService.d.ts +15 -0
- package/dist/services/RtcAdapter.d.ts +11 -0
- package/dist/services/RtcService.d.ts +187 -0
- package/dist/services/UserProfileService.d.ts +38 -0
- package/dist/store/callTimer.d.ts +33 -0
- package/dist/store/chatClient.d.ts +5335 -0
- package/dist/store/globalCall.d.ts +34 -0
- package/dist/store/index.d.ts +1 -0
- package/dist/store/rtcChannel.d.ts +42 -0
- package/dist/store/types.d.ts +50 -0
- package/dist/types/callstate.types.d.ts +61 -0
- package/dist/types/signal.types.d.ts +187 -0
- package/dist/types.d.ts +103 -0
- package/dist/utils/callUtils.d.ts +15 -0
- package/dist/utils/imSdkAdapter.d.ts +29 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/logger.d.ts +122 -0
- package/dist/utils/loggerDb.d.ts +41 -0
- package/dist/utils/ringtone.d.ts +20 -0
- package/dist/vite-env.d.ts +12 -0
- package/package.json +60 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RingtoneService
|
|
3
|
+
* 铃声播放服务(当前为桩函数占位)
|
|
4
|
+
*
|
|
5
|
+
* TODO: 接入实际音频资源后实现真正的铃声播放
|
|
6
|
+
* 当前行为:仅在控制台打印 debug 日志,不实际播放任何声音
|
|
7
|
+
*/
|
|
8
|
+
export declare class RingtoneService {
|
|
9
|
+
private static instance;
|
|
10
|
+
private enabled;
|
|
11
|
+
static getInstance(): RingtoneService;
|
|
12
|
+
setEnabled(enabled: boolean): void;
|
|
13
|
+
isEnabled(): boolean;
|
|
14
|
+
/** 播放来电铃声 */
|
|
15
|
+
playIncomingRingtone(): Promise<void>;
|
|
16
|
+
/** 播放去电铃声 */
|
|
17
|
+
playOutgoingRingtone(): Promise<void>;
|
|
18
|
+
/** 停止铃声 */
|
|
19
|
+
stopRingtone(): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
|
|
3
|
+
declare module '*.vue' {
|
|
4
|
+
import type { DefineComponent } from 'vue'
|
|
5
|
+
const component: DefineComponent<{}, {}, any>
|
|
6
|
+
export default component
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare module '*.svg?raw' {
|
|
10
|
+
const content: string
|
|
11
|
+
export default content
|
|
12
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@easemob-community/callkit-vue3",
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"description": "Easemob Chat CallKit for Vue3 — audio/video call components and composables",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"unpkg": "./dist/index.umd.js",
|
|
10
|
+
"jsdelivr": "./dist/index.umd.js",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/index.js",
|
|
15
|
+
"require": "./dist/index.umd.js"
|
|
16
|
+
},
|
|
17
|
+
"./style.css": {
|
|
18
|
+
"import": "./dist/style.css",
|
|
19
|
+
"default": "./dist/style.css"
|
|
20
|
+
},
|
|
21
|
+
"./dist/*": "./dist/*"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist",
|
|
25
|
+
"lib"
|
|
26
|
+
],
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@easemob-community/callkit-core": "^2.0.1",
|
|
29
|
+
"dexie": "^4.0.0"
|
|
30
|
+
},
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"agora-rtc-sdk-ng": "^4.14.0",
|
|
33
|
+
"easemob-websdk": "^4.12.0",
|
|
34
|
+
"vue": "^3.4.0",
|
|
35
|
+
"pinia": "^2.1.0",
|
|
36
|
+
"vue-i18n": "^9.0.0"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
40
|
+
"@vue/tsconfig": "^0.7.0",
|
|
41
|
+
"agora-rtc-sdk-ng": "^4.24.2",
|
|
42
|
+
"easemob-websdk": "^4.16.0",
|
|
43
|
+
"typescript": "~5.8.3",
|
|
44
|
+
"vite": "^7.1.2",
|
|
45
|
+
"vite-plugin-dts": "^4.5.4",
|
|
46
|
+
"vue": "^3.5.0",
|
|
47
|
+
"vue-tsc": "^3.0.5"
|
|
48
|
+
},
|
|
49
|
+
"license": "MIT",
|
|
50
|
+
"repository": {
|
|
51
|
+
"type": "git",
|
|
52
|
+
"url": "git+https://github.com/Easemob-Community/easemob-uikit-callkit.git",
|
|
53
|
+
"directory": "packages/callkit-vue3"
|
|
54
|
+
},
|
|
55
|
+
"scripts": {
|
|
56
|
+
"build": "vue-tsc -b && vite build --config vite.lib.config.ts",
|
|
57
|
+
"build:pack": "pnpm run build && pnpm pack",
|
|
58
|
+
"typecheck": "vue-tsc --noEmit --skipLibCheck"
|
|
59
|
+
}
|
|
60
|
+
}
|