@types/office-js 1.0.330 → 1.0.332
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/README.md +1 -1
- office-js/index.d.ts +54 -42
- office-js/package.json +2 -2
office-js/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.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Tue,
|
|
11
|
+
* Last updated: Tue, 20 Jun 2023 17:32:40 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
|
|
14
14
|
|
office-js/index.d.ts
CHANGED
|
@@ -1546,11 +1546,9 @@ declare namespace Office {
|
|
|
1546
1546
|
*
|
|
1547
1547
|
* **Important**:
|
|
1548
1548
|
*
|
|
1549
|
-
* - In Outlook, this API isn't supported in
|
|
1549
|
+
* - In Outlook, this API isn't supported if you load an add-in in an Outlook.com or Gmail mailbox.
|
|
1550
1550
|
*
|
|
1551
|
-
*
|
|
1552
|
-
*
|
|
1553
|
-
* - If the add-in is loaded in Outlook on the web in the Safari browser. This results in error 13001 ("The user is not signed into Office").
|
|
1551
|
+
* - In Outlook on the web, this API isn't supported if you use the Safari browser. This results in error 13001 ("The user is not signed into Office").
|
|
1554
1552
|
*
|
|
1555
1553
|
* - In Outlook on the web, if you use the
|
|
1556
1554
|
* {@link https://learn.microsoft.com/javascript/api/office/office.ui#office-office-ui-displaydialogasync-member(1) | displayDialogAsync}
|
|
@@ -12229,13 +12227,10 @@ declare namespace Office {
|
|
|
12229
12227
|
*
|
|
12230
12228
|
* **Important**:
|
|
12231
12229
|
*
|
|
12232
|
-
* - After the content is prepended, the position of the cursor depends on which client the add-in is running.
|
|
12233
|
-
*
|
|
12234
|
-
*
|
|
12235
|
-
*
|
|
12236
|
-
*
|
|
12237
|
-
* - **Mac**: The cursor position isn't preserved. The cursor disappears after the `prependAsync` call and only reappears when the user selects something in the
|
|
12238
|
-
* body of the mail item.
|
|
12230
|
+
* - After the content is prepended, the position of the cursor depends on which client the add-in is running. In Outlook on Windows and on the web, the cursor
|
|
12231
|
+
* position remains the same in the pre-existing content of the body. For example, if the cursor was positioned at the beginning of the body prior to the
|
|
12232
|
+
* `prependAsync` call, it will appear between the prepended content and the pre-existing content of the body after the call. In Outlook on Mac, the cursor
|
|
12233
|
+
* position isn't preserved. The cursor disappears after the `prependAsync` call and only reappears when the user selects something in the body of the mail item.
|
|
12239
12234
|
*
|
|
12240
12235
|
* - When working with HTML-formatted bodies, it's important to note that the client may modify the value passed to `prependAsync` to
|
|
12241
12236
|
* make it render efficiently with its rendering engine. This means that the value returned from a subsequent call to the `Body.getAsync` method
|
|
@@ -12270,13 +12265,10 @@ declare namespace Office {
|
|
|
12270
12265
|
*
|
|
12271
12266
|
* **Important**:
|
|
12272
12267
|
*
|
|
12273
|
-
* - After the content is prepended, the position of the cursor depends on which client the add-in is running.
|
|
12274
|
-
*
|
|
12275
|
-
*
|
|
12276
|
-
*
|
|
12277
|
-
*
|
|
12278
|
-
* - **Mac**: The cursor position isn't preserved. The cursor disappears after the `prependAsync` call and only reappears when the user selects something in the
|
|
12279
|
-
* body of the mail item.
|
|
12268
|
+
* - After the content is prepended, the position of the cursor depends on which client the add-in is running. In Outlook on Windows and on the web, the cursor
|
|
12269
|
+
* position remains the same in the pre-existing content of the body. For example, if the cursor was positioned at the beginning of the body prior to the
|
|
12270
|
+
* `prependAsync` call, it will appear between the prepended content and the pre-existing content of the body after the call. In Outlook on Mac, the cursor
|
|
12271
|
+
* position isn't preserved. The cursor disappears after the `prependAsync` call and only reappears when the user selects something in the body of the mail item.
|
|
12280
12272
|
*
|
|
12281
12273
|
* - When working with HTML-formatted bodies, it's important to note that the client may modify the value passed to `prependAsync` to
|
|
12282
12274
|
* make it render efficiently with its rendering engine. This means that the value returned from a subsequent call to the `Body.getAsync` method
|
|
@@ -12387,14 +12379,10 @@ declare namespace Office {
|
|
|
12387
12379
|
*
|
|
12388
12380
|
* **Important**:
|
|
12389
12381
|
*
|
|
12390
|
-
* - After the body is replaced with the specified content, the position of the cursor depends on which client the add-in is running.
|
|
12391
|
-
*
|
|
12392
|
-
*
|
|
12393
|
-
*
|
|
12394
|
-
* - **Mac**: The cursor position isn't preserved. The cursor disappears after the `prependAsync` call and only reappears when the user selects something in the
|
|
12395
|
-
* body of the mail item.
|
|
12396
|
-
*
|
|
12397
|
-
* - **Web**: The cursor appears at the end of the body of the mail item.
|
|
12382
|
+
* - After the body is replaced with the specified content, the position of the cursor depends on which client the add-in is running. In Outlook on Windows,
|
|
12383
|
+
* the cursor appears at the beginning of the body of the mail item, while in Outlook on the web, the cursor appears at the end of the body of the mail item.
|
|
12384
|
+
* In Outlook on Mac, the cursor position isn't preserved. The cursor disappears after the `prependAsync` call and only reappears when the user selects
|
|
12385
|
+
* something in the body of the mail item.
|
|
12398
12386
|
*
|
|
12399
12387
|
* - When working with HTML-formatted bodies, it's important to note that the value returned by the `Body.getAsync` method won't necessarily
|
|
12400
12388
|
* be the exact same value that was previously passed in the `Body.setAsync` method. The client may modify the value passed to `setAsync` to make it
|
|
@@ -12433,14 +12421,10 @@ declare namespace Office {
|
|
|
12433
12421
|
*
|
|
12434
12422
|
* **Important**:
|
|
12435
12423
|
*
|
|
12436
|
-
* - After the body is replaced with the specified content, the position of the cursor depends on which client the add-in is running.
|
|
12437
|
-
*
|
|
12438
|
-
*
|
|
12439
|
-
*
|
|
12440
|
-
* - **Mac**: The cursor position isn't preserved. The cursor disappears after the `prependAsync` call and only reappears when the user selects something in the
|
|
12441
|
-
* body of the mail item.
|
|
12442
|
-
*
|
|
12443
|
-
* - **Web**: The cursor appears at the end of the body of the mail item.
|
|
12424
|
+
* - After the body is replaced with the specified content, the position of the cursor depends on which client the add-in is running. In Outlook on Windows,
|
|
12425
|
+
* the cursor appears at the beginning of the body of the mail item, while in Outlook on the web, the cursor appears at the end of the body of the mail item.
|
|
12426
|
+
* In Outlook on Mac, the cursor position isn't preserved. The cursor disappears after the `prependAsync` call and only reappears when the user selects
|
|
12427
|
+
* something in the body of the mail item.
|
|
12444
12428
|
*
|
|
12445
12429
|
* - When working with HTML-formatted bodies, it's important to note that the value returned by the `Body.getAsync` method won't necessarily
|
|
12446
12430
|
* be the exact same value that was previously passed in the `Body.setAsync` method. The client may modify the value passed to `setAsync` to make it
|
|
@@ -14649,11 +14633,11 @@ declare namespace Office {
|
|
|
14649
14633
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
14650
14634
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
14651
14635
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter,
|
|
14652
|
-
* `asyncResult`, which is an `Office.AsyncResult` object. The properties of the selected messages are returned as an array of
|
|
14653
|
-
*
|
|
14654
|
-
*
|
|
14636
|
+
* `asyncResult`, which is an `Office.AsyncResult` object. The properties of the selected messages, such as the item ID and subject, are returned as an array of
|
|
14637
|
+
* {@link Office.SelectedItemDetails | SelectedItemDetails} objects in the `asyncResult.value` property. The objects in the array follow the order in which
|
|
14638
|
+
* messages were selected.
|
|
14655
14639
|
*/
|
|
14656
|
-
getSelectedItemsAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<
|
|
14640
|
+
getSelectedItemsAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<SelectedItemDetails[]>) => void): void;
|
|
14657
14641
|
/**
|
|
14658
14642
|
* Gets currently selected messages on which an add-in can activate and perform operations. An add-in can activate on a maximum of 100 messages at a time.
|
|
14659
14643
|
* To learn more about item multi-select, see
|
|
@@ -14671,11 +14655,11 @@ declare namespace Office {
|
|
|
14671
14655
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
14672
14656
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
14673
14657
|
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter,
|
|
14674
|
-
* `asyncResult`, which is an `Office.AsyncResult` object. The properties of the selected messages are returned as an array of
|
|
14675
|
-
*
|
|
14676
|
-
*
|
|
14658
|
+
* `asyncResult`, which is an `Office.AsyncResult` object. The properties of the selected messages, such as the item ID and subject, are returned as an array of
|
|
14659
|
+
* {@link Office.SelectedItemDetails | SelectedItemDetails} objects in the `asyncResult.value` property. The objects in the array follow the order in which
|
|
14660
|
+
* messages were selected.
|
|
14677
14661
|
*/
|
|
14678
|
-
getSelectedItemsAsync(callback: (asyncResult: Office.AsyncResult<
|
|
14662
|
+
getSelectedItemsAsync(callback: (asyncResult: Office.AsyncResult<SelectedItemDetails[]>) => void): void;
|
|
14679
14663
|
/**
|
|
14680
14664
|
* Gets a token identifying the user and the Office Add-in.
|
|
14681
14665
|
*
|
|
@@ -18252,6 +18236,34 @@ declare namespace Office {
|
|
|
18252
18236
|
*/
|
|
18253
18237
|
set(name: string, value: any): void;
|
|
18254
18238
|
}
|
|
18239
|
+
/**
|
|
18240
|
+
* Represents the properties of a message that's currently selected in Outlook.
|
|
18241
|
+
*
|
|
18242
|
+
* @remarks
|
|
18243
|
+
* [Api set: Mailbox 1.13]
|
|
18244
|
+
*
|
|
18245
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write mailbox**
|
|
18246
|
+
*
|
|
18247
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose, Message Read
|
|
18248
|
+
*/
|
|
18249
|
+
interface SelectedItemDetails {
|
|
18250
|
+
/**
|
|
18251
|
+
* The Exchange Web Services (EWS) item identifier of the message that's currently selected.
|
|
18252
|
+
*/
|
|
18253
|
+
itemId: string;
|
|
18254
|
+
/**
|
|
18255
|
+
* The Outlook mode (`Read` or `Compose`) of the message that's currently selected.
|
|
18256
|
+
*/
|
|
18257
|
+
itemMode: string;
|
|
18258
|
+
/**
|
|
18259
|
+
* The type of the item that's currently selected. `Message` is the only supported type at this time.
|
|
18260
|
+
*/
|
|
18261
|
+
itemType: MailboxEnums.ItemType | string;
|
|
18262
|
+
/**
|
|
18263
|
+
* The description that appears in the subject field of the message that's currently selected.
|
|
18264
|
+
*/
|
|
18265
|
+
subject: string;
|
|
18266
|
+
}
|
|
18255
18267
|
/**
|
|
18256
18268
|
* Provides methods to get or set the sensitivity label of a message or appointment. For more information on sensitivity labels, see
|
|
18257
18269
|
* {@link https://learn.microsoft.com/microsoft-365/compliance/sensitivity-labels | Learn about sensitivity labels}.
|
office-js/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.332",
|
|
4
4
|
"description": "TypeScript definitions for Office.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
|
-
"typesPublisherContentHash": "
|
|
48
|
+
"typesPublisherContentHash": "61674515026554e09af1050e92f1b97b947a10aa8f521972b005f82f364489cc",
|
|
49
49
|
"typeScriptVersion": "4.3"
|
|
50
50
|
}
|