@types/office-js 1.0.237 → 1.0.240

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: Tue, 01 Feb 2022 17:01:29 GMT
11
+ * Last updated: Thu, 03 Mar 2022 19:31:43 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
14
14
 
office-js/index.d.ts CHANGED
@@ -531,6 +531,9 @@ declare namespace Office {
531
531
  }
532
532
  /**
533
533
  * Manages actions and keyboard shortcuts.
534
+ *
535
+ * @remarks
536
+ * **Requirement set**: {@link https://docs.microsoft.com/office/dev/add-ins/reference/requirement-sets/shared-runtime-requirement-sets | SharedRuntime 1.1}
534
537
  */
535
538
  interface Actions {
536
539
  /**
@@ -538,6 +541,9 @@ declare namespace Office {
538
541
  *
539
542
  * @param actionId The ID of an action that is defined in an extended manifest.
540
543
  * @param actionFunction The function that is run when the action is invoked.
544
+ *
545
+ * @remarks
546
+ * **Requirement set**: {@link https://docs.microsoft.com/office/dev/add-ins/reference/requirement-sets/shared-runtime-requirement-sets | SharedRuntime 1.1}
541
547
  */
542
548
  associate: (actionId: string, actionFunction: (arg?: any) => void) => void;
543
549
  }
@@ -552,31 +558,49 @@ declare namespace Office {
552
558
  }
553
559
  /**
554
560
  * Represents add-in level functionality for operating or configuring various aspects of the add-in.
561
+ *
562
+ * @remarks
563
+ * **Requirement set**: {@link https://docs.microsoft.com/office/dev/add-ins/reference/requirement-sets/shared-runtime-requirement-sets | SharedRuntime 1.1}
555
564
  */
556
565
  interface Addin {
557
566
  /**
558
567
  * Sets the startup behavior for the add-in for when the document is opened next time.
559
568
  * @param behavior - Specifies startup behavior of the add-in.
569
+ *
570
+ * @remarks
571
+ * **Requirement set**: {@link https://docs.microsoft.com/office/dev/add-ins/reference/requirement-sets/shared-runtime-requirement-sets | SharedRuntime 1.1}
560
572
  */
561
573
  setStartupBehavior(behavior: Office.StartupBehavior): Promise<void>;
562
574
  /**
563
575
  * Gets the current startup behavior for the add-in.
576
+ *
577
+ * @remarks
578
+ * **Requirement set**: {@link https://docs.microsoft.com/office/dev/add-ins/reference/requirement-sets/shared-runtime-requirement-sets | SharedRuntime 1.1}
564
579
  */
565
580
  getStartupBehavior(): Promise<Office.StartupBehavior>;
566
581
  /**
567
582
  * Shows the task pane associated with the add-in.
568
583
  * @returns A promise that is resolved when the UI is shown.
584
+ *
585
+ * @remarks
586
+ * **Requirement set**: {@link https://docs.microsoft.com/office/dev/add-ins/reference/requirement-sets/shared-runtime-requirement-sets | SharedRuntime 1.1}
569
587
  */
570
588
  showAsTaskpane(): Promise<void>;
571
589
  /**
572
590
  * Hides the task pane.
573
591
  * @returns A promise that is resolved when the UI is hidden.
592
+ *
593
+ * @remarks
594
+ * **Requirement set**: {@link https://docs.microsoft.com/office/dev/add-ins/reference/requirement-sets/shared-runtime-requirement-sets | SharedRuntime 1.1}
574
595
  */
575
596
  hide(): Promise<void>;
576
597
  /**
577
598
  * Adds a handler for the `onVisibilityModeChanged` event.
578
599
  * @param handler - The handler function that is called when the event is emitted. This function takes in a message for the receiving component.
579
600
  * @returns A promise that resolves to a function when the handler is added. Calling it removes the handler.
601
+ *
602
+ * @remarks
603
+ * **Requirement set**: {@link https://docs.microsoft.com/office/dev/add-ins/reference/requirement-sets/shared-runtime-requirement-sets | SharedRuntime 1.1}
580
604
  */
581
605
  onVisibilityModeChanged(
582
606
  handler: (message: VisibilityModeChangedMessage) => void,
@@ -587,7 +611,7 @@ declare namespace Office {
587
611
  *
588
612
  * @remarks
589
613
  *
590
- * **Requirement set**: Ribbon 1.1
614
+ * **Requirement set**: {@link https://docs.microsoft.com/office/dev/add-ins/reference/requirement-sets/ribbon-api-requirement-sets | RibbonApi 1.1}
591
615
  */
592
616
  interface Ribbon {
593
617
  /**
@@ -595,7 +619,7 @@ declare namespace Office {
595
619
  *
596
620
  * @remarks
597
621
  *
598
- * **Requirement set**: Ribbon 1.2
622
+ * **Requirement set**: {@link https://docs.microsoft.com/office/dev/add-ins/reference/requirement-sets/ribbon-api-requirement-sets | RibbonApi 1.2}
599
623
  *
600
624
  * This method only requests that the tab be registered. The actual registration is controlled by the Office application and may not be complete when the returned `Promise` object is resolved.
601
625
  * For more information and code examples, see {@link https://docs.microsoft.com/office/dev/add-ins/design/contextual-tabs | Create custom contextual tabs}.
@@ -608,7 +632,7 @@ declare namespace Office {
608
632
  *
609
633
  * @remarks
610
634
  *
611
- * **Requirement set**: Ribbon 1.1
635
+ * **Requirement set**: {@link https://docs.microsoft.com/office/dev/add-ins/reference/requirement-sets/ribbon-api-requirement-sets | RibbonApi 1.1}
612
636
  *
613
637
  * Note that this API is only to request an update. The actual UI update to the ribbon is controlled by the Office application and hence the exact timing of the ribbon update (or refresh) cannot be determined by the completion of this API.
614
638
  *
@@ -623,7 +647,7 @@ declare namespace Office {
623
647
  *
624
648
  * @remarks
625
649
  *
626
- * **Requirement set**: Ribbon 1.1
650
+ * **Requirement set**: {@link https://docs.microsoft.com/office/dev/add-ins/reference/requirement-sets/ribbon-api-requirement-sets | RibbonApi 1.1}
627
651
  */
628
652
  interface RibbonUpdaterData {
629
653
  /**
@@ -636,7 +660,7 @@ declare namespace Office {
636
660
  *
637
661
  * @remarks
638
662
  *
639
- * **Requirement set**: Ribbon 1.1
663
+ * **Requirement set**: {@link https://docs.microsoft.com/office/dev/add-ins/reference/requirement-sets/ribbon-api-requirement-sets | RibbonApi 1.1}
640
664
  */
641
665
  interface Tab {
642
666
  /**
@@ -656,7 +680,7 @@ declare namespace Office {
656
680
  *
657
681
  * @remarks
658
682
  *
659
- * **Requirement set**: Ribbon 1.2
683
+ * **Requirement set**: {@link https://docs.microsoft.com/office/dev/add-ins/reference/requirement-sets/ribbon-api-requirement-sets | RibbonApi 1.2}
660
684
  */
661
685
  visible?: boolean;
662
686
  /**
@@ -666,14 +690,14 @@ declare namespace Office {
666
690
  *
667
691
  * When the `Tab` object is part of an {@link Office.RibbonUpdaterData} object passed to the `requestUpdate` method of {@link Office.Ribbon}, the `controls` properties of the various {@link Office.Group} objects specify which controls have their enabled status changed; the `controls` property of the `Tab` object is ignored.
668
692
  *
669
- * **Requirement set**: Ribbon 1.1
693
+ * **Requirement set**: {@link https://docs.microsoft.com/office/dev/add-ins/reference/requirement-sets/ribbon-api-requirement-sets | RibbonApi 1.1}
670
694
  */
671
695
  groups?: Group[];
672
696
  }
673
697
  /**
674
698
  * Represents a group of controls on a ribbon tab.
675
699
  *
676
- * **Requirement set**: Ribbon 1.1
700
+ * **Requirement set**: {@link https://docs.microsoft.com/office/dev/add-ins/reference/requirement-sets/ribbon-api-requirement-sets | RibbonApi 1.1}
677
701
  */
678
702
  interface Group {
679
703
  /**
@@ -697,7 +721,7 @@ declare namespace Office {
697
721
  *
698
722
  * For code samples showing how to use a `Control` object and its properties, see {@link https://docs.microsoft.com/office/dev/add-ins/design/disable-add-in-commands | Enable and Disable Add-in Commands} and {@link https://docs.microsoft.com/office/dev/add-ins/design/contextual-tabs | Create custom contextual tabs}.
699
723
  *
700
- * **Requirement set**: Ribbon 1.1
724
+ * **Requirement set**: {@link https://docs.microsoft.com/office/dev/add-ins/reference/requirement-sets/ribbon-api-requirement-sets | RibbonApi 1.1}
701
725
  */
702
726
  interface Control {
703
727
  /**
@@ -1329,7 +1353,7 @@ declare namespace Office {
1329
1353
  *
1330
1354
  * **Hosts**: Excel, OneNote, Outlook, PowerPoint, Word
1331
1355
  *
1332
- * **Requirement set**: {@link https://docs.microsoft.com/office/dev/add-ins/reference/requirement-sets/identity-api-requirement-sets | IdentityAPI}
1356
+ * **Requirement set**: {@link https://docs.microsoft.com/office/dev/add-ins/reference/requirement-sets/identity-api-requirement-sets | IdentityAPI 1.3}
1333
1357
  *
1334
1358
  * This API requires a single sign-on configuration that bridges the add-in to an Azure application. Office users sign in with Organizational
1335
1359
  * Accounts and Microsoft Accounts. Microsoft Azure returns tokens intended for both user account types to access resources in the Microsoft Graph.
@@ -1354,7 +1378,7 @@ declare namespace Office {
1354
1378
  *
1355
1379
  * **Hosts**: Excel, OneNote, Outlook, PowerPoint, Word
1356
1380
  *
1357
- * **Requirement set**: {@link https://docs.microsoft.com/office/dev/add-ins/reference/requirement-sets/identity-api-requirement-sets | IdentityAPI}
1381
+ * **Requirement set**: {@link https://docs.microsoft.com/office/dev/add-ins/reference/requirement-sets/identity-api-requirement-sets | IdentityAPI 1.3}
1358
1382
  *
1359
1383
  * This API requires a single sign-on configuration that bridges the add-in to an Azure application. Office users sign in with Organizational
1360
1384
  * Accounts and Microsoft Accounts. Microsoft Azure returns tokens intended for both user account types to access resources in the Microsoft Graph.
@@ -1376,7 +1400,7 @@ declare namespace Office {
1376
1400
  *
1377
1401
  * **Important**: In Outlook, this API is not supported if the add-in is loaded in an Outlook.com or Gmail mailbox.
1378
1402
  *
1379
- * **Requirement set**: {@link https://docs.microsoft.com/office/dev/add-ins/reference/requirement-sets/identity-api-requirement-sets | IdentityAPI}
1403
+ * **Requirement set**: {@link https://docs.microsoft.com/office/dev/add-ins/reference/requirement-sets/identity-api-requirement-sets | IdentityAPI 1.3}
1380
1404
  *
1381
1405
  * @param options - Optional. Accepts an `AuthOptions` object to define sign-on behaviors.
1382
1406
  * @returns Promise to the access token.
@@ -2066,7 +2090,7 @@ declare namespace Office {
2066
2090
  */
2067
2091
  enum EventType {
2068
2092
  /**
2069
- * A Document.ActiveViewChanged event was raised.
2093
+ * A Document.ActiveViewChanged event was raised in PowerPoint.
2070
2094
  *
2071
2095
  * @remarks
2072
2096
  *
@@ -2231,7 +2255,11 @@ declare namespace Office {
2231
2255
  */
2232
2256
  Text,
2233
2257
  /**
2234
- * Returns the entire document (.pptx, .docx, or .xlsx) in Office Open XML (OOXML) format as a byte array.
2258
+ * Returns the entire document (.pptx, .docx, .xlsx, or .xlsm) in Office Open XML (OOXML) format as a byte array.
2259
+ *
2260
+ * Note: The .xslm file type is supported in Excel on Windows and Mac. It's not supported in Excel on the web.
2261
+ * In Excel on Windows, the file slices from the `getFileAsync` method include the VBA signature files for .xslm file types. The VBA signature files are vbaProjectSignature.bin, vbaProbjectSignatureAgile.bin, and vbaProjectSignatureV3.bin.
2262
+ * In Excel on Mac, the file slices from the `getFileAsync` method don't include the VBA signature files, because this platform doesn't support the VBA signature feature.
2235
2263
  */
2236
2264
  Compressed,
2237
2265
  /**
@@ -3791,8 +3819,8 @@ declare namespace Office {
3791
3819
  * @param options Provides an option for preserving context data of any type, unchanged, for use in a callback.
3792
3820
  * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type {@link Office.AsyncResult}.
3793
3821
  * The `value` property of the result is the state of the presentation's current view.
3794
- * The value returned can be either "edit" or "read". "edit" corresponds to any of the views in which you can edit slides,
3795
- * such as Normal or Outline View. "read" corresponds to either Slide Show or Reading View.
3822
+ * The value returned can be either "edit" or "read". "edit" corresponds to any of the views in which you can edit slides:
3823
+ * Normal, Slide Sorter, or Outline View. "read" corresponds to either Slide Show or Reading View.
3796
3824
  */
3797
3825
  getActiveViewAsync(options?: Office.AsyncContextOptions, callback?: (result: AsyncResult<"edit" | "read">) => void): void;
3798
3826
  /**
@@ -3806,8 +3834,8 @@ declare namespace Office {
3806
3834
  *
3807
3835
  * @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type {@link Office.AsyncResult}.
3808
3836
  * The `value` property of the result is the state of the presentation's current view.
3809
- * The value returned can be either "edit" or "read". "edit" corresponds to any of the views in which you can edit slides,
3810
- * such as Normal or Outline View. "read" corresponds to either Slide Show or Reading View.
3837
+ * The value returned can be either "edit" or "read". "edit" corresponds to any of the views in which you can edit slides:
3838
+ * Normal, Slide Sorter, or Outline View. "read" corresponds to either Slide Show or Reading View.
3811
3839
  */
3812
3840
  getActiveViewAsync(callback?: (result: AsyncResult<"edit" | "read">) => void): void;
3813
3841
  /**
@@ -3983,7 +4011,7 @@ declare namespace Office {
3983
4011
  * <td>`Office.CoercionType.SlideRange`</td>
3984
4012
  * </tr>
3985
4013
  * <tr>
3986
- * <td>Excel, PowerPoint, and Word</td>
4014
+ * <td>Excel on Windows and Mac, PowerPoint on Windows, Mac, and the web, and Word on Windows and Mac</td>
3987
4015
  * <td>`Office.CoercionType.XmlSvg`</td>
3988
4016
  * </tr>
3989
4017
  * </table>
@@ -4075,7 +4103,7 @@ declare namespace Office {
4075
4103
  * <td>`Office.CoercionType.SlideRange`</td>
4076
4104
  * </tr>
4077
4105
  * <tr>
4078
- * <td>Excel, PowerPoint, and Word</td>
4106
+ * <td>Excel on Windows and Mac, PowerPoint on Windows, Mac, and the web, and Word on Windows and Mac</td>
4079
4107
  * <td>`Office.CoercionType.XmlSvg`</td>
4080
4108
  * </tr>
4081
4109
  * </table>
@@ -4315,7 +4343,7 @@ declare namespace Office {
4315
4343
  * <td>`Office.CoercionType.SlideRange`</td>
4316
4344
  * </tr>
4317
4345
  * <tr>
4318
- * <td>Excel, PowerPoint, and Word</td>
4346
+ * <td>Excel on Windows and Mac, PowerPoint on Windows, Mac, and the web, and Word on Windows and Mac</td>
4319
4347
  * <td>`Office.CoercionType.XmlSvg`</td>
4320
4348
  * </tr>
4321
4349
  * </table>
@@ -4504,7 +4532,7 @@ declare namespace Office {
4504
4532
  * <td>`Office.CoercionType.SlideRange`</td>
4505
4533
  * </tr>
4506
4534
  * <tr>
4507
- * <td>Excel, PowerPoint, and Word</td>
4535
+ * <td>Excel on Windows and Mac, PowerPoint on Windows, Mac, and the web, and Word on Windows and Mac</td>
4508
4536
  * <td>`Office.CoercionType.XmlSvg`</td>
4509
4537
  * </tr>
4510
4538
  * </table>
office-js/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js",
3
- "version": "1.0.237",
3
+ "version": "1.0.240",
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",
@@ -45,6 +45,6 @@
45
45
  },
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
- "typesPublisherContentHash": "daacdf91f1cb2d57a26ace27c76886743238d61419ebf32e4430347c9d31ef83",
49
- "typeScriptVersion": "3.8"
48
+ "typesPublisherContentHash": "1a9f209bc0daae374418edfbf2fc699b0f376f448d41b7c6b064637f92700283",
49
+ "typeScriptVersion": "3.9"
50
50
  }