@types/office-js-preview 1.0.424 → 1.0.425

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-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: Wed, 18 Oct 2023 05:47:08 GMT
11
+ * Last updated: Thu, 19 Oct 2023 14:43:11 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
@@ -91984,7 +91984,7 @@ declare namespace Word {
91984
91984
  */
91985
91985
  getBookmarkRange(name: string): Word.Range;
91986
91986
  /**
91987
- * Gets a bookmark's range. If the bookmark does not exist, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
91987
+ * Gets a bookmark's range. If the bookmark doesn't exist, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
91988
91988
  *
91989
91989
  * @remarks
91990
91990
  * [Api set: WordApiHiddenDocument 1.4]
@@ -92273,6 +92273,8 @@ declare namespace Word {
92273
92273
  *
92274
92274
  * @remarks
92275
92275
  * [Api set: WordApi 1.4]
92276
+ *
92277
+ * Important: To learn more about which fields can be inserted, see the Word.Range.insertField API introduced in requirement set 1.5. Support for managing fields is similar to what's available in the Word UI. 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}), the `Addin` field is editable. To learn more about Word UI clients that more fully support fields, 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}.
92276
92278
  */
92277
92279
  class Field extends OfficeExtension.ClientObject {
92278
92280
  /** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
@@ -92472,6 +92474,8 @@ declare namespace Word {
92472
92474
  *
92473
92475
  * @remarks
92474
92476
  * [Api set: WordApi 1.4]
92477
+ *
92478
+ * Important: To learn more about which fields can be inserted, see the Word.Range.insertField API introduced in requirement set 1.5. Support for managing fields is similar to what's available in the Word UI. 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}), the `Addin` field is editable. To learn more about Word UI clients that more fully support fields, 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}.
92475
92479
  */
92476
92480
  class FieldCollection extends OfficeExtension.ClientObject {
92477
92481
  /** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
@@ -94909,7 +94913,7 @@ declare namespace Word {
94909
94913
  */
94910
94914
  expandTo(range: Word.Range): Word.Range;
94911
94915
  /**
94912
- * Returns a new range that extends from this range in either direction to cover another range. This range is not changed. If the two ranges do not have a union, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
94916
+ * Returns a new range that extends from this range in either direction to cover another range. This range isn't changed. If the two ranges don't have a union, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
94913
94917
  *
94914
94918
  * @remarks
94915
94919
  * [Api set: WordApi 1.3]
@@ -95089,6 +95093,20 @@ declare namespace Word {
95089
95093
  * @remarks
95090
95094
  * [Api set: WordApi 1.5]
95091
95095
  *
95096
+ * Important:
95097
+ *
95098
+ * In Word on Windows and on Mac, the API supports inserting and managing all types listed in {@link Word.FieldType} except Word.FieldType.others.
95099
+ *
95100
+ * In Word on the web, the API supports inserting and managing the following field types.
95101
+ *
95102
+ * - Word.FieldType.addin
95103
+ *
95104
+ * - Word.FieldType.date
95105
+ *
95106
+ * - Word.FieldType.hyperlink
95107
+ *
95108
+ * - Word.FieldType.toc
95109
+ *
95092
95110
  * @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'.
95093
95111
  * @param fieldType Optional. Can be any FieldType constant. The default value is Empty.
95094
95112
  * @param text Optional. Additional properties or options if needed for specified field type.
@@ -95101,6 +95119,20 @@ declare namespace Word {
95101
95119
  * @remarks
95102
95120
  * [Api set: WordApi 1.5]
95103
95121
  *
95122
+ * Important:
95123
+ *
95124
+ * In Word on Windows and on Mac, the API supports inserting and managing all types listed in {@link Word.FieldType} except Word.FieldType.others.
95125
+ *
95126
+ * In Word on the web, the API supports inserting and managing the following field types.
95127
+ *
95128
+ * - Word.FieldType.addin
95129
+ *
95130
+ * - Word.FieldType.date
95131
+ *
95132
+ * - Word.FieldType.hyperlink
95133
+ *
95134
+ * - Word.FieldType.toc
95135
+ *
95104
95136
  * @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'.
95105
95137
  * @param fieldType Optional. Can be any FieldType constant. The default value is Empty.
95106
95138
  * @param text Optional. Additional properties or options if needed for specified field type.
@@ -95200,7 +95232,7 @@ declare namespace Word {
95200
95232
  */
95201
95233
  intersectWith(range: Word.Range): Word.Range;
95202
95234
  /**
95203
- * Returns a new range as the intersection of this range with another range. This range isn't changed. If the two ranges are not overlapped or adjacent, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
95235
+ * Returns a new range as the intersection of this range with another range. This range isn't changed. If the two ranges aren't overlapped or adjacent, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
95204
95236
  *
95205
95237
  * @remarks
95206
95238
  * [Api set: WordApi 1.3]
@@ -107224,14 +107256,14 @@ declare namespace Word {
107224
107256
  */
107225
107257
  parentTableCell?: Word.Interfaces.TableCellLoadOptions;
107226
107258
  /**
107227
- * Gets the table cell that contains the field. If it is not contained in a table cell, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
107259
+ * Gets the table cell that contains the field. If it isn't contained in a table cell, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
107228
107260
  *
107229
107261
  * @remarks
107230
107262
  * [Api set: WordApi 1.4]
107231
107263
  */
107232
107264
  parentTableCellOrNullObject?: Word.Interfaces.TableCellLoadOptions;
107233
107265
  /**
107234
- * Gets the table that contains the field. If it is not contained in a table, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
107266
+ * Gets the table that contains the field. If it isn't contained in a table, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
107235
107267
  *
107236
107268
  * @remarks
107237
107269
  * [Api set: WordApi 1.4]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.424",
3
+ "version": "1.0.425",
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,6 +45,6 @@
45
45
  },
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
- "typesPublisherContentHash": "d2650a941d06bca35871bec50809bb29cb742aec4189fb84df4a3ebb9b2c9e03",
48
+ "typesPublisherContentHash": "965df4069c607b96b3a93892d32b11b4c21fd69f22aefd0d649d3932429e6289",
49
49
  "typeScriptVersion": "4.5"
50
50
  }