@types/office-js-preview 1.0.361 → 1.0.362

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.
@@ -8,7 +8,7 @@ This package contains type definitions for Office.js (https://github.com/OfficeD
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 07 Dec 2022 18:03:36 GMT
11
+ * Last updated: Mon, 12 Dec 2022 21:49:43 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
14
14
 
@@ -653,14 +653,12 @@ declare namespace Office {
653
653
  onVisibilityModeChanged(
654
654
  handler: (message: VisibilityModeChangedMessage) => void,
655
655
  ): Promise<() => Promise<void>>;
656
-
657
656
  /**
658
657
  * Represents a modal notification dialog that can appear when the user attempts to close a document. The document won't close until the user responds.
659
658
  * This API is only supported in Excel.
660
659
  *
661
660
  * @remarks
662
- * [Api set: SharedRuntime BETA (PREVIEW ONLY)]
663
- * @beta
661
+ * **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/shared-runtime-requirement-sets | SharedRuntime 1.2}
664
662
  */
665
663
  beforeDocumentCloseNotification: BeforeDocumentCloseNotification;
666
664
  }
@@ -670,8 +668,7 @@ declare namespace Office {
670
668
  * This API is only supported in Excel.
671
669
  *
672
670
  * @remarks
673
- * [Api set: SharedRuntime BETA (PREVIEW ONLY)]
674
- * @beta
671
+ * **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/shared-runtime-requirement-sets | SharedRuntime 1.2}
675
672
  */
676
673
  interface BeforeDocumentCloseNotification {
677
674
  /**
@@ -680,8 +677,7 @@ declare namespace Office {
680
677
  * The `BeforeDocumentCloseNotification` API is only supported in Excel.
681
678
  *
682
679
  * @remarks
683
- * [Api set: SharedRuntime BETA (PREVIEW ONLY)]
684
- * @beta
680
+ * **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/shared-runtime-requirement-sets | SharedRuntime 1.2}
685
681
  */
686
682
  enable(): Promise<void>;
687
683
 
@@ -690,26 +686,24 @@ declare namespace Office {
690
686
  * The `BeforeDocumentCloseNotification` API is only supported in Excel.
691
687
  *
692
688
  * @remarks
693
- * [Api set: SharedRuntime BETA (PREVIEW ONLY)]
694
- * @beta
689
+ * **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/shared-runtime-requirement-sets | SharedRuntime 1.2}
695
690
  */
696
691
  disable(): Promise<void>;
697
692
 
698
693
  /**
699
694
  * Adds an event handler that detects when the `BeforeDocumentCloseNotification` close operation is cancelled.
700
- * This event handler will be triggered if one of the following conditions is met.
701
- *
702
- * 1. When the notification dialog is open, the end user clicks the **Don't close** button within the dialog, clicks the Close button in the upper right corner of the dialog, or presses the Esc key.
695
+ * This event handler will be triggered if both of the following conditions are met.
703
696
  *
704
- * 2. When the add-in calls the `enable` method on the `BeforeDocumentCloseNotification` object.
697
+ * 1. The add-in calls the `enable` method on the `BeforeDocumentCloseNotification` object.
698
+ *
699
+ * 2. When the notification dialog is open, the end user clicks the **Don't close** button within the dialog, clicks the Close button in the upper right corner of the dialog, or presses the Esc key.
705
700
  *
706
701
  * The `BeforeDocumentCloseNotification` API is only supported in Excel.
707
702
  * @param handler The event handler that is called when the dialog is cancelled.
708
703
  * @returns A promise that resolves when the event handler is added.
709
704
  *
710
705
  * @remarks
711
- * [Api set: SharedRuntime BETA (PREVIEW ONLY)]
712
- * @beta
706
+ * **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/shared-runtime-requirement-sets | SharedRuntime 1.2}
713
707
  */
714
708
  onCloseActionCancelled(
715
709
  handler: () => void
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.361",
3
+ "version": "1.0.362",
4
4
  "description": "TypeScript definitions for Office.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview",
6
6
  "license": "MIT",
@@ -45,6 +45,6 @@
45
45
  },
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
- "typesPublisherContentHash": "f2beca111504af9b2f903cc76d4f74740ca229d76b4cd7cc46510aa07ddba7a4",
48
+ "typesPublisherContentHash": "cc9dc189049fc9c07434e7a14814b03c534686e2f0e8f2a9b355c53c656e31ed",
49
49
  "typeScriptVersion": "4.2"
50
50
  }