@types/office-js-preview 1.0.360 → 1.0.361

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 (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: Tue, 06 Dec 2022 20:32:55 GMT
11
+ * Last updated: Wed, 07 Dec 2022 18:03:36 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
14
14
 
@@ -87234,6 +87234,56 @@ declare namespace Word {
87234
87234
  select?: string;
87235
87235
  expand?: string;
87236
87236
  }): Word.Body;
87237
+ /**
87238
+ * Occurs when new comments are added.
87239
+ *
87240
+ * @remarks
87241
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
87242
+ *
87243
+ * @eventproperty
87244
+ * @beta
87245
+ */
87246
+ readonly onCommentAdded: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
87247
+ /**
87248
+ * Occurs when a comment or its reply is changed.
87249
+ *
87250
+ * @remarks
87251
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
87252
+ *
87253
+ * @eventproperty
87254
+ * @beta
87255
+ */
87256
+ readonly onCommentChanged: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
87257
+ /**
87258
+ * Occurs when comments are deleted.
87259
+ *
87260
+ * @remarks
87261
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
87262
+ *
87263
+ * @eventproperty
87264
+ * @beta
87265
+ */
87266
+ readonly onCommentDeleted: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
87267
+ /**
87268
+ * Occurs when a comment is deselected.
87269
+ *
87270
+ * @remarks
87271
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
87272
+ *
87273
+ * @eventproperty
87274
+ * @beta
87275
+ */
87276
+ readonly onCommentDeselected: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
87277
+ /**
87278
+ * Occurs when a comment is selected.
87279
+ *
87280
+ * @remarks
87281
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
87282
+ *
87283
+ * @eventproperty
87284
+ * @beta
87285
+ */
87286
+ readonly onCommentSelected: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
87237
87287
  /**
87238
87288
  * Track the object for automatic adjustment based on surrounding changes in the document. This call is a shorthand for {@link https://docs.microsoft.com/javascript/api/office/officeextension.clientrequestcontext#office-officeextension-clientrequestcontext-trackedobjects-member | context.trackedObjects.add(thisObject)}. If you are 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.
87239
87289
  */
@@ -87422,56 +87472,6 @@ declare namespace Word {
87422
87472
  * @param propertyNamesAndPaths `propertyNamesAndPaths.select` is a comma-delimited string that specifies the properties to load, and `propertyNamesAndPaths.expand` is a comma-delimited string that specifies the navigation properties to load.
87423
87473
  */
87424
87474
  load(propertyNamesAndPaths?: OfficeExtension.LoadOption): Word.CommentCollection;
87425
- /**
87426
- * Occurs when new comments are added.
87427
- *
87428
- * @remarks
87429
- * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
87430
- *
87431
- * @eventproperty
87432
- * @beta
87433
- */
87434
- readonly onCommentAdded: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
87435
- /**
87436
- * Occurs when a comment or its reply is changed.
87437
- *
87438
- * @remarks
87439
- * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
87440
- *
87441
- * @eventproperty
87442
- * @beta
87443
- */
87444
- readonly onCommentChanged: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
87445
- /**
87446
- * Occurs when comments are deleted.
87447
- *
87448
- * @remarks
87449
- * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
87450
- *
87451
- * @eventproperty
87452
- * @beta
87453
- */
87454
- readonly onCommentDeleted: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
87455
- /**
87456
- * Occurs when a comment is deselected.
87457
- *
87458
- * @remarks
87459
- * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
87460
- *
87461
- * @eventproperty
87462
- * @beta
87463
- */
87464
- readonly onCommentDeselected: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
87465
- /**
87466
- * Occurs when a comment is selected.
87467
- *
87468
- * @remarks
87469
- * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
87470
- *
87471
- * @eventproperty
87472
- * @beta
87473
- */
87474
- readonly onCommentSelected: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
87475
87475
  /**
87476
87476
  * Track the object for automatic adjustment based on surrounding changes in the document. This call is a shorthand for {@link https://docs.microsoft.com/javascript/api/office/officeextension.clientrequestcontext#office-officeextension-clientrequestcontext-trackedobjects-member | context.trackedObjects.add(thisObject)}. If you are 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.
87477
87477
  */
@@ -88214,6 +88214,46 @@ declare namespace Word {
88214
88214
  select?: string;
88215
88215
  expand?: string;
88216
88216
  }): Word.ContentControl;
88217
+ /**
88218
+ * Occurs when new comments are added.
88219
+ *
88220
+ * @remarks
88221
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
88222
+ *
88223
+ * @eventproperty
88224
+ * @beta
88225
+ */
88226
+ readonly onCommentAdded: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
88227
+ /**
88228
+ * Occurs when a comment or its reply is changed.
88229
+ *
88230
+ * @remarks
88231
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
88232
+ *
88233
+ * @eventproperty
88234
+ * @beta
88235
+ */
88236
+ readonly onCommentChanged: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
88237
+ /**
88238
+ * Occurs when a comment is deselected.
88239
+ *
88240
+ * @remarks
88241
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
88242
+ *
88243
+ * @eventproperty
88244
+ * @beta
88245
+ */
88246
+ readonly onCommentDeselected: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
88247
+ /**
88248
+ * Occurs when a comment is selected.
88249
+ *
88250
+ * @remarks
88251
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
88252
+ *
88253
+ * @eventproperty
88254
+ * @beta
88255
+ */
88256
+ readonly onCommentSelected: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
88217
88257
  /**
88218
88258
  * Occurs when data within the content control are changed. To get the new text, load this content control in the handler. To get the old text, do not load it.
88219
88259
  *
@@ -91251,6 +91291,56 @@ declare namespace Word {
91251
91291
  select?: string;
91252
91292
  expand?: string;
91253
91293
  }): Word.Paragraph;
91294
+ /**
91295
+ * Occurs when new comments are added.
91296
+ *
91297
+ * @remarks
91298
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
91299
+ *
91300
+ * @eventproperty
91301
+ * @beta
91302
+ */
91303
+ readonly onCommentAdded: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
91304
+ /**
91305
+ * Occurs when a comment or its reply is changed.
91306
+ *
91307
+ * @remarks
91308
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
91309
+ *
91310
+ * @eventproperty
91311
+ * @beta
91312
+ */
91313
+ readonly onCommentChanged: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
91314
+ /**
91315
+ * Occurs when comments are deleted.
91316
+ *
91317
+ * @remarks
91318
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
91319
+ *
91320
+ * @eventproperty
91321
+ * @beta
91322
+ */
91323
+ readonly onCommentDeleted: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
91324
+ /**
91325
+ * Occurs when a comment is deselected.
91326
+ *
91327
+ * @remarks
91328
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
91329
+ *
91330
+ * @eventproperty
91331
+ * @beta
91332
+ */
91333
+ readonly onCommentDeselected: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
91334
+ /**
91335
+ * Occurs when a comment is selected.
91336
+ *
91337
+ * @remarks
91338
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
91339
+ *
91340
+ * @eventproperty
91341
+ * @beta
91342
+ */
91343
+ readonly onCommentSelected: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
91254
91344
  /**
91255
91345
  * Track the object for automatic adjustment based on surrounding changes in the document. This call is a shorthand for {@link https://docs.microsoft.com/javascript/api/office/officeextension.clientrequestcontext#office-officeextension-clientrequestcontext-trackedobjects-member | context.trackedObjects.add(thisObject)}. If you are 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.
91256
91346
  */
@@ -91852,6 +91942,46 @@ declare namespace Word {
91852
91942
  select?: string;
91853
91943
  expand?: string;
91854
91944
  }): Word.Range;
91945
+ /**
91946
+ * Occurs when new comments are added.
91947
+ *
91948
+ * @remarks
91949
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
91950
+ *
91951
+ * @eventproperty
91952
+ * @beta
91953
+ */
91954
+ readonly onCommentAdded: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
91955
+ /**
91956
+ * Occurs when a comment or its reply is changed.
91957
+ *
91958
+ * @remarks
91959
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
91960
+ *
91961
+ * @eventproperty
91962
+ * @beta
91963
+ */
91964
+ readonly onCommentChanged: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
91965
+ /**
91966
+ * Occurs when a comment is deselected.
91967
+ *
91968
+ * @remarks
91969
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
91970
+ *
91971
+ * @eventproperty
91972
+ * @beta
91973
+ */
91974
+ readonly onCommentDeselected: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
91975
+ /**
91976
+ * Occurs when a comment is selected.
91977
+ *
91978
+ * @remarks
91979
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
91980
+ *
91981
+ * @eventproperty
91982
+ * @beta
91983
+ */
91984
+ readonly onCommentSelected: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
91855
91985
  /**
91856
91986
  * Track the object for automatic adjustment based on surrounding changes in the document. This call is a shorthand for {@link https://docs.microsoft.com/javascript/api/office/officeextension.clientrequestcontext#office-officeextension-clientrequestcontext-trackedobjects-member | context.trackedObjects.add(thisObject)}. If you are 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.
91857
91987
  */
@@ -93764,35 +93894,35 @@ declare namespace Word {
93764
93894
  */
93765
93895
  contentControlAdded = "ContentControlAdded",
93766
93896
  /**
93767
- * Represents that one or more comments were deleted from the comment collection.
93897
+ * Represents that one or more comments were deleted.
93768
93898
  * @remarks
93769
93899
  * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
93770
93900
  * @beta
93771
93901
  */
93772
93902
  commentDeleted = "CommentDeleted",
93773
93903
  /**
93774
- * Represents that a comment was selected in the comment collection.
93904
+ * Represents that a comment was selected.
93775
93905
  * @remarks
93776
93906
  * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
93777
93907
  * @beta
93778
93908
  */
93779
93909
  commentSelected = "CommentSelected",
93780
93910
  /**
93781
- * Represents that a comment was deselected in the comment collection.
93911
+ * Represents that a comment was deselected.
93782
93912
  * @remarks
93783
93913
  * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
93784
93914
  * @beta
93785
93915
  */
93786
93916
  commentDeselected = "CommentDeselected",
93787
93917
  /**
93788
- * Represents that a comment or its reply was changed in the comment collection.
93918
+ * Represents that a comment or its reply was changed.
93789
93919
  * @remarks
93790
93920
  * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
93791
93921
  * @beta
93792
93922
  */
93793
93923
  commentChanged = "CommentChanged",
93794
93924
  /**
93795
- * Represents that one or more new comments were added to the comment collection.
93925
+ * Represents that one or more new comments were added.
93796
93926
  * @remarks
93797
93927
  * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
93798
93928
  * @beta
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.360",
3
+ "version": "1.0.361",
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": "7a00fbeca65bd280ca493b8d05b8c325c400107715c662f5adb7cb7f56ec68d9",
48
+ "typesPublisherContentHash": "f2beca111504af9b2f903cc76d4f74740ca229d76b4cd7cc46510aa07ddba7a4",
49
49
  "typeScriptVersion": "4.2"
50
50
  }