@types/office-js 1.0.368 → 1.0.370
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 +21 -4
- 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:
|
|
11
|
+
* Last updated: Thu, 01 Feb 2024 19:07:01 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js/index.d.ts
CHANGED
|
@@ -942,6 +942,14 @@ declare namespace Office {
|
|
|
942
942
|
* Provides access to the properties for Office theme colors.
|
|
943
943
|
*/
|
|
944
944
|
officeTheme: OfficeTheme;
|
|
945
|
+
/**
|
|
946
|
+
* Gets a partition key for local storage. Add-ins should use this key as the location to securely store data.
|
|
947
|
+
*
|
|
948
|
+
* @remarks
|
|
949
|
+
*
|
|
950
|
+
* The hashed value of the UserPrincipalName (UPN) for the add-in's current partition.
|
|
951
|
+
*/
|
|
952
|
+
partitionKey: string;
|
|
945
953
|
/**
|
|
946
954
|
* Provides the platform on which the add-in is running.
|
|
947
955
|
*
|
|
@@ -17686,14 +17694,14 @@ declare namespace Office {
|
|
|
17686
17694
|
/**
|
|
17687
17695
|
* The definition of the action for a notification message.
|
|
17688
17696
|
*
|
|
17689
|
-
* **Important**: In modern Outlook on the web, the `NotificationMessageAction` object is available in Compose mode only.
|
|
17690
|
-
*
|
|
17691
17697
|
* @remarks
|
|
17692
17698
|
* [Api set: Mailbox 1.10]
|
|
17693
17699
|
*
|
|
17694
17700
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
|
|
17695
17701
|
*
|
|
17696
17702
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
17703
|
+
*
|
|
17704
|
+
* **Important**: In modern Outlook on the web, the `NotificationMessageAction` object is available in Compose mode only.
|
|
17697
17705
|
*/
|
|
17698
17706
|
interface NotificationMessageAction {
|
|
17699
17707
|
/**
|
|
@@ -17710,8 +17718,17 @@ declare namespace Office {
|
|
|
17710
17718
|
*/
|
|
17711
17719
|
commandId: string;
|
|
17712
17720
|
/**
|
|
17713
|
-
* Any JSON data the action button needs to pass on.
|
|
17714
|
-
*
|
|
17721
|
+
* Any JSON data the action button needs to pass on to the add-in.
|
|
17722
|
+
*
|
|
17723
|
+
* @remarks
|
|
17724
|
+
*
|
|
17725
|
+
* **Important**:
|
|
17726
|
+
*
|
|
17727
|
+
* - In Outlook on Windows, the `any` type is supported starting in Version 2402 (Build 17308.20000). In earlier versions of Outlook on Windows, only the `string`
|
|
17728
|
+
* type is supported.
|
|
17729
|
+
*
|
|
17730
|
+
* - To retrieve the JSON data, call `Office.context.mailboxitem.getInitializationContextAsync`. If you create a JSON string using
|
|
17731
|
+
* `JSON.stringify()` and assign it to the `contextData` property, you must parse the string using `JSON.parse()` once you retrieve it.
|
|
17715
17732
|
*/
|
|
17716
17733
|
contextData: any;
|
|
17717
17734
|
}
|
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.370",
|
|
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": "0f445f5fb66c271a816a72586a8c7a472d31f556bc46dc40baa750a4947c15df",
|
|
49
49
|
"typeScriptVersion": "4.6"
|
|
50
50
|
}
|