yach.open.jssdk 4.4.4 → 4.4.5-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 (33) hide show
  1. package/dist/yach_jssdk_4.4.5-beta.1.js +1 -0
  2. package/es/api/biz/util/getConfig.d.ts +13 -0
  3. package/es/api/biz/util/getConfig.js +19 -0
  4. package/es/api/biz/util/knowledgeBaseSelect.js +9 -1
  5. package/es/api/biz/util/knowledgeSelectParams.d.ts +14 -0
  6. package/es/api/biz/util/knowledgeSelectParams.js +19 -0
  7. package/es/api/biz/util/openMediaFileDialogV2.d.ts +23 -0
  8. package/es/api/biz/util/openMediaFileDialogV2.js +16 -0
  9. package/es/api/biz/util/openPublish.d.ts +2 -2
  10. package/es/api/primary/updateTab.d.ts +9 -0
  11. package/es/api/primary/updateTab.js +15 -0
  12. package/es/index.d.ts +9 -1
  13. package/es/index.js +10 -2
  14. package/es/lib/helper/pcIframe.d.ts +8 -25
  15. package/es/lib/helper/pcIframe.js +29 -5
  16. package/es/lib/index.js +2 -2
  17. package/libs/api/biz/util/getConfig.d.ts +13 -0
  18. package/libs/api/biz/util/getConfig.js +26 -0
  19. package/libs/api/biz/util/knowledgeBaseSelect.js +9 -1
  20. package/libs/api/biz/util/knowledgeSelectParams.d.ts +14 -0
  21. package/libs/api/biz/util/knowledgeSelectParams.js +26 -0
  22. package/libs/api/biz/util/openMediaFileDialogV2.d.ts +23 -0
  23. package/libs/api/biz/util/openMediaFileDialogV2.js +24 -0
  24. package/libs/api/biz/util/openPublish.d.ts +2 -2
  25. package/libs/api/primary/updateTab.d.ts +9 -0
  26. package/libs/api/primary/updateTab.js +22 -0
  27. package/libs/index.d.ts +9 -1
  28. package/libs/index.js +33 -1
  29. package/libs/lib/helper/pcIframe.d.ts +8 -25
  30. package/libs/lib/helper/pcIframe.js +29 -5
  31. package/libs/lib/index.js +2 -2
  32. package/package.json +6 -7
  33. package/dist/yach_jssdk_4.4.4.js +0 -1
@@ -0,0 +1 @@
1
+ window.yy=function(e){var n={};function t(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(o,i,function(n){return e[n]}.bind(null,i));return o},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=7)}([function(e,n,t){"use strict";var o=new function(){var e=this;this.on=function(n,t){if(!n||"function"!=typeof t)throw"eventName is null or handle is not a function, on fail";Array.isArray(e.eventsHandle[n])||(e.eventsHandle[n]=[]),e.eventsHandle[n].push(t)},this.off=function(n,t){if(!n)throw"eventName is null, invoke off fail";if(t){if(Array.isArray(e.eventsHandle[n])){var o=e.eventsHandle[n].indexOf(t);-1!==o&&e.eventsHandle[n].splice(o,1)}}else e.eventsHandle[n]=[]},this.execEvent=function(e,n){Array.isArray(this.eventsHandle[e])&&this.eventsHandle[e].forEach((function(e){try{e(n)}catch(e){console.error(n)}}))},this.eventsHandle={}};n.a=o},function(e,n,t){"use strict";t.d(n,"a",(function(){return a}));var o=t(3);function i(e){if(e)if(e.group)if(e.project)if(e.hasOwnProperty("env"))if(e.hasOwnProperty("version")){var n=["https://es.zhiyinlou.com/log.js?"];n.push("group="+e.group),n.push("&project="+e.project),n.push("&env="+e.env),n.push("&version="+e.version),n.push("&method="+e.method),e.yachid&&n.push("&yachid="+e.yachid),e.workcode&&n.push("&workcode="+e.workcode),e.timestamp&&n.push("&timestamp="+e.timestamp),e.errorcode&&n.push("&errorcode="+e.errorcode),e.message&&n.push("&message="+e.message),e.api&&e.time&&(n.push("&api="+e.api),n.push("&load_time="+e.time));var t,o,i=n.join("");t=i,(o=document.createElement("script")).type="text/javascript",o.readyState?o.onreadystatechange=function(){"loaded"!=o.readyState&&"complete"!=o.readyState||(o.onreadystatechange=null,document.getElementsByTagName("head")[0].removeChild(o))}:o.onload=function(){document.getElementsByTagName("head")[0].removeChild(o)},o.src=t,document.getElementsByTagName("head")[0].appendChild(o),"online"!=e.env&&console.log(i)}else console.log("bpit error: need options.version");else console.log("bpit error: need options.env");else console.log("bpit error: need options.project");else console.log("bpit error: need options.group");else console.log("bpit error: need options")}var r=function(){return(r=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)};function a(e){var n=Object(o.a)().env,t=Object(o.a)().version,a=Date.now(),s=r({group:"yach",project:"yach_31_jssdk",env:n,version:t,timestamp:a},e);console.log("jssdk 项目 bpit 上报数据:",s),i(s)}},function(e,n,t){"use strict";t.d(n,"a",(function(){return s}));var o={log:function(){},warn:function(){},error:function(){}};if("undefined"!=typeof window&&window.console&&(o=window.console),"undefined"!=typeof document&&document.body){var i=document.createElement("iframe");i&&i.contentWindow&&i.contentWindow.console&&(i.style.display="none",document.body.appendChild(i),o=i.contentWindow.console)}var r=o.log.bind(o),a=(o.warn.bind(o),o.error.bind(o),"color:#fff;font-weight:bold;border-radius:5px;background:#67c23a;");function s(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return r("%c Yach-jssdk log: ",a,e)}},function(e,n,t){"use strict";var o;function i(){var e="undefined"!=typeof navigator?navigator.userAgent:"",n=/Yach/i.test(e),t=/iPhone|iPad|iPod|iOS/i.test(e)&&n,i=/Android/i.test(e)&&n,r=/YachPc/i.test(e),a=/iPad/i.test(e)&&n,s=/iPhone/i.test(e)&&n,c=/Yachtest/.test(e)&&n,u=/HarmonyOSNext/i.test(e)&&n,d=o.notInYach;return t&&(d=o.ios),i&&(d=o.android),r&&(d=o.pc),{platform:d,platformV2:{inYach:n,inIOS:t,inAndroid:i,inPC:r,inIpad:a,inIPhone:s,inHarmonyNext:u},version:((e.match(/Yach\/[a-zA-Z0-9.-]+/)||[])[0]||"").split("/")[1]||"",language:"undefined"!=typeof navigator?navigator.language:"*",env:c?"test":"online"}}t.d(n,"a",(function(){return i})),function(e){e.pc="pc",e.android="android",e.ios="ios",e.notInYach="notInYach"}(o||(o={}))},function(e,n,t){"use strict";(function(e){var o=t(2),i=t(0),r=function(e,n,t){var o=this;this.genid=function(){var e=Date.now().toString(36);return e+=Math.random().toString(36).substr(3)},this.receiveResponse=function(e){o.callback(e)},this.getPayload=function(){return{msgId:o.id,methodName:o.methodName,moduleId:o.moduleId,body:o.plainMsg,type:"request",invokeType:o.invokeType}},this.id=this.genid(),this.PromiseObj={resolve:null,reject:null},this.methodName=e,this.plainMsg=n,this.invokeType=null==n?void 0:n.invokeType,this.moduleId=null==n?void 0:n.moduleId,this.callback=t},a=new function(){var n=this;this.addPending=function(e){n.pendingMsgs[e.id]=e},this.deletePending=function(e){delete n.pendingMsgs[e.id]},this.getPending=function(e){return this.pendingMsgs[e]},this.invokeAPIInBrowserView=function(e){window.sendTo(e)},this.invokeAPIInWebview=function(e){window.sendToHost(e)},this.invokeAPIInModuleFederation=function(e){window.remoteSendToHost(e)},this.invokeAPI=function(e,t,o){var i;if("moduleFederation"===n.invokeType){t.invokeType=n.invokeType,t.moduleId=n.moduleId,i=new r(e,t,o);var a=JSON.stringify(i.getPayload());n.invokeAPIInModuleFederation(a)}else{i=new r(e,t,o),a=JSON.stringify(i.getPayload());var s=t.invokeType;"browserView"===(void 0===s?"":s)?n.invokeAPIInBrowserView(a):n.invokeAPIInWebview(a)}return n.addPending(i),i},this.handleCallback=function(e,t){var o=e.type,r=e.methodName,a=e.eventName,s=e.msgId,c=e.data,u=void 0===c?{}:c,d=e.code,l=e.message,p=e.msg;if("request"===o)switch(r){case"refresh":window.location.reload();break;case"back":window.history.back();break;case"forward":window.history.forward();break;case"event":i.a.execEvent(a,u);break;case"zoomInClick":var f=document.documentElement.scrollTop||document.body.scrollTop,v=window.location.href;"browserView"===t?window.sendTo(JSON.stringify({type:o,methodName:r,body:{scrollTopVal:f,url:v,title:u&&u.title}})):window.sendToHost(JSON.stringify({type:o,methodName:r,body:{scrollTopVal:f,url:v,title:u&&u.title}}))}else if("response"===o){var m=n.getPending(s);m&&m.receiveResponse({data:u,code:d,message:l||p||u.msg||u.message}),-3!=d&&n.deletePending(s)}},this.init=function(){var e;"moduleFederation"!==n.invokeType?(window.addEventListener("message",(function(e){Object(o.a)("electron res: ",e),n.handleCallback(e.data||{})})),window.receiveBrowserViewData&&window.receiveBrowserViewData((function(e,t){return n.handleCallback(t)}))):null===(e=window.remoteReceiveFromHost)||void 0===e||e.call(window,(function(e){n.handleCallback(e)}),n.moduleId)},this.pendingMsgs={},this.invokeType=window.remoteSendToHost&&window.remoteReceiveFromHost&&e?"moduleFederation":"",this.moduleId=Math.random().toString(36).substring(2,15)};n.a=a}).call(this,t(6))},function(e){e.exports=JSON.parse('{"name":"yach.open.jssdk","version":"4.4.5-beta.1","description":"","module":"./es/index.js","main":"./libs/index.js","files":["es","libs","dist"],"sideEffects":false,"scripts":{"start":"yach del es && tsc -w","build":"node ./tools/run compile","lint":"eslint \'src/**/*.{js,ts}\'","lint-fix":"eslint --fix \'src/**/*.{js,ts}\'","p:beta":"npm publish --tag=beta --access public","p":"npm publish"},"dependencies":{"@babel/runtime-corejs3":"^7.10.3"},"authors":[{"name":"ostwind","email":"9837438@qq.com"}],"license":"ISC","devDependencies":{"@babel/core":"^7.10.2","@babel/plugin-proposal-class-properties":"^7.8.3","@babel/plugin-transform-runtime":"^7.10.1","@babel/preset-env":"^7.9.5","@types/node":"^13.9.8","@typescript-eslint/eslint-plugin":"^2.25.0","@typescript-eslint/parser":"^2.25.0","babel-loader":"^8.1.0","colorful":"^2.1.0","commander":"^5.1.0","dingtalk-jsapi":"^2.10.2","eslint":"^6.8.0","eslint-config-prettier":"^6.10.1","eslint-plugin-prettier":"^3.1.2","gulp":"^4.0.2","gulp-babel":"^8.0.0","gulp-concat":"^2.6.1","gulp-typescript":"^6.0.0-alpha.1","gulp-uglify":"^3.0.2","gulp-umd":"^2.0.0","gulp-util":"^3.0.8","lint-staged":"^10.0.9","prettier":"^2.0.2","qiao.ext.cos":"^0.1.2","ts-loader":"^7.0.1","typescript":"^3.9.7","webpack":"^4.43.0","webpack-cli":"^3.3.11","webpack-merge":"^4.2.2","yach.open.cli":"^1.0.1","npm-cli-login":"1.0.0"}}')},function(e,n){var t,o,i=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(e){t=r}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(e){o=a}}();var c,u=[],d=!1,l=-1;function p(){d&&c&&(d=!1,c.length?u=c.concat(u):l=-1,u.length&&f())}function f(){if(!d){var e=s(p);d=!0;for(var n=u.length;n;){for(c=u,u=[];++l<n;)c&&c[l].run();l=-1,n=u.length}c=null,d=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(n){try{return o.call(null,e)}catch(n){return o.call(this,e)}}}(e)}}function v(e,n){this.fun=e,this.array=n}function m(){}i.nextTick=function(e){var n=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)n[t-1]=arguments[t];u.push(new v(e,n)),1!==u.length||d||s(f)},v.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,n,t){"use strict";t.r(n),t.d(n,"version",(function(){return ni})),t.d(n,"sdkVersion",(function(){return ti})),t.d(n,"env",(function(){return oi})),t.d(n,"platform",(function(){return ii})),t.d(n,"platformV2",(function(){return ri})),t.d(n,"config",(function(){return ai})),t.d(n,"ready",(function(){return si})),t.d(n,"error",(function(){return ci})),t.d(n,"on",(function(){return ui})),t.d(n,"off",(function(){return di})),t.d(n,"openLink",(function(){return F})),t.d(n,"feedback",(function(){return E})),t.d(n,"open",(function(){return A})),t.d(n,"openSlidePanel",(function(){return V})),t.d(n,"share",(function(){return W})),t.d(n,"previewFile",(function(){return B})),t.d(n,"previewImage",(function(){return L})),t.d(n,"downloadFile",(function(){return _})),t.d(n,"uploadAttachment",(function(){return N})),t.d(n,"clipboardFileUpload",(function(){return H})),t.d(n,"proxy",(function(){return U})),t.d(n,"datepicker",(function(){return Y})),t.d(n,"scan",(function(){return $})),t.d(n,"chosen",(function(){return te})),t.d(n,"openSingleWebview",(function(){return ie})),t.d(n,"getSingleWebviewData",(function(){return re})),t.d(n,"injectScript",(function(){return ae})),t.d(n,"closeWindow",(function(){return ce})),t.d(n,"showCallMenu",(function(){return Co})),t.d(n,"call",(function(){return Mo})),t.d(n,"setIcon",(function(){return zn})),t.d(n,"setTitle",(function(){return Cn})),t.d(n,"setMenu",(function(){return jn})),t.d(n,"close",(function(){return xn})),t.d(n,"replacePage",(function(){return On})),t.d(n,"quit",(function(){return En})),t.d(n,"setRight",(function(){return Vn})),t.d(n,"setTitleExpandIcon",(function(){return Bn})),t.d(n,"updateExpandTitle",(function(){return Ln})),t.d(n,"setLeft",(function(){return Hn})),t.d(n,"goBack",(function(){return Jn})),t.d(n,"complexPicker",(function(){return Qn})),t.d(n,"departmentsPicker",(function(){return et})),t.d(n,"groupComplexPicker",(function(){return nt})),t.d(n,"chooseConversationByCorpId",(function(){return tt})),t.d(n,"pickConversation",(function(){return it})),t.d(n,"openSingleChat",(function(){return rt})),t.d(n,"openTeamChat",(function(){return at})),t.d(n,"openSquad",(function(){return st})),t.d(n,"sendP2PMsg",(function(){return ct})),t.d(n,"mapView",(function(){return Z})),t.d(n,"multipointView",(function(){return ee})),t.d(n,"requestAuthCode",(function(){return wt})),t.d(n,"createTab",(function(){return dt})),t.d(n,"updateTab",(function(){return pt})),t.d(n,"weeklyShare",(function(){return vt})),t.d(n,"fullScreen",(function(){return ht})),t.d(n,"exitFullScreen",(function(){return bt})),t.d(n,"showPreloader",(function(){return Pt})),t.d(n,"showCustomOverlayContent",(function(){return St})),t.d(n,"hidePreloader",(function(){return Ct})),t.d(n,"hideCustomOverlayContent",(function(){return It})),t.d(n,"vibrate",(function(){return jt})),t.d(n,"toast",(function(){return xt})),t.d(n,"alert",(function(){return Vt})),t.d(n,"confirm",(function(){return Wt})),t.d(n,"getPhoneInfo",(function(){return At})),t.d(n,"getUUID",(function(){return vo})),t.d(n,"checkStepPermission",(function(){return ho})),t.d(n,"getGeolocation",(function(){return Lt})),t.d(n,"getGeolocationSwitch",(function(){return Nt})),t.d(n,"getLang",(function(){return Ht})),t.d(n,"startRecord",(function(){return Jt})),t.d(n,"stopRecord",(function(){return qt})),t.d(n,"onRecordEnd",(function(){return Kt})),t.d(n,"downloadAudio",(function(){return Xt})),t.d(n,"playAudio",(function(){return Qt})),t.d(n,"pauseAudio",(function(){return no})),t.d(n,"stopAudio",(function(){return oo})),t.d(n,"onPlayEnd",(function(){return ro})),t.d(n,"resumeAudio",(function(){return so})),t.d(n,"getNetworkType",(function(){return uo})),t.d(n,"isAtTal",(function(){return po})),t.d(n,"webViewBounceDisable",(function(){return xo})),t.d(n,"pullToRefreshEnable",(function(){return Fo})),t.d(n,"pullToRefreshStop",(function(){return Ao})),t.d(n,"pullToRefreshDisable",(function(){return Vo})),t.d(n,"getItem",(function(){return Wo})),t.d(n,"setItem",(function(){return Lo})),t.d(n,"removeItem",(function(){return No})),t.d(n,"writeLog",(function(){return Uo})),t.d(n,"flushLog",(function(){return Yo})),t.d(n,"remind",(function(){return de})),t.d(n,"takePicture",(function(){return le})),t.d(n,"datetimepicker",(function(){return G})),t.d(n,"actionSheet",(function(){return Ft})),t.d(n,"webViewMessageSend",(function(){return $o})),t.d(n,"talYoungFilesUpload",(function(){return Xo})),t.d(n,"openVideoPlayer",(function(){return fe})),t.d(n,"openMediaFileDialog",(function(){return ve})),t.d(n,"openMediaFileDialogV2",(function(){return me})),t.d(n,"mediaFileUpload",(function(){return he})),t.d(n,"invoice",(function(){return ge})),t.d(n,"pushWorkMsg",(function(){return be})),t.d(n,"openTalYoungToTopic",(function(){return we})),t.d(n,"getToken",(function(){return ke})),t.d(n,"authStart",(function(){return Se})),t.d(n,"authFinish",(function(){return ze})),t.d(n,"assistantCreate",(function(){return Ie})),t.d(n,"yachEvent",(function(){return je})),t.d(n,"topicEvent",(function(){return Oe})),t.d(n,"openTogetherEyeWebview",(function(){return Ee})),t.d(n,"getTogetherConfig",(function(){return De})),t.d(n,"rouseApp",(function(){return Ve})),t.d(n,"externalLinkPreviewFile",(function(){return Re})),t.d(n,"savePic",(function(){return _e})),t.d(n,"zfbAuth",(function(){return Be})),t.d(n,"complain",(function(){return Ne})),t.d(n,"onRecordEnd_v2",(function(){return bo})),t.d(n,"startRecord_v2",(function(){return yo})),t.d(n,"stopRecord_v2",(function(){return Po})),t.d(n,"selectDepartment",(function(){return He})),t.d(n,"setWindowBig",(function(){return qn})),t.d(n,"tencentMeeting",(function(){return Gn})),t.d(n,"tencentMeetingBegin",(function(){return Kn})),t.d(n,"createModifySchedule",(function(){return Je})),t.d(n,"onlineDocmentOpenTeamChat",(function(){return Ke})),t.d(n,"entergroupCheck",(function(){return Xe})),t.d(n,"resetSessionUnread",(function(){return Qe})),t.d(n,"weeklyRead",(function(){return nn})),t.d(n,"openFutureGroup",(function(){return an})),t.d(n,"knowledgeBaseSelect",(function(){return cn})),t.d(n,"knowledgeSelectParams",(function(){return dn})),t.d(n,"lorebaseShowList",(function(){return pn})),t.d(n,"lorebaseRefreshNodeWebview",(function(){return vn})),t.d(n,"openPublish",(function(){return bn})),t.d(n,"setLight",(function(){return To})),t.d(n,"openUserSchedule",(function(){return qe})),t.d(n,"disableScreenCapture",(function(){return on})),t.d(n,"setPanGestureEnable",(function(){return Zn})),t.d(n,"addAppToNav",(function(){return Qo})),t.d(n,"copy",(function(){return hn})),t.d(n,"capturePage",(function(){return Go})),t.d(n,"getConfig",(function(){return yn}));var o=t(3),i=t(1),r=t(2),a=function(e,n){var t=c(e),o=c(n),i=t.pop(),r=o.pop(),a=p(t,o);return 0!==a?a:i&&r?p(i.split("."),r.split(".")):i||r?i?-1:1:0},s=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,c=function(e){if("string"!=typeof e)throw new TypeError("Invalid argument expected string");var n=e.match(s);if(!n)throw new Error("Invalid argument not valid semver ('"+e+"' received)");return n.shift(),n},u=function(e){return"*"===e||"x"===e||"X"===e},d=function(e){var n=parseInt(e,10);return isNaN(n)?e:n},l=function(e,n){if(u(e)||u(n))return 0;var t=function(e,n){return typeof e!=typeof n?[String(e),String(n)]:[e,n]}(d(e),d(n)),o=t[0],i=t[1];return o>i?1:o<i?-1:0},p=function(e,n){for(var t=0;t<Math.max(e.length,n.length);t++){var o=l(e[t]||"0",n[t]||"0");if(0!==o)return o}return 0},f={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},v=(Object.keys(f),t(5)),m=function(){function e(e){var n=this;this.invokeAPIConfigMapByMethod={},this.configJsApiList=[],this.platformConfigMap={},this.hadConfig=!1,this.bridgeInitFnPromise=null,this.cacheP={},this.config$=new Promise((function(e,t){n.cacheP.resolve=e,n.cacheP.reject=t})),this.env=e,this.exportSdk={version:e.version,sdkVersion:v.version,env:e,platform:e.platform,platformV2:e.platformV2,config:function(e){void 0===e&&(e={});var t=e.jsApiList,o=void 0===t?[]:t;n.hadConfig?console.log("Config has been executed"):n.bridgeInitFn().then((function(t){t("config",e).then((function(e){n.cacheP.resolve(e),n.hadConfig=!0,n.configJsApiList=o})).catch((function(e){n.cacheP.reject(e)}))}))},ready:function(e){n.bridgeInitFn().then((function(){e()}))},error:function(e){n.config$.catch((function(n){e(n)}))},on:function(t,o){n.bridgeInitFn().then((function(){n.platformConfigMap[e.platform].event.on(t,o)}))},off:function(t,o){n.bridgeInitFn().then((function(){n.platformConfigMap[e.platform].event.off(t,o)}))}}}return e.prototype.setAPI=function(e,n){this.invokeAPIConfigMapByMethod[e]=n},e.prototype.setPlatform=function(e){var n=e.platform;e.bridgeInit;this.platformConfigMap[n]=e},e.prototype.bridgeInitFn=function(){if(this.bridgeInitFnPromise)return this.bridgeInitFnPromise;var e=this.platformConfigMap[this.env.platform];if(e)this.bridgeInitFnPromise=e.bridgeInit();else{var n="Do not support the current environment�"+this.env.platform;this.bridgeInitFnPromise=Promise.reject(new Error(n))}return this.bridgeInitFnPromise},e.prototype._onFail=function(e,n,t,o){Object(i.a)({method:e,errorcode:n,message:t}),o&&"function"==typeof o&&o({code:n,message:t})},e.prototype.invokeAPI=function(e,n){if(n||(n={}),e){var t=this.invokeAPIConfigMapByMethod[e];if(!t)return this._onFail(e,"-1","["+e+"] method is not exist",n.onFail);var o=t[this.env.platform];if(o){var i=o.vs||"0.0.0";if(a(this.env.version,i)<0)return this._onFail(e,"-1","The current application version is "+this.env.version+". This method does not support versions less than "+i,n.onFail);var s=o.paramsDeal?o.paramsDeal(n):n;if("function"==typeof s.onSuccess){var c=s.onSuccess;s.onSuccess=function(e){c(e)}}this.bridgeInitFn().then((function(n){n(e,s).then((function(n){Object(r.a)("SDK 返回结果成功 ",{method:e,params:s,result:n})})).catch((function(n){Object(r.a)("SDK 返回结果失败",{method:e,params:s,error:n})}))})).catch((function(e){console.log("wenai err",e)}))}else this._onFail(e,"-1","["+e+"] method do not support the current platform ("+this.env.platform+")",n.onFail)}},e}(),h=t(4),g=new Map([[0,"onSuccess"],[-1,"onCancel"],[-2,"onFail"],[-3,"onProgress"],[-4,"onSubmit"]]);function b(e){return g.get(e)||"onFail"}var w=function(){return(w=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)},y=function(e,n){return new Promise((function(t,o){return h.a.invokeAPI(e,n,(function(a){var s=a.data,c=a.code,u=a.message,d=parseInt(c),l=b(d),p=n[l];if(Object(r.a)("SDK执行后回调,相关参数 ",{method:e,param:n,data:s,_code:d,message:u,callbackFun:p}),"onFail"!==l)"function"==typeof p&&p(s||u),t({_code:d,message:u,data:s});else{if(Object(i.a)({method:e,errorcode:d,message:u||JSON.stringify(s)||"SDK执行失败回调,相关参数"}),"function"==typeof p){console.log("wenai-code",c,d);var f="[object Object]"===Object.prototype.toString.call(s)?w(w({},s),{code:c,message:u}):{data:s,code:c,message:u};p(u?f:s)}o({_code:d,message:u,data:s})}}))}))},k=t(0),P=function(){return(P=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)};function S(e){if(window.WebViewJavascriptBridge)return e(WebViewJavascriptBridge);if(window.WKWebViewJavascriptBridge)return e(WKWebViewJavascriptBridge);if(window.WVJBCallbacks)return window.WVJBCallbacks.push(e);window.WVJBCallbacks=[e];var n=document.createElement("iframe");n.style.display="none",n.src="https://__bridge_loaded__",document.documentElement.appendChild(n),setTimeout((function(){document.documentElement.removeChild(n)}),0)}var T=function(e,n){return new Promise((function(t,o){var a=P({},n);S((function(s){n.control&&s.registerHandler(e,(function(e){var o=n.onSuccess;delete a.onSuccess,"function"==typeof o&&(o(e),t({code:"0",message:"success"}))})),s.callHandler(e,n,(function(s){var c=s.code,u=s.message,d=s.data,l=parseInt(c),p=b(l),f=a[p];if(Object(r.a)("SDK执行后回调,相关参数 ",{method:e,param:n,data:d,_code:l,message:u,callbackFun:f}),"onFail"===p)return Object(i.a)({method:e,errorcode:l,message:u||JSON.stringify(d)||"SDK执行失败回调,相关参数"}),"function"==typeof f&&f(u?{code:c,message:u}:d),void o({_code:l,message:u,data:d});"function"==typeof f&&f(d||u),t({_code:l,message:u,data:d})}))}))}))},z=function(e,n,t,o){return new(t||(t=Promise))((function(i,r){function a(e){try{c(o.next(e))}catch(e){r(e)}}function s(e){try{c(o.throw(e))}catch(e){r(e)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}c((o=o.apply(e,n||[])).next())}))},C=function(e,n){var t,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=n.call(e,a)}catch(e){r=[6,e],o=0}finally{t=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}},I=Object(o.a)(),M=I.platform,j=new m(I);!function(){var e=this,n={platform:M,authMethod:"config",bridgeInit:"pc"===M?function(){return z(e,void 0,void 0,(function(){return C(this,(function(e){return h.a.init(),[2,y]}))}))}:function(){return new Promise((function(e,n){S((function(n){Object(r.a)("注册resume事件 "),n.registerHandler("resume",(function(e){Object(r.a)("resume监听到回调,相关参数 ",{resData:e}),k.a.execEvent("resume",e)})),Object(r.a)("注册unreadMsgAction事件 "),n.registerHandler("unreadMsgAction",(function(e){Object(r.a)("unreadMsgAction监听到回调,相关参数 ",{resData:e}),k.a.execEvent("unreadMsgAction",e)})),Object(r.a)("注册webViewMsgReceive事件 "),n.registerHandler("webViewMsgReceive",(function(e){Object(r.a)("webViewMsgReceive监听到回调,相关参数 ",{resData:e}),k.a.execEvent("webViewMsgReceive",e)})),n.registerHandler("pushWorkMsg",(function(e){Object(r.a)("pushWorkMsg监听到回调,相关参数 ",{resData:e}),k.a.execEvent("pushWorkMsg",e)})),n.registerHandler("getTogetherCallback",(function(e){Object(r.a)("getTogetherCallback监听到回调,相关参数 ",{resData:e}),k.a.execEvent("getTogetherCallback",e)})),n.registerHandler("sendMsgCommon",(function(e){Object(r.a)("sendMsgCommon ",{resData:e}),k.a.execEvent("sendMsgCommon",e)})),n.registerHandler("toolbarClickEvent",(function(e,n){Object(r.a)("toolbarClickEvent ",{resData:e});var t={data:e,callback:n};k.a.execEvent("toolbarClickEvent",t)})),e()}))})).then((function(){return T}))},event:{on:function(e,n){k.a.on(e,n)},off:function(e,n){k.a.off(e,n)}}};j.setPlatform(n)}();var x={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};var O=function(e,n){var t=n.params,o=void 0===t?{}:t,i=n.platform,r=void 0===i?x:i;j.setAPI(e,r),j.invokeAPI(e,o)};function F(e){O("biz.util.openLink",{params:e})}function E(e){O("biz.util.feedback",{params:e})}function A(e){O("biz.util.open",{params:e})}var D={pc:{vs:"0.0.0"}};function V(e){O("biz.util.openSlidePanel",{params:e,platform:D})}var R={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function W(e){O("biz.util.share",{params:e,platform:R})}function B(e){O("biz.util.previewFile",{params:e})}function L(e){O("biz.util.previewImage",{params:e})}function _(e){O("biz.util.downloadFile",{params:e})}function N(e){O("biz.util.uploadAttachment",{params:e})}function H(e){O("biz.util.clipboardFileUpload",{params:e})}function U(e){O("biz.util.proxy",{params:e})}var J={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Y(e){O("biz.util.datepicker",{params:e,platform:J})}var q={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function G(e){O("biz.util.datetimepicker",{params:e,platform:q})}var K={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function $(e){O("biz.util.scan",{params:e,platform:K})}var X={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Z(e){O("biz.map.view",{params:e,platform:X})}var Q={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ee(e){O("biz.map.multipointView",{params:e,platform:Q})}var ne={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function te(e){O("biz.util.chosen",{params:e,platform:ne})}var oe={pc:{vs:"0.0.0"}};function ie(e){O("biz.util.openSingleWebview",{params:e,platform:oe})}function re(e){O("biz.util.getSingleWebviewData",{params:e})}function ae(e){O("biz.util.injectScript",{params:e})}var se={pc:{vs:"0.0.0"}};function ce(e){O("biz.util.closeWindow",{params:e,platform:se})}var ue={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function de(e){O("biz.util.remind",{params:e,platform:ue})}function le(e){O("biz.util.takePicture",{params:e})}var pe={pc:{vs:"0.0.0"},ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function fe(e){O("biz.util.openVideoPlayer",{params:e,platform:pe})}function ve(e){O("biz.util.openMediaFileDialog",{params:e})}function me(e){O("biz.util.openMediaFileDialogV2",{params:e})}function he(e){O("biz.util.mediaFileUpload",{params:e})}function ge(e){O("biz.util.invoice",{params:e})}function be(e){O("biz.util.pushWorkMsg",{params:e})}function we(e){O("biz.util.openTalYoungToTopic",{params:e})}var ye={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ke(e){O("biz.util.getToken",{params:e,platform:ye})}var Pe={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Se(e){O("biz.util.authStart",{params:e,platform:Pe})}var Te={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ze(e){O("biz.util.authFinish",{params:e,platform:Te})}var Ce={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ie(e){O("biz.util.assistantCreate",{params:e,platform:Ce})}var Me={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function je(e){O("biz.util.yachEvent",{params:e,platform:Me})}var xe={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Oe(e){O("biz.util.topicEvent",{params:e,platform:xe})}var Fe={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Ee(e){O("biz.util.openTogetherEyeWebview",{params:e,platform:Fe})}var Ae={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function De(e){O("biz.util.getTogetherConfig",{params:e,platform:Ae})}function Ve(e){O("biz.util.rouseApp",{params:e})}function Re(e){O("biz.util.externalLinkPreviewFile",{params:e})}var We={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Be(e){O("biz.util.zfbAuth",{params:e,platform:We})}var Le={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function _e(e){O("biz.util.savePic",{params:e,platform:Le})}function Ne(e){O("biz.util.complain",{params:e})}function He(e){O("biz.util.selectDepartment",{params:e})}var Ue={pc:{vs:"0.0.0"}};function Je(e){O("biz.util.createModifySchedule",{params:e,platform:Ue})}var Ye={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function qe(e){O("biz.util.openUserSchedule",{params:e,platform:Ye})}var Ge={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Ke(e){O("onlineDocmentOpenTeamChat",{params:e,platform:Ge})}var $e={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"1.8.0"}};function Xe(e){O("biz.util.entergroupCheck",{params:e,platform:$e})}var Ze={pc:{vs:"1.8.0"}};function Qe(e){O("biz.util.resetSessionUnread",{params:e,platform:Ze})}var en={pc:{vs:"1.9.3.1"},ios:{vs:"1.9.3.1"},android:{vs:"1.9.3.1"}};function nn(e){O("biz.util.weeklyRead",{params:e,platform:en})}var tn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function on(e){O("biz.util.disableScreenCapture",{params:e,platform:tn})}var rn={pc:{vs:"1.8.8"},ios:{vs:"1.8.8"},android:{vs:"1.8.8"}};function an(e){O("biz.util.openFutureGroup",{params:e,platform:rn})}var sn={pc:{vs:"1.8.8"},ios:{vs:"1.9.12"},android:{vs:"1.9.12"}};function cn(e){O("biz.util.knowledgeBaseSelect",{params:e,platform:sn})}var un={ios:{vs:"1.9.12"},android:{vs:"1.9.12"}};function dn(e){O("biz.util.knowledgeSelectParams",{params:e,platform:un})}var ln={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function pn(e){O("biz.util.lorebaseShowList",{params:e,platform:ln})}var fn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function vn(e){O("biz.util.lorebaseRefreshNodeWebview",{params:e,platform:fn})}var mn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function hn(e){O("biz.util.copy",{params:e,platform:mn})}var gn={pc:{vs:"1.8.8"}};function bn(e){O("biz.util.openPublish",{params:e,platform:gn})}var wn={ios:{vs:"1.9.12"},android:{vs:"1.9.12"}};function yn(e){O("biz.util.getConfig",{params:e,platform:wn})}var kn=function(){return(kn=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)};function Pn(e){return function(n){return kn(kn({},e),n)}}var Sn=Pn({control:!0,showIcon:!0,iconIndex:1}),Tn={ios:{vs:"0.0.0",paramsDeal:Sn},android:{vs:"0.0.0",paramsDeal:Sn}};function zn(e){O("biz.navigation.setIcon",{params:e,platform:Tn})}function Cn(e){O("biz.navigation.setTitle",{params:e})}var In=Pn({control:!0}),Mn={ios:{vs:"0.0.0",paramsDeal:In},android:{vs:"0.0.0",paramsDeal:In}};function jn(e){O("biz.navigation.setMenu",{params:e,platform:Mn})}function xn(e){O("biz.navigation.close",{params:e})}function On(e){O("biz.navigation.replace",{params:e})}var Fn={pc:{vs:"0.0.0"}};function En(e){O("biz.navigation.quit",{params:e,platform:Fn})}var An=Pn({show:!0,control:!1,text:""}),Dn={ios:{vs:"0.0.0",paramsDeal:An},android:{vs:"0.0.0",paramsDeal:An},pc:{vs:"0.0.0"}};function Vn(e){O("biz.navigation.setRight",{params:e,platform:Dn})}var Rn=Pn({control:!0}),Wn={ios:{vs:"0.0.0",paramsDeal:Rn},android:{vs:"0.0.0",paramsDeal:Rn}};function Bn(e){O("biz.navigation.setTitleExpandIcon",{params:e,platform:Wn})}function Ln(e){O("biz.navigation.updateExpandTitle",{params:e})}var _n=Pn({show:!0,control:!1,text:""}),Nn={ios:{vs:"0.0.0",paramsDeal:_n},android:{vs:"0.0.0",paramsDeal:_n},pc:{vs:"0.0.0"}};function Hn(e){O("biz.navigation.setLeft",{params:e,platform:Nn})}var Un={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Jn(e){O("biz.navigation.goBack",{params:e,platform:Un})}var Yn={pc:{vs:"0.0.0"}};function qn(e){O("biz.navigation.setWindowBig",{params:e,platform:Yn})}function Gn(e){O("biz.navigation.tencentMeeting",{params:e})}function Kn(e){O("biz.navigation.tencentMeetingBegin",{params:e})}var $n=Pn({nativePanEnable:!0,webPanEnable:!0}),Xn={ios:{vs:"0.0.0",paramsDeal:$n},android:{vs:"0.0.0",paramsDeal:$n}};function Zn(e){O("biz.navigation.setPanGestureEnable",{params:e,platform:Xn})}function Qn(e){O("biz.contact.complexPicker",{params:e})}function et(e){O("biz.contact.departmentsPicker",{params:e})}function nt(e){O("biz.group.groupComplexPicker",{params:e})}function tt(e){O("biz.chat.chooseConversationByCorpId",{params:e})}var ot={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function it(e){O("biz.chat.pickConversation",{params:e,platform:ot})}function rt(e){O("biz.chat.openSingleChat",{params:e})}function at(e){O("biz.chat.openTeamChat",{params:e})}function st(e){O("biz.chat.openSquad",{params:e})}function ct(e){O("biz.chat.sendP2PMsg",{params:e})}var ut={pc:{vs:"0.0.0"}};function dt(e){O("primary.createTab",{params:e,platform:ut})}var lt={pc:{vs:"1.9.12"}};function pt(e){O("primary.updateTab",{params:e,platform:lt})}var ft={pc:{vs:"0.0.0"}};function vt(e){O("primary.weeklyShare",{params:e,platform:ft})}var mt={pc:{vs:"0.0.0"}};function ht(e){O("primary.fullScreen",{params:e,platform:mt})}var gt={pc:{vs:"0.0.0"}};function bt(e){O("primary.exitFullScreen",{params:e,platform:gt})}function wt(e){O("runtime.permission.requestAuthCode",{params:e})}var yt={vs:"1.9.9"},kt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:yt};function Pt(e){O("device.notification.showPreloader",{params:e,platform:kt})}function St(e){O("device.notification.showCustomOverlayContent",{params:e,platform:{pc:yt}})}var Tt={vs:"1.9.9"},zt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:Tt};function Ct(e){O("device.notification.hidePreloader",{params:e,platform:zt})}function It(e){O("device.notification.hideCustomOverlayContent",{params:e,platform:{pc:Tt}})}var Mt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function jt(e){O("device.notification.vibrate",{params:e,platform:Mt})}function xt(e){O("device.notification.toast",{params:e})}var Ot={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ft(e){O("device.notification.actionSheet",{params:e,platform:Ot})}var Et={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function At(e){O("device.base.getPhoneInfo",{params:e,platform:Et})}var Dt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Vt(e){O("device.notification.alert",{params:e,platform:Dt})}var Rt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Wt(e){O("device.notification.confirm",{params:e,platform:Rt})}var Bt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Lt(e){O("device.geolocation.get",{params:e,platform:Bt})}var _t={android:{vs:"0.0.0"}};function Nt(e){O("device.geolocation.getSwitch",{params:e,platform:_t})}function Ht(e){O("device.system.getLang",{params:e})}var Ut={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Jt(e){O("device.audio.startRecord",{params:e,platform:Ut})}var Yt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function qt(e){O("device.audio.stopRecord",{params:e,platform:Yt})}var Gt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Kt(e){O("device.audio.onRecordEnd",{params:e,platform:Gt})}var $t={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Xt(e){O("device.audio.download",{params:e,platform:$t})}var Zt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Qt(e){O("device.audio.play",{params:e,platform:Zt})}var eo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function no(e){O("device.audio.pause",{params:e,platform:eo})}var to={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function oo(e){O("device.audio.stop",{params:e,platform:to})}var io={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ro(e){O("device.audio.onPlayEnd",{params:e,platform:io})}var ao={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function so(e){O("device.audio.resume",{params:e,platform:ao})}var co={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function uo(e){O("device.connection.getNetworkType",{params:e,platform:co})}var lo={pc:{vs:"0.0.0"}};function po(e){O("device.connection.isAtTal",{params:e,platform:lo})}var fo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"1.8.1"}};function vo(e){O("device.base.getUUID",{params:e,platform:fo})}var mo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ho(e){O("device.base.checkStepPermission",{params:e,platform:mo})}var go={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function bo(e){O("device.audio.onRecordEnd_v2",{params:e,platform:go})}var wo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function yo(e){O("device.audio.startRecord_v2",{params:e,platform:wo})}var ko={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Po(e){O("device.audio.stopRecord_v2",{params:e,platform:ko})}var So={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function To(e){O("device.system.setLight",{params:e,platform:So})}var zo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Co(e){O("biz.telephone.showCallMenu",{params:e,platform:zo})}var Io={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Mo(e){O("biz.telephone.call",{params:e,platform:Io})}var jo={ios:{vs:"0.0.0"}};function xo(e){O("ui.webViewBounce.disable",{params:e,platform:jo})}var Oo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Fo(e){O("ui.pullToRefresh.enable",{params:e,platform:Oo})}var Eo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ao(e){O("ui.pullToRefresh.stop",{params:e,platform:Eo})}var Do={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Vo(e){O("ui.pullToRefresh.disable",{params:e,platform:Do})}var Ro={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Wo(e){O("util.domainStorage.getItem",{params:e,platform:Ro})}var Bo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Lo(e){O("util.domainStorage.setItem",{params:e,platform:Bo})}var _o={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function No(e){O("util.domainStorage.removeItem",{params:e,platform:_o})}var Ho={pc:{vs:"1.7.0"}};function Uo(e){O("util.tool.writeLog",{params:e,platform:Ho})}var Jo={pc:{vs:"1.7.0"}};function Yo(e){O("util.tool.flushLog",{params:e,platform:Jo})}var qo={pc:{vs:"1.9.9"}};function Go(e){O("biz.util.capturePage",{params:e,platform:qo})}var Ko={ios:{vs:"0.0.0"}};function $o(e){O("biz.webViewMessage.send",{params:e,platform:Ko})}function Xo(e){O("app.custom.talYoungFilesUpload",{params:e})}var Zo={ios:{vs:"1.8.8"},android:{vs:"1.8.8"},pc:{vs:"1.8.8"}};function Qo(e){O("biz.util.addAppToNav",{params:e,platform:Zo})}console.log("add rouseApp ------------\x3e",Ve);var ei=j.exportSdk,ni=ei.version,ti=ei.sdkVersion,oi=ei.env,ii=ei.platform,ri=ei.platformV2,ai=ei.config,si=ei.ready,ci=ei.error,ui=ei.on,di=ei.off;n.default={version:ni,sdkVersion:ti,env:oi,platform:ii,platformV2:ri,config:ai,ready:si,error:ci,on:ui,off:di,biz:{util:{openLink:F,feedback:E,open:A,openSlidePanel:V,share:W,previewFile:B,previewImage:L,downloadFile:_,uploadAttachment:N,clipboardFileUpload:H,proxy:U,datepicker:Y,datetimepicker:G,scan:$,chosen:te,openSingleWebview:ie,getSingleWebviewData:re,injectScript:ae,onlineDocmentOpenTeamChat:Ke,entergroupCheck:Xe,resetSessionUnread:Qe,weeklyRead:nn,openFutureGroup:an,closeWindow:ce,remind:de,takePicture:le,openVideoPlayer:fe,openMediaFileDialog:ve,openMediaFileDialogV2:me,mediaFileUpload:he,invoice:ge,pushWorkMsg:be,openTalYoungToTopic:we,getToken:ke,authStart:Se,authFinish:ze,assistantCreate:Ie,yachEvent:je,topicEvent:Oe,openTogetherEyeWebview:Ee,getTogetherConfig:De,rouseApp:Ve,externalLinkPreviewFile:Re,savePic:_e,zfbAuth:Be,complain:Ne,selectDepartment:He,createModifySchedule:Je,openUserSchedule:qe,disableScreenCapture:on,addAppToNav:Qo,knowledgeBaseSelect:cn,knowledgeSelectParams:dn,lorebaseShowList:pn,lorebaseRefreshNodeWebview:vn,copy:hn,openPublish:bn,capturePage:Go,getConfig:yn},telephone:{showCallMenu:Co,call:Mo},navigation:{setIcon:zn,setTitle:Cn,setMenu:jn,close:xn,replace:On,quit:En,setRight:Vn,setTitleExpandIcon:Bn,updateExpandTitle:Ln,setLeft:Hn,goBack:Jn,setWindowBig:qn,tencentMeeting:Gn,tencentMeetingBegin:Kn,setPanGestureEnable:Zn},contact:{complexPicker:Qn,departmentsPicker:et},group:{groupComplexPicker:nt},chat:{chooseConversationByCorpId:tt,pickConversation:it,openSingleChat:rt,openTeamChat:at,openSquad:st,sendP2PMsg:ct},map:{view:Z,multipointView:ee},webViewMessage:{send:$o}},runtime:{permission:{requestAuthCode:wt}},primary:{createTab:dt,updateTab:pt,weeklyShare:vt,fullScreen:ht,exitFullScreen:bt},device:{notification:{showPreloader:Pt,showCustomOverlayContent:St,hidePreloader:Ct,hideCustomOverlayContent:It,vibrate:jt,toast:xt,alert:Vt,confirm:Wt,actionSheet:Ft},base:{getPhoneInfo:At,getUUID:vo,checkStepPermission:ho},geolocation:{get:Lt,getSwitch:Nt},system:{getLang:Ht,setLight:To},audio:{startRecord:Jt,stopRecord:qt,onRecordEnd:Kt,download:Xt,play:Qt,pause:no,stop:oo,onPlayEnd:ro,resume:so,onRecordEnd_v2:bo,startRecord_v2:yo,stopRecord_v2:Po},connection:{getNetworkType:uo,isAtTal:po}},ui:{webViewBounce:{disable:xo},pullToRefresh:{enable:Fo,stop:Ao,disable:Vo}},util:{domainStorage:{getItem:Wo,setItem:Lo,removeItem:No},tool:{writeLog:Uo,flushLog:Yo}},app:{custom:{talYoungFilesUpload:Xo}}}}]).default;
@@ -0,0 +1,13 @@
1
+ import { IError } from '../../common.typings';
2
+ export interface GetConfigResult {
3
+ code: number;
4
+ message: string;
5
+ data: any;
6
+ }
7
+ export interface GetConfigParams {
8
+ configNode: String;
9
+ onSuccess?: (res: GetConfigResult) => void;
10
+ onFail?: (err: IError) => void;
11
+ }
12
+ declare function getConfig(params: GetConfigParams): void;
13
+ export { getConfig };
@@ -0,0 +1,19 @@
1
+ import initAPI from '../../initAPI';
2
+ var ios = {
3
+ vs: '1.9.12'
4
+ };
5
+ var android = {
6
+ vs: '1.9.12'
7
+ };
8
+ var platform = {
9
+ ios: ios,
10
+ android: android
11
+ };
12
+ var apiName = 'biz.util.getConfig';
13
+ function getConfig(params) {
14
+ initAPI(apiName, {
15
+ params: params,
16
+ platform: platform
17
+ });
18
+ }
19
+ export { getConfig };
@@ -2,8 +2,16 @@ import initAPI from '../../initAPI';
2
2
  var pc = {
3
3
  vs: '1.8.8'
4
4
  };
5
+ var ios = {
6
+ vs: '1.9.12'
7
+ };
8
+ var android = {
9
+ vs: '1.9.12'
10
+ };
5
11
  var platform = {
6
- pc: pc
12
+ pc: pc,
13
+ ios: ios,
14
+ android: android
7
15
  };
8
16
  var apiName = 'biz.util.knowledgeBaseSelect';
9
17
  function knowledgeBaseSelect(params) {
@@ -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,19 @@
1
+ import initAPI from '../../initAPI';
2
+ var ios = {
3
+ vs: '1.9.12'
4
+ };
5
+ var android = {
6
+ vs: '1.9.12'
7
+ };
8
+ var platform = {
9
+ ios: ios,
10
+ android: android
11
+ };
12
+ var apiName = 'biz.util.knowledgeSelectParams';
13
+ function knowledgeSelectParams(params) {
14
+ initAPI(apiName, {
15
+ params: params,
16
+ platform: platform
17
+ });
18
+ }
19
+ export { knowledgeSelectParams };
@@ -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,16 @@
1
+ /*
2
+ * @Descripttion:
3
+ * @Author: zhangyong<zhangyong_jzb@100tal.com>
4
+ * @Date: 2025-07-28 17:15:05
5
+ * @LastEditors: zhangyong<zhangyong_jzb@100tal.com>
6
+ * @LastEditTime: 2025-07-28 17:16:05
7
+ * 新增文件选择器——针对移动端专用——支持ios文件导出
8
+ */
9
+ import initAPI from '../../initAPI';
10
+ var apiName = 'biz.util.openMediaFileDialogV2';
11
+ function openMediaFileDialogV2(params) {
12
+ initAPI(apiName, {
13
+ params: params
14
+ });
15
+ }
16
+ export { openMediaFileDialogV2 };
@@ -7,10 +7,10 @@ export interface IOpenPublishResult {
7
7
  export interface IOpenPublishParams {
8
8
  squadId?: string;
9
9
  squadName?: string;
10
- publishType?: 'publish' | 'forward';
10
+ source: string;
11
11
  multiple?: boolean;
12
12
  topicType: '0' | '1' | '2';
13
- TopicTypeMultiple?: boolean;
13
+ topicTypeMultiple?: boolean;
14
14
  content?: string;
15
15
  pic?: string;
16
16
  video?: string;
@@ -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
@@ -24,6 +24,7 @@ import { remind } from './api/biz/util/remind';
24
24
  import { takePicture } from './api/biz/util/takePicture';
25
25
  import { openVideoPlayer } from './api/biz/util/openVideoPlayer';
26
26
  import { openMediaFileDialog } from './api/biz/util/openMediaFileDialog';
27
+ import { openMediaFileDialogV2 } from './api/biz/util/openMediaFileDialogV2';
27
28
  import { mediaFileUpload } from './api/biz/util/mediaFileUpload';
28
29
  import { invoice } from './api/biz/util/invoice';
29
30
  import { pushWorkMsg } from './api/biz/util/pushWorkMsg';
@@ -51,10 +52,12 @@ import { weeklyRead } from './api/biz/util/weeklyRead';
51
52
  import { disableScreenCapture } from './api/biz/util/disableScreenCapture';
52
53
  import { openFutureGroup } from './api/biz/util/openFutureGroup';
53
54
  import { knowledgeBaseSelect } from './api/biz/util/knowledgeBaseSelect';
55
+ import { knowledgeSelectParams } from './api/biz/util/knowledgeSelectParams';
54
56
  import { lorebaseShowList } from './api/biz/util/lorebaseShowList';
55
57
  import { lorebaseRefreshNodeWebview } from './api/biz/util/lorebaseRefreshNodeWebview';
56
58
  import { copy } from './api/biz/util/copy';
57
59
  import { openPublish } from './api/biz/util/openPublish';
60
+ import { getConfig } from './api/biz/util/getConfig';
58
61
  /**navigation*/
59
62
  import { setIcon } from './api/biz/navigation/setIcon';
60
63
  import { setTitle } from './api/biz/navigation/setTitle';
@@ -84,6 +87,7 @@ import { openTeamChat } from './api/biz/chat/openTeamChat';
84
87
  import { openSquad } from './api/biz/chat/openSquad';
85
88
  import { sendP2PMsg } from './api/biz/chat/sendP2PMsg';
86
89
  import { createTab } from './api/primary/createTab';
90
+ import { updateTab } from './api/primary/updateTab';
87
91
  import { weeklyShare } from './api/primary/weeklyShare';
88
92
  import { fullScreen } from './api/primary/fullScreen';
89
93
  import { exitFullScreen } from './api/primary/exitFullScreen';
@@ -135,7 +139,7 @@ import { send as webViewMessageSend } from './api/biz/webViewMessage/send';
135
139
  import { talYoungFilesUpload } from './api/app/custom/talYoungFilesUpload';
136
140
  import { addAppToNav } from './api/biz/util/addAppToNav';
137
141
  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;
138
- 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, showCustomOverlayContent, hidePreloader, hideCustomOverlayContent, 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, 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, lorebaseShowList, lorebaseRefreshNodeWebview, openPublish, setLight, openUserSchedule, disableScreenCapture, setPanGestureEnable, addAppToNav, copy, capturePage, };
142
+ 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, webViewBounceDisable, pullToRefreshEnable, pullToRefreshStop, pullToRefreshDisable, getItem, setItem, removeItem, writeLog, flushLog, remind, takePicture, datetimepicker, actionSheet, webViewMessageSend, talYoungFilesUpload, openVideoPlayer, openMediaFileDialog, openMediaFileDialogV2, mediaFileUpload, 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, };
139
143
  declare const _default: {
140
144
  version: string;
141
145
  sdkVersion: string;
@@ -177,6 +181,7 @@ declare const _default: {
177
181
  takePicture: typeof takePicture;
178
182
  openVideoPlayer: typeof openVideoPlayer;
179
183
  openMediaFileDialog: typeof openMediaFileDialog;
184
+ openMediaFileDialogV2: typeof openMediaFileDialogV2;
180
185
  mediaFileUpload: typeof mediaFileUpload;
181
186
  invoice: typeof invoice;
182
187
  pushWorkMsg: typeof pushWorkMsg;
@@ -200,11 +205,13 @@ declare const _default: {
200
205
  disableScreenCapture: typeof disableScreenCapture;
201
206
  addAppToNav: typeof addAppToNav;
202
207
  knowledgeBaseSelect: typeof knowledgeBaseSelect;
208
+ knowledgeSelectParams: typeof knowledgeSelectParams;
203
209
  lorebaseShowList: typeof lorebaseShowList;
204
210
  lorebaseRefreshNodeWebview: typeof lorebaseRefreshNodeWebview;
205
211
  copy: typeof copy;
206
212
  openPublish: typeof openPublish;
207
213
  capturePage: typeof capturePage;
214
+ getConfig: typeof getConfig;
208
215
  };
209
216
  telephone: {
210
217
  showCallMenu: typeof showCallMenu;
@@ -257,6 +264,7 @@ declare const _default: {
257
264
  };
258
265
  primary: {
259
266
  createTab: typeof createTab;
267
+ updateTab: typeof updateTab;
260
268
  weeklyShare: typeof weeklyShare;
261
269
  fullScreen: typeof fullScreen;
262
270
  exitFullScreen: typeof exitFullScreen;
package/es/index.js CHANGED
@@ -26,6 +26,7 @@ import { remind } from './api/biz/util/remind';
26
26
  import { takePicture } from './api/biz/util/takePicture';
27
27
  import { openVideoPlayer } from './api/biz/util/openVideoPlayer';
28
28
  import { openMediaFileDialog } from './api/biz/util/openMediaFileDialog';
29
+ import { openMediaFileDialogV2 } from './api/biz/util/openMediaFileDialogV2';
29
30
  import { mediaFileUpload } from './api/biz/util/mediaFileUpload';
30
31
  import { invoice } from './api/biz/util/invoice';
31
32
  import { pushWorkMsg } from './api/biz/util/pushWorkMsg';
@@ -53,10 +54,12 @@ import { weeklyRead } from './api/biz/util/weeklyRead';
53
54
  import { disableScreenCapture } from './api/biz/util/disableScreenCapture';
54
55
  import { openFutureGroup } from './api/biz/util/openFutureGroup';
55
56
  import { knowledgeBaseSelect } from './api/biz/util/knowledgeBaseSelect';
57
+ import { knowledgeSelectParams } from './api/biz/util/knowledgeSelectParams';
56
58
  import { lorebaseShowList } from './api/biz/util/lorebaseShowList';
57
59
  import { lorebaseRefreshNodeWebview } from './api/biz/util/lorebaseRefreshNodeWebview';
58
60
  import { copy } from './api/biz/util/copy';
59
61
  import { openPublish } from './api/biz/util/openPublish';
62
+ import { getConfig } from './api/biz/util/getConfig';
60
63
  /**navigation*/
61
64
  import { setIcon } from './api/biz/navigation/setIcon';
62
65
  import { setTitle } from './api/biz/navigation/setTitle';
@@ -87,6 +90,7 @@ import { openSquad } from './api/biz/chat/openSquad';
87
90
  import { sendP2PMsg } from './api/biz/chat/sendP2PMsg';
88
91
  /* primary*****************************/
89
92
  import { createTab } from './api/primary/createTab';
93
+ import { updateTab } from './api/primary/updateTab';
90
94
  import { weeklyShare } from './api/primary/weeklyShare';
91
95
  import { fullScreen } from './api/primary/fullScreen';
92
96
  import { exitFullScreen } from './api/primary/exitFullScreen';
@@ -153,7 +157,7 @@ var _yachSdk$exportSdk = yachSdk.exportSdk,
153
157
  error = _yachSdk$exportSdk.error,
154
158
  on = _yachSdk$exportSdk.on,
155
159
  off = _yachSdk$exportSdk.off;
156
- 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, showCustomOverlayContent, hidePreloader, hideCustomOverlayContent, 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, 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, lorebaseShowList, lorebaseRefreshNodeWebview, openPublish, setLight, openUserSchedule, disableScreenCapture, setPanGestureEnable, addAppToNav, copy, capturePage };
160
+ 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, webViewBounceDisable, pullToRefreshEnable, pullToRefreshStop, pullToRefreshDisable, getItem, setItem, removeItem, writeLog, flushLog, remind, takePicture, datetimepicker, actionSheet, webViewMessageSend, talYoungFilesUpload, openVideoPlayer, openMediaFileDialog, openMediaFileDialogV2, mediaFileUpload, 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 };
157
161
  export default {
158
162
  version: version,
159
163
  sdkVersion: sdkVersion,
@@ -195,6 +199,7 @@ export default {
195
199
  takePicture: takePicture,
196
200
  openVideoPlayer: openVideoPlayer,
197
201
  openMediaFileDialog: openMediaFileDialog,
202
+ openMediaFileDialogV2: openMediaFileDialogV2,
198
203
  mediaFileUpload: mediaFileUpload,
199
204
  invoice: invoice,
200
205
  pushWorkMsg: pushWorkMsg,
@@ -218,11 +223,13 @@ export default {
218
223
  disableScreenCapture: disableScreenCapture,
219
224
  addAppToNav: addAppToNav,
220
225
  knowledgeBaseSelect: knowledgeBaseSelect,
226
+ knowledgeSelectParams: knowledgeSelectParams,
221
227
  lorebaseShowList: lorebaseShowList,
222
228
  lorebaseRefreshNodeWebview: lorebaseRefreshNodeWebview,
223
229
  copy: copy,
224
230
  openPublish: openPublish,
225
- capturePage: capturePage
231
+ capturePage: capturePage,
232
+ getConfig: getConfig
226
233
  },
227
234
  telephone: {
228
235
  showCallMenu: showCallMenu,
@@ -275,6 +282,7 @@ export default {
275
282
  },
276
283
  primary: {
277
284
  createTab: createTab,
285
+ updateTab: updateTab,
278
286
  weeklyShare: weeklyShare,
279
287
  fullScreen: fullScreen,
280
288
  exitFullScreen: exitFullScreen
@@ -3,41 +3,24 @@ declare global {
3
3
  sendToHost: any;
4
4
  sendTo: any;
5
5
  receiveBrowserViewData: any;
6
+ remoteSendToHost?: (payload: string) => void;
7
+ remoteReceiveFromHost?: (callback: (result: Record<string, any>) => void, moduleId?: string) => void;
6
8
  }
7
9
  }
8
- interface APIParams {
9
- invokeType?: 'browserView' | '';
10
- [propName: string]: any;
11
- }
12
- declare class GenPostMsg {
13
- private id;
14
- private PromiseObj;
15
- private methodName;
16
- private plainMsg;
17
- callback: (v: any) => void;
18
- result: Promise<any>;
19
- invokeType: 'browserView' | '';
20
- constructor(method: string, param: APIParams, callback: any);
21
- genid: () => string;
22
- receiveResponse: (data: any) => void;
23
- getPayload: () => {
24
- msgId: string;
25
- methodName: string;
26
- body: object;
27
- type: string;
28
- invokeType: "" | "browserView";
29
- };
30
- }
10
+ declare type InvokeType = 'browserView' | 'moduleFederation' | '';
31
11
  declare class Frame {
32
12
  pendingMsgs: {};
13
+ invokeType?: InvokeType;
14
+ moduleId?: string;
33
15
  constructor();
34
16
  addPending: (e: any) => void;
35
17
  deletePending: (e: any) => void;
36
18
  getPending: (t: any) => any;
37
19
  invokeAPIInBrowserView: (payload: string) => void;
38
20
  invokeAPIInWebview: (payload: string) => void;
39
- invokeAPI: (method: string, param: any, callback: any) => GenPostMsg;
40
- handleCallback: (datas: any, invokeType?: 'browserView' | '') => void;
21
+ invokeAPIInModuleFederation: (payload: string) => void;
22
+ invokeAPI: (method: string, param: any, callback: any) => any;
23
+ handleCallback: (datas: any, invokeType?: InvokeType) => void;
41
24
  init: () => void;
42
25
  }
43
26
  declare const frame: Frame;
@@ -21,6 +21,7 @@ var GenPostMsg = /*#__PURE__*/_createClass(function GenPostMsg(method, param, ca
21
21
  return {
22
22
  msgId: _this.id,
23
23
  methodName: _this.methodName,
24
+ moduleId: _this.moduleId,
24
25
  body: _this.plainMsg,
25
26
  type: 'request',
26
27
  invokeType: _this.invokeType
@@ -34,6 +35,7 @@ var GenPostMsg = /*#__PURE__*/_createClass(function GenPostMsg(method, param, ca
34
35
  this.methodName = method;
35
36
  this.plainMsg = param;
36
37
  this.invokeType = param === null || param === void 0 ? void 0 : param.invokeType;
38
+ this.moduleId = param === null || param === void 0 ? void 0 : param.moduleId;
37
39
  this.callback = callback;
38
40
  // this.result = new Promise(
39
41
  // function (resolve, reject) {
@@ -62,12 +64,25 @@ var Frame = /*#__PURE__*/_createClass(function Frame() {
62
64
  this.invokeAPIInWebview = function (payload) {
63
65
  window.sendToHost(payload);
64
66
  };
67
+ this.invokeAPIInModuleFederation = function (payload) {
68
+ window.remoteSendToHost(payload);
69
+ };
65
70
  this.invokeAPI = function (method, param, callback) {
66
- var genPostMsg = new GenPostMsg(method, param, callback);
67
- var payload = _JSON$stringify(genPostMsg.getPayload());
68
- var _param$invokeType = param.invokeType,
69
- invokeType = _param$invokeType === void 0 ? '' : _param$invokeType;
70
- invokeType === 'browserView' ? _this2.invokeAPIInBrowserView(payload) : _this2.invokeAPIInWebview(payload);
71
+ var genPostMsg;
72
+ if (_this2.invokeType === 'moduleFederation') {
73
+ param.invokeType = _this2.invokeType;
74
+ param.moduleId = _this2.moduleId;
75
+ genPostMsg = new GenPostMsg(method, param, callback);
76
+ var payload = _JSON$stringify(genPostMsg.getPayload());
77
+ _this2.invokeAPIInModuleFederation(payload);
78
+ } else {
79
+ genPostMsg = new GenPostMsg(method, param, callback);
80
+ var _payload = _JSON$stringify(genPostMsg.getPayload());
81
+ var _param$invokeType = param.invokeType,
82
+ invokeType = _param$invokeType === void 0 ? '' : _param$invokeType;
83
+ invokeType === 'browserView' ? _this2.invokeAPIInBrowserView(_payload) : _this2.invokeAPIInWebview(_payload);
84
+ }
85
+ // 调用时传入 moduleId
71
86
  _this2.addPending(genPostMsg);
72
87
  return genPostMsg;
73
88
  };
@@ -136,6 +151,13 @@ var Frame = /*#__PURE__*/_createClass(function Frame() {
136
151
  }
137
152
  };
138
153
  this.init = function () {
154
+ var _a;
155
+ if (_this2.invokeType === 'moduleFederation') {
156
+ (_a = window.remoteReceiveFromHost) === null || _a === void 0 ? void 0 : _a.call(window, function (response) {
157
+ _this2.handleCallback(response);
158
+ }, _this2.moduleId);
159
+ return;
160
+ }
139
161
  window.addEventListener('message', function (msg) {
140
162
  log('electron res: ', msg);
141
163
  _this2.handleCallback(msg.data || {});
@@ -145,6 +167,8 @@ var Frame = /*#__PURE__*/_createClass(function Frame() {
145
167
  });
146
168
  };
147
169
  this.pendingMsgs = {};
170
+ this.invokeType = window.remoteSendToHost && window.remoteReceiveFromHost && process ? 'moduleFederation' : '';
171
+ this.moduleId = Math.random().toString(36).substring(2, 15);
148
172
  });
149
173
  var frame = new Frame();
150
174
  export default frame;
package/es/lib/index.js CHANGED
@@ -40,12 +40,12 @@ function initSdk() {
40
40
  if (platform === 'pc') {
41
41
  bridgeInit = function bridgeInit() {
42
42
  return __awaiter(_this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
43
- return _regeneratorRuntime.wrap(function _callee$(_context) {
43
+ return _regeneratorRuntime.wrap(function (_context) {
44
44
  while (1) switch (_context.prev = _context.next) {
45
45
  case 0:
46
46
  PcBridgeInit();
47
47
  return _context.abrupt("return", pcBridge);
48
- case 2:
48
+ case 1:
49
49
  case "end":
50
50
  return _context.stop();
51
51
  }
@@ -0,0 +1,13 @@
1
+ import { IError } from '../../common.typings';
2
+ export interface GetConfigResult {
3
+ code: number;
4
+ message: string;
5
+ data: any;
6
+ }
7
+ export interface GetConfigParams {
8
+ configNode: String;
9
+ onSuccess?: (res: GetConfigResult) => void;
10
+ onFail?: (err: IError) => void;
11
+ }
12
+ declare function getConfig(params: GetConfigParams): void;
13
+ export { getConfig };
@@ -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.getConfig = getConfig;
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.getConfig';
21
+ function getConfig(params) {
22
+ (0, _initAPI["default"])(apiName, {
23
+ params: params,
24
+ platform: platform
25
+ });
26
+ }
@@ -10,8 +10,16 @@ var _initAPI = _interopRequireDefault(require("../../initAPI"));
10
10
  var pc = {
11
11
  vs: '1.8.8'
12
12
  };
13
+ var ios = {
14
+ vs: '1.9.12'
15
+ };
16
+ var android = {
17
+ vs: '1.9.12'
18
+ };
13
19
  var platform = {
14
- pc: pc
20
+ pc: pc,
21
+ ios: ios,
22
+ android: android
15
23
  };
16
24
  var apiName = 'biz.util.knowledgeBaseSelect';
17
25
  function knowledgeBaseSelect(params) {