@microsoft/teams-js 2.0.0-beta.3-dev.47 → 2.0.0-beta.3-dev.51

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.
@@ -115,6 +115,21 @@ export namespace menus {
115
115
  */
116
116
  contentDescription?: string;
117
117
  }
118
+ /**
119
+ * Defines how a menu item should appear in the NavBar.
120
+ */
121
+ enum DisplayMode {
122
+ /**
123
+ * Only place this item in the NavBar if there's room for it.
124
+ * If there's no room, item is shown in the overflow menu.
125
+ */
126
+ ifRoom = 0,
127
+ /**
128
+ * Never place this item in the NavBar.
129
+ * The item would always be shown in NavBar's overflow menu.
130
+ */
131
+ overflowOnly = 1
132
+ }
118
133
  /**
119
134
  * @hidden
120
135
  * Represents information about menu item for Action Menu and Navigation Bar Menu.
@@ -160,6 +175,12 @@ export namespace menus {
160
175
  * Whether the menu item is selected or not
161
176
  */
162
177
  selected: boolean;
178
+ /**
179
+ * The Display Mode of the menu item.
180
+ * Default Behaviour would be DisplayMode.ifRoom if null.
181
+ * Refer {@link DisplayMode}
182
+ */
183
+ displayMode?: DisplayMode;
163
184
  }
164
185
  /**
165
186
  * @hidden
@@ -1120,7 +1120,7 @@ __webpack_require__.d(__webpack_exports__, {
1120
1120
  });
1121
1121
 
1122
1122
  ;// CONCATENATED MODULE: ./src/internal/constants.ts
1123
- var version = "2.0.0-beta.3-dev.47";
1123
+ var version = "2.0.0-beta.3-dev.51";
1124
1124
  /**
1125
1125
  * @hidden
1126
1126
  * The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
@@ -1853,14 +1853,12 @@ var teamsRuntimeConfig = {
1853
1853
  appInstallDialog: {},
1854
1854
  appEntity: {},
1855
1855
  bot: {},
1856
- calendar: {},
1857
1856
  call: {},
1858
1857
  chat: {},
1859
1858
  dialog: {},
1860
1859
  files: {},
1861
1860
  location: {},
1862
1861
  logs: {},
1863
- mail: {},
1864
1862
  media: {},
1865
1863
  meeting: {},
1866
1864
  meetingRoom: {},
@@ -1946,6 +1944,22 @@ var logs;
1946
1944
  */
1947
1945
  var menus;
1948
1946
  (function (menus) {
1947
+ /**
1948
+ * Defines how a menu item should appear in the NavBar.
1949
+ */
1950
+ var DisplayMode;
1951
+ (function (DisplayMode) {
1952
+ /**
1953
+ * Only place this item in the NavBar if there's room for it.
1954
+ * If there's no room, item is shown in the overflow menu.
1955
+ */
1956
+ DisplayMode[DisplayMode["ifRoom"] = 0] = "ifRoom";
1957
+ /**
1958
+ * Never place this item in the NavBar.
1959
+ * The item would always be shown in NavBar's overflow menu.
1960
+ */
1961
+ DisplayMode[DisplayMode["overflowOnly"] = 1] = "overflowOnly";
1962
+ })(DisplayMode = menus.DisplayMode || (menus.DisplayMode = {}));
1949
1963
  /**
1950
1964
  * @hidden
1951
1965
  * Represents information about menu item for Action Menu and Navigation Bar Menu.
@@ -5322,6 +5336,9 @@ var calendar;
5322
5336
  if (!isSupported()) {
5323
5337
  throw 'Not Supported';
5324
5338
  }
5339
+ if (!openCalendarItemParams.itemId || !openCalendarItemParams.itemId.trim()) {
5340
+ throw new Error('Must supply an itemId to openCalendarItem');
5341
+ }
5325
5342
  resolve(sendAndHandleStatusAndReason('calendar.openCalendarItem', openCalendarItemParams));
5326
5343
  });
5327
5344
  }