@types/office-js-preview 1.0.359 → 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.
- office-js-preview/README.md +1 -1
- office-js-preview/index.d.ts +213 -63
- office-js-preview/package.json +2 -2
office-js-preview/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-preview.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
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
|
|
office-js-preview/index.d.ts
CHANGED
|
@@ -11691,7 +11691,9 @@ declare namespace Office {
|
|
|
11691
11691
|
*/
|
|
11692
11692
|
getEntitiesByType(entityType: MailboxEnums.EntityType | string): (string | Contact | MeetingSuggestion | PhoneNumber | TaskSuggestion)[];
|
|
11693
11693
|
/**
|
|
11694
|
-
* Returns well-known entities in the selected item that pass the named filter defined in
|
|
11694
|
+
* Returns well-known entities in the selected item that pass the named filter defined in an XML manifest file.
|
|
11695
|
+
*
|
|
11696
|
+
* **Note**: This method is used with the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/activation-rules | activation rules feature for Outlook add-ins}, which isn't supported by the {@link https://learn.microsoft.com/office/dev/add-ins/develop/json-manifest-overview | Teams manifest for Office Add-ins (preview)}.
|
|
11695
11697
|
*
|
|
11696
11698
|
* The `getFilteredEntitiesByName` method returns the entities that match the regular expression defined in the `ItemHasKnownEntity` rule element
|
|
11697
11699
|
* in the manifest XML file with the specified `FilterName` element value.
|
|
@@ -11747,7 +11749,9 @@ declare namespace Office {
|
|
|
11747
11749
|
*/
|
|
11748
11750
|
getInitializationContextAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
11749
11751
|
/**
|
|
11750
|
-
* Returns string values in the selected item that match the regular expressions defined in
|
|
11752
|
+
* Returns string values in the selected item that match the regular expressions defined in an XML manifest file.
|
|
11753
|
+
*
|
|
11754
|
+
* **Note**: This method is used with the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/activation-rules | activation rules feature for Outlook add-ins}, which isn't supported by the {@link https://learn.microsoft.com/office/dev/add-ins/develop/json-manifest-overview | Teams manifest for Office Add-ins (preview)}.
|
|
11751
11755
|
*
|
|
11752
11756
|
* The `getRegExMatches` method returns the strings that match the regular expression defined in each `ItemHasRegularExpressionMatch` or
|
|
11753
11757
|
* `ItemHasKnownEntity` rule element in the manifest XML file.
|
|
@@ -11774,7 +11778,9 @@ declare namespace Office {
|
|
|
11774
11778
|
*/
|
|
11775
11779
|
getRegExMatches(): any;
|
|
11776
11780
|
/**
|
|
11777
|
-
* Returns string values in the selected item that match the named regular expression defined in
|
|
11781
|
+
* Returns string values in the selected item that match the named regular expression defined in an XML manifest file.
|
|
11782
|
+
*
|
|
11783
|
+
* **Note**: This method is used with the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/activation-rules | activation rules feature for Outlook add-ins}, which isn't supported by the {@link https://learn.microsoft.com/office/dev/add-ins/develop/json-manifest-overview | Teams manifest for Office Add-ins (preview)}.
|
|
11778
11784
|
*
|
|
11779
11785
|
* The `getRegExMatchesByName` method returns the strings that match the regular expression defined in the `ItemHasRegularExpressionMatch` rule
|
|
11780
11786
|
* element in the manifest XML file with the specified `RegExName` element value.
|
|
@@ -11799,6 +11805,8 @@ declare namespace Office {
|
|
|
11799
11805
|
getRegExMatchesByName(name: string): string[];
|
|
11800
11806
|
/**
|
|
11801
11807
|
* Gets the entities found in a highlighted match a user has selected. Highlighted matches apply to contextual add-ins.
|
|
11808
|
+
*
|
|
11809
|
+
* **Note**: This method is used with the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/activation-rules | activation rules feature for Outlook add-ins}, which isn't supported by the {@link https://learn.microsoft.com/office/dev/add-ins/develop/json-manifest-overview | Teams manifest for Office Add-ins (preview)}.
|
|
11802
11810
|
*
|
|
11803
11811
|
* **Note**: This method is not supported in Outlook on iOS or Android.
|
|
11804
11812
|
*
|
|
@@ -11813,8 +11821,10 @@ declare namespace Office {
|
|
|
11813
11821
|
*/
|
|
11814
11822
|
getSelectedEntities(): Entities;
|
|
11815
11823
|
/**
|
|
11816
|
-
* Returns string values in a highlighted match that match the regular expressions defined in
|
|
11824
|
+
* Returns string values in a highlighted match that match the regular expressions defined in an XML manifest file.
|
|
11817
11825
|
* Highlighted matches apply to contextual add-ins.
|
|
11826
|
+
*
|
|
11827
|
+
* **Note**: This method is used with the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/activation-rules | activation rules feature for Outlook add-ins}, which isn't supported by the {@link https://learn.microsoft.com/office/dev/add-ins/develop/json-manifest-overview | Teams manifest for Office Add-ins (preview)}.
|
|
11818
11828
|
*
|
|
11819
11829
|
* The `getSelectedRegExMatches` method returns the strings that match the regular expression defined in each `ItemHasRegularExpressionMatch` or
|
|
11820
11830
|
* `ItemHasKnownEntity` rule element in the manifest XML file.
|
|
@@ -16839,7 +16849,9 @@ declare namespace Office {
|
|
|
16839
16849
|
*/
|
|
16840
16850
|
getEntitiesByType(entityType: MailboxEnums.EntityType | string): (string | Contact | MeetingSuggestion | PhoneNumber | TaskSuggestion)[];
|
|
16841
16851
|
/**
|
|
16842
|
-
* Returns well-known entities in the selected item that pass the named filter defined in
|
|
16852
|
+
* Returns well-known entities in the selected item that pass the named filter defined in an XML manifest file.
|
|
16853
|
+
*
|
|
16854
|
+
* **Note**: This method is used with the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/activation-rules | activation rules feature for Outlook add-ins}, which isn't supported by the {@link https://learn.microsoft.com/office/dev/add-ins/develop/json-manifest-overview | Teams manifest for Office Add-ins (preview)}.
|
|
16843
16855
|
*
|
|
16844
16856
|
* The `getFilteredEntitiesByName` method returns the entities that match the regular expression defined in the `ItemHasKnownEntity` rule element
|
|
16845
16857
|
* in the manifest XML file with the specified `FilterName` element value.
|
|
@@ -16895,7 +16907,9 @@ declare namespace Office {
|
|
|
16895
16907
|
*/
|
|
16896
16908
|
getInitializationContextAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
16897
16909
|
/**
|
|
16898
|
-
* Returns string values in the selected item that match the regular expressions defined in
|
|
16910
|
+
* Returns string values in the selected item that match the regular expressions defined in an XML manifest file.
|
|
16911
|
+
*
|
|
16912
|
+
* **Note**: This method is used with the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/activation-rules | activation rules feature for Outlook add-ins}, which isn't supported by the {@link https://learn.microsoft.com/office/dev/add-ins/develop/json-manifest-overview | Teams manifest for Office Add-ins (preview)}.
|
|
16899
16913
|
*
|
|
16900
16914
|
* The `getRegExMatches` method returns the strings that match the regular expression defined in each `ItemHasRegularExpressionMatch` or
|
|
16901
16915
|
* `ItemHasKnownEntity` rule element in the manifest XML file.
|
|
@@ -16922,7 +16936,9 @@ declare namespace Office {
|
|
|
16922
16936
|
*/
|
|
16923
16937
|
getRegExMatches(): any;
|
|
16924
16938
|
/**
|
|
16925
|
-
* Returns string values in the selected item that match the named regular expression defined in
|
|
16939
|
+
* Returns string values in the selected item that match the named regular expression defined in an XML manifest file.
|
|
16940
|
+
*
|
|
16941
|
+
* **Note**: This method is used with the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/activation-rules | activation rules feature for Outlook add-ins}, which isn't supported by the {@link https://learn.microsoft.com/office/dev/add-ins/develop/json-manifest-overview | Teams manifest for Office Add-ins (preview)}.
|
|
16926
16942
|
*
|
|
16927
16943
|
* The `getRegExMatchesByName` method returns the strings that match the regular expression defined in the
|
|
16928
16944
|
* `ItemHasRegularExpressionMatch` rule element in the manifest XML file with the specified `RegExName` element value.
|
|
@@ -16947,6 +16963,8 @@ declare namespace Office {
|
|
|
16947
16963
|
getRegExMatchesByName(name: string): string[];
|
|
16948
16964
|
/**
|
|
16949
16965
|
* Gets the entities found in a highlighted match a user has selected. Highlighted matches apply to contextual add-ins.
|
|
16966
|
+
*
|
|
16967
|
+
* **Note**: This method is used with the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/activation-rules | activation rules feature for Outlook add-ins}, which isn't supported by the {@link https://learn.microsoft.com/office/dev/add-ins/develop/json-manifest-overview | Teams manifest for Office Add-ins (preview)}.
|
|
16950
16968
|
*
|
|
16951
16969
|
* **Note**: This method is not supported in Outlook on iOS or Android.
|
|
16952
16970
|
*
|
|
@@ -16961,8 +16979,10 @@ declare namespace Office {
|
|
|
16961
16979
|
*/
|
|
16962
16980
|
getSelectedEntities(): Entities;
|
|
16963
16981
|
/**
|
|
16964
|
-
* Returns string values in a highlighted match that match the regular expressions defined in
|
|
16982
|
+
* Returns string values in a highlighted match that match the regular expressions defined in an XML manifest file.
|
|
16965
16983
|
* Highlighted matches apply to contextual add-ins.
|
|
16984
|
+
*
|
|
16985
|
+
* **Note**: This method is used with the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/activation-rules | activation rules feature for Outlook add-ins}, which isn't supported by the {@link https://learn.microsoft.com/office/dev/add-ins/develop/json-manifest-overview | Teams manifest for Office Add-ins (preview)}.
|
|
16966
16986
|
*
|
|
16967
16987
|
* The `getSelectedRegExMatches` method returns the strings that match the regular expression defined in
|
|
16968
16988
|
* each `ItemHasRegularExpressionMatch` or `ItemHasKnownEntity` rule element in the manifest XML file.
|
|
@@ -87214,6 +87234,56 @@ declare namespace Word {
|
|
|
87214
87234
|
select?: string;
|
|
87215
87235
|
expand?: string;
|
|
87216
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>;
|
|
87217
87287
|
/**
|
|
87218
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.
|
|
87219
87289
|
*/
|
|
@@ -87402,56 +87472,6 @@ declare namespace Word {
|
|
|
87402
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.
|
|
87403
87473
|
*/
|
|
87404
87474
|
load(propertyNamesAndPaths?: OfficeExtension.LoadOption): Word.CommentCollection;
|
|
87405
|
-
/**
|
|
87406
|
-
* Occurs when new comments are added.
|
|
87407
|
-
*
|
|
87408
|
-
* @remarks
|
|
87409
|
-
* [Api set: WordApiOnline BETA (PREVIEW ONLY)]
|
|
87410
|
-
*
|
|
87411
|
-
* @eventproperty
|
|
87412
|
-
* @beta
|
|
87413
|
-
*/
|
|
87414
|
-
readonly onCommentAdded: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
|
|
87415
|
-
/**
|
|
87416
|
-
* Occurs when a comment or its reply is changed.
|
|
87417
|
-
*
|
|
87418
|
-
* @remarks
|
|
87419
|
-
* [Api set: WordApiOnline BETA (PREVIEW ONLY)]
|
|
87420
|
-
*
|
|
87421
|
-
* @eventproperty
|
|
87422
|
-
* @beta
|
|
87423
|
-
*/
|
|
87424
|
-
readonly onCommentChanged: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
|
|
87425
|
-
/**
|
|
87426
|
-
* Occurs when comments are deleted.
|
|
87427
|
-
*
|
|
87428
|
-
* @remarks
|
|
87429
|
-
* [Api set: WordApiOnline BETA (PREVIEW ONLY)]
|
|
87430
|
-
*
|
|
87431
|
-
* @eventproperty
|
|
87432
|
-
* @beta
|
|
87433
|
-
*/
|
|
87434
|
-
readonly onCommentDeleted: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
|
|
87435
|
-
/**
|
|
87436
|
-
* Occurs when a comment is deselected.
|
|
87437
|
-
*
|
|
87438
|
-
* @remarks
|
|
87439
|
-
* [Api set: WordApiOnline BETA (PREVIEW ONLY)]
|
|
87440
|
-
*
|
|
87441
|
-
* @eventproperty
|
|
87442
|
-
* @beta
|
|
87443
|
-
*/
|
|
87444
|
-
readonly onCommentDeselected: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
|
|
87445
|
-
/**
|
|
87446
|
-
* Occurs when a comment is selected.
|
|
87447
|
-
*
|
|
87448
|
-
* @remarks
|
|
87449
|
-
* [Api set: WordApiOnline BETA (PREVIEW ONLY)]
|
|
87450
|
-
*
|
|
87451
|
-
* @eventproperty
|
|
87452
|
-
* @beta
|
|
87453
|
-
*/
|
|
87454
|
-
readonly onCommentSelected: OfficeExtension.EventHandlers<Word.CommentEventArgs>;
|
|
87455
87475
|
/**
|
|
87456
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.
|
|
87457
87477
|
*/
|
|
@@ -88194,6 +88214,46 @@ declare namespace Word {
|
|
|
88194
88214
|
select?: string;
|
|
88195
88215
|
expand?: string;
|
|
88196
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>;
|
|
88197
88257
|
/**
|
|
88198
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.
|
|
88199
88259
|
*
|
|
@@ -91231,6 +91291,56 @@ declare namespace Word {
|
|
|
91231
91291
|
select?: string;
|
|
91232
91292
|
expand?: string;
|
|
91233
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>;
|
|
91234
91344
|
/**
|
|
91235
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.
|
|
91236
91346
|
*/
|
|
@@ -91832,6 +91942,46 @@ declare namespace Word {
|
|
|
91832
91942
|
select?: string;
|
|
91833
91943
|
expand?: string;
|
|
91834
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>;
|
|
91835
91985
|
/**
|
|
91836
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.
|
|
91837
91987
|
*/
|
|
@@ -93744,35 +93894,35 @@ declare namespace Word {
|
|
|
93744
93894
|
*/
|
|
93745
93895
|
contentControlAdded = "ContentControlAdded",
|
|
93746
93896
|
/**
|
|
93747
|
-
* Represents that one or more comments were deleted
|
|
93897
|
+
* Represents that one or more comments were deleted.
|
|
93748
93898
|
* @remarks
|
|
93749
93899
|
* [Api set: WordApiOnline BETA (PREVIEW ONLY)]
|
|
93750
93900
|
* @beta
|
|
93751
93901
|
*/
|
|
93752
93902
|
commentDeleted = "CommentDeleted",
|
|
93753
93903
|
/**
|
|
93754
|
-
* Represents that a comment was selected
|
|
93904
|
+
* Represents that a comment was selected.
|
|
93755
93905
|
* @remarks
|
|
93756
93906
|
* [Api set: WordApiOnline BETA (PREVIEW ONLY)]
|
|
93757
93907
|
* @beta
|
|
93758
93908
|
*/
|
|
93759
93909
|
commentSelected = "CommentSelected",
|
|
93760
93910
|
/**
|
|
93761
|
-
* Represents that a comment was deselected
|
|
93911
|
+
* Represents that a comment was deselected.
|
|
93762
93912
|
* @remarks
|
|
93763
93913
|
* [Api set: WordApiOnline BETA (PREVIEW ONLY)]
|
|
93764
93914
|
* @beta
|
|
93765
93915
|
*/
|
|
93766
93916
|
commentDeselected = "CommentDeselected",
|
|
93767
93917
|
/**
|
|
93768
|
-
* Represents that a comment or its reply was changed
|
|
93918
|
+
* Represents that a comment or its reply was changed.
|
|
93769
93919
|
* @remarks
|
|
93770
93920
|
* [Api set: WordApiOnline BETA (PREVIEW ONLY)]
|
|
93771
93921
|
* @beta
|
|
93772
93922
|
*/
|
|
93773
93923
|
commentChanged = "CommentChanged",
|
|
93774
93924
|
/**
|
|
93775
|
-
* Represents that one or more new comments were added
|
|
93925
|
+
* Represents that one or more new comments were added.
|
|
93776
93926
|
* @remarks
|
|
93777
93927
|
* [Api set: WordApiOnline BETA (PREVIEW ONLY)]
|
|
93778
93928
|
* @beta
|
office-js-preview/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js-preview",
|
|
3
|
-
"version": "1.0.
|
|
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": "
|
|
48
|
+
"typesPublisherContentHash": "f2beca111504af9b2f903cc76d4f74740ca229d76b4cd7cc46510aa07ddba7a4",
|
|
49
49
|
"typeScriptVersion": "4.2"
|
|
50
50
|
}
|