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.
Files changed (119) hide show
  1. package/dist/yach_jssdk_4.4.10-beta.3.js +1 -0
  2. package/es/api/biz/navigation/close.d.ts +1 -0
  3. package/es/api/biz/navigation/tencentMeeting.d.ts +1 -0
  4. package/es/api/biz/util/addAppToNav.d.ts +9 -0
  5. package/es/api/biz/util/addAppToNav.js +23 -0
  6. package/es/api/biz/util/copy.d.ts +11 -0
  7. package/es/api/biz/util/copy.js +19 -0
  8. package/es/api/biz/util/focus.d.ts +7 -0
  9. package/es/api/biz/util/focus.js +23 -0
  10. package/es/api/biz/util/getConfig.d.ts +13 -0
  11. package/es/api/biz/util/getConfig.js +19 -0
  12. package/es/api/biz/util/knowledgeBaseSelect.d.ts +21 -0
  13. package/es/api/biz/util/knowledgeBaseSelect.js +23 -0
  14. package/es/api/biz/util/knowledgeSelectParams.d.ts +14 -0
  15. package/es/api/biz/util/knowledgeSelectParams.js +19 -0
  16. package/es/api/biz/util/lorebaseRefreshNodeWebview.d.ts +11 -0
  17. package/es/api/biz/util/lorebaseRefreshNodeWebview.js +19 -0
  18. package/es/api/biz/util/lorebaseShowList.d.ts +11 -0
  19. package/es/api/biz/util/lorebaseShowList.js +19 -0
  20. package/es/api/biz/util/mediaFileUploadV2.d.ts +26 -0
  21. package/es/api/biz/util/mediaFileUploadV2.js +15 -0
  22. package/es/api/biz/util/openAudioPlayer.d.ts +17 -0
  23. package/es/api/biz/util/openAudioPlayer.js +23 -0
  24. package/es/api/biz/util/openFutureGroup.d.ts +10 -0
  25. package/es/api/biz/util/openFutureGroup.js +23 -0
  26. package/es/api/biz/util/openMediaFileDialogV2.d.ts +23 -0
  27. package/es/api/biz/util/openMediaFileDialogV2.js +16 -0
  28. package/es/api/biz/util/openPublish.d.ts +22 -0
  29. package/es/api/biz/util/openPublish.js +15 -0
  30. package/es/api/biz/util/screen.d.ts +15 -0
  31. package/es/api/biz/util/screen.js +15 -0
  32. package/es/api/biz/util/topicEvent.d.ts +13 -0
  33. package/es/api/biz/util/topicEvent.js +27 -0
  34. package/es/api/biz/util/weeklyRead.d.ts +5 -0
  35. package/es/api/biz/util/weeklyRead.js +23 -0
  36. package/es/api/device/connection/startNetworkChangeWatch.d.ts +8 -0
  37. package/es/api/device/connection/startNetworkChangeWatch.js +23 -0
  38. package/es/api/device/notification/actionSheet.d.ts +6 -0
  39. package/es/api/device/notification/hidePreloader.d.ts +6 -1
  40. package/es/api/device/notification/hidePreloader.js +15 -2
  41. package/es/api/device/notification/showPreloader.d.ts +10 -1
  42. package/es/api/device/notification/showPreloader.js +15 -2
  43. package/es/api/primary/updateTab.d.ts +9 -0
  44. package/es/api/primary/updateTab.js +15 -0
  45. package/es/index.d.ts +41 -3
  46. package/es/index.js +44 -5
  47. package/es/lib/bridge/mobile.js +61 -20
  48. package/es/lib/bridge/pc.js +50 -8
  49. package/es/lib/helper/pcIframe.d.ts +8 -25
  50. package/es/lib/helper/pcIframe.js +34 -8
  51. package/es/lib/index.js +2 -2
  52. package/es/lib/sdk/index.js +13 -4
  53. package/es/lib/sdk/sdk.typings.d.ts +2 -0
  54. package/es/utils/console.d.ts +1 -1
  55. package/es/utils/console.js +2 -2
  56. package/es/utils/env.js +7 -3
  57. package/es/utils/index.js +1 -1
  58. package/libs/api/biz/navigation/close.d.ts +1 -0
  59. package/libs/api/biz/navigation/tencentMeeting.d.ts +1 -0
  60. package/libs/api/biz/util/addAppToNav.d.ts +9 -0
  61. package/libs/api/biz/util/addAppToNav.js +30 -0
  62. package/libs/api/biz/util/copy.d.ts +11 -0
  63. package/libs/api/biz/util/copy.js +26 -0
  64. package/libs/api/biz/util/focus.d.ts +7 -0
  65. package/libs/api/biz/util/focus.js +30 -0
  66. package/libs/api/biz/util/getConfig.d.ts +13 -0
  67. package/libs/api/biz/util/getConfig.js +26 -0
  68. package/libs/api/biz/util/knowledgeBaseSelect.d.ts +21 -0
  69. package/libs/api/biz/util/knowledgeBaseSelect.js +30 -0
  70. package/libs/api/biz/util/knowledgeSelectParams.d.ts +14 -0
  71. package/libs/api/biz/util/knowledgeSelectParams.js +26 -0
  72. package/libs/api/biz/util/lorebaseRefreshNodeWebview.d.ts +11 -0
  73. package/libs/api/biz/util/lorebaseRefreshNodeWebview.js +26 -0
  74. package/libs/api/biz/util/lorebaseShowList.d.ts +11 -0
  75. package/libs/api/biz/util/lorebaseShowList.js +26 -0
  76. package/libs/api/biz/util/mediaFileUploadV2.d.ts +26 -0
  77. package/libs/api/biz/util/mediaFileUploadV2.js +23 -0
  78. package/libs/api/biz/util/openAudioPlayer.d.ts +17 -0
  79. package/libs/api/biz/util/openAudioPlayer.js +30 -0
  80. package/libs/api/biz/util/openFutureGroup.d.ts +10 -0
  81. package/libs/api/biz/util/openFutureGroup.js +30 -0
  82. package/libs/api/biz/util/openMediaFileDialogV2.d.ts +23 -0
  83. package/libs/api/biz/util/openMediaFileDialogV2.js +24 -0
  84. package/libs/api/biz/util/openPublish.d.ts +22 -0
  85. package/libs/api/biz/util/openPublish.js +22 -0
  86. package/libs/api/biz/util/screen.d.ts +15 -0
  87. package/libs/api/biz/util/screen.js +22 -0
  88. package/libs/api/biz/util/topicEvent.d.ts +13 -0
  89. package/libs/api/biz/util/topicEvent.js +34 -0
  90. package/libs/api/biz/util/weeklyRead.d.ts +5 -0
  91. package/libs/api/biz/util/weeklyRead.js +30 -0
  92. package/libs/api/device/connection/startNetworkChangeWatch.d.ts +8 -0
  93. package/libs/api/device/connection/startNetworkChangeWatch.js +30 -0
  94. package/libs/api/device/notification/actionSheet.d.ts +6 -0
  95. package/libs/api/device/notification/hidePreloader.d.ts +6 -1
  96. package/libs/api/device/notification/hidePreloader.js +15 -1
  97. package/libs/api/device/notification/showPreloader.d.ts +10 -1
  98. package/libs/api/device/notification/showPreloader.js +15 -1
  99. package/libs/api/initAPI.js +1 -2
  100. package/libs/api/primary/updateTab.d.ts +9 -0
  101. package/libs/api/primary/updateTab.js +22 -0
  102. package/libs/index.d.ts +41 -3
  103. package/libs/index.js +186 -25
  104. package/libs/lib/bridge/mobile.js +64 -25
  105. package/libs/lib/bridge/pc.js +53 -13
  106. package/libs/lib/helper/event.js +1 -2
  107. package/libs/lib/helper/pcIframe.d.ts +8 -25
  108. package/libs/lib/helper/pcIframe.js +35 -10
  109. package/libs/lib/index.js +3 -4
  110. package/libs/lib/sdk/index.js +13 -5
  111. package/libs/lib/sdk/sdk.typings.d.ts +2 -0
  112. package/libs/lib/sdk/sdk.typings.js +0 -1
  113. package/libs/utils/compareVersions.js +4 -8
  114. package/libs/utils/console.d.ts +1 -1
  115. package/libs/utils/console.js +2 -2
  116. package/libs/utils/env.js +7 -3
  117. package/libs/utils/index.js +1 -1
  118. package/package.json +1 -3
  119. package/dist/yach_jssdk_4.3.3.js +0 -1
@@ -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,27 @@
1
+ import initAPI from '../../initAPI';
2
+ var apiName = 'biz.util.topicEvent';
3
+ var ios = {
4
+ vs: '0.0.0'
5
+ };
6
+ var android = {
7
+ vs: '0.0.0'
8
+ };
9
+ var pc = {
10
+ vs: '0.0.0'
11
+ };
12
+ var platform = {
13
+ ios: ios,
14
+ android: android,
15
+ pc: pc
16
+ };
17
+ /**
18
+ * 话题群 公共事件
19
+ * @param params
20
+ */
21
+ function topicEvent(params) {
22
+ initAPI(apiName, {
23
+ params: params,
24
+ platform: platform
25
+ });
26
+ }
27
+ export { topicEvent };
@@ -0,0 +1,5 @@
1
+ export interface WeeklyReadParams {
2
+ weeklyID: string;
3
+ }
4
+ declare function weeklyRead(params?: WeeklyReadParams): void;
5
+ export { weeklyRead };
@@ -0,0 +1,23 @@
1
+ import initAPI from '../../initAPI';
2
+ var ios = {
3
+ vs: '1.9.3.1'
4
+ };
5
+ var android = {
6
+ vs: '1.9.3.1'
7
+ };
8
+ var pc = {
9
+ vs: '1.9.3.1'
10
+ };
11
+ var platform = {
12
+ pc: pc,
13
+ ios: ios,
14
+ android: android
15
+ };
16
+ var apiName = 'biz.util.weeklyRead';
17
+ function weeklyRead(params) {
18
+ initAPI(apiName, {
19
+ params: params,
20
+ platform: platform
21
+ });
22
+ }
23
+ export { weeklyRead };
@@ -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,23 @@
1
+ import initAPI from '../../initAPI';
2
+ var apiName = 'device.connection.startNetworkChangeWatch';
3
+ var ios = {
4
+ vs: '1.9.16.1'
5
+ };
6
+ var android = {
7
+ vs: '1.9.16.1'
8
+ };
9
+ var pc = {
10
+ vs: '1.9.16.1'
11
+ };
12
+ var platform = {
13
+ pc: pc,
14
+ ios: ios,
15
+ android: android
16
+ };
17
+ function startNetworkChangeWatch(params) {
18
+ initAPI(apiName, {
19
+ params: params,
20
+ platform: platform
21
+ });
22
+ }
23
+ export { startNetworkChangeWatch };
@@ -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
- export { hidePreloader };
7
+ interface IDeviceNotificationHideCustomPreloaderParams {
8
+ onSuccess?: () => void;
9
+ onFail?: (err: IError) => void;
10
+ }
11
+ declare function hideCustomOverlayContent(params?: IDeviceNotificationHideCustomPreloaderParams): void;
12
+ export { hidePreloader, hideCustomOverlayContent };
@@ -6,9 +6,13 @@ var ios = {
6
6
  var android = {
7
7
  vs: '0.0.0'
8
8
  };
9
+ var pc = {
10
+ vs: '1.9.9'
11
+ };
9
12
  var platform = {
10
13
  ios: ios,
11
- android: android
14
+ android: android,
15
+ pc: pc
12
16
  };
13
17
  function hidePreloader(params) {
14
18
  initAPI(apiName, {
@@ -16,4 +20,13 @@ function hidePreloader(params) {
16
20
  platform: platform
17
21
  });
18
22
  }
19
- export { hidePreloader };
23
+ var apiNameCustom = 'device.notification.hideCustomOverlayContent';
24
+ function hideCustomOverlayContent(params) {
25
+ initAPI(apiNameCustom, {
26
+ params: params,
27
+ platform: {
28
+ pc: pc
29
+ }
30
+ });
31
+ }
32
+ export { hidePreloader, hideCustomOverlayContent };
@@ -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
- export { showPreloader };
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 };
@@ -6,9 +6,13 @@ var ios = {
6
6
  var android = {
7
7
  vs: '0.0.0'
8
8
  };
9
+ var pc = {
10
+ vs: '1.9.9'
11
+ };
9
12
  var platform = {
10
13
  ios: ios,
11
- android: android
14
+ android: android,
15
+ pc: pc
12
16
  };
13
17
  function showPreloader(params) {
14
18
  initAPI(apiName, {
@@ -16,4 +20,13 @@ function showPreloader(params) {
16
20
  platform: platform
17
21
  });
18
22
  }
19
- export { showPreloader };
23
+ var apiNameCustom = 'device.notification.showCustomOverlayContent';
24
+ function showCustomOverlayContent(params) {
25
+ initAPI(apiNameCustom, {
26
+ params: params,
27
+ platform: {
28
+ pc: pc
29
+ }
30
+ });
31
+ }
32
+ export { showPreloader, showCustomOverlayContent };
@@ -0,0 +1,9 @@
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 };
@@ -0,0 +1,15 @@
1
+ import initAPI from '../initAPI';
2
+ var apiName = 'primary.updateTab';
3
+ var pc = {
4
+ vs: '1.9.12'
5
+ };
6
+ var platform = {
7
+ pc: pc
8
+ };
9
+ function updateTab(params) {
10
+ initAPI(apiName, {
11
+ params: params,
12
+ platform: platform
13
+ });
14
+ }
15
+ export { updateTab };
package/es/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  /**util*/
2
+ import { openMediaFileDialogV2 } from './api/biz/util/openMediaFileDialogV2';
3
+ import { mediaFileUploadV2 } from './api/biz/util/mediaFileUploadV2';
2
4
  import { openLink } from './api/biz/util/openLink';
3
5
  import { feedback } from './api/biz/util/feedback';
4
6
  import { open } from './api/biz/util/open';
@@ -22,6 +24,7 @@ import { injectScript } from './api/biz/util/injectScript';
22
24
  import { closeWindow } from './api/biz/util/closeWindow';
23
25
  import { remind } from './api/biz/util/remind';
24
26
  import { takePicture } from './api/biz/util/takePicture';
27
+ import { openAudioPlayer } from './api/biz/util/openAudioPlayer';
25
28
  import { openVideoPlayer } from './api/biz/util/openVideoPlayer';
26
29
  import { openMediaFileDialog } from './api/biz/util/openMediaFileDialog';
27
30
  import { mediaFileUpload } from './api/biz/util/mediaFileUpload';
@@ -33,6 +36,7 @@ import { authStart } from './api/biz/util/authStart';
33
36
  import { authFinish } from './api/biz/util/authFinish';
34
37
  import { assistantCreate } from './api/biz/util/assistantCreate';
35
38
  import { yachEvent } from './api/biz/util/yachEvent';
39
+ import { topicEvent } from './api/biz/util/topicEvent';
36
40
  import { openTogetherEyeWebview } from './api/biz/util/openTogetherEyeWebview';
37
41
  import { getTogetherConfig } from './api/biz/util/getTogetherConfig';
38
42
  import { rouseApp } from './api/biz/util/rouseApp';
@@ -46,7 +50,17 @@ import { openUserSchedule } from './api/biz/util/openUserSchedule';
46
50
  import { onlineDocmentOpenTeamChat } from './api/biz/util/onlineDocmentOpenTeamChat';
47
51
  import { entergroupCheck } from './api/biz/util/entergroupCheck';
48
52
  import { resetSessionUnread } from './api/biz/util/resetSessionUnread';
53
+ import { weeklyRead } from './api/biz/util/weeklyRead';
49
54
  import { disableScreenCapture } from './api/biz/util/disableScreenCapture';
55
+ import { openFutureGroup } from './api/biz/util/openFutureGroup';
56
+ import { knowledgeBaseSelect } from './api/biz/util/knowledgeBaseSelect';
57
+ import { knowledgeSelectParams } from './api/biz/util/knowledgeSelectParams';
58
+ import { lorebaseShowList } from './api/biz/util/lorebaseShowList';
59
+ import { lorebaseRefreshNodeWebview } from './api/biz/util/lorebaseRefreshNodeWebview';
60
+ import { copy } from './api/biz/util/copy';
61
+ import { openPublish } from './api/biz/util/openPublish';
62
+ import { getConfig } from './api/biz/util/getConfig';
63
+ import { focus } from './api/biz/util/focus';
50
64
  /**navigation*/
51
65
  import { setIcon } from './api/biz/navigation/setIcon';
52
66
  import { setTitle } from './api/biz/navigation/setTitle';
@@ -76,13 +90,14 @@ import { openTeamChat } from './api/biz/chat/openTeamChat';
76
90
  import { openSquad } from './api/biz/chat/openSquad';
77
91
  import { sendP2PMsg } from './api/biz/chat/sendP2PMsg';
78
92
  import { createTab } from './api/primary/createTab';
93
+ import { updateTab } from './api/primary/updateTab';
79
94
  import { weeklyShare } from './api/primary/weeklyShare';
80
95
  import { fullScreen } from './api/primary/fullScreen';
81
96
  import { exitFullScreen } from './api/primary/exitFullScreen';
82
97
  import { requestAuthCode } from './api/runtime/permission/requestAuthCode';
83
98
  /** device */
84
- import { showPreloader } from './api/device/notification/showPreloader';
85
- import { hidePreloader } from './api/device/notification/hidePreloader';
99
+ import { showPreloader, showCustomOverlayContent } from './api/device/notification/showPreloader';
100
+ import { hidePreloader, hideCustomOverlayContent } from './api/device/notification/hidePreloader';
86
101
  import { vibrate } from './api/device/notification/vibrate';
87
102
  import { toast } from './api/device/notification/toast';
88
103
  import { actionSheet } from './api/device/notification/actionSheet';
@@ -103,6 +118,7 @@ import { onPlayEnd } from './api/device/audio/onPlayEnd';
103
118
  import { resume as resumeAudio } from './api/device/audio/resume';
104
119
  import { getNetworkType } from './api/device/connection/getNetworkType';
105
120
  import { isAtTal } from './api/device/connection/isAtTal';
121
+ import { startNetworkChangeWatch } from './api/device/connection/startNetworkChangeWatch';
106
122
  import { getUUID } from './api/device/base/getUUID';
107
123
  import { checkStepPermission } from './api/device/base/checkStepPermission';
108
124
  import { onRecordEnd_v2 } from './api/device/audio/onRecordEnd_v2';
@@ -122,10 +138,12 @@ import { setItem } from './api/util/domainStorage/setItem';
122
138
  import { removeItem } from './api/util/domainStorage/removeItem';
123
139
  import { writeLog } from './api/util/tool/log';
124
140
  import { flushLog } from './api/util/tool/flushLog';
141
+ import { capturePage } from './api/biz/util/screen';
125
142
  import { send as webViewMessageSend } from './api/biz/webViewMessage/send';
126
143
  import { talYoungFilesUpload } from './api/app/custom/talYoungFilesUpload';
144
+ import { addAppToNav } from './api/biz/util/addAppToNav';
127
145
  declare const version: string, sdkVersion: string, env: import("./lib/sdk/sdk.typings").IENV, platform: import("./lib/sdk/sdk.typings").ENV_ENUM, platformV2: import("./lib/sdk/sdk.typings").PlatformV2Props, config: (configParams: import("./lib/sdk/sdk.typings").IConfigParams) => void, ready: (readyCallback: () => void) => void, error: (callback: (err: any) => void) => void, on: (methodName: string, listener: (e: any) => void) => void, off: (methodName: string, listener: (e: any) => void) => void;
128
- export { version, sdkVersion, env, platform, platformV2, config, ready, error, on, off, openLink, feedback, open, openSlidePanel, share, previewFile, previewImage, downloadFile, uploadAttachment, clipboardFileUpload, proxy, datepicker, scan, chosen, openSingleWebview, getSingleWebviewData, injectScript, closeWindow, showCallMenu, call, setIcon, setTitle, setMenu, close, replacePage, quit, setRight, setTitleExpandIcon, updateExpandTitle, setLeft, goBack, complexPicker, departmentsPicker, groupComplexPicker, chooseConversationByCorpId, pickConversation, openSingleChat, openTeamChat, openSquad, sendP2PMsg, mapView, multipointView, requestAuthCode, createTab, weeklyShare, fullScreen, exitFullScreen, showPreloader, hidePreloader, vibrate, toast, alert, confirm, getPhoneInfo, getUUID, checkStepPermission, getGeolocation, getGeolocationSwitch, getLang, startRecord, stopRecord, onRecordEnd, downloadAudio, playAudio, pauseAudio, stopAudio, onPlayEnd, resumeAudio, getNetworkType, isAtTal, webViewBounceDisable, pullToRefreshEnable, pullToRefreshStop, pullToRefreshDisable, getItem, setItem, removeItem, writeLog, flushLog, remind, takePicture, datetimepicker, actionSheet, webViewMessageSend, talYoungFilesUpload, openVideoPlayer, openMediaFileDialog, mediaFileUpload, invoice, pushWorkMsg, openTalYoungToTopic, getToken, authStart, authFinish, assistantCreate, yachEvent, openTogetherEyeWebview, getTogetherConfig, rouseApp, externalLinkPreviewFile, savePic, zfbAuth, complain, onRecordEnd_v2, startRecord_v2, stopRecord_v2, selectDepartment, setWindowBig, tencentMeeting, tencentMeetingBegin, createModifySchedule, onlineDocmentOpenTeamChat, entergroupCheck, resetSessionUnread, setLight, openUserSchedule, disableScreenCapture, setPanGestureEnable, };
146
+ export { version, sdkVersion, env, platform, platformV2, config, ready, error, on, off, openLink, feedback, open, openSlidePanel, share, previewFile, previewImage, downloadFile, uploadAttachment, clipboardFileUpload, proxy, datepicker, scan, chosen, openSingleWebview, getSingleWebviewData, injectScript, closeWindow, showCallMenu, call, setIcon, setTitle, setMenu, close, replacePage, quit, setRight, setTitleExpandIcon, updateExpandTitle, setLeft, goBack, complexPicker, departmentsPicker, groupComplexPicker, chooseConversationByCorpId, pickConversation, openSingleChat, openTeamChat, openSquad, sendP2PMsg, mapView, multipointView, requestAuthCode, createTab, updateTab, weeklyShare, fullScreen, exitFullScreen, showPreloader, showCustomOverlayContent, hidePreloader, hideCustomOverlayContent, vibrate, toast, alert, confirm, getPhoneInfo, getUUID, checkStepPermission, getGeolocation, getGeolocationSwitch, getLang, startRecord, stopRecord, onRecordEnd, downloadAudio, playAudio, pauseAudio, stopAudio, onPlayEnd, resumeAudio, getNetworkType, isAtTal, startNetworkChangeWatch, webViewBounceDisable, pullToRefreshEnable, pullToRefreshStop, pullToRefreshDisable, getItem, setItem, removeItem, writeLog, flushLog, remind, takePicture, datetimepicker, actionSheet, webViewMessageSend, talYoungFilesUpload, openAudioPlayer, openVideoPlayer, openMediaFileDialog, openMediaFileDialogV2, mediaFileUpload, mediaFileUploadV2, invoice, pushWorkMsg, openTalYoungToTopic, getToken, authStart, authFinish, assistantCreate, yachEvent, topicEvent, openTogetherEyeWebview, getTogetherConfig, rouseApp, externalLinkPreviewFile, savePic, zfbAuth, complain, onRecordEnd_v2, startRecord_v2, stopRecord_v2, selectDepartment, setWindowBig, tencentMeeting, tencentMeetingBegin, createModifySchedule, onlineDocmentOpenTeamChat, entergroupCheck, resetSessionUnread, weeklyRead, openFutureGroup, knowledgeBaseSelect, knowledgeSelectParams, lorebaseShowList, lorebaseRefreshNodeWebview, openPublish, setLight, openUserSchedule, disableScreenCapture, setPanGestureEnable, addAppToNav, copy, capturePage, getConfig, focus, };
129
147
  declare const _default: {
130
148
  version: string;
131
149
  sdkVersion: string;
@@ -141,6 +159,7 @@ declare const _default: {
141
159
  util: {
142
160
  openLink: typeof openLink;
143
161
  feedback: typeof feedback;
162
+ focus: typeof focus;
144
163
  open: typeof open;
145
164
  openSlidePanel: typeof openSlidePanel;
146
165
  share: typeof share;
@@ -160,12 +179,17 @@ declare const _default: {
160
179
  onlineDocmentOpenTeamChat: typeof onlineDocmentOpenTeamChat;
161
180
  entergroupCheck: typeof entergroupCheck;
162
181
  resetSessionUnread: typeof resetSessionUnread;
182
+ weeklyRead: typeof weeklyRead;
183
+ openFutureGroup: typeof openFutureGroup;
163
184
  closeWindow: typeof closeWindow;
164
185
  remind: typeof remind;
165
186
  takePicture: typeof takePicture;
187
+ openAudioPlayer: typeof openAudioPlayer;
166
188
  openVideoPlayer: typeof openVideoPlayer;
167
189
  openMediaFileDialog: typeof openMediaFileDialog;
190
+ openMediaFileDialogV2: typeof openMediaFileDialogV2;
168
191
  mediaFileUpload: typeof mediaFileUpload;
192
+ mediaFileUploadV2: typeof mediaFileUploadV2;
169
193
  invoice: typeof invoice;
170
194
  pushWorkMsg: typeof pushWorkMsg;
171
195
  openTalYoungToTopic: typeof openTalYoungToTopic;
@@ -174,6 +198,7 @@ declare const _default: {
174
198
  authFinish: typeof authFinish;
175
199
  assistantCreate: typeof assistantCreate;
176
200
  yachEvent: typeof yachEvent;
201
+ topicEvent: typeof topicEvent;
177
202
  openTogetherEyeWebview: typeof openTogetherEyeWebview;
178
203
  getTogetherConfig: typeof getTogetherConfig;
179
204
  rouseApp: typeof rouseApp;
@@ -185,6 +210,15 @@ declare const _default: {
185
210
  createModifySchedule: typeof createModifySchedule;
186
211
  openUserSchedule: typeof openUserSchedule;
187
212
  disableScreenCapture: typeof disableScreenCapture;
213
+ addAppToNav: typeof addAppToNav;
214
+ knowledgeBaseSelect: typeof knowledgeBaseSelect;
215
+ knowledgeSelectParams: typeof knowledgeSelectParams;
216
+ lorebaseShowList: typeof lorebaseShowList;
217
+ lorebaseRefreshNodeWebview: typeof lorebaseRefreshNodeWebview;
218
+ copy: typeof copy;
219
+ openPublish: typeof openPublish;
220
+ capturePage: typeof capturePage;
221
+ getConfig: typeof getConfig;
188
222
  };
189
223
  telephone: {
190
224
  showCallMenu: typeof showCallMenu;
@@ -237,6 +271,7 @@ declare const _default: {
237
271
  };
238
272
  primary: {
239
273
  createTab: typeof createTab;
274
+ updateTab: typeof updateTab;
240
275
  weeklyShare: typeof weeklyShare;
241
276
  fullScreen: typeof fullScreen;
242
277
  exitFullScreen: typeof exitFullScreen;
@@ -244,7 +279,9 @@ declare const _default: {
244
279
  device: {
245
280
  notification: {
246
281
  showPreloader: typeof showPreloader;
282
+ showCustomOverlayContent: typeof showCustomOverlayContent;
247
283
  hidePreloader: typeof hidePreloader;
284
+ hideCustomOverlayContent: typeof hideCustomOverlayContent;
248
285
  vibrate: typeof vibrate;
249
286
  toast: typeof toast;
250
287
  alert: typeof alert;
@@ -281,6 +318,7 @@ declare const _default: {
281
318
  connection: {
282
319
  getNetworkType: typeof getNetworkType;
283
320
  isAtTal: typeof isAtTal;
321
+ startNetworkChangeWatch: typeof startNetworkChangeWatch;
284
322
  };
285
323
  };
286
324
  ui: {
package/es/index.js CHANGED
@@ -1,6 +1,8 @@
1
1
  import { yachSdk } from './lib';
2
2
  /*biz*****************************/
3
3
  /**util*/
4
+ import { openMediaFileDialogV2 } from './api/biz/util/openMediaFileDialogV2';
5
+ import { mediaFileUploadV2 } from './api/biz/util/mediaFileUploadV2';
4
6
  import { openLink } from './api/biz/util/openLink';
5
7
  import { feedback } from './api/biz/util/feedback';
6
8
  import { open } from './api/biz/util/open';
@@ -24,6 +26,7 @@ import { injectScript } from './api/biz/util/injectScript';
24
26
  import { closeWindow } from './api/biz/util/closeWindow';
25
27
  import { remind } from './api/biz/util/remind';
26
28
  import { takePicture } from './api/biz/util/takePicture';
29
+ import { openAudioPlayer } from './api/biz/util/openAudioPlayer';
27
30
  import { openVideoPlayer } from './api/biz/util/openVideoPlayer';
28
31
  import { openMediaFileDialog } from './api/biz/util/openMediaFileDialog';
29
32
  import { mediaFileUpload } from './api/biz/util/mediaFileUpload';
@@ -35,6 +38,7 @@ import { authStart } from './api/biz/util/authStart';
35
38
  import { authFinish } from './api/biz/util/authFinish';
36
39
  import { assistantCreate } from './api/biz/util/assistantCreate';
37
40
  import { yachEvent } from './api/biz/util/yachEvent';
41
+ import { topicEvent } from './api/biz/util/topicEvent';
38
42
  import { openTogetherEyeWebview } from './api/biz/util/openTogetherEyeWebview';
39
43
  import { getTogetherConfig } from './api/biz/util/getTogetherConfig';
40
44
  import { rouseApp } from './api/biz/util/rouseApp';
@@ -48,7 +52,17 @@ import { openUserSchedule } from './api/biz/util/openUserSchedule';
48
52
  import { onlineDocmentOpenTeamChat } from './api/biz/util/onlineDocmentOpenTeamChat';
49
53
  import { entergroupCheck } from './api/biz/util/entergroupCheck';
50
54
  import { resetSessionUnread } from './api/biz/util/resetSessionUnread';
55
+ import { weeklyRead } from './api/biz/util/weeklyRead';
51
56
  import { disableScreenCapture } from './api/biz/util/disableScreenCapture';
57
+ import { openFutureGroup } from './api/biz/util/openFutureGroup';
58
+ import { knowledgeBaseSelect } from './api/biz/util/knowledgeBaseSelect';
59
+ import { knowledgeSelectParams } from './api/biz/util/knowledgeSelectParams';
60
+ import { lorebaseShowList } from './api/biz/util/lorebaseShowList';
61
+ import { lorebaseRefreshNodeWebview } from './api/biz/util/lorebaseRefreshNodeWebview';
62
+ import { copy } from './api/biz/util/copy';
63
+ import { openPublish } from './api/biz/util/openPublish';
64
+ import { getConfig } from './api/biz/util/getConfig';
65
+ import { focus } from './api/biz/util/focus';
52
66
  /**navigation*/
53
67
  import { setIcon } from './api/biz/navigation/setIcon';
54
68
  import { setTitle } from './api/biz/navigation/setTitle';
@@ -79,14 +93,15 @@ import { openSquad } from './api/biz/chat/openSquad';
79
93
  import { sendP2PMsg } from './api/biz/chat/sendP2PMsg';
80
94
  /* primary*****************************/
81
95
  import { createTab } from './api/primary/createTab';
96
+ import { updateTab } from './api/primary/updateTab';
82
97
  import { weeklyShare } from './api/primary/weeklyShare';
83
98
  import { fullScreen } from './api/primary/fullScreen';
84
99
  import { exitFullScreen } from './api/primary/exitFullScreen';
85
100
  /* runtime*****************************/
86
101
  import { requestAuthCode } from './api/runtime/permission/requestAuthCode';
87
102
  /** device */
88
- import { showPreloader } from './api/device/notification/showPreloader';
89
- import { hidePreloader } from './api/device/notification/hidePreloader';
103
+ import { showPreloader, showCustomOverlayContent } from './api/device/notification/showPreloader';
104
+ import { hidePreloader, hideCustomOverlayContent } from './api/device/notification/hidePreloader';
90
105
  import { vibrate } from './api/device/notification/vibrate';
91
106
  import { toast } from './api/device/notification/toast';
92
107
  import { actionSheet } from './api/device/notification/actionSheet';
@@ -107,6 +122,7 @@ import { onPlayEnd } from './api/device/audio/onPlayEnd';
107
122
  import { resume as resumeAudio } from './api/device/audio/resume';
108
123
  import { getNetworkType } from './api/device/connection/getNetworkType';
109
124
  import { isAtTal } from './api/device/connection/isAtTal';
125
+ import { startNetworkChangeWatch } from './api/device/connection/startNetworkChangeWatch';
110
126
  import { getUUID } from './api/device/base/getUUID';
111
127
  import { checkStepPermission } from './api/device/base/checkStepPermission';
112
128
  import { onRecordEnd_v2 } from './api/device/audio/onRecordEnd_v2';
@@ -128,8 +144,11 @@ import { removeItem } from './api/util/domainStorage/removeItem';
128
144
  // log
129
145
  import { writeLog } from './api/util/tool/log';
130
146
  import { flushLog } from './api/util/tool/flushLog';
147
+ // screen
148
+ import { capturePage } from './api/biz/util/screen';
131
149
  import { send as webViewMessageSend } from './api/biz/webViewMessage/send';
132
150
  import { talYoungFilesUpload } from './api/app/custom/talYoungFilesUpload';
151
+ import { addAppToNav } from './api/biz/util/addAppToNav';
133
152
  console.log('add rouseApp ------------>', rouseApp);
134
153
  var _yachSdk$exportSdk = yachSdk.exportSdk,
135
154
  version = _yachSdk$exportSdk.version,
@@ -142,7 +161,7 @@ var _yachSdk$exportSdk = yachSdk.exportSdk,
142
161
  error = _yachSdk$exportSdk.error,
143
162
  on = _yachSdk$exportSdk.on,
144
163
  off = _yachSdk$exportSdk.off;
145
- export { version, sdkVersion, env, platform, platformV2, config, ready, error, on, off, openLink, feedback, open, openSlidePanel, share, previewFile, previewImage, downloadFile, uploadAttachment, clipboardFileUpload, proxy, datepicker, scan, chosen, openSingleWebview, getSingleWebviewData, injectScript, closeWindow, showCallMenu, call, setIcon, setTitle, setMenu, close, replacePage, quit, setRight, setTitleExpandIcon, updateExpandTitle, setLeft, goBack, complexPicker, departmentsPicker, groupComplexPicker, chooseConversationByCorpId, pickConversation, openSingleChat, openTeamChat, openSquad, sendP2PMsg, mapView, multipointView, requestAuthCode, createTab, weeklyShare, fullScreen, exitFullScreen, showPreloader, hidePreloader, vibrate, toast, alert, confirm, getPhoneInfo, getUUID, checkStepPermission, getGeolocation, getGeolocationSwitch, getLang, startRecord, stopRecord, onRecordEnd, downloadAudio, playAudio, pauseAudio, stopAudio, onPlayEnd, resumeAudio, getNetworkType, isAtTal, webViewBounceDisable, pullToRefreshEnable, pullToRefreshStop, pullToRefreshDisable, getItem, setItem, removeItem, writeLog, flushLog, remind, takePicture, datetimepicker, actionSheet, webViewMessageSend, talYoungFilesUpload, openVideoPlayer, openMediaFileDialog, mediaFileUpload, invoice, pushWorkMsg, openTalYoungToTopic, getToken, authStart, authFinish, assistantCreate, yachEvent, openTogetherEyeWebview, getTogetherConfig, rouseApp, externalLinkPreviewFile, savePic, zfbAuth, complain, onRecordEnd_v2, startRecord_v2, stopRecord_v2, selectDepartment, setWindowBig, tencentMeeting, tencentMeetingBegin, createModifySchedule, onlineDocmentOpenTeamChat, entergroupCheck, resetSessionUnread, setLight, openUserSchedule, disableScreenCapture, setPanGestureEnable };
164
+ export { version, sdkVersion, env, platform, platformV2, config, ready, error, on, off, openLink, feedback, open, openSlidePanel, share, previewFile, previewImage, downloadFile, uploadAttachment, clipboardFileUpload, proxy, datepicker, scan, chosen, openSingleWebview, getSingleWebviewData, injectScript, closeWindow, showCallMenu, call, setIcon, setTitle, setMenu, close, replacePage, quit, setRight, setTitleExpandIcon, updateExpandTitle, setLeft, goBack, complexPicker, departmentsPicker, groupComplexPicker, chooseConversationByCorpId, pickConversation, openSingleChat, openTeamChat, openSquad, sendP2PMsg, mapView, multipointView, requestAuthCode, createTab, updateTab, weeklyShare, fullScreen, exitFullScreen, showPreloader, showCustomOverlayContent, hidePreloader, hideCustomOverlayContent, vibrate, toast, alert, confirm, getPhoneInfo, getUUID, checkStepPermission, getGeolocation, getGeolocationSwitch, getLang, startRecord, stopRecord, onRecordEnd, downloadAudio, playAudio, pauseAudio, stopAudio, onPlayEnd, resumeAudio, getNetworkType, isAtTal, startNetworkChangeWatch, webViewBounceDisable, pullToRefreshEnable, pullToRefreshStop, pullToRefreshDisable, getItem, setItem, removeItem, writeLog, flushLog, remind, takePicture, datetimepicker, actionSheet, webViewMessageSend, talYoungFilesUpload, openAudioPlayer, openVideoPlayer, openMediaFileDialog, openMediaFileDialogV2, mediaFileUpload, mediaFileUploadV2, invoice, pushWorkMsg, openTalYoungToTopic, getToken, authStart, authFinish, assistantCreate, yachEvent, topicEvent, openTogetherEyeWebview, getTogetherConfig, rouseApp, externalLinkPreviewFile, savePic, zfbAuth, complain, onRecordEnd_v2, startRecord_v2, stopRecord_v2, selectDepartment, setWindowBig, tencentMeeting, tencentMeetingBegin, createModifySchedule, onlineDocmentOpenTeamChat, entergroupCheck, resetSessionUnread, weeklyRead, openFutureGroup, knowledgeBaseSelect, knowledgeSelectParams, lorebaseShowList, lorebaseRefreshNodeWebview, openPublish, setLight, openUserSchedule, disableScreenCapture, setPanGestureEnable, addAppToNav, copy, capturePage, getConfig, focus };
146
165
  export default {
147
166
  version: version,
148
167
  sdkVersion: sdkVersion,
@@ -158,6 +177,7 @@ export default {
158
177
  util: {
159
178
  openLink: openLink,
160
179
  feedback: feedback,
180
+ focus: focus,
161
181
  open: open,
162
182
  openSlidePanel: openSlidePanel,
163
183
  share: share,
@@ -177,12 +197,17 @@ export default {
177
197
  onlineDocmentOpenTeamChat: onlineDocmentOpenTeamChat,
178
198
  entergroupCheck: entergroupCheck,
179
199
  resetSessionUnread: resetSessionUnread,
200
+ weeklyRead: weeklyRead,
201
+ openFutureGroup: openFutureGroup,
180
202
  closeWindow: closeWindow,
181
203
  remind: remind,
182
204
  takePicture: takePicture,
205
+ openAudioPlayer: openAudioPlayer,
183
206
  openVideoPlayer: openVideoPlayer,
184
207
  openMediaFileDialog: openMediaFileDialog,
208
+ openMediaFileDialogV2: openMediaFileDialogV2,
185
209
  mediaFileUpload: mediaFileUpload,
210
+ mediaFileUploadV2: mediaFileUploadV2,
186
211
  invoice: invoice,
187
212
  pushWorkMsg: pushWorkMsg,
188
213
  openTalYoungToTopic: openTalYoungToTopic,
@@ -191,6 +216,7 @@ export default {
191
216
  authFinish: authFinish,
192
217
  assistantCreate: assistantCreate,
193
218
  yachEvent: yachEvent,
219
+ topicEvent: topicEvent,
194
220
  openTogetherEyeWebview: openTogetherEyeWebview,
195
221
  getTogetherConfig: getTogetherConfig,
196
222
  rouseApp: rouseApp,
@@ -201,7 +227,16 @@ export default {
201
227
  selectDepartment: selectDepartment,
202
228
  createModifySchedule: createModifySchedule,
203
229
  openUserSchedule: openUserSchedule,
204
- disableScreenCapture: disableScreenCapture
230
+ disableScreenCapture: disableScreenCapture,
231
+ addAppToNav: addAppToNav,
232
+ knowledgeBaseSelect: knowledgeBaseSelect,
233
+ knowledgeSelectParams: knowledgeSelectParams,
234
+ lorebaseShowList: lorebaseShowList,
235
+ lorebaseRefreshNodeWebview: lorebaseRefreshNodeWebview,
236
+ copy: copy,
237
+ openPublish: openPublish,
238
+ capturePage: capturePage,
239
+ getConfig: getConfig
205
240
  },
206
241
  telephone: {
207
242
  showCallMenu: showCallMenu,
@@ -254,6 +289,7 @@ export default {
254
289
  },
255
290
  primary: {
256
291
  createTab: createTab,
292
+ updateTab: updateTab,
257
293
  weeklyShare: weeklyShare,
258
294
  fullScreen: fullScreen,
259
295
  exitFullScreen: exitFullScreen
@@ -261,7 +297,9 @@ export default {
261
297
  device: {
262
298
  notification: {
263
299
  showPreloader: showPreloader,
300
+ showCustomOverlayContent: showCustomOverlayContent,
264
301
  hidePreloader: hidePreloader,
302
+ hideCustomOverlayContent: hideCustomOverlayContent,
265
303
  vibrate: vibrate,
266
304
  toast: toast,
267
305
  alert: alert,
@@ -297,7 +335,8 @@ export default {
297
335
  },
298
336
  connection: {
299
337
  getNetworkType: getNetworkType,
300
- isAtTal: isAtTal
338
+ isAtTal: isAtTal,
339
+ startNetworkChangeWatch: startNetworkChangeWatch
301
340
  }
302
341
  },
303
342
  ui: {