@types/office-js 1.0.471 → 1.0.472

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: Fri, 21 Feb 2025 19:32:15 GMT
11
+ * Last updated: Tue, 25 Feb 2025 01:29:27 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
office-js/index.d.ts CHANGED
@@ -8382,10 +8382,9 @@ declare namespace Office {
8382
8382
  */
8383
8383
  interface TextBinding extends Binding { }
8384
8384
  /**
8385
- * Provides objects and methods that you can use to create and manipulate UI components, such as dialog boxes, in your Office Add-ins.
8385
+ * Provides objects and methods to create and manipulate UI components, such as dialog boxes, in your Office Add-ins.
8386
8386
  *
8387
- * Visit "{@link https://learn.microsoft.com/office/dev/add-ins/develop/dialog-api-in-office-add-ins | Use the Dialog API in your Office Add-ins}"
8388
- * for more information.
8387
+ * For guidance on how to configure dialog boxes, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/dialog-api-in-office-add-ins | Use the Dialog API in your Office Add-ins}.
8389
8388
  */
8390
8389
  interface UI {
8391
8390
  /**
@@ -8436,60 +8435,23 @@ declare namespace Office {
8436
8435
  * if you're using the add-in only manifest. If you're using the unified manifest for Microsoft 365, see
8437
8436
  * {@link https://learn.microsoft.com/office/dev/add-ins/develop/unified-manifest-overview | Office Add-ins with the unified app manifest for Microsoft 365}.
8438
8437
  *
8439
- * The initial page must be on the same domain as the parent page (the startAddress parameter). After the initial page loads, you can go to
8440
- * other domains.
8441
- *
8442
- * Any page calling `Office.context.ui.messageParent` must also be on the same domain as the parent page.
8443
- *
8444
- * **Design considerations**:
8445
- *
8446
- * The following design considerations apply to dialog boxes.
8447
- *
8448
- * - An Office Add-in task pane can have only one dialog box open at any time. Multiple dialogs can be open at the same time from Add-in
8449
- * Commands (custom ribbon buttons or menu items).
8450
- *
8451
- * - Every dialog box can be moved and resized by the user.
8452
- *
8453
- * - Every dialog box is centered on the screen when opened.
8454
- *
8455
- * - Dialog boxes appear on top of the application and in the order in which they were created.
8456
- *
8457
- * Use a dialog box to:
8458
- *
8459
- * - Display authentication pages to collect user credentials.
8438
+ * **Important**:
8460
8439
  *
8461
- * - Display an error/progress/input screen from a ShowTaskpane or ExecuteAction command.
8440
+ * - The initial page must be on the same domain as the parent page (the startAddress parameter). After the initial page loads, you can go to
8441
+ * other domains.
8462
8442
  *
8463
- * - Temporarily increase the surface area that a user has available to complete a task.
8443
+ * - Any page calling `Office.context.ui.messageParent` must also be on the same domain as the parent page.
8464
8444
  *
8465
- * Do not use a dialog box to interact with a document. Use a task pane instead.
8445
+ * - To learn about rules, limitations, and best practices for the Office Dialog API, see
8446
+ * {@link https://learn.microsoft.com/office/dev/add-ins/develop/dialog-best-practices | Best practices and rules for the Office dialog API}.
8466
8447
  *
8467
- * **displayDialogAsync Errors**
8448
+ * - For information on errors and how to handle them, see
8449
+ * {@link https://learn.microsoft.com/office/dev/add-ins/develop/dialog-handle-errors-events | Handle errors and events in the Office dialog box}.
8468
8450
  *
8469
- * <table>
8470
- * <tr>
8471
- * <th>Code number</th>
8472
- * <th>Meaning</th>
8473
- * </tr>
8474
- * <tr>
8475
- * <td>12004</td>
8476
- * <td>The domain of the URL passed to displayDialogAsync isn't trusted. The domain must be either the same domain as the host page (including protocol and port number), or it must be registered in the <code>AppDomains</code> section of the add-in manifest.</td>
8477
- * </tr>
8478
- * <tr>
8479
- * <td>12005</td>
8480
- * <td>The URL passed to displayDialogAsync uses the HTTP protocol. HTTPS is required. (In some versions of Office, the error message returned with 12005 is the same one returned for 12004.)</td>
8481
- * </tr>
8482
- * <tr>
8483
- * <td>12007</td>
8484
- * <td>A dialog box is already opened from the task pane. A task pane add-in can only have one dialog box open at a time.</td>
8485
- * </tr>
8486
- * <tr>
8487
- * <td>12009</td>
8488
- * <td>The user chose to ignore the dialog box. This error can occur in online versions of Office, where users may choose not to allow an add-in to present a dialog.</td>
8489
- * </tr>
8490
- * </table>
8451
+ * - In Outlook on the web and new Outlook on Windows, don't set the {@link https://developer.mozilla.org/docs/Web/API/Window/name | window.name} property
8452
+ * when configuring a dialog in your add-in. The `window.name` property is used by these Outlook clients to maintain functionality across page redirects.
8491
8453
  *
8492
- * In the callback function passed to the displayDialogAsync method, you can use the properties of the AsyncResult object to return the
8454
+ * - In the callback function passed to the displayDialogAsync method, you can use the properties of the AsyncResult object to return the
8493
8455
  * following information.
8494
8456
  *
8495
8457
  * <table>
@@ -8539,60 +8501,23 @@ declare namespace Office {
8539
8501
  * if you're using the add-in only manifest. If you're using the unified manifest for Microsoft 365, see
8540
8502
  * {@link https://learn.microsoft.com/office/dev/add-ins/develop/unified-manifest-overview | Office Add-ins with the unified app manifest for Microsoft 365}.
8541
8503
  *
8542
- * The initial page must be on the same domain as the parent page (the startAddress parameter). After the initial page loads, you can go to
8543
- * other domains.
8544
- *
8545
- * Any page calling `Office.context.ui.messageParent` must also be on the same domain as the parent page.
8546
- *
8547
- * **Design considerations**:
8548
- *
8549
- * The following design considerations apply to dialog boxes.
8550
- *
8551
- * - An Office Add-in task pane can have only one dialog box open at any time. Multiple dialogs can be open at the same time from Add-in
8552
- * Commands (custom ribbon buttons or menu items).
8553
- *
8554
- * - Every dialog box can be moved and resized by the user.
8555
- *
8556
- * - Every dialog box is centered on the screen when opened.
8557
- *
8558
- * - Dialog boxes appear on top of the application and in the order in which they were created.
8559
- *
8560
- * Use a dialog box to:
8561
- *
8562
- * - Display authentication pages to collect user credentials.
8504
+ * **Important**:
8563
8505
  *
8564
- * - Display an error/progress/input screen from a ShowTaskpane or ExecuteAction command.
8506
+ * - The initial page must be on the same domain as the parent page (the startAddress parameter). After the initial page loads, you can go to
8507
+ * other domains.
8565
8508
  *
8566
- * - Temporarily increase the surface area that a user has available to complete a task.
8509
+ * - Any page calling `Office.context.ui.messageParent` must also be on the same domain as the parent page.
8567
8510
  *
8568
- * Do not use a dialog box to interact with a document. Use a task pane instead.
8511
+ * - To learn about rules, limitations, and best practices for the Office Dialog API, see
8512
+ * {@link https://learn.microsoft.com/office/dev/add-ins/develop/dialog-best-practices | Best practices and rules for the Office dialog API}.
8569
8513
  *
8570
- * **displayDialogAsync Errors**
8514
+ * - For information on errors and how to handle them, see
8515
+ * {@link https://learn.microsoft.com/office/dev/add-ins/develop/dialog-handle-errors-events | Handle errors and events in the Office dialog box}.
8571
8516
  *
8572
- * <table>
8573
- * <tr>
8574
- * <th>Code number</th>
8575
- * <th>Meaning</th>
8576
- * </tr>
8577
- * <tr>
8578
- * <td>12004</td>
8579
- * <td>The domain of the URL passed to displayDialogAsync isn't trusted. The domain must be either the same domain as the host page (including protocol and port number), or it must be registered in the <code>AppDomains</code> section of the add-in manifest.</td>
8580
- * </tr>
8581
- * <tr>
8582
- * <td>12005</td>
8583
- * <td>The URL passed to displayDialogAsync uses the HTTP protocol. HTTPS is required. (In some versions of Office, the error message returned with 12005 is the same one returned for 12004.)</td>
8584
- * </tr>
8585
- * <tr>
8586
- * <td>12007</td>
8587
- * <td>A dialog box is already opened from the task pane. A task pane add-in can only have one dialog box open at a time.</td>
8588
- * </tr>
8589
- * <tr>
8590
- * <td>12009</td>
8591
- * <td>The user chose to ignore the dialog box. This error can occur in online versions of Office, where users may choose not to allow an add-in to present a dialog.</td>
8592
- * </tr>
8593
- * </table>
8517
+ * - In Outlook on the web and new Outlook on Windows, don't set the {@link https://developer.mozilla.org/docs/Web/API/Window/name | window.name} property
8518
+ * when configuring a dialog in your add-in. The `window.name` property is used by these Outlook clients to maintain functionality across page redirects.
8594
8519
  *
8595
- * In the callback function passed to the displayDialogAsync method, you can use the properties of the AsyncResult object to return the
8520
+ * - In the callback function passed to the displayDialogAsync method, you can use the properties of the AsyncResult object to return the
8596
8521
  * following information.
8597
8522
  *
8598
8523
  * <table>
office-js/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js",
3
- "version": "1.0.471",
3
+ "version": "1.0.472",
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",
@@ -46,6 +46,6 @@
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
48
  "peerDependencies": {},
49
- "typesPublisherContentHash": "ede7f416b00d9102884a8f6cf936d43bb2bc3740b23464f1a23177e01b5b2da1",
49
+ "typesPublisherContentHash": "55593866e1b15768b5c51f2e53d644121261125ff67f4ed3d72c0f273b5b5e72",
50
50
  "typeScriptVersion": "5.0"
51
51
  }