@types/office-js-preview 1.0.559 → 1.0.561

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: Tue, 18 Feb 2025 18:37:42 GMT
11
+ * Last updated: Fri, 21 Feb 2025 00:04:01 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
@@ -8723,7 +8723,7 @@ declare namespace Office {
8723
8723
  *
8724
8724
  * **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/open-browser-window-api-requirement-sets | OpenBrowserWindowApi 1.1}
8725
8725
  *
8726
- * @param url The full URL to be opened including protocol (e.g., https), and port number, if any.
8726
+ * @param url The full URL to be opened including protocol (http or https), and port number, if any. Other protocols like mailto aren't supported.
8727
8727
  */
8728
8728
  openBrowserWindow(url: string): void;
8729
8729
  }
@@ -10659,9 +10659,6 @@ declare namespace Office {
10659
10659
  *
10660
10660
  * You can subsequently use the identifier with the `removeAttachmentAsync` method to remove the attachment in the same session.
10661
10661
  *
10662
- * **Note**: If you're using a data URL API (e.g., `readAsDataURL`), you need to strip out the data URL prefix then send the rest of the string to this API.
10663
- * For example, if the full string is represented by `data:image/svg+xml;base64,<rest of Base64 string>`, remove `data:image/svg+xml;base64,`.
10664
- *
10665
10662
  * @remarks
10666
10663
  * [Api set: Mailbox 1.8]
10667
10664
  *
@@ -10669,6 +10666,18 @@ declare namespace Office {
10669
10666
  *
10670
10667
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
10671
10668
  *
10669
+ * **Important**:
10670
+ *
10671
+ * - If you're using a data URL API (e.g., `readAsDataURL`), you need to strip out the data URL prefix then send the rest of the string to this API.
10672
+ * For example, if the full string is represented by `data:image/svg+xml;base64,<rest of Base64 string>`, remove `data:image/svg+xml;base64,`.
10673
+ *
10674
+ * - To add an inline Base64-encoded image to the body of a message or appointment being composed, use the
10675
+ * {@link https://learn.microsoft.com/javascript/api/outlook/office.body| Body API} methods, such as `prependAsync`, `setSignatureAsync`, or `setAsync`.
10676
+ * If you use `Office.context.mailbox.item.body.setAsync` to insert the image, first call `Office.context.mailbox.item.body.getAsync` to get the current body of the item.
10677
+ * Otherwise, the image won't render in the body once it's inserted. For an example, see the
10678
+ * {@link https://raw.githubusercontent.com/OfficeDev/office-js-snippets/refs/heads/main/samples/outlook/20-item-body/add-inline-base64-image.yaml | Add inline Base64-encoded image to message or appointment body (Compose)}
10679
+ * sample in {@link https://learn.microsoft.com/office/dev/add-ins/overview/explore-with-script-lab | Script Lab}.
10680
+ *
10672
10681
  * **Errors**:
10673
10682
  *
10674
10683
  * - `AttachmentSizeExceeded`: The attachment is larger than allowed.
@@ -10677,11 +10686,6 @@ declare namespace Office {
10677
10686
  *
10678
10687
  * - `NumberOfAttachmentsExceeded`: The message or appointment has too many attachments.
10679
10688
  *
10680
- * **Note**: If you're adding an inline Base64 image to the body of a message or appointment being composed, you must first get the current item body using the
10681
- * {@link https://learn.microsoft.com/javascript/api/outlook/office.body#outlook-office-body-getasync-member(1) | Office.context.mailbox.item.body.getAsync}
10682
- * method before inserting the image using `addFileAttachmentFromBase64Async`. Otherwise, the image won't render in the body once it's inserted.
10683
- * For further guidance, see {@link https://learn.microsoft.com/office/dev/add-ins/outlook/add-and-remove-attachments-to-an-item-in-a-compose-form#attach-a-file | Attach a file}.
10684
- *
10685
10689
  * @param base64File - The Base64-encoded content of an image or file to be added to an email or event. The maximum length of the encoded string is 27,892,122 characters (about 25 MB).
10686
10690
  * @param attachmentName - The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters.
10687
10691
  * @param options - An object literal that contains one or more of the following properties:-
@@ -10702,9 +10706,6 @@ declare namespace Office {
10702
10706
  *
10703
10707
  * You can subsequently use the identifier with the `removeAttachmentAsync` method to remove the attachment in the same session.
10704
10708
  *
10705
- * **Note**: If you're using a data URL API (e.g., `readAsDataURL`), you need to strip out the data URL prefix then send the rest of the string to this API.
10706
- * For example, if the full string is represented by `data:image/svg+xml;base64,<rest of Base64 string>`, remove `data:image/svg+xml;base64,`.
10707
- *
10708
10709
  * @remarks
10709
10710
  * [Api set: Mailbox 1.8]
10710
10711
  *
@@ -10712,6 +10713,18 @@ declare namespace Office {
10712
10713
  *
10713
10714
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
10714
10715
  *
10716
+ * **Important**:
10717
+ *
10718
+ * - If you're using a data URL API (e.g., `readAsDataURL`), you need to strip out the data URL prefix then send the rest of the string to this API.
10719
+ * For example, if the full string is represented by `data:image/svg+xml;base64,<rest of Base64 string>`, remove `data:image/svg+xml;base64,`.
10720
+ *
10721
+ * - To add an inline Base64-encoded image to the body of a message or appointment being composed, use the
10722
+ * {@link https://learn.microsoft.com/javascript/api/outlook/office.body| Body API} methods, such as `prependAsync`, `setSignatureAsync`, or `setAsync`.
10723
+ * If you use `Office.context.mailbox.item.body.setAsync` to insert the image, first call `Office.context.mailbox.item.body.getAsync` to get the current body of the item.
10724
+ * Otherwise, the image won't render in the body once it's inserted. For an example, see the
10725
+ * {@link https://raw.githubusercontent.com/OfficeDev/office-js-snippets/refs/heads/main/samples/outlook/20-item-body/add-inline-base64-image.yaml | Add inline Base64-encoded image to message or appointment body (Compose)}
10726
+ * sample in {@link https://learn.microsoft.com/office/dev/add-ins/overview/explore-with-script-lab | Script Lab}.
10727
+ *
10715
10728
  * **Errors**:
10716
10729
  *
10717
10730
  * - `AttachmentSizeExceeded`: The attachment is larger than allowed.
@@ -10720,11 +10733,6 @@ declare namespace Office {
10720
10733
  *
10721
10734
  * - `NumberOfAttachmentsExceeded`: The message or appointment has too many attachments.
10722
10735
  *
10723
- * **Note**: If you're adding an inline Base64 image to the body of a message or appointment being composed, you must first get the current item body using the
10724
- * {@link https://learn.microsoft.com/javascript/api/outlook/office.body#outlook-office-body-getasync-member(1) | Office.context.mailbox.item.body.getAsync}
10725
- * method before inserting the image using `addFileAttachmentFromBase64Async`. Otherwise, the image won't render in the body once it's inserted.
10726
- * For further guidance, see {@link https://learn.microsoft.com/office/dev/add-ins/outlook/add-and-remove-attachments-to-an-item-in-a-compose-form#attach-a-file | Attach a file}.
10727
- *
10728
10736
  * @param base64File - The Base64-encoded content of an image or file to be added to an email or event. The maximum length of the encoded string is 27,892,122 characters (about 25 MB).
10729
10737
  * @param attachmentName - The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters.
10730
10738
  * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
@@ -18867,10 +18875,12 @@ declare namespace Office {
18867
18875
  * - If you're using a data URL API (for example, `readAsDataURL`), you need to strip out the data URL prefix, then send the rest of the string to this API.
18868
18876
  * For example, if the full string is represented by `data:image/svg+xml;base64,<rest of Base64 string>`, remove `data:image/svg+xml;base64,`.
18869
18877
  *
18870
- * - If you're adding an inline Base64 image to the body of a message or appointment being composed, you must first get the current item body using the
18871
- * {@link https://learn.microsoft.com/javascript/api/outlook/office.body#outlook-office-body-getasync-member(1) | Office.context.mailbox.item.body.getAsync}
18872
- * method before inserting the image using `addFileAttachmentFromBase64Async`. Otherwise, the image won't render in the body once it's inserted.
18873
- * For further guidance, see {@link https://learn.microsoft.com/office/dev/add-ins/outlook/add-and-remove-attachments-to-an-item-in-a-compose-form#attach-a-file | Attach a file}.
18878
+ * - To add an inline Base64-encoded image to the body of a message or appointment being composed, use the
18879
+ * {@link https://learn.microsoft.com/javascript/api/outlook/office.body| Body API} methods, such as `prependAsync`, `setSignatureAsync`, or `setAsync`.
18880
+ * If you use `Office.context.mailbox.item.body.setAsync` to insert the image, first call `Office.context.mailbox.item.body.getAsync` to get the current body of the item.
18881
+ * Otherwise, the image won't render in the body once it's inserted. For an example, see the
18882
+ * {@link https://raw.githubusercontent.com/OfficeDev/office-js-snippets/refs/heads/main/samples/outlook/20-item-body/add-inline-base64-image.yaml | Add inline Base64-encoded image to message or appointment body (Compose)}
18883
+ * sample in {@link https://learn.microsoft.com/office/dev/add-ins/overview/explore-with-script-lab | Script Lab}.
18874
18884
  *
18875
18885
  * **Errors**:
18876
18886
  *
@@ -18913,10 +18923,12 @@ declare namespace Office {
18913
18923
  * - If you're using a data URL API (for example, `readAsDataURL`), you need to strip out the data URL prefix, then send the rest of the string to this API.
18914
18924
  * For example, if the full string is represented by `data:image/svg+xml;base64,<rest of Base64 string>`, remove `data:image/svg+xml;base64,`.
18915
18925
  *
18916
- * - If you're adding an inline Base64 image to the body of a message or appointment being composed, you must first get the current item body using the
18917
- * {@link https://learn.microsoft.com/javascript/api/outlook/office.body#outlook-office-body-getasync-member(1) | Office.context.mailbox.item.body.getAsync}
18918
- * method before inserting the image using `addFileAttachmentFromBase64Async`. Otherwise, the image won't render in the body once it's inserted.
18919
- * For further guidance, see {@link https://learn.microsoft.com/office/dev/add-ins/outlook/add-and-remove-attachments-to-an-item-in-a-compose-form#attach-a-file | Attach a file}.
18926
+ * - To add an inline Base64-encoded image to the body of a message or appointment being composed, use the
18927
+ * {@link https://learn.microsoft.com/javascript/api/outlook/office.body| Body API} methods, such as `prependAsync`, `setSignatureAsync`, or `setAsync`.
18928
+ * If you use `Office.context.mailbox.item.body.setAsync` to insert the image, first call `Office.context.mailbox.item.body.getAsync` to get the current body of the item.
18929
+ * Otherwise, the image won't render in the body once it's inserted. For an example, see the
18930
+ * {@link https://raw.githubusercontent.com/OfficeDev/office-js-snippets/refs/heads/main/samples/outlook/20-item-body/add-inline-base64-image.yaml | Add inline Base64-encoded image to message or appointment body (Compose)}
18931
+ * sample in {@link https://learn.microsoft.com/office/dev/add-ins/overview/explore-with-script-lab | Script Lab}.
18920
18932
  *
18921
18933
  * **Errors**:
18922
18934
  *
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.559",
3
+ "version": "1.0.561",
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",
@@ -46,7 +46,7 @@
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
48
  "peerDependencies": {},
49
- "typesPublisherContentHash": "a3aa6e907bce3e857e6d25946a6e35aa59942a551a362d2436645ccf46e827af",
49
+ "typesPublisherContentHash": "0eba3c4d2ac500c59d94ae3897843db1b4cfb8b0d3ea7bcdac98f79705b97804",
50
50
  "typeScriptVersion": "5.0",
51
51
  "nonNpm": true
52
52
  }