@microsoft/teams-js 2.0.0-beta.4-dev.18 → 2.0.0-beta.4-dev.19

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.
@@ -2859,11 +2859,11 @@ export namespace appInstallDialog {
2859
2859
  * @beta
2860
2860
  */
2861
2861
  export interface SdkResponse {
2862
- err: string;
2863
- result: string | object;
2862
+ err?: string;
2863
+ result?: string | object;
2864
2864
  }
2865
2865
  export namespace dialog {
2866
- type PostMessageChannel = (message: any, onComplete?: (status: boolean, reason?: string) => void) => void;
2866
+ type PostMessageChannel = (message: any) => void;
2867
2867
  type DialogSubmitHandler = (result: SdkResponse) => void;
2868
2868
  /**
2869
2869
  * Allows an app to open the dialog module.
@@ -2886,9 +2886,8 @@ export namespace dialog {
2886
2886
  * Send message to the parent from dialog
2887
2887
  *
2888
2888
  * @param message - The message to send
2889
- * @param onComplete - The callback to know if the message to parent has been success/failed.
2890
2889
  */
2891
- function sendMessageToParentFromDialog(message: any, onComplete?: (status: boolean, reason?: string) => void): void;
2890
+ function sendMessageToParentFromDialog(message: any): void;
2892
2891
  /**
2893
2892
  * Fucntion to call when an event is received from the Parent
2894
2893
  *
@@ -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.4-dev.18";
1124
+ var version = "2.0.0-beta.4-dev.19";
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.
@@ -4330,7 +4330,6 @@ var appInstallDialog;
4330
4330
 
4331
4331
 
4332
4332
 
4333
-
4334
4333
  var dialog;
4335
4334
  (function (dialog) {
4336
4335
  /**
@@ -4351,8 +4350,8 @@ var dialog;
4351
4350
  submitHandler({ err: err, result: result });
4352
4351
  });
4353
4352
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
4354
- var sendMessageToDialog = function (message, onComplete) {
4355
- sendMessageToParent('messageForChild', [message], onComplete ? onComplete : getGenericOnCompleteHandler());
4353
+ var sendMessageToDialog = function (message) {
4354
+ sendMessageToParent('messageForChild', [message]);
4356
4355
  };
4357
4356
  return sendMessageToDialog;
4358
4357
  }
@@ -4373,13 +4372,12 @@ var dialog;
4373
4372
  * Send message to the parent from dialog
4374
4373
  *
4375
4374
  * @param message - The message to send
4376
- * @param onComplete - The callback to know if the message to parent has been success/failed.
4377
4375
  */
4378
4376
  function sendMessageToParentFromDialog(
4379
4377
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
4380
- message, onComplete) {
4378
+ message) {
4381
4379
  ensureInitialized(FrameContexts.task);
4382
- sendMessageToParent('messageForParent', [message], onComplete ? onComplete : getGenericOnCompleteHandler());
4380
+ sendMessageToParent('messageForParent', [message]);
4383
4381
  }
4384
4382
  dialog.sendMessageToParentFromDialog = sendMessageToParentFromDialog;
4385
4383
  /**
@@ -4426,8 +4424,8 @@ var dialog;
4426
4424
  submitHandler({ err: err, result: result });
4427
4425
  });
4428
4426
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
4429
- var sendMessageToDialog = function (message, onComplete) {
4430
- sendMessageToParent('messageForChild', [message], onComplete ? onComplete : getGenericOnCompleteHandler());
4427
+ var sendMessageToDialog = function (message) {
4428
+ sendMessageToParent('messageForChild', [message]);
4431
4429
  };
4432
4430
  return sendMessageToDialog;
4433
4431
  }