@types/office-js-preview 1.0.649 → 1.0.650
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
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: Fri, 10 Oct 2025 20:02:21 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js-preview/index.d.ts
CHANGED
|
@@ -6885,6 +6885,23 @@ declare namespace Office {
|
|
|
6885
6885
|
*/
|
|
6886
6886
|
name: string;
|
|
6887
6887
|
}
|
|
6888
|
+
/**
|
|
6889
|
+
* Provides options to manage the user interface of an Office Add-in while the add-in is running.
|
|
6890
|
+
*
|
|
6891
|
+
* @remarks
|
|
6892
|
+
*
|
|
6893
|
+
* **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/task-pane-api-requirement-sets | TaskPaneApi 1.1}
|
|
6894
|
+
*/
|
|
6895
|
+
interface ExtensionLifeCycle {
|
|
6896
|
+
/**
|
|
6897
|
+
* Gets an object that represents the task pane of an add-in.
|
|
6898
|
+
*
|
|
6899
|
+
* @remarks
|
|
6900
|
+
*
|
|
6901
|
+
* **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/task-pane-api-requirement-sets | TaskPaneApi 1.1}
|
|
6902
|
+
*/
|
|
6903
|
+
taskpane: TaskPane;
|
|
6904
|
+
}
|
|
6888
6905
|
/**
|
|
6889
6906
|
* Represents the document file associated with an Office Add-in.
|
|
6890
6907
|
*
|
|
@@ -8574,6 +8591,37 @@ declare namespace Office {
|
|
|
8574
8591
|
*/
|
|
8575
8592
|
rows: any[][];
|
|
8576
8593
|
}
|
|
8594
|
+
/**
|
|
8595
|
+
* Provides methods to manage the task pane of an add-in.
|
|
8596
|
+
*
|
|
8597
|
+
* @remarks
|
|
8598
|
+
*
|
|
8599
|
+
* **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/task-pane-api-requirement-sets | TaskPaneApi 1.1}
|
|
8600
|
+
*/
|
|
8601
|
+
interface TaskPane {
|
|
8602
|
+
/**
|
|
8603
|
+
* Sets the width of the task pane of an add-in in pixels.
|
|
8604
|
+
*
|
|
8605
|
+
* @remarks
|
|
8606
|
+
*
|
|
8607
|
+
* **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/task-pane-api-requirement-sets | TaskPaneApi 1.1}
|
|
8608
|
+
*
|
|
8609
|
+
* **Important**: The default width of the task pane of an add-in varies depending on the platform.
|
|
8610
|
+
*
|
|
8611
|
+
* - **Web (Excel)**: 350 px
|
|
8612
|
+
*
|
|
8613
|
+
* - **Web (Word)**: 330 px
|
|
8614
|
+
*
|
|
8615
|
+
* - **Windows**: 51 px
|
|
8616
|
+
*
|
|
8617
|
+
* If you pass a width beyond the minimum and maximum constraints, the task pane isn't resized and no error is shown.
|
|
8618
|
+
*
|
|
8619
|
+
* @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
|
|
8620
|
+
* 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
|
|
8621
|
+
* must be between 51 px and 50% of the client window.
|
|
8622
|
+
*/
|
|
8623
|
+
setWidth(width: number): void;
|
|
8624
|
+
}
|
|
8577
8625
|
/**
|
|
8578
8626
|
* Represents a bound text selection in the document.
|
|
8579
8627
|
*
|
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.650",
|
|
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": "838247ef937551bacafd8f5512fe39532fd7587ce5b79d53842715e94a9a47eb",
|
|
50
50
|
"typeScriptVersion": "5.2",
|
|
51
51
|
"nonNpm": true
|
|
52
52
|
}
|