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