@types/office-js-preview 1.0.270 → 1.0.271
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: Fri,
|
|
11
|
+
* Last updated: Fri, 03 Dec 2021 19:01:09 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
|
@@ -607,12 +607,12 @@ declare namespace Office {
|
|
|
607
607
|
*/
|
|
608
608
|
hide(): Promise<void>;
|
|
609
609
|
/**
|
|
610
|
-
* Adds a
|
|
611
|
-
* @param
|
|
612
|
-
* @returns A promise that resolves to a function when the
|
|
610
|
+
* Adds a handler for the `onVisibilityModeChanged` event.
|
|
611
|
+
* @param handler - The handler function that is called when the event is emitted. This function takes in a message for the receiving component.
|
|
612
|
+
* @returns A promise that resolves to a function when the handler is added. Calling it removes the handler.
|
|
613
613
|
*/
|
|
614
614
|
onVisibilityModeChanged(
|
|
615
|
-
|
|
615
|
+
handler: (message: VisibilityModeChangedMessage) => void,
|
|
616
616
|
): Promise<() => Promise<void>>;
|
|
617
617
|
|
|
618
618
|
/**
|
|
@@ -657,7 +657,7 @@ declare namespace Office {
|
|
|
657
657
|
* This event handler will be triggered if one of the following conditions is met:
|
|
658
658
|
* 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.
|
|
659
659
|
* 2. When the add-in calls the `enable` method on the `BeforeDocumentCloseNotification` object.
|
|
660
|
-
* @param
|
|
660
|
+
* @param handler The event handler that is called when the dialog is cancelled.
|
|
661
661
|
* @returns A promise that resolves when the event handler is added.
|
|
662
662
|
*
|
|
663
663
|
* @remarks
|
|
@@ -665,7 +665,7 @@ declare namespace Office {
|
|
|
665
665
|
* @beta
|
|
666
666
|
*/
|
|
667
667
|
onCloseActionCancelled(
|
|
668
|
-
|
|
668
|
+
handler: () => void
|
|
669
669
|
): Promise<() => Promise<void>>;
|
|
670
670
|
}
|
|
671
671
|
/**
|
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.271",
|
|
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",
|
|
@@ -40,6 +40,6 @@
|
|
|
40
40
|
},
|
|
41
41
|
"scripts": {},
|
|
42
42
|
"dependencies": {},
|
|
43
|
-
"typesPublisherContentHash": "
|
|
43
|
+
"typesPublisherContentHash": "de34b23aa02f883d8af3ad56cbecf1c9ae0fc4880eb6d7c677336e52912793fa",
|
|
44
44
|
"typeScriptVersion": "3.8"
|
|
45
45
|
}
|