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

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.
package/README.md CHANGED
@@ -24,7 +24,7 @@ To install the latest [2.0 preview version](https://docs.microsoft.com/en-us/jav
24
24
 
25
25
  ### Production
26
26
 
27
- You can access [these files on unpkg](https://res.cdn.office.net/teams-js/2.0.0-beta.3/js/MicrosoftTeams.min.js), download them, or point your package manager to them.
27
+ You can access [these files on unpkg](https://res.cdn.office.net/teams-js/2.0.0-beta.4/js/MicrosoftTeams.min.js), download them, or point your package manager to them.
28
28
 
29
29
  ## Usage
30
30
 
@@ -45,13 +45,13 @@ Reference the SDK inside of your `.html` page using:
45
45
  ```html
46
46
  <!-- Microsoft Teams JavaScript API (via CDN) -->
47
47
  <script
48
- src="https://res.cdn.office.net/teams-js/2.0.0-beta.3/js/MicrosoftTeams.min.js"
49
- integrity="sha384-aTF8nUEw1nj9moqLO1H72qOAk/wiHiaFr6LNWXji5Up/oTwXVTh39rQBOn/zMYPj"
48
+ src="https://res.cdn.office.net/teams-js/2.0.0-beta.4/js/MicrosoftTeams.min.js"
49
+ integrity="sha384-DtrvdVpUyDGMxEcLc32coG50KsItL9B3cKzaBxDzH4EQyzXX9DlhZmn0dF8UQwvw"
50
50
  crossorigin="anonymous"
51
51
  ></script>
52
52
 
53
53
  <!-- Microsoft Teams JavaScript API (via npm) -->
54
- <script src="node_modules/@microsoft/teams-js@2.0.0-beta.3/dist/MicrosoftTeams.min.js"></script>
54
+ <script src="node_modules/@microsoft/teams-js@2.0.0-beta.4/dist/MicrosoftTeams.min.js"></script>
55
55
 
56
56
  <!-- Microsoft Teams JavaScript API (via local) -->
57
57
  <script src="MicrosoftTeams.min.js"></script>
@@ -341,7 +341,7 @@ export interface ConversationResponse {
341
341
  *
342
342
  * @alpha
343
343
  */
344
- export namespace conversation {
344
+ export namespace conversations {
345
345
  /**
346
346
  * @hidden
347
347
  * Hide from docs
@@ -1066,7 +1066,7 @@ __webpack_require__.d(__webpack_exports__, {
1066
1066
  "calendar": () => (/* reexport */ calendar),
1067
1067
  "call": () => (/* reexport */ call),
1068
1068
  "chat": () => (/* reexport */ chat),
1069
- "conversation": () => (/* reexport */ conversation),
1069
+ "conversations": () => (/* reexport */ conversations),
1070
1070
  "dialog": () => (/* reexport */ dialog),
1071
1071
  "enablePrintCapability": () => (/* reexport */ enablePrintCapability),
1072
1072
  "executeDeepLink": () => (/* reexport */ executeDeepLink),
@@ -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.24";
1124
+ var version = "2.0.0-beta.4";
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.
@@ -2326,7 +2326,7 @@ var runtime = {
2326
2326
  calendar: undefined,
2327
2327
  call: undefined,
2328
2328
  chat: {
2329
- conversation: undefined,
2329
+ conversations: undefined,
2330
2330
  },
2331
2331
  dialog: {
2332
2332
  bot: undefined,
@@ -2368,7 +2368,7 @@ var teamsRuntimeConfig = {
2368
2368
  appEntity: {},
2369
2369
  call: {},
2370
2370
  chat: {
2371
- conversation: {},
2371
+ conversations: {},
2372
2372
  },
2373
2373
  dialog: {
2374
2374
  bot: {},
@@ -4141,7 +4141,7 @@ var UserSettingTypes;
4141
4141
  UserSettingTypes["theme"] = "theme";
4142
4142
  })(UserSettingTypes || (UserSettingTypes = {}));
4143
4143
 
4144
- ;// CONCATENATED MODULE: ./src/private/conversation.ts
4144
+ ;// CONCATENATED MODULE: ./src/private/conversations.ts
4145
4145
 
4146
4146
 
4147
4147
 
@@ -4153,8 +4153,8 @@ var UserSettingTypes;
4153
4153
  *
4154
4154
  * @alpha
4155
4155
  */
4156
- var conversation;
4157
- (function (conversation) {
4156
+ var conversations;
4157
+ (function (conversations) {
4158
4158
  /**
4159
4159
  * @hidden
4160
4160
  * Hide from docs
@@ -4196,7 +4196,7 @@ var conversation;
4196
4196
  resolve(sendPromise);
4197
4197
  });
4198
4198
  }
4199
- conversation.openConversation = openConversation;
4199
+ conversations.openConversation = openConversation;
4200
4200
  /**
4201
4201
  * @hidden
4202
4202
  * Hide from docs
@@ -4209,7 +4209,7 @@ var conversation;
4209
4209
  removeHandler('startConversation');
4210
4210
  removeHandler('closeConversation');
4211
4211
  }
4212
- conversation.closeConversation = closeConversation;
4212
+ conversations.closeConversation = closeConversation;
4213
4213
  /**
4214
4214
  * @hidden
4215
4215
  * Hide from docs
@@ -4228,12 +4228,12 @@ var conversation;
4228
4228
  resolve(sendAndUnwrap('getChatMembers'));
4229
4229
  });
4230
4230
  }
4231
- conversation.getChatMembers = getChatMembers;
4231
+ conversations.getChatMembers = getChatMembers;
4232
4232
  function isSupported() {
4233
- return runtime.supports.chat.conversation ? true : false;
4233
+ return runtime.supports.chat.conversations ? true : false;
4234
4234
  }
4235
- conversation.isSupported = isSupported;
4236
- })(conversation || (conversation = {}));
4235
+ conversations.isSupported = isSupported;
4236
+ })(conversations || (conversations = {}));
4237
4237
 
4238
4238
  ;// CONCATENATED MODULE: ./src/public/appInstallDialog.ts
4239
4239
 
@@ -4442,7 +4442,7 @@ var dialog;
4442
4442
  * @param listener - The listener that will be triggered.
4443
4443
  */
4444
4444
  function registerOnMessageFromParent(listener) {
4445
- ensureInitialized();
4445
+ ensureInitialized(FrameContexts.task);
4446
4446
  registerHandler('messageForChild', listener);
4447
4447
  }
4448
4448
  dialog.registerOnMessageFromParent = registerOnMessageFromParent;
@@ -4551,6 +4551,7 @@ var ChildAppWindow = /** @class */ (function () {
4551
4551
  * @param listener - The listener that will be called
4552
4552
  */
4553
4553
  ChildAppWindow.prototype.addEventListener = function (type, listener) {
4554
+ ensureInitialized();
4554
4555
  if (type === 'message') {
4555
4556
  registerHandler('messageForParent', listener);
4556
4557
  }
@@ -4586,6 +4587,7 @@ var ParentAppWindow = /** @class */ (function () {
4586
4587
  * @param listener - The listener that will be called
4587
4588
  */
4588
4589
  ParentAppWindow.prototype.addEventListener = function (type, listener) {
4590
+ ensureInitialized(FrameContexts.task);
4589
4591
  if (type === 'message') {
4590
4592
  registerHandler('messageForChild', listener);
4591
4593
  }