@types/office-js-preview 1.0.478 → 1.0.479

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: Mon, 17 Jun 2024 18:08:12 GMT
11
+ * Last updated: Thu, 20 Jun 2024 16:08:33 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
@@ -3072,6 +3072,30 @@ declare namespace Office {
3072
3072
  */
3073
3073
  Headers
3074
3074
  }
3075
+ /**
3076
+ * Specifies the Office theme that's currently selected.
3077
+ *
3078
+ * For information on Office themes, see
3079
+ * {@link https://support.microsoft.com/office/63e65e1c-08d4-4dea-820e-335f54672310 | Change the look and feel of Microsoft 365}.
3080
+ */
3081
+ enum ThemeId {
3082
+ /**
3083
+ * The currently selected Office theme is **Black**.
3084
+ */
3085
+ Black,
3086
+ /**
3087
+ * The currently selected Office theme is **Colorful**.
3088
+ */
3089
+ Colorful,
3090
+ /**
3091
+ * The currently selected Office theme is **Dark Gray**.
3092
+ */
3093
+ DarkGray,
3094
+ /**
3095
+ * The currently selected Office theme is **White**.
3096
+ */
3097
+ White
3098
+ }
3075
3099
  /**
3076
3100
  * Specifies whether values, such as numbers and dates, returned by the invoked method are returned with their formatting applied.
3077
3101
  *
@@ -6989,10 +7013,14 @@ declare namespace Office {
6989
7013
  /**
6990
7014
  * Provides access to the properties for Office theme colors.
6991
7015
  *
6992
- * Using Office theme colors lets you coordinate the color scheme of your add-in with the current Office theme selected by the user with **File** \>
6993
- * **Office Account** \> **Office Theme UI**, which is applied across all Office applications. Using Office theme colors is appropriate for mail and
7016
+ * Using Office theme colors lets you coordinate the color scheme of your add-in with the current Office theme selected by the user.
7017
+ * The user sets a theme in an Office application through **File** \> **Account** or **Office Account** \> **Office Theme**.
7018
+ * The selected theme is then applied across all Office applications. Using Office theme colors is appropriate for mail and
6994
7019
  * task pane add-ins.
6995
7020
  *
7021
+ * For more information on Office themes, see
7022
+ * {@link https://support.microsoft.com/office/63e65e1c-08d4-4dea-820e-335f54672310 | Change the look and feel of Microsoft 365}.
7023
+ *
6996
7024
  * @remarks
6997
7025
  *
6998
7026
  * *Supported applications, by platform*
@@ -7007,7 +7035,7 @@ declare namespace Office {
7007
7035
  * </tr>
7008
7036
  * <tr>
7009
7037
  * <td><strong>Excel</strong></td>
7010
- * <td>Not available</td>
7038
+ * <td>Supported</td>
7011
7039
  * <td>Supported</td>
7012
7040
  * <td>Supported</td>
7013
7041
  * <td>Supported</td>
@@ -7015,15 +7043,15 @@ declare namespace Office {
7015
7043
  * </tr>
7016
7044
  * <tr>
7017
7045
  * <td><strong>Outlook</strong></td>
7018
- * <td>Supported\*</td>
7019
- * <td>Supported\*</td>
7046
+ * <td>Supported</td>
7047
+ * <td>Supported</td>
7020
7048
  * <td>Not available</td>
7021
7049
  * <td>Not available</td>
7022
7050
  * <td>Not available</td>
7023
7051
  * </tr>
7024
7052
  * <tr>
7025
7053
  * <td><strong>PowerPoint</strong></td>
7026
- * <td>Not available</td>
7054
+ * <td>Supported</td>
7027
7055
  * <td>Supported</td>
7028
7056
  * <td>Supported</td>
7029
7057
  * <td>Supported</td>
@@ -7039,7 +7067,7 @@ declare namespace Office {
7039
7067
  * </tr>
7040
7068
  * </table>
7041
7069
  *
7042
- * \* In Outlook, the Office theme API is supported starting in
7070
+ * **Important**: In Outlook, the Office theme API is supported starting in
7043
7071
  * {@link https://learn.microsoft.com/javascript/api/requirement-sets/outlook/requirement-set-1.14/outlook-requirement-set-1.14 | Mailbox requirement set 1.14}.
7044
7072
  * It isn't supported in Outlook add-ins that implement {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | event-based activation}.
7045
7073
  */
@@ -7060,6 +7088,22 @@ declare namespace Office {
7060
7088
  * Gets the Office theme control foreground color as a hexadecimal color triplet (e.g., "#FFA500").
7061
7089
  */
7062
7090
  controlForegroundColor: string;
7091
+ /**
7092
+ * Returns `true` if the Office theme that's currently selected is **Black** (dark mode) or **Dark Gray**.
7093
+ *
7094
+ * @remarks
7095
+ *
7096
+ * **Important**: The `isDarkTheme` property isn't yet supported in Outlook.
7097
+ */
7098
+ isDarkTheme: boolean;
7099
+ /**
7100
+ * Gets the Office theme that's currently selected.
7101
+ *
7102
+ * @remarks
7103
+ *
7104
+ * **Important**: The `themeId` property isn't yet supported in Outlook.
7105
+ */
7106
+ themeId: ThemeId;
7063
7107
  }
7064
7108
  /**
7065
7109
  * Specifies a cell, or row, or column, by its zero-based row and/or column number. Example: `{row: 3, column: 4}` specifies the cell in the 3rd
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.478",
3
+ "version": "1.0.479",
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",
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
- "typesPublisherContentHash": "78689265f2fd891d7d8339a179df4b0fcc58030b98c6b90a0808f9bffb154a6c",
48
+ "typesPublisherContentHash": "555ccb55a6776312c1857533b39d243c6acba81068830c2249e0548694b49b21",
49
49
  "typeScriptVersion": "4.7",
50
50
  "nonNpm": true
51
51
  }