@microsoft/teams-js 2.31.0 → 2.32.0-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +4 -4
- package/dist/esm/_virtual/_polyfill-node.os.js +1 -1
- package/dist/esm/_virtual/_polyfill-node.process.js +1 -1
- package/dist/esm/_virtual/_polyfill-node.util.js +1 -1
- package/dist/esm/packages/teams-js/dts/internal/telemetry.d.ts +2 -0
- package/dist/esm/packages/teams-js/dts/private/index.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/private/otherAppStateChange.d.ts +14 -0
- package/dist/esm/packages/teams-js/dts/private/store.d.ts +123 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/adaptiveCard.d.ts +0 -4
- package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/bot.d.ts +0 -5
- package/dist/esm/packages/teams-js/dts/public/dialog/dialog.d.ts +0 -7
- package/dist/esm/packages/teams-js/dts/public/dialog/update.d.ts +0 -5
- package/dist/esm/packages/teams-js/dts/public/dialog/url/bot.d.ts +0 -5
- package/dist/esm/packages/teams-js/dts/public/dialog/url/parentCommunication.d.ts +0 -9
- package/dist/esm/packages/teams-js/dts/public/dialog/url/url.d.ts +0 -6
- package/dist/esm/packages/teams-js/dts/public/index.d.ts +1 -1
- package/dist/esm/packages/teams-js/dts/public/runtime.d.ts +1 -0
- package/dist/esm/packages/teams-js/src/index.js +1 -1
- package/dist/esm/packages/teams-js/src/private/otherAppStateChange.js +1 -1
- package/dist/esm/packages/teams-js/src/private/store.js +1 -0
- package/dist/esm/packages/teams-js/src/public/nestedAppAuth.js +1 -1
- package/dist/esm/packages/teams-js/src/public/runtime.js +1 -1
- package/dist/esm/packages/teams-js/src/public/version.js +1 -1
- package/dist/umd/MicrosoftTeams.js +176 -40
- package/dist/umd/MicrosoftTeams.js.map +1 -1
- package/dist/umd/MicrosoftTeams.min.js +1 -1
- package/dist/umd/MicrosoftTeams.min.js.map +1 -1
- package/package.json +1 -50
- package/dist/esm/_virtual/_polyfill-node.buffer.js +0 -1
- package/dist/esm/_virtual/_polyfill-node.global.js +0 -1
- package/dist/umd/MicrosoftTeams.d.ts +0 -11857
package/README.md
CHANGED
@@ -24,7 +24,7 @@ To install the stable [version](https://learn.microsoft.com/javascript/api/overv
|
|
24
24
|
|
25
25
|
### Production
|
26
26
|
|
27
|
-
You can reference these files directly [from here](https://res.cdn.office.net/teams-js/2.31.
|
27
|
+
You can reference these files directly [from here](https://res.cdn.office.net/teams-js/2.31.1/js/MicrosoftTeams.min.js) or point your package manager at them.
|
28
28
|
|
29
29
|
## Usage
|
30
30
|
|
@@ -45,13 +45,13 @@ Reference the library inside of your `.html` page using:
|
|
45
45
|
```html
|
46
46
|
<!-- Microsoft Teams JavaScript API (via CDN) -->
|
47
47
|
<script
|
48
|
-
src="https://res.cdn.office.net/teams-js/2.31.
|
49
|
-
integrity="sha384-
|
48
|
+
src="https://res.cdn.office.net/teams-js/2.31.1/js/MicrosoftTeams.min.js"
|
49
|
+
integrity="sha384-ihAqYgEJz9hzEU+HaYodG1aTzjebC/wKXQi1nWKZG7OLAUyOL9ZrzD/SfZu79Jeu"
|
50
50
|
crossorigin="anonymous"
|
51
51
|
></script>
|
52
52
|
|
53
53
|
<!-- Microsoft Teams JavaScript API (via npm) -->
|
54
|
-
<script src="node_modules/@microsoft/teams-js@2.31.
|
54
|
+
<script src="node_modules/@microsoft/teams-js@2.31.1/dist/MicrosoftTeams.min.js"></script>
|
55
55
|
|
56
56
|
<!-- Microsoft Teams JavaScript API (via local) -->
|
57
57
|
<script src="MicrosoftTeams.min.js"></script>
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
var n;function r(){if(void 0===n){var r=new ArrayBuffer(2),t=new Uint8Array(r),e=new Uint16Array(r);if(t[0]=1,t[1]=2,258===e[0])n="BE";else{if(513!==e[0])throw new Error("unable to figure out endianess");n="LE"}}return n}function t(){return void 0!==global.location?global.location.hostname:""}function e(){return[]}function o(){return 0}function u(){return Number.MAX_VALUE}function i(){return Number.MAX_VALUE}function a(){return[]}function f(){return"Browser"}function c(){return void 0!==global.navigator?global.navigator.appVersion:""}function l(){return{}}function s(){return{}}function m(){return"javascript"}function p(){return"browser"}function v(){return"/tmp"}var d=v,g="\n";function w(){return"$HOME"}var b={homedir:w,EOL:"\n",arch:m,platform:p,tmpdir:d,tmpDir:v,networkInterfaces:l,getNetworkInterfaces:s,release:c,type:f,cpus:a,totalmem:i,freemem:u,uptime:o,loadavg:e,hostname:t,endianness:r};export{g as EOL,m as arch,a as cpus,b as default,r as endianness,u as freemem,s as getNetworkInterfaces,w as homedir,t as hostname,e as loadavg,l as networkInterfaces,p as platform,c as release,v as tmpDir,d as tmpdir,i as totalmem,f as type,o as uptime};
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function e(){throw new Error("setTimeout has not been defined")}function t(){throw new Error("clearTimeout has not been defined")}var r=e,n=t;function o(t){if(r===setTimeout)return setTimeout(t,0);if((r===e||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}"function"==typeof global.setTimeout&&(r=setTimeout),"function"==typeof global.clearTimeout&&(n=clearTimeout);var i,u=[],a=!1,c=-1;function l(){a&&i&&(a=!1,i.length?u=i.concat(u):c=-1,u.length&&f())}function f(){if(!a){var e=o(l);a=!0;for(var r=u.length;r;){for(i=u,u=[];++c<r;)i&&i[c].run();c=-1,r=u.length}i=null,a=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===t||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function s(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new h(e,t)),1!==u.length||a||o(f)}function h(e,t){this.fun=e,this.array=t}h.prototype.run=function(){this.fun.apply(null,this.array)};var m="browser",w="browser",v=!0,T={},p=[],g="",d={},b={},y={};function E(){}var N=E,k=E,D=E,L=E,x=E,A=E,M=E;function z(e){throw new Error("process.binding is not supported")}function j(){return"/"}function q(e){throw new Error("process.chdir is not supported")}function B(){return 0}var C=global.performance||{},F=C.now||C.mozNow||C.msNow||C.oNow||C.webkitNow||function(){return(new Date).getTime()};function G(e){var t=.001*F.call(C),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]}var H=new Date;function I(){return(new Date-H)/1e3}var J={nextTick:s,title:m,browser:v,env:T,argv:p,version:"",versions:d,on:N,addListener:k,once:D,off:L,removeListener:x,removeAllListeners:A,emit:M,binding:z,cwd:j,chdir:q,umask:B,hrtime:G,platform:w,release:b,config:y,uptime:I};export{k as addListener,p as argv,z as binding,v as browser,q as chdir,y as config,j as cwd,J as default,M as emit,T as env,G as hrtime,s as nextTick,L as off,N as on,D as once,w as platform,b as release,A as removeAllListeners,x as removeListener,m as title,B as umask,I as uptime,g as version,d as versions};
|
@@ -1 +1 @@
|
|
1
|
-
import e from"./_polyfill-node.
|
1
|
+
import e from"./_polyfill-node.process.js";import t from"./_polyfill-node._inherits.js";var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},r=/%[sdj%]/g;function o(e){if(!O(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var o=arguments,i=o.length,u=String(e).replace(r,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(o[n++]);case"%d":return Number(o[n++]);case"%j":try{return JSON.stringify(o[n++])}catch(e){return"[Circular]"}default:return e}})),c=o[n];n<i;c=o[++n])h(c)||!z(c)?u+=" "+c:u+=" "+s(c);return u}function i(t,n){if(w(global.process))return function(){return i(t,n).apply(this,arguments)};if(!0===e.noDeprecation)return t;var r=!1;return function(){if(!r){if(e.throwDeprecation)throw new Error(n);e.traceDeprecation?console.trace(n):console.error(n),r=!0}return t.apply(this,arguments)}}var u,c={};function l(t){if(w(u)&&(u=e.env.NODE_DEBUG||""),t=t.toUpperCase(),!c[t])if(new RegExp("\\b"+t+"\\b","i").test(u)){c[t]=function(){var e=o.apply(null,arguments);console.error("%s %d: %s",t,0,e)}}else c[t]=function(){};return c[t]}function s(e,t){var n={seen:[],stylize:a};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),d(t)?n.showHidden=t:t&&_(n,t),w(n.showHidden)&&(n.showHidden=!1),w(n.depth)&&(n.depth=2),w(n.colors)&&(n.colors=!1),w(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=f),p(n,e,n.depth)}function f(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function a(e,t){return e}function p(e,t,n){if(e.customInspect&&t&&P(t.inspect)&&t.inspect!==s&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return O(r)||(r=p(e,r,n)),r}var o=function(e,t){if(w(t))return e.stylize("undefined","undefined");if(O(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(v(t))return e.stylize(""+t,"number");if(d(t))return e.stylize(""+t,"boolean");if(h(t))return e.stylize("null","null")}(e,t);if(o)return o;var i=Object.keys(t),u=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),x(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return y(t);if(0===i.length){if(P(t)){var c=t.name?": "+t.name:"";return e.stylize("[Function"+c+"]","special")}if(S(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(E(t))return e.stylize(Date.prototype.toString.call(t),"date");if(x(t))return y(t)}var l,f="",a=!1,m=["{","}"];(b(t)&&(a=!0,m=["[","]"]),P(t))&&(f=" [Function"+(t.name?": "+t.name:"")+"]");return S(t)&&(f=" "+RegExp.prototype.toString.call(t)),E(t)&&(f=" "+Date.prototype.toUTCString.call(t)),x(t)&&(f=" "+y(t)),0!==i.length||a&&0!=t.length?n<0?S(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),l=a?function(e,t,n,r,o){for(var i=[],u=0,c=t.length;u<c;++u)J(t,String(u))?i.push(g(e,t,n,r,String(u),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(g(e,t,n,r,o,!0))})),i}(e,t,n,u,i):i.map((function(r){return g(e,t,n,u,r,a)})),e.seen.pop(),function(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(r>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(l,f,m)):m[0]+f+m[1]}function y(e){return"["+Error.prototype.toString.call(e)+"]"}function g(e,t,n,r,o,i){var u,c,l;if((l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?c=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(c=e.stylize("[Setter]","special")),J(r,o)||(u="["+o+"]"),c||(e.seen.indexOf(l.value)<0?(c=h(n)?p(e,l.value,null):p(e,l.value,n-1)).indexOf("\n")>-1&&(c=i?c.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+c.split("\n").map((function(e){return" "+e})).join("\n")):c=e.stylize("[Circular]","special")),w(u)){if(i&&o.match(/^\d+$/))return c;(u=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=e.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=e.stylize(u,"string"))}return u+": "+c}function b(e){return Array.isArray(e)}function d(e){return"boolean"==typeof e}function h(e){return null===e}function m(e){return null==e}function v(e){return"number"==typeof e}function O(e){return"string"==typeof e}function j(e){return"symbol"==typeof e}function w(e){return void 0===e}function S(e){return z(e)&&"[object RegExp]"===N(e)}function z(e){return"object"==typeof e&&null!==e}function E(e){return z(e)&&"[object Date]"===N(e)}function x(e){return z(e)&&("[object Error]"===N(e)||e instanceof Error)}function P(e){return"function"==typeof e}function D(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function T(e){return Buffer.isBuffer(e)}function N(e){return Object.prototype.toString.call(e)}function F(e){return e<10?"0"+e.toString(10):e.toString(10)}s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(){var e,t;console.log("%s - %s",(e=new Date,t=[F(e.getHours()),F(e.getMinutes()),F(e.getSeconds())].join(":"),[e.getDate(),k[e.getMonth()],t].join(" ")),o.apply(null,arguments))}function _(e,t){if(!t||!z(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function J(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var R="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function B(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(R&&e[R]){var t;if("function"!=typeof(t=e[R]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,R,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,o)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),R&&Object.defineProperty(t,R,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))}function H(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}function U(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function r(){for(var n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);var o=n.pop();if("function"!=typeof o)throw new TypeError("The last argument must be of type Function");var i=this,u=function(){return o.apply(i,arguments)};t.apply(this,n).then((function(t){e.nextTick(u.bind(null,null,t))}),(function(t){e.nextTick(H.bind(null,t,u))}))}return Object.setPrototypeOf(r,Object.getPrototypeOf(t)),Object.defineProperties(r,n(t)),r}B.custom=R;var $={inherits:t,_extend:_,log:A,isBuffer:T,isPrimitive:D,isFunction:P,isError:x,isDate:E,isObject:z,isRegExp:S,isUndefined:w,isSymbol:j,isString:O,isNumber:v,isNullOrUndefined:m,isNull:h,isBoolean:d,isArray:b,inspect:s,deprecate:i,format:o,debuglog:l,promisify:B,callbackify:U};export{_ as _extend,U as callbackify,l as debuglog,$ as default,i as deprecate,o as format,t as inherits,s as inspect,b as isArray,d as isBoolean,T as isBuffer,E as isDate,x as isError,P as isFunction,h as isNull,m as isNullOrUndefined,v as isNumber,z as isObject,D as isPrimitive,S as isRegExp,O as isString,j as isSymbol,w as isUndefined,A as log,B as promisify};
|
@@ -209,6 +209,7 @@ export declare const enum ApiName {
|
|
209
209
|
Notifications_ShowNotification = "notifications.showNotification",
|
210
210
|
OtherAppStateChange_Install = "otherApp.install",
|
211
211
|
OtherAppStateChange_UnregisterInstall = "otherApp.unregisterInstall",
|
212
|
+
OtherAppStateChange_NotifyInstallCompleted = "otherApp.notifyInstallCompleted",
|
212
213
|
Pages_AppButton_OnClick = "pages.appButton.onClick",
|
213
214
|
Pages_AppButton_OnHoverEnter = "pages.appButton.onHoverEnter",
|
214
215
|
Pages_AppButton_OnHoverLeave = "pages.appButton.onHoverLeave",
|
@@ -298,6 +299,7 @@ export declare const enum ApiName {
|
|
298
299
|
Sharing_ShareWebContent = "sharing.shareWebContent",
|
299
300
|
StageView_Open = "stageView.open",
|
300
301
|
StageView_Self_Close = "stageView.self.close",
|
302
|
+
Store_Open = "store.open",
|
301
303
|
Tasks_StartTask = "tasks.startTask",
|
302
304
|
Tasks_SubmitTask = "tasks.submitTask",
|
303
305
|
Tasks_UpdateTask = "tasks.updateTask",
|
@@ -9,6 +9,7 @@
|
|
9
9
|
* *while* the developer's application is running. For example, if the developer wants to be notified
|
10
10
|
* when another application has been installed.
|
11
11
|
*/
|
12
|
+
import { AppId } from '../public/appId';
|
12
13
|
/**
|
13
14
|
* @hidden
|
14
15
|
* @beta
|
@@ -69,6 +70,19 @@ export declare function registerAppInstallationHandler(appInstallHandler: OtherA
|
|
69
70
|
* does not support the otherAppStateChange capability.
|
70
71
|
*/
|
71
72
|
export declare function unregisterAppInstallationHandler(): void;
|
73
|
+
/**
|
74
|
+
* @hidden
|
75
|
+
* @beta
|
76
|
+
* @internal
|
77
|
+
* Limited to Microsoft-internal use
|
78
|
+
*
|
79
|
+
* This function should be called by the Store App to notify the host that the
|
80
|
+
* app with the given appId has been installed.
|
81
|
+
*
|
82
|
+
* @throws Error if {@link app.initialize} has not successfully completed or if the platform
|
83
|
+
* does not support the otherAppStateChange capability.
|
84
|
+
*/
|
85
|
+
export declare function notifyInstallCompleted(appId: AppId): Promise<void>;
|
72
86
|
/**
|
73
87
|
* Checks if the otherAppStateChange capability is supported by the host
|
74
88
|
* @returns boolean to represent whether the otherAppStateChange capability is supported
|
@@ -0,0 +1,123 @@
|
|
1
|
+
import { AppId } from '../public/appId';
|
2
|
+
/**
|
3
|
+
* @beta
|
4
|
+
* @hidden
|
5
|
+
* Enum of store dialog type
|
6
|
+
* @internal
|
7
|
+
* Limited to Microsoft-internal use
|
8
|
+
*/
|
9
|
+
export declare enum StoreDialogType {
|
10
|
+
/**
|
11
|
+
* open a store without navigation
|
12
|
+
*/
|
13
|
+
FullStore = "fullstore",
|
14
|
+
/**
|
15
|
+
* open a store with navigation to a specific collection
|
16
|
+
*/
|
17
|
+
SpecificStore = "specificstore",
|
18
|
+
/**
|
19
|
+
* open in-context-store
|
20
|
+
*/
|
21
|
+
InContextStore = "ics",
|
22
|
+
/**
|
23
|
+
* open detail dialog (DD)
|
24
|
+
*/
|
25
|
+
AppDetail = "appdetail"
|
26
|
+
}
|
27
|
+
/**
|
28
|
+
* @beta
|
29
|
+
* @hidden
|
30
|
+
* Interface of open full store, copilot store and in-context-store function parameter
|
31
|
+
* @internal
|
32
|
+
* Limited to Microsoft-internal use
|
33
|
+
*/
|
34
|
+
export interface OpenFullStoreAndICSParams {
|
35
|
+
/**
|
36
|
+
* the store dialog type, defined by {@link StoreDialogType}
|
37
|
+
*/
|
38
|
+
dialogType: StoreDialogType.FullStore | StoreDialogType.InContextStore;
|
39
|
+
}
|
40
|
+
/**
|
41
|
+
* @beta
|
42
|
+
* @hidden
|
43
|
+
* Interface of open app detail dialog function parameter, make sure app id is appended
|
44
|
+
* @internal
|
45
|
+
* Limited to Microsoft-internal use
|
46
|
+
*/
|
47
|
+
export interface OpenAppDetailParams {
|
48
|
+
/**
|
49
|
+
* need to be app detail type, defined by {@link StoreDialogType}
|
50
|
+
*/
|
51
|
+
dialogType: StoreDialogType.AppDetail;
|
52
|
+
/**
|
53
|
+
* app id of the dialog to open
|
54
|
+
*/
|
55
|
+
appId: AppId;
|
56
|
+
}
|
57
|
+
/**
|
58
|
+
* @beta
|
59
|
+
* @hidden
|
60
|
+
* Interface of open store specific to a collection function parameter, make sure collection id is appended
|
61
|
+
* @internal
|
62
|
+
* Limited to Microsoft-internal use
|
63
|
+
*/
|
64
|
+
export interface OpenSpecificStoreParams {
|
65
|
+
/**
|
66
|
+
* need to be specific store type, defined by {@link StoreDialogType}
|
67
|
+
*/
|
68
|
+
dialogType: StoreDialogType.SpecificStore;
|
69
|
+
/**
|
70
|
+
* collection id of the plugin store to open
|
71
|
+
*/
|
72
|
+
collectionId: string;
|
73
|
+
}
|
74
|
+
/**
|
75
|
+
* @beta
|
76
|
+
* @hidden
|
77
|
+
* Interface of open store function parameters, including OpenFullStoreAndICSParams, OpenAppDetailParams, OpenSpecificStoreParams
|
78
|
+
* @internal
|
79
|
+
* Limited to Microsoft-internal use
|
80
|
+
*/
|
81
|
+
export type OpenStoreParams = OpenFullStoreAndICSParams | OpenAppDetailParams | OpenSpecificStoreParams;
|
82
|
+
/**
|
83
|
+
* @beta
|
84
|
+
* @hidden
|
85
|
+
* error message when getting invalid store dialog type
|
86
|
+
* @internal
|
87
|
+
* Limited to Microsoft-internal use
|
88
|
+
*/
|
89
|
+
export declare const errorInvalidDialogType = "Invalid store dialog type, but type needed to specify store to open";
|
90
|
+
/**
|
91
|
+
* @beta
|
92
|
+
* @hidden
|
93
|
+
* error message when getting wrong app id or missing app id
|
94
|
+
* @internal
|
95
|
+
* Limited to Microsoft-internal use
|
96
|
+
*/
|
97
|
+
export declare const errorMissingAppId = "No App Id present, but AppId needed to open AppDetail store";
|
98
|
+
/**
|
99
|
+
* @beta
|
100
|
+
* @hidden
|
101
|
+
* error message when getting wrong collection id or missing collection id
|
102
|
+
* @internal
|
103
|
+
* Limited to Microsoft-internal use
|
104
|
+
*/
|
105
|
+
export declare const errorMissingCollectionId = "No Collection Id present, but CollectionId needed to open a store specific to a collection";
|
106
|
+
/**
|
107
|
+
* @beta
|
108
|
+
* @hidden
|
109
|
+
* Api to open a store
|
110
|
+
*
|
111
|
+
* @param openStoreParams - params to call openStoreExperience
|
112
|
+
*
|
113
|
+
* @internal
|
114
|
+
* Limited to Microsoft-internal use
|
115
|
+
*/
|
116
|
+
export declare function openStoreExperience(openStoreParams: OpenStoreParams): Promise<void>;
|
117
|
+
/**
|
118
|
+
* Checks if the store capability is supported by the host
|
119
|
+
* @returns boolean to represent whether the store capability is supported
|
120
|
+
*
|
121
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
122
|
+
*/
|
123
|
+
export declare function isSupported(): boolean;
|
@@ -9,8 +9,6 @@ import * as bot from './bot';
|
|
9
9
|
*
|
10
10
|
* @param adaptiveCardDialogInfo - An object containing the parameters of the dialog module {@link AdaptiveCardDialogInfo}.
|
11
11
|
* @param submitHandler - Handler that triggers when a dialog fires an [Action.Submit](https://adaptivecards.io/explorer/Action.Submit.html) or when the user closes the dialog.
|
12
|
-
*
|
13
|
-
* @beta
|
14
12
|
*/
|
15
13
|
export declare function open(adaptiveCardDialogInfo: AdaptiveCardDialogInfo, submitHandler?: DialogSubmitHandler): void;
|
16
14
|
/**
|
@@ -19,8 +17,6 @@ export declare function open(adaptiveCardDialogInfo: AdaptiveCardDialogInfo, sub
|
|
19
17
|
* @returns boolean to represent whether dialog.adaptiveCard module is supported
|
20
18
|
*
|
21
19
|
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
22
|
-
*
|
23
|
-
* @beta
|
24
20
|
*/
|
25
21
|
export declare function isSupported(): boolean;
|
26
22
|
export { bot };
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* Module for interaction with adaptive card dialogs that need to communicate with the bot framework
|
3
3
|
*
|
4
|
-
* @beta
|
5
4
|
* @module
|
6
5
|
*/
|
7
6
|
import { BotAdaptiveCardDialogInfo } from '../../interfaces';
|
@@ -11,8 +10,6 @@ import { DialogSubmitHandler } from '../dialog';
|
|
11
10
|
*
|
12
11
|
* @param botAdaptiveCardDialogInfo - An object containing the parameters of the dialog module including completionBotId.
|
13
12
|
* @param submitHandler - Handler that triggers when the dialog has been submitted or closed.
|
14
|
-
*
|
15
|
-
* @beta
|
16
13
|
*/
|
17
14
|
export declare function open(botAdaptiveCardDialogInfo: BotAdaptiveCardDialogInfo, submitHandler?: DialogSubmitHandler): void;
|
18
15
|
/**
|
@@ -21,7 +18,5 @@ export declare function open(botAdaptiveCardDialogInfo: BotAdaptiveCardDialogInf
|
|
21
18
|
* @returns boolean to represent whether dialog.adaptiveCard.bot is supported
|
22
19
|
*
|
23
20
|
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
24
|
-
*
|
25
|
-
* @beta
|
26
21
|
*/
|
27
22
|
export declare function isSupported(): boolean;
|
@@ -3,8 +3,6 @@ import * as update from './update';
|
|
3
3
|
import * as url from './url/url';
|
4
4
|
/**
|
5
5
|
* Data Structure to represent the SDK response when dialog closes
|
6
|
-
*
|
7
|
-
* @beta
|
8
6
|
*/
|
9
7
|
export interface ISdkResponse {
|
10
8
|
/**
|
@@ -21,7 +19,6 @@ export interface ISdkResponse {
|
|
21
19
|
}
|
22
20
|
/**
|
23
21
|
* Handler used to receive and process messages sent between a dialog and the app that launched it
|
24
|
-
* @beta
|
25
22
|
*/
|
26
23
|
export type PostMessageChannel = (message: any) => void;
|
27
24
|
/**
|
@@ -29,8 +26,6 @@ export type PostMessageChannel = (message: any) => void;
|
|
29
26
|
* or an error if the dialog was closed by the user.
|
30
27
|
*
|
31
28
|
* @see {@linkcode ISdkResponse}
|
32
|
-
*
|
33
|
-
* @beta
|
34
29
|
*/
|
35
30
|
export type DialogSubmitHandler = (result: ISdkResponse) => void;
|
36
31
|
/**
|
@@ -41,8 +36,6 @@ export type DialogSubmitHandler = (result: ISdkResponse) => void;
|
|
41
36
|
* Function is called during app initialization
|
42
37
|
* @internal
|
43
38
|
* Limited to Microsoft-internal use
|
44
|
-
*
|
45
|
-
* @beta
|
46
39
|
*/
|
47
40
|
export declare function initialize(): void;
|
48
41
|
/**
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* Module to update the dialog
|
3
3
|
*
|
4
|
-
* @beta
|
5
4
|
* @module
|
6
5
|
*/
|
7
6
|
import { DialogSize } from '../interfaces';
|
@@ -9,8 +8,6 @@ import { DialogSize } from '../interfaces';
|
|
9
8
|
* Update dimensions - height/width of a dialog.
|
10
9
|
*
|
11
10
|
* @param dimensions - An object containing width and height properties.
|
12
|
-
*
|
13
|
-
* @beta
|
14
11
|
*/
|
15
12
|
export declare function resize(dimensions: DialogSize): void;
|
16
13
|
/**
|
@@ -18,7 +15,5 @@ export declare function resize(dimensions: DialogSize): void;
|
|
18
15
|
* @returns boolean to represent whether dialog.update capabilty is supported
|
19
16
|
*
|
20
17
|
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
21
|
-
*
|
22
|
-
* @beta
|
23
18
|
*/
|
24
19
|
export declare function isSupported(): boolean;
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* Module to open a dialog that sends results to the bot framework
|
3
3
|
*
|
4
|
-
* @beta
|
5
4
|
* @module
|
6
5
|
*/
|
7
6
|
import { BotUrlDialogInfo } from '../../interfaces';
|
@@ -14,8 +13,6 @@ import { DialogSubmitHandler, PostMessageChannel } from '../dialog';
|
|
14
13
|
* @param messageFromChildHandler - Handler that triggers if dialog sends a message to the app.
|
15
14
|
*
|
16
15
|
* @returns a function that can be used to send messages to the dialog.
|
17
|
-
*
|
18
|
-
* @beta
|
19
16
|
*/
|
20
17
|
export declare function open(botUrlDialogInfo: BotUrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): void;
|
21
18
|
/**
|
@@ -24,7 +21,5 @@ export declare function open(botUrlDialogInfo: BotUrlDialogInfo, submitHandler?:
|
|
24
21
|
* @returns boolean to represent whether dialog.url.bot is supported
|
25
22
|
*
|
26
23
|
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
27
|
-
*
|
28
|
-
* @beta
|
29
24
|
*/
|
30
25
|
export declare function isSupported(): boolean;
|
@@ -4,7 +4,6 @@
|
|
4
4
|
* @remarks
|
5
5
|
* Note that dialog can be invoked from parentless scenarios e.g. Search Message Extensions. The subcapability `parentCommunication` is not supported in such scenarios.
|
6
6
|
*
|
7
|
-
* @beta
|
8
7
|
* @module
|
9
8
|
*/
|
10
9
|
import { PostMessageChannel } from '../dialog';
|
@@ -15,16 +14,12 @@ import { PostMessageChannel } from '../dialog';
|
|
15
14
|
* This function is only intended to be called from code running within the dialog. Calling it from outside the dialog will have no effect.
|
16
15
|
*
|
17
16
|
* @param message - The message to send to the parent
|
18
|
-
*
|
19
|
-
* @beta
|
20
17
|
*/
|
21
18
|
export declare function sendMessageToParentFromDialog(message: any): void;
|
22
19
|
/**
|
23
20
|
* Send message to the dialog from the parent
|
24
21
|
*
|
25
22
|
* @param message - The message to send
|
26
|
-
*
|
27
|
-
* @beta
|
28
23
|
*/
|
29
24
|
export declare function sendMessageToDialog(message: any): void;
|
30
25
|
/**
|
@@ -34,8 +29,6 @@ export declare function sendMessageToDialog(message: any): void;
|
|
34
29
|
* This function is only intended to be called from code running within the dialog. Calling it from outside the dialog will have no effect.
|
35
30
|
*
|
36
31
|
* @param listener - The listener that will be triggered.
|
37
|
-
*
|
38
|
-
* @beta
|
39
32
|
*/
|
40
33
|
export declare function registerOnMessageFromParent(listener: PostMessageChannel): void;
|
41
34
|
/**
|
@@ -44,7 +37,5 @@ export declare function registerOnMessageFromParent(listener: PostMessageChannel
|
|
44
37
|
* @returns boolean to represent whether dialog.url.parentCommunication capability is supported
|
45
38
|
*
|
46
39
|
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
47
|
-
*
|
48
|
-
* @beta
|
49
40
|
*/
|
50
41
|
export declare function isSupported(): boolean;
|
@@ -11,8 +11,6 @@ import * as parentCommunication from './parentCommunication';
|
|
11
11
|
* @param urlDialogInfo - An object containing the parameters of the dialog module.
|
12
12
|
* @param submitHandler - Handler that triggers when a dialog calls the {@linkcode submit} function or when the user closes the dialog.
|
13
13
|
* @param messageFromChildHandler - Handler that triggers if dialog sends a message to the app.
|
14
|
-
*
|
15
|
-
* @beta
|
16
14
|
*/
|
17
15
|
export declare function open(urlDialogInfo: UrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): void;
|
18
16
|
/**
|
@@ -25,8 +23,6 @@ export declare function open(urlDialogInfo: UrlDialogInfo, submitHandler?: Dialo
|
|
25
23
|
* If this function is called from a dialog while {@link M365ContentAction} is set in the context object by the host, result will be ignored
|
26
24
|
*
|
27
25
|
* @param appIds - Valid application(s) that can receive the result of the submitted dialogs. Specifying this parameter helps prevent malicious apps from retrieving the dialog result. Multiple app IDs can be specified because a web app from a single underlying domain can power multiple apps across different environments and branding schemes.
|
28
|
-
*
|
29
|
-
* @beta
|
30
26
|
*/
|
31
27
|
export declare function submit(result?: string | object, appIds?: string | string[]): void;
|
32
28
|
/**
|
@@ -35,8 +31,6 @@ export declare function submit(result?: string | object, appIds?: string | strin
|
|
35
31
|
* @returns boolean to represent whether dialog.url module is supported
|
36
32
|
*
|
37
33
|
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
38
|
-
*
|
39
|
-
* @beta
|
40
34
|
*/
|
41
35
|
export declare function isSupported(): boolean;
|
42
36
|
/**
|
@@ -1,6 +1,6 @@
|
|
1
1
|
export * as authentication from './authentication';
|
2
2
|
export { ChannelType, DialogDimension, FrameContexts, HostClientType, HostName, TaskModuleDimension, TeamType, UserTeamRole, } from './constants';
|
3
|
-
export { ActionInfo, ActionObjectType, AdaptiveCardVersion, AdaptiveCardDialogInfo, BaseActionObject, BotAdaptiveCardDialogInfo, BotUrlDialogInfo, Context, DeepLinkParameters, DialogInfo, DialogSize, ErrorCode, FileOpenPreference, FrameContext, FrameInfo, HostToAppPerformanceMetrics, LoadContext, LocaleInfo, M365ContentAction, ResumeContext, SdkError, SecondaryId, SecondaryM365ContentIdName, ShareDeepLinkParameters, TabInformation, TabInstance, TabInstanceParameters, TaskInfo, TeamInformation, UrlDialogInfo, } from './interfaces';
|
3
|
+
export { ActionInfo, ActionObjectType, AdaptiveCardVersion, AdaptiveCardDialogInfo, BaseActionObject, BotAdaptiveCardDialogInfo, BotUrlDialogInfo, Context, DeepLinkParameters, DialogInfo, DialogSize, EduType, ErrorCode, FileOpenPreference, FrameContext, FrameInfo, HostToAppPerformanceMetrics, LoadContext, LocaleInfo, M365ContentAction, ResumeContext, SdkError, SecondaryId, SecondaryM365ContentIdName, ShareDeepLinkParameters, TabInformation, TabInstance, TabInstanceParameters, TaskInfo, TeamInformation, UrlDialogInfo, } from './interfaces';
|
4
4
|
export * as app from './app/app';
|
5
5
|
export { AppId } from './appId';
|
6
6
|
export { EmailAddress } from './emailAddress';
|
@@ -1 +1 @@
|
|
1
|
-
export{NotificationTypes,UserSettingTypes,ViewerActionTypes}from"./private/interfaces.js";export{openFilePreview,registerCustomHandler,registerUserSettingsChangeHandler,sendCustomEvent,sendCustomMessage,uploadCustomApp}from"./private/privateAPIs.js";import*as r from"./private/logs.js";export{r as logs};import*as e from"./private/conversations.js";export{e as conversations};import*as o from"./private/copilot/copilot.js";export{o as copilot};import*as t from"./private/externalAppAuthentication.js";export{t as externalAppAuthentication};import*as p from"./private/externalAppAuthenticationForCEA.js";export{p as externalAppAuthenticationForCEA};import*as i from"./private/externalAppCardActions.js";export{i as externalAppCardActions};import*as s from"./private/externalAppCardActionsForCEA.js";export{s as externalAppCardActionsForCEA};import*as a from"./private/externalAppCommands.js";export{a as externalAppCommands};import*as m from"./private/files.js";export{m as files};import*as n from"./private/meetingRoom.js";export{n as meetingRoom};import*as l from"./private/messageChannels/messageChannels.js";export{l as messageChannels};import*as c from"./private/notifications.js";export{c as notifications};import*as f from"./private/otherAppStateChange.js";export{f as otherAppStateChange};import*as x from"./private/remoteCamera.js";export{x as remoteCamera};import*as u from"./private/appEntity.js";export{u as appEntity};import*as j from"./private/teams/teams.js";export{j as teams};import*as b from"./private/videoEffectsEx.js";export{b as videoEffectsEx};import*as d from"./private/hostEntity/hostEntity.js";export{d as hostEntity};export{ChannelType,DialogDimension,FrameContexts,HostClientType,HostName,DialogDimension as TaskModuleDimension,TeamType,UserTeamRole}from"./public/constants.js";export{ActionObjectType,ErrorCode,FileOpenPreference,SecondaryM365ContentIdName}from"./public/interfaces.js";export{AppId}from"./public/appId.js";export{EmailAddress}from"./public/emailAddress.js";export{getAdaptiveCardSchemaVersion}from"./public/adaptiveCards.js";export{ChildAppWindow,ParentAppWindow}from"./public/appWindow.js";export{version}from"./public/version.js";export{enablePrintCapability,executeDeepLink,getContext,getMruTabInstances,getTabInstances,initialize,initializeWithFrameContext,print,registerAppButtonClickHandler,registerAppButtonHoverEnterHandler,registerAppButtonHoverLeaveHandler,registerBackButtonHandler,registerBeforeUnloadHandler,registerChangeSettingsHandler,registerFocusEnterHandler,registerFullScreenHandler,registerOnLoadHandler,registerOnThemeChangeHandler,setFrameContext,shareDeepLink}from"./public/publicAPIs.js";export{navigateBack,navigateCrossDomain,navigateToTab,returnFocus}from"./public/navigation.js";import*as
|
1
|
+
export{NotificationTypes,UserSettingTypes,ViewerActionTypes}from"./private/interfaces.js";export{openFilePreview,registerCustomHandler,registerUserSettingsChangeHandler,sendCustomEvent,sendCustomMessage,uploadCustomApp}from"./private/privateAPIs.js";import*as r from"./private/logs.js";export{r as logs};import*as e from"./private/conversations.js";export{e as conversations};import*as o from"./private/copilot/copilot.js";export{o as copilot};import*as t from"./private/externalAppAuthentication.js";export{t as externalAppAuthentication};import*as p from"./private/externalAppAuthenticationForCEA.js";export{p as externalAppAuthenticationForCEA};import*as i from"./private/externalAppCardActions.js";export{i as externalAppCardActions};import*as s from"./private/externalAppCardActionsForCEA.js";export{s as externalAppCardActionsForCEA};import*as a from"./private/externalAppCommands.js";export{a as externalAppCommands};import*as m from"./private/files.js";export{m as files};import*as n from"./private/meetingRoom.js";export{n as meetingRoom};import*as l from"./private/messageChannels/messageChannels.js";export{l as messageChannels};import*as c from"./private/notifications.js";export{c as notifications};import*as f from"./private/otherAppStateChange.js";export{f as otherAppStateChange};import*as x from"./private/remoteCamera.js";export{x as remoteCamera};import*as u from"./private/appEntity.js";export{u as appEntity};import*as j from"./private/teams/teams.js";export{j as teams};import*as b from"./private/videoEffectsEx.js";export{b as videoEffectsEx};import*as d from"./private/hostEntity/hostEntity.js";export{d as hostEntity};import*as g from"./private/store.js";export{g as store};export{ChannelType,DialogDimension,FrameContexts,HostClientType,HostName,DialogDimension as TaskModuleDimension,TeamType,UserTeamRole}from"./public/constants.js";export{ActionObjectType,EduType,ErrorCode,FileOpenPreference,SecondaryM365ContentIdName}from"./public/interfaces.js";export{AppId}from"./public/appId.js";export{EmailAddress}from"./public/emailAddress.js";export{getAdaptiveCardSchemaVersion}from"./public/adaptiveCards.js";export{ChildAppWindow,ParentAppWindow}from"./public/appWindow.js";export{version}from"./public/version.js";export{enablePrintCapability,executeDeepLink,getContext,getMruTabInstances,getTabInstances,initialize,initializeWithFrameContext,print,registerAppButtonClickHandler,registerAppButtonHoverEnterHandler,registerAppButtonHoverLeaveHandler,registerBackButtonHandler,registerBeforeUnloadHandler,registerChangeSettingsHandler,registerFocusEnterHandler,registerFullScreenHandler,registerOnLoadHandler,registerOnThemeChangeHandler,setFrameContext,shareDeepLink}from"./public/publicAPIs.js";export{navigateBack,navigateCrossDomain,navigateToTab,returnFocus}from"./public/navigation.js";import*as v from"./public/liveShareHost.js";export{v as liveShare};export{LiveShareHost}from"./public/liveShareHost.js";import*as C from"./public/authentication.js";export{C as authentication};import*as A from"./public/app/app.js";export{A as app};import*as h from"./public/appInstallDialog.js";export{h as appInstallDialog};import*as H from"./public/barCode.js";export{H as barCode};import*as T from"./public/chat.js";export{T as chat};import*as y from"./public/clipboard.js";export{y as clipboard};import*as E from"./public/dialog/dialog.js";export{E as dialog};import*as S from"./public/nestedAppAuth.js";export{S as nestedAppAuth};import*as F from"./public/geoLocation/geoLocation.js";export{F as geoLocation};import*as I from"./public/pages/pages.js";export{I as pages};import*as w from"./public/menus.js";export{w as menus};import*as D from"./public/media.js";export{D as media};import*as k from"./public/secondaryBrowser.js";export{k as secondaryBrowser};import*as B from"./public/location.js";export{B as location};import*as P from"./public/meeting/meeting.js";export{P as meeting};import*as L from"./public/monetization.js";export{L as monetization};import*as M from"./public/calendar.js";export{M as calendar};import*as z from"./public/mail.js";export{z as mail};import*as O from"./public/teamsAPIs.js";export{O as teamsCore};import*as U from"./public/people.js";export{U as people};import*as V from"./public/profile.js";export{V as profile};import*as W from"./public/videoEffects.js";export{W as videoEffects};import*as N from"./public/search.js";export{N as search};import*as R from"./public/sharing/sharing.js";export{R as sharing};import*as q from"./public/stageView/stageView.js";export{q as stageView};import*as G from"./public/visualMedia/visualMedia.js";export{G as visualMedia};import*as J from"./public/webStorage.js";export{J as webStorage};import*as K from"./public/call.js";export{K as call};import*as Q from"./public/appInitialization.js";export{Q as appInitialization};import*as X from"./public/thirdPartyCloudStorage.js";export{X as thirdPartyCloudStorage};import*as Y from"./public/settings.js";export{Y as settings};import*as Z from"./public/tasks.js";export{Z as tasks};import*as $ from"./public/marketplace.js";export{$ as marketplace};
|
@@ -1 +1 @@
|
|
1
|
-
import{sendMessageToParent as r}from"../internal/communication.js";import{registerHandler as
|
1
|
+
import{sendMessageToParent as t,callFunctionInHost as r}from"../internal/communication.js";import{registerHandler as n,removeHandler as o}from"../internal/handlers.js";import{ensureInitialized as i}from"../internal/internalAPIs.js";import{getApiVersionTag as e}from"../internal/telemetry.js";import{isNullOrUndefined as p}from"../internal/typeCheckUtilities.js";import{ErrorCode as l}from"../public/interfaces.js";import{runtime as s}from"../public/runtime.js";const m="v2";function a(t){if(!A())throw new Error(l.NOT_SUPPORTED_ON_PLATFORM.toString());if(p(t))throw new Error(l.INVALID_ARGUMENTS.toString());n(e(m,"otherApp.install"),"otherApp.install",t)}function f(){if(!A())throw new Error(l.NOT_SUPPORTED_ON_PLATFORM.toString());t(e(m,"otherApp.unregisterInstall"),"otherApp.unregisterInstall"),o("otherApp.install")}function h(t){if(!A())throw new Error(l.NOT_SUPPORTED_ON_PLATFORM.toString());return r("otherApp.notifyInstallCompleted",[t.toString()],e(m,"otherApp.notifyInstallCompleted"))}function A(){return!(!i(s)||!s.supports.otherAppStateChange)}export{A as isSupported,h as notifyInstallCompleted,a as registerAppInstallationHandler,f as unregisterAppInstallationHandler};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{__awaiter as e}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.24.4_tslib@2.6.3_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{callFunctionInHost as o}from"../internal/communication.js";import{ensureInitialized as t}from"../internal/internalAPIs.js";import{getApiVersionTag as i}from"../internal/telemetry.js";import{AppId as r}from"../public/appId.js";import{FrameContexts as p,errorNotSupportedOnPlatform as n}from"../public/constants.js";import{runtime as l}from"../public/runtime.js";var s;!function(e){e.FullStore="fullstore",e.SpecificStore="specificstore",e.InContextStore="ics",e.AppDetail="appdetail"}(s||(s={}));const c="Invalid store dialog type, but type needed to specify store to open",d="No App Id present, but AppId needed to open AppDetail store",a="No Collection Id present, but CollectionId needed to open a store specific to a collection";function u(u){return e(this,void 0,void 0,(function*(){if(t(l,p.content,p.sidePanel,p.meetingStage),!f())throw n;if(void 0===u||!Object.values(s).includes(u.dialogType))throw new Error(c);if(u.dialogType===s.AppDetail&&!(u.appId instanceof r))throw new Error(d);if(u.dialogType===s.SpecificStore&&!u.collectionId)throw new Error(a);return o("store.open",[u.dialogType,u.appId,u.collectionId],i("v2","store.open"))}))}function f(){return t(l)&&!!l.supports.store}export{s as StoreDialogType,c as errorInvalidDialogType,d as errorMissingAppId,a as errorMissingCollectionId,f as isSupported,u as openStoreExperience};
|
@@ -1 +1 @@
|
|
1
|
-
import{ensureInitialized as n}from"../internal/internalAPIs.js";import{runtime as
|
1
|
+
import{GlobalVars as t}from"../internal/globalVars.js";import{ensureInitialized as n}from"../internal/internalAPIs.js";import{HostClientType as o}from"./constants.js";import{runtime as e}from"./runtime.js";function r(){var r;return null!==(r=n(e)&&(e.isNAAChannelRecommended||!(!n(e)||t.hostClientType!==o.android&&t.hostClientType!==o.ios&&t.hostClientType!==o.ipados||!e.isLegacyTeams||!e.supports.nestedAppAuth)))&&void 0!==r&&r}export{r as isNAAChannelRecommended};
|
@@ -1 +1 @@
|
|
1
|
-
import{__rest as o}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.24.4_tslib@2.6.3_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{errorRuntimeNotInitialized as e,errorRuntimeNotSupported as s}from"../internal/constants.js";import{GlobalVars as i}from"../internal/globalVars.js";import{getLogger as t}from"../internal/telemetry.js";import{compareSDKVersions as n,deepFreeze as
|
1
|
+
import{__rest as o}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.24.4_tslib@2.6.3_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{errorRuntimeNotInitialized as e,errorRuntimeNotSupported as s}from"../internal/constants.js";import{GlobalVars as i}from"../internal/globalVars.js";import{getLogger as t}from"../internal/telemetry.js";import{compareSDKVersions as n,deepFreeze as a}from"../internal/utils.js";import{HostClientType as r,teamsMinAdaptiveCardVersion as p}from"./constants.js";const l=t("runtime"),d=4;function u(o){return o.apiVersion===d}function c(o){if(u(o))return!0;throw-1===o.apiVersion?new Error(e):new Error(s)}let g={apiVersion:-1,supports:{}};const m={apiVersion:4,isNAAChannelRecommended:!1,hostVersionsInfo:p,isLegacyTeams:!0,supports:{appInstallDialog:{},appEntity:{},call:{},chat:{},conversations:{},dialog:{card:{bot:{}},url:{bot:{},parentCommunication:{}},update:{}},interactive:{},logs:{},meetingRoom:{},menus:{},monetization:{},notifications:{},pages:{config:{},backStack:{},fullTrust:{}},remoteCamera:{},teams:{fullTrust:{}},teamsCore:{},video:{sharedFrame:{}}}},b=[r.desktop,r.web,r.rigel,r.surfaceHub,r.teamsRoomsWindows,r.teamsRoomsAndroid,r.teamsPhones,r.teamsDisplays],y=[r.android,r.ios,r.ipados],f=[...b,...y];function h(o){let e=o;if(e.apiVersion<d&&T.forEach((o=>{e.apiVersion===o.versionToUpgradeFrom&&(e=o.upgradeToNextVersion(e))})),u(e))return e;throw new Error("Received a runtime that could not be upgraded to the latest version")}const T=[{versionToUpgradeFrom:1,upgradeToNextVersion:o=>{var e;return{apiVersion:2,hostVersionsInfo:void 0,isLegacyTeams:o.isLegacyTeams,supports:Object.assign(Object.assign({},o.supports),{dialog:o.supports.dialog?{card:void 0,url:o.supports.dialog,update:null===(e=o.supports.dialog)||void 0===e?void 0:e.update}:void 0})}}},{versionToUpgradeFrom:2,upgradeToNextVersion:e=>{const s=e.supports,i=o(s,["appNotification"]);return Object.assign(Object.assign({},e),{apiVersion:3,supports:i})}},{versionToUpgradeFrom:3,upgradeToNextVersion:o=>{var e,s,i,t,n;return{apiVersion:4,hostVersionsInfo:o.hostVersionsInfo,isNAAChannelRecommended:o.isNAAChannelRecommended,isLegacyTeams:o.isLegacyTeams,supports:Object.assign(Object.assign({},o.supports),{dialog:o.supports.dialog?{card:null===(e=o.supports.dialog)||void 0===e?void 0:e.card,url:{bot:null===(i=null===(s=o.supports.dialog)||void 0===s?void 0:s.url)||void 0===i?void 0:i.bot,parentCommunication:(null===(t=o.supports.dialog)||void 0===t?void 0:t.url)?{}:void 0},update:null===(n=o.supports.dialog)||void 0===n?void 0:n.update}:void 0})}}}],v={"1.0.0":[{capability:{pages:{appButton:{},tabs:{}},stageView:{}},hostClientTypes:b}],"1.9.0":[{capability:{location:{}},hostClientTypes:f}],"2.0.0":[{capability:{people:{}},hostClientTypes:f},{capability:{sharing:{}},hostClientTypes:[r.desktop,r.web]}],"2.0.1":[{capability:{teams:{fullTrust:{joinedTeams:{}}}},hostClientTypes:[r.android,r.desktop,r.ios,r.teamsRoomsAndroid,r.teamsPhones,r.teamsDisplays,r.web]},{capability:{webStorage:{}},hostClientTypes:[r.desktop]}],"2.0.5":[{capability:{webStorage:{}},hostClientTypes:[r.android,r.ios]}],"2.0.8":[{capability:{sharing:{}},hostClientTypes:[r.android,r.ios]}],"2.1.1":[{capability:{nestedAppAuth:{}},hostClientTypes:[r.android,r.ios,r.ipados]}]},V=l.extend("generateBackCompatRuntimeConfig");function C(o,e){const s=Object.assign({},o);for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&("object"!=typeof e[i]||Array.isArray(e[i])?i in o||(s[i]=e[i]):s[i]=C(o[i]||{},e[i]));return s}function j(o,e,s){V("generating back compat runtime config for %s",o);let t=Object.assign({},e.supports);V("Supported capabilities in config before updating based on highestSupportedVersion: %o",t),Object.keys(s).forEach((e=>{n(o,e)>=0&&s[e].forEach((o=>{void 0!==i.hostClientType&&o.hostClientTypes.includes(i.hostClientType)&&(t=C(t,o.capability))}))}));const a={apiVersion:d,hostVersionsInfo:p,isLegacyTeams:!0,supports:t};return V("Runtime config after updating based on highestSupportedVersion: %o",a),a}const w=l.extend("applyRuntimeConfig");function A(o){"string"==typeof o.apiVersion&&(w("Trying to apply runtime with string apiVersion, processing as v1: %o",o),o=Object.assign(Object.assign({},o),{apiVersion:1})),w("Fast-forwarding runtime %o",o);const e=h(o);w("Applying runtime %o",e),g=a(e)}export{A as applyRuntimeConfig,h as fastForwardRuntime,j as generateVersionBasedTeamsRuntimeConfig,c as isRuntimeInitialized,d as latestRuntimeApiVersion,v as mapTeamsVersionToSupportedCapabilities,g as runtime,T as upgradeChain,f as v1HostClientTypes,y as v1MobileHostClientTypes,m as versionAndPlatformAgnosticTeamsRuntimeConfig};
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const t="2.32.0-beta.0";export{t as version};
|