@microsoft/teams-js 2.0.0-beta.5-dev.2 → 2.0.0-beta.5-dev.5
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.
package/dist/MicrosoftTeams.d.ts
CHANGED
@@ -791,6 +791,10 @@ export namespace legacy {
|
|
791
791
|
*/
|
792
792
|
function isSupported(): boolean;
|
793
793
|
}
|
794
|
+
/**
|
795
|
+
* Checks if teams capability is supported currently
|
796
|
+
*/
|
797
|
+
function isSupported(): boolean;
|
794
798
|
}
|
795
799
|
|
796
800
|
/**
|
@@ -2116,6 +2120,10 @@ export interface DialogSize {
|
|
2116
2120
|
export interface UrlDialogInfo {
|
2117
2121
|
/**
|
2118
2122
|
* The url to be rendered in the webview/iframe.
|
2123
|
+
*
|
2124
|
+
* @remarks
|
2125
|
+
* The domain of the url must match at least one of the
|
2126
|
+
* valid domains specified in the validDomains block of the manifest
|
2119
2127
|
*/
|
2120
2128
|
url: string;
|
2121
2129
|
size: DialogSize;
|
@@ -2142,6 +2150,10 @@ export interface BotUrlDialogInfo extends UrlDialogInfo {
|
|
2142
2150
|
export interface DialogInfo {
|
2143
2151
|
/**
|
2144
2152
|
* The url to be rendered in the webview/iframe.
|
2153
|
+
*
|
2154
|
+
* @remarks
|
2155
|
+
* The domain of the url must match at least one of the
|
2156
|
+
* valid domains specified in the validDomains block of the manifest
|
2145
2157
|
*/
|
2146
2158
|
url?: string;
|
2147
2159
|
/**
|
@@ -2806,7 +2818,7 @@ export namespace dialog {
|
|
2806
2818
|
*
|
2807
2819
|
* @returns a function that can be used to send messages to the dialog.
|
2808
2820
|
*/
|
2809
|
-
function open(urlDialogInfo: UrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel):
|
2821
|
+
function open(urlDialogInfo: UrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): void;
|
2810
2822
|
/**
|
2811
2823
|
* Submit the dialog module.
|
2812
2824
|
*
|
@@ -2823,6 +2835,12 @@ export namespace dialog {
|
|
2823
2835
|
* @param message - The message to send to the parent
|
2824
2836
|
*/
|
2825
2837
|
function sendMessageToParentFromDialog(message: any): void;
|
2838
|
+
/**
|
2839
|
+
* Send message to the dialog from the parent
|
2840
|
+
*
|
2841
|
+
* @param message - The message to send
|
2842
|
+
*/
|
2843
|
+
function sendMessageToDialog(message: any): void;
|
2826
2844
|
/**
|
2827
2845
|
* Register a listener that will be triggered when a message is received from the app that opened the dialog.
|
2828
2846
|
*
|
@@ -2868,7 +2886,7 @@ export namespace dialog {
|
|
2868
2886
|
*
|
2869
2887
|
* @returns a function that can be used to send messages to the dialog.
|
2870
2888
|
*/
|
2871
|
-
function open(botUrlDialogInfo: BotUrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel):
|
2889
|
+
function open(botUrlDialogInfo: BotUrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): void;
|
2872
2890
|
/**
|
2873
2891
|
* Checks if dialog.bot capability is supported by the host
|
2874
2892
|
*
|
package/dist/MicrosoftTeams.js
CHANGED
@@ -1121,7 +1121,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
1121
1121
|
});
|
1122
1122
|
|
1123
1123
|
;// CONCATENATED MODULE: ./src/internal/constants.ts
|
1124
|
-
var version = "2.0.0-beta.5-dev.
|
1124
|
+
var version = "2.0.0-beta.5-dev.5";
|
1125
1125
|
/**
|
1126
1126
|
* @hidden
|
1127
1127
|
* The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
|
@@ -4397,11 +4397,6 @@ var dialog;
|
|
4397
4397
|
submitHandler({ err: err, result: result });
|
4398
4398
|
removeHandler('messageForParent');
|
4399
4399
|
});
|
4400
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
4401
|
-
var sendMessageToDialog = function (message) {
|
4402
|
-
sendMessageToParent('messageForChild', [message]);
|
4403
|
-
};
|
4404
|
-
return sendMessageToDialog;
|
4405
4400
|
}
|
4406
4401
|
dialog.open = open;
|
4407
4402
|
/**
|
@@ -4431,6 +4426,18 @@ var dialog;
|
|
4431
4426
|
sendMessageToParent('messageForParent', [message]);
|
4432
4427
|
}
|
4433
4428
|
dialog.sendMessageToParentFromDialog = sendMessageToParentFromDialog;
|
4429
|
+
/**
|
4430
|
+
* Send message to the dialog from the parent
|
4431
|
+
*
|
4432
|
+
* @param message - The message to send
|
4433
|
+
*/
|
4434
|
+
function sendMessageToDialog(
|
4435
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
4436
|
+
message) {
|
4437
|
+
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
4438
|
+
sendMessageToParent('messageForChild', [message]);
|
4439
|
+
}
|
4440
|
+
dialog.sendMessageToDialog = sendMessageToDialog;
|
4434
4441
|
/**
|
4435
4442
|
* Register a listener that will be triggered when a message is received from the app that opened the dialog.
|
4436
4443
|
*
|
@@ -4501,11 +4508,6 @@ var dialog;
|
|
4501
4508
|
submitHandler({ err: err, result: result });
|
4502
4509
|
removeHandler('messageForParent');
|
4503
4510
|
});
|
4504
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
4505
|
-
var sendMessageToDialog = function (message) {
|
4506
|
-
sendMessageToParent('messageForChild', [message]);
|
4507
|
-
};
|
4508
|
-
return sendMessageToDialog;
|
4509
4511
|
}
|
4510
4512
|
bot.open = open;
|
4511
4513
|
/**
|
@@ -7023,6 +7025,13 @@ var legacy;
|
|
7023
7025
|
}
|
7024
7026
|
fullTrust.isSupported = isSupported;
|
7025
7027
|
})(fullTrust = legacy.fullTrust || (legacy.fullTrust = {}));
|
7028
|
+
/**
|
7029
|
+
* Checks if teams capability is supported currently
|
7030
|
+
*/
|
7031
|
+
function isSupported() {
|
7032
|
+
return runtime.supports.teams ? true : false;
|
7033
|
+
}
|
7034
|
+
legacy.isSupported = isSupported;
|
7026
7035
|
})(legacy || (legacy = {}));
|
7027
7036
|
|
7028
7037
|
;// CONCATENATED MODULE: ./src/private/meetingRoom.ts
|