@types/office-js 1.0.329 → 1.0.330

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 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: Fri, 09 Jun 2023 17:33:06 GMT
11
+ * Last updated: Tue, 13 Jun 2023 23:02:49 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
@@ -1544,17 +1544,23 @@ declare namespace Office {
1544
1544
  *
1545
1545
  * **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/identity-api-requirement-sets | IdentityAPI 1.3}
1546
1546
  *
1547
- * **Important**: In Outlook, this API isn't supported in the following scenarios.
1547
+ * **Important**:
1548
+ *
1549
+ * - In Outlook, this API isn't supported in the following scenarios.
1550
+ *
1551
+ * - If the add-in is loaded in an Outlook.com or Gmail mailbox.
1548
1552
  *
1549
- * - If the add-in is loaded in an Outlook.com or Gmail mailbox.
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").
1550
1554
  *
1551
- * - 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").
1555
+ * - In Outlook on the web, if you use the
1556
+ * {@link https://learn.microsoft.com/javascript/api/office/office.ui#office-office-ui-displaydialogasync-member(1) | displayDialogAsync}
1557
+ * method to open a dialog, you must close the dialog before you can call `getAccessToken`.
1552
1558
  *
1553
- * **Note**: In an Outlook event-based activation add-in, this API is supported in Outlook on Windows starting from Version 2111 (Build 14701.20000).
1559
+ * - In an Outlook event-based activation add-in, this API is supported in Outlook on Windows starting from Version 2111 (Build 14701.20000).
1554
1560
  * To retrieve an access token in older builds, use
1555
- * {@link https://learn.microsoft.com/javascript/api/office-runtime/officeruntime.auth?view=common-js#office-runtime-officeruntime-auth-getaccesstoken-member(1) |
1556
- * OfficeRuntime.auth.getAccessToken} instead. For more information, see
1557
- * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/use-sso-in-event-based-activation | Enable single sign-on (SSO) in Outlook add-ins that use event-based activation}.
1561
+ * {@link https://learn.microsoft.com/javascript/api/office-runtime/officeruntime.auth?view=common-js-preview#office-runtime-officeruntime-auth-getaccesstoken-member(1) |
1562
+ * OfficeRuntime.auth.getAccessToken} instead. For more information, see
1563
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/use-sso-in-event-based-activation | Enable single sign-on (SSO) in Outlook add-ins that use event-based activation}.
1558
1564
  *
1559
1565
  * @param options - Optional. Accepts an `AuthOptions` object to define sign-on behaviors.
1560
1566
  * @returns Promise to the access token.
office-js/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js",
3
- "version": "1.0.329",
3
+ "version": "1.0.330",
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": "c999fce12f63f793997cc192638b8d3ea904ce3e6b097605a62ff067972626ef",
48
+ "typesPublisherContentHash": "964ad412f7aa9567890052670913dde4959ac0111bf4bd09072782388c86c511",
49
49
  "typeScriptVersion": "4.3"
50
50
  }