@microsoft/teams-js 2.59.0 → 2.60.0-beta.1

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.
@@ -837,6 +837,14 @@ export interface DialogSize {
837
837
  * Data structure to describe dialog information needed to open a url-based dialog.
838
838
  */
839
839
  export interface UrlDialogInfo extends BaseDialogInfo {
840
+ /**
841
+ * When true, requests a dialog without a header.
842
+ *
843
+ * @internal
844
+ * Limited to Microsoft-internal use
845
+ * @protected
846
+ */
847
+ useHeaderlessDialog?: boolean;
840
848
  /**
841
849
  * The url to be rendered in the webview/iframe.
842
850
  *
@@ -865,6 +873,14 @@ export interface BotUrlDialogInfo extends UrlDialogInfo {
865
873
  * Data structure to describe dialog information
866
874
  */
867
875
  export interface DialogInfo {
876
+ /**
877
+ * When true, requests a dialog without a header.
878
+ *
879
+ * @internal
880
+ * Limited to Microsoft-internal use
881
+ * @protected
882
+ */
883
+ useHeaderlessDialog?: boolean;
868
884
  /**
869
885
  * The url to be rendered in the webview/iframe.
870
886
  *
@@ -1 +1 @@
1
- import{urlOpenHelper as t,urlSubmitHelper as o,dialogTelemetryVersionNumber as r}from"../../../internal/dialogHelpers.js";import{ensureInitialized as i}from"../../../internal/internalAPIs.js";import{getApiVersionTag as n}from"../../../internal/telemetry.js";import{DialogDimension as l}from"../../constants.js";import{runtime as e}from"../../runtime.js";import*as m from"./bot.js";export{m as bot};import*as s from"./parentCommunication.js";export{s as parentCommunication};function a(o,i,l){t(n(r,"dialog.url.open"),o,i,l)}function p(t,i){o(n(r,"dialog.url.submit"),t,i)}function u(){return i(e)&&void 0!==(e.supports.dialog&&e.supports.dialog.url)}function f(t){return{url:t.url,height:t.size?t.size.height:l.Small,width:t.size?t.size.width:l.Small,title:t.title,fallbackUrl:t.fallbackUrl}}function c(t){const o=f(t);return o.completionBotId=t.completionBotId,o}export{c as getDialogInfoFromBotUrlDialogInfo,f as getDialogInfoFromUrlDialogInfo,u as isSupported,a as open,p as submit};
1
+ import{urlOpenHelper as t,urlSubmitHelper as o,dialogTelemetryVersionNumber as i}from"../../../internal/dialogHelpers.js";import{ensureInitialized as r}from"../../../internal/internalAPIs.js";import{getApiVersionTag as e}from"../../../internal/telemetry.js";import{DialogDimension as l}from"../../constants.js";import{runtime as s}from"../../runtime.js";import*as n from"./bot.js";export{n as bot};import*as a from"./parentCommunication.js";export{a as parentCommunication};function m(o,r,l){t(e(i,"dialog.url.open"),o,r,l)}function u(t,r){o(e(i,"dialog.url.submit"),t,r)}function p(){return r(s)&&void 0!==(s.supports.dialog&&s.supports.dialog.url)}function d(t){return Object.assign({url:t.url,height:t.size?t.size.height:l.Small,width:t.size?t.size.width:l.Small,title:t.title,fallbackUrl:t.fallbackUrl},void 0!==t.useHeaderlessDialog?{useHeaderlessDialog:t.useHeaderlessDialog}:{})}function f(t){const o=d(t);return o.completionBotId=t.completionBotId,o}export{f as getDialogInfoFromBotUrlDialogInfo,d as getDialogInfoFromUrlDialogInfo,p as isSupported,m as open,u as submit};
@@ -1 +1 @@
1
- const o="2.59.0";export{o as version};
1
+ const t="2.60.0-beta.1";export{t as version};
@@ -4736,7 +4736,7 @@ function isSerializable(arg) {
4736
4736
  * @hidden
4737
4737
  * Package version.
4738
4738
  */
4739
- const version = "2.59.0";
4739
+ const version = "2.60.0-beta.1";
4740
4740
 
4741
4741
  ;// ./src/public/featureFlags.ts
4742
4742
  // All build feature flags are defined inside this object. Any build feature flag must have its own unique getter and setter function. This pattern allows for client apps to treeshake unused code and avoid including code guarded by this feature flags in the final bundle. If this property isn't desired, use the below runtime feature flags object.
@@ -6104,13 +6104,9 @@ function url_isSupported() {
6104
6104
  * Limited to Microsoft-internal use
6105
6105
  */
6106
6106
  function getDialogInfoFromUrlDialogInfo(urlDialogInfo) {
6107
- const dialogInfo = {
6108
- url: urlDialogInfo.url,
6109
- height: urlDialogInfo.size ? urlDialogInfo.size.height : DialogDimension.Small,
6110
- width: urlDialogInfo.size ? urlDialogInfo.size.width : DialogDimension.Small,
6111
- title: urlDialogInfo.title,
6112
- fallbackUrl: urlDialogInfo.fallbackUrl,
6113
- };
6107
+ const dialogInfo = Object.assign({ url: urlDialogInfo.url, height: urlDialogInfo.size ? urlDialogInfo.size.height : DialogDimension.Small, width: urlDialogInfo.size ? urlDialogInfo.size.width : DialogDimension.Small, title: urlDialogInfo.title, fallbackUrl: urlDialogInfo.fallbackUrl }, (urlDialogInfo.useHeaderlessDialog !== undefined
6108
+ ? { useHeaderlessDialog: urlDialogInfo.useHeaderlessDialog }
6109
+ : {}));
6114
6110
  return dialogInfo;
6115
6111
  }
6116
6112
  /**