@microsoft/teams-js 2.0.0-beta.3-dev.48 → 2.0.0-beta.3-dev.52

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.48";
1123
+ var version = "2.0.0-beta.3-dev.52";
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.
@@ -1213,7 +1213,6 @@ var validOrigins = [
1213
1213
  'local.teams.live.com:8080',
1214
1214
  'local.teams.office.com',
1215
1215
  'local.teams.office.com:8080',
1216
- 'localhost:8080',
1217
1216
  'msft.spoppe.com',
1218
1217
  '*.sharepoint.com',
1219
1218
  '*.sharepoint-df.com',
@@ -1853,14 +1852,12 @@ var teamsRuntimeConfig = {
1853
1852
  appInstallDialog: {},
1854
1853
  appEntity: {},
1855
1854
  bot: {},
1856
- calendar: {},
1857
1855
  call: {},
1858
1856
  chat: {},
1859
1857
  dialog: {},
1860
1858
  files: {},
1861
1859
  location: {},
1862
1860
  logs: {},
1863
- mail: {},
1864
1861
  media: {},
1865
1862
  meeting: {},
1866
1863
  meetingRoom: {},
@@ -1946,6 +1943,22 @@ var logs;
1946
1943
  */
1947
1944
  var menus;
1948
1945
  (function (menus) {
1946
+ /**
1947
+ * Defines how a menu item should appear in the NavBar.
1948
+ */
1949
+ var DisplayMode;
1950
+ (function (DisplayMode) {
1951
+ /**
1952
+ * Only place this item in the NavBar if there's room for it.
1953
+ * If there's no room, item is shown in the overflow menu.
1954
+ */
1955
+ DisplayMode[DisplayMode["ifRoom"] = 0] = "ifRoom";
1956
+ /**
1957
+ * Never place this item in the NavBar.
1958
+ * The item would always be shown in NavBar's overflow menu.
1959
+ */
1960
+ DisplayMode[DisplayMode["overflowOnly"] = 1] = "overflowOnly";
1961
+ })(DisplayMode = menus.DisplayMode || (menus.DisplayMode = {}));
1949
1962
  /**
1950
1963
  * @hidden
1951
1964
  * Represents information about menu item for Action Menu and Navigation Bar Menu.
@@ -5322,6 +5335,9 @@ var calendar;
5322
5335
  if (!isSupported()) {
5323
5336
  throw 'Not Supported';
5324
5337
  }
5338
+ if (!openCalendarItemParams.itemId || !openCalendarItemParams.itemId.trim()) {
5339
+ throw new Error('Must supply an itemId to openCalendarItem');
5340
+ }
5325
5341
  resolve(sendAndHandleStatusAndReason('calendar.openCalendarItem', openCalendarItemParams));
5326
5342
  });
5327
5343
  }