@microsoft/teams-js 2.0.0-beta.5-dev.4 → 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.
@@ -2818,7 +2818,7 @@ export namespace dialog {
2818
2818
  *
2819
2819
  * @returns a function that can be used to send messages to the dialog.
2820
2820
  */
2821
- function open(urlDialogInfo: UrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): PostMessageChannel;
2821
+ function open(urlDialogInfo: UrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): void;
2822
2822
  /**
2823
2823
  * Submit the dialog module.
2824
2824
  *
@@ -2835,6 +2835,12 @@ export namespace dialog {
2835
2835
  * @param message - The message to send to the parent
2836
2836
  */
2837
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;
2838
2844
  /**
2839
2845
  * Register a listener that will be triggered when a message is received from the app that opened the dialog.
2840
2846
  *
@@ -2880,7 +2886,7 @@ export namespace dialog {
2880
2886
  *
2881
2887
  * @returns a function that can be used to send messages to the dialog.
2882
2888
  */
2883
- function open(botUrlDialogInfo: BotUrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): PostMessageChannel;
2889
+ function open(botUrlDialogInfo: BotUrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): void;
2884
2890
  /**
2885
2891
  * Checks if dialog.bot capability is supported by the host
2886
2892
  *
@@ -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.4";
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
  /**