@types/office-js-preview 1.0.490 → 1.0.491
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 +1 -1
- office-js-preview/index.d.ts +24 -24
- office-js-preview/package.json +2 -2
office-js-preview/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for office-js-preview (https://github.com
|
|
|
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, 06 Aug 2024 17:36:11 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js-preview/index.d.ts
CHANGED
|
@@ -3137,7 +3137,7 @@ declare namespace Office {
|
|
|
3137
3137
|
/**
|
|
3138
3138
|
* Associates the ID or name of an action with a function.
|
|
3139
3139
|
*
|
|
3140
|
-
* @param actionId The ID of an action that is defined in
|
|
3140
|
+
* @param actionId The ID of an action that is defined in the manifest.
|
|
3141
3141
|
* @param actionFunction The function that is run when the action is invoked.
|
|
3142
3142
|
*/
|
|
3143
3143
|
associate: (actionId: string, actionFunction: (arg?: any) => void) => void;
|
|
@@ -3152,14 +3152,14 @@ declare namespace Office {
|
|
|
3152
3152
|
*
|
|
3153
3153
|
* - {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/shared-runtime-requirement-sets | SharedRuntime 1.1}
|
|
3154
3154
|
*
|
|
3155
|
-
* @param shortcuts An object of custom shortcuts with keys being the IDs of the actions
|
|
3155
|
+
* @param shortcuts An object of custom shortcuts with keys being the IDs of the actions and values being the shortcut combinations. For example, `{"SetItalic": "Ctrl+1", "SetBold": "Ctrl+2"}`.
|
|
3156
3156
|
* To learn how to specify a valid action ID and a key combination, see {@link https://learn.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.)
|
|
3157
3157
|
* @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.
|
|
3158
3158
|
* Otherwise, the promise will be rejected with error code and error message. An "InvalidOperation" error code is returned if any action ID in `shortcuts` does not exist, or if shortcut combination is invalid.
|
|
3159
3159
|
*/
|
|
3160
3160
|
replaceShortcuts(shortcuts: {[actionId: string]: string}): Promise<void>;
|
|
3161
3161
|
/**
|
|
3162
|
-
* Gets the existing shortcuts for the add-in. The set always includes (1) the shortcuts defined in the add-in's
|
|
3162
|
+
* Gets the existing shortcuts for the add-in. The set always includes (1) the shortcuts defined in the add-in's manifest for keyboard shortcuts and (2) the current user's custom shortcuts if those exist.
|
|
3163
3163
|
* The shortcut can be `null` if it conflicts with the shortcut of another add-in or with the Office application. Specifically, it would be `null` if, when prompted to choose which shortcut to use, the user didn't choose the action of the current add-in. For more information about conflicts with shortcuts, see {@link https://learn.microsoft.com/office/dev/add-ins/design/keyboard-shortcuts#avoid-key-combinations-in-use-by-other-add-ins | Avoid key combinations in use by other add-ins}.
|
|
3164
3164
|
*
|
|
3165
3165
|
* @remarks
|
|
@@ -3170,7 +3170,7 @@ declare namespace Office {
|
|
|
3170
3170
|
*
|
|
3171
3171
|
* - {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/shared-runtime-requirement-sets | SharedRuntime 1.1}
|
|
3172
3172
|
*
|
|
3173
|
-
* @returns A promise that resolves to an object of shortcuts, with keys being the IDs of the actions
|
|
3173
|
+
* @returns A promise that resolves to an object of shortcuts, with keys being the IDs of the actions and values being the shortcut combinations. For example, `{"SetItalic": "Ctrl+1", "SetBold": "Ctrl+2", "SetUnderline": null}`.
|
|
3174
3174
|
*/
|
|
3175
3175
|
getShortcuts(): Promise<{[actionId: string]: string|null}>;
|
|
3176
3176
|
/**
|
|
@@ -8450,7 +8450,7 @@ declare namespace Office {
|
|
|
8450
8450
|
* This method is available in the DialogApi requirement set for Excel, PowerPoint, or Word add-ins, and in the Mailbox requirement set 1.4
|
|
8451
8451
|
* for Outlook. For more on how to specify a requirement set in your manifest, see
|
|
8452
8452
|
* {@link https://learn.microsoft.com/office/dev/add-ins/develop/specify-office-hosts-and-api-requirements | Specify Office applications and API requirements},
|
|
8453
|
-
* if you're using the
|
|
8453
|
+
* if you're using the add-in only manifest. If you're using the unified manifest for Microsoft 365, see
|
|
8454
8454
|
* {@link https://learn.microsoft.com/office/dev/add-ins/develop/unified-manifest-overview | Office Add-ins with the unified app manifest for Microsoft 365}.
|
|
8455
8455
|
*
|
|
8456
8456
|
* The initial page must be on the same domain as the parent page (the startAddress parameter). After the initial page loads, you can go to
|
|
@@ -8553,7 +8553,7 @@ declare namespace Office {
|
|
|
8553
8553
|
* This method is available in the DialogApi requirement set for Excel, PowerPoint, or Word add-ins, and in the Mailbox requirement set 1.4
|
|
8554
8554
|
* for Outlook. For more on how to specify a requirement set in your manifest, see
|
|
8555
8555
|
* {@link https://learn.microsoft.com/office/dev/add-ins/develop/specify-office-hosts-and-api-requirements | Specify Office applications and API requirements},
|
|
8556
|
-
* if you're using the
|
|
8556
|
+
* if you're using the add-in only manifest. If you're using the unified manifest for Microsoft 365, see
|
|
8557
8557
|
* {@link https://learn.microsoft.com/office/dev/add-ins/develop/unified-manifest-overview | Office Add-ins with the unified app manifest for Microsoft 365}.
|
|
8558
8558
|
*
|
|
8559
8559
|
* The initial page must be on the same domain as the parent page (the startAddress parameter). After the initial page loads, you can go to
|
|
@@ -8722,7 +8722,7 @@ declare namespace Office {
|
|
|
8722
8722
|
* this API isn't supported in add-ins that implement a task pane. On these clients, the API is only supported in add-ins that implement event-based activation
|
|
8723
8723
|
* or integrated spam reporting.
|
|
8724
8724
|
*
|
|
8725
|
-
* - If your add-in uses the
|
|
8725
|
+
* - If your add-in uses the add-in only manifest, the URL returned matches the `resid` value of the **RuntimeOverride** element of type `javascript`.
|
|
8726
8726
|
* To learn more, see {@link https://learn.microsoft.com/javascript/api/manifest/override#override-element-for-runtime | Override element for Runtime}.
|
|
8727
8727
|
*
|
|
8728
8728
|
* - If your add-in uses the unified manifest for Microsoft 365, the URL returned matches the value of the `script` property in the
|
|
@@ -12154,7 +12154,7 @@ declare namespace Office {
|
|
|
12154
12154
|
*/
|
|
12155
12155
|
getEntitiesByType(entityType: MailboxEnums.EntityType | string): Array<string | Contact | MeetingSuggestion | PhoneNumber | TaskSuggestion>;
|
|
12156
12156
|
/**
|
|
12157
|
-
* Returns well-known entities in the selected item that pass the named filter defined in an
|
|
12157
|
+
* Returns well-known entities in the selected item that pass the named filter defined in an add-in only manifest file.
|
|
12158
12158
|
*
|
|
12159
12159
|
* **Warning**: Entity-based contextual Outlook add-ins are now retired. However, regular expression rules are still supported.
|
|
12160
12160
|
* We recommend updating your contextual add-in to use regular expression rules as an alternative solution.
|
|
@@ -12165,7 +12165,7 @@ declare namespace Office {
|
|
|
12165
12165
|
*
|
|
12166
12166
|
* @returns
|
|
12167
12167
|
* The entities that match the regular expression defined in the `ItemHasKnownEntity` rule element in the
|
|
12168
|
-
* manifest
|
|
12168
|
+
* add-in manifest file with the specified `FilterName` element value. If there's no `ItemHasKnownEntity` element in the manifest with a
|
|
12169
12169
|
* `FilterName` element value that matches the `name` parameter, the method returns `null`. If the `name` parameter matches an
|
|
12170
12170
|
* `ItemHasKnownEntity` element in the manifest, but there are no entities in the current item that match, the method returns an empty array.
|
|
12171
12171
|
*
|
|
@@ -12214,10 +12214,10 @@ declare namespace Office {
|
|
|
12214
12214
|
*/
|
|
12215
12215
|
getInitializationContextAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
12216
12216
|
/**
|
|
12217
|
-
* Returns string values in the selected item that match the regular expressions defined in an
|
|
12217
|
+
* Returns string values in the selected item that match the regular expressions defined in an add-in only manifest file.
|
|
12218
12218
|
*
|
|
12219
12219
|
* @returns
|
|
12220
|
-
* An object that contains arrays of strings that match the regular expressions defined in the manifest
|
|
12220
|
+
* An object that contains arrays of strings that match the regular expressions defined in the add-in manifest file.
|
|
12221
12221
|
* The name of each array is equal to the corresponding value of the RegExName attribute of the matching `ItemHasRegularExpressionMatch` rule.
|
|
12222
12222
|
* For an `ItemHasRegularExpressionMatch` rule, a matching string has to occur in the property
|
|
12223
12223
|
* of the item that's specified by that rule. The `PropertyName` simple type defines the supported properties.
|
|
@@ -12248,10 +12248,10 @@ declare namespace Office {
|
|
|
12248
12248
|
*/
|
|
12249
12249
|
getRegExMatches(): any;
|
|
12250
12250
|
/**
|
|
12251
|
-
* Returns string values in the selected item that match the named regular expression defined in an
|
|
12251
|
+
* Returns string values in the selected item that match the named regular expression defined in an add-in only manifest file.
|
|
12252
12252
|
*
|
|
12253
12253
|
* @returns
|
|
12254
|
-
* An array that contains the strings that match the regular expression defined in the `ItemHasRegularExpressionMatch` rule element in the manifest
|
|
12254
|
+
* An array that contains the strings that match the regular expression defined in the `ItemHasRegularExpressionMatch` rule element in the add-in manifest file,
|
|
12255
12255
|
* with the specified `RegExName` element value.
|
|
12256
12256
|
*
|
|
12257
12257
|
* @remarks
|
|
@@ -12302,11 +12302,11 @@ declare namespace Office {
|
|
|
12302
12302
|
*/
|
|
12303
12303
|
getSelectedEntities(): Entities;
|
|
12304
12304
|
/**
|
|
12305
|
-
* Returns string values in a highlighted match that match the regular expressions defined in an
|
|
12305
|
+
* Returns string values in a highlighted match that match the regular expressions defined in an add-in only manifest file.
|
|
12306
12306
|
* Highlighted matches apply to contextual add-ins.
|
|
12307
12307
|
*
|
|
12308
12308
|
* @returns
|
|
12309
|
-
* An object that contains arrays of strings that match the regular expressions defined in the manifest
|
|
12309
|
+
* An object that contains arrays of strings that match the regular expressions defined in the add-in manifest file.
|
|
12310
12310
|
* The name of each array is equal to the corresponding value of the `RegExName` attribute of the matching `ItemHasRegularExpressionMatch` rule.
|
|
12311
12311
|
* For an `ItemHasRegularExpressionMatch` rule, a matching string has to occur in the property of the item that's specified by that rule.
|
|
12312
12312
|
* The `PropertyName` simple type defines the supported properties.
|
|
@@ -18382,7 +18382,7 @@ declare namespace Office {
|
|
|
18382
18382
|
*/
|
|
18383
18383
|
getEntitiesByType(entityType: MailboxEnums.EntityType | string): Array<string | Contact | MeetingSuggestion | PhoneNumber | TaskSuggestion>;
|
|
18384
18384
|
/**
|
|
18385
|
-
* Returns well-known entities in the selected item that pass the named filter defined in an
|
|
18385
|
+
* Returns well-known entities in the selected item that pass the named filter defined in an add-in only manifest file.
|
|
18386
18386
|
*
|
|
18387
18387
|
* **Warning**: Entity-based contextual Outlook add-ins are now retired. However, regular expression rules are still supported.
|
|
18388
18388
|
* We recommend updating your contextual add-in to use regular expression rules as an alternative solution.
|
|
@@ -18393,7 +18393,7 @@ declare namespace Office {
|
|
|
18393
18393
|
*
|
|
18394
18394
|
* @returns
|
|
18395
18395
|
* The entities that match the regular expression defined in the `ItemHasKnownEntity` rule element in the
|
|
18396
|
-
* manifest
|
|
18396
|
+
* add-in manifest file with the specified `FilterName` element value. If there's no `ItemHasKnownEntity` element in the manifest with a
|
|
18397
18397
|
* `FilterName` element value that matches the `name` parameter, the method returns `null`. If the `name` parameter matches an
|
|
18398
18398
|
* `ItemHasKnownEntity` element in the manifest, but there are no entities in the current item that match, the method returns an empty array.
|
|
18399
18399
|
*
|
|
@@ -18442,10 +18442,10 @@ declare namespace Office {
|
|
|
18442
18442
|
*/
|
|
18443
18443
|
getInitializationContextAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
18444
18444
|
/**
|
|
18445
|
-
* Returns string values in the selected item that match the regular expressions defined in an
|
|
18445
|
+
* Returns string values in the selected item that match the regular expressions defined in an add-in only manifest file.
|
|
18446
18446
|
*
|
|
18447
18447
|
* @returns
|
|
18448
|
-
* An object that contains arrays of strings that match the regular expressions defined in the manifest
|
|
18448
|
+
* An object that contains arrays of strings that match the regular expressions defined in the add-in manifest file.
|
|
18449
18449
|
* The name of each array is equal to the corresponding value of the RegExName attribute of the matching `ItemHasRegularExpressionMatch` rule.
|
|
18450
18450
|
* For an `ItemHasRegularExpressionMatch` rule, a matching string has to occur in the property
|
|
18451
18451
|
* of the item that's specified by that rule. The `PropertyName` simple type defines the supported properties.
|
|
@@ -18476,10 +18476,10 @@ declare namespace Office {
|
|
|
18476
18476
|
*/
|
|
18477
18477
|
getRegExMatches(): any;
|
|
18478
18478
|
/**
|
|
18479
|
-
* Returns string values in the selected item that match the named regular expression defined in an
|
|
18479
|
+
* Returns string values in the selected item that match the named regular expression defined in an add-in only manifest file.
|
|
18480
18480
|
*
|
|
18481
18481
|
* @returns
|
|
18482
|
-
* An array that contains the strings that match the regular expression defined in the `ItemHasRegularExpressionMatch` rule element in the manifest
|
|
18482
|
+
* An array that contains the strings that match the regular expression defined in the `ItemHasRegularExpressionMatch` rule element in the add-in manifest file,
|
|
18483
18483
|
* with the specified `RegExName` element value.
|
|
18484
18484
|
*
|
|
18485
18485
|
* @remarks
|
|
@@ -18530,11 +18530,11 @@ declare namespace Office {
|
|
|
18530
18530
|
*/
|
|
18531
18531
|
getSelectedEntities(): Entities;
|
|
18532
18532
|
/**
|
|
18533
|
-
* Returns string values in a highlighted match that match the regular expressions defined in an
|
|
18533
|
+
* Returns string values in a highlighted match that match the regular expressions defined in an add-in only manifest file.
|
|
18534
18534
|
* Highlighted matches apply to contextual add-ins.
|
|
18535
18535
|
*
|
|
18536
18536
|
* @returns
|
|
18537
|
-
* An object that contains arrays of strings that match the regular expressions defined in the manifest
|
|
18537
|
+
* An object that contains arrays of strings that match the regular expressions defined in the add-in manifest file.
|
|
18538
18538
|
* The name of each array is equal to the corresponding value of the `RegExName` attribute of the matching `ItemHasRegularExpressionMatch` rule.
|
|
18539
18539
|
* For an `ItemHasRegularExpressionMatch` rule, a matching string has to occur in the property of the item that's specified by that rule.
|
|
18540
18540
|
* The `PropertyName` simple type defines the supported properties.
|
|
@@ -20783,7 +20783,7 @@ declare namespace Office {
|
|
|
20783
20783
|
* The `commandId` value must match the task pane ID specified in the manifest of your add-in. The markup depends on the type of manifest your
|
|
20784
20784
|
* add-in uses.
|
|
20785
20785
|
*
|
|
20786
|
-
* - **
|
|
20786
|
+
* - **Add-in only manifest**: The `id` attribute of the {@link https://learn.microsoft.com/javascript/api/manifest/control | Control} element representing the task pane.
|
|
20787
20787
|
*
|
|
20788
20788
|
* - **Unified manifest for Microsoft 365**: The "id" property of the task pane command in the "extensions.ribbons.tabs.groups.controls" array.
|
|
20789
20789
|
*
|
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.491",
|
|
4
4
|
"description": "TypeScript definitions for office-js-preview",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
|
-
"typesPublisherContentHash": "
|
|
48
|
+
"typesPublisherContentHash": "cb6c4af002a2cccabb7dd32d8940b20a3a0c76bc06e5bf94e0748130998c5a88",
|
|
49
49
|
"typeScriptVersion": "4.8",
|
|
50
50
|
"nonNpm": true
|
|
51
51
|
}
|