@types/office-js-preview 1.0.676 → 1.0.678

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, 06 Jan 2026 21:35:44 GMT
11
+ * Last updated: Thu, 22 Jan 2026 23:36:15 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
@@ -249,10 +249,15 @@ declare namespace Office {
249
249
  * Represents the Device Permission interface.
250
250
  */
251
251
  const devicePermission: DevicePermission;
252
+ /**
253
+ * Provides options to manage the user interface of an Office Add-in while the add-in is running.
254
+ */
255
+ const extensionLifeCycle: ExtensionLifeCycle;
252
256
  /**
253
257
  * Represents the ribbon associated with the Office application.
254
258
  */
255
259
  const ribbon: Ribbon;
260
+
256
261
  /**
257
262
  * Occurs when the runtime environment is loaded and the add-in is ready to start interacting with the application and hosted document.
258
263
  *
@@ -21395,6 +21400,10 @@ declare namespace Office {
21395
21400
  *
21396
21401
  * - Any code included after the `sendAsync` call isn't guaranteed to run since the add-in completes processing after the `sendAsync` call.
21397
21402
  *
21403
+ * - The `sendAsync` method is available for preview in Outlook on Mac starting in Version 16.105 (Build 25121117).
21404
+ * To test this feature, join the {@link https://techcommunity.microsoft.com/kb/microsoft-365-insider-kb/join-the-microsoft-365-insider-program-on-macos/4401756 | Microsoft 365 Insider program}
21405
+ * and select the **Beta Channel** option to access Office beta builds.
21406
+ *
21398
21407
  * @param options - An object literal that contains the `asyncContext` property. Use the `asyncContext` property to specify any object you want to access in the
21399
21408
  * callback function.
21400
21409
  * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`. The `asyncResult`
@@ -21430,6 +21439,10 @@ declare namespace Office {
21430
21439
  *
21431
21440
  * - Any code included after the `sendAsync` call isn't guaranteed to run since the add-in completes processing after the `sendAsync` call.
21432
21441
  *
21442
+ * - The `sendAsync` method is available for preview in Outlook on Mac starting in Version 16.105 (Build 25121117).
21443
+ * To test this feature, join the {@link https://techcommunity.microsoft.com/kb/microsoft-365-insider-kb/join-the-microsoft-365-insider-program-on-macos/4401756 | Microsoft 365 Insider program}
21444
+ * and select the **Beta Channel** option to access Office beta builds.
21445
+ *
21433
21446
  * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`. The `asyncResult`
21434
21447
  * parameter is an `Office.AsyncResult` object.
21435
21448
  */
@@ -24961,16 +24974,15 @@ declare namespace Office {
24961
24974
  *
24962
24975
  * The customizable button in the Smart Alerts dialog varies depending on the Outlook client and its version.
24963
24976
  *
24964
- * - In Outlook on the web, new Outlook on Windows, and classic Outlook on Windows starting in Version 2412 (Build 18324.20000), the `cancelLabel` property customizes the text of the **Take Action** button.
24977
+ * - In Outlook on the web, on Mac (in preview starting in Version 16.105 (Build 25121117)), new Outlook on Windows, and classic Outlook on Windows starting in Version 2412 (Build 18324.20000), the `cancelLabel` property customizes the text of the **Take Action** button.
24965
24978
  * The **Take Action** button only appears on the Smart Alerts dialog if the `commandId` option is configured in the `event.completed` call. The option must be configured
24966
24979
  * if you want to customize the text of the dialog button. In this implementation, the **Don't Send** button cancels the item being sent. Its text and functionality can't be customized.
24967
24980
  * If you previously customized the text of the **Don't Send** button without assigning it a task pane or function command, your custom text won't take effect in the latest Outlook client versions.
24968
24981
  * If you previously assigned a task pane or function command to the **Don't Send** button, no additional action is needed to implement the **Take Action** button in the latest versions.
24969
24982
  * The default or customized **Take Action** button will automatically appear the next time a user receives a Smart Alerts dialog. Although no implementation changes are needed, we recommend notifying users of this updated experience.
24970
24983
  *
24971
- * - In earlier supported versions of classic Outlook on Windows (versions prior to Version 2412 (Build 18324.20000) that support
24972
- * {@link https://learn.microsoft.com/javascript/api/requirement-sets/outlook/outlook-api-requirement-sets#version-support-for-requirement-sets-in-classic-outlook-on-windows | Mailbox requirement set 1.14}),
24973
- * and Outlook on Mac, the `cancelLabel` property customizes the text of the **Don't Send** button. The **Don't Send** button cancels the item being sent.
24984
+ * - In classic Outlook on Windows (prior to Version 2412 (Build 18324.20000) and Outlook on Mac (prior to Version 16.105 (Build 25121117)),
24985
+ * the `cancelLabel` property customizes the text of the **Don't Send** button. The **Don't Send** button cancels the item being sent.
24974
24986
  */
24975
24987
  cancelLabel?: string;
24976
24988
  /**
@@ -24998,13 +25010,13 @@ declare namespace Office {
24998
25010
  * - **Unified manifest for Microsoft 365**: The "id" property of the task pane or function command in the "controls" array.
24999
25011
  *
25000
25012
  * The button in the Smart Alerts dialog that opens a task pane or runs a function varies depending on the Outlook client and version.
25001
- * In Outlook on the web, new Outlook on Windows, and classic Outlook on Windows starting in Version 2412 (Build 18324.20000), the **Take Action** button opens a
25013
+ * In Outlook on the web, on Mac (in preview starting in Version 16.105 (Build 25121117)), new Outlook on Windows, and classic Outlook on Windows starting in Version 2412 (Build 18324.20000), the **Take Action** button opens a
25002
25014
  * task pane or runs a function. In this implementation, the **Don't Send** button cancels the item being sent. Its text and functionality can't be customized.
25003
25015
  * In earlier supported versions of classic Outlook on Windows (versions prior to Version 2412 (Build 18324.20000) that support
25004
25016
  * {@link https://learn.microsoft.com/javascript/api/requirement-sets/outlook/outlook-api-requirement-sets#version-support-for-requirement-sets-in-classic-outlook-on-windows | Mailbox requirement set 1.14}),
25005
25017
  * and Outlook on Mac, the **Don't Send** button opens a task pane or runs a function.
25006
25018
  *
25007
- * If you customized the text and functionality of the **Don't Send** button in your Smart Alerts add-in prior to Version 2412 (Build 18324.20000) of classic Outlook on Windows,
25019
+ * If you've already customized the text and functionality of the **Don't Send** button in your Smart Alerts add-in prior to Version 2412 (Build 18324.20000) of classic Outlook on Windows or prior to Version 16.105 (Build 25121117) of Outlook on Mac,
25008
25020
  * no additional action is needed to implement the **Take Action** button in the latest supported versions. The default or customized **Take Action** button will automatically appear the next time a user receives a Smart Alerts dialog.
25009
25021
  * Although no implementation changes are needed, we recommend notifying users of this updated experience.
25010
25022
  *
@@ -25015,6 +25027,10 @@ declare namespace Office {
25015
25027
  *
25016
25028
  * When you configure a button in the Smart Alerts dialog to run a function, a button for the function is also added to the ribbon or action bar of the Outlook client.
25017
25029
  * Use the `contextData` option to distinguish when a user runs the function from the Smart Alerts dialog.
25030
+ *
25031
+ * Programming a button in the Smart Alerts dialog to run a function is available for preview in Outlook on Mac starting in Version 16.105 (Build 25121117).
25032
+ * To test this feature, join the {@link https://techcommunity.microsoft.com/kb/microsoft-365-insider-kb/join-the-microsoft-365-insider-program-on-macos/4401756 | Microsoft 365 Insider program}
25033
+ * and select the **Beta Channel** option to access Office beta builds.
25018
25034
  */
25019
25035
  commandId?: string;
25020
25036
  /**
@@ -25203,6 +25219,10 @@ declare namespace Office {
25203
25219
  * `Office.MailboxEnums.MoveSpamItemTo.NoMove`.
25204
25220
  *
25205
25221
  * - If you implement a task pane to open after a reported message is processed, when the `event.completed` call occurs, any task pane that's open or pinned is closed.
25222
+ *
25223
+ * - The `commandId` option is available for preview in Outlook on Mac starting in Version 16.103 (Build 25101816). To test this option, join the
25224
+ * {@link https://techcommunity.microsoft.com/kb/microsoft-365-insider-kb/join-the-microsoft-365-insider-program-on-macos/4401756 | Microsoft 365 Insider program}
25225
+ * and select the **Beta Channel** option to access Office beta builds.
25206
25226
  */
25207
25227
  commandId?: string;
25208
25228
  /**
@@ -25240,6 +25260,10 @@ declare namespace Office {
25240
25260
  * - To retrieve the value of the `contextData` property, you must call `Office.context.mailbox.item.getInitializationContextAsync` in the JavaScript implementation
25241
25261
  * of your task pane. If you create a JSON string using `JSON.stringify()` and assign it to the `contextData` property, you must parse the string using
25242
25262
  * `JSON.parse()` once you retrieve it.
25263
+ *
25264
+ * - The `contextData` option is available for preview in Outlook on Mac starting in Version 16.103 (Build 25101816). To test this option, join the
25265
+ * {@link https://techcommunity.microsoft.com/kb/microsoft-365-insider-kb/join-the-microsoft-365-insider-program-on-macos/4401756 | Microsoft 365 Insider program}
25266
+ * and select the **Beta Channel** option to access Office beta builds.
25243
25267
  */
25244
25268
  contextData?: any;
25245
25269
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.676",
3
+ "version": "1.0.678",
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": "f2a767b71cb5d35e435ee4f4daef7230d61dd4a50616ef5321fad1a5ac953a01",
49
+ "typesPublisherContentHash": "6dffe3c6531f0e76845c65443816f76c49e4c4e728d1351d078bad850dcbd8ad",
50
50
  "typeScriptVersion": "5.2",
51
51
  "nonNpm": true
52
52
  }