From 4c15954af760b6ade47956c428596f1896bc38da Mon Sep 17 00:00:00 2001 From: Sam Ramon <15154970+samantharamon@users.noreply.github.com> Date: Fri, 10 Oct 2025 12:45:03 -0700 Subject: [PATCH 1/2] [office-js][office-js-preview] (UI/UX) Document TaskPaneApi 1.1 requirement set (#73732) --- types/office-js-preview/index.d.ts | 48 ++++++++++++++++++++++++++++++ types/office-js/index.d.ts | 48 ++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) diff --git a/types/office-js-preview/index.d.ts b/types/office-js-preview/index.d.ts index 7cbfe3ecbee65d..7c85c790e516ad 100644 --- a/types/office-js-preview/index.d.ts +++ b/types/office-js-preview/index.d.ts @@ -6885,6 +6885,23 @@ declare namespace Office { */ name: string; } + /** + * Provides options to manage the user interface of an Office Add-in while the add-in is running. + * + * @remarks + * + * **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/task-pane-api-requirement-sets | TaskPaneApi 1.1} + */ + interface ExtensionLifeCycle { + /** + * Gets an object that represents the task pane of an add-in. + * + * @remarks + * + * **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/task-pane-api-requirement-sets | TaskPaneApi 1.1} + */ + taskpane: TaskPane; + } /** * Represents the document file associated with an Office Add-in. * @@ -8574,6 +8591,37 @@ declare namespace Office { */ rows: any[][]; } + /** + * Provides methods to manage the task pane of an add-in. + * + * @remarks + * + * **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/task-pane-api-requirement-sets | TaskPaneApi 1.1} + */ + interface TaskPane { + /** + * Sets the width of the task pane of an add-in in pixels. + * + * @remarks + * + * **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/task-pane-api-requirement-sets | TaskPaneApi 1.1} + * + * **Important**: The default width of the task pane of an add-in varies depending on the platform. + * + * - **Web (Excel)**: 350 px + * + * - **Web (Word)**: 330 px + * + * - **Windows**: 51 px + * + * If you pass a width beyond the minimum and maximum constraints, the task pane isn't resized and no error is shown. + * + * @param width The width of a task pane in pixels. The minimum and maximum constraints vary by platform. In Excel on the web, the width must be between + * 350 and 500 px (inclusive). In Word on the web, the width must be between 330 and 500 px (inclusive). In Office on Windows, the width + * must be between 51 px and 50% of the client window. + */ + setWidth(width: number): void; + } /** * Represents a bound text selection in the document. * diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index 0f87a4f248146c..2d85a55d2585b3 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -6875,6 +6875,23 @@ declare namespace Office { */ name: string; } + /** + * Provides options to manage the user interface of an Office Add-in while the add-in is running. + * + * @remarks + * + * **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/task-pane-api-requirement-sets | TaskPaneApi 1.1} + */ + interface ExtensionLifeCycle { + /** + * Gets an object that represents the task pane of an add-in. + * + * @remarks + * + * **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/task-pane-api-requirement-sets | TaskPaneApi 1.1} + */ + taskpane: TaskPane; + } /** * Represents the document file associated with an Office Add-in. * @@ -8564,6 +8581,37 @@ declare namespace Office { */ rows: any[][]; } + /** + * Provides methods to manage the task pane of an add-in. + * + * @remarks + * + * **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/task-pane-api-requirement-sets | TaskPaneApi 1.1} + */ + interface TaskPane { + /** + * Sets the width of the task pane of an add-in in pixels. + * + * @remarks + * + * **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/task-pane-api-requirement-sets | TaskPaneApi 1.1} + * + * **Important**: The default width of the task pane of an add-in varies depending on the platform. + * + * - **Web (Excel)**: 350 px + * + * - **Web (Word)**: 330 px + * + * - **Windows**: 51 px + * + * If you pass a width beyond the minimum and maximum constraints, the task pane isn't resized and no error is shown. + * + * @param width The width of a task pane in pixels. The minimum and maximum constraints vary by platform. In Excel on the web, the width must be between + * 350 and 500 px (inclusive). In Word on the web, the width must be between 330 and 500 px (inclusive). In Office on Windows, the width + * must be between 51 px and 50% of the client window. + */ + setWidth(width: number): void; + } /** * Represents a bound text selection in the document. * From 95890e39aca378c38427afd218e76cc2bbd3fc31 Mon Sep 17 00:00:00 2001 From: robobun Date: Fri, 10 Oct 2025 13:44:51 -0700 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#73871=20[bun]?= =?UTF-8?q?=20update=20to=201.3.0=20by=20@robobun?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com> --- types/bun/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/bun/package.json b/types/bun/package.json index 8a4c7f1ab35f0d..c9009507adf5db 100644 --- a/types/bun/package.json +++ b/types/bun/package.json @@ -1,12 +1,12 @@ { "private": true, "name": "@types/bun", - "version": "1.2.9999", + "version": "1.3.9999", "projects": [ "https://bun.com" ], "dependencies": { - "bun-types": "1.2.23" + "bun-types": "1.3.0" }, "devDependencies": { "@types/bun": "workspace:."