@wayward/types 2.13.2-beta.dev.20230518.1 → 2.13.2-beta.dev.20230519.1

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.
@@ -25,8 +25,9 @@ import Rectangle from "utilities/math/Rectangle";
25
25
  declare const ContextMenu: typeof ContextMenuExport;
26
26
  declare type ContextMenu = ContextMenuExport;
27
27
  declare global {
28
- interface Element {
28
+ interface Node {
29
29
  component?: Component;
30
+ originalRemove?: () => void;
30
31
  }
31
32
  }
32
33
  export default class Component<E extends HTMLElement = HTMLElement> extends EventEmitter.Host<IComponentEvents> {
@@ -50,7 +51,7 @@ export default class Component<E extends HTMLElement = HTMLElement> extends Even
50
51
  static findDescendants(inElement: Component | HTMLElement, selector: string, includeSelf?: boolean): HTMLElement[];
51
52
  static getSelectableLayer(element: Component | HTMLElement): number | false;
52
53
  static append(elementToMove: string | Component | HTMLElement, placeToAppendTo: string | Component | HTMLElement, strategy?: AppendStrategy): void;
53
- static remove(elementToRemove: string | Component | Element, force?: boolean): void;
54
+ static remove(elementToRemove: string | Component | Element | ChildNode | null, force?: boolean): void;
54
55
  private static appendRegenerateBoxes;
55
56
  private static regenerateAncestorBoxes;
56
57
  private static regenerateSiblingBoxes;
@@ -81,9 +82,9 @@ export default class Component<E extends HTMLElement = HTMLElement> extends Even
81
82
  private box?;
82
83
  private boxCacheLastScroll?;
83
84
  private boxCacheScrollable?;
84
- removed: boolean;
85
- observing: boolean;
86
- private eventListeners;
85
+ removed?: boolean | string;
86
+ observing?: boolean;
87
+ private eventListeners?;
87
88
  /**
88
89
  * The selectable layer of this element, or `false` if it is not selectable.
89
90
  */
@@ -11,6 +11,7 @@
11
11
  import type Doodad from "game/doodad/Doodad";
12
12
  import type NPC from "game/entity/npc/NPC";
13
13
  import type NPCManager from "game/entity/npc/NPCManager";
14
+ import { Quality } from "game/IObject";
14
15
  import type { ContainerReference, DisplayableItemType, IContainer, IDismantleComponent } from "game/item/IItem";
15
16
  import { ItemType } from "game/item/IItem";
16
17
  import type { IMoveItemOptions } from "game/item/IItemManager";
@@ -144,7 +145,7 @@ export default class InGameScreen extends BaseScreen {
144
145
  autoOpenDialog(dialogId: OldUiDialogId, element: JQuery): boolean;
145
146
  openDialogs(): void;
146
147
  clampDialogs(): void;
147
- getItemClass(item?: Item, itemType?: DisplayableItemType): string;
148
+ getItemClass(item?: Item, itemType?: DisplayableItemType, quality?: Quality): string;
148
149
  createItemString(itemType: ItemType, item?: Item, extraClass?: string): string;
149
150
  syncItemElements(itemIds: number | number[], forceSyncDecay?: boolean): void;
150
151
  private readonly SYMBOL_LAST_NEARLY_DESTROYED;
@@ -8,4 +8,4 @@
8
8
  * Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
9
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
- export declare function getCleanStackTrace(): string;
11
+ export declare function getCleanStackTrace(separator?: string): string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wayward/types",
3
3
  "description": "TypeScript declarations for Wayward, used for modding.",
4
- "version": "2.13.2-beta.dev.20230518.1",
4
+ "version": "2.13.2-beta.dev.20230519.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",