@types/office-js 1.0.327 → 1.0.328

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/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.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 30 May 2023 21:32:43 GMT
11
+ * Last updated: Tue, 06 Jun 2023 23:02:52 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
14
14
 
office-js/index.d.ts CHANGED
@@ -12140,10 +12140,6 @@ declare namespace Office {
12140
12140
  *
12141
12141
  * This method returns the entire current body in the format specified by `coercionType`.
12142
12142
  *
12143
- * When working with HTML-formatted bodies, it is important to note that the `Body.getAsync` and `Body.setAsync` methods are not idempotent.
12144
- * The value returned from the `getAsync` method will not necessarily be exactly the same as the value that was passed in the `setAsync` method previously.
12145
- * The client may modify the value passed to `setAsync` in order to make it render efficiently with its rendering engine.
12146
- *
12147
12143
  * @remarks
12148
12144
  * [Api set: Mailbox 1.3]
12149
12145
  *
@@ -12151,6 +12147,10 @@ declare namespace Office {
12151
12147
  *
12152
12148
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
12153
12149
  *
12150
+ * **Important**: When working with HTML-formatted bodies, it's important to note that the value returned by the `Body.getAsync` method won't necessarily
12151
+ * be the exact same value that was previously passed in the `Body.setAsync` method. The client may modify the value passed to `setAsync` to make it
12152
+ * render efficiently with its rendering engine.
12153
+ *
12154
12154
  * @param coercionType - The format for the returned body.
12155
12155
  * @param options - An object literal that contains one or more of the following properties:-
12156
12156
  * `asyncContext`: Developers can provide any object they wish to access in the callback function.
@@ -12163,10 +12163,6 @@ declare namespace Office {
12163
12163
  *
12164
12164
  * This method returns the entire current body in the format specified by `coercionType`.
12165
12165
  *
12166
- * When working with HTML-formatted bodies, it is important to note that the `Body.getAsync` and `Body.setAsync` methods are not idempotent.
12167
- * The value returned from the `getAsync` method will not necessarily be exactly the same as the value that was passed in the `setAsync` method previously.
12168
- * The client may modify the value passed to `setAsync` in order to make it render efficiently with its rendering engine.
12169
- *
12170
12166
  * @remarks
12171
12167
  * [Api set: Mailbox 1.3]
12172
12168
  *
@@ -12174,6 +12170,10 @@ declare namespace Office {
12174
12170
  *
12175
12171
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
12176
12172
  *
12173
+ * **Important**: When working with HTML-formatted bodies, it's important to note that the value returned by the `Body.getAsync` method won't necessarily
12174
+ * be the exact same value that was previously passed in the `Body.setAsync` method. The client may modify the value passed to `setAsync` to make it
12175
+ * render efficiently with its rendering engine.
12176
+ *
12177
12177
  * @param coercionType - The format for the returned body.
12178
12178
  * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
12179
12179
  * of type Office.AsyncResult. The body is provided in the requested format in the `asyncResult.value` property.
@@ -12214,18 +12214,6 @@ declare namespace Office {
12214
12214
  /**
12215
12215
  * Adds the specified content to the beginning of the item body.
12216
12216
  *
12217
- * The `prependAsync` method inserts the specified string at the beginning of the item body.
12218
- * After insertion, the cursor is returned to its original place, relative to the inserted content.
12219
- *
12220
- * When working with HTML-formatted bodies, it's important to note that the client may modify the value passed to `prependAsync` in order to
12221
- * make it render efficiently with its rendering engine. This means that the value returned from a subsequent call to the `Body.getAsync` method
12222
- * (introduced in Mailbox 1.3) will not necessarily exactly contain the value that was passed in the `prependAsync` method previously.
12223
- *
12224
- * When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
12225
- * (see the **Examples** section for a sample).
12226
- *
12227
- * **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
12228
- *
12229
12217
  * @remarks
12230
12218
  * [Api set: Mailbox 1.1]
12231
12219
  *
@@ -12233,6 +12221,25 @@ declare namespace Office {
12233
12221
  *
12234
12222
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
12235
12223
  *
12224
+ * **Important**:
12225
+ *
12226
+ * - After the content is prepended, the position of the cursor depends on which client the add-in is running.
12227
+ *
12228
+ * - **Windows, Web**: The cursor position remains the same in the pre-existing content of the body. For example, if the cursor was positioned at the beginning
12229
+ * of the body prior to the `prependAsync` call, it will appear between the prepended content and the pre-existing content of the body after the call.
12230
+ *
12231
+ * - **Mac**: The cursor position isn't preserved. The cursor disappears after the `prependAsync` call and only reappears when the user selects something in the
12232
+ * body of the mail item.
12233
+ *
12234
+ * - When working with HTML-formatted bodies, it's important to note that the client may modify the value passed to `prependAsync` to
12235
+ * make it render efficiently with its rendering engine. This means that the value returned from a subsequent call to the `Body.getAsync` method
12236
+ * (introduced in Mailbox 1.3) won't necessarily contain the exact value that was passed in the previous `prependAsync` call.
12237
+ *
12238
+ * - When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
12239
+ * (see the **Examples** section for a sample).
12240
+ *
12241
+ * **Recommended**: Call `getTypeAsync`, then pass the returned value to the `options.coercionType` parameter.
12242
+ *
12236
12243
  * **Errors**:
12237
12244
  *
12238
12245
  * - `DataExceedsMaximumSize`: The data parameter is longer than 1,000,000 characters.
@@ -12248,18 +12255,6 @@ declare namespace Office {
12248
12255
  /**
12249
12256
  * Adds the specified content to the beginning of the item body.
12250
12257
  *
12251
- * The `prependAsync` method inserts the specified string at the beginning of the item body.
12252
- * After insertion, the cursor is returned to its original place, relative to the inserted content.
12253
- *
12254
- * When working with HTML-formatted bodies, it's important to note that the client may modify the value passed to `prependAsync` in order to
12255
- * make it render efficiently with its rendering engine. This means that the value returned from a subsequent call to the `Body.getAsync` method
12256
- * (introduced in Mailbox 1.3) will not necessarily exactly contain the value that was passed in the `prependAsync` method previously.
12257
- *
12258
- * When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
12259
- * (see the **Examples** section for a sample).
12260
- *
12261
- * **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
12262
- *
12263
12258
  * @remarks
12264
12259
  * [Api set: Mailbox 1.1]
12265
12260
  *
@@ -12267,6 +12262,25 @@ declare namespace Office {
12267
12262
  *
12268
12263
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
12269
12264
  *
12265
+ * **Important**:
12266
+ *
12267
+ * - After the content is prepended, the position of the cursor depends on which client the add-in is running.
12268
+ *
12269
+ * - **Windows, Web**: The cursor position remains the same in the pre-existing content of the body. For example, if the cursor was positioned at the beginning
12270
+ * of the body prior to the `prependAsync` call, it will appear between the prepended content and the pre-existing content of the body after the call.
12271
+ *
12272
+ * - **Mac**: The cursor position isn't preserved. The cursor disappears after the `prependAsync` call and only reappears when the user selects something in the
12273
+ * body of the mail item.
12274
+ *
12275
+ * - When working with HTML-formatted bodies, it's important to note that the client may modify the value passed to `prependAsync` to
12276
+ * make it render efficiently with its rendering engine. This means that the value returned from a subsequent call to the `Body.getAsync` method
12277
+ * (introduced in Mailbox 1.3) won't necessarily contain the exact value that was passed in the previous `prependAsync` call.
12278
+ *
12279
+ * - When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
12280
+ * (see the **Examples** section for a sample).
12281
+ *
12282
+ * **Recommended**: Call `getTypeAsync`, then pass the returned value to the `options.coercionType` parameter.
12283
+ *
12270
12284
  * **Errors**:
12271
12285
  *
12272
12286
  * - `DataExceedsMaximumSize`: The data parameter is longer than 1,000,000 characters.
@@ -12358,17 +12372,6 @@ declare namespace Office {
12358
12372
  /**
12359
12373
  * Replaces the entire body with the specified text.
12360
12374
  *
12361
- * When working with HTML-formatted bodies, it is important to note that the `Body.getAsync` and `Body.setAsync` methods are not idempotent.
12362
- * The value returned from the `getAsync` method will not necessarily be exactly the same as the value that was passed in the `setAsync` method
12363
- * previously. The client may modify the value passed to `setAsync` in order to make it render efficiently with its rendering engine.
12364
- *
12365
- * When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
12366
- * (see the **Examples** section for a sample).
12367
- *
12368
- * **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
12369
- *
12370
- * **Important**: In Outlook on Windows and on Mac, the add-in user won't be able to revert this action with the **Undo** command.
12371
- *
12372
12375
  * @remarks
12373
12376
  * [Api set: Mailbox 1.3]
12374
12377
  *
@@ -12376,6 +12379,28 @@ declare namespace Office {
12376
12379
  *
12377
12380
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
12378
12381
  *
12382
+ * **Important**:
12383
+ *
12384
+ * - After the body is replaced with the specified content, the position of the cursor depends on which client the add-in is running.
12385
+ *
12386
+ * - **Windows**: The cursor appears at the beginning of the body of the mail item.
12387
+ *
12388
+ * - **Mac**: The cursor position isn't preserved. The cursor disappears after the `prependAsync` call and only reappears when the user selects something in the
12389
+ * body of the mail item.
12390
+ *
12391
+ * - **Web**: The cursor appears at the end of the body of the mail item.
12392
+ *
12393
+ * - When working with HTML-formatted bodies, it's important to note that the value returned by the `Body.getAsync` method won't necessarily
12394
+ * be the exact same value that was previously passed in the `Body.setAsync` method. The client may modify the value passed to `setAsync` to make it
12395
+ * render efficiently with its rendering engine.
12396
+ *
12397
+ * - When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
12398
+ * (see the **Examples** section for a sample).
12399
+ *
12400
+ * - In Outlook on Windows and on Mac, the add-in user isn't able to revert this action with the **Undo** command.
12401
+ *
12402
+ * **Recommended**: Call `getTypeAsync`, then pass the returned value to the `options.coercionType` parameter.
12403
+ *
12379
12404
  * **Errors**:
12380
12405
  *
12381
12406
  * - `DataExceedsMaximumSize`: The data parameter is longer than 1,000,000 characters.
@@ -12393,17 +12418,6 @@ declare namespace Office {
12393
12418
  /**
12394
12419
  * Replaces the entire body with the specified text.
12395
12420
  *
12396
- * When working with HTML-formatted bodies, it is important to note that the `Body.getAsync` and `Body.setAsync` methods are not idempotent.
12397
- * The value returned from the `getAsync` method will not necessarily be exactly the same as the value that was passed in the `setAsync` method
12398
- * previously. The client may modify the value passed to `setAsync` in order to make it render efficiently with its rendering engine.
12399
- *
12400
- * When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
12401
- * (see the **Examples** section for a sample).
12402
- *
12403
- * **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
12404
- *
12405
- * **Important**: In Outlook on Windows and on Mac, the add-in user won't be able to revert this action with the **Undo** command.
12406
- *
12407
12421
  * @remarks
12408
12422
  * [Api set: Mailbox 1.3]
12409
12423
  *
@@ -12411,6 +12425,28 @@ declare namespace Office {
12411
12425
  *
12412
12426
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
12413
12427
  *
12428
+ * **Important**:
12429
+ *
12430
+ * - After the body is replaced with the specified content, the position of the cursor depends on which client the add-in is running.
12431
+ *
12432
+ * - **Windows**: The cursor appears at the beginning of the body of the mail item.
12433
+ *
12434
+ * - **Mac**: The cursor position isn't preserved. The cursor disappears after the `prependAsync` call and only reappears when the user selects something in the
12435
+ * body of the mail item.
12436
+ *
12437
+ * - **Web**: The cursor appears at the end of the body of the mail item.
12438
+ *
12439
+ * - When working with HTML-formatted bodies, it's important to note that the value returned by the `Body.getAsync` method won't necessarily
12440
+ * be the exact same value that was previously passed in the `Body.setAsync` method. The client may modify the value passed to `setAsync` to make it
12441
+ * render efficiently with its rendering engine.
12442
+ *
12443
+ * - When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
12444
+ * (see the **Examples** section for a sample).
12445
+ *
12446
+ * - In Outlook on Windows and on Mac, the add-in user isn't able to revert this action with the **Undo** command.
12447
+ *
12448
+ * **Recommended**: Call `getTypeAsync`, then pass the returned value to the `options.coercionType` parameter.
12449
+ *
12414
12450
  * **Errors**:
12415
12451
  *
12416
12452
  * - `DataExceedsMaximumSize`: The data parameter is longer than 1,000,000 characters.
office-js/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js",
3
- "version": "1.0.327",
3
+ "version": "1.0.328",
4
4
  "description": "TypeScript definitions for Office.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js",
6
6
  "license": "MIT",
@@ -45,6 +45,6 @@
45
45
  },
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
- "typesPublisherContentHash": "89c2e43b323d6a4373c8b67d432ee5f89547a2f4a02178f079c818a1f58eeb95",
48
+ "typesPublisherContentHash": "241809be6e9b550afa2f9adbbac21123be3e724db8de4d44b354a261eddc0655",
49
49
  "typeScriptVersion": "4.3"
50
50
  }