@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.
office-js-preview/README.md
CHANGED
|
@@ -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:
|
|
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
|
|
office-js-preview/index.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
office-js-preview/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js-preview",
|
|
3
|
-
"version": "1.0.
|
|
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": "
|
|
48
|
+
"typesPublisherContentHash": "cc9dc189049fc9c07434e7a14814b03c534686e2f0e8f2a9b355c53c656e31ed",
|
|
49
49
|
"typeScriptVersion": "4.2"
|
|
50
50
|
}
|