@wwawing/engine 3.12.10 → 3.12.15

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/lib/wwa_main.d.ts CHANGED
@@ -321,7 +321,6 @@ export declare class WWA {
321
321
  private _checkSaveDataCompatibility;
322
322
  isVisibleStatus(statusKind: StatusKind): boolean;
323
323
  private _changeStatusVisibility;
324
- private _updateVarDumpInformationArea;
325
324
  shouldApplyGameOver({ isCalledByMacro }: {
326
325
  isCalledByMacro: boolean;
327
326
  }): boolean;
@@ -0,0 +1,8 @@
1
+ import * as NamedUserVariable from "./named-user-variable/api";
2
+ import * as NumberedUserVariable from "./numbered-user-variable/api";
3
+ export { NamedUserVariable, NumberedUserVariable };
4
+ export declare function updateAllVariables({ dumpElement, namedUserVar, userVar }: {
5
+ dumpElement: HTMLElement;
6
+ namedUserVar?: Map<string, string | number | boolean>;
7
+ userVar?: (string | number | boolean)[];
8
+ }): void;
@@ -0,0 +1,9 @@
1
+ import * as UserVariableListSection from "./user-variable/user-variable-list-section";
2
+ export * as Api from "./api";
3
+ export * as UserVariableCard from "./user-variable/user-variable-card";
4
+ export * as UserVariableLabel from "./user-variable/user-variable-label";
5
+ export * as UserVariableList from "./user-variable/user-variable-list";
6
+ export * as NumberedUserVariable from "./numbered-user-variable";
7
+ export { UserVariableListSection };
8
+ export declare const CLASS_NAME = "wwa-vardump-wrapper";
9
+ export declare function setup(dumpElmQuery: string): HTMLElement | null;
@@ -0,0 +1 @@
1
+ export declare function updateValues(dumpElement: HTMLElement | undefined | null, userVar: Map<string, number | string | boolean>): void;
@@ -0,0 +1 @@
1
+ export * as Api from "./api";
@@ -0,0 +1,3 @@
1
+ export declare function updateValues(dumpElement: HTMLElement | undefined | null, userVar: (number | string | boolean)[]): void;
2
+ export declare function updateLabels(dumpElement: HTMLElement | undefined | null, userVarNameList: string[]): void;
3
+ export declare function updateInformation(dumpElement: HTMLElement | undefined | null, content: string, isError?: boolean): void;
@@ -0,0 +1 @@
1
+ export * as Api from "./api";
@@ -0,0 +1,11 @@
1
+ export type Kind = "numbered" | "named";
2
+ export interface Props {
3
+ index: number | string;
4
+ value?: number | string | boolean;
5
+ }
6
+ export declare const CLASS_NAME = "user-variable-card";
7
+ export declare function createElement({ index, value }: Props): HTMLElement;
8
+ export declare function setupLabel(element: HTMLElement, labelElement: HTMLElement): void;
9
+ export declare function setValue(element: HTMLElement, value?: number | string | boolean): void;
10
+ export declare function clearValue(element: HTMLElement): void;
11
+ export declare function getLabelElement(element: HTMLElement): HTMLElement | null;
@@ -0,0 +1,3 @@
1
+ export declare const CLASS_NAME = "user-variable-label";
2
+ export declare function createElement(): HTMLElement;
3
+ export declare function setText(element: HTMLElement, text: string): void;
@@ -0,0 +1,14 @@
1
+ import * as UserVariableCard from "../user-variable-card";
2
+ export declare const CLASS_NAME = "user-variable-list";
3
+ export interface Props {
4
+ kind: UserVariableCard.Kind;
5
+ }
6
+ export declare function createElement({ kind }: Props): HTMLElement;
7
+ export declare function createListItemElement({ index, value, }: {
8
+ index: number | string;
9
+ value?: number | string | boolean;
10
+ }): HTMLLIElement;
11
+ export declare function appendNewListItemElement(element: HTMLElement, { index, value }: {
12
+ index: number | string;
13
+ value: number | string | boolean;
14
+ }): void;
@@ -0,0 +1,13 @@
1
+ import * as Information from "./information";
2
+ export { Information };
3
+ export interface Props {
4
+ heading: {
5
+ text: string;
6
+ };
7
+ contentVisibilityToggleButton: {
8
+ onClick?: (ev: MouseEvent) => any;
9
+ };
10
+ information?: Record<never, never>;
11
+ }
12
+ export declare function createElement({ heading, contentVisibilityToggleButton, information, }: Props): HTMLElement;
13
+ export declare function setContentVisibilityToggleButtonText(element: HTMLElement, active: boolean): void;
@@ -0,0 +1,3 @@
1
+ export declare const CLASS_NAME = "information";
2
+ export declare function createElemnt(): HTMLParagraphElement;
3
+ export declare function updateText(element: HTMLElement, text: string, isError?: boolean): void;
@@ -0,0 +1,8 @@
1
+ import * as Header from "./header";
2
+ import type * as UserVariableCard from "../user-variable-card";
3
+ export declare const CLASS_NAME = "user-variable-list-section";
4
+ export { Header };
5
+ export interface Props {
6
+ kind: UserVariableCard.Kind;
7
+ }
8
+ export declare function createElement({ kind }: Props): HTMLElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wwawing/engine",
3
- "version": "3.12.10",
3
+ "version": "3.12.15",
4
4
  "description": "World Wide Adventure: an RPG Engine.",
5
5
  "main": "./lib/wwa.js",
6
6
  "files": [
@@ -48,14 +48,14 @@
48
48
  "@types/pug": "^2.0.6",
49
49
  "@types/terser-webpack-plugin": "^5.2.0",
50
50
  "@types/webpack": "^5.28.0",
51
- "@wwawing/assets": "^3.12.10",
52
- "@wwawing/common-interface": "^3.12.10",
53
- "@wwawing/debug-server": "^3.12.10",
54
- "@wwawing/event-emitter": "^3.12.10",
55
- "@wwawing/loader": "^3.12.10",
56
- "@wwawing/page-generator": "^3.12.10",
57
- "@wwawing/styles": "^3.12.10",
58
- "@wwawing/virtual-pad": "^3.12.10",
51
+ "@wwawing/assets": "^3.12.15",
52
+ "@wwawing/common-interface": "^3.12.15",
53
+ "@wwawing/debug-server": "^3.12.15",
54
+ "@wwawing/event-emitter": "^3.12.15",
55
+ "@wwawing/loader": "^3.12.15",
56
+ "@wwawing/page-generator": "^3.12.15",
57
+ "@wwawing/styles": "^3.12.15",
58
+ "@wwawing/virtual-pad": "^3.12.15",
59
59
  "crypto-js": "^4.1.1",
60
60
  "jest": "^29.5.0",
61
61
  "jest-cli": "^29.5.0",
@@ -75,8 +75,8 @@
75
75
  "access": "public"
76
76
  },
77
77
  "engines": {
78
- "node": ">=18",
79
- "npm": ">=8"
78
+ "node": ">=22",
79
+ "npm": ">=10"
80
80
  },
81
- "gitHead": "5f1b484f4996daa4e6c7b5e2603e471d5db6a0fc"
81
+ "gitHead": "d9c635914cce6ec250f49dc85b2653afbad4233e"
82
82
  }