@types/office-js-preview 1.0.360 → 1.0.362

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: Mon, 12 Dec 2022 21:49:43 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
14
14
 
@@ -653,14 +653,12 @@ declare namespace Office {
653
653
  onVisibilityModeChanged(
654
654
  handler: (message: VisibilityModeChangedMessage) => void,
655
655
  ): Promise<() => Promise<void>>;
656
-
657
656
  /**
658
657
  * Represents a modal notification dialog that can appear when the user attempts to close a document. The document won't close until the user responds.
659
658
  * This API is only supported in Excel.
660
659
  *
661
660
  * @remarks
662
- * [Api set: SharedRuntime BETA (PREVIEW ONLY)]
663
- * @beta
661
+ * **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/shared-runtime-requirement-sets | SharedRuntime 1.2}
664
662
  */
665
663
  beforeDocumentCloseNotification: BeforeDocumentCloseNotification;
666
664
  }
@@ -670,8 +668,7 @@ declare namespace Office {
670
668
  * This API is only supported in Excel.
671
669
  *
672
670
  * @remarks
673
- * [Api set: SharedRuntime BETA (PREVIEW ONLY)]
674
- * @beta
671
+ * **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/shared-runtime-requirement-sets | SharedRuntime 1.2}
675
672
  */
676
673
  interface BeforeDocumentCloseNotification {
677
674
  /**
@@ -680,8 +677,7 @@ declare namespace Office {
680
677
  * The `BeforeDocumentCloseNotification` API is only supported in Excel.
681
678
  *
682
679
  * @remarks
683
- * [Api set: SharedRuntime BETA (PREVIEW ONLY)]
684
- * @beta
680
+ * **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/shared-runtime-requirement-sets | SharedRuntime 1.2}
685
681
  */
686
682
  enable(): Promise<void>;
687
683
 
@@ -690,26 +686,24 @@ declare namespace Office {
690
686
  * The `BeforeDocumentCloseNotification` API is only supported in Excel.
691
687
  *
692
688
  * @remarks
693
- * [Api set: SharedRuntime BETA (PREVIEW ONLY)]
694
- * @beta
689
+ * **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/shared-runtime-requirement-sets | SharedRuntime 1.2}
695
690
  */
696
691
  disable(): Promise<void>;
697
692
 
698
693
  /**
699
694
  * Adds an event handler that detects when the `BeforeDocumentCloseNotification` close operation is cancelled.
700
- * This event handler will be triggered if one of the following conditions is met.
701
- *
702
- * 1. When the notification dialog is open, the end user clicks the **Don't close** button within the dialog, clicks the Close button in the upper right corner of the dialog, or presses the Esc key.
695
+ * This event handler will be triggered if both of the following conditions are met.
703
696
  *
704
- * 2. When the add-in calls the `enable` method on the `BeforeDocumentCloseNotification` object.
697
+ * 1. The add-in calls the `enable` method on the `BeforeDocumentCloseNotification` object.
698
+ *
699
+ * 2. When the notification dialog is open, the end user clicks the **Don't close** button within the dialog, clicks the Close button in the upper right corner of the dialog, or presses the Esc key.
705
700
  *
706
701
  * The `BeforeDocumentCloseNotification` API is only supported in Excel.
707
702
  * @param handler The event handler that is called when the dialog is cancelled.
708
703
  * @returns A promise that resolves when the event handler is added.
709
704
  *
710
705
  * @remarks
711
- * [Api set: SharedRuntime BETA (PREVIEW ONLY)]
712
- * @beta
706
+ * **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/shared-runtime-requirement-sets | SharedRuntime 1.2}
713
707
  */
714
708
  onCloseActionCancelled(
715
709
  handler: () => void
@@ -87234,6 +87228,56 @@ declare namespace Word {
87234
87228
  select?: string;
87235
87229
  expand?: string;
87236
87230
  }): Word.Body;
87231
+ /**
87232
+ * Occurs when new comments are added.
87233
+ *
87234
+ * @remarks
87235
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
87236
+ *
87237
+ * @eventproperty
87238
+ * @beta
87239
+ */
87240
+ readonly onCommentAdded: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
87241
+ /**
87242
+ * Occurs when a comment or its reply is changed.
87243
+ *
87244
+ * @remarks
87245
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
87246
+ *
87247
+ * @eventproperty
87248
+ * @beta
87249
+ */
87250
+ readonly onCommentChanged: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
87251
+ /**
87252
+ * Occurs when comments are deleted.
87253
+ *
87254
+ * @remarks
87255
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
87256
+ *
87257
+ * @eventproperty
87258
+ * @beta
87259
+ */
87260
+ readonly onCommentDeleted: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
87261
+ /**
87262
+ * Occurs when a comment is deselected.
87263
+ *
87264
+ * @remarks
87265
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
87266
+ *
87267
+ * @eventproperty
87268
+ * @beta
87269
+ */
87270
+ readonly onCommentDeselected: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
87271
+ /**
87272
+ * Occurs when a comment is selected.
87273
+ *
87274
+ * @remarks
87275
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
87276
+ *
87277
+ * @eventproperty
87278
+ * @beta
87279
+ */
87280
+ readonly onCommentSelected: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
87237
87281
  /**
87238
87282
  * 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
87283
  */
@@ -87422,56 +87466,6 @@ declare namespace Word {
87422
87466
  * @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
87467
  */
87424
87468
  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
87469
  /**
87476
87470
  * 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
87471
  */
@@ -88214,6 +88208,46 @@ declare namespace Word {
88214
88208
  select?: string;
88215
88209
  expand?: string;
88216
88210
  }): Word.ContentControl;
88211
+ /**
88212
+ * Occurs when new comments are added.
88213
+ *
88214
+ * @remarks
88215
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
88216
+ *
88217
+ * @eventproperty
88218
+ * @beta
88219
+ */
88220
+ readonly onCommentAdded: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
88221
+ /**
88222
+ * Occurs when a comment or its reply is changed.
88223
+ *
88224
+ * @remarks
88225
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
88226
+ *
88227
+ * @eventproperty
88228
+ * @beta
88229
+ */
88230
+ readonly onCommentChanged: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
88231
+ /**
88232
+ * Occurs when a comment is deselected.
88233
+ *
88234
+ * @remarks
88235
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
88236
+ *
88237
+ * @eventproperty
88238
+ * @beta
88239
+ */
88240
+ readonly onCommentDeselected: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
88241
+ /**
88242
+ * Occurs when a comment is selected.
88243
+ *
88244
+ * @remarks
88245
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
88246
+ *
88247
+ * @eventproperty
88248
+ * @beta
88249
+ */
88250
+ readonly onCommentSelected: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
88217
88251
  /**
88218
88252
  * 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
88253
  *
@@ -91251,6 +91285,56 @@ declare namespace Word {
91251
91285
  select?: string;
91252
91286
  expand?: string;
91253
91287
  }): Word.Paragraph;
91288
+ /**
91289
+ * Occurs when new comments are added.
91290
+ *
91291
+ * @remarks
91292
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
91293
+ *
91294
+ * @eventproperty
91295
+ * @beta
91296
+ */
91297
+ readonly onCommentAdded: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
91298
+ /**
91299
+ * Occurs when a comment or its reply is changed.
91300
+ *
91301
+ * @remarks
91302
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
91303
+ *
91304
+ * @eventproperty
91305
+ * @beta
91306
+ */
91307
+ readonly onCommentChanged: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
91308
+ /**
91309
+ * Occurs when comments are deleted.
91310
+ *
91311
+ * @remarks
91312
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
91313
+ *
91314
+ * @eventproperty
91315
+ * @beta
91316
+ */
91317
+ readonly onCommentDeleted: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
91318
+ /**
91319
+ * Occurs when a comment is deselected.
91320
+ *
91321
+ * @remarks
91322
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
91323
+ *
91324
+ * @eventproperty
91325
+ * @beta
91326
+ */
91327
+ readonly onCommentDeselected: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
91328
+ /**
91329
+ * Occurs when a comment is selected.
91330
+ *
91331
+ * @remarks
91332
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
91333
+ *
91334
+ * @eventproperty
91335
+ * @beta
91336
+ */
91337
+ readonly onCommentSelected: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
91254
91338
  /**
91255
91339
  * 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
91340
  */
@@ -91852,6 +91936,46 @@ declare namespace Word {
91852
91936
  select?: string;
91853
91937
  expand?: string;
91854
91938
  }): Word.Range;
91939
+ /**
91940
+ * Occurs when new comments are added.
91941
+ *
91942
+ * @remarks
91943
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
91944
+ *
91945
+ * @eventproperty
91946
+ * @beta
91947
+ */
91948
+ readonly onCommentAdded: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
91949
+ /**
91950
+ * Occurs when a comment or its reply is changed.
91951
+ *
91952
+ * @remarks
91953
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
91954
+ *
91955
+ * @eventproperty
91956
+ * @beta
91957
+ */
91958
+ readonly onCommentChanged: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
91959
+ /**
91960
+ * Occurs when a comment is deselected.
91961
+ *
91962
+ * @remarks
91963
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
91964
+ *
91965
+ * @eventproperty
91966
+ * @beta
91967
+ */
91968
+ readonly onCommentDeselected: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
91969
+ /**
91970
+ * Occurs when a comment is selected.
91971
+ *
91972
+ * @remarks
91973
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
91974
+ *
91975
+ * @eventproperty
91976
+ * @beta
91977
+ */
91978
+ readonly onCommentSelected: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
91855
91979
  /**
91856
91980
  * 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
91981
  */
@@ -93764,35 +93888,35 @@ declare namespace Word {
93764
93888
  */
93765
93889
  contentControlAdded = "ContentControlAdded",
93766
93890
  /**
93767
- * Represents that one or more comments were deleted from the comment collection.
93891
+ * Represents that one or more comments were deleted.
93768
93892
  * @remarks
93769
93893
  * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
93770
93894
  * @beta
93771
93895
  */
93772
93896
  commentDeleted = "CommentDeleted",
93773
93897
  /**
93774
- * Represents that a comment was selected in the comment collection.
93898
+ * Represents that a comment was selected.
93775
93899
  * @remarks
93776
93900
  * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
93777
93901
  * @beta
93778
93902
  */
93779
93903
  commentSelected = "CommentSelected",
93780
93904
  /**
93781
- * Represents that a comment was deselected in the comment collection.
93905
+ * Represents that a comment was deselected.
93782
93906
  * @remarks
93783
93907
  * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
93784
93908
  * @beta
93785
93909
  */
93786
93910
  commentDeselected = "CommentDeselected",
93787
93911
  /**
93788
- * Represents that a comment or its reply was changed in the comment collection.
93912
+ * Represents that a comment or its reply was changed.
93789
93913
  * @remarks
93790
93914
  * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
93791
93915
  * @beta
93792
93916
  */
93793
93917
  commentChanged = "CommentChanged",
93794
93918
  /**
93795
- * Represents that one or more new comments were added to the comment collection.
93919
+ * Represents that one or more new comments were added.
93796
93920
  * @remarks
93797
93921
  * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
93798
93922
  * @beta
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.360",
3
+ "version": "1.0.362",
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": "cc9dc189049fc9c07434e7a14814b03c534686e2f0e8f2a9b355c53c656e31ed",
49
49
  "typeScriptVersion": "4.2"
50
50
  }