@types/office-js-preview 1.0.456 → 1.0.458
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-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, 26 Mar 2024 18:07:46 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js-preview/index.d.ts
CHANGED
|
@@ -20467,11 +20467,11 @@ declare namespace Office {
|
|
|
20467
20467
|
*
|
|
20468
20468
|
* **Important**:
|
|
20469
20469
|
*
|
|
20470
|
-
*
|
|
20471
|
-
* If you're using an earlier build that supports the integrated spam-reporting feature, use the
|
|
20472
|
-
* property instead.
|
|
20470
|
+
* - You can only use this property in a spam-reporting add-in in Outlook on Windows (starting in Version 2308 (Build 16724.10000)), on Mac, on the web,
|
|
20471
|
+
* and in new Outlook on Windows (preview). If you're using an earlier build in Outlook on Windows that supports the integrated spam-reporting feature, use the
|
|
20472
|
+
* `postProcessingAction` property instead.
|
|
20473
20473
|
*
|
|
20474
|
-
* If the property is set to `Office.MailboxEnums.MoveSpamItemTo.CustomFolder`, you must specify the name of the folder to which
|
|
20474
|
+
* - If the property is set to `Office.MailboxEnums.MoveSpamItemTo.CustomFolder`, you must specify the name of the folder to which
|
|
20475
20475
|
* the message will be moved in the `folderName` property of the `event.completed` call. Otherwise, the `moveItemTo` property will default to
|
|
20476
20476
|
* `Office.MailboxEnums.MoveSpamItemTo.JunkFolder` and move the reported message to the **Junk Email** folder.
|
|
20477
20477
|
*
|
|
@@ -20516,10 +20516,12 @@ declare namespace Office {
|
|
|
20516
20516
|
*
|
|
20517
20517
|
* **Important**:
|
|
20518
20518
|
*
|
|
20519
|
-
* In Outlook on Windows, you can only use this property in earlier builds that support the integrated spam-reporting feature.
|
|
20519
|
+
* - In Outlook on Windows, you can only use this property in earlier builds that support the integrated spam-reporting feature.
|
|
20520
20520
|
* If you're on Version 2308 (Build 16724.10000) or later, use the `moveItemTo` property instead.
|
|
20521
20521
|
*
|
|
20522
|
-
*
|
|
20522
|
+
* - This property isn't supported in Outlook on the web, on Mac, or in new Outlook on Windows (preview). Use the `moveItemTo` property instead.
|
|
20523
|
+
*
|
|
20524
|
+
* - If the property is set to `moveToCustomFolder`, you must specify the name of the folder to which
|
|
20523
20525
|
* the message will be moved in the `folderName` property of the `event.completed` call. Otherwise, the `postProcessingAction` property will default to
|
|
20524
20526
|
* `moveToSpamFolder` and move the reported message to the **Junk Email** folder.
|
|
20525
20527
|
*
|
|
@@ -20539,6 +20541,12 @@ declare namespace Office {
|
|
|
20539
20541
|
*
|
|
20540
20542
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
|
|
20541
20543
|
*
|
|
20544
|
+
* **Important**: In Outlook on the web or in new Outlook on Windows (preview), a post-processing dialog isn't shown once the add-in completes processing a
|
|
20545
|
+
* reported message. This applies even if `showPostProcessingDialog` is configured. However, depending on how you configured the `moveItemTo` property in the
|
|
20546
|
+
* `event.completed` call, a notification is shown to signal when the reported message is deleted or moved to another folder in the mailbox. To learn more, see
|
|
20547
|
+
* the "Review feature behavior and limitations" section of
|
|
20548
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/spam-reporting#review-feature-behavior-and-limitations | Implement an integrated spam-reporting add-in (preview)}.
|
|
20549
|
+
*
|
|
20542
20550
|
* @beta
|
|
20543
20551
|
*/
|
|
20544
20552
|
showPostProcessingDialog?: object;
|
|
@@ -91385,6 +91393,14 @@ declare namespace Word {
|
|
|
91385
91393
|
* @param insertLocation Required. The value must be 'Replace', 'Start', or 'End'. 'Replace' cannot be used with 'RichTextTable' and 'RichTextTableRow' content controls.
|
|
91386
91394
|
*/
|
|
91387
91395
|
insertText(text: string, insertLocation: Word.InsertLocation.replace | Word.InsertLocation.start | Word.InsertLocation.end | "Replace" | "Start" | "End"): Word.Range;
|
|
91396
|
+
/**
|
|
91397
|
+
* Resets the state of the content control.
|
|
91398
|
+
*
|
|
91399
|
+
* @remarks
|
|
91400
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
91401
|
+
* @beta
|
|
91402
|
+
*/
|
|
91403
|
+
resetState(): void;
|
|
91388
91404
|
/**
|
|
91389
91405
|
* Performs a search with the specified SearchOptions on the scope of the content control object. The search results are a collection of range objects.
|
|
91390
91406
|
*
|
|
@@ -91421,6 +91437,26 @@ declare namespace Word {
|
|
|
91421
91437
|
* @param selectionMode Optional. The selection mode must be 'Select', 'Start', or 'End'. 'Select' is the default.
|
|
91422
91438
|
*/
|
|
91423
91439
|
select(selectionMode?: "Select" | "Start" | "End"): void;
|
|
91440
|
+
/**
|
|
91441
|
+
* Sets the state of the content control.
|
|
91442
|
+
*
|
|
91443
|
+
* @remarks
|
|
91444
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
91445
|
+
* @beta
|
|
91446
|
+
*
|
|
91447
|
+
* @param contentControlState State to be set.
|
|
91448
|
+
*/
|
|
91449
|
+
setState(contentControlState: Word.ContentControlState): void;
|
|
91450
|
+
/**
|
|
91451
|
+
* Sets the state of the content control.
|
|
91452
|
+
*
|
|
91453
|
+
* @remarks
|
|
91454
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
91455
|
+
* @beta
|
|
91456
|
+
*
|
|
91457
|
+
* @param contentControlState State to be set.
|
|
91458
|
+
*/
|
|
91459
|
+
setState(contentControlState: "Error"): void;
|
|
91424
91460
|
/**
|
|
91425
91461
|
* Splits the content control into child ranges by using delimiters.
|
|
91426
91462
|
*
|
|
@@ -99602,6 +99638,22 @@ declare namespace Word {
|
|
|
99602
99638
|
*/
|
|
99603
99639
|
hidden = "Hidden",
|
|
99604
99640
|
}
|
|
99641
|
+
/**
|
|
99642
|
+
* Represents the state of the content control.
|
|
99643
|
+
*
|
|
99644
|
+
* @remarks
|
|
99645
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
99646
|
+
* @beta
|
|
99647
|
+
*/
|
|
99648
|
+
enum ContentControlState {
|
|
99649
|
+
/**
|
|
99650
|
+
* Error state.
|
|
99651
|
+
* @remarks
|
|
99652
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
99653
|
+
* @beta
|
|
99654
|
+
*/
|
|
99655
|
+
error = "Error",
|
|
99656
|
+
}
|
|
99605
99657
|
/**
|
|
99606
99658
|
* The supported styles for underline format.
|
|
99607
99659
|
*
|
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.458",
|
|
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": "cecd1f6b0ef9fb9f807df77422ba586803f5344ad77fed0ae1311593787ec02a",
|
|
49
49
|
"typeScriptVersion": "4.7",
|
|
50
50
|
"nonNpm": true
|
|
51
51
|
}
|