fmode-ng 0.0.34 → 0.0.36
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/esm2022/lib/aigc/avatar/comp-avatar-role-video/comp-avatar-role-video.component.mjs +1 -1
- package/esm2022/lib/aigc/chat/chat-list/chat-list.component.mjs +1 -1
- package/esm2022/lib/aigc/chat/chat-modal-input/modal-input.component.mjs +1 -1
- package/esm2022/lib/aigc/chat/chat-panel/chat-panel.component.mjs +1 -1
- package/esm2022/lib/aigc/chat/comp-role-prompt/comp-role-prompt.component.mjs +1 -1
- package/esm2022/lib/aigc/service-fmai/service-chat/chat-class.mjs +1 -1
- package/esm2022/lib/aigc/service-fmai/service-chat/chat.service.mjs +1 -1
- package/esm2022/lib/social/index.mjs +10 -0
- package/esm2022/lib/social/wechat/wechat-jssdk.service.mjs +10 -0
- package/esm2022/lib/video/fm-video/fm-video.component.mjs +10 -0
- package/esm2022/lib/video/index.mjs +10 -0
- package/esm2022/public-api.mjs +1 -1
- package/fesm2022/fmode-ng.mjs +1 -1
- package/fesm2022/fmode-ng.mjs.map +1 -1
- package/lib/aigc/avatar/comp-avatar-role-video/comp-avatar-role-video.component.d.ts +3 -2
- package/lib/aigc/chat/chat-panel/chat-panel.component.d.ts +4 -1
- package/lib/social/index.d.ts +1 -0
- package/lib/social/wechat/wechat-jssdk.service.d.ts +44 -0
- package/lib/video/fm-video/fm-video.component.d.ts +17 -0
- package/lib/video/index.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { AfterViewInit, OnInit
|
|
1
|
+
import { AfterViewInit, OnInit } from '@angular/core';
|
|
2
2
|
import { FmodeAvatarRoleComp } from '../interface-avatar-role';
|
|
3
3
|
import 'recorder-core/src/extensions/waveview';
|
|
4
4
|
import Parse from "parse";
|
|
5
5
|
import { FmodeChat } from '../../service-fmai/service-chat/chat-class';
|
|
6
|
+
import { FmVideoComponent } from '../../../video';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class CompAvatarRoleVideoComponent implements FmodeAvatarRoleComp, AfterViewInit, OnInit {
|
|
8
|
-
avatarVideo:
|
|
9
|
+
avatarVideo: FmVideoComponent;
|
|
9
10
|
animClass: string;
|
|
10
11
|
fmodeChat: FmodeChat;
|
|
11
12
|
role: Parse.Object;
|
|
@@ -13,6 +13,9 @@ export declare class ChatPanelComponent implements OnInit, AfterViewInit {
|
|
|
13
13
|
fmodeChat: FmodeChat;
|
|
14
14
|
leftButtons: any[] | undefined;
|
|
15
15
|
modelList: any[] | undefined;
|
|
16
|
+
showInputModal: boolean;
|
|
17
|
+
showMessageArea: boolean;
|
|
18
|
+
showHeaderArea: boolean;
|
|
16
19
|
constructor(route: ActivatedRoute, router: Router, chatServ: ChatService);
|
|
17
20
|
contentComp: ElementRef;
|
|
18
21
|
listenDivChange(): void;
|
|
@@ -21,5 +24,5 @@ export declare class ChatPanelComponent implements OnInit, AfterViewInit {
|
|
|
21
24
|
ngOnInit(): void;
|
|
22
25
|
loadMask(): void;
|
|
23
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChatPanelComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChatPanelComponent, "app-chat-panel", never, { "chatId": { "alias": "chatId"; "required": false; }; "maskId": { "alias": "maskId"; "required": false; }; "roleId": { "alias": "roleId"; "required": false; }; "leftButtons": { "alias": "leftButtons"; "required": false; }; "modelList": { "alias": "modelList"; "required": false; }; }, {}, never,
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChatPanelComponent, "app-chat-panel", never, { "chatId": { "alias": "chatId"; "required": false; }; "maskId": { "alias": "maskId"; "required": false; }; "roleId": { "alias": "roleId"; "required": false; }; "leftButtons": { "alias": "leftButtons"; "required": false; }; "modelList": { "alias": "modelList"; "required": false; }; "showInputModal": { "alias": "showInputModal"; "required": false; }; "showMessageArea": { "alias": "showMessageArea"; "required": false; }; "showHeaderArea": { "alias": "showHeaderArea"; "required": false; }; }, {}, never, ["[chat-header]", "[chat-content]", "[chat-footer]"], true, never>;
|
|
25
28
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./wechat/wechat-jssdk.service";
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { AuthService } from '../../user/auth.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class WechatJssdkService {
|
|
5
|
+
private http;
|
|
6
|
+
private authServ;
|
|
7
|
+
isInit: boolean;
|
|
8
|
+
isWechat: boolean;
|
|
9
|
+
wx: any;
|
|
10
|
+
company: string;
|
|
11
|
+
wechatAccountId: string;
|
|
12
|
+
openid: string;
|
|
13
|
+
constructor(http: HttpClient, authServ: AuthService);
|
|
14
|
+
/**
|
|
15
|
+
* 配置当前页面分享参数
|
|
16
|
+
*/
|
|
17
|
+
setCurrentPageShareInfo(shareInfo?: {
|
|
18
|
+
title: string;
|
|
19
|
+
desc: string;
|
|
20
|
+
link: string;
|
|
21
|
+
type: string;
|
|
22
|
+
imgUrl: string;
|
|
23
|
+
success: () => void;
|
|
24
|
+
error: () => void;
|
|
25
|
+
cancel: () => void;
|
|
26
|
+
}): Promise<void>;
|
|
27
|
+
getInviteUrl(url: any): any;
|
|
28
|
+
/**
|
|
29
|
+
* 当前页面获取微信授权签名
|
|
30
|
+
*/
|
|
31
|
+
getWXSignPackageInWechat(): Promise<any>;
|
|
32
|
+
/** 微信用户初始化
|
|
33
|
+
* @desc 为当前已登录用户,获取微信授权openid信息
|
|
34
|
+
*/
|
|
35
|
+
initUserOpenid(): Promise<void>;
|
|
36
|
+
authWechat(url?: string): void;
|
|
37
|
+
getQueryStringByName(name: string): string;
|
|
38
|
+
getwechat(code: string, url?: string): Promise<boolean>;
|
|
39
|
+
/** 微信环境初始化 */
|
|
40
|
+
init(): Promise<boolean>;
|
|
41
|
+
loadScript(url: any, callback: any, errCallback: any): void;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WechatJssdkService, never>;
|
|
43
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WechatJssdkService>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges, ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FmVideoComponent implements OnChanges {
|
|
4
|
+
url: string;
|
|
5
|
+
canvasRef: ElementRef<HTMLCanvasElement>;
|
|
6
|
+
private video;
|
|
7
|
+
private ctx;
|
|
8
|
+
isPlaying: boolean;
|
|
9
|
+
canvasStyle: any;
|
|
10
|
+
constructor();
|
|
11
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
12
|
+
play(url: string): void;
|
|
13
|
+
togglePlay(): void;
|
|
14
|
+
private drawFrame;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FmVideoComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FmVideoComponent, "fm-video", never, { "url": { "alias": "url"; "required": false; }; "canvasStyle": { "alias": "canvasStyle"; "required": false; }; }, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./fm-video/fm-video.component";
|
package/package.json
CHANGED