@types/office-js 1.0.393 → 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, 31 May 2024 21:07:10 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
@@ -11022,6 +11022,10 @@ declare namespace Office {
11022
11022
  *
11023
11023
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
11024
11024
  *
11025
+ * *Important**: The `removeAttachmentAsync` method doesn't remove inline attachments from a mail item.
11026
+ * To remove an inline attachment, first get the item's body, then remove any references of the attachment from its contents.
11027
+ * Use the {@link https://learn.microsoft.com/javascript/api/outlook/office.body | Office.Body} APIs to get and set the body of an item.
11028
+ *
11025
11029
  * **Errors**:
11026
11030
  *
11027
11031
  * - `InvalidAttachmentId`: The attachment identifier does not exist.
@@ -11051,6 +11055,10 @@ declare namespace Office {
11051
11055
  *
11052
11056
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
11053
11057
  *
11058
+ * *Important**: The `removeAttachmentAsync` method doesn't remove inline attachments from a mail item.
11059
+ * To remove an inline attachment, first get the item's body, then remove any references of the attachment from its contents.
11060
+ * Use the {@link https://learn.microsoft.com/javascript/api/outlook/office.body | Office.Body} APIs to get and set the body of an item.
11061
+ *
11054
11062
  * **Errors**:
11055
11063
  *
11056
11064
  * - `InvalidAttachmentId`: The attachment identifier does not exist.
@@ -16995,6 +17003,10 @@ declare namespace Office {
16995
17003
  *
16996
17004
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
16997
17005
  *
17006
+ * *Important**: The `removeAttachmentAsync` method doesn't remove inline attachments from a mail item.
17007
+ * To remove an inline attachment, first get the item's body, then remove any references of the attachment from its contents.
17008
+ * Use the {@link https://learn.microsoft.com/javascript/api/outlook/office.body | Office.Body} APIs to get and set the body of an item.
17009
+ *
16998
17010
  * **Errors**:
16999
17011
  *
17000
17012
  * - `InvalidAttachmentId`: The attachment identifier does not exist.
@@ -17024,6 +17036,10 @@ declare namespace Office {
17024
17036
  *
17025
17037
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
17026
17038
  *
17039
+ * *Important**: The `removeAttachmentAsync` method doesn't remove inline attachments from a mail item.
17040
+ * To remove an inline attachment, first get the item's body, then remove any references of the attachment from its contents.
17041
+ * Use the {@link https://learn.microsoft.com/javascript/api/outlook/office.body | Office.Body} APIs to get and set the body of an item.
17042
+ *
17027
17043
  * **Errors**:
17028
17044
  *
17029
17045
  * - `InvalidAttachmentId`: The attachment identifier does not exist.
@@ -85255,6 +85271,42 @@ declare namespace Word {
85255
85271
  */
85256
85272
  berry = "Berry",
85257
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
+ }
85258
85310
  /**
85259
85311
  * Critique that will be rendered as underline for the specified part of paragraph in the document.
85260
85312
  *
@@ -85276,6 +85328,13 @@ declare namespace Word {
85276
85328
  * [Api set: WordApi 1.7]
85277
85329
  */
85278
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;
85279
85338
  /**
85280
85339
  * Gets the start index of the critique inside paragraph.
85281
85340
  *
@@ -85529,6 +85588,35 @@ declare namespace Word {
85529
85588
  */
85530
85589
  id: string;
85531
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
+ }
85532
85620
  /**
85533
85621
  * Contains a collection of {@link Word.Annotation} objects.
85534
85622
  *
@@ -88157,6 +88245,15 @@ declare namespace Word {
88157
88245
  * @eventproperty
88158
88246
  */
88159
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>;
88160
88257
  /**
88161
88258
  * Occurs when the user deletes one or more annotations.
88162
88259
  *
@@ -91003,6 +91100,14 @@ declare namespace Word {
91003
91100
  * [Api set: WordApi 1.6]
91004
91101
  */
91005
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;
91006
91111
  /**
91007
91112
  * Inserts a bookmark on the range. If a bookmark of the same name exists somewhere, it is deleted first.
91008
91113
  *
@@ -91207,6 +91312,13 @@ declare namespace Word {
91207
91312
  * @param range Required. Another range.
91208
91313
  */
91209
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;
91210
91322
  /**
91211
91323
  * Performs a search with the specified SearchOptions on the scope of the range object. The search results are a collection of range objects.
91212
91324
  *
@@ -93944,6 +94056,12 @@ declare namespace Word {
93944
94056
  * [Api set: WordApi 1.7]
93945
94057
  */
93946
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",
93947
94065
  }
93948
94066
  /**
93949
94067
  * An enum that specifies an event's source. It can be local or remote (through coauthoring).
@@ -93976,7 +94094,7 @@ declare namespace Word {
93976
94094
  * @remarks
93977
94095
  * [Api set: WordApi 1.5]
93978
94096
  */
93979
- 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";
93980
94098
  /**
93981
94099
  * Gets the content control IDs.
93982
94100
  *
@@ -94005,7 +94123,7 @@ declare namespace Word {
94005
94123
  * @remarks
94006
94124
  * [Api set: WordApi 1.5]
94007
94125
  */
94008
- 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";
94009
94127
  /**
94010
94128
  * Gets the content control IDs.
94011
94129
  *
@@ -94034,7 +94152,7 @@ declare namespace Word {
94034
94152
  * @remarks
94035
94153
  * [Api set: WordApi 1.5]
94036
94154
  */
94037
- 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";
94038
94156
  /**
94039
94157
  * Gets the content control IDs.
94040
94158
  *
@@ -94063,7 +94181,7 @@ declare namespace Word {
94063
94181
  * @remarks
94064
94182
  * [Api set: WordApi 1.5]
94065
94183
  */
94066
- 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";
94067
94185
  /**
94068
94186
  * Gets the content control IDs.
94069
94187
  *
@@ -94092,7 +94210,7 @@ declare namespace Word {
94092
94210
  * @remarks
94093
94211
  * [Api set: WordApi 1.5]
94094
94212
  */
94095
- 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";
94096
94214
  /**
94097
94215
  * Gets the content control IDs.
94098
94216
  *
@@ -94121,7 +94239,7 @@ declare namespace Word {
94121
94239
  * @remarks
94122
94240
  * [Api set: WordApi 1.5]
94123
94241
  */
94124
- 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";
94125
94243
  /**
94126
94244
  * Gets the content control IDs.
94127
94245
  *
@@ -94157,7 +94275,7 @@ declare namespace Word {
94157
94275
  * @remarks
94158
94276
  * [Api set: WordApi 1.6]
94159
94277
  */
94160
- 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";
94161
94279
  /**
94162
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.
94163
94281
  *
@@ -94186,7 +94304,7 @@ declare namespace Word {
94186
94304
  * @remarks
94187
94305
  * [Api set: WordApi 1.6]
94188
94306
  */
94189
- 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";
94190
94308
  /**
94191
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.
94192
94310
  *
@@ -94215,7 +94333,7 @@ declare namespace Word {
94215
94333
  * @remarks
94216
94334
  * [Api set: WordApi 1.6]
94217
94335
  */
94218
- 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";
94219
94337
  /**
94220
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.
94221
94339
  *
office-js/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js",
3
- "version": "1.0.393",
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": "d0c009e0f7eaef88d5bdd0db3b1d1e570811c8b65b0a521f34681d6a1a95197c",
48
+ "typesPublisherContentHash": "108d127d628023098e3ad3400473d14c0a976708360ac5ca5ab07d146ac7d5b8",
49
49
  "typeScriptVersion": "4.7"
50
50
  }