@serenityjs/core 0.8.20 → 0.8.21-beta-20260401142523

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @serenityjs/core
2
2
 
3
+ ## 0.8.21-beta-20260401142523
4
+
5
+ ### Patch Changes
6
+
7
+ - [`924c08e`](https://github.com/SerenityJS/serenity/commit/924c08e959cd520057097943fd53d260ff360924) Thanks [@PMK744](https://github.com/PMK744)! - init v0.8.21-beta
8
+
9
+ - Updated dependencies [[`924c08e`](https://github.com/SerenityJS/serenity/commit/924c08e959cd520057097943fd53d260ff360924)]:
10
+ - @serenityjs/data@0.8.21-beta-20260401142523
11
+ - @serenityjs/emitter@0.8.21-beta-20260401142523
12
+ - @serenityjs/logger@0.8.21-beta-20260401142523
13
+ - @serenityjs/nbt@0.8.21-beta-20260401142523
14
+ - @serenityjs/protocol@0.8.21-beta-20260401142523
15
+ - @serenityjs/raknet@0.8.21-beta-20260401142523
16
+
3
17
  ## 0.8.20
4
18
 
5
19
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -12838,7 +12838,7 @@ declare class LayoutElement extends ObjectProperty {
12838
12838
  * Create a new layout element with the default name "layout", which serves as the container for organizing and structuring other elements within the user interface of a custom form.
12839
12839
  * The layout element allows for the arrangement and grouping of various UI components, enabling developers to create visually appealing and user-friendly interfaces for their custom forms.
12840
12840
  */
12841
- constructor(parent?: ObjectProperty | null);
12841
+ constructor(name?: string, parent?: ObjectProperty | null);
12842
12842
  /**
12843
12843
  * Add a new element to the layout with the given name and value.
12844
12844
  * @param property The object property representing the element to be added to the layout.
@@ -12950,6 +12950,26 @@ interface SpacerElementOptions {
12950
12950
  visible?: boolean | Observable<boolean>;
12951
12951
  }
12952
12952
 
12953
+ interface DropdownElementOptions {
12954
+ /**
12955
+ * A description of the dropdown element.
12956
+ */
12957
+ description?: string | Observable<string>;
12958
+ /**
12959
+ * Whether the dropdown element is disabled.
12960
+ */
12961
+ disabled?: boolean | Observable<boolean>;
12962
+ /**
12963
+ * Whether the dropdown element is visible.
12964
+ */
12965
+ visible?: boolean | Observable<boolean>;
12966
+ }
12967
+ interface DropdownElementItem {
12968
+ description?: string;
12969
+ label: string;
12970
+ value: number;
12971
+ }
12972
+
12953
12973
  declare abstract class DataDrivenScreen extends ObjectProperty {
12954
12974
  /**
12955
12975
  * The identifier of the screen.
@@ -13174,6 +13194,7 @@ declare class CustomForm extends DataDrivenScreen {
13174
13194
  * @returns The current instance of the CustomForm class to allow for method chaining.
13175
13195
  */
13176
13196
  spacer(options?: SpacerElementOptions): this;
13197
+ dropdown(label: string | Observable<string>, value: Observable<number>, items: Array<DropdownElementItem>, options?: DropdownElementOptions): this;
13177
13198
  }
13178
13199
 
13179
13200
  declare class PermissionGroup implements IPermissionGroup<Map<string, Array<string>>> {
@@ -13845,6 +13866,10 @@ declare class Player extends Entity {
13845
13866
  * The player's device information.
13846
13867
  */
13847
13868
  readonly clientSystemInfo: ClientSystemInfo;
13869
+ /**
13870
+ * Whether the entity is jumping or not.
13871
+ */
13872
+ isJumping: boolean;
13848
13873
  /**
13849
13874
  * The current skin of the player.
13850
13875
  */
package/dist/index.d.ts CHANGED
@@ -12838,7 +12838,7 @@ declare class LayoutElement extends ObjectProperty {
12838
12838
  * Create a new layout element with the default name "layout", which serves as the container for organizing and structuring other elements within the user interface of a custom form.
12839
12839
  * The layout element allows for the arrangement and grouping of various UI components, enabling developers to create visually appealing and user-friendly interfaces for their custom forms.
12840
12840
  */
12841
- constructor(parent?: ObjectProperty | null);
12841
+ constructor(name?: string, parent?: ObjectProperty | null);
12842
12842
  /**
12843
12843
  * Add a new element to the layout with the given name and value.
12844
12844
  * @param property The object property representing the element to be added to the layout.
@@ -12950,6 +12950,26 @@ interface SpacerElementOptions {
12950
12950
  visible?: boolean | Observable<boolean>;
12951
12951
  }
12952
12952
 
12953
+ interface DropdownElementOptions {
12954
+ /**
12955
+ * A description of the dropdown element.
12956
+ */
12957
+ description?: string | Observable<string>;
12958
+ /**
12959
+ * Whether the dropdown element is disabled.
12960
+ */
12961
+ disabled?: boolean | Observable<boolean>;
12962
+ /**
12963
+ * Whether the dropdown element is visible.
12964
+ */
12965
+ visible?: boolean | Observable<boolean>;
12966
+ }
12967
+ interface DropdownElementItem {
12968
+ description?: string;
12969
+ label: string;
12970
+ value: number;
12971
+ }
12972
+
12953
12973
  declare abstract class DataDrivenScreen extends ObjectProperty {
12954
12974
  /**
12955
12975
  * The identifier of the screen.
@@ -13174,6 +13194,7 @@ declare class CustomForm extends DataDrivenScreen {
13174
13194
  * @returns The current instance of the CustomForm class to allow for method chaining.
13175
13195
  */
13176
13196
  spacer(options?: SpacerElementOptions): this;
13197
+ dropdown(label: string | Observable<string>, value: Observable<number>, items: Array<DropdownElementItem>, options?: DropdownElementOptions): this;
13177
13198
  }
13178
13199
 
13179
13200
  declare class PermissionGroup implements IPermissionGroup<Map<string, Array<string>>> {
@@ -13845,6 +13866,10 @@ declare class Player extends Entity {
13845
13866
  * The player's device information.
13846
13867
  */
13847
13868
  readonly clientSystemInfo: ClientSystemInfo;
13869
+ /**
13870
+ * Whether the entity is jumping or not.
13871
+ */
13872
+ isJumping: boolean;
13848
13873
  /**
13849
13874
  * The current skin of the player.
13850
13875
  */