@types/office-js-preview 1.0.491 → 1.0.493
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 +93 -32
- 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-preview (https://github.com
|
|
|
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 Aug 2024
|
|
11
|
+
* Last updated: Tue, 06 Aug 2024 21:07:20 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js-preview/index.d.ts
CHANGED
|
@@ -3508,7 +3508,7 @@ declare namespace Office {
|
|
|
3508
3508
|
value: T;
|
|
3509
3509
|
}
|
|
3510
3510
|
/**
|
|
3511
|
-
* The Office Auth namespace, `Office.auth`, provides
|
|
3511
|
+
* The Office Auth namespace, `Office.auth`, provides methods for the Office client application to obtain access tokens to the add-in's web application.
|
|
3512
3512
|
* Indirectly, this also enables the add-in to access the signed-in user's Microsoft Graph data without requiring the user to sign in a second time.
|
|
3513
3513
|
*/
|
|
3514
3514
|
interface Auth {
|
|
@@ -3594,6 +3594,18 @@ declare namespace Office {
|
|
|
3594
3594
|
* @returns Promise to the access token.
|
|
3595
3595
|
*/
|
|
3596
3596
|
getAccessToken(options?: AuthOptions): Promise<string>;
|
|
3597
|
+
/**
|
|
3598
|
+
* Get the necessary information about the current user. The add-in passes this to MSAL.js to get an access token for the current session.
|
|
3599
|
+
*
|
|
3600
|
+
* @remarks
|
|
3601
|
+
*
|
|
3602
|
+
* **Hosts**: Excel, OneNote, Outlook, PowerPoint, Word
|
|
3603
|
+
*
|
|
3604
|
+
* **Requirement set**: NestedAppAuth 1.1
|
|
3605
|
+
*
|
|
3606
|
+
* @returns Promise to the AuthContext object.
|
|
3607
|
+
*/
|
|
3608
|
+
getAuthContext(): Promise<AuthContext>;
|
|
3597
3609
|
}
|
|
3598
3610
|
/**
|
|
3599
3611
|
* Provides options for the user experience when Office obtains an access token to the add-in from AAD v. 2.0 with the `getAccessToken` method.
|
|
@@ -3654,6 +3666,35 @@ declare namespace Office {
|
|
|
3654
3666
|
*/
|
|
3655
3667
|
forMSGraphAccess?: boolean;
|
|
3656
3668
|
}
|
|
3669
|
+
/**
|
|
3670
|
+
* Represents the user information which can be passed to msal.js.
|
|
3671
|
+
*/
|
|
3672
|
+
interface AuthContext {
|
|
3673
|
+
/**
|
|
3674
|
+
* The unique ID of the account.
|
|
3675
|
+
*/
|
|
3676
|
+
userObjectId: string;
|
|
3677
|
+
/**
|
|
3678
|
+
* The full tenant or organizational ID that this account belongs to.
|
|
3679
|
+
*/
|
|
3680
|
+
tenantId: string;
|
|
3681
|
+
/**
|
|
3682
|
+
* The user's internet-style login name, based on the Internet standard RFC. Also known as UPN.
|
|
3683
|
+
*/
|
|
3684
|
+
userPrincipalName: string;
|
|
3685
|
+
/**
|
|
3686
|
+
* The identity type by its identity provider (IdP) for this account. "aad" represents an organization account and "msa" represents a {@link https://support.microsoft.com/account-billing/4a7c48e9-ff5a-e9c6-5a5c-1a57d66c3bfa | Microsoft personal account}.
|
|
3687
|
+
*/
|
|
3688
|
+
authorityType: "aad" | "msa" | "other";
|
|
3689
|
+
/**
|
|
3690
|
+
* The URL that indicates a directory that MSAL can request tokens from.
|
|
3691
|
+
*/
|
|
3692
|
+
authorityBaseUrl: string;
|
|
3693
|
+
/**
|
|
3694
|
+
* An optional claim that provides a hint about the user account attempting to sign in.
|
|
3695
|
+
*/
|
|
3696
|
+
loginHint: string;
|
|
3697
|
+
}
|
|
3657
3698
|
/**
|
|
3658
3699
|
* 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.
|
|
3659
3700
|
* The notification dialog will allow the user to confirm the request to close the document or cancel the request to close the document.
|
|
@@ -91740,7 +91781,7 @@ declare namespace Word {
|
|
|
91740
91781
|
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
|
|
91741
91782
|
context: RequestContext;
|
|
91742
91783
|
/**
|
|
91743
|
-
* Specifies the checkbox-related data if the content control's type is 'CheckBox'. It's null otherwise.
|
|
91784
|
+
* Specifies the checkbox-related data if the content control's type is 'CheckBox'. It's `null` otherwise.
|
|
91744
91785
|
*
|
|
91745
91786
|
* @remarks
|
|
91746
91787
|
* [Api set: WordApi 1.7]
|
|
@@ -91762,7 +91803,7 @@ declare namespace Word {
|
|
|
91762
91803
|
*/
|
|
91763
91804
|
readonly contentControls: Word.ContentControlCollection;
|
|
91764
91805
|
/**
|
|
91765
|
-
* Specifies the dropdown list-related data if the content control's type is 'DropDownList'. It's null otherwise.
|
|
91806
|
+
* Specifies the dropdown list-related data if the content control's type is 'DropDownList'. It's `null` otherwise.
|
|
91766
91807
|
*
|
|
91767
91808
|
* @remarks
|
|
91768
91809
|
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
@@ -92646,8 +92687,8 @@ declare namespace Word {
|
|
|
92646
92687
|
* @remarks
|
|
92647
92688
|
* [Api set: WordApi 1.5]
|
|
92648
92689
|
*
|
|
92649
|
-
* Note:
|
|
92650
|
-
*
|
|
92690
|
+
* Note: 'PlainText' support was added in WordApi 1.5. 'CheckBox' support was added in WordApi 1.7.
|
|
92691
|
+
* 'DropDownList' and 'ComboBox' support are currently in preview.
|
|
92651
92692
|
*/
|
|
92652
92693
|
types: Word.ContentControlType[];
|
|
92653
92694
|
}
|
|
@@ -94184,7 +94225,11 @@ declare namespace Word {
|
|
|
94184
94225
|
* @remarks
|
|
94185
94226
|
* [Api set: WordApi 1.4]
|
|
94186
94227
|
*
|
|
94187
|
-
* Important: To learn more about which fields can be inserted, see the Word.Range.insertField API introduced in requirement set 1.5.
|
|
94228
|
+
* Important: To learn more about which fields can be inserted, see the `Word.Range.insertField` API introduced in requirement set 1.5.
|
|
94229
|
+
* Support for managing fields is similar to what's available in the Word UI.
|
|
94230
|
+
* However, while the Word UI on the web primarily only supports fields as read-only (see {@link https://support.microsoft.com/office/d8f46094-13c3-4966-98c3-259748f3caf1 | Field codes in Word for the web}),
|
|
94231
|
+
* the `Addin` field is editable. To learn more about Word UI clients that more fully support fields,
|
|
94232
|
+
* see the product list at the beginning of {@link https://support.microsoft.com/office/c429bbb0-8669-48a7-bd24-bab6ba6b06bb | Insert, edit, and view fields in Word}.
|
|
94188
94233
|
*/
|
|
94189
94234
|
class Field extends OfficeExtension.ClientObject {
|
|
94190
94235
|
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
|
|
@@ -94255,7 +94300,7 @@ declare namespace Word {
|
|
|
94255
94300
|
*/
|
|
94256
94301
|
code: string;
|
|
94257
94302
|
/**
|
|
94258
|
-
* Specifies data in an "Addin" field. If the field isn't an "Addin" field, it is null and it will throw a general exception when code attempts to set it.
|
|
94303
|
+
* Specifies data in an "Addin" field. If the field isn't an "Addin" field, it is `null` and it will throw a general exception when code attempts to set it.
|
|
94259
94304
|
*
|
|
94260
94305
|
* @remarks
|
|
94261
94306
|
* [Api set: WordApi 1.5]
|
|
@@ -94385,7 +94430,11 @@ declare namespace Word {
|
|
|
94385
94430
|
* @remarks
|
|
94386
94431
|
* [Api set: WordApi 1.4]
|
|
94387
94432
|
*
|
|
94388
|
-
* Important: To learn more about which fields can be inserted, see the Word.Range.insertField API introduced in requirement set 1.5.
|
|
94433
|
+
* Important: To learn more about which fields can be inserted, see the `Word.Range.insertField API` introduced in requirement set 1.5.
|
|
94434
|
+
* Support for managing fields is similar to what's available in the Word UI.
|
|
94435
|
+
* However, while the Word UI on the web primarily only supports fields as read-only (see {@link https://support.microsoft.com/office/d8f46094-13c3-4966-98c3-259748f3caf1 | Field codes in Word for the web}),
|
|
94436
|
+
* the `Addin` field is editable. To learn more about Word UI clients that more fully support fields,
|
|
94437
|
+
* see the product list at the beginning of {@link https://support.microsoft.com/office/c429bbb0-8669-48a7-bd24-bab6ba6b06bb | Insert, edit, and view fields in Word}.
|
|
94389
94438
|
*/
|
|
94390
94439
|
class FieldCollection extends OfficeExtension.ClientObject {
|
|
94391
94440
|
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
|
|
@@ -94486,7 +94535,7 @@ declare namespace Word {
|
|
|
94486
94535
|
*/
|
|
94487
94536
|
hidden: boolean;
|
|
94488
94537
|
/**
|
|
94489
|
-
* Specifies the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or null for no highlight color. Note: Only the default highlight colors are available in Office for Windows Desktop. These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", and "Black". When the add-in runs in Office for Windows Desktop, any other color is converted to the closest color when applied to the font.
|
|
94538
|
+
* Specifies the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or `null` for no highlight color. Note: Only the default highlight colors are available in Office for Windows Desktop. These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", and "Black". When the add-in runs in Office for Windows Desktop, any other color is converted to the closest color when applied to the font.
|
|
94490
94539
|
*
|
|
94491
94540
|
* @remarks
|
|
94492
94541
|
* [Api set: WordApi 1.1]
|
|
@@ -97029,17 +97078,17 @@ declare namespace Word {
|
|
|
97029
97078
|
*
|
|
97030
97079
|
* Important:
|
|
97031
97080
|
*
|
|
97032
|
-
* In Word on Windows and on Mac, the API supports inserting and managing all types listed in {@link Word.FieldType} except Word.FieldType.others
|
|
97081
|
+
* In Word on Windows and on Mac, the API supports inserting and managing all types listed in {@link Word.FieldType} except `Word.FieldType.others`.
|
|
97033
97082
|
*
|
|
97034
97083
|
* In Word on the web, the API supports inserting and managing the following field types.
|
|
97035
97084
|
*
|
|
97036
|
-
* - Word.FieldType.addin
|
|
97085
|
+
* - `Word.FieldType.addin`
|
|
97037
97086
|
*
|
|
97038
|
-
* - Word.FieldType.date
|
|
97087
|
+
* - `Word.FieldType.date`
|
|
97039
97088
|
*
|
|
97040
|
-
* - Word.FieldType.hyperlink
|
|
97089
|
+
* - `Word.FieldType.hyperlink`
|
|
97041
97090
|
*
|
|
97042
|
-
* - Word.FieldType.toc
|
|
97091
|
+
* - `Word.FieldType.toc`
|
|
97043
97092
|
*
|
|
97044
97093
|
* @param insertLocation Required. The location relative to the range where the field will be inserted. The value must be 'Replace', 'Start', 'End', 'Before', or 'After'.
|
|
97045
97094
|
* @param fieldType Optional. Can be any FieldType constant. The default value is Empty.
|
|
@@ -97055,17 +97104,17 @@ declare namespace Word {
|
|
|
97055
97104
|
*
|
|
97056
97105
|
* Important:
|
|
97057
97106
|
*
|
|
97058
|
-
* In Word on Windows and on Mac, the API supports inserting and managing all types listed in {@link Word.FieldType} except Word.FieldType.others
|
|
97107
|
+
* In Word on Windows and on Mac, the API supports inserting and managing all types listed in {@link Word.FieldType} except `Word.FieldType.others`.
|
|
97059
97108
|
*
|
|
97060
97109
|
* In Word on the web, the API supports inserting and managing the following field types.
|
|
97061
97110
|
*
|
|
97062
|
-
* - Word.FieldType.addin
|
|
97111
|
+
* - `Word.FieldType.addin`
|
|
97063
97112
|
*
|
|
97064
|
-
* - Word.FieldType.date
|
|
97113
|
+
* - `Word.FieldType.date`
|
|
97065
97114
|
*
|
|
97066
|
-
* - Word.FieldType.hyperlink
|
|
97115
|
+
* - `Word.FieldType.hyperlink`
|
|
97067
97116
|
*
|
|
97068
|
-
* - Word.FieldType.toc
|
|
97117
|
+
* - `Word.FieldType.toc`
|
|
97069
97118
|
*
|
|
97070
97119
|
* @param insertLocation Required. The location relative to the range where the field will be inserted. The value must be 'Replace', 'Start', 'End', 'Before', or 'After'.
|
|
97071
97120
|
* @param fieldType Optional. Can be any FieldType constant. The default value is Empty.
|
|
@@ -104096,7 +104145,7 @@ declare namespace Word {
|
|
|
104096
104145
|
/** An interface for updating data on the `ContentControl` object, for use in `contentControl.set({ ... })`. */
|
|
104097
104146
|
interface ContentControlUpdateData {
|
|
104098
104147
|
/**
|
|
104099
|
-
* Specifies the checkbox-related data if the content control's type is 'CheckBox'. It's null otherwise.
|
|
104148
|
+
* Specifies the checkbox-related data if the content control's type is 'CheckBox'. It's `null` otherwise.
|
|
104100
104149
|
*
|
|
104101
104150
|
* @remarks
|
|
104102
104151
|
* [Api set: WordApi 1.7]
|
|
@@ -104365,7 +104414,7 @@ declare namespace Word {
|
|
|
104365
104414
|
*/
|
|
104366
104415
|
code?: string;
|
|
104367
104416
|
/**
|
|
104368
|
-
* Specifies data in an "Addin" field. If the field isn't an "Addin" field, it is null and it will throw a general exception when code attempts to set it.
|
|
104417
|
+
* Specifies data in an "Addin" field. If the field isn't an "Addin" field, it is `null` and it will throw a general exception when code attempts to set it.
|
|
104369
104418
|
*
|
|
104370
104419
|
* @remarks
|
|
104371
104420
|
* [Api set: WordApi 1.5]
|
|
@@ -104423,7 +104472,7 @@ declare namespace Word {
|
|
|
104423
104472
|
*/
|
|
104424
104473
|
hidden?: boolean;
|
|
104425
104474
|
/**
|
|
104426
|
-
* Specifies the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or null for no highlight color. Note: Only the default highlight colors are available in Office for Windows Desktop. These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", and "Black". When the add-in runs in Office for Windows Desktop, any other color is converted to the closest color when applied to the font.
|
|
104475
|
+
* Specifies the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or `null` for no highlight color. Note: Only the default highlight colors are available in Office for Windows Desktop. These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", and "Black". When the add-in runs in Office for Windows Desktop, any other color is converted to the closest color when applied to the font.
|
|
104427
104476
|
*
|
|
104428
104477
|
* @remarks
|
|
104429
104478
|
* [Api set: WordApi 1.1]
|
|
@@ -105756,14 +105805,14 @@ declare namespace Word {
|
|
|
105756
105805
|
/** An interface describing the data returned by calling `contentControl.toJSON()`. */
|
|
105757
105806
|
interface ContentControlData {
|
|
105758
105807
|
/**
|
|
105759
|
-
* Specifies the checkbox-related data if the content control's type is 'CheckBox'. It's null otherwise.
|
|
105808
|
+
* Specifies the checkbox-related data if the content control's type is 'CheckBox'. It's `null` otherwise.
|
|
105760
105809
|
*
|
|
105761
105810
|
* @remarks
|
|
105762
105811
|
* [Api set: WordApi 1.7]
|
|
105763
105812
|
*/
|
|
105764
105813
|
checkboxContentControl?: Word.Interfaces.CheckboxContentControlData;
|
|
105765
105814
|
/**
|
|
105766
|
-
* Specifies the combo box-related data if the content control's type is 'ComboBox'. It's null otherwise.
|
|
105815
|
+
* Specifies the combo box-related data if the content control's type is 'ComboBox'. It's `null` otherwise.
|
|
105767
105816
|
*
|
|
105768
105817
|
* @remarks
|
|
105769
105818
|
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
@@ -105778,7 +105827,7 @@ declare namespace Word {
|
|
|
105778
105827
|
*/
|
|
105779
105828
|
contentControls?: Word.Interfaces.ContentControlData[];
|
|
105780
105829
|
/**
|
|
105781
|
-
* Specifies the dropdown list-related data if the content control's type is 'DropDownList'. It's null otherwise.
|
|
105830
|
+
* Specifies the dropdown list-related data if the content control's type is 'DropDownList'. It's `null` otherwise.
|
|
105782
105831
|
*
|
|
105783
105832
|
* @remarks
|
|
105784
105833
|
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
@@ -106283,7 +106332,7 @@ declare namespace Word {
|
|
|
106283
106332
|
*/
|
|
106284
106333
|
code?: string;
|
|
106285
106334
|
/**
|
|
106286
|
-
* Specifies data in an "Addin" field. If the field isn't an "Addin" field, it is null and it will throw a general exception when code attempts to set it.
|
|
106335
|
+
* Specifies data in an "Addin" field. If the field isn't an "Addin" field, it is `null` and it will throw a general exception when code attempts to set it.
|
|
106287
106336
|
*
|
|
106288
106337
|
* @remarks
|
|
106289
106338
|
* [Api set: WordApi 1.5]
|
|
@@ -106355,7 +106404,7 @@ declare namespace Word {
|
|
|
106355
106404
|
*/
|
|
106356
106405
|
hidden?: boolean;
|
|
106357
106406
|
/**
|
|
106358
|
-
* Specifies the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or null for no highlight color. Note: Only the default highlight colors are available in Office for Windows Desktop. These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", and "Black". When the add-in runs in Office for Windows Desktop, any other color is converted to the closest color when applied to the font.
|
|
106407
|
+
* Specifies the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or `null` for no highlight color. Note: Only the default highlight colors are available in Office for Windows Desktop. These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", and "Black". When the add-in runs in Office for Windows Desktop, any other color is converted to the closest color when applied to the font.
|
|
106359
106408
|
*
|
|
106360
106409
|
* @remarks
|
|
106361
106410
|
* [Api set: WordApi 1.1]
|
|
@@ -108289,7 +108338,7 @@ declare namespace Word {
|
|
|
108289
108338
|
*/
|
|
108290
108339
|
$all?: boolean;
|
|
108291
108340
|
/**
|
|
108292
|
-
* Specifies the checkbox-related data if the content control's type is 'CheckBox'. It's null otherwise.
|
|
108341
|
+
* Specifies the checkbox-related data if the content control's type is 'CheckBox'. It's `null` otherwise.
|
|
108293
108342
|
*
|
|
108294
108343
|
* @remarks
|
|
108295
108344
|
* [Api set: WordApi 1.7]
|
|
@@ -108464,7 +108513,7 @@ declare namespace Word {
|
|
|
108464
108513
|
*/
|
|
108465
108514
|
$all?: boolean;
|
|
108466
108515
|
/**
|
|
108467
|
-
* For EACH ITEM in the collection: Specifies the checkbox-related data if the content control's type is 'CheckBox'. It's null otherwise.
|
|
108516
|
+
* For EACH ITEM in the collection: Specifies the checkbox-related data if the content control's type is 'CheckBox'. It's `null` otherwise.
|
|
108468
108517
|
*
|
|
108469
108518
|
* @remarks
|
|
108470
108519
|
* [Api set: WordApi 1.7]
|
|
@@ -109054,6 +109103,12 @@ declare namespace Word {
|
|
|
109054
109103
|
*
|
|
109055
109104
|
* @remarks
|
|
109056
109105
|
* [Api set: WordApi 1.4]
|
|
109106
|
+
*
|
|
109107
|
+
* Important: To learn more about which fields can be inserted, see the `Word.Range.insertField` API introduced in requirement set 1.5.
|
|
109108
|
+
* Support for managing fields is similar to what's available in the Word UI.
|
|
109109
|
+
* However, while the Word UI on the web primarily only supports fields as read-only (see {@link https://support.microsoft.com/office/d8f46094-13c3-4966-98c3-259748f3caf1 | Field codes in Word for the web}),
|
|
109110
|
+
* the `Addin` field is editable. To learn more about Word UI clients that more fully support fields,
|
|
109111
|
+
* see the product list at the beginning of {@link https://support.microsoft.com/office/c429bbb0-8669-48a7-bd24-bab6ba6b06bb | Insert, edit, and view fields in Word}.
|
|
109057
109112
|
*/
|
|
109058
109113
|
interface FieldLoadOptions {
|
|
109059
109114
|
/**
|
|
@@ -109126,7 +109181,7 @@ declare namespace Word {
|
|
|
109126
109181
|
*/
|
|
109127
109182
|
code?: boolean;
|
|
109128
109183
|
/**
|
|
109129
|
-
* Specifies data in an "Addin" field. If the field isn't an "Addin" field, it is null and it will throw a general exception when code attempts to set it.
|
|
109184
|
+
* Specifies data in an "Addin" field. If the field isn't an "Addin" field, it is `null` and it will throw a general exception when code attempts to set it.
|
|
109130
109185
|
*
|
|
109131
109186
|
* @remarks
|
|
109132
109187
|
* [Api set: WordApi 1.5]
|
|
@@ -109167,6 +109222,12 @@ declare namespace Word {
|
|
|
109167
109222
|
*
|
|
109168
109223
|
* @remarks
|
|
109169
109224
|
* [Api set: WordApi 1.4]
|
|
109225
|
+
*
|
|
109226
|
+
* Important: To learn more about which fields can be inserted, see the `Word.Range.insertField API` introduced in requirement set 1.5.
|
|
109227
|
+
* Support for managing fields is similar to what's available in the Word UI.
|
|
109228
|
+
* However, while the Word UI on the web primarily only supports fields as read-only (see {@link https://support.microsoft.com/office/d8f46094-13c3-4966-98c3-259748f3caf1 | Field codes in Word for the web}),
|
|
109229
|
+
* the `Addin` field is editable. To learn more about Word UI clients that more fully support fields,
|
|
109230
|
+
* see the product list at the beginning of {@link https://support.microsoft.com/office/c429bbb0-8669-48a7-bd24-bab6ba6b06bb | Insert, edit, and view fields in Word}.
|
|
109170
109231
|
*/
|
|
109171
109232
|
interface FieldCollectionLoadOptions {
|
|
109172
109233
|
/**
|
|
@@ -109239,7 +109300,7 @@ declare namespace Word {
|
|
|
109239
109300
|
*/
|
|
109240
109301
|
code?: boolean;
|
|
109241
109302
|
/**
|
|
109242
|
-
* For EACH ITEM in the collection: Specifies data in an "Addin" field. If the field isn't an "Addin" field, it is null and it will throw a general exception when code attempts to set it.
|
|
109303
|
+
* For EACH ITEM in the collection: Specifies data in an "Addin" field. If the field isn't an "Addin" field, it is `null` and it will throw a general exception when code attempts to set it.
|
|
109243
109304
|
*
|
|
109244
109305
|
* @remarks
|
|
109245
109306
|
* [Api set: WordApi 1.5]
|
|
@@ -109316,7 +109377,7 @@ declare namespace Word {
|
|
|
109316
109377
|
*/
|
|
109317
109378
|
hidden?: boolean;
|
|
109318
109379
|
/**
|
|
109319
|
-
* Specifies the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or null for no highlight color. Note: Only the default highlight colors are available in Office for Windows Desktop. These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", and "Black". When the add-in runs in Office for Windows Desktop, any other color is converted to the closest color when applied to the font.
|
|
109380
|
+
* Specifies the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or `null` for no highlight color. Note: Only the default highlight colors are available in Office for Windows Desktop. These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", and "Black". When the add-in runs in Office for Windows Desktop, any other color is converted to the closest color when applied to the font.
|
|
109320
109381
|
*
|
|
109321
109382
|
* @remarks
|
|
109322
109383
|
* [Api set: WordApi 1.1]
|
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.493",
|
|
4
4
|
"description": "TypeScript definitions for office-js-preview",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
|
-
"typesPublisherContentHash": "
|
|
48
|
+
"typesPublisherContentHash": "4191dd40aebad27509c7f37fda2a5e0e9ec22c57918a6783e5afd810e1dd4d8b",
|
|
49
49
|
"typeScriptVersion": "4.8",
|
|
50
50
|
"nonNpm": true
|
|
51
51
|
}
|