yach.open.jssdk 4.4.9 → 4.4.10-beta.2
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.3.3.js +1 -0
- package/es/api/biz/navigation/close.d.ts +0 -1
- package/es/api/biz/navigation/tencentMeeting.d.ts +0 -1
- package/es/api/device/notification/hidePreloader.d.ts +1 -6
- package/es/api/device/notification/hidePreloader.js +2 -15
- package/es/api/device/notification/showPreloader.d.ts +1 -10
- package/es/api/device/notification/showPreloader.js +2 -15
- package/es/index.d.ts +3 -41
- package/es/index.js +5 -44
- package/es/lib/bridge/mobile.js +20 -61
- package/es/lib/bridge/pc.js +8 -50
- package/es/lib/helper/pcIframe.d.ts +25 -8
- package/es/lib/helper/pcIframe.js +8 -34
- package/es/lib/sdk/index.js +4 -13
- package/es/lib/sdk/sdk.typings.d.ts +0 -2
- package/es/utils/console.d.ts +1 -1
- package/es/utils/console.js +2 -2
- package/es/utils/env.js +3 -7
- package/es/utils/index.js +1 -1
- package/libs/api/biz/navigation/close.d.ts +0 -1
- package/libs/api/biz/navigation/tencentMeeting.d.ts +0 -1
- package/libs/api/device/notification/hidePreloader.d.ts +1 -6
- package/libs/api/device/notification/hidePreloader.js +1 -15
- package/libs/api/device/notification/showPreloader.d.ts +1 -10
- package/libs/api/device/notification/showPreloader.js +1 -15
- package/libs/api/initAPI.js +2 -1
- package/libs/index.d.ts +3 -41
- package/libs/index.js +25 -186
- package/libs/lib/bridge/mobile.js +25 -64
- package/libs/lib/bridge/pc.js +13 -53
- package/libs/lib/helper/event.js +2 -1
- package/libs/lib/helper/pcIframe.d.ts +25 -8
- package/libs/lib/helper/pcIframe.js +10 -35
- package/libs/lib/index.js +2 -1
- package/libs/lib/sdk/index.js +5 -13
- package/libs/lib/sdk/sdk.typings.d.ts +0 -2
- package/libs/lib/sdk/sdk.typings.js +1 -0
- package/libs/utils/compareVersions.js +8 -4
- package/libs/utils/console.d.ts +1 -1
- package/libs/utils/console.js +2 -2
- package/libs/utils/env.js +3 -7
- package/libs/utils/index.js +1 -1
- package/package.json +3 -1
- package/dist/yach_jssdk_4.4.9.js +0 -1
- package/es/api/biz/util/addAppToNav.d.ts +0 -9
- package/es/api/biz/util/addAppToNav.js +0 -23
- package/es/api/biz/util/copy.d.ts +0 -11
- package/es/api/biz/util/copy.js +0 -19
- package/es/api/biz/util/focus.d.ts +0 -7
- package/es/api/biz/util/focus.js +0 -23
- package/es/api/biz/util/getConfig.d.ts +0 -13
- package/es/api/biz/util/getConfig.js +0 -19
- package/es/api/biz/util/knowledgeBaseSelect.d.ts +0 -21
- package/es/api/biz/util/knowledgeBaseSelect.js +0 -23
- package/es/api/biz/util/knowledgeSelectParams.d.ts +0 -14
- package/es/api/biz/util/knowledgeSelectParams.js +0 -19
- package/es/api/biz/util/lorebaseRefreshNodeWebview.d.ts +0 -11
- package/es/api/biz/util/lorebaseRefreshNodeWebview.js +0 -19
- package/es/api/biz/util/lorebaseShowList.d.ts +0 -11
- package/es/api/biz/util/lorebaseShowList.js +0 -19
- package/es/api/biz/util/mediaFileUploadV2.d.ts +0 -26
- package/es/api/biz/util/mediaFileUploadV2.js +0 -15
- package/es/api/biz/util/openAudioPlayer.d.ts +0 -17
- package/es/api/biz/util/openAudioPlayer.js +0 -23
- package/es/api/biz/util/openFutureGroup.d.ts +0 -10
- package/es/api/biz/util/openFutureGroup.js +0 -23
- package/es/api/biz/util/openMediaFileDialogV2.d.ts +0 -23
- package/es/api/biz/util/openMediaFileDialogV2.js +0 -16
- package/es/api/biz/util/openPublish.d.ts +0 -22
- package/es/api/biz/util/openPublish.js +0 -15
- package/es/api/biz/util/screen.d.ts +0 -15
- package/es/api/biz/util/screen.js +0 -15
- package/es/api/biz/util/topicEvent.d.ts +0 -13
- package/es/api/biz/util/topicEvent.js +0 -27
- package/es/api/biz/util/weeklyRead.d.ts +0 -5
- package/es/api/biz/util/weeklyRead.js +0 -23
- package/es/api/device/connection/startNetworkChangeWatch.d.ts +0 -8
- package/es/api/device/connection/startNetworkChangeWatch.js +0 -23
- package/es/api/primary/updateTab.d.ts +0 -9
- package/es/api/primary/updateTab.js +0 -15
- package/libs/api/biz/util/addAppToNav.d.ts +0 -9
- package/libs/api/biz/util/addAppToNav.js +0 -30
- package/libs/api/biz/util/copy.d.ts +0 -11
- package/libs/api/biz/util/copy.js +0 -26
- package/libs/api/biz/util/focus.d.ts +0 -7
- package/libs/api/biz/util/focus.js +0 -30
- package/libs/api/biz/util/getConfig.d.ts +0 -13
- package/libs/api/biz/util/getConfig.js +0 -26
- package/libs/api/biz/util/knowledgeBaseSelect.d.ts +0 -21
- package/libs/api/biz/util/knowledgeBaseSelect.js +0 -30
- package/libs/api/biz/util/knowledgeSelectParams.d.ts +0 -14
- package/libs/api/biz/util/knowledgeSelectParams.js +0 -26
- package/libs/api/biz/util/lorebaseRefreshNodeWebview.d.ts +0 -11
- package/libs/api/biz/util/lorebaseRefreshNodeWebview.js +0 -26
- package/libs/api/biz/util/lorebaseShowList.d.ts +0 -11
- package/libs/api/biz/util/lorebaseShowList.js +0 -26
- package/libs/api/biz/util/mediaFileUploadV2.d.ts +0 -26
- package/libs/api/biz/util/mediaFileUploadV2.js +0 -23
- package/libs/api/biz/util/openAudioPlayer.d.ts +0 -17
- package/libs/api/biz/util/openAudioPlayer.js +0 -30
- package/libs/api/biz/util/openFutureGroup.d.ts +0 -10
- package/libs/api/biz/util/openFutureGroup.js +0 -30
- package/libs/api/biz/util/openMediaFileDialogV2.d.ts +0 -23
- package/libs/api/biz/util/openMediaFileDialogV2.js +0 -24
- package/libs/api/biz/util/openPublish.d.ts +0 -22
- package/libs/api/biz/util/openPublish.js +0 -22
- package/libs/api/biz/util/screen.d.ts +0 -15
- package/libs/api/biz/util/screen.js +0 -22
- package/libs/api/biz/util/topicEvent.d.ts +0 -13
- package/libs/api/biz/util/topicEvent.js +0 -34
- package/libs/api/biz/util/weeklyRead.d.ts +0 -5
- package/libs/api/biz/util/weeklyRead.js +0 -30
- package/libs/api/device/connection/startNetworkChangeWatch.d.ts +0 -8
- package/libs/api/device/connection/startNetworkChangeWatch.js +0 -30
- package/libs/api/primary/updateTab.d.ts +0 -9
- package/libs/api/primary/updateTab.js +0 -22
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
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 };
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
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 };
|
|
@@ -1,34 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
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 };
|
|
@@ -1,30 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IError } from '../common.typings';
|
|
2
|
-
export interface IPrimaryUpdateTab {
|
|
3
|
-
/** 应用标题 */
|
|
4
|
-
title?: string;
|
|
5
|
-
onSuccess?: () => void;
|
|
6
|
-
onFail?: (err: IError) => void;
|
|
7
|
-
}
|
|
8
|
-
declare function updateTab(params: IPrimaryUpdateTab): void;
|
|
9
|
-
export { updateTab };
|
|
@@ -1,22 +0,0 @@
|
|
|
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.updateTab = updateTab;
|
|
9
|
-
var _initAPI = _interopRequireDefault(require("../initAPI"));
|
|
10
|
-
var apiName = 'primary.updateTab';
|
|
11
|
-
var pc = {
|
|
12
|
-
vs: '1.9.12'
|
|
13
|
-
};
|
|
14
|
-
var platform = {
|
|
15
|
-
pc: pc
|
|
16
|
-
};
|
|
17
|
-
function updateTab(params) {
|
|
18
|
-
(0, _initAPI["default"])(apiName, {
|
|
19
|
-
params: params,
|
|
20
|
-
platform: platform
|
|
21
|
-
});
|
|
22
|
-
}
|