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.
Files changed (116) hide show
  1. package/dist/yach_jssdk_4.3.3.js +1 -0
  2. package/es/api/biz/navigation/close.d.ts +0 -1
  3. package/es/api/biz/navigation/tencentMeeting.d.ts +0 -1
  4. package/es/api/device/notification/hidePreloader.d.ts +1 -6
  5. package/es/api/device/notification/hidePreloader.js +2 -15
  6. package/es/api/device/notification/showPreloader.d.ts +1 -10
  7. package/es/api/device/notification/showPreloader.js +2 -15
  8. package/es/index.d.ts +3 -41
  9. package/es/index.js +5 -44
  10. package/es/lib/bridge/mobile.js +20 -61
  11. package/es/lib/bridge/pc.js +8 -50
  12. package/es/lib/helper/pcIframe.d.ts +25 -8
  13. package/es/lib/helper/pcIframe.js +8 -34
  14. package/es/lib/sdk/index.js +4 -13
  15. package/es/lib/sdk/sdk.typings.d.ts +0 -2
  16. package/es/utils/console.d.ts +1 -1
  17. package/es/utils/console.js +2 -2
  18. package/es/utils/env.js +3 -7
  19. package/es/utils/index.js +1 -1
  20. package/libs/api/biz/navigation/close.d.ts +0 -1
  21. package/libs/api/biz/navigation/tencentMeeting.d.ts +0 -1
  22. package/libs/api/device/notification/hidePreloader.d.ts +1 -6
  23. package/libs/api/device/notification/hidePreloader.js +1 -15
  24. package/libs/api/device/notification/showPreloader.d.ts +1 -10
  25. package/libs/api/device/notification/showPreloader.js +1 -15
  26. package/libs/api/initAPI.js +2 -1
  27. package/libs/index.d.ts +3 -41
  28. package/libs/index.js +25 -186
  29. package/libs/lib/bridge/mobile.js +25 -64
  30. package/libs/lib/bridge/pc.js +13 -53
  31. package/libs/lib/helper/event.js +2 -1
  32. package/libs/lib/helper/pcIframe.d.ts +25 -8
  33. package/libs/lib/helper/pcIframe.js +10 -35
  34. package/libs/lib/index.js +2 -1
  35. package/libs/lib/sdk/index.js +5 -13
  36. package/libs/lib/sdk/sdk.typings.d.ts +0 -2
  37. package/libs/lib/sdk/sdk.typings.js +1 -0
  38. package/libs/utils/compareVersions.js +8 -4
  39. package/libs/utils/console.d.ts +1 -1
  40. package/libs/utils/console.js +2 -2
  41. package/libs/utils/env.js +3 -7
  42. package/libs/utils/index.js +1 -1
  43. package/package.json +3 -1
  44. package/dist/yach_jssdk_4.4.9.js +0 -1
  45. package/es/api/biz/util/addAppToNav.d.ts +0 -9
  46. package/es/api/biz/util/addAppToNav.js +0 -23
  47. package/es/api/biz/util/copy.d.ts +0 -11
  48. package/es/api/biz/util/copy.js +0 -19
  49. package/es/api/biz/util/focus.d.ts +0 -7
  50. package/es/api/biz/util/focus.js +0 -23
  51. package/es/api/biz/util/getConfig.d.ts +0 -13
  52. package/es/api/biz/util/getConfig.js +0 -19
  53. package/es/api/biz/util/knowledgeBaseSelect.d.ts +0 -21
  54. package/es/api/biz/util/knowledgeBaseSelect.js +0 -23
  55. package/es/api/biz/util/knowledgeSelectParams.d.ts +0 -14
  56. package/es/api/biz/util/knowledgeSelectParams.js +0 -19
  57. package/es/api/biz/util/lorebaseRefreshNodeWebview.d.ts +0 -11
  58. package/es/api/biz/util/lorebaseRefreshNodeWebview.js +0 -19
  59. package/es/api/biz/util/lorebaseShowList.d.ts +0 -11
  60. package/es/api/biz/util/lorebaseShowList.js +0 -19
  61. package/es/api/biz/util/mediaFileUploadV2.d.ts +0 -26
  62. package/es/api/biz/util/mediaFileUploadV2.js +0 -15
  63. package/es/api/biz/util/openAudioPlayer.d.ts +0 -17
  64. package/es/api/biz/util/openAudioPlayer.js +0 -23
  65. package/es/api/biz/util/openFutureGroup.d.ts +0 -10
  66. package/es/api/biz/util/openFutureGroup.js +0 -23
  67. package/es/api/biz/util/openMediaFileDialogV2.d.ts +0 -23
  68. package/es/api/biz/util/openMediaFileDialogV2.js +0 -16
  69. package/es/api/biz/util/openPublish.d.ts +0 -22
  70. package/es/api/biz/util/openPublish.js +0 -15
  71. package/es/api/biz/util/screen.d.ts +0 -15
  72. package/es/api/biz/util/screen.js +0 -15
  73. package/es/api/biz/util/topicEvent.d.ts +0 -13
  74. package/es/api/biz/util/topicEvent.js +0 -27
  75. package/es/api/biz/util/weeklyRead.d.ts +0 -5
  76. package/es/api/biz/util/weeklyRead.js +0 -23
  77. package/es/api/device/connection/startNetworkChangeWatch.d.ts +0 -8
  78. package/es/api/device/connection/startNetworkChangeWatch.js +0 -23
  79. package/es/api/primary/updateTab.d.ts +0 -9
  80. package/es/api/primary/updateTab.js +0 -15
  81. package/libs/api/biz/util/addAppToNav.d.ts +0 -9
  82. package/libs/api/biz/util/addAppToNav.js +0 -30
  83. package/libs/api/biz/util/copy.d.ts +0 -11
  84. package/libs/api/biz/util/copy.js +0 -26
  85. package/libs/api/biz/util/focus.d.ts +0 -7
  86. package/libs/api/biz/util/focus.js +0 -30
  87. package/libs/api/biz/util/getConfig.d.ts +0 -13
  88. package/libs/api/biz/util/getConfig.js +0 -26
  89. package/libs/api/biz/util/knowledgeBaseSelect.d.ts +0 -21
  90. package/libs/api/biz/util/knowledgeBaseSelect.js +0 -30
  91. package/libs/api/biz/util/knowledgeSelectParams.d.ts +0 -14
  92. package/libs/api/biz/util/knowledgeSelectParams.js +0 -26
  93. package/libs/api/biz/util/lorebaseRefreshNodeWebview.d.ts +0 -11
  94. package/libs/api/biz/util/lorebaseRefreshNodeWebview.js +0 -26
  95. package/libs/api/biz/util/lorebaseShowList.d.ts +0 -11
  96. package/libs/api/biz/util/lorebaseShowList.js +0 -26
  97. package/libs/api/biz/util/mediaFileUploadV2.d.ts +0 -26
  98. package/libs/api/biz/util/mediaFileUploadV2.js +0 -23
  99. package/libs/api/biz/util/openAudioPlayer.d.ts +0 -17
  100. package/libs/api/biz/util/openAudioPlayer.js +0 -30
  101. package/libs/api/biz/util/openFutureGroup.d.ts +0 -10
  102. package/libs/api/biz/util/openFutureGroup.js +0 -30
  103. package/libs/api/biz/util/openMediaFileDialogV2.d.ts +0 -23
  104. package/libs/api/biz/util/openMediaFileDialogV2.js +0 -24
  105. package/libs/api/biz/util/openPublish.d.ts +0 -22
  106. package/libs/api/biz/util/openPublish.js +0 -22
  107. package/libs/api/biz/util/screen.d.ts +0 -15
  108. package/libs/api/biz/util/screen.js +0 -22
  109. package/libs/api/biz/util/topicEvent.d.ts +0 -13
  110. package/libs/api/biz/util/topicEvent.js +0 -34
  111. package/libs/api/biz/util/weeklyRead.d.ts +0 -5
  112. package/libs/api/biz/util/weeklyRead.js +0 -30
  113. package/libs/api/device/connection/startNetworkChangeWatch.d.ts +0 -8
  114. package/libs/api/device/connection/startNetworkChangeWatch.js +0 -30
  115. package/libs/api/primary/updateTab.d.ts +0 -9
  116. 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,5 +0,0 @@
1
- export interface WeeklyReadParams {
2
- weeklyID: string;
3
- }
4
- declare function weeklyRead(params?: WeeklyReadParams): void;
5
- export { weeklyRead };
@@ -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
- }