@types/office-js-preview 1.0.561 → 1.0.563
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-preview/README.md +1 -1
- office-js-preview/index.d.ts +28 -103
- office-js-preview/package.json +2 -2
office-js-preview/README.md
CHANGED
|
@@ -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:
|
|
11
|
+
* Last updated: Tue, 25 Feb 2025 01:29:27 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js-preview/index.d.ts
CHANGED
|
@@ -8434,10 +8434,9 @@ declare namespace Office {
|
|
|
8434
8434
|
*/
|
|
8435
8435
|
interface TextBinding extends Binding { }
|
|
8436
8436
|
/**
|
|
8437
|
-
* Provides objects and methods
|
|
8437
|
+
* Provides objects and methods to create and manipulate UI components, such as dialog boxes, in your Office Add-ins.
|
|
8438
8438
|
*
|
|
8439
|
-
*
|
|
8440
|
-
* for more information.
|
|
8439
|
+
* 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}.
|
|
8441
8440
|
*/
|
|
8442
8441
|
interface UI {
|
|
8443
8442
|
/**
|
|
@@ -8488,60 +8487,23 @@ declare namespace Office {
|
|
|
8488
8487
|
* if you're using the add-in only manifest. If you're using the unified manifest for Microsoft 365, see
|
|
8489
8488
|
* {@link https://learn.microsoft.com/office/dev/add-ins/develop/unified-manifest-overview | Office Add-ins with the unified app manifest for Microsoft 365}.
|
|
8490
8489
|
*
|
|
8491
|
-
*
|
|
8492
|
-
* other domains.
|
|
8493
|
-
*
|
|
8494
|
-
* Any page calling `Office.context.ui.messageParent` must also be on the same domain as the parent page.
|
|
8495
|
-
*
|
|
8496
|
-
* **Design considerations**:
|
|
8497
|
-
*
|
|
8498
|
-
* The following design considerations apply to dialog boxes.
|
|
8499
|
-
*
|
|
8500
|
-
* - 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
|
|
8501
|
-
* Commands (custom ribbon buttons or menu items).
|
|
8502
|
-
*
|
|
8503
|
-
* - Every dialog box can be moved and resized by the user.
|
|
8504
|
-
*
|
|
8505
|
-
* - Every dialog box is centered on the screen when opened.
|
|
8506
|
-
*
|
|
8507
|
-
* - Dialog boxes appear on top of the application and in the order in which they were created.
|
|
8508
|
-
*
|
|
8509
|
-
* Use a dialog box to:
|
|
8510
|
-
*
|
|
8511
|
-
* - Display authentication pages to collect user credentials.
|
|
8490
|
+
* **Important**:
|
|
8512
8491
|
*
|
|
8513
|
-
* -
|
|
8492
|
+
* - 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
|
|
8493
|
+
* other domains.
|
|
8514
8494
|
*
|
|
8515
|
-
* -
|
|
8495
|
+
* - Any page calling `Office.context.ui.messageParent` must also be on the same domain as the parent page.
|
|
8516
8496
|
*
|
|
8517
|
-
*
|
|
8497
|
+
* - To learn about rules, limitations, and best practices for the Office Dialog API, see
|
|
8498
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/develop/dialog-best-practices | Best practices and rules for the Office dialog API}.
|
|
8518
8499
|
*
|
|
8519
|
-
*
|
|
8500
|
+
* - For information on errors and how to handle them, see
|
|
8501
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/develop/dialog-handle-errors-events | Handle errors and events in the Office dialog box}.
|
|
8520
8502
|
*
|
|
8521
|
-
*
|
|
8522
|
-
*
|
|
8523
|
-
* <th>Code number</th>
|
|
8524
|
-
* <th>Meaning</th>
|
|
8525
|
-
* </tr>
|
|
8526
|
-
* <tr>
|
|
8527
|
-
* <td>12004</td>
|
|
8528
|
-
* <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>
|
|
8529
|
-
* </tr>
|
|
8530
|
-
* <tr>
|
|
8531
|
-
* <td>12005</td>
|
|
8532
|
-
* <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>
|
|
8533
|
-
* </tr>
|
|
8534
|
-
* <tr>
|
|
8535
|
-
* <td>12007</td>
|
|
8536
|
-
* <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>
|
|
8537
|
-
* </tr>
|
|
8538
|
-
* <tr>
|
|
8539
|
-
* <td>12009</td>
|
|
8540
|
-
* <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>
|
|
8541
|
-
* </tr>
|
|
8542
|
-
* </table>
|
|
8503
|
+
* - 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
|
|
8504
|
+
* when configuring a dialog in your add-in. The `window.name` property is used by these Outlook clients to maintain functionality across page redirects.
|
|
8543
8505
|
*
|
|
8544
|
-
* In the callback function passed to the displayDialogAsync method, you can use the properties of the AsyncResult object to return the
|
|
8506
|
+
* - In the callback function passed to the displayDialogAsync method, you can use the properties of the AsyncResult object to return the
|
|
8545
8507
|
* following information.
|
|
8546
8508
|
*
|
|
8547
8509
|
* <table>
|
|
@@ -8591,60 +8553,23 @@ declare namespace Office {
|
|
|
8591
8553
|
* if you're using the add-in only manifest. If you're using the unified manifest for Microsoft 365, see
|
|
8592
8554
|
* {@link https://learn.microsoft.com/office/dev/add-ins/develop/unified-manifest-overview | Office Add-ins with the unified app manifest for Microsoft 365}.
|
|
8593
8555
|
*
|
|
8594
|
-
*
|
|
8595
|
-
* other domains.
|
|
8596
|
-
*
|
|
8597
|
-
* Any page calling `Office.context.ui.messageParent` must also be on the same domain as the parent page.
|
|
8598
|
-
*
|
|
8599
|
-
* **Design considerations**:
|
|
8600
|
-
*
|
|
8601
|
-
* The following design considerations apply to dialog boxes.
|
|
8602
|
-
*
|
|
8603
|
-
* - 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
|
|
8604
|
-
* Commands (custom ribbon buttons or menu items).
|
|
8605
|
-
*
|
|
8606
|
-
* - Every dialog box can be moved and resized by the user.
|
|
8607
|
-
*
|
|
8608
|
-
* - Every dialog box is centered on the screen when opened.
|
|
8609
|
-
*
|
|
8610
|
-
* - Dialog boxes appear on top of the application and in the order in which they were created.
|
|
8611
|
-
*
|
|
8612
|
-
* Use a dialog box to:
|
|
8613
|
-
*
|
|
8614
|
-
* - Display authentication pages to collect user credentials.
|
|
8556
|
+
* **Important**:
|
|
8615
8557
|
*
|
|
8616
|
-
* -
|
|
8558
|
+
* - 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
|
|
8559
|
+
* other domains.
|
|
8617
8560
|
*
|
|
8618
|
-
* -
|
|
8561
|
+
* - Any page calling `Office.context.ui.messageParent` must also be on the same domain as the parent page.
|
|
8619
8562
|
*
|
|
8620
|
-
*
|
|
8563
|
+
* - To learn about rules, limitations, and best practices for the Office Dialog API, see
|
|
8564
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/develop/dialog-best-practices | Best practices and rules for the Office dialog API}.
|
|
8621
8565
|
*
|
|
8622
|
-
*
|
|
8566
|
+
* - For information on errors and how to handle them, see
|
|
8567
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/develop/dialog-handle-errors-events | Handle errors and events in the Office dialog box}.
|
|
8623
8568
|
*
|
|
8624
|
-
*
|
|
8625
|
-
*
|
|
8626
|
-
* <th>Code number</th>
|
|
8627
|
-
* <th>Meaning</th>
|
|
8628
|
-
* </tr>
|
|
8629
|
-
* <tr>
|
|
8630
|
-
* <td>12004</td>
|
|
8631
|
-
* <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>
|
|
8632
|
-
* </tr>
|
|
8633
|
-
* <tr>
|
|
8634
|
-
* <td>12005</td>
|
|
8635
|
-
* <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>
|
|
8636
|
-
* </tr>
|
|
8637
|
-
* <tr>
|
|
8638
|
-
* <td>12007</td>
|
|
8639
|
-
* <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>
|
|
8640
|
-
* </tr>
|
|
8641
|
-
* <tr>
|
|
8642
|
-
* <td>12009</td>
|
|
8643
|
-
* <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>
|
|
8644
|
-
* </tr>
|
|
8645
|
-
* </table>
|
|
8569
|
+
* - 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
|
|
8570
|
+
* when configuring a dialog in your add-in. The `window.name` property is used by these Outlook clients to maintain functionality across page redirects.
|
|
8646
8571
|
*
|
|
8647
|
-
* In the callback function passed to the displayDialogAsync method, you can use the properties of the AsyncResult object to return the
|
|
8572
|
+
* - In the callback function passed to the displayDialogAsync method, you can use the properties of the AsyncResult object to return the
|
|
8648
8573
|
* following information.
|
|
8649
8574
|
*
|
|
8650
8575
|
* <table>
|
|
@@ -15694,7 +15619,7 @@ declare namespace Office {
|
|
|
15694
15619
|
*
|
|
15695
15620
|
* 3. The delegate opens the draft from the shared folder then continues composing.
|
|
15696
15621
|
*
|
|
15697
|
-
* b. **Shared mailbox
|
|
15622
|
+
* b. **Shared mailbox**
|
|
15698
15623
|
*
|
|
15699
15624
|
* 1. The shared mailbox user starts a message. This can be a new message, a reply, or a forward.
|
|
15700
15625
|
*
|
|
@@ -15735,7 +15660,7 @@ declare namespace Office {
|
|
|
15735
15660
|
*
|
|
15736
15661
|
* 3. The delegate opens the draft from the shared folder then continues composing.
|
|
15737
15662
|
*
|
|
15738
|
-
* b. **Shared mailbox
|
|
15663
|
+
* b. **Shared mailbox**
|
|
15739
15664
|
*
|
|
15740
15665
|
* 1. The shared mailbox user starts a message. This can be a new message, a reply, or a forward.
|
|
15741
15666
|
*
|
|
@@ -19682,7 +19607,7 @@ declare namespace Office {
|
|
|
19682
19607
|
*
|
|
19683
19608
|
* 3. The delegate opens the draft from the shared folder then continues composing.
|
|
19684
19609
|
*
|
|
19685
|
-
* b. **Shared mailbox
|
|
19610
|
+
* b. **Shared mailbox**
|
|
19686
19611
|
*
|
|
19687
19612
|
* 1. The shared mailbox user starts a message. This can be a new message, a reply, or a forward.
|
|
19688
19613
|
*
|
|
@@ -19725,7 +19650,7 @@ declare namespace Office {
|
|
|
19725
19650
|
*
|
|
19726
19651
|
* 3. The delegate opens the draft from the shared folder then continues composing.
|
|
19727
19652
|
*
|
|
19728
|
-
* b. **Shared mailbox
|
|
19653
|
+
* b. **Shared mailbox**
|
|
19729
19654
|
*
|
|
19730
19655
|
* 1. The shared mailbox user starts a message. This can be a new message, a reply, or a forward.
|
|
19731
19656
|
*
|
office-js-preview/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js-preview",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.563",
|
|
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": "
|
|
49
|
+
"typesPublisherContentHash": "8d0c223fdb7d32b1da987bfa4ae5d7aabe1a8fa6ccfde14a6326467d0466e85c",
|
|
50
50
|
"typeScriptVersion": "5.0",
|
|
51
51
|
"nonNpm": true
|
|
52
52
|
}
|