yach.open.jssdk 4.4.10-beta.2 → 4.4.10-beta.3
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/yach_jssdk_4.4.10-beta.3.js +1 -0
- package/es/api/biz/navigation/close.d.ts +1 -0
- package/es/api/biz/navigation/tencentMeeting.d.ts +1 -0
- package/es/api/biz/util/addAppToNav.d.ts +9 -0
- package/es/api/biz/util/addAppToNav.js +23 -0
- package/es/api/biz/util/copy.d.ts +11 -0
- package/es/api/biz/util/copy.js +19 -0
- package/es/api/biz/util/focus.d.ts +7 -0
- package/es/api/biz/util/focus.js +23 -0
- package/es/api/biz/util/getConfig.d.ts +13 -0
- package/es/api/biz/util/getConfig.js +19 -0
- package/es/api/biz/util/knowledgeBaseSelect.d.ts +21 -0
- package/es/api/biz/util/knowledgeBaseSelect.js +23 -0
- package/es/api/biz/util/knowledgeSelectParams.d.ts +14 -0
- package/es/api/biz/util/knowledgeSelectParams.js +19 -0
- package/es/api/biz/util/lorebaseRefreshNodeWebview.d.ts +11 -0
- package/es/api/biz/util/lorebaseRefreshNodeWebview.js +19 -0
- package/es/api/biz/util/lorebaseShowList.d.ts +11 -0
- package/es/api/biz/util/lorebaseShowList.js +19 -0
- package/es/api/biz/util/mediaFileUploadV2.d.ts +26 -0
- package/es/api/biz/util/mediaFileUploadV2.js +15 -0
- package/es/api/biz/util/openAudioPlayer.d.ts +17 -0
- package/es/api/biz/util/openAudioPlayer.js +23 -0
- package/es/api/biz/util/openFutureGroup.d.ts +10 -0
- package/es/api/biz/util/openFutureGroup.js +23 -0
- package/es/api/biz/util/openMediaFileDialogV2.d.ts +23 -0
- package/es/api/biz/util/openMediaFileDialogV2.js +16 -0
- package/es/api/biz/util/openPublish.d.ts +22 -0
- package/es/api/biz/util/openPublish.js +15 -0
- package/es/api/biz/util/screen.d.ts +15 -0
- package/es/api/biz/util/screen.js +15 -0
- package/es/api/biz/util/topicEvent.d.ts +13 -0
- package/es/api/biz/util/topicEvent.js +27 -0
- package/es/api/biz/util/weeklyRead.d.ts +5 -0
- package/es/api/biz/util/weeklyRead.js +23 -0
- package/es/api/device/connection/startNetworkChangeWatch.d.ts +8 -0
- package/es/api/device/connection/startNetworkChangeWatch.js +23 -0
- package/es/api/device/notification/actionSheet.d.ts +6 -0
- package/es/api/device/notification/hidePreloader.d.ts +6 -1
- package/es/api/device/notification/hidePreloader.js +15 -2
- package/es/api/device/notification/showPreloader.d.ts +10 -1
- package/es/api/device/notification/showPreloader.js +15 -2
- package/es/api/primary/updateTab.d.ts +9 -0
- package/es/api/primary/updateTab.js +15 -0
- package/es/index.d.ts +41 -3
- package/es/index.js +44 -5
- package/es/lib/bridge/mobile.js +61 -20
- package/es/lib/bridge/pc.js +50 -8
- package/es/lib/helper/pcIframe.d.ts +8 -25
- package/es/lib/helper/pcIframe.js +34 -8
- package/es/lib/index.js +2 -2
- package/es/lib/sdk/index.js +13 -4
- package/es/lib/sdk/sdk.typings.d.ts +2 -0
- package/es/utils/console.d.ts +1 -1
- package/es/utils/console.js +2 -2
- package/es/utils/env.js +7 -3
- package/es/utils/index.js +1 -1
- package/libs/api/biz/navigation/close.d.ts +1 -0
- package/libs/api/biz/navigation/tencentMeeting.d.ts +1 -0
- package/libs/api/biz/util/addAppToNav.d.ts +9 -0
- package/libs/api/biz/util/addAppToNav.js +30 -0
- package/libs/api/biz/util/copy.d.ts +11 -0
- package/libs/api/biz/util/copy.js +26 -0
- package/libs/api/biz/util/focus.d.ts +7 -0
- package/libs/api/biz/util/focus.js +30 -0
- package/libs/api/biz/util/getConfig.d.ts +13 -0
- package/libs/api/biz/util/getConfig.js +26 -0
- package/libs/api/biz/util/knowledgeBaseSelect.d.ts +21 -0
- package/libs/api/biz/util/knowledgeBaseSelect.js +30 -0
- package/libs/api/biz/util/knowledgeSelectParams.d.ts +14 -0
- package/libs/api/biz/util/knowledgeSelectParams.js +26 -0
- package/libs/api/biz/util/lorebaseRefreshNodeWebview.d.ts +11 -0
- package/libs/api/biz/util/lorebaseRefreshNodeWebview.js +26 -0
- package/libs/api/biz/util/lorebaseShowList.d.ts +11 -0
- package/libs/api/biz/util/lorebaseShowList.js +26 -0
- package/libs/api/biz/util/mediaFileUploadV2.d.ts +26 -0
- package/libs/api/biz/util/mediaFileUploadV2.js +23 -0
- package/libs/api/biz/util/openAudioPlayer.d.ts +17 -0
- package/libs/api/biz/util/openAudioPlayer.js +30 -0
- package/libs/api/biz/util/openFutureGroup.d.ts +10 -0
- package/libs/api/biz/util/openFutureGroup.js +30 -0
- package/libs/api/biz/util/openMediaFileDialogV2.d.ts +23 -0
- package/libs/api/biz/util/openMediaFileDialogV2.js +24 -0
- package/libs/api/biz/util/openPublish.d.ts +22 -0
- package/libs/api/biz/util/openPublish.js +22 -0
- package/libs/api/biz/util/screen.d.ts +15 -0
- package/libs/api/biz/util/screen.js +22 -0
- package/libs/api/biz/util/topicEvent.d.ts +13 -0
- package/libs/api/biz/util/topicEvent.js +34 -0
- package/libs/api/biz/util/weeklyRead.d.ts +5 -0
- package/libs/api/biz/util/weeklyRead.js +30 -0
- package/libs/api/device/connection/startNetworkChangeWatch.d.ts +8 -0
- package/libs/api/device/connection/startNetworkChangeWatch.js +30 -0
- package/libs/api/device/notification/actionSheet.d.ts +6 -0
- package/libs/api/device/notification/hidePreloader.d.ts +6 -1
- package/libs/api/device/notification/hidePreloader.js +15 -1
- package/libs/api/device/notification/showPreloader.d.ts +10 -1
- package/libs/api/device/notification/showPreloader.js +15 -1
- package/libs/api/initAPI.js +1 -2
- package/libs/api/primary/updateTab.d.ts +9 -0
- package/libs/api/primary/updateTab.js +22 -0
- package/libs/index.d.ts +41 -3
- package/libs/index.js +186 -25
- package/libs/lib/bridge/mobile.js +64 -25
- package/libs/lib/bridge/pc.js +53 -13
- package/libs/lib/helper/event.js +1 -2
- package/libs/lib/helper/pcIframe.d.ts +8 -25
- package/libs/lib/helper/pcIframe.js +35 -10
- package/libs/lib/index.js +3 -4
- package/libs/lib/sdk/index.js +13 -5
- package/libs/lib/sdk/sdk.typings.d.ts +2 -0
- package/libs/lib/sdk/sdk.typings.js +0 -1
- package/libs/utils/compareVersions.js +4 -8
- package/libs/utils/console.d.ts +1 -1
- package/libs/utils/console.js +2 -2
- package/libs/utils/env.js +7 -3
- package/libs/utils/index.js +1 -1
- package/package.json +1 -3
- package/dist/yach_jssdk_4.3.3.js +0 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IError } from '../../common.typings';
|
|
2
|
+
export interface IKnowledgeBaseSelectResult {
|
|
3
|
+
code: number;
|
|
4
|
+
message: string;
|
|
5
|
+
data: any;
|
|
6
|
+
}
|
|
7
|
+
declare type YachNode = {
|
|
8
|
+
node_name: string;
|
|
9
|
+
node_type: string;
|
|
10
|
+
link: string;
|
|
11
|
+
};
|
|
12
|
+
export interface IKnowledgeBaseSelectParams {
|
|
13
|
+
source: string;
|
|
14
|
+
title?: string;
|
|
15
|
+
list: YachNode[];
|
|
16
|
+
isAddToBase?: boolean;
|
|
17
|
+
onSuccess?: (res: IKnowledgeBaseSelectResult) => void;
|
|
18
|
+
onFail?: (err: IError) => void;
|
|
19
|
+
}
|
|
20
|
+
declare function knowledgeBaseSelect(params: IKnowledgeBaseSelectParams): void;
|
|
21
|
+
export { knowledgeBaseSelect };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.knowledgeBaseSelect = knowledgeBaseSelect;
|
|
9
|
+
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
+
var pc = {
|
|
11
|
+
vs: '1.8.8'
|
|
12
|
+
};
|
|
13
|
+
var ios = {
|
|
14
|
+
vs: '1.9.12'
|
|
15
|
+
};
|
|
16
|
+
var android = {
|
|
17
|
+
vs: '1.9.12'
|
|
18
|
+
};
|
|
19
|
+
var platform = {
|
|
20
|
+
pc: pc,
|
|
21
|
+
ios: ios,
|
|
22
|
+
android: android
|
|
23
|
+
};
|
|
24
|
+
var apiName = 'biz.util.knowledgeBaseSelect';
|
|
25
|
+
function knowledgeBaseSelect(params) {
|
|
26
|
+
(0, _initAPI["default"])(apiName, {
|
|
27
|
+
params: params,
|
|
28
|
+
platform: platform
|
|
29
|
+
});
|
|
30
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IError } from '../../common.typings';
|
|
2
|
+
export interface KnowledgeSelectParamsResult {
|
|
3
|
+
code: number;
|
|
4
|
+
message: string;
|
|
5
|
+
data: any;
|
|
6
|
+
}
|
|
7
|
+
export interface KnowledgeSelectParams {
|
|
8
|
+
type: number;
|
|
9
|
+
result: KnowledgeSelectParamsResult;
|
|
10
|
+
onSuccess?: (res: KnowledgeSelectParamsResult) => void;
|
|
11
|
+
onFail?: (err: IError) => void;
|
|
12
|
+
}
|
|
13
|
+
declare function knowledgeSelectParams(params: KnowledgeSelectParams): void;
|
|
14
|
+
export { knowledgeSelectParams };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.knowledgeSelectParams = knowledgeSelectParams;
|
|
9
|
+
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
+
var ios = {
|
|
11
|
+
vs: '1.9.12'
|
|
12
|
+
};
|
|
13
|
+
var android = {
|
|
14
|
+
vs: '1.9.12'
|
|
15
|
+
};
|
|
16
|
+
var platform = {
|
|
17
|
+
ios: ios,
|
|
18
|
+
android: android
|
|
19
|
+
};
|
|
20
|
+
var apiName = 'biz.util.knowledgeSelectParams';
|
|
21
|
+
function knowledgeSelectParams(params) {
|
|
22
|
+
(0, _initAPI["default"])(apiName, {
|
|
23
|
+
params: params,
|
|
24
|
+
platform: platform
|
|
25
|
+
});
|
|
26
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IError } from '../../common.typings';
|
|
2
|
+
export interface IBizUtilLorebaseRefreshNodeWebviewResult {
|
|
3
|
+
data?: Object;
|
|
4
|
+
}
|
|
5
|
+
export interface IBizUtilLorebaseRefreshNodeWebviewParams {
|
|
6
|
+
link: string;
|
|
7
|
+
onSuccess?: (data: IBizUtilLorebaseRefreshNodeWebviewResult) => void;
|
|
8
|
+
onFail?: (err: IError) => void;
|
|
9
|
+
}
|
|
10
|
+
declare function lorebaseRefreshNodeWebview(params: IBizUtilLorebaseRefreshNodeWebviewParams): void;
|
|
11
|
+
export { lorebaseRefreshNodeWebview };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.lorebaseRefreshNodeWebview = lorebaseRefreshNodeWebview;
|
|
9
|
+
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
+
var ios = {
|
|
11
|
+
vs: '0.0.0'
|
|
12
|
+
};
|
|
13
|
+
var android = {
|
|
14
|
+
vs: '0.0.0'
|
|
15
|
+
};
|
|
16
|
+
var platform = {
|
|
17
|
+
ios: ios,
|
|
18
|
+
android: android
|
|
19
|
+
};
|
|
20
|
+
var apiName = 'biz.util.lorebaseRefreshNodeWebview';
|
|
21
|
+
function lorebaseRefreshNodeWebview(params) {
|
|
22
|
+
(0, _initAPI["default"])(apiName, {
|
|
23
|
+
params: params,
|
|
24
|
+
platform: platform
|
|
25
|
+
});
|
|
26
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IError } from '../../common.typings';
|
|
2
|
+
export interface IBizUtilLorebaseShowListResult {
|
|
3
|
+
data?: Object;
|
|
4
|
+
}
|
|
5
|
+
export interface IBizUtilLorebaseShowListParams {
|
|
6
|
+
isShow: Boolean;
|
|
7
|
+
onSuccess?: (data: IBizUtilLorebaseShowListResult) => void;
|
|
8
|
+
onFail?: (err: IError) => void;
|
|
9
|
+
}
|
|
10
|
+
declare function lorebaseShowList(params: IBizUtilLorebaseShowListParams): void;
|
|
11
|
+
export { lorebaseShowList };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.lorebaseShowList = lorebaseShowList;
|
|
9
|
+
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
+
var ios = {
|
|
11
|
+
vs: '0.0.0'
|
|
12
|
+
};
|
|
13
|
+
var android = {
|
|
14
|
+
vs: '0.0.0'
|
|
15
|
+
};
|
|
16
|
+
var platform = {
|
|
17
|
+
ios: ios,
|
|
18
|
+
android: android
|
|
19
|
+
};
|
|
20
|
+
var apiName = 'biz.util.lorebaseShowList';
|
|
21
|
+
function lorebaseShowList(params) {
|
|
22
|
+
(0, _initAPI["default"])(apiName, {
|
|
23
|
+
params: params,
|
|
24
|
+
platform: platform
|
|
25
|
+
});
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IError } from '../../common.typings';
|
|
2
|
+
export interface IBizUtilFileUploadProgress {
|
|
3
|
+
loaded: number;
|
|
4
|
+
total: number;
|
|
5
|
+
speed: number;
|
|
6
|
+
percent: number;
|
|
7
|
+
}
|
|
8
|
+
export interface IBizUtilFileUploadResult {
|
|
9
|
+
data?: {
|
|
10
|
+
fileId?: string;
|
|
11
|
+
filePath?: string;
|
|
12
|
+
fileName?: string;
|
|
13
|
+
sourcePath?: string;
|
|
14
|
+
relation_id?: string;
|
|
15
|
+
videoPic?: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface IBizUtilFileUploadParams {
|
|
19
|
+
/** 支持上传附件的文件类型,至少一个,支持多种类型 */
|
|
20
|
+
files?: Array<Object>;
|
|
21
|
+
onSuccess?: (data: IBizUtilFileUploadResult) => void;
|
|
22
|
+
onFail?: (err: IError) => void;
|
|
23
|
+
onProgress?: (data: IBizUtilFileUploadProgress) => void;
|
|
24
|
+
}
|
|
25
|
+
declare function mediaFileUploadV2(params: IBizUtilFileUploadParams): void;
|
|
26
|
+
export { mediaFileUploadV2 };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.mediaFileUploadV2 = mediaFileUploadV2;
|
|
9
|
+
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
+
/*
|
|
11
|
+
* @Descripttion:
|
|
12
|
+
* @Author: olei<wangzheng_jzb@100tal.com>
|
|
13
|
+
* @Date: 2020-09-08 17:15:21
|
|
14
|
+
* @LastEditors: olei<wangzheng_jzb@100tal.com>
|
|
15
|
+
* @LastEditTime: 2020-09-15 11:48:01
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
var apiName = 'biz.util.mediaFileUploadV2';
|
|
19
|
+
function mediaFileUploadV2(params) {
|
|
20
|
+
(0, _initAPI["default"])(apiName, {
|
|
21
|
+
params: params
|
|
22
|
+
});
|
|
23
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IError } from '../../common.typings';
|
|
2
|
+
export interface IBizUtilopenAudioPlayerParams {
|
|
3
|
+
/**
|
|
4
|
+
* 播放地址
|
|
5
|
+
*/
|
|
6
|
+
url?: string;
|
|
7
|
+
/**
|
|
8
|
+
* 腾讯云所返回,可根据 relationId 获取到视频资源
|
|
9
|
+
*/
|
|
10
|
+
relationId?: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
size?: number;
|
|
13
|
+
onSuccess?: () => void;
|
|
14
|
+
onFail?: (err: IError) => void;
|
|
15
|
+
}
|
|
16
|
+
declare function openAudioPlayer(params: IBizUtilopenAudioPlayerParams): void;
|
|
17
|
+
export { openAudioPlayer };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.openAudioPlayer = openAudioPlayer;
|
|
9
|
+
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
+
var apiName = 'biz.util.openAudioPlayer';
|
|
11
|
+
var pc = {
|
|
12
|
+
vs: '1.9.13'
|
|
13
|
+
};
|
|
14
|
+
var ios = {
|
|
15
|
+
vs: '1.9.13'
|
|
16
|
+
};
|
|
17
|
+
var android = {
|
|
18
|
+
vs: '1.9.13'
|
|
19
|
+
};
|
|
20
|
+
var platform = {
|
|
21
|
+
pc: pc,
|
|
22
|
+
ios: ios,
|
|
23
|
+
android: android
|
|
24
|
+
};
|
|
25
|
+
function openAudioPlayer(params) {
|
|
26
|
+
(0, _initAPI["default"])(apiName, {
|
|
27
|
+
params: params,
|
|
28
|
+
platform: platform
|
|
29
|
+
});
|
|
30
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IError } from '../../common.typings';
|
|
2
|
+
export interface OpenFutureGroupParams {
|
|
3
|
+
bigType: string;
|
|
4
|
+
type: number | string;
|
|
5
|
+
subType: number | string;
|
|
6
|
+
onSuccess?: () => void;
|
|
7
|
+
onFail?: (err: IError) => void;
|
|
8
|
+
}
|
|
9
|
+
declare function openFutureGroup(params?: OpenFutureGroupParams): void;
|
|
10
|
+
export { openFutureGroup };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.openFutureGroup = openFutureGroup;
|
|
9
|
+
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
+
var ios = {
|
|
11
|
+
vs: '1.8.8'
|
|
12
|
+
};
|
|
13
|
+
var android = {
|
|
14
|
+
vs: '1.8.8'
|
|
15
|
+
};
|
|
16
|
+
var pc = {
|
|
17
|
+
vs: '1.8.8'
|
|
18
|
+
};
|
|
19
|
+
var platform = {
|
|
20
|
+
pc: pc,
|
|
21
|
+
ios: ios,
|
|
22
|
+
android: android
|
|
23
|
+
};
|
|
24
|
+
var apiName = 'biz.util.openFutureGroup';
|
|
25
|
+
function openFutureGroup(params) {
|
|
26
|
+
(0, _initAPI["default"])(apiName, {
|
|
27
|
+
params: params,
|
|
28
|
+
platform: platform
|
|
29
|
+
});
|
|
30
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IError } from '../../common.typings';
|
|
2
|
+
export interface IBizUtilOpenFileDialogResult {
|
|
3
|
+
data?: {
|
|
4
|
+
files?: Array<Object>;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
export interface IBizUtilOpenFileDialogParams {
|
|
8
|
+
/** multiple是否支持多文件 */
|
|
9
|
+
multiple?: boolean;
|
|
10
|
+
/** 支持图片附件的文件类型 */
|
|
11
|
+
imageOpt?: {
|
|
12
|
+
max?: Number;
|
|
13
|
+
};
|
|
14
|
+
/** 支持视频附件的文件类型 */
|
|
15
|
+
videoOpt?: {
|
|
16
|
+
max?: Number;
|
|
17
|
+
duration?: Number;
|
|
18
|
+
};
|
|
19
|
+
onSuccess?: (data: IBizUtilOpenFileDialogResult) => void;
|
|
20
|
+
onFail?: (err: IError) => void;
|
|
21
|
+
}
|
|
22
|
+
declare function openMediaFileDialogV2(params: IBizUtilOpenFileDialogParams): void;
|
|
23
|
+
export { openMediaFileDialogV2 };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.openMediaFileDialogV2 = openMediaFileDialogV2;
|
|
9
|
+
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
+
/*
|
|
11
|
+
* @Descripttion:
|
|
12
|
+
* @Author: zhangyong<zhangyong_jzb@100tal.com>
|
|
13
|
+
* @Date: 2025-07-28 17:15:05
|
|
14
|
+
* @LastEditors: zhangyong<zhangyong_jzb@100tal.com>
|
|
15
|
+
* @LastEditTime: 2025-07-28 17:16:05
|
|
16
|
+
* 新增文件选择器——针对移动端专用——支持ios文件导出
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
var apiName = 'biz.util.openMediaFileDialogV2';
|
|
20
|
+
function openMediaFileDialogV2(params) {
|
|
21
|
+
(0, _initAPI["default"])(apiName, {
|
|
22
|
+
params: params
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IError } from '../../common.typings';
|
|
2
|
+
export interface IOpenPublishResult {
|
|
3
|
+
code: number;
|
|
4
|
+
message: string;
|
|
5
|
+
data: any;
|
|
6
|
+
}
|
|
7
|
+
export interface IOpenPublishParams {
|
|
8
|
+
squadId?: string;
|
|
9
|
+
squadName?: string;
|
|
10
|
+
source: string;
|
|
11
|
+
multiple?: boolean;
|
|
12
|
+
topicType: '0' | '1' | '2';
|
|
13
|
+
topicTypeMultiple?: boolean;
|
|
14
|
+
content?: string;
|
|
15
|
+
pic?: string;
|
|
16
|
+
video?: string;
|
|
17
|
+
url?: string;
|
|
18
|
+
onSuccess?: (res: IOpenPublishResult) => void;
|
|
19
|
+
onFail?: (err: IError) => void;
|
|
20
|
+
}
|
|
21
|
+
declare function openPublish(params: IOpenPublishParams): void;
|
|
22
|
+
export { openPublish };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.openPublish = openPublish;
|
|
9
|
+
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
+
var pc = {
|
|
11
|
+
vs: '1.8.8'
|
|
12
|
+
};
|
|
13
|
+
var platform = {
|
|
14
|
+
pc: pc
|
|
15
|
+
};
|
|
16
|
+
var apiName = 'biz.util.openPublish';
|
|
17
|
+
function openPublish(params) {
|
|
18
|
+
(0, _initAPI["default"])(apiName, {
|
|
19
|
+
params: params,
|
|
20
|
+
platform: platform
|
|
21
|
+
});
|
|
22
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IError } from '../../common.typings';
|
|
2
|
+
export interface IUtilCapturePageParams {
|
|
3
|
+
rect?: {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
};
|
|
9
|
+
onSuccess?: () => {
|
|
10
|
+
base64: string;
|
|
11
|
+
};
|
|
12
|
+
onFail?: (err: IError) => void;
|
|
13
|
+
}
|
|
14
|
+
declare function capturePage(params: IUtilCapturePageParams): void;
|
|
15
|
+
export { capturePage };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.capturePage = capturePage;
|
|
9
|
+
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
+
var apiName = 'biz.util.capturePage';
|
|
11
|
+
var pc = {
|
|
12
|
+
vs: '1.9.9'
|
|
13
|
+
};
|
|
14
|
+
var platform = {
|
|
15
|
+
pc: pc
|
|
16
|
+
};
|
|
17
|
+
function capturePage(params) {
|
|
18
|
+
(0, _initAPI["default"])(apiName, {
|
|
19
|
+
params: params,
|
|
20
|
+
platform: platform
|
|
21
|
+
});
|
|
22
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IError } from '../../common.typings';
|
|
2
|
+
export interface IBizUtilTopicEventParams {
|
|
3
|
+
eventName: string;
|
|
4
|
+
data: any;
|
|
5
|
+
onSuccess?: (res: any) => void;
|
|
6
|
+
onFail?: (err: IError) => void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* 话题群 公共事件
|
|
10
|
+
* @param params
|
|
11
|
+
*/
|
|
12
|
+
declare function topicEvent(params: IBizUtilTopicEventParams): void;
|
|
13
|
+
export { topicEvent };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.topicEvent = topicEvent;
|
|
9
|
+
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
+
var apiName = 'biz.util.topicEvent';
|
|
11
|
+
var ios = {
|
|
12
|
+
vs: '0.0.0'
|
|
13
|
+
};
|
|
14
|
+
var android = {
|
|
15
|
+
vs: '0.0.0'
|
|
16
|
+
};
|
|
17
|
+
var pc = {
|
|
18
|
+
vs: '0.0.0'
|
|
19
|
+
};
|
|
20
|
+
var platform = {
|
|
21
|
+
ios: ios,
|
|
22
|
+
android: android,
|
|
23
|
+
pc: pc
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* 话题群 公共事件
|
|
27
|
+
* @param params
|
|
28
|
+
*/
|
|
29
|
+
function topicEvent(params) {
|
|
30
|
+
(0, _initAPI["default"])(apiName, {
|
|
31
|
+
params: params,
|
|
32
|
+
platform: platform
|
|
33
|
+
});
|
|
34
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.weeklyRead = weeklyRead;
|
|
9
|
+
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
+
var ios = {
|
|
11
|
+
vs: '1.9.3.1'
|
|
12
|
+
};
|
|
13
|
+
var android = {
|
|
14
|
+
vs: '1.9.3.1'
|
|
15
|
+
};
|
|
16
|
+
var pc = {
|
|
17
|
+
vs: '1.9.3.1'
|
|
18
|
+
};
|
|
19
|
+
var platform = {
|
|
20
|
+
pc: pc,
|
|
21
|
+
ios: ios,
|
|
22
|
+
android: android
|
|
23
|
+
};
|
|
24
|
+
var apiName = 'biz.util.weeklyRead';
|
|
25
|
+
function weeklyRead(params) {
|
|
26
|
+
(0, _initAPI["default"])(apiName, {
|
|
27
|
+
params: params,
|
|
28
|
+
platform: platform
|
|
29
|
+
});
|
|
30
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IError } from '../../common.typings';
|
|
2
|
+
export interface IDeviceConnectionStartNetworkChangeWatchParams {
|
|
3
|
+
enable?: boolean;
|
|
4
|
+
onSuccess?: () => void;
|
|
5
|
+
onFail?: (err: IError) => void;
|
|
6
|
+
}
|
|
7
|
+
declare function startNetworkChangeWatch(params?: IDeviceConnectionStartNetworkChangeWatchParams): void;
|
|
8
|
+
export { startNetworkChangeWatch };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.startNetworkChangeWatch = startNetworkChangeWatch;
|
|
9
|
+
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
+
var apiName = 'device.connection.startNetworkChangeWatch';
|
|
11
|
+
var ios = {
|
|
12
|
+
vs: '1.9.16.1'
|
|
13
|
+
};
|
|
14
|
+
var android = {
|
|
15
|
+
vs: '1.9.16.1'
|
|
16
|
+
};
|
|
17
|
+
var pc = {
|
|
18
|
+
vs: '1.9.16.1'
|
|
19
|
+
};
|
|
20
|
+
var platform = {
|
|
21
|
+
pc: pc,
|
|
22
|
+
ios: ios,
|
|
23
|
+
android: android
|
|
24
|
+
};
|
|
25
|
+
function startNetworkChangeWatch(params) {
|
|
26
|
+
(0, _initAPI["default"])(apiName, {
|
|
27
|
+
params: params,
|
|
28
|
+
platform: platform
|
|
29
|
+
});
|
|
30
|
+
}
|
|
@@ -8,6 +8,12 @@ export interface IDeviceNotificationActionSheetParams {
|
|
|
8
8
|
title?: string;
|
|
9
9
|
/** 其他按钮列表 */
|
|
10
10
|
otherButtons?: string[];
|
|
11
|
+
/** 其他按钮颜色,如果传了,数量必须与otherButtons一致,否则弹不出来*/
|
|
12
|
+
otherButtonColors?: string[];
|
|
13
|
+
/** 选择样式,是否支持选中状态 */
|
|
14
|
+
selectedStyle?: Boolean;
|
|
15
|
+
/** 选中index */
|
|
16
|
+
selectedIndex?: Boolean;
|
|
11
17
|
onSuccess?: (data: IDeviceNotificationActionSheetResult) => void;
|
|
12
18
|
onFail?: (err: IError) => void;
|
|
13
19
|
}
|
|
@@ -4,4 +4,9 @@ export interface IDeviceNotificationHidePreloaderParams {
|
|
|
4
4
|
onFail?: (err: IError) => void;
|
|
5
5
|
}
|
|
6
6
|
declare function hidePreloader(params?: IDeviceNotificationHidePreloaderParams): void;
|
|
7
|
-
|
|
7
|
+
interface IDeviceNotificationHideCustomPreloaderParams {
|
|
8
|
+
onSuccess?: () => void;
|
|
9
|
+
onFail?: (err: IError) => void;
|
|
10
|
+
}
|
|
11
|
+
declare function hideCustomOverlayContent(params?: IDeviceNotificationHideCustomPreloaderParams): void;
|
|
12
|
+
export { hidePreloader, hideCustomOverlayContent };
|
|
@@ -5,6 +5,7 @@ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequ
|
|
|
5
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
+
exports.hideCustomOverlayContent = hideCustomOverlayContent;
|
|
8
9
|
exports.hidePreloader = hidePreloader;
|
|
9
10
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
11
|
var apiName = 'device.notification.hidePreloader';
|
|
@@ -14,13 +15,26 @@ var ios = {
|
|
|
14
15
|
var android = {
|
|
15
16
|
vs: '0.0.0'
|
|
16
17
|
};
|
|
18
|
+
var pc = {
|
|
19
|
+
vs: '1.9.9'
|
|
20
|
+
};
|
|
17
21
|
var platform = {
|
|
18
22
|
ios: ios,
|
|
19
|
-
android: android
|
|
23
|
+
android: android,
|
|
24
|
+
pc: pc
|
|
20
25
|
};
|
|
21
26
|
function hidePreloader(params) {
|
|
22
27
|
(0, _initAPI["default"])(apiName, {
|
|
23
28
|
params: params,
|
|
24
29
|
platform: platform
|
|
25
30
|
});
|
|
31
|
+
}
|
|
32
|
+
var apiNameCustom = 'device.notification.hideCustomOverlayContent';
|
|
33
|
+
function hideCustomOverlayContent(params) {
|
|
34
|
+
(0, _initAPI["default"])(apiNameCustom, {
|
|
35
|
+
params: params,
|
|
36
|
+
platform: {
|
|
37
|
+
pc: pc
|
|
38
|
+
}
|
|
39
|
+
});
|
|
26
40
|
}
|
|
@@ -2,8 +2,17 @@ import { IError } from '../../common.typings';
|
|
|
2
2
|
export interface IDeviceNotificationShowPreloaderParams {
|
|
3
3
|
text?: string;
|
|
4
4
|
showIcon?: boolean;
|
|
5
|
+
showCancel?: boolean;
|
|
5
6
|
onSuccess?: () => void;
|
|
6
7
|
onFail?: (err: IError) => void;
|
|
7
8
|
}
|
|
8
9
|
declare function showPreloader(params?: IDeviceNotificationShowPreloaderParams): void;
|
|
9
|
-
|
|
10
|
+
interface IDeviceNotificationShowCustomPreloaderParams {
|
|
11
|
+
html: string;
|
|
12
|
+
styles?: string;
|
|
13
|
+
containerClassName?: string;
|
|
14
|
+
onSuccess?: () => void;
|
|
15
|
+
onFail?: (err: IError) => void;
|
|
16
|
+
}
|
|
17
|
+
declare function showCustomOverlayContent(params?: IDeviceNotificationShowCustomPreloaderParams): void;
|
|
18
|
+
export { showPreloader, showCustomOverlayContent };
|