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