@minecraft/server-editor 0.1.0-beta.1.26.30-preview.32 → 0.1.0-beta.1.26.40-preview.23

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.
Files changed (2) hide show
  1. package/index.d.ts +70 -0
  2. package/package.json +3 -3
package/index.d.ts CHANGED
@@ -184,6 +184,34 @@ export declare enum CoreBrushShapeType {
184
184
  Star = 'editor:brushShape:star',
185
185
  }
186
186
 
187
+ /**
188
+ * Built-in control categories for use with {@link
189
+ * KeyBindingInfo.bindingCategory}. Pass any
190
+ * `CoreInputBindingCategory` value or a custom string to
191
+ * categorize a binding.
192
+ */
193
+ export declare enum CoreInputBindingCategory {
194
+ Camera = 'editor:camera',
195
+ CursorMovement = 'editor:cursorMovement',
196
+ Fly = 'editor:fly',
197
+ General = 'editor:general',
198
+ Hotbar = 'editor:hotbar',
199
+ MakeSelection = 'editor:makeSelection',
200
+ Modes = 'editor:modes',
201
+ Move = 'editor:move',
202
+ Movement = 'editor:movement',
203
+ Nudge = 'editor:nudge',
204
+ Offset = 'editor:offset',
205
+ Operations = 'editor:operations',
206
+ Paste = 'editor:paste',
207
+ PastePreviewManipulation = 'editor:pastePreviewManipulation',
208
+ SizeSelection = 'editor:sizeSelection',
209
+ ToolActivation = 'editor:toolActivation',
210
+ TrimActions = 'editor:trimActions',
211
+ Widget = 'editor:widget',
212
+ Workbench = 'editor:workbench',
213
+ }
214
+
187
215
  /**
188
216
  * Predefined top level menus for core editor
189
217
  */
@@ -1683,6 +1711,8 @@ export type KeyBindingInfo = {
1683
1711
  uniqueId: string;
1684
1712
  label?: string;
1685
1713
  tooltip?: string;
1714
+ bindingCategory?: string;
1715
+ bindingPriority?: number;
1686
1716
  };
1687
1717
 
1688
1718
  /**
@@ -6148,18 +6178,36 @@ export interface BuiltInUIManager {
6148
6178
  *
6149
6179
  */
6150
6180
  saveAndExit(): void;
6181
+ /**
6182
+ * @remarks
6183
+ * Shows the Keyboard Settings modal
6184
+ *
6185
+ */
6186
+ showKeyboardSettings(): void;
6151
6187
  /**
6152
6188
  * @remarks
6153
6189
  * Shows update information for the current version
6154
6190
  *
6155
6191
  */
6156
6192
  showUpdateInformation(): void;
6193
+ /**
6194
+ * @remarks
6195
+ * Updates the visibility of the Control Help panel
6196
+ *
6197
+ */
6198
+ updateControlHelpPanelVisibility(visibility: boolean): void;
6157
6199
  /**
6158
6200
  * @remarks
6159
6201
  * Updates the visibility of the log panel
6160
6202
  *
6161
6203
  */
6162
6204
  updateLogPanelVisibility(visibility: boolean): void;
6205
+ /**
6206
+ * @remarks
6207
+ * Updates the visibility of the Structure panel
6208
+ *
6209
+ */
6210
+ updateStructurePanelVisibility(visibility: boolean): void;
6163
6211
  /**
6164
6212
  * @remarks
6165
6213
  * Updates the visibility of the control demo
@@ -8002,6 +8050,20 @@ export declare interface IEventToken {
8002
8050
  }
8003
8051
 
8004
8052
  export interface IGlobalInputManager {
8053
+ /**
8054
+ * @remarks
8055
+ * Register a named control category for display in the Control
8056
+ * Help panel.
8057
+ *
8058
+ * @param id
8059
+ * Unique category identifier (use a {@link
8060
+ * CoreInputBindingCategory} value or a custom string).
8061
+ * @param label
8062
+ * Localized display name shown as the group heading.
8063
+ * @param order
8064
+ * Numeric sort order; lower values appear first.
8065
+ */
8066
+ registerBindingCategory(id: string, label: string, order: number): void;
8005
8067
  /**
8006
8068
  * @remarks
8007
8069
  * Register a key press binding for an action which will be
@@ -10636,6 +10698,14 @@ export interface IStringPropertyItem extends IPropertyItemBase {
10636
10698
  */
10637
10699
  // @ts-ignore Class inheritance allowed for native defined classes
10638
10700
  export interface IStringPropertyItemOptions extends IPropertyItemOptionsBase {
10701
+ /**
10702
+ * @remarks
10703
+ * If true, profanity filtering will be applied on blur and a
10704
+ * warning modal will be shown. The field value will be cleared
10705
+ * if profanity is detected.
10706
+ *
10707
+ */
10708
+ filterProfanity?: boolean;
10639
10709
  /**
10640
10710
  * @remarks
10641
10711
  * Shows clear button for the item. If undefined, it will be
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.32",
3
+ "version": "0.1.0-beta.1.26.40-preview.23",
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.32",
18
- "@minecraft/vanilla-data": ">=1.20.70 || 1.26.30-preview.32"
17
+ "@minecraft/server": "^2.10.0-beta.1.26.40-preview.23",
18
+ "@minecraft/vanilla-data": ">=1.20.70 || 1.26.40-preview.23"
19
19
  },
20
20
  "license": "MIT"
21
21
  }