@types/office-js-preview 1.0.441 → 1.0.442

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.
@@ -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: Thu, 18 Jan 2024 21:07:10 GMT
11
+ * Last updated: Thu, 25 Jan 2024 17:06:50 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
@@ -89230,7 +89230,7 @@ declare namespace Word {
89230
89230
  berry = "Berry",
89231
89231
  }
89232
89232
  /**
89233
- * Properties defining the behavior of the pop-up for a given critique.
89233
+ * Properties defining the behavior of the pop-up menu for a given critique.
89234
89234
  *
89235
89235
  * @remarks
89236
89236
  * [Api set: WordApi BETA (PREVIEW ONLY)]
@@ -89238,7 +89238,7 @@ declare namespace Word {
89238
89238
  */
89239
89239
  interface CritiquePopupOptions {
89240
89240
  /**
89241
- * Gets the manifest resource id of the string to use for branding.
89241
+ * Gets the manifest resource ID of the string to use for branding. This branding text appears next to your add-in icon in the pop-up menu.
89242
89242
  *
89243
89243
  * @remarks
89244
89244
  * [Api set: WordApi BETA (PREVIEW ONLY)]
@@ -89246,7 +89246,7 @@ declare namespace Word {
89246
89246
  */
89247
89247
  brandingTextResourceId: string;
89248
89248
  /**
89249
- * Gets the manifest resource id of the string to use as subtitle.
89249
+ * Gets the manifest resource ID of the string to use as the subtitle.
89250
89250
  *
89251
89251
  * @remarks
89252
89252
  * [Api set: WordApi BETA (PREVIEW ONLY)]
@@ -89254,7 +89254,7 @@ declare namespace Word {
89254
89254
  */
89255
89255
  subtitleResourceId: string;
89256
89256
  /**
89257
- * Gets the suggestions to display in the critique pop-up.
89257
+ * Gets the suggestions to display in the critique pop-up menu.
89258
89258
  *
89259
89259
  * @remarks
89260
89260
  * [Api set: WordApi BETA (PREVIEW ONLY)]
@@ -89262,7 +89262,7 @@ declare namespace Word {
89262
89262
  */
89263
89263
  suggestions: string[];
89264
89264
  /**
89265
- * Gets the manifest resource id of the string to use as title.
89265
+ * Gets the manifest resource ID of the string to use as the title.
89266
89266
  *
89267
89267
  * @remarks
89268
89268
  * [Api set: WordApi BETA (PREVIEW ONLY)]
@@ -89295,7 +89295,7 @@ declare namespace Word {
89295
89295
  */
89296
89296
  length: number;
89297
89297
  /**
89298
- * Specifies the behavior of the pop-up for the critique.
89298
+ * Specifies the behavior of the pop-up menu for the critique.
89299
89299
  *
89300
89300
  * @remarks
89301
89301
  * [Api set: WordApi BETA (PREVIEW ONLY)]
@@ -89581,7 +89581,7 @@ declare namespace Word {
89581
89581
  id: string;
89582
89582
  }
89583
89583
  /**
89584
- * Holds action information that is passed back on annotation pop-up action event.
89584
+ * Represents action information that's passed back on annotation pop-up action event.
89585
89585
  *
89586
89586
  * @remarks
89587
89587
  * [Api set: WordApi BETA (PREVIEW ONLY)]
@@ -89589,7 +89589,7 @@ declare namespace Word {
89589
89589
  */
89590
89590
  interface AnnotationPopupActionEventArgs {
89591
89591
  /**
89592
- * Specifies the chosen action in the pop-up.
89592
+ * Specifies the chosen action in the pop-up menu.
89593
89593
  *
89594
89594
  * @remarks
89595
89595
  * [Api set: WordApi BETA (PREVIEW ONLY)]
@@ -90439,6 +90439,14 @@ declare namespace Word {
90439
90439
  select?: string;
90440
90440
  expand?: string;
90441
90441
  }): Word.CheckboxContentControl;
90442
+ /**
90443
+ * Track the object for automatic adjustment based on surrounding changes in the document. This call is a shorthand for {@link https://learn.microsoft.com/javascript/api/office/officeextension.clientrequestcontext#office-officeextension-clientrequestcontext-trackedobjects-member | context.trackedObjects.add(thisObject)}. If you're using this object across `.sync` calls and outside the sequential execution of a ".run" batch, and get an "InvalidObjectPath" error when setting a property or invoking a method on the object, you need to add the object to the tracked object collection when the object was first created. If this object is part of a collection, you should also track the parent collection.
90444
+ */
90445
+ track(): Word.CheckboxContentControl;
90446
+ /**
90447
+ * Release the memory associated with this object, if it has previously been tracked. This call is shorthand for {@link https://learn.microsoft.com/javascript/api/office/officeextension.clientrequestcontext#office-officeextension-clientrequestcontext-trackedobjects-member | context.trackedObjects.remove(thisObject)}. Having many tracked objects slows down the host application, so please remember to free any objects you add, once you're done using them. You will need to call `context.sync()` before the memory release takes effect.
90448
+ */
90449
+ untrack(): Word.CheckboxContentControl;
90442
90450
  /**
90443
90451
  * Overrides the JavaScript `toJSON()` method in order to provide more useful output when an API object is passed to `JSON.stringify()`. (`JSON.stringify`, in turn, calls the `toJSON` method of the object that is passed to it.)
90444
90452
  * Whereas the original Word.CheckboxContentControl object is an API object, the `toJSON` method returns a plain JavaScript object (typed as `Word.Interfaces.CheckboxContentControlData`) that contains shallow copies of any loaded child properties from the original object.
@@ -90908,7 +90916,7 @@ declare namespace Word {
90908
90916
  toJSON(): Word.Interfaces.CommentReplyCollectionData;
90909
90917
  }
90910
90918
  /**
90911
- * Represents a content control. Content controls are bounded and potentially labeled regions in a document that serve as containers for specific types of content. Individual content controls may contain contents such as images, tables, or paragraphs of formatted text. Currently, only rich text and plain text content controls are supported.
90919
+ * Represents a content control. Content controls are bounded and potentially labeled regions in a document that serve as containers for specific types of content. Individual content controls may contain contents such as images, tables, or paragraphs of formatted text. Currently, only rich text, plain text, and checkbox content controls are supported.
90912
90920
  *
90913
90921
  * @remarks
90914
90922
  * [Api set: WordApi 1.1]
@@ -91104,7 +91112,7 @@ declare namespace Word {
91104
91112
  */
91105
91113
  styleBuiltIn: Word.BuiltInStyleName | "Other" | "Normal" | "Heading1" | "Heading2" | "Heading3" | "Heading4" | "Heading5" | "Heading6" | "Heading7" | "Heading8" | "Heading9" | "Toc1" | "Toc2" | "Toc3" | "Toc4" | "Toc5" | "Toc6" | "Toc7" | "Toc8" | "Toc9" | "FootnoteText" | "Header" | "Footer" | "Caption" | "FootnoteReference" | "EndnoteReference" | "EndnoteText" | "Title" | "Subtitle" | "Hyperlink" | "Strong" | "Emphasis" | "NoSpacing" | "ListParagraph" | "Quote" | "IntenseQuote" | "SubtleEmphasis" | "IntenseEmphasis" | "SubtleReference" | "IntenseReference" | "BookTitle" | "Bibliography" | "TocHeading" | "TableGrid" | "PlainTable1" | "PlainTable2" | "PlainTable3" | "PlainTable4" | "PlainTable5" | "TableGridLight" | "GridTable1Light" | "GridTable1Light_Accent1" | "GridTable1Light_Accent2" | "GridTable1Light_Accent3" | "GridTable1Light_Accent4" | "GridTable1Light_Accent5" | "GridTable1Light_Accent6" | "GridTable2" | "GridTable2_Accent1" | "GridTable2_Accent2" | "GridTable2_Accent3" | "GridTable2_Accent4" | "GridTable2_Accent5" | "GridTable2_Accent6" | "GridTable3" | "GridTable3_Accent1" | "GridTable3_Accent2" | "GridTable3_Accent3" | "GridTable3_Accent4" | "GridTable3_Accent5" | "GridTable3_Accent6" | "GridTable4" | "GridTable4_Accent1" | "GridTable4_Accent2" | "GridTable4_Accent3" | "GridTable4_Accent4" | "GridTable4_Accent5" | "GridTable4_Accent6" | "GridTable5Dark" | "GridTable5Dark_Accent1" | "GridTable5Dark_Accent2" | "GridTable5Dark_Accent3" | "GridTable5Dark_Accent4" | "GridTable5Dark_Accent5" | "GridTable5Dark_Accent6" | "GridTable6Colorful" | "GridTable6Colorful_Accent1" | "GridTable6Colorful_Accent2" | "GridTable6Colorful_Accent3" | "GridTable6Colorful_Accent4" | "GridTable6Colorful_Accent5" | "GridTable6Colorful_Accent6" | "GridTable7Colorful" | "GridTable7Colorful_Accent1" | "GridTable7Colorful_Accent2" | "GridTable7Colorful_Accent3" | "GridTable7Colorful_Accent4" | "GridTable7Colorful_Accent5" | "GridTable7Colorful_Accent6" | "ListTable1Light" | "ListTable1Light_Accent1" | "ListTable1Light_Accent2" | "ListTable1Light_Accent3" | "ListTable1Light_Accent4" | "ListTable1Light_Accent5" | "ListTable1Light_Accent6" | "ListTable2" | "ListTable2_Accent1" | "ListTable2_Accent2" | "ListTable2_Accent3" | "ListTable2_Accent4" | "ListTable2_Accent5" | "ListTable2_Accent6" | "ListTable3" | "ListTable3_Accent1" | "ListTable3_Accent2" | "ListTable3_Accent3" | "ListTable3_Accent4" | "ListTable3_Accent5" | "ListTable3_Accent6" | "ListTable4" | "ListTable4_Accent1" | "ListTable4_Accent2" | "ListTable4_Accent3" | "ListTable4_Accent4" | "ListTable4_Accent5" | "ListTable4_Accent6" | "ListTable5Dark" | "ListTable5Dark_Accent1" | "ListTable5Dark_Accent2" | "ListTable5Dark_Accent3" | "ListTable5Dark_Accent4" | "ListTable5Dark_Accent5" | "ListTable5Dark_Accent6" | "ListTable6Colorful" | "ListTable6Colorful_Accent1" | "ListTable6Colorful_Accent2" | "ListTable6Colorful_Accent3" | "ListTable6Colorful_Accent4" | "ListTable6Colorful_Accent5" | "ListTable6Colorful_Accent6" | "ListTable7Colorful" | "ListTable7Colorful_Accent1" | "ListTable7Colorful_Accent2" | "ListTable7Colorful_Accent3" | "ListTable7Colorful_Accent4" | "ListTable7Colorful_Accent5" | "ListTable7Colorful_Accent6";
91106
91114
  /**
91107
- * Gets the content control subtype. The subtype can be 'RichTextInline', 'RichTextParagraphs', 'RichTextTableCell', 'RichTextTableRow' and 'RichTextTable' for rich text content controls, or 'PlainTextInline' and 'PlainTextParagraph' for plain text content controls.
91115
+ * Gets the content control subtype. The subtype can be 'RichTextInline', 'RichTextParagraphs', 'RichTextTableCell', 'RichTextTableRow' and 'RichTextTable' for rich text content controls, or 'PlainTextInline' and 'PlainTextParagraph' for plain text content controls, or 'CheckBox' for checkbox content controls.
91108
91116
  *
91109
91117
  * @remarks
91110
91118
  * [Api set: WordApi 1.3]
@@ -91132,7 +91140,7 @@ declare namespace Word {
91132
91140
  */
91133
91141
  title: string;
91134
91142
  /**
91135
- * Gets the content control type. Only rich text and plain text content controls are supported currently.
91143
+ * Gets the content control type. Only rich text, plain text, and checkbox content controls are supported currently.
91136
91144
  *
91137
91145
  * @remarks
91138
91146
  * [Api set: WordApi 1.1]
@@ -92563,7 +92571,7 @@ declare namespace Word {
92563
92571
  */
92564
92572
  readonly onAnnotationInserted: OfficeExtension.EventHandlers<Word.AnnotationInsertedEventArgs>;
92565
92573
  /**
92566
- * Occurs when the user performs an action in an annotation pop-up.
92574
+ * Occurs when the user performs an action in an annotation pop-up menu.
92567
92575
  *
92568
92576
  * @remarks
92569
92577
  * [Api set: WordApi BETA (PREVIEW ONLY)]
@@ -95808,6 +95816,15 @@ declare namespace Word {
95808
95816
  * [Api set: WordApi 1.6]
95809
95817
  */
95810
95818
  getTrackedChanges(): Word.TrackedChangeCollection;
95819
+ /**
95820
+ * Highlights the range temporarily without changing document content.
95821
+ To highlight the text permanently, set the range's Font.HighlightColor.
95822
+ *
95823
+ * @remarks
95824
+ * [Api set: WordApi BETA (PREVIEW ONLY)]
95825
+ * @beta
95826
+ */
95827
+ highlight(): void;
95811
95828
  /**
95812
95829
  * Inserts a bookmark on the range. If a bookmark of the same name exists somewhere, it is deleted first.
95813
95830
  *
@@ -96012,6 +96029,14 @@ declare namespace Word {
96012
96029
  * @param range Required. Another range.
96013
96030
  */
96014
96031
  intersectWithOrNullObject(range: Word.Range): Word.Range;
96032
+ /**
96033
+ * Removes the highlight added by the Highlight function if any.
96034
+ *
96035
+ * @remarks
96036
+ * [Api set: WordApi BETA (PREVIEW ONLY)]
96037
+ * @beta
96038
+ */
96039
+ removeHighlight(): void;
96015
96040
  /**
96016
96041
  * Performs a search with the specified SearchOptions on the scope of the range object. The search results are a collection of range objects.
96017
96042
  *
@@ -104713,7 +104738,7 @@ declare namespace Word {
104713
104738
  */
104714
104739
  styleBuiltIn?: Word.BuiltInStyleName | "Other" | "Normal" | "Heading1" | "Heading2" | "Heading3" | "Heading4" | "Heading5" | "Heading6" | "Heading7" | "Heading8" | "Heading9" | "Toc1" | "Toc2" | "Toc3" | "Toc4" | "Toc5" | "Toc6" | "Toc7" | "Toc8" | "Toc9" | "FootnoteText" | "Header" | "Footer" | "Caption" | "FootnoteReference" | "EndnoteReference" | "EndnoteText" | "Title" | "Subtitle" | "Hyperlink" | "Strong" | "Emphasis" | "NoSpacing" | "ListParagraph" | "Quote" | "IntenseQuote" | "SubtleEmphasis" | "IntenseEmphasis" | "SubtleReference" | "IntenseReference" | "BookTitle" | "Bibliography" | "TocHeading" | "TableGrid" | "PlainTable1" | "PlainTable2" | "PlainTable3" | "PlainTable4" | "PlainTable5" | "TableGridLight" | "GridTable1Light" | "GridTable1Light_Accent1" | "GridTable1Light_Accent2" | "GridTable1Light_Accent3" | "GridTable1Light_Accent4" | "GridTable1Light_Accent5" | "GridTable1Light_Accent6" | "GridTable2" | "GridTable2_Accent1" | "GridTable2_Accent2" | "GridTable2_Accent3" | "GridTable2_Accent4" | "GridTable2_Accent5" | "GridTable2_Accent6" | "GridTable3" | "GridTable3_Accent1" | "GridTable3_Accent2" | "GridTable3_Accent3" | "GridTable3_Accent4" | "GridTable3_Accent5" | "GridTable3_Accent6" | "GridTable4" | "GridTable4_Accent1" | "GridTable4_Accent2" | "GridTable4_Accent3" | "GridTable4_Accent4" | "GridTable4_Accent5" | "GridTable4_Accent6" | "GridTable5Dark" | "GridTable5Dark_Accent1" | "GridTable5Dark_Accent2" | "GridTable5Dark_Accent3" | "GridTable5Dark_Accent4" | "GridTable5Dark_Accent5" | "GridTable5Dark_Accent6" | "GridTable6Colorful" | "GridTable6Colorful_Accent1" | "GridTable6Colorful_Accent2" | "GridTable6Colorful_Accent3" | "GridTable6Colorful_Accent4" | "GridTable6Colorful_Accent5" | "GridTable6Colorful_Accent6" | "GridTable7Colorful" | "GridTable7Colorful_Accent1" | "GridTable7Colorful_Accent2" | "GridTable7Colorful_Accent3" | "GridTable7Colorful_Accent4" | "GridTable7Colorful_Accent5" | "GridTable7Colorful_Accent6" | "ListTable1Light" | "ListTable1Light_Accent1" | "ListTable1Light_Accent2" | "ListTable1Light_Accent3" | "ListTable1Light_Accent4" | "ListTable1Light_Accent5" | "ListTable1Light_Accent6" | "ListTable2" | "ListTable2_Accent1" | "ListTable2_Accent2" | "ListTable2_Accent3" | "ListTable2_Accent4" | "ListTable2_Accent5" | "ListTable2_Accent6" | "ListTable3" | "ListTable3_Accent1" | "ListTable3_Accent2" | "ListTable3_Accent3" | "ListTable3_Accent4" | "ListTable3_Accent5" | "ListTable3_Accent6" | "ListTable4" | "ListTable4_Accent1" | "ListTable4_Accent2" | "ListTable4_Accent3" | "ListTable4_Accent4" | "ListTable4_Accent5" | "ListTable4_Accent6" | "ListTable5Dark" | "ListTable5Dark_Accent1" | "ListTable5Dark_Accent2" | "ListTable5Dark_Accent3" | "ListTable5Dark_Accent4" | "ListTable5Dark_Accent5" | "ListTable5Dark_Accent6" | "ListTable6Colorful" | "ListTable6Colorful_Accent1" | "ListTable6Colorful_Accent2" | "ListTable6Colorful_Accent3" | "ListTable6Colorful_Accent4" | "ListTable6Colorful_Accent5" | "ListTable6Colorful_Accent6" | "ListTable7Colorful" | "ListTable7Colorful_Accent1" | "ListTable7Colorful_Accent2" | "ListTable7Colorful_Accent3" | "ListTable7Colorful_Accent4" | "ListTable7Colorful_Accent5" | "ListTable7Colorful_Accent6";
104715
104740
  /**
104716
- * Gets the content control subtype. The subtype can be 'RichTextInline', 'RichTextParagraphs', 'RichTextTableCell', 'RichTextTableRow' and 'RichTextTable' for rich text content controls, or 'PlainTextInline' and 'PlainTextParagraph' for plain text content controls.
104741
+ * Gets the content control subtype. The subtype can be 'RichTextInline', 'RichTextParagraphs', 'RichTextTableCell', 'RichTextTableRow' and 'RichTextTable' for rich text content controls, or 'PlainTextInline' and 'PlainTextParagraph' for plain text content controls, or 'CheckBox' for checkbox content controls.
104717
104742
  *
104718
104743
  * @remarks
104719
104744
  * [Api set: WordApi 1.3]
@@ -104741,7 +104766,7 @@ declare namespace Word {
104741
104766
  */
104742
104767
  title?: string;
104743
104768
  /**
104744
- * Gets the content control type. Only rich text and plain text content controls are supported currently.
104769
+ * Gets the content control type. Only rich text, plain text, and checkbox content controls are supported currently.
104745
104770
  *
104746
104771
  * @remarks
104747
104772
  * [Api set: WordApi 1.1]
@@ -107072,7 +107097,7 @@ declare namespace Word {
107072
107097
  id?: boolean;
107073
107098
  }
107074
107099
  /**
107075
- * Represents a content control. Content controls are bounded and potentially labeled regions in a document that serve as containers for specific types of content. Individual content controls may contain contents such as images, tables, or paragraphs of formatted text. Currently, only rich text and plain text content controls are supported.
107100
+ * Represents a content control. Content controls are bounded and potentially labeled regions in a document that serve as containers for specific types of content. Individual content controls may contain contents such as images, tables, or paragraphs of formatted text. Currently, only rich text, plain text, and checkbox content controls are supported.
107076
107101
  *
107077
107102
  * @remarks
107078
107103
  * [Api set: WordApi 1.1]
@@ -107212,7 +107237,7 @@ declare namespace Word {
107212
107237
  */
107213
107238
  styleBuiltIn?: boolean;
107214
107239
  /**
107215
- * Gets the content control subtype. The subtype can be 'RichTextInline', 'RichTextParagraphs', 'RichTextTableCell', 'RichTextTableRow' and 'RichTextTable' for rich text content controls, or 'PlainTextInline' and 'PlainTextParagraph' for plain text content controls.
107240
+ * Gets the content control subtype. The subtype can be 'RichTextInline', 'RichTextParagraphs', 'RichTextTableCell', 'RichTextTableRow' and 'RichTextTable' for rich text content controls, or 'PlainTextInline' and 'PlainTextParagraph' for plain text content controls, or 'CheckBox' for checkbox content controls.
107216
107241
  *
107217
107242
  * @remarks
107218
107243
  * [Api set: WordApi 1.3]
@@ -107240,7 +107265,7 @@ declare namespace Word {
107240
107265
  */
107241
107266
  title?: boolean;
107242
107267
  /**
107243
- * Gets the content control type. Only rich text and plain text content controls are supported currently.
107268
+ * Gets the content control type. Only rich text, plain text, and checkbox content controls are supported currently.
107244
107269
  *
107245
107270
  * @remarks
107246
107271
  * [Api set: WordApi 1.1]
@@ -107388,7 +107413,7 @@ declare namespace Word {
107388
107413
  */
107389
107414
  styleBuiltIn?: boolean;
107390
107415
  /**
107391
- * For EACH ITEM in the collection: Gets the content control subtype. The subtype can be 'RichTextInline', 'RichTextParagraphs', 'RichTextTableCell', 'RichTextTableRow' and 'RichTextTable' for rich text content controls, or 'PlainTextInline' and 'PlainTextParagraph' for plain text content controls.
107416
+ * For EACH ITEM in the collection: Gets the content control subtype. The subtype can be 'RichTextInline', 'RichTextParagraphs', 'RichTextTableCell', 'RichTextTableRow' and 'RichTextTable' for rich text content controls, or 'PlainTextInline' and 'PlainTextParagraph' for plain text content controls, or 'CheckBox' for checkbox content controls.
107392
107417
  *
107393
107418
  * @remarks
107394
107419
  * [Api set: WordApi 1.3]
@@ -107416,7 +107441,7 @@ declare namespace Word {
107416
107441
  */
107417
107442
  title?: boolean;
107418
107443
  /**
107419
- * For EACH ITEM in the collection: Gets the content control type. Only rich text and plain text content controls are supported currently.
107444
+ * For EACH ITEM in the collection: Gets the content control type. Only rich text, plain text, and checkbox content controls are supported currently.
107420
107445
  *
107421
107446
  * @remarks
107422
107447
  * [Api set: WordApi 1.1]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.441",
3
+ "version": "1.0.442",
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,6 +45,6 @@
45
45
  },
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
- "typesPublisherContentHash": "2dd5cf66e2dcbf14359468bab9c23aa16f67fc30c85a8dd5a04597e058d7cf05",
48
+ "typesPublisherContentHash": "37207b61719bbef9a9f54b7a59ac799761812bae6eba83e022e12aca50a79482",
49
49
  "typeScriptVersion": "4.6"
50
50
  }