@types/office-js 1.0.394 → 1.0.395

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/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.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Fri, 07 Jun 2024 00:25:08 GMT
11
+ * Last updated: Mon, 10 Jun 2024 15:07:29 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
office-js/index.d.ts CHANGED
@@ -85271,6 +85271,42 @@ declare namespace Word {
85271
85271
  */
85272
85272
  berry = "Berry",
85273
85273
  }
85274
+ /**
85275
+ * Properties defining the behavior of the pop-up menu for a given critique.
85276
+ *
85277
+ * @remarks
85278
+ * [Api set: WordApi 1.8]
85279
+ */
85280
+ interface CritiquePopupOptions {
85281
+ /**
85282
+ * 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.
85283
+ *
85284
+ * @remarks
85285
+ * [Api set: WordApi 1.8]
85286
+ */
85287
+ brandingTextResourceId: string;
85288
+ /**
85289
+ * Gets the manifest resource ID of the string to use as the subtitle.
85290
+ *
85291
+ * @remarks
85292
+ * [Api set: WordApi 1.8]
85293
+ */
85294
+ subtitleResourceId: string;
85295
+ /**
85296
+ * Gets the suggestions to display in the critique pop-up menu.
85297
+ *
85298
+ * @remarks
85299
+ * [Api set: WordApi 1.8]
85300
+ */
85301
+ suggestions: string[];
85302
+ /**
85303
+ * Gets the manifest resource ID of the string to use as the title.
85304
+ *
85305
+ * @remarks
85306
+ * [Api set: WordApi 1.8]
85307
+ */
85308
+ titleResourceId: string;
85309
+ }
85274
85310
  /**
85275
85311
  * Critique that will be rendered as underline for the specified part of paragraph in the document.
85276
85312
  *
@@ -85292,6 +85328,13 @@ declare namespace Word {
85292
85328
  * [Api set: WordApi 1.7]
85293
85329
  */
85294
85330
  length: number;
85331
+ /**
85332
+ * Specifies the behavior of the pop-up menu for the critique.
85333
+ *
85334
+ * @remarks
85335
+ * [Api set: WordApi 1.8]
85336
+ */
85337
+ popupOptions: Word.CritiquePopupOptions;
85295
85338
  /**
85296
85339
  * Gets the start index of the critique inside paragraph.
85297
85340
  *
@@ -85545,6 +85588,35 @@ declare namespace Word {
85545
85588
  */
85546
85589
  id: string;
85547
85590
  }
85591
+ /**
85592
+ * Represents action information that's passed back on annotation pop-up action event.
85593
+ *
85594
+ * @remarks
85595
+ * [Api set: WordApi 1.8]
85596
+ */
85597
+ interface AnnotationPopupActionEventArgs {
85598
+ /**
85599
+ * Specifies the chosen action in the pop-up menu.
85600
+ *
85601
+ * @remarks
85602
+ * [Api set: WordApi 1.8]
85603
+ */
85604
+ action: string;
85605
+ /**
85606
+ * Specifies the accepted suggestion (only populated when accepting a critique suggestion).
85607
+ *
85608
+ * @remarks
85609
+ * [Api set: WordApi 1.8]
85610
+ */
85611
+ critiqueSuggestion: string;
85612
+ /**
85613
+ * Specifies the annotation ID for which the event was fired.
85614
+ *
85615
+ * @remarks
85616
+ * [Api set: WordApi 1.8]
85617
+ */
85618
+ id: string;
85619
+ }
85548
85620
  /**
85549
85621
  * Contains a collection of {@link Word.Annotation} objects.
85550
85622
  *
@@ -88173,6 +88245,15 @@ declare namespace Word {
88173
88245
  * @eventproperty
88174
88246
  */
88175
88247
  readonly onAnnotationInserted: OfficeExtension.EventHandlers<Word.AnnotationInsertedEventArgs>;
88248
+ /**
88249
+ * Occurs when the user performs an action in an annotation pop-up menu.
88250
+ *
88251
+ * @remarks
88252
+ * [Api set: WordApi 1.8]
88253
+ *
88254
+ * @eventproperty
88255
+ */
88256
+ readonly onAnnotationPopupAction: OfficeExtension.EventHandlers<Word.AnnotationPopupActionEventArgs>;
88176
88257
  /**
88177
88258
  * Occurs when the user deletes one or more annotations.
88178
88259
  *
@@ -91019,6 +91100,14 @@ declare namespace Word {
91019
91100
  * [Api set: WordApi 1.6]
91020
91101
  */
91021
91102
  getTrackedChanges(): Word.TrackedChangeCollection;
91103
+ /**
91104
+ * Highlights the range temporarily without changing document content.
91105
+ To highlight the text permanently, set the range's Font.HighlightColor.
91106
+ *
91107
+ * @remarks
91108
+ * [Api set: WordApi 1.8]
91109
+ */
91110
+ highlight(): void;
91022
91111
  /**
91023
91112
  * Inserts a bookmark on the range. If a bookmark of the same name exists somewhere, it is deleted first.
91024
91113
  *
@@ -91223,6 +91312,13 @@ declare namespace Word {
91223
91312
  * @param range Required. Another range.
91224
91313
  */
91225
91314
  intersectWithOrNullObject(range: Word.Range): Word.Range;
91315
+ /**
91316
+ * Removes the highlight added by the Highlight function if any.
91317
+ *
91318
+ * @remarks
91319
+ * [Api set: WordApi 1.8]
91320
+ */
91321
+ removeHighlight(): void;
91226
91322
  /**
91227
91323
  * Performs a search with the specified SearchOptions on the scope of the range object. The search results are a collection of range objects.
91228
91324
  *
@@ -93960,6 +94056,12 @@ declare namespace Word {
93960
94056
  * [Api set: WordApi 1.7]
93961
94057
  */
93962
94058
  annotationRemoved = "AnnotationRemoved",
94059
+ /**
94060
+ * Represents an action in the annotation pop-up.
94061
+ * @remarks
94062
+ * [Api set: WordApi 1.8]
94063
+ */
94064
+ annotationPopupAction = "AnnotationPopupAction",
93963
94065
  }
93964
94066
  /**
93965
94067
  * An enum that specifies an event's source. It can be local or remote (through coauthoring).
@@ -93992,7 +94094,7 @@ declare namespace Word {
93992
94094
  * @remarks
93993
94095
  * [Api set: WordApi 1.5]
93994
94096
  */
93995
- eventType: Word.EventType | "ContentControlDeleted" | "ContentControlSelectionChanged" | "ContentControlDataChanged" | "ContentControlAdded" | "ContentControlEntered" | "ContentControlExited" | "ParagraphAdded" | "ParagraphChanged" | "ParagraphDeleted" | "AnnotationClicked" | "AnnotationHovered" | "AnnotationInserted" | "AnnotationRemoved";
94097
+ eventType: Word.EventType | "ContentControlDeleted" | "ContentControlSelectionChanged" | "ContentControlDataChanged" | "ContentControlAdded" | "ContentControlEntered" | "ContentControlExited" | "ParagraphAdded" | "ParagraphChanged" | "ParagraphDeleted" | "AnnotationClicked" | "AnnotationHovered" | "AnnotationInserted" | "AnnotationRemoved" | "AnnotationPopupAction";
93996
94098
  /**
93997
94099
  * Gets the content control IDs.
93998
94100
  *
@@ -94021,7 +94123,7 @@ declare namespace Word {
94021
94123
  * @remarks
94022
94124
  * [Api set: WordApi 1.5]
94023
94125
  */
94024
- eventType: Word.EventType | "ContentControlDeleted" | "ContentControlSelectionChanged" | "ContentControlDataChanged" | "ContentControlAdded" | "ContentControlEntered" | "ContentControlExited" | "ParagraphAdded" | "ParagraphChanged" | "ParagraphDeleted" | "AnnotationClicked" | "AnnotationHovered" | "AnnotationInserted" | "AnnotationRemoved";
94126
+ eventType: Word.EventType | "ContentControlDeleted" | "ContentControlSelectionChanged" | "ContentControlDataChanged" | "ContentControlAdded" | "ContentControlEntered" | "ContentControlExited" | "ParagraphAdded" | "ParagraphChanged" | "ParagraphDeleted" | "AnnotationClicked" | "AnnotationHovered" | "AnnotationInserted" | "AnnotationRemoved" | "AnnotationPopupAction";
94025
94127
  /**
94026
94128
  * Gets the content control IDs.
94027
94129
  *
@@ -94050,7 +94152,7 @@ declare namespace Word {
94050
94152
  * @remarks
94051
94153
  * [Api set: WordApi 1.5]
94052
94154
  */
94053
- eventType: Word.EventType | "ContentControlDeleted" | "ContentControlSelectionChanged" | "ContentControlDataChanged" | "ContentControlAdded" | "ContentControlEntered" | "ContentControlExited" | "ParagraphAdded" | "ParagraphChanged" | "ParagraphDeleted" | "AnnotationClicked" | "AnnotationHovered" | "AnnotationInserted" | "AnnotationRemoved";
94155
+ eventType: Word.EventType | "ContentControlDeleted" | "ContentControlSelectionChanged" | "ContentControlDataChanged" | "ContentControlAdded" | "ContentControlEntered" | "ContentControlExited" | "ParagraphAdded" | "ParagraphChanged" | "ParagraphDeleted" | "AnnotationClicked" | "AnnotationHovered" | "AnnotationInserted" | "AnnotationRemoved" | "AnnotationPopupAction";
94054
94156
  /**
94055
94157
  * Gets the content control IDs.
94056
94158
  *
@@ -94079,7 +94181,7 @@ declare namespace Word {
94079
94181
  * @remarks
94080
94182
  * [Api set: WordApi 1.5]
94081
94183
  */
94082
- eventType: Word.EventType | "ContentControlDeleted" | "ContentControlSelectionChanged" | "ContentControlDataChanged" | "ContentControlAdded" | "ContentControlEntered" | "ContentControlExited" | "ParagraphAdded" | "ParagraphChanged" | "ParagraphDeleted" | "AnnotationClicked" | "AnnotationHovered" | "AnnotationInserted" | "AnnotationRemoved";
94184
+ eventType: Word.EventType | "ContentControlDeleted" | "ContentControlSelectionChanged" | "ContentControlDataChanged" | "ContentControlAdded" | "ContentControlEntered" | "ContentControlExited" | "ParagraphAdded" | "ParagraphChanged" | "ParagraphDeleted" | "AnnotationClicked" | "AnnotationHovered" | "AnnotationInserted" | "AnnotationRemoved" | "AnnotationPopupAction";
94083
94185
  /**
94084
94186
  * Gets the content control IDs.
94085
94187
  *
@@ -94108,7 +94210,7 @@ declare namespace Word {
94108
94210
  * @remarks
94109
94211
  * [Api set: WordApi 1.5]
94110
94212
  */
94111
- eventType: Word.EventType | "ContentControlDeleted" | "ContentControlSelectionChanged" | "ContentControlDataChanged" | "ContentControlAdded" | "ContentControlEntered" | "ContentControlExited" | "ParagraphAdded" | "ParagraphChanged" | "ParagraphDeleted" | "AnnotationClicked" | "AnnotationHovered" | "AnnotationInserted" | "AnnotationRemoved";
94213
+ eventType: Word.EventType | "ContentControlDeleted" | "ContentControlSelectionChanged" | "ContentControlDataChanged" | "ContentControlAdded" | "ContentControlEntered" | "ContentControlExited" | "ParagraphAdded" | "ParagraphChanged" | "ParagraphDeleted" | "AnnotationClicked" | "AnnotationHovered" | "AnnotationInserted" | "AnnotationRemoved" | "AnnotationPopupAction";
94112
94214
  /**
94113
94215
  * Gets the content control IDs.
94114
94216
  *
@@ -94137,7 +94239,7 @@ declare namespace Word {
94137
94239
  * @remarks
94138
94240
  * [Api set: WordApi 1.5]
94139
94241
  */
94140
- eventType: Word.EventType | "ContentControlDeleted" | "ContentControlSelectionChanged" | "ContentControlDataChanged" | "ContentControlAdded" | "ContentControlEntered" | "ContentControlExited" | "ParagraphAdded" | "ParagraphChanged" | "ParagraphDeleted" | "AnnotationClicked" | "AnnotationHovered" | "AnnotationInserted" | "AnnotationRemoved";
94242
+ eventType: Word.EventType | "ContentControlDeleted" | "ContentControlSelectionChanged" | "ContentControlDataChanged" | "ContentControlAdded" | "ContentControlEntered" | "ContentControlExited" | "ParagraphAdded" | "ParagraphChanged" | "ParagraphDeleted" | "AnnotationClicked" | "AnnotationHovered" | "AnnotationInserted" | "AnnotationRemoved" | "AnnotationPopupAction";
94141
94243
  /**
94142
94244
  * Gets the content control IDs.
94143
94245
  *
@@ -94173,7 +94275,7 @@ declare namespace Word {
94173
94275
  * @remarks
94174
94276
  * [Api set: WordApi 1.6]
94175
94277
  */
94176
- type: Word.EventType | "ContentControlDeleted" | "ContentControlSelectionChanged" | "ContentControlDataChanged" | "ContentControlAdded" | "ContentControlEntered" | "ContentControlExited" | "ParagraphAdded" | "ParagraphChanged" | "ParagraphDeleted" | "AnnotationClicked" | "AnnotationHovered" | "AnnotationInserted" | "AnnotationRemoved";
94278
+ type: Word.EventType | "ContentControlDeleted" | "ContentControlSelectionChanged" | "ContentControlDataChanged" | "ContentControlAdded" | "ContentControlEntered" | "ContentControlExited" | "ParagraphAdded" | "ParagraphChanged" | "ParagraphDeleted" | "AnnotationClicked" | "AnnotationHovered" | "AnnotationInserted" | "AnnotationRemoved" | "AnnotationPopupAction";
94177
94279
  /**
94178
94280
  * Gets the unique IDs of the involved paragraphs. IDs are in standard 8-4-4-4-12 GUID format without curly braces and differ across sessions and coauthors.
94179
94281
  *
@@ -94202,7 +94304,7 @@ declare namespace Word {
94202
94304
  * @remarks
94203
94305
  * [Api set: WordApi 1.6]
94204
94306
  */
94205
- type: Word.EventType | "ContentControlDeleted" | "ContentControlSelectionChanged" | "ContentControlDataChanged" | "ContentControlAdded" | "ContentControlEntered" | "ContentControlExited" | "ParagraphAdded" | "ParagraphChanged" | "ParagraphDeleted" | "AnnotationClicked" | "AnnotationHovered" | "AnnotationInserted" | "AnnotationRemoved";
94307
+ type: Word.EventType | "ContentControlDeleted" | "ContentControlSelectionChanged" | "ContentControlDataChanged" | "ContentControlAdded" | "ContentControlEntered" | "ContentControlExited" | "ParagraphAdded" | "ParagraphChanged" | "ParagraphDeleted" | "AnnotationClicked" | "AnnotationHovered" | "AnnotationInserted" | "AnnotationRemoved" | "AnnotationPopupAction";
94206
94308
  /**
94207
94309
  * Gets the unique IDs of the involved paragraphs. IDs are in standard 8-4-4-4-12 GUID format without curly braces and differ across sessions and coauthors.
94208
94310
  *
@@ -94231,7 +94333,7 @@ declare namespace Word {
94231
94333
  * @remarks
94232
94334
  * [Api set: WordApi 1.6]
94233
94335
  */
94234
- type: Word.EventType | "ContentControlDeleted" | "ContentControlSelectionChanged" | "ContentControlDataChanged" | "ContentControlAdded" | "ContentControlEntered" | "ContentControlExited" | "ParagraphAdded" | "ParagraphChanged" | "ParagraphDeleted" | "AnnotationClicked" | "AnnotationHovered" | "AnnotationInserted" | "AnnotationRemoved";
94336
+ type: Word.EventType | "ContentControlDeleted" | "ContentControlSelectionChanged" | "ContentControlDataChanged" | "ContentControlAdded" | "ContentControlEntered" | "ContentControlExited" | "ParagraphAdded" | "ParagraphChanged" | "ParagraphDeleted" | "AnnotationClicked" | "AnnotationHovered" | "AnnotationInserted" | "AnnotationRemoved" | "AnnotationPopupAction";
94235
94337
  /**
94236
94338
  * Gets the unique IDs of the involved paragraphs. IDs are in standard 8-4-4-4-12 GUID format without curly braces and differ across sessions and coauthors.
94237
94339
  *
office-js/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js",
3
- "version": "1.0.394",
3
+ "version": "1.0.395",
4
4
  "description": "TypeScript definitions for office-js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js",
6
6
  "license": "MIT",
@@ -45,6 +45,6 @@
45
45
  },
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
- "typesPublisherContentHash": "0dc9cf2f71d799e043e1dfae04acf914e4d2adbc62fff35d59147a014f89eab1",
48
+ "typesPublisherContentHash": "108d127d628023098e3ad3400473d14c0a976708360ac5ca5ab07d146ac7d5b8",
49
49
  "typeScriptVersion": "4.7"
50
50
  }