@types/office-js-preview 1.0.307 → 1.0.310
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: Tue, 07 Jun 2022 18:31:33 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
|
@@ -557,8 +557,6 @@ declare namespace Office {
|
|
|
557
557
|
*
|
|
558
558
|
* - {@link https://docs.microsoft.com/javascript/api/requirement-sets/common/shared-runtime-requirement-sets | SharedRuntime 1.1}
|
|
559
559
|
*
|
|
560
|
-
* @beta
|
|
561
|
-
*
|
|
562
560
|
* @param shortcuts An object of custom shortcuts with keys being the IDs of the actions (as defined in an extended manifest) and values being the shortcut combinations. For example, `{"SetItalic": "Ctrl+1", "SetBold": "Ctrl+2"}`.
|
|
563
561
|
* To learn how to specify a valid action ID and a key combination, see {@link https://docs.microsoft.com/office/dev/add-ins/design/keyboard-shortcuts | Add custom keyboard shortcuts to your Office Add-ins}. (Note that a key combination can be `null`, in which case, the action keeps the key combination specified in the JSON file.)
|
|
564
562
|
* @returns A promise that resolves when every custom shortcut assignment in `shortcuts` has been registered. Even if there is a conflict with existing shortcuts, the customized shortcut will be registered.
|
|
@@ -577,8 +575,6 @@ declare namespace Office {
|
|
|
577
575
|
*
|
|
578
576
|
* - {@link https://docs.microsoft.com/javascript/api/requirement-sets/common/shared-runtime-requirement-sets | SharedRuntime 1.1}
|
|
579
577
|
*
|
|
580
|
-
* @beta
|
|
581
|
-
*
|
|
582
578
|
* @returns A promise that resolves to an object of shortcuts, with keys being the IDs of the actions (as defined in an extended manifest) and values being the shortcut combinations. For example, `{"SetItalic": "Ctrl+1", "SetBold": "Ctrl+2", "SetUnderline": null}`.
|
|
583
579
|
*/
|
|
584
580
|
getShortcuts(): Promise<{[actionId: string]: string|null}>;
|
|
@@ -593,9 +589,7 @@ declare namespace Office {
|
|
|
593
589
|
*
|
|
594
590
|
* - {@link https://docs.microsoft.com/javascript/api/requirement-sets/common/shared-runtime-requirement-sets | SharedRuntime 1.1}
|
|
595
591
|
*
|
|
596
|
-
* @
|
|
597
|
-
*
|
|
598
|
-
* @param shortcuts An array of shortcut combinations. For example, `["Ctrl+1", "Ctrl+2"]`.
|
|
592
|
+
* @param shortcuts An array of shortcut combinations. For example, `["Ctrl+1", "Ctrl+2"]`.
|
|
599
593
|
* @returns A promise that resolves to an array of objects. Each object consists of a shortcut combination and Boolean value. The value is `true` if the shortcut combination conflicts with a shortcut of another add-in or with a shortcut of the Office application; otherwise, `false`. For example, `[{shortcut:"Ctrl+1", inUse:true},{shortcut:"Ctrl+2", inUse:false}]`.
|
|
600
594
|
*/
|
|
601
595
|
areShortcutsInUse(shortcuts: string[]): Promise<{shortcut: string, inUse: boolean}[]>;
|
|
@@ -17517,7 +17511,7 @@ declare namespace Office {
|
|
|
17517
17511
|
* **Important**: In Outlook on the web, if a user created a new message by activating a contact's email address link from their contact or
|
|
17518
17512
|
* profile card, your add-in's `getAsync` call currently won't return a value in the `displayName` property of the
|
|
17519
17513
|
* associated `EmailAddressDetails` object. For more details, refer to the
|
|
17520
|
-
* {@link https://github.com/OfficeDev/office-js
|
|
17514
|
+
* {@link https://github.com/OfficeDev/office-js/issues/2201 | related GitHub issue}.
|
|
17521
17515
|
*
|
|
17522
17516
|
* @remarks
|
|
17523
17517
|
* [Api set: Mailbox 1.1]
|
|
@@ -17545,7 +17539,7 @@ declare namespace Office {
|
|
|
17545
17539
|
* **Important**: In Outlook on the web, if a user created a new message by activating a contact's email address link from their contact or
|
|
17546
17540
|
* profile card, your add-in's `getAsync` call currently won't return a value in the `displayName` property of the
|
|
17547
17541
|
* associated `EmailAddressDetails` object. For more details, refer to the
|
|
17548
|
-
* {@link https://github.com/OfficeDev/office-js
|
|
17542
|
+
* {@link https://github.com/OfficeDev/office-js/issues/2201 | related GitHub issue}.
|
|
17549
17543
|
*
|
|
17550
17544
|
* @remarks
|
|
17551
17545
|
* [Api set: Mailbox 1.1]
|
|
@@ -19128,17 +19122,17 @@ declare namespace OfficeExtension {
|
|
|
19128
19122
|
const Promise: Office.IPromiseConstructor;
|
|
19129
19123
|
type IPromise<T> = Promise<T>;
|
|
19130
19124
|
|
|
19131
|
-
/**
|
|
19125
|
+
/**
|
|
19126
|
+
* Collection of tracked objects, contained within a request context.
|
|
19127
|
+
* See {@link https://docs.microsoft.com/javascript/api/office/officeextension.clientrequestcontext#office-officeextension-clientrequestcontext-trackedobjects-member | context.trackedObjects}
|
|
19128
|
+
* for more information.
|
|
19129
|
+
*/
|
|
19132
19130
|
class TrackedObjects {
|
|
19133
19131
|
/**
|
|
19134
19132
|
* Track a new object for automatic adjustment based on surrounding changes in the document. Only some object types require this.
|
|
19135
19133
|
* If you are using an object across ".sync" calls and outside the sequential execution of a ".run" batch,
|
|
19136
19134
|
* and get an "InvalidObjectPath" error when setting a property or invoking a method on the object, you needed to have added the object
|
|
19137
19135
|
* to the tracked object collection when the object was first created.
|
|
19138
|
-
*
|
|
19139
|
-
* This method also has the following signature:
|
|
19140
|
-
*
|
|
19141
|
-
* `add(objects: ClientObject[]): void;` Where objects is an array of objects to be tracked.
|
|
19142
19136
|
*/
|
|
19143
19137
|
add(object: ClientObject): void;
|
|
19144
19138
|
/**
|
|
@@ -19152,10 +19146,6 @@ declare namespace OfficeExtension {
|
|
|
19152
19146
|
* Release the memory associated with an object that was previously added to this collection.
|
|
19153
19147
|
* Having many tracked objects slows down the host application, so please remember to free any objects you add, once you're done using them.
|
|
19154
19148
|
* You will need to call `context.sync()` before the memory release takes effect.
|
|
19155
|
-
*
|
|
19156
|
-
* This method also has the following signature:
|
|
19157
|
-
*
|
|
19158
|
-
* `remove(objects: ClientObject[]): void;` Where objects is an array of objects to be removed.
|
|
19159
19149
|
*/
|
|
19160
19150
|
remove(object: ClientObject): void;
|
|
19161
19151
|
/**
|
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.310",
|
|
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": "546c6b156ff86729ade07743ca5ebb16c8d5f3b3134152e93d2f5dafec8457d1",
|
|
49
49
|
"typeScriptVersion": "3.9"
|
|
50
50
|
}
|