@types/office-js-preview 1.0.496 → 1.0.497

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: Thu, 08 Aug 2024 16:08:15 GMT
11
+ * Last updated: Mon, 12 Aug 2024 18:39:04 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
@@ -12692,18 +12692,6 @@ declare namespace Office {
12692
12692
  * To use `appendOnSendAsync`, you must specify a supplementary permission in the manifest. Details vary with the type of manifest. See {@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Understanding Outlook add-in permissions}. To learn more
12693
12693
  * about append-on-send and its configuration, see
12694
12694
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/append-on-send | Implement append-on-send in your Outlook add-in}.
12695
- *
12696
- * **Important**: If the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-on-send-addins?tabs=windows | on-send feature}
12697
- * is implemented with append-on-send, the following apply.
12698
- *
12699
- * - If the user is running add-ins that implement the on-send feature using `ItemSend` in the manifest, append-on-send runs before on-send functionality.
12700
- *
12701
- * - If your add-in implements the on-send feature and calls `appendOnSendAsync` in the `ItemSend` handler,
12702
- * the `appendOnSendAsync` call returns an error as this scenario isn't supported.
12703
- *
12704
- * **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
12705
- *
12706
- * **Note**: To clear data from a previous `appendOnSendAsync` call, you can call it again with the `data` parameter set to `null`.
12707
12695
  *
12708
12696
  * @remarks
12709
12697
  * [Api set: Mailbox 1.9]
@@ -12712,6 +12700,22 @@ declare namespace Office {
12712
12700
  *
12713
12701
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
12714
12702
  *
12703
+ * **Recommended**: Call `getTypeAsync`, then pass its returned value to the `options.coercionType` parameter.
12704
+ *
12705
+ * **Important**:
12706
+ *
12707
+ * - If the user is running add-ins that implement the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-on-send-addins | on-send feature}
12708
+ * using `ItemSend` in the manifest, append-on-send runs before on-send functionality.
12709
+ *
12710
+ * - If your add-in implements the on-send feature and calls `appendOnSendAsync` in the `ItemSend` handler,
12711
+ * the `appendOnSendAsync` call returns an error as this scenario isn't supported.
12712
+ *
12713
+ * - To clear data from a previous `appendOnSendAsync` call, you can call it again with the `data` parameter set to `null`.
12714
+ *
12715
+ * - SVG files aren't supported. Use JPG or PNG files instead.
12716
+ *
12717
+ * - The `appendOnSendAsync` method doesn't support inline CSS. Use internal or external CSS instead.
12718
+ *
12715
12719
  * **Errors**:
12716
12720
  *
12717
12721
  * - `DataExceedsMaximumSize`: The `data` parameter is longer than 5,000 characters.
@@ -12732,18 +12736,6 @@ declare namespace Office {
12732
12736
  * To use `appendOnSendAsync`, you must specify a supplementary permission in the manifest. Details vary with the type of manifest. See {@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Understanding Outlook add-in permissions}. To learn more
12733
12737
  * about append-on-send and its configuration, see
12734
12738
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/append-on-send | Implement append-on-send in your Outlook add-in}.
12735
- *
12736
- * **Important**: If the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-on-send-addins?tabs=windows | on-send feature}
12737
- * is implemented with append-on-send, the following apply.
12738
- *
12739
- * - If the user is running add-ins that implement the on-send feature using `ItemSend` in the manifest, append-on-send runs before on-send functionality.
12740
- *
12741
- * - If your add-in implements the on-send feature and calls `appendOnSendAsync` in the `ItemSend` handler,
12742
- * the `appendOnSendAsync` call returns an error as this scenario isn't supported.
12743
- *
12744
- * **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
12745
- *
12746
- * **Note**: To clear data from a previous `appendOnSendAsync` call, you can call it again with the `data` parameter set to `null`.
12747
12739
  *
12748
12740
  * @remarks
12749
12741
  * [Api set: Mailbox 1.9]
@@ -12752,6 +12744,22 @@ declare namespace Office {
12752
12744
  *
12753
12745
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
12754
12746
  *
12747
+ * **Recommended**: Call `getTypeAsync`, then pass its returned value to the `options.coercionType` parameter.
12748
+ *
12749
+ * **Important**:
12750
+ *
12751
+ * - If the user is running add-ins that implement the {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-on-send-addins | on-send feature}
12752
+ * using `ItemSend` in the manifest, append-on-send runs before on-send functionality.
12753
+ *
12754
+ * - If your add-in implements the on-send feature and calls `appendOnSendAsync` in the `ItemSend` handler,
12755
+ * the `appendOnSendAsync` call returns an error as this scenario isn't supported.
12756
+ *
12757
+ * - To clear data from a previous `appendOnSendAsync` call, you can call it again with the `data` parameter set to `null`.
12758
+ *
12759
+ * - SVG files aren't supported. Use JPG or PNG files instead.
12760
+ *
12761
+ * - The `appendOnSendAsync` method doesn't support inline CSS. Use internal or external CSS instead.
12762
+ *
12755
12763
  * **Errors**:
12756
12764
  *
12757
12765
  * - `DataExceedsMaximumSize`: The `data` parameter is longer than 5,000 characters.
@@ -12857,6 +12865,8 @@ declare namespace Office {
12857
12865
  *
12858
12866
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
12859
12867
  *
12868
+ * **Recommended**: Call `getTypeAsync`, then pass the returned value to the `options.coercionType` parameter.
12869
+ *
12860
12870
  * **Important**:
12861
12871
  *
12862
12872
  * - After the content is prepended, the position of the cursor depends on which client the add-in is running. In Outlook on the web and on Windows
@@ -12876,7 +12886,9 @@ declare namespace Office {
12876
12886
  * supported. For more information on supported APIs in Outlook mobile, see
12877
12887
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
12878
12888
  *
12879
- * **Recommended**: Call `getTypeAsync`, then pass the returned value to the `options.coercionType` parameter.
12889
+ * - SVG files aren't supported. Use JPG or PNG files instead.
12890
+ *
12891
+ * - The `prependAsync` method doesn't support inline CSS. Use internal or external CSS instead.
12880
12892
  *
12881
12893
  * **Errors**:
12882
12894
  *
@@ -12900,6 +12912,8 @@ declare namespace Office {
12900
12912
  *
12901
12913
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
12902
12914
  *
12915
+ * **Recommended**: Call `getTypeAsync`, then pass the returned value to the `options.coercionType` parameter.
12916
+ *
12903
12917
  * **Important**:
12904
12918
  *
12905
12919
  * - After the content is prepended, the position of the cursor depends on which client the add-in is running. In Outlook on the web and on Windows
@@ -12919,7 +12933,9 @@ declare namespace Office {
12919
12933
  * supported. For more information on supported APIs in Outlook mobile, see
12920
12934
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
12921
12935
  *
12922
- * **Recommended**: Call `getTypeAsync`, then pass the returned value to the `options.coercionType` parameter.
12936
+ * - SVG files aren't supported. Use JPG or PNG files instead.
12937
+ *
12938
+ * - The `prependAsync` method doesn't support inline CSS. Use internal or external CSS instead.
12923
12939
  *
12924
12940
  * **Errors**:
12925
12941
  *
@@ -12932,37 +12948,41 @@ declare namespace Office {
12932
12948
  prependAsync(data: string, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
12933
12949
  /**
12934
12950
  * Prepends HTML or plain text to the beginning of a message or appointment body when the mail item is sent.
12935
- *
12951
+ *
12936
12952
  * To use `prependOnSendAsync`, you must specify a supplementary permission in the manifest. Details vary with the type of manifest. For guidance,
12937
12953
  * see {@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Understanding Outlook add-in permissions}.
12938
- *
12954
+ *
12939
12955
  * @remarks
12940
12956
  * [Api set: Mailbox 1.13]
12941
- *
12957
+ *
12942
12958
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
12943
12959
  *
12944
12960
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
12945
- *
12961
+ *
12946
12962
  * **Recommended**: Call `getTypeAsync`, then pass its returned value to the `options.coercionType` parameter.
12947
- *
12963
+ *
12948
12964
  * **Important**: When implementing `prependOnSendAsync`, keep the following in mind.
12949
- *
12965
+ *
12950
12966
  * - In a {@link https://learn.microsoft.com/office/dev/add-ins/outlook/onmessagesend-onappointmentsend-events | Smart Alerts add-in},
12951
12967
  * the prepend-on-send feature runs first.
12952
- *
12968
+ *
12953
12969
  * - A new line is added after the prepended content.
12954
- *
12970
+ *
12955
12971
  * - If multiple active add-ins call `prependOnSendAsync`, the order of the inserted content depends on the order in which the add-in runs.
12956
12972
  * The content of the last run add-in appears above previously prepended content.
12957
- *
12973
+ *
12958
12974
  * - If the add-in attempts to insert HTML into a plain text body, the content won't be prepended. Conversely, plain text will be inserted into an HTML body.
12959
- *
12975
+ *
12976
+ * - SVG files aren't supported. Use JPG or PNG files instead.
12977
+ *
12978
+ * - The `prependOnSendAsync` method doesn't support inline CSS. Use internal or external CSS instead.
12979
+ *
12960
12980
  * **Errors**:
12961
- *
12981
+ *
12962
12982
  * - `DataExceedsMaximumSize`: The `data` parameter exceeds 5,000 characters.
12963
- *
12983
+ *
12964
12984
  * - `InvalidFormatError`: The `options.coercionType` parameter is set to `Office.CoercionType.Html`, but the item body is in plain text format.
12965
- *
12985
+ *
12966
12986
  * @param data - The string to be prepended to the beginning of the message or appointment body. The string is limited to 5,000 characters.
12967
12987
  * @param options - An object literal that contains one or more of the following properties:-
12968
12988
  * `asyncContext`: Any object that can be accessed in the callback function.
@@ -12973,37 +12993,41 @@ declare namespace Office {
12973
12993
  prependOnSendAsync(data: string, options: Office.AsyncContextOptions & CoercionTypeOptions, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
12974
12994
  /**
12975
12995
  * Prepends HTML or plain text to the beginning of a message or appointment body when the mail item is sent.
12976
- *
12996
+ *
12977
12997
  * To use `prependOnSendAsync`, you must specify a supplementary permission in the manifest. Details vary with the type of manifest. For guidance,
12978
12998
  * see {@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Understanding Outlook add-in permissions}.
12979
- *
12999
+ *
12980
13000
  * @remarks
12981
13001
  * [Api set: Mailbox 1.13]
12982
- *
13002
+ *
12983
13003
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
12984
13004
  *
12985
13005
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
12986
- *
13006
+ *
12987
13007
  * **Recommended**: Call `getTypeAsync`, then pass its returned value to the `options.coercionType` parameter.
12988
- *
13008
+ *
12989
13009
  * **Important**: When implementing `prependOnSendAsync`, keep the following in mind.
12990
- *
13010
+ *
12991
13011
  * - In a {@link https://learn.microsoft.com/office/dev/add-ins/outlook/onmessagesend-onappointmentsend-events | Smart Alerts add-in},
12992
13012
  * the prepend-on-send feature runs first.
12993
- *
13013
+ *
12994
13014
  * - A new line is added after the prepended content.
12995
- *
13015
+ *
12996
13016
  * - If multiple active add-ins call `prependOnSendAsync`, the order of the inserted content depends on the order in which the add-in runs.
12997
13017
  * The content of the last run add-in appears above previously prepended content.
12998
- *
13018
+ *
12999
13019
  * - If the add-in attempts to insert HTML into a plain text body, the content won't be prepended. Conversely, plain text will be inserted into an HTML body.
13000
- *
13020
+ *
13021
+ * - SVG files aren't supported. Use JPG or PNG files instead.
13022
+ *
13023
+ * - The `prependOnSendAsync` method doesn't support inline CSS. Use internal or external CSS instead.
13024
+ *
13001
13025
  * **Errors**:
13002
- *
13026
+ *
13003
13027
  * - `DataExceedsMaximumSize`: The `data` parameter exceeds 5,000 characters.
13004
- *
13028
+ *
13005
13029
  * - `InvalidFormatError`: The `options.coercionType` parameter is set to `Office.CoercionType.Html`, but the item body is in plain text format.
13006
- *
13030
+ *
13007
13031
  * @param data - The string to be prepended to the beginning of the message or appointment body. The string is limited to 5,000 characters.
13008
13032
  * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
13009
13033
  * of type `Office.AsyncResult`. Any errors encountered will be provided in the `asyncResult.error` property.
@@ -13019,6 +13043,8 @@ declare namespace Office {
13019
13043
  *
13020
13044
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
13021
13045
  *
13046
+ * **Recommended**: Call `getTypeAsync`, then pass the returned value to the `options.coercionType` parameter.
13047
+ *
13022
13048
  * **Important**:
13023
13049
  *
13024
13050
  * - After the body is replaced with the specified content, the position of the cursor depends on which client the add-in is running.
@@ -13040,7 +13066,9 @@ declare namespace Office {
13040
13066
  * supported. For more information on supported APIs in Outlook mobile, see
13041
13067
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
13042
13068
  *
13043
- * **Recommended**: Call `getTypeAsync`, then pass the returned value to the `options.coercionType` parameter.
13069
+ * - SVG files aren't supported. Use JPG or PNG files instead.
13070
+ *
13071
+ * - The `setAsync` method doesn't support inline CSS. Use internal or external CSS instead.
13044
13072
  *
13045
13073
  * **Errors**:
13046
13074
  *
@@ -13066,6 +13094,8 @@ declare namespace Office {
13066
13094
  *
13067
13095
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
13068
13096
  *
13097
+ * **Recommended**: Call `getTypeAsync`, then pass the returned value to the `options.coercionType` parameter.
13098
+ *
13069
13099
  * **Important**:
13070
13100
  *
13071
13101
  * - After the body is replaced with the specified content, the position of the cursor depends on which client the add-in is running.
@@ -13087,7 +13117,9 @@ declare namespace Office {
13087
13117
  * supported. For more information on supported APIs in Outlook mobile, see
13088
13118
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
13089
13119
  *
13090
- * **Recommended**: Call `getTypeAsync`, then pass the returned value to the `options.coercionType` parameter.
13120
+ * - SVG files aren't supported. Use JPG or PNG files instead.
13121
+ *
13122
+ * - The `setAsync` method doesn't support inline CSS. Use internal or external CSS instead.
13091
13123
  *
13092
13124
  * **Errors**:
13093
13125
  *
@@ -13107,11 +13139,6 @@ declare namespace Office {
13107
13139
  * the editor, it replaces the selected text. If the cursor was never in the body of the item, or if the body of the item lost focus in the
13108
13140
  * UI, the string will be inserted at the top of the body content. After insertion, the cursor is placed at the end of the inserted content.
13109
13141
  *
13110
- * When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
13111
- * (see the **Examples** section for a sample).
13112
- *
13113
- * **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
13114
- *
13115
13142
  * @remarks
13116
13143
  * [Api set: Mailbox 1.1]
13117
13144
  *
@@ -13119,6 +13146,17 @@ declare namespace Office {
13119
13146
  *
13120
13147
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
13121
13148
  *
13149
+ * **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
13150
+ *
13151
+ * **Important*:
13152
+ *
13153
+ * - When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
13154
+ * (see the **Examples** section for a sample).
13155
+ *
13156
+ * - SVG files aren't supported. Use JPG or PNG files instead.
13157
+ *
13158
+ * - The `setSelectedDataAsync` method doesn't support inline CSS. Use internal or external CSS instead.
13159
+ *
13122
13160
  * **Errors**:
13123
13161
  *
13124
13162
  * - `DataExceedsMaximumSize`: The `data` parameter is longer than 1,000,000 characters.
@@ -13140,11 +13178,6 @@ declare namespace Office {
13140
13178
  * the editor, it replaces the selected text. If the cursor was never in the body of the item, or if the body of the item lost focus in the
13141
13179
  * UI, the string will be inserted at the top of the body content. After insertion, the cursor is placed at the end of the inserted content.
13142
13180
  *
13143
- * When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
13144
- * (see the **Examples** section for a sample).
13145
- *
13146
- * **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
13147
- *
13148
13181
  * @remarks
13149
13182
  * [Api set: Mailbox 1.1]
13150
13183
  *
@@ -13152,6 +13185,17 @@ declare namespace Office {
13152
13185
  *
13153
13186
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
13154
13187
  *
13188
+ * **Recommended**: Call `getTypeAsync` then pass the returned value to the `options.coercionType` parameter.
13189
+ *
13190
+ * **Important*:
13191
+ *
13192
+ * - When including links in HTML markup, you can disable online link preview by setting the `id` attribute on the anchor (\<a\>) to "LPNoLP"
13193
+ * (see the **Examples** section for a sample).
13194
+ *
13195
+ * - SVG files aren't supported. Use JPG or PNG files instead.
13196
+ *
13197
+ * - The `setSelectedDataAsync` method doesn't support inline CSS. Use internal or external CSS instead.
13198
+ *
13155
13199
  * **Errors**:
13156
13200
  *
13157
13201
  * - `DataExceedsMaximumSize`: The `data` parameter is longer than 1,000,000 characters.
@@ -13188,6 +13232,10 @@ declare namespace Office {
13188
13232
  * When the user composes a new item (including reply or forward), the signature is set but doesn't modify the form. This means
13189
13233
  * if the user closes the form without making other edits, they won't be prompted to save changes.
13190
13234
  *
13235
+ * - SVG files aren't supported in mail signatures. Use JPG or PNG files instead.
13236
+ *
13237
+ * - The `setSignatureAsync` method doesn't support inline CSS. Use internal or external CSS instead.
13238
+ *
13191
13239
  * **Errors**:
13192
13240
  *
13193
13241
  * - `DataExceedsMaximumSize`: The `data` parameter is longer than 30,000 characters.
@@ -13228,6 +13276,10 @@ declare namespace Office {
13228
13276
  * When the user composes a new item (including reply or forward), the signature is set but doesn't modify the form. This means
13229
13277
  * if the user closes the form without making other edits, they won't be prompted to save changes.
13230
13278
  *
13279
+ * - SVG files aren't supported in mail signatures. Use JPG or PNG files instead.
13280
+ *
13281
+ * - The `setSignatureAsync` method doesn't support inline CSS. Use internal or external CSS instead.
13282
+ *
13231
13283
  * **Errors**:
13232
13284
  *
13233
13285
  * - `DataExceedsMaximumSize`: The `data` parameter is longer than 30,000 characters.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.496",
3
+ "version": "1.0.497",
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": "d5ecd4960c5948b82ed630a92f16e14f5e3c4f399694e7e65da54bb62675894f",
48
+ "typesPublisherContentHash": "4ebcf48da82c8acd80de4abca6c28db9ce7065fe27d680b4aee1f3e6eed5bfd0",
49
49
  "typeScriptVersion": "4.8",
50
50
  "nonNpm": true
51
51
  }