Skip to content

Commit 0a14a5c

Browse files
[office-js][office-js-preview] (Outlook) Document contentId property for the read surface (DefinitelyTyped#74233)
1 parent ee079ad commit 0a14a5c

File tree

2 files changed

+46
-14
lines changed

2 files changed

+46
-14
lines changed

types/office-js-preview/index.d.ts

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13076,17 +13076,15 @@ declare namespace Office {
1307613076
*
1307713077
* **Important**:
1307813078
*
13079-
* - The `contentId` property is only supported in Outlook on the web and Outlook on Windows (new and classic (preview)).
13079+
* - The `contentId` property is only supported in Outlook on the web, the new Outlook on Windows, and classic Outlook on Windows (preview).
1308013080
* To preview the `contentId` property in classic Outlook on Windows, your Outlook client must run Version 2510 (Build 19312.20000)
1308113081
* or later and must be on the Beta Channel. For more information, see {@link https://aka.ms/Msft365InsiderProgram | Microsoft 365 Insider Program}.
1308213082
*
13083-
* - Starting November 15, 2025, changes to how inline images are represented in the HTML body of Outlook emails in
13084-
* Outlook on the web and the new Outlook on Windows will begin rolling out to production users.
13083+
* - Changes to how inline images are represented in the HTML body of Outlook emails in Outlook on the web and the new Outlook on Windows released on November 15, 2025.
1308513084
* Previously, the attachment ID of the image appeared in the `src` attribute of the applicable `<img>` element.
13086-
* After the change, the image will be represented by a content ID (`cid`) in the `src` attribute instead.
13087-
* As a result, you'll need to update your add-in's parsing logic if you parse the attachment ID from the HTML editor or
13088-
* get the Base64 value of the image from the URL in the `src` attribute. For more information, see
13089-
* {@link https://devblogs.microsoft.com/microsoft365dev/changes-to-inline-images-in-outlook | Changes to inline image representation in Outlook on the web and new Outlook for Windows}.
13085+
* Now, the image is represented by a content ID (`cid`) in the `src` attribute instead.
13086+
* If you parse the attachment ID from the HTML editor or get the Base64-encoded value of the image from the URL in the `src` attribute, you must update your add-in's parsing logic.
13087+
* For more information, see {@link https://devblogs.microsoft.com/microsoft365dev/changes-to-inline-images-in-outlook | Changes to inline image representation in Outlook on the web and new Outlook for Windows}.
1309013088
*/
1309113089
contentId: string;
1309213090
/**
@@ -13144,6 +13142,24 @@ declare namespace Office {
1314413142
* Gets a value that indicates the attachment's type.
1314513143
*/
1314613144
attachmentType: MailboxEnums.AttachmentType | string;
13145+
/**
13146+
* Gets the content identifier of an inline attachment.
13147+
*
13148+
* @remarks
13149+
*
13150+
* **Important**:
13151+
*
13152+
* - The `contentId` property is only supported in Outlook on the web, the new Outlook on Windows, and classic Outlook on Windows (preview).
13153+
* To preview the `contentId` property in classic Outlook on Windows, your Outlook client must run Version 2510 (Build 19312.20000)
13154+
* or later and must be on the Beta Channel. For more information, see {@link https://aka.ms/Msft365InsiderProgram | Microsoft 365 Insider Program}.
13155+
*
13156+
* - Changes to how inline images are represented in the HTML body of Outlook emails in Outlook on the web and the new Outlook on Windows released on November 15, 2025.
13157+
* Previously, the attachment ID of the image appeared in the `src` attribute of the applicable `<img>` element.
13158+
* Now, the image is represented by a content ID (`cid`) in the `src` attribute instead.
13159+
* If you parse the attachment ID from the HTML editor or get the Base64-encoded value of the image from the URL in the `src` attribute, you must update your add-in's parsing logic.
13160+
* For more information, see {@link https://devblogs.microsoft.com/microsoft365dev/changes-to-inline-images-in-outlook | Changes to inline image representation in Outlook on the web and new Outlook for Windows}.
13161+
*/
13162+
contentId: string;
1314713163
/**
1314813164
* Gets the MIME content type of the attachment.
1314913165
*

types/office-js/index.d.ts

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12992,17 +12992,15 @@ declare namespace Office {
1299212992
*
1299312993
* **Important**:
1299412994
*
12995-
* - The `contentId` property is only supported in Outlook on the web and Outlook on Windows (new and classic (preview)).
12995+
* - The `contentId` property is only supported in Outlook on the web, the new Outlook on Windows, and classic Outlook on Windows (preview).
1299612996
* To preview the `contentId` property in classic Outlook on Windows, your Outlook client must run Version 2510 (Build 19312.20000)
1299712997
* or later and must be on the Beta Channel. For more information, see {@link https://aka.ms/Msft365InsiderProgram | Microsoft 365 Insider Program}.
1299812998
*
12999-
* - Starting November 15, 2025, changes to how inline images are represented in the HTML body of Outlook emails in
13000-
* Outlook on the web and the new Outlook on Windows will begin rolling out to production users.
12999+
* - Changes to how inline images are represented in the HTML body of Outlook emails in Outlook on the web and the new Outlook on Windows released on November 15, 2025.
1300113000
* Previously, the attachment ID of the image appeared in the `src` attribute of the applicable `<img>` element.
13002-
* After the change, the image will be represented by a content ID (`cid`) in the `src` attribute instead.
13003-
* As a result, you'll need to update your add-in's parsing logic if you parse the attachment ID from the HTML editor or
13004-
* get the Base64 value of the image from the URL in the `src` attribute. For more information, see
13005-
* {@link https://devblogs.microsoft.com/microsoft365dev/changes-to-inline-images-in-outlook | Changes to inline image representation in Outlook on the web and new Outlook for Windows}.
13001+
* Now, the image is represented by a content ID (`cid`) in the `src` attribute instead.
13002+
* If you parse the attachment ID from the HTML editor or get the Base64-encoded value of the image from the URL in the `src` attribute, you must update your add-in's parsing logic.
13003+
* For more information, see {@link https://devblogs.microsoft.com/microsoft365dev/changes-to-inline-images-in-outlook | Changes to inline image representation in Outlook on the web and new Outlook for Windows}.
1300613004
*/
1300713005
contentId: string;
1300813006
/**
@@ -13061,6 +13059,24 @@ declare namespace Office {
1306113059
* Gets a value that indicates the attachment's type.
1306213060
*/
1306313061
attachmentType: MailboxEnums.AttachmentType | string;
13062+
/**
13063+
* Gets the content identifier of an inline attachment.
13064+
*
13065+
* @remarks
13066+
*
13067+
* **Important**:
13068+
*
13069+
* - The `contentId` property is only supported in Outlook on the web, the new Outlook on Windows, and classic Outlook on Windows (preview).
13070+
* To preview the `contentId` property in classic Outlook on Windows, your Outlook client must run Version 2510 (Build 19312.20000)
13071+
* or later and must be on the Beta Channel. For more information, see {@link https://aka.ms/Msft365InsiderProgram | Microsoft 365 Insider Program}.
13072+
*
13073+
* - Changes to how inline images are represented in the HTML body of Outlook emails in Outlook on the web and the new Outlook on Windows released on November 15, 2025.
13074+
* Previously, the attachment ID of the image appeared in the `src` attribute of the applicable `<img>` element.
13075+
* Now, the image is represented by a content ID (`cid`) in the `src` attribute instead.
13076+
* If you parse the attachment ID from the HTML editor or get the Base64-encoded value of the image from the URL in the `src` attribute, you must update your add-in's parsing logic.
13077+
* For more information, see {@link https://devblogs.microsoft.com/microsoft365dev/changes-to-inline-images-in-outlook | Changes to inline image representation in Outlook on the web and new Outlook for Windows}.
13078+
*/
13079+
contentId: string;
1306413080
/**
1306513081
* Gets the MIME content type of the attachment.
1306613082
*

0 commit comments

Comments
 (0)