@types/office-js-preview 1.0.412 → 1.0.414
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/LICENSE +0 -0
- office-js-preview/README.md +1 -1
- office-js-preview/index.d.ts +172 -14
- office-js-preview/package.json +3 -3
office-js-preview/LICENSE
CHANGED
|
File without changes
|
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: Thu,
|
|
11
|
+
* Last updated: Thu, 21 Sep 2023 17:06:04 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
|
@@ -8536,13 +8536,14 @@ declare namespace Office {
|
|
|
8536
8536
|
/**
|
|
8537
8537
|
* Specifies the category color.
|
|
8538
8538
|
*
|
|
8539
|
-
* **Note**: The actual color depends on how the Outlook client renders it.
|
|
8540
|
-
* In this case, the colors noted on each preset are for the Outlook desktop client.
|
|
8541
|
-
*
|
|
8542
8539
|
* @remarks
|
|
8543
8540
|
* [Api set: Mailbox 1.8]
|
|
8544
8541
|
*
|
|
8545
8542
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
8543
|
+
*
|
|
8544
|
+
* **Important**: The actual color depends on how the Outlook client renders it.
|
|
8545
|
+
* In this case, the colors noted on each preset apply to Outlook on Windows, on the web,
|
|
8546
|
+
* and on Mac (starting in Version 16.78).
|
|
8546
8547
|
*/
|
|
8547
8548
|
enum CategoryColor {
|
|
8548
8549
|
/**
|
|
@@ -89320,11 +89321,11 @@ declare namespace Word {
|
|
|
89320
89321
|
* @remarks
|
|
89321
89322
|
* [Api set: WordApi 1.1]
|
|
89322
89323
|
*
|
|
89323
|
-
* Note: The `contentControlType` parameter was introduced in WordApi 1.5.
|
|
89324
|
+
* Note: The `contentControlType` parameter was introduced in WordApi 1.5. `PlainText` support was added in WordApi 1.5. `CheckBox` support in currently in preview.
|
|
89324
89325
|
*
|
|
89325
|
-
* @param contentControlType Optional.
|
|
89326
|
+
* @param contentControlType Optional. Content control type to insert. Must be 'RichText', 'PlainText', or 'CheckBox'. The default is 'RichText'.
|
|
89326
89327
|
*/
|
|
89327
|
-
insertContentControl(contentControlType?: Word.ContentControlType.richText | Word.ContentControlType.plainText | "RichText" | "PlainText"): Word.ContentControl;
|
|
89328
|
+
insertContentControl(contentControlType?: Word.ContentControlType.richText | Word.ContentControlType.plainText | Word.ContentControlType.checkBox | "RichText" | "PlainText" | "CheckBox"): Word.ContentControl;
|
|
89328
89329
|
/**
|
|
89329
89330
|
* Inserts a document into the body at the specified location.
|
|
89330
89331
|
*
|
|
@@ -89745,6 +89746,23 @@ declare namespace Word {
|
|
|
89745
89746
|
*/
|
|
89746
89747
|
toJSON(): Word.Interfaces.BorderCollectionData;
|
|
89747
89748
|
}
|
|
89749
|
+
/**
|
|
89750
|
+
* The data specific to content controls of type CheckBox.
|
|
89751
|
+
*
|
|
89752
|
+
* @remarks
|
|
89753
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
89754
|
+
* @beta
|
|
89755
|
+
*/
|
|
89756
|
+
interface CheckboxContentControl {
|
|
89757
|
+
/**
|
|
89758
|
+
* Specifies the current state of the checkbox.
|
|
89759
|
+
*
|
|
89760
|
+
* @remarks
|
|
89761
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
89762
|
+
* @beta
|
|
89763
|
+
*/
|
|
89764
|
+
isChecked: boolean;
|
|
89765
|
+
}
|
|
89748
89766
|
/**
|
|
89749
89767
|
* Represents a comment in the document.
|
|
89750
89768
|
*
|
|
@@ -90349,6 +90367,14 @@ declare namespace Word {
|
|
|
90349
90367
|
* [Api set: WordApi 1.1]
|
|
90350
90368
|
*/
|
|
90351
90369
|
cannotEdit: boolean;
|
|
90370
|
+
/**
|
|
90371
|
+
* Gets the checkbox-related data if the content control's type is 'CheckBox'. Returns null otherwise.
|
|
90372
|
+
*
|
|
90373
|
+
* @remarks
|
|
90374
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
90375
|
+
* @beta
|
|
90376
|
+
*/
|
|
90377
|
+
readonly checkboxContentControl: Word.CheckboxContentControl;
|
|
90352
90378
|
/**
|
|
90353
90379
|
* Specifies the color of the content control. Color is specified in '#RRGGBB' format or by using the color name.
|
|
90354
90380
|
*
|
|
@@ -90905,10 +90931,11 @@ declare namespace Word {
|
|
|
90905
90931
|
*/
|
|
90906
90932
|
interface ContentControlOptions {
|
|
90907
90933
|
/**
|
|
90908
|
-
* An array of content control types, item must be 'RichText' or '
|
|
90934
|
+
* An array of content control types, item must be 'RichText', 'PlainText', or 'CheckBox'.
|
|
90909
90935
|
*
|
|
90910
90936
|
* @remarks
|
|
90911
90937
|
* [Api set: WordApi 1.5]
|
|
90938
|
+
* Note: `PlainText` support was added in WordApi 1.5. `CheckBox` support is currently in preview.
|
|
90912
90939
|
*/
|
|
90913
90940
|
types: Word.ContentControlType[];
|
|
90914
90941
|
}
|
|
@@ -91635,6 +91662,17 @@ declare namespace Word {
|
|
|
91635
91662
|
* @param closeBehavior Optional. The close behavior must be 'Save' or 'SkipSave'. Default value is 'Save'.
|
|
91636
91663
|
*/
|
|
91637
91664
|
close(closeBehavior?: "Save" | "SkipSave"): void;
|
|
91665
|
+
/**
|
|
91666
|
+
* Displays revision marks that indicate where the specified document differs from another document.
|
|
91667
|
+
*
|
|
91668
|
+
* @remarks
|
|
91669
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
91670
|
+
* @beta
|
|
91671
|
+
*
|
|
91672
|
+
* @param filePath Required. The path of the document with which the specified document is compared.
|
|
91673
|
+
* @param documentCompareOptions Optional. The additional options that specifies the behavior of comparing document.
|
|
91674
|
+
*/
|
|
91675
|
+
compare(filePath: string, documentCompareOptions?: Word.DocumentCompareOptions): void;
|
|
91638
91676
|
/**
|
|
91639
91677
|
* Deletes a bookmark, if it exists, from the document.
|
|
91640
91678
|
*
|
|
@@ -94288,11 +94326,11 @@ declare namespace Word {
|
|
|
94288
94326
|
* @remarks
|
|
94289
94327
|
* [Api set: WordApi 1.1]
|
|
94290
94328
|
*
|
|
94291
|
-
* Note: The `contentControlType` parameter was introduced in WordApi 1.5.
|
|
94329
|
+
* Note: The `contentControlType` parameter was introduced in WordApi 1.5. `PlainText` support was added in WordApi 1.5. `CheckBox` support is currently in preview.
|
|
94292
94330
|
*
|
|
94293
|
-
* @param contentControlType Optional.
|
|
94331
|
+
* @param contentControlType Optional. Content control type to insert. Must be 'RichText', 'PlainText', or 'CheckBox'. The default is 'RichText'.
|
|
94294
94332
|
*/
|
|
94295
|
-
insertContentControl(contentControlType?: Word.ContentControlType.richText | Word.ContentControlType.plainText | "RichText" | "PlainText"): Word.ContentControl;
|
|
94333
|
+
insertContentControl(contentControlType?: Word.ContentControlType.richText | Word.ContentControlType.plainText | Word.ContentControlType.checkBox | "RichText" | "PlainText" | "CheckBox"): Word.ContentControl;
|
|
94296
94334
|
/**
|
|
94297
94335
|
* Inserts a document into the paragraph at the specified location.
|
|
94298
94336
|
*
|
|
@@ -95080,11 +95118,11 @@ declare namespace Word {
|
|
|
95080
95118
|
* @remarks
|
|
95081
95119
|
* [Api set: WordApi 1.1]
|
|
95082
95120
|
*
|
|
95083
|
-
* Note: The `contentControlType` parameter was introduced in WordApi 1.5.
|
|
95121
|
+
* Note: The `contentControlType` parameter was introduced in WordApi 1.5. `PlainText` support was added in WordApi 1.5. `CheckBox` support is currently in preview.
|
|
95084
95122
|
*
|
|
95085
|
-
* @param contentControlType Optional.
|
|
95123
|
+
* @param contentControlType Optional. Content control type to insert. Must be 'RichText', 'PlainText', or 'CheckBox'. The default is 'RichText'.
|
|
95086
95124
|
*/
|
|
95087
|
-
insertContentControl(contentControlType?: Word.ContentControlType.richText | Word.ContentControlType.plainText | "RichText" | "PlainText"): Word.ContentControl;
|
|
95125
|
+
insertContentControl(contentControlType?: Word.ContentControlType.richText | Word.ContentControlType.plainText | Word.ContentControlType.checkBox | "RichText" | "PlainText" | "CheckBox"): Word.ContentControl;
|
|
95088
95126
|
/**
|
|
95089
95127
|
* Inserts an endnote. The endnote reference is placed after the range.
|
|
95090
95128
|
*
|
|
@@ -95554,6 +95592,72 @@ declare namespace Word {
|
|
|
95554
95592
|
*/
|
|
95555
95593
|
toJSON(): Word.Interfaces.SearchOptionsData;
|
|
95556
95594
|
}
|
|
95595
|
+
/**
|
|
95596
|
+
* Specifies the options to be included in a compare document operation.
|
|
95597
|
+
*
|
|
95598
|
+
* @remarks
|
|
95599
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
95600
|
+
* @beta
|
|
95601
|
+
*/
|
|
95602
|
+
interface DocumentCompareOptions {
|
|
95603
|
+
/**
|
|
95604
|
+
* True adds the document to the list of recently used files on the File menu. The default value is True.
|
|
95605
|
+
*
|
|
95606
|
+
* @remarks
|
|
95607
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
95608
|
+
* @beta
|
|
95609
|
+
*/
|
|
95610
|
+
addToRecentFiles?: boolean;
|
|
95611
|
+
/**
|
|
95612
|
+
* The reviewer name associated with the differences generated by the comparison.
|
|
95613
|
+
If unspecified, the value defaults to the author name of the revised document or the string "Comparison" if no author information is present.
|
|
95614
|
+
*
|
|
95615
|
+
* @remarks
|
|
95616
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
95617
|
+
* @beta
|
|
95618
|
+
*/
|
|
95619
|
+
authorName?: string;
|
|
95620
|
+
/**
|
|
95621
|
+
* The target document for the comparison. Default value is 'CompareTargetCurrent'.
|
|
95622
|
+
*
|
|
95623
|
+
* @remarks
|
|
95624
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
95625
|
+
* @beta
|
|
95626
|
+
*/
|
|
95627
|
+
compareTarget?: Word.CompareTarget | "CompareTargetCurrent" | "CompareTargetSelected" | "CompareTargetNew";
|
|
95628
|
+
/**
|
|
95629
|
+
* True (default) for the comparison to include detection of format changes.
|
|
95630
|
+
*
|
|
95631
|
+
* @remarks
|
|
95632
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
95633
|
+
* @beta
|
|
95634
|
+
*/
|
|
95635
|
+
detectFormatChanges?: boolean;
|
|
95636
|
+
/**
|
|
95637
|
+
* True compares the documents without notifying a user of problems. The default value is False.
|
|
95638
|
+
*
|
|
95639
|
+
* @remarks
|
|
95640
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
95641
|
+
* @beta
|
|
95642
|
+
*/
|
|
95643
|
+
ignoreAllComparisonWarnings?: boolean;
|
|
95644
|
+
/**
|
|
95645
|
+
* True removes date and time stamp information from tracked changes in the returned Document object. The default value is False.
|
|
95646
|
+
*
|
|
95647
|
+
* @remarks
|
|
95648
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
95649
|
+
* @beta
|
|
95650
|
+
*/
|
|
95651
|
+
removeDateAndTime?: boolean;
|
|
95652
|
+
/**
|
|
95653
|
+
* True removes all user information from comments, revisions, and the properties dialog box in the returned Document object. The default value is False.
|
|
95654
|
+
*
|
|
95655
|
+
* @remarks
|
|
95656
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
95657
|
+
* @beta
|
|
95658
|
+
*/
|
|
95659
|
+
removePersonalInformation?: boolean;
|
|
95660
|
+
}
|
|
95557
95661
|
/**
|
|
95558
95662
|
* Represents a section in a Word document.
|
|
95559
95663
|
*
|
|
@@ -102094,6 +102198,36 @@ declare namespace Word {
|
|
|
102094
102198
|
*/
|
|
102095
102199
|
solid = "Solid",
|
|
102096
102200
|
}
|
|
102201
|
+
/**
|
|
102202
|
+
* Specifies the target document for displaying document comparison differences.
|
|
102203
|
+
*
|
|
102204
|
+
* @remarks
|
|
102205
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
102206
|
+
* @beta
|
|
102207
|
+
*/
|
|
102208
|
+
enum CompareTarget {
|
|
102209
|
+
/**
|
|
102210
|
+
* Places comparison differences in the current document.
|
|
102211
|
+
* @remarks
|
|
102212
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
102213
|
+
* @beta
|
|
102214
|
+
*/
|
|
102215
|
+
compareTargetCurrent = "CompareTargetCurrent",
|
|
102216
|
+
/**
|
|
102217
|
+
* Places comparison differences in the target document.
|
|
102218
|
+
* @remarks
|
|
102219
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
102220
|
+
* @beta
|
|
102221
|
+
*/
|
|
102222
|
+
compareTargetSelected = "CompareTargetSelected",
|
|
102223
|
+
/**
|
|
102224
|
+
* Places comparison differences in a new document.
|
|
102225
|
+
* @remarks
|
|
102226
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
102227
|
+
* @beta
|
|
102228
|
+
*/
|
|
102229
|
+
compareTargetNew = "CompareTargetNew",
|
|
102230
|
+
}
|
|
102097
102231
|
enum ErrorCodes {
|
|
102098
102232
|
accessDenied = "AccessDenied",
|
|
102099
102233
|
generalException = "GeneralException",
|
|
@@ -103997,6 +104131,14 @@ declare namespace Word {
|
|
|
103997
104131
|
* [Api set: WordApi 1.1]
|
|
103998
104132
|
*/
|
|
103999
104133
|
cannotEdit?: boolean;
|
|
104134
|
+
/**
|
|
104135
|
+
* Gets the checkbox-related data if the content control's type is 'CheckBox'. Returns null otherwise.
|
|
104136
|
+
*
|
|
104137
|
+
* @remarks
|
|
104138
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
104139
|
+
* @beta
|
|
104140
|
+
*/
|
|
104141
|
+
checkboxContentControl?: Word.CheckboxContentControl;
|
|
104000
104142
|
/**
|
|
104001
104143
|
* Specifies the color of the content control. Color is specified in '#RRGGBB' format or by using the color name.
|
|
104002
104144
|
*
|
|
@@ -106043,7 +106185,7 @@ declare namespace Word {
|
|
|
106043
106185
|
*/
|
|
106044
106186
|
$all?: boolean;
|
|
106045
106187
|
/**
|
|
106046
|
-
* For EACH ITEM in the collection: Specifies the line color for the border.
|
|
106188
|
+
* For EACH ITEM in the collection: Specifies the line color for the border. Color is specified in ‘#RRGGBB’ format or by using the color name.
|
|
106047
106189
|
*
|
|
106048
106190
|
* @remarks
|
|
106049
106191
|
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
@@ -106474,6 +106616,14 @@ declare namespace Word {
|
|
|
106474
106616
|
* [Api set: WordApi 1.1]
|
|
106475
106617
|
*/
|
|
106476
106618
|
cannotEdit?: boolean;
|
|
106619
|
+
/**
|
|
106620
|
+
* Gets the checkbox-related data if the content control's type is 'CheckBox'. Returns null otherwise.
|
|
106621
|
+
*
|
|
106622
|
+
* @remarks
|
|
106623
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
106624
|
+
* @beta
|
|
106625
|
+
*/
|
|
106626
|
+
checkboxContentControl?: boolean;
|
|
106477
106627
|
/**
|
|
106478
106628
|
* Specifies the color of the content control. Color is specified in '#RRGGBB' format or by using the color name.
|
|
106479
106629
|
*
|
|
@@ -106640,6 +106790,14 @@ declare namespace Word {
|
|
|
106640
106790
|
* [Api set: WordApi 1.1]
|
|
106641
106791
|
*/
|
|
106642
106792
|
cannotEdit?: boolean;
|
|
106793
|
+
/**
|
|
106794
|
+
* For EACH ITEM in the collection: Gets the checkbox-related data if the content control's type is 'CheckBox'. Returns null otherwise.
|
|
106795
|
+
*
|
|
106796
|
+
* @remarks
|
|
106797
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
106798
|
+
* @beta
|
|
106799
|
+
*/
|
|
106800
|
+
checkboxContentControl?: boolean;
|
|
106643
106801
|
/**
|
|
106644
106802
|
* For EACH ITEM in the collection: Specifies the color of the content control. Color is specified in '#RRGGBB' format or by using the color name.
|
|
106645
106803
|
*
|
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.414",
|
|
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": "
|
|
49
|
-
"typeScriptVersion": "4.
|
|
48
|
+
"typesPublisherContentHash": "eeeb1c7f7227d9df8aa5427d0a157961312554f233650da1dc2dc6365f966a8f",
|
|
49
|
+
"typeScriptVersion": "4.5"
|
|
50
50
|
}
|