@microsoft/teams-js 2.0.0-beta.3-dev.105 → 2.0.0-beta.3-dev.108

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.
@@ -2879,6 +2879,15 @@ export namespace pages {
2879
2879
  * @param navigateForward - Determines the direction to focus in host.
2880
2880
  */
2881
2881
  function returnFocus(navigateForward?: boolean): void;
2882
+ /**
2883
+ * @hidden
2884
+ * Registers a handler when focus needs to be passed from teams to the place of choice on app.
2885
+ *
2886
+ * @param handler - The handler to invoked by the app when they want the focus to be in the place of their choice.
2887
+ *
2888
+ * @internal
2889
+ */
2890
+ function registerFocusEnterHandler(handler: (navigateForward: boolean) => void): void;
2882
2891
  function setCurrentFrame(frameInfo: FrameInfo): void;
2883
2892
  function initializeWithFrameContext(frameInfo: FrameInfo, callback?: () => void, validMessageOrigins?: string[]): void;
2884
2893
  interface InstanceConfig {
@@ -4239,15 +4248,6 @@ export namespace teamsCore {
4239
4248
  * @internal
4240
4249
  */
4241
4250
  function registerBeforeUnloadHandler(handler: (readyToUnload: () => void) => boolean): void;
4242
- /**
4243
- * @hidden
4244
- * Registers a handler when focus needs to be passed from teams to the place of choice on app.
4245
- *
4246
- * @param handler - The handler to invoked by the app when they want the focus to be in the place of their choice.
4247
- *
4248
- * @internal
4249
- */
4250
- function registerFocusEnterHandler(handler: (navigateForward: boolean) => void): void;
4251
4251
  function isSupported(): boolean;
4252
4252
  }
4253
4253
 
@@ -4697,7 +4697,7 @@ export function registerOnLoadHandler(handler: (context: LoadContext) => void):
4697
4697
  export function registerBeforeUnloadHandler(handler: (readyToUnload: () => void) => boolean): void;
4698
4698
  /**
4699
4699
  * @deprecated
4700
- * As of 2.0.0-beta.1, please use {@link teamsCore.registerFocusEnterHandler teamsCore.registerFocusEnterHandler(handler: (navigateForward: boolean) => void): void} instead.
4700
+ * As of 2.0.0-beta.3, please use {@link pages.registerFocusEnterHandler pages.registerFocusEnterHandler(handler: (navigateForward: boolean) => void): void} instead.
4701
4701
  *
4702
4702
  * @hidden
4703
4703
  * Registers a handler when focus needs to be passed from teams to the place of choice on app.
@@ -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.105";
1123
+ var version = "2.0.0-beta.3-dev.108";
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.
@@ -2606,19 +2606,6 @@ var teamsCore;
2606
2606
  handlers_registerBeforeUnloadHandler(handler);
2607
2607
  }
2608
2608
  teamsCore.registerBeforeUnloadHandler = registerBeforeUnloadHandler;
2609
- /**
2610
- * @hidden
2611
- * Registers a handler when focus needs to be passed from teams to the place of choice on app.
2612
- *
2613
- * @param handler - The handler to invoked by the app when they want the focus to be in the place of their choice.
2614
- *
2615
- * @internal
2616
- */
2617
- function registerFocusEnterHandler(handler) {
2618
- ensureInitialized();
2619
- registerHandler('focusEnter', handler);
2620
- }
2621
- teamsCore.registerFocusEnterHandler = registerFocusEnterHandler;
2622
2609
  function isSupported() {
2623
2610
  return runtime.supports.teamsCore ? true : false;
2624
2611
  }
@@ -3020,6 +3007,19 @@ var pages;
3020
3007
  sendMessageToParent('returnFocus', [navigateForward]);
3021
3008
  }
3022
3009
  pages.returnFocus = returnFocus;
3010
+ /**
3011
+ * @hidden
3012
+ * Registers a handler when focus needs to be passed from teams to the place of choice on app.
3013
+ *
3014
+ * @param handler - The handler to invoked by the app when they want the focus to be in the place of their choice.
3015
+ *
3016
+ * @internal
3017
+ */
3018
+ function registerFocusEnterHandler(handler) {
3019
+ ensureInitialized();
3020
+ registerHandler('focusEnter', handler);
3021
+ }
3022
+ pages.registerFocusEnterHandler = registerFocusEnterHandler;
3023
3023
  function setCurrentFrame(frameInfo) {
3024
3024
  ensureInitialized(FrameContexts.content);
3025
3025
  sendMessageToParent('setFrameContext', [frameInfo]);
@@ -5915,7 +5915,7 @@ function registerBeforeUnloadHandler(handler) {
5915
5915
  }
5916
5916
  /**
5917
5917
  * @deprecated
5918
- * As of 2.0.0-beta.1, please use {@link teamsCore.registerFocusEnterHandler teamsCore.registerFocusEnterHandler(handler: (navigateForward: boolean) => void): void} instead.
5918
+ * As of 2.0.0-beta.3, please use {@link pages.registerFocusEnterHandler pages.registerFocusEnterHandler(handler: (navigateForward: boolean) => void): void} instead.
5919
5919
  *
5920
5920
  * @hidden
5921
5921
  * Registers a handler when focus needs to be passed from teams to the place of choice on app.
@@ -5923,7 +5923,7 @@ function registerBeforeUnloadHandler(handler) {
5923
5923
  * @param handler - The handler to invoked by the app when they want the focus to be in the place of their choice.
5924
5924
  */
5925
5925
  function registerFocusEnterHandler(handler) {
5926
- teamsCore.registerFocusEnterHandler(handler);
5926
+ pages.registerFocusEnterHandler(handler);
5927
5927
  }
5928
5928
  /**
5929
5929
  * @deprecated