@minecraft/server-editor 0.1.0-beta.1.26.30-preview.28 → 0.1.0-beta.1.26.30-preview.32
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.
- package/index.d.ts +54 -2
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -7843,6 +7843,19 @@ export interface IDisposable {
|
|
|
7843
7843
|
teardown(): void;
|
|
7844
7844
|
}
|
|
7845
7845
|
|
|
7846
|
+
/**
|
|
7847
|
+
* Optional properties for Divider property item
|
|
7848
|
+
*/
|
|
7849
|
+
export interface IDividerPropertyItemOptions {
|
|
7850
|
+
/**
|
|
7851
|
+
* @remarks
|
|
7852
|
+
* If true, renders the divider as a vertical line rather than
|
|
7853
|
+
* horizontal.
|
|
7854
|
+
*
|
|
7855
|
+
*/
|
|
7856
|
+
vertical?: boolean;
|
|
7857
|
+
}
|
|
7858
|
+
|
|
7846
7859
|
/**
|
|
7847
7860
|
* A property item which supports Dropdown properties
|
|
7848
7861
|
*/
|
|
@@ -8649,6 +8662,32 @@ export interface IListPaneViewControlPaneOptions extends IListViewControlPaneOpt
|
|
|
8649
8662
|
*
|
|
8650
8663
|
*/
|
|
8651
8664
|
onFilterChanged?: (visibleSlotIds: string[]) => void;
|
|
8665
|
+
/**
|
|
8666
|
+
* @remarks
|
|
8667
|
+
* Called when the user selects an entry in the "Show"
|
|
8668
|
+
* dropdown. Receives the zero-based option index from the
|
|
8669
|
+
* provided showOptions.
|
|
8670
|
+
*
|
|
8671
|
+
*/
|
|
8672
|
+
onShowOptionChanged?: (optionIndex: number) => void;
|
|
8673
|
+
/**
|
|
8674
|
+
* @remarks
|
|
8675
|
+
* When true, the view control renders inline at the bottom of
|
|
8676
|
+
* the list element instead of in a footer.
|
|
8677
|
+
*
|
|
8678
|
+
*/
|
|
8679
|
+
renderInline?: boolean;
|
|
8680
|
+
/**
|
|
8681
|
+
* @remarks
|
|
8682
|
+
* Labels for the "Show" dropdown. When provided, a dropdown is
|
|
8683
|
+
* shown and onShowOptionChanged is called with the selected
|
|
8684
|
+
* index whenever the user changes the selection.
|
|
8685
|
+
*
|
|
8686
|
+
*/
|
|
8687
|
+
showOptions?: {
|
|
8688
|
+
label: LocalizedString;
|
|
8689
|
+
value: number;
|
|
8690
|
+
}[];
|
|
8652
8691
|
/**
|
|
8653
8692
|
* @remarks
|
|
8654
8693
|
* Custom sort options. If undefined, list pane sort options
|
|
@@ -9139,7 +9178,7 @@ export interface IModalControlPane extends IPane {
|
|
|
9139
9178
|
* Adds an divider item to the pane.
|
|
9140
9179
|
*
|
|
9141
9180
|
*/
|
|
9142
|
-
addDivider(): IPropertyItemBase;
|
|
9181
|
+
addDivider(options?: IDividerPropertyItemOptions): IPropertyItemBase;
|
|
9143
9182
|
}
|
|
9144
9183
|
|
|
9145
9184
|
export interface IModalDialog {
|
|
@@ -10118,7 +10157,7 @@ export interface IPropertyPane extends IPane {
|
|
|
10118
10157
|
* Adds an divider item to the pane.
|
|
10119
10158
|
*
|
|
10120
10159
|
*/
|
|
10121
|
-
addDivider(): IPropertyItemBase;
|
|
10160
|
+
addDivider(options?: IDividerPropertyItemOptions): IPropertyItemBase;
|
|
10122
10161
|
/**
|
|
10123
10162
|
* @remarks
|
|
10124
10163
|
* Adds an Dropdown item to the pane.
|
|
@@ -10703,6 +10742,13 @@ export interface ISubPanePropertyItemOptions extends IPropertyPaneOptions {
|
|
|
10703
10742
|
*
|
|
10704
10743
|
*/
|
|
10705
10744
|
hasMargins?: boolean;
|
|
10745
|
+
/**
|
|
10746
|
+
* @remarks
|
|
10747
|
+
* Custom height of the property item. Use LayoutFlex.Grow to
|
|
10748
|
+
* fill available vertical space.
|
|
10749
|
+
*
|
|
10750
|
+
*/
|
|
10751
|
+
height?: number | LayoutSize | LayoutFlex;
|
|
10706
10752
|
/**
|
|
10707
10753
|
* @remarks
|
|
10708
10754
|
* Pane icon shown in front of the pane header
|
|
@@ -11532,6 +11578,12 @@ export interface ModalToolCreationParameters {
|
|
|
11532
11578
|
*
|
|
11533
11579
|
*/
|
|
11534
11580
|
action?: RegisteredAction<NoArgsAction>;
|
|
11581
|
+
/**
|
|
11582
|
+
* @remarks
|
|
11583
|
+
* Content badge id associated with the modal tool
|
|
11584
|
+
*
|
|
11585
|
+
*/
|
|
11586
|
+
contentBadgeId?: string;
|
|
11535
11587
|
/**
|
|
11536
11588
|
* @remarks
|
|
11537
11589
|
* Icon resource
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-editor",
|
|
3
|
-
"version": "0.1.0-beta.1.26.30-preview.
|
|
3
|
+
"version": "0.1.0-beta.1.26.30-preview.32",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
],
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@minecraft/common": "^1.0.0",
|
|
17
|
-
"@minecraft/server": "^2.9.0-beta.1.26.30-preview.
|
|
18
|
-
"@minecraft/vanilla-data": ">=1.20.70 || 1.26.30-preview.
|
|
17
|
+
"@minecraft/server": "^2.9.0-beta.1.26.30-preview.32",
|
|
18
|
+
"@minecraft/vanilla-data": ">=1.20.70 || 1.26.30-preview.32"
|
|
19
19
|
},
|
|
20
20
|
"license": "MIT"
|
|
21
21
|
}
|