@serenityjs/core 0.8.16 → 0.8.17-beta-20251216014342
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 +14 -0
- package/dist/index.d.mts +21 -2
- package/dist/index.d.ts +21 -2
- package/dist/index.js +43 -1
- package/dist/index.mjs +54 -12
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @serenityjs/core
|
|
2
2
|
|
|
3
|
+
## 0.8.17-beta-20251216014342
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`43d3bb6`](https://github.com/SerenityJS/serenity/commit/43d3bb6394648053788274a6d312f1c00dd0b80d) Thanks [@PMK744](https://github.com/PMK744)! - init v0.8.17-beta
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`43d3bb6`](https://github.com/SerenityJS/serenity/commit/43d3bb6394648053788274a6d312f1c00dd0b80d)]:
|
|
10
|
+
- @serenityjs/data@0.8.17-beta-20251216014342
|
|
11
|
+
- @serenityjs/emitter@0.8.17-beta-20251216014342
|
|
12
|
+
- @serenityjs/logger@0.8.17-beta-20251216014342
|
|
13
|
+
- @serenityjs/nbt@0.8.17-beta-20251216014342
|
|
14
|
+
- @serenityjs/protocol@0.8.17-beta-20251216014342
|
|
15
|
+
- @serenityjs/raknet@0.8.17-beta-20251216014342
|
|
16
|
+
|
|
3
17
|
## 0.8.16
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -13031,7 +13031,7 @@ declare class Form<T> {
|
|
|
13031
13031
|
/**
|
|
13032
13032
|
* The next form id to use when creating a new form.
|
|
13033
13033
|
*/
|
|
13034
|
-
static formId
|
|
13034
|
+
private static formId;
|
|
13035
13035
|
/**
|
|
13036
13036
|
* The form id of the form.
|
|
13037
13037
|
*/
|
|
@@ -13068,6 +13068,10 @@ declare class Form<T> {
|
|
|
13068
13068
|
* @param player The player to close the form for.
|
|
13069
13069
|
*/
|
|
13070
13070
|
close(player: Player): void;
|
|
13071
|
+
/**
|
|
13072
|
+
* Updates the form for a player.
|
|
13073
|
+
* @param player The player to update the form for.
|
|
13074
|
+
*/
|
|
13071
13075
|
update(player: Player): void;
|
|
13072
13076
|
}
|
|
13073
13077
|
|
|
@@ -13163,6 +13167,11 @@ declare class ActionForm extends Form<number> {
|
|
|
13163
13167
|
* Clears all elements from the form.
|
|
13164
13168
|
*/
|
|
13165
13169
|
clearElements(): void;
|
|
13170
|
+
/**
|
|
13171
|
+
* Clears a specific element from the form.
|
|
13172
|
+
* @param index The index of the element to clear.
|
|
13173
|
+
*/
|
|
13174
|
+
clearElement(index: number): void;
|
|
13166
13175
|
/**
|
|
13167
13176
|
* Adds a button to the form.
|
|
13168
13177
|
*/
|
|
@@ -13226,7 +13235,7 @@ declare class ModalForm<T = Array<unknown>> extends Form<T> {
|
|
|
13226
13235
|
/**
|
|
13227
13236
|
* The content of the form.
|
|
13228
13237
|
*/
|
|
13229
|
-
|
|
13238
|
+
private content;
|
|
13230
13239
|
/**
|
|
13231
13240
|
* The sumbit button text.
|
|
13232
13241
|
*/
|
|
@@ -13237,6 +13246,15 @@ declare class ModalForm<T = Array<unknown>> extends Form<T> {
|
|
|
13237
13246
|
* @param submit The text of the submit button; defaults to "Submit".
|
|
13238
13247
|
*/
|
|
13239
13248
|
constructor(title: string, submit?: string);
|
|
13249
|
+
/**
|
|
13250
|
+
* Clears all elements from the form.
|
|
13251
|
+
*/
|
|
13252
|
+
clearElements(): void;
|
|
13253
|
+
/**
|
|
13254
|
+
* Clears a specific element from the form.
|
|
13255
|
+
* @param index The index of the element to clear.
|
|
13256
|
+
*/
|
|
13257
|
+
clearElement(index: number): void;
|
|
13240
13258
|
/**
|
|
13241
13259
|
* Adds a dropdown menu to the form.
|
|
13242
13260
|
* @param text The text of the dropdown menu
|
|
@@ -15143,6 +15161,7 @@ declare class PlayerChunkRenderingTrait extends PlayerTrait {
|
|
|
15143
15161
|
clear(position?: ChunkCoords): void;
|
|
15144
15162
|
onTick(): Promise<void>;
|
|
15145
15163
|
private getRadialOffsets;
|
|
15164
|
+
getTileFixPackets(position: IPosition): Array<DataPacket>;
|
|
15146
15165
|
onRemove(): void;
|
|
15147
15166
|
onDespawn(options: EntityDespawnOptions): void;
|
|
15148
15167
|
onTeleport(): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -13031,7 +13031,7 @@ declare class Form<T> {
|
|
|
13031
13031
|
/**
|
|
13032
13032
|
* The next form id to use when creating a new form.
|
|
13033
13033
|
*/
|
|
13034
|
-
static formId
|
|
13034
|
+
private static formId;
|
|
13035
13035
|
/**
|
|
13036
13036
|
* The form id of the form.
|
|
13037
13037
|
*/
|
|
@@ -13068,6 +13068,10 @@ declare class Form<T> {
|
|
|
13068
13068
|
* @param player The player to close the form for.
|
|
13069
13069
|
*/
|
|
13070
13070
|
close(player: Player): void;
|
|
13071
|
+
/**
|
|
13072
|
+
* Updates the form for a player.
|
|
13073
|
+
* @param player The player to update the form for.
|
|
13074
|
+
*/
|
|
13071
13075
|
update(player: Player): void;
|
|
13072
13076
|
}
|
|
13073
13077
|
|
|
@@ -13163,6 +13167,11 @@ declare class ActionForm extends Form<number> {
|
|
|
13163
13167
|
* Clears all elements from the form.
|
|
13164
13168
|
*/
|
|
13165
13169
|
clearElements(): void;
|
|
13170
|
+
/**
|
|
13171
|
+
* Clears a specific element from the form.
|
|
13172
|
+
* @param index The index of the element to clear.
|
|
13173
|
+
*/
|
|
13174
|
+
clearElement(index: number): void;
|
|
13166
13175
|
/**
|
|
13167
13176
|
* Adds a button to the form.
|
|
13168
13177
|
*/
|
|
@@ -13226,7 +13235,7 @@ declare class ModalForm<T = Array<unknown>> extends Form<T> {
|
|
|
13226
13235
|
/**
|
|
13227
13236
|
* The content of the form.
|
|
13228
13237
|
*/
|
|
13229
|
-
|
|
13238
|
+
private content;
|
|
13230
13239
|
/**
|
|
13231
13240
|
* The sumbit button text.
|
|
13232
13241
|
*/
|
|
@@ -13237,6 +13246,15 @@ declare class ModalForm<T = Array<unknown>> extends Form<T> {
|
|
|
13237
13246
|
* @param submit The text of the submit button; defaults to "Submit".
|
|
13238
13247
|
*/
|
|
13239
13248
|
constructor(title: string, submit?: string);
|
|
13249
|
+
/**
|
|
13250
|
+
* Clears all elements from the form.
|
|
13251
|
+
*/
|
|
13252
|
+
clearElements(): void;
|
|
13253
|
+
/**
|
|
13254
|
+
* Clears a specific element from the form.
|
|
13255
|
+
* @param index The index of the element to clear.
|
|
13256
|
+
*/
|
|
13257
|
+
clearElement(index: number): void;
|
|
13240
13258
|
/**
|
|
13241
13259
|
* Adds a dropdown menu to the form.
|
|
13242
13260
|
* @param text The text of the dropdown menu
|
|
@@ -15143,6 +15161,7 @@ declare class PlayerChunkRenderingTrait extends PlayerTrait {
|
|
|
15143
15161
|
clear(position?: ChunkCoords): void;
|
|
15144
15162
|
onTick(): Promise<void>;
|
|
15145
15163
|
private getRadialOffsets;
|
|
15164
|
+
getTileFixPackets(position: IPosition): Array<DataPacket>;
|
|
15146
15165
|
onRemove(): void;
|
|
15147
15166
|
onDespawn(options: EntityDespawnOptions): void;
|
|
15148
15167
|
onTeleport(): void;
|