@vnejs/docs 0.2.82 → 0.2.84

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 (41) hide show
  1. package/README.md +1 -1
  2. package/architecture/{bridge.md → bridges.md} +5 -5
  3. package/architecture/build.md +3 -3
  4. package/architecture/bundles.md +2 -2
  5. package/architecture/configs.md +6 -6
  6. package/architecture/contracts.md +5 -5
  7. package/architecture/dependencies.md +5 -5
  8. package/architecture/model.md +3 -3
  9. package/architecture/modules.md +1 -1
  10. package/changelog/0.2.84.md +3 -0
  11. package/changelog/README.md +1 -0
  12. package/manifest.json +1 -1
  13. package/package.json +1 -1
  14. package/plugins/controls/cursor.md +1 -1
  15. package/plugins/controls/gamepad.md +2 -2
  16. package/plugins/core/scenario.md +7 -7
  17. package/plugins/core/system.md +18 -18
  18. package/plugins/scenario/choose.md +8 -8
  19. package/plugins/scenario/fastforward.md +1 -1
  20. package/plugins/scenario/history.md +4 -4
  21. package/plugins/scenario/point_and_click.md +4 -4
  22. package/plugins/scenario/qte.md +3 -3
  23. package/plugins/settings/volume.md +2 -2
  24. package/plugins/text/locs.md +12 -12
  25. package/plugins/text/smooth.md +8 -8
  26. package/plugins/text/text.md +6 -6
  27. package/plugins/views/cursor.md +3 -3
  28. package/plugins/views/settings.md +2 -2
  29. package/plugins/views.scenario/interface.controls.md +3 -3
  30. package/plugins/views.scenario/interface.fastforward.md +3 -3
  31. package/plugins/views.scenario/interface.md +5 -5
  32. package/plugins/views.scenario/point_and_click.md +2 -2
  33. package/plugins/views.scenario/qte.md +2 -2
  34. package/plugins/views.screens/gallery.full.md +3 -3
  35. package/plugins/views.screens/gamemenu.md +3 -3
  36. package/plugins/views.screens/history.md +3 -3
  37. package/plugins/views.screens/mainmenu.md +3 -3
  38. package/plugins/views.screens/mainmenu.socials.md +3 -3
  39. package/plugins/views.screens/save.md +6 -6
  40. package/plugins/views.screens/settings.defaults.md +4 -4
  41. package/plugins/views.screens/settings.md +3 -3
package/README.md CHANGED
@@ -40,7 +40,7 @@ The package has two scenario entries. Compare them and pick one. Both link to `p
40
40
  | [`contracts/`](./architecture/contracts.md) | Public API of plugins and bridge |
41
41
  | [`shared/`](./architecture/shared.md) | Plugin setup presets |
42
42
  | [`plugins/`](./architecture/plugins.md) | Behavior on the bus |
43
- | [`bridge/`](./architecture/bridge.md) | Link between plugins |
43
+ | [`bridges/`](./architecture/bridges.md) | Link between plugins |
44
44
  | [`bundles/`](./architecture/bundles.md) | Plugin set for a game |
45
45
  | [`helpers/`](./architecture/helpers.md) | Utils with no engine tie |
46
46
  | [`uis/`](./architecture/uis.md) | React components for view plugins |
@@ -1,24 +1,24 @@
1
- # bridge/
1
+ # bridges/
2
2
 
3
3
  **Optional integration** between independent plugins. A `bundles/` package turns it on. It is not hard-wired inside `plugins/`.
4
4
 
5
5
  - One module. It extends `ModuleCore`. The class lives in `src/modules/`. `src/index.ts` only imports and calls `regPlugin`.
6
6
  - In **`subscribe`** it listens to A and emits B.
7
- - A contract in `contracts/bridge/` mirrors this package. `PLUGIN_NAME` is the namespace `BRIDGE_PLUGIN_{PLUGIN_NAME_1}_PLUGIN_{PLUGIN_NAME_2}`.
7
+ - A contract in `contracts/bridges/` mirrors this package. `PLUGIN_NAME` is the namespace `BRIDGE_PLUGIN_{PLUGIN_NAME_1}_PLUGIN_{PLUGIN_NAME_2}`.
8
8
  - **`regPlugin`** takes the shape from that contract. The shape is empty when the bridge adds no constants, events, params, or settings. When it owns some, it passes those fields. The choose↔qte bridge passes `constants` and extends `ChooseOption` with `qte`.
9
9
  - It depends on its contract and on the contracts of the plugins it links. It does not import implementations from `plugins/`.
10
10
 
11
- Naming: `@vnejs/bridge.plugins.{package-1}.plugins.{package-2}` → path `bridge/plugins.{package-1}/plugins.{package-2}/`. The contract is `@vnejs/contracts.bridge.plugins.{package-1}.plugins.{package-2}` at `contracts/bridge/plugins.{package-1}/plugins.{package-2}/`. The two segments are the real plugin package names, without the `@vnejs/` scope.
11
+ Naming: `@vnejs/bridges.plugins.{package-1}.plugins.{package-2}` → path `bridges/plugins.{package-1}/plugins.{package-2}/`. The contract is `@vnejs/contracts.bridges.plugins.{package-1}.plugins.{package-2}` at `contracts/bridges/plugins.{package-1}/plugins.{package-2}/`. The two segments are the real plugin package names, without the `@vnejs/` scope.
12
12
 
13
13
  ```mermaid
14
14
  flowchart LR
15
15
  PA[plugins/ A] -->|"emit EVENT_A"| OBS[Observer]
16
- OBS --> BR[bridge/]
16
+ OBS --> BR[bridges/]
17
17
  BR -->|"emit EVENT_B"| OBS
18
18
  OBS --> PB[plugins/ B]
19
19
 
20
20
  PA -.->|"does not import"| PB
21
- BR --> CT[contracts/bridge]
21
+ BR --> CT[contracts/bridges]
22
22
  BR --> CTA[contracts/ A]
23
23
  BR --> CTB[contracts/ B]
24
24
  ```
@@ -9,7 +9,7 @@ flowchart TD
9
9
  CT[contracts/]
10
10
  SH[shared/]
11
11
  PL[plugins/]
12
- CP[bridge/]
12
+ CP[bridges/]
13
13
  BD[bundles/]
14
14
  CL[cli/]
15
15
  end
@@ -34,7 +34,7 @@ flowchart TD
34
34
  ART --> PLAY[Browser / Electron]
35
35
  ```
36
36
 
37
- 1. `bundles/` registers `plugins/` and `bridge/` in `VNE` and lists the matching `@vnejs/shared.*` in `dependencies`. The game script imports factories from `shared/`.
37
+ 1. `bundles/` registers `plugins/` and `bridges/` in `VNE` and lists the matching `@vnejs/shared.*` in `dependencies`. The game script imports factories from `shared/`.
38
38
  2. `cli/` builds the scenario to JSON and the client to `dist/`.
39
39
  3. `new VneCore().init()` — modules, media, and the lifecycle up to `start`.
40
- 4. The game runs on bus events. Cross-plugin links go through `bridge/` from `bundles/`.
40
+ 4. The game runs on bus events. Cross-plugin links go through `bridges/` from `bundles/`.
@@ -1,6 +1,6 @@
1
1
  # bundles/
2
2
 
3
- **Composition** with no business logic. A chain of side-effect imports from `plugins/` and `bridge/`.
3
+ **Composition** with no business logic. A chain of side-effect imports from `plugins/` and `bridges/`.
4
4
 
5
5
  - Sets the **ability set** for `games/`.
6
6
  - Exports **`VneCore`**.
@@ -17,4 +17,4 @@ flowchart BT
17
17
  CORE --> CANVAS --> SKEL --> BASE --> GAME
18
18
  ```
19
19
 
20
- Entry point: re-export `VneCore` → import `plugins/` → import `bridge/`.
20
+ Entry point: re-export `VneCore` → import `plugins/` → import `bridges/`.
@@ -2,15 +2,15 @@
2
2
 
3
3
  **Shared build configs.** Reusable TypeScript settings. Not runtime.
4
4
 
5
- | Package | Role |
6
- | ------------------------------ | ------------------------------------------------------------------------------------------------ |
7
- | **`@vnejs/configs.ts-common`** | tsconfig for `plugins/`, `bridge/`, `contracts/`, `packages/`, `modules_extensions/`, `helpers/`, `shared/` |
8
- | **`@vnejs/configs.ts-uis`** | tsconfig for `uis/react/` and view code in `games/` (JSX, React types) |
9
- | **`@vnejs/configs.vitest`** | Shared Vitest config (`create-config.js`, `setup.js`) for packages with tests |
5
+ | Package | Role |
6
+ | ------------------------------ | ------------------------------------------------------------------------------------------------------------ |
7
+ | **`@vnejs/configs.ts-common`** | tsconfig for `plugins/`, `bridges/`, `contracts/`, `packages/`, `modules_extensions/`, `helpers/`, `shared/` |
8
+ | **`@vnejs/configs.ts-uis`** | tsconfig for `uis/react/` and view code in `games/` (JSX, React types) |
9
+ | **`@vnejs/configs.vitest`** | Shared Vitest config (`create-config.js`, `setup.js`) for packages with tests |
10
10
 
11
11
  ```mermaid
12
12
  flowchart LR
13
- TC[configs.ts-common] --> PL[plugins/ / bridge/ / contracts/ / packages/ / shared/]
13
+ TC[configs.ts-common] --> PL[plugins/ / bridges/ / contracts/ / packages/ / shared/]
14
14
  TU[configs.ts-uis] --> UI[uis/react/]
15
15
  TU --> GM[games/]
16
16
  TV[configs.vitest] --> TEST[packages with vitest]
@@ -18,15 +18,15 @@ A contract extends types through `declare module`:
18
18
 
19
19
  ### Principles
20
20
 
21
- - One contract matches **one plugin** in `plugins/` or **one bridge** in `bridge/` (1:1).
22
- - A contract **does not import** an implementation from `plugins/` or `bridge/`.
21
+ - One contract matches **one plugin** in `plugins/` or **one bridge** in `bridges/` (1:1).
22
+ - A contract **does not import** an implementation from `plugins/` or `bridges/`.
23
23
  - Plugin contracts mirror the `plugins/` taxonomy (`contracts/text/text/` for `plugins/text/text/`).
24
- - Bridge contracts live under `contracts/bridge/` and mirror the `bridge/` path.
24
+ - Bridge contracts live under `contracts/bridges/` and mirror the `bridges/` path.
25
25
 
26
26
  ```mermaid
27
27
  flowchart LR
28
28
  CT[contracts/] -->|"declare module"| TS[VNE / Module types]
29
- CT -->|"CONSTANTS, EVENTS, PARAMS"| REG[regPlugin when plugins/ or bridge/ load]
29
+ CT -->|"CONSTANTS, EVENTS, PARAMS"| REG[regPlugin when plugins/ or bridges/ load]
30
30
  PL[plugins/] -->|"import"| CT
31
- BR[bridge/] -->|"import"| CT
31
+ BR[bridges/] -->|"import"| CT
32
32
  ```
@@ -6,7 +6,7 @@ flowchart TD
6
6
  G --> CLI[cli/]
7
7
  G -.->|HTTP| BE[backends/]
8
8
  B --> P[plugins/]
9
- B --> C[bridge/]
9
+ B --> C[bridges/]
10
10
  B --> SH[shared/]
11
11
  G --> SH
12
12
  SH --> CT[contracts/]
@@ -29,12 +29,12 @@ flowchart TD
29
29
  | ---------- | ----------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
30
30
  | `games/` | `bundles/`, `cli/`, `shared/` | Build goes through `cli/`. The game script imports `shared/` factories. The game `package.json` does not list them |
31
31
  | `games/` | `backends/` | HTTP to the token and label workers. No package import |
32
- | `bundles/` | `plugins/`, `bridge/` | The plugin set |
32
+ | `bundles/` | `plugins/`, `bridges/` | The plugin set |
33
33
  | `bundles/` | `shared/` | The bundle lists `@vnejs/shared.*` in `dependencies` when it includes that plugin. The bundle does not re-export factories |
34
34
  | `shared/` | `contracts/` | Setup factories read events, not implementations |
35
35
  | `plugins/` | `contracts/` | The implementation follows the declared API |
36
36
  | `plugins/` | `modules_extensions/` → `packages/` | Modules extend bases. Bases rest on registry and observer |
37
- | `bridge/` | `contracts/` | Its contract in `contracts/bridge/`, plus the plugin contracts it links. No import of implementations |
37
+ | `bridges/` | `contracts/` | Its contract in `contracts/bridges/`, plus the plugin contracts it links. No import of implementations |
38
38
  | `plugins/` | `helpers/`, `uis/` | Shared utils and UI |
39
39
  | `plugins/` | — another `plugins/` | **No direct dependency** |
40
40
  | `configs/` | workspace packages | Shared tsconfig. Not runtime |
@@ -49,7 +49,7 @@ flowchart TD
49
49
  | **`contracts/`** | Plugin and bridge API |
50
50
  | **`shared/`** | Plugin setup presets |
51
51
  | **`plugins/`** | Behavior on the bus |
52
- | **`bridge/`** | Opt-in link between two plugins |
52
+ | **`bridges/`** | Opt-in link between two plugins |
53
53
  | **`bundles/`** | A set of abilities for a game |
54
54
  | **`helpers/`** | Utils with no engine tie |
55
55
  | **`uis/`** | React UI for views |
@@ -58,4 +58,4 @@ flowchart TD
58
58
  | **`backends/`** | Workers: Steam token and label JSON |
59
59
  | **`vs_code_extensions/`** | `.vne` highlight |
60
60
 
61
- **Main rule:** `plugins/` do not know each other. Integration goes through events in `contracts/` and an explicit `bridge/` package in `bundles/`.
61
+ **Main rule:** `plugins/` do not know each other. Integration goes through events in `contracts/` and an explicit `bridges/` package in `bundles/`.
@@ -37,9 +37,9 @@ flowchart LR
37
37
  ```
38
38
  plugins/core/system/ → @vnejs/plugins.core.system
39
39
  contracts/text/text/ → @vnejs/contracts.text
40
- contracts/bridge/plugins.text/plugins.scenario.autoread/ → @vnejs/contracts.bridge.plugins.text.plugins.scenario.autoread
40
+ contracts/bridges/plugins.text/plugins.scenario.autoread/ → @vnejs/contracts.bridges.plugins.text.plugins.scenario.autoread
41
41
  shared/views.screens/gamemenu/ → @vnejs/shared.views.screens.gamemenu
42
- bridge/plugins.text/plugins.scenario.autoread/ → @vnejs/bridge.plugins.text.plugins.scenario.autoread
42
+ bridges/plugins.text/plugins.scenario.autoread/ → @vnejs/bridges.plugins.text.plugins.scenario.autoread
43
43
  ```
44
44
 
45
- A slash in the path becomes a dot in the name. `bridge/` repeats `plugins.` so the two plugin packages stay visible.
45
+ A slash in the path becomes a dot in the name. `bridges/` repeats `plugins.` so the two plugin packages stay visible.
@@ -78,7 +78,7 @@ flowchart TD
78
78
 
79
79
  - A plugin takes the base it needs (`ModuleCore`, `ModuleView`, `ModuleLayerController`, …). It does not extend `Module` directly.
80
80
  - Bases pull **contracts** from `contracts/`. That is how `EVENTS` / `CONST` are typed.
81
- - **`ModuleCore`** is for `plugins/core/` and `bridge/`. **`ModuleView` / `ModuleLayer*`** are for view and canvas, plus **`@vnejs/uis.react`**.
81
+ - **`ModuleCore`** is for `plugins/core/` and `bridges/`. **`ModuleView` / `ModuleLayer*`** are for view and canvas, plus **`@vnejs/uis.react`**.
82
82
 
83
83
  | | `packages/` | `modules_extensions/` |
84
84
  | ----------------- | -------------------------- | ---------------------------- |
@@ -0,0 +1,3 @@
1
+ # 0.2.84
2
+
3
+ - `bridges/` — the layer moved from `bridge/`. Use `@vnejs/bridges.*` and `@vnejs/contracts.bridges.*` instead of `@vnejs/bridge.*` and `@vnejs/contracts.bridge.*`. `PLUGIN_NAME` stays `BRIDGE_PLUGIN_*`.
@@ -2,6 +2,7 @@
2
2
 
3
3
  Engine and public API changes. One file per `@vnejs/docs` release. Newest first.
4
4
 
5
+ - [0.2.84](./0.2.84.md)
5
6
  - [0.2.82](./0.2.82.md)
6
7
  - [0.2.81](./0.2.81.md)
7
8
  - [0.2.80](./0.2.80.md)
package/manifest.json CHANGED
@@ -43,7 +43,7 @@
43
43
  "architecture/contracts.md",
44
44
  "architecture/shared.md",
45
45
  "architecture/plugins.md",
46
- "architecture/bridge.md",
46
+ "architecture/bridges.md",
47
47
  "architecture/bundles.md",
48
48
  "architecture/helpers.md",
49
49
  "architecture/uis.md",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/docs",
3
- "version": "0.2.82",
3
+ "version": "0.2.84",
4
4
  "description": "VNEJS documentation for engine consumers and coding agents",
5
5
  "files": [
6
6
  "*.md",
@@ -71,4 +71,4 @@ None.
71
71
  ### Other
72
72
 
73
73
  - [controls.md](./controls.md) — `CONTROLS`: EVENTS.DEVICE_SET (mousemove → keyboard)
74
- - [gamepad.md](./gamepad.md) — sticks via `bridge/plugins.controls.gamepad/plugins.controls.cursor`: left → `SHIFT`, right → `SCROLL`; device type (xbox|ps) — `controls.gamepad.device`
74
+ - [gamepad.md](./gamepad.md) — sticks via `bridges/plugins.controls.gamepad/plugins.controls.cursor`: left → `SHIFT`, right → `SCROLL`; device type (xbox|ps) — `controls.gamepad.device`
@@ -42,7 +42,7 @@ After the poll yields logical name `button_N`, `controls.gamepad.buttons` emits
42
42
  | `button_4` | LB / L1 | `TAB_PREV` |
43
43
  | `button_5` | RB / R1 | `TAB_NEXT` |
44
44
  | `button_6` | LT / L2 | `FASTFORWARD_START` / `FASTFORWARD_FINISH` |
45
- | `button_7` | RT / R2 | (cursor click via bridge) |
45
+ | `button_7` | RT / R2 | (cursor click via bridge) |
46
46
  | `button_8` | View / Select | `GAMEMENU` |
47
47
  | `button_9` | Menu / Start | `MENU` |
48
48
  | `button_12`…`15` | D-pad | `ARROW_*` |
@@ -101,4 +101,4 @@ All mappings — object `CUSTOM_BUTTON_MAPPING` in `plugins/controls/gamepad/src
101
101
  ### Other
102
102
 
103
103
  - [controls.md](./controls.md) — `CONTROLS`: EVENTS.EMIT, EVENTS.DEVICE_SET (via `controls.gamepad.device` → xbox|playstation), CONST.BUTTONS, CONST.DEVICES
104
- - [cursor.md](./cursor.md) — via `bridge/plugins.controls.gamepad/plugins.controls.cursor`: left stick (axes 0–1) → `CURSOR.SHIFT`, right stick (axes 2–3) → `CURSOR.SCROLL`; RT → `CURSOR.CLICK`
104
+ - [cursor.md](./cursor.md) — via `bridges/plugins.controls.gamepad/plugins.controls.cursor`: left stick (axes 0–1) → `CURSOR.SHIFT`, right stick (axes 2–3) → `CURSOR.SCROLL`; RT → `CURSOR.CLICK`
@@ -46,14 +46,14 @@ None.
46
46
 
47
47
  ## Modules
48
48
 
49
- | Module | Role |
50
- | -------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
51
- | `scenario` | Main `NEXT` loop, line exec, sync state. `NEXT` handler reads `module` from `EmitParams` (`Module.emit`). |
49
+ | Module | Role |
50
+ | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
51
+ | `scenario` | Main `NEXT` loop, line exec, sync state. `NEXT` handler reads `module` from `EmitParams` (`Module.emit`). |
52
52
  | `scenario.autostart` | Default `shared.shouldAutostartScenario` in `postinject`; in `start` — init label + `emit SCENARIO.NEXT` when flag is on. After `start`, `isDestroyAfterStart` destroys the module and deletes its `state` slot. `shared.shouldAutostartScenario` stays. |
53
- | `scenario.exec` | Dispatch `$module` / `%block`, handler registry, `EXEC_DELAY`. |
54
- | `scenario.label` | `LABEL_GET`, label preload; `MEMORY.REG` in `setup`; init label on `STATE.CLEAR`. One failed line does not break the whole label. |
55
- | `scenario.line` | `MEMORY.REG` in `setup`; `LINE_LOAD` / `LINE_GET`, preload handler registry. `LINE_GET` executor always resolves. |
56
- | `scenario.lines` | `MEMORY.REG` in `setup`; fetch `label/<path>.json` from `HOST` (e.g. `label/prologue/1.json`). |
53
+ | `scenario.exec` | Dispatch `$module` / `%block`, handler registry, `EXEC_DELAY`. |
54
+ | `scenario.label` | `LABEL_GET`, label preload; `MEMORY.REG` in `setup`; init label on `STATE.CLEAR`. One failed line does not break the whole label. |
55
+ | `scenario.line` | `MEMORY.REG` in `setup`; `LINE_LOAD` / `LINE_GET`, preload handler registry. `LINE_GET` executor always resolves. |
56
+ | `scenario.lines` | `MEMORY.REG` in `setup`; fetch `label/<path>.json` from `HOST` (e.g. `label/prologue/1.json`). |
57
57
 
58
58
  ## Related plugins
59
59
 
@@ -8,27 +8,27 @@ Application lifecycle, DOM anchors, files, resize, engine version.
8
8
 
9
9
  Handler payloads and results are typed through module augmentation of the contract (`VneEventPayloadMap` / `VneEventResultMap`). The types live in `@vnejs/contracts.core.system`.
10
10
 
11
- | Key | String | Meaning |
12
- | ------------ | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
13
- | `RESIZE` | `vne:system:resize` | Application window size changed. |
14
- | `RELOAD` | `vne:system:reload` | Reload the page. Handlers at `CONST.SYSTEM.PRIORITIES.BEFORE` finish first. The module reloads at priority `0`. |
15
- | `FULLSCREEN` | `vne:system:fullscreen` | Toggle document fullscreen. |
16
- | `CLOSE` | `vne:system:close` | Close the application window. Handlers at `CONST.SYSTEM.PRIORITIES.BEFORE` finish first. The module closes the window at priority `0`. |
17
- | `FILE_LOAD` | `vne:file:load` | Download an object as a JSON file. Payload: `{ obj?, name? }`. |
18
- | `FILE_READ` | `vne:file:read` | File picker → parse JSON → return contents. |
11
+ | Key | String | Meaning |
12
+ | ------------ | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
13
+ | `RESIZE` | `vne:system:resize` | Application window size changed. |
14
+ | `RELOAD` | `vne:system:reload` | Reload the page. Handlers at `CONST.SYSTEM.PRIORITIES.BEFORE` finish first. The module reloads at priority `0`. |
15
+ | `FULLSCREEN` | `vne:system:fullscreen` | Toggle document fullscreen. |
16
+ | `CLOSE` | `vne:system:close` | Close the application window. Handlers at `CONST.SYSTEM.PRIORITIES.BEFORE` finish first. The module closes the window at priority `0`. |
17
+ | `FILE_LOAD` | `vne:file:load` | Download an object as a JSON file. Payload: `{ obj?, name? }`. |
18
+ | `FILE_READ` | `vne:file:read` | File picker → parse JSON → return contents. |
19
19
 
20
20
  ## Constants
21
21
 
22
- | Key | Meaning |
23
- | --------------------- | ---------------------------------------------------------------------------------------------------------------------- |
24
- | `HOST` | Origin or `http://localhost:{port}` from query |
25
- | `VERSION_MAJOR` | Major version of the state format (number) |
26
- | `VERSION_MINOR` | Minor version (number) |
27
- | `DOM_IDS.APP` | `"app"` — root container |
28
- | `DOM_IDS.MEDIA` | `"media"` — hidden media container |
29
- | `DOM_IDS.COMPONENTS` | `"components"` — UI container |
30
- | `LOGS_ACTIONS.RESIZE` | `"resize"` — log label on `RESIZE` |
31
- | `PRIORITIES.BEFORE` | `-100`. Handler priority on `CLOSE` and `RELOAD` that finishes before the window closes or the page reloads. |
22
+ | Key | Meaning |
23
+ | --------------------- | ------------------------------------------------------------------------------------------------------------ |
24
+ | `HOST` | Origin or `http://localhost:{port}` from query |
25
+ | `VERSION_MAJOR` | Major version of the state format (number) |
26
+ | `VERSION_MINOR` | Minor version (number) |
27
+ | `DOM_IDS.APP` | `"app"` — root container |
28
+ | `DOM_IDS.MEDIA` | `"media"` — hidden media container |
29
+ | `DOM_IDS.COMPONENTS` | `"components"` — UI container |
30
+ | `LOGS_ACTIONS.RESIZE` | `"resize"` — log label on `RESIZE` |
31
+ | `PRIORITIES.BEFORE` | `-100`. Handler priority on `CLOSE` and `RELOAD` that finishes before the window closes or the page reloads. |
32
32
 
33
33
  ## Parameters
34
34
 
@@ -86,27 +86,27 @@ None.
86
86
 
87
87
  ## Bridge
88
88
 
89
- ### `bridge/plugins.scenario.choose/plugins.scenario.fastforward/`
89
+ ### `bridges/plugins.scenario.choose/plugins.scenario.fastforward/`
90
90
 
91
- Package: `@vnejs/bridge.plugins.scenario.choose.plugins.scenario.fastforward`
91
+ Package: `@vnejs/bridges.plugins.scenario.choose.plugins.scenario.fastforward`
92
92
 
93
93
  In `subscribe` listens to `OPTION` at `OPTION_PRIORITY.BEFORE`: on option pick emits `FASTFORWARD.CHECK` (before `HIDE` / `OPTION_REPLACE`).
94
94
 
95
- ### `bridge/plugins.scenario.choose/plugins.scenario.history/`
95
+ ### `bridges/plugins.scenario.choose/plugins.scenario.history/`
96
96
 
97
- Package: `@vnejs/bridge.plugins.scenario.choose.plugins.scenario.history`
97
+ Package: `@vnejs/bridges.plugins.scenario.choose.plugins.scenario.history`
98
98
 
99
99
  In `subscribe` listens to `OPTION` at `OPTION_PRIORITY.BEFORE`: on option pick emits `HISTORY.ADD` with `{ locKey: "choice" }` (no speaker/text). Line text comes from history screen localization (`history.json`). Wired in `bundles/vn.skeleton`.
100
100
 
101
- ### `bridge/plugins.scenario.choose/plugins.scenario.qte/`
101
+ ### `bridges/plugins.scenario.choose/plugins.scenario.qte/`
102
102
 
103
- Package: `@vnejs/bridge.plugins.scenario.choose.plugins.scenario.qte`
103
+ Package: `@vnejs/bridges.plugins.scenario.choose.plugins.scenario.qte`
104
104
 
105
105
  On `OPTION_REPLACE` runs QTE when the option has `qte: <id>` (see [qte.md](./qte.md#bridge)). Field `qte` is added to `ChooseOption` via this package’s module augmentation; `qte-fallback` — keyword on the option line (`% choose.option "…" | qte-fallback`), lands in `ChooseOption.keywords`.
106
106
 
107
- ### `bridge/plugins.scenario.choose/plugins.text/`
107
+ ### `bridges/plugins.scenario.choose/plugins.text/`
108
108
 
109
- Package: `@vnejs/bridge.plugins.scenario.choose.plugins.text`
109
+ Package: `@vnejs/bridges.plugins.scenario.choose.plugins.text`
110
110
 
111
111
  In `init` registers an `OPTION_TEXT` handler that returns `TEXT.REPLACE`. `text.locs` and `text.inject` stay on that chain. Without this package the option keeps the literal from the scenario line. Wired in `bundles/vn.skeleton`.
112
112
 
@@ -71,4 +71,4 @@ Handler payloads and results are typed through module augmentation of the contra
71
71
 
72
72
  ### Other
73
73
 
74
- - [choose.md](./choose.md) — `CHOOSE`: linked via `bridge/plugins.scenario.choose/plugins.scenario.fastforward` (`OPTION` at `OPTION_PRIORITY.BEFORE` → `FASTFORWARD.CHECK`)
74
+ - [choose.md](./choose.md) — `CHOOSE`: linked via `bridges/plugins.scenario.choose/plugins.scenario.fastforward` (`OPTION` at `OPTION_PRIORITY.BEFORE` → `FASTFORWARD.CHECK`)
@@ -49,15 +49,15 @@ Log state belongs to module `history` (`globalState.history`). Snapshots in `MEM
49
49
 
50
50
  ## Bridge
51
51
 
52
- ### `bridge/plugins.text/plugins.scenario.history/`
52
+ ### `bridges/plugins.text/plugins.scenario.history/`
53
53
 
54
- Package: `@vnejs/bridge.plugins.text.plugins.scenario.history`
54
+ Package: `@vnejs/bridges.plugins.text.plugins.scenario.history`
55
55
 
56
56
  On `TEXT.EMIT_NEXT` emits `HISTORY.ADD` with `{ label, text, args, speaker, speakerInfo }`. `text` — scenario line as-is, including `{…}` markers: that is the localization key. Wired in `bundles/vn.skeleton`.
57
57
 
58
- ### `bridge/plugins.scenario.choose/plugins.scenario.history/`
58
+ ### `bridges/plugins.scenario.choose/plugins.scenario.history/`
59
59
 
60
- Package: `@vnejs/bridge.plugins.scenario.choose.plugins.scenario.history`
60
+ Package: `@vnejs/bridges.plugins.scenario.choose.plugins.scenario.history`
61
61
 
62
62
  On `CHOOSE.OPTION` at `CONST.CHOOSE.OPTION_PRIORITY.BEFORE` emits `HISTORY.ADD` with `{ locKey: "choice" }`. Line translation — key `choice` in the screen `history.json`. Wired in `bundles/vn.skeleton`.
63
63
 
@@ -72,15 +72,15 @@ None.
72
72
 
73
73
  ## Bridge
74
74
 
75
- ### `bridge/plugins.scenario.point_and_click/plugins.vars.flags/`
75
+ ### `bridges/plugins.scenario.point_and_click/plugins.vars.flags/`
76
76
 
77
- Package: `@vnejs/bridge.plugins.scenario.point_and_click.plugins.vars.flags`
77
+ Package: `@vnejs/bridges.plugins.scenario.point_and_click.plugins.vars.flags`
78
78
 
79
79
  In `init` registers handler on `EXEC_REG` for flags module → `VARS_FLAGS.EXEC_CHECK`.
80
80
 
81
- ### `bridge/plugins.scenario.point_and_click/plugins.vars.counters/`
81
+ ### `bridges/plugins.scenario.point_and_click/plugins.vars.counters/`
82
82
 
83
- Package: `@vnejs/bridge.plugins.scenario.point_and_click.plugins.vars.counters`
83
+ Package: `@vnejs/bridges.plugins.scenario.point_and_click.plugins.vars.counters`
84
84
 
85
85
  In `init` registers handler on `EXEC_REG` for counters module → `VARS_COUNTERS.EXEC_CHECK`.
86
86
 
@@ -72,11 +72,11 @@ On `EMIT` with `skipScenario: true` sets `shared.qteScenarioSkip`; on `RESULT` m
72
72
 
73
73
  ## Bridge
74
74
 
75
- ### `bridge/plugins.scenario.choose/plugins.scenario.qte/`
75
+ ### `bridges/plugins.scenario.choose/plugins.scenario.qte/`
76
76
 
77
- Package: `@vnejs/bridge.plugins.scenario.choose.plugins.scenario.qte`
77
+ Package: `@vnejs/bridges.plugins.scenario.choose.plugins.scenario.qte`
78
78
 
79
- Contract: `@vnejs/contracts.bridge.plugins.scenario.choose.plugins.scenario.qte` · namespace: `BRIDGE_PLUGIN_CHOOSE_PLUGIN_QTE`
79
+ Contract: `@vnejs/contracts.bridges.plugins.scenario.choose.plugins.scenario.qte` · namespace: `BRIDGE_PLUGIN_CHOOSE_PLUGIN_QTE`
80
80
 
81
81
  On `CHOOSE.OPTION_REPLACE`: when the option has `qte: <id>`, runs QTE with `skipScenario: true`. Success — same option index; fail — index of the option whose `keywords` include `LINE_KEYWORDS.QTE_FALLBACK` (`qte-fallback`; if none — original index + `EVENTS.LOGS.EMIT`).
82
82
 
@@ -26,8 +26,8 @@ None.
26
26
 
27
27
  ## Modules
28
28
 
29
- | Module | Role |
30
- | -------- | ---------------- |
29
+ | Module | Role |
30
+ | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
31
31
  | `volume` | In `setup`, three `SETTINGS.INIT` calls (`COMMON`, `AUDIO`, `VIDEO`). After `start`, `isDestroyAfterStart` destroys the module and deletes its `state` slot. The settings stay in `shared.settings`. |
32
32
 
33
33
  ## Related plugins
@@ -25,11 +25,11 @@ None.
25
25
 
26
26
  ## Parameters
27
27
 
28
- | Key | Type | Meaning |
29
- | -------------- | ---------- | --------------------------------------------------------------------------------------- |
30
- | `DEFAULT_LANG` | `string` | Default: `"ru"`. |
28
+ | Key | Type | Meaning |
29
+ | -------------- | ---------- | ------------------------------------------------------------------------------------------------------- |
30
+ | `DEFAULT_LANG` | `string` | Default: `"ru"`. |
31
31
  | `LANGS` | `string[]` | Query languages that are allowed. Default: empty. A game fills the list, for example `"ru"` and `"en"`. |
32
- | `GROUPS` | `object` | `VIEWS: "views"`, `LABELS: "labels"` — folders after `{lang}/`. |
32
+ | `GROUPS` | `object` | `VIEWS: "views"`, `LABELS: "labels"` — folders after `{lang}/`. |
33
33
 
34
34
  `LOCS.GET` / `LOCS.LOAD` require `group`. `TEXT.REPLACE` without `group` in the locs handler uses `GROUPS.LABELS`. View inject (`LOC_LABEL`) uses `GROUPS.VIEWS`.
35
35
 
@@ -41,15 +41,15 @@ None.
41
41
 
42
42
  ## Modules
43
43
 
44
- | Module | Role |
45
- | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
46
- | `locs` | `SET` applies language and emits `CHANGED`. `SETTINGS.CHANGED` after `isReady` emits `SET`. Dictionary read — `MEMORY_GET`. |
44
+ | Module | Role |
45
+ | ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
46
+ | `locs` | `SET` applies language and emits `CHANGED`. `SETTINGS.CHANGED` after `isReady` emits `SET`. Dictionary read — `MEMORY_GET`. |
47
47
  | `locs.init` | In `postinject` — `shared.textLang` from query `forceLang`, else query `defaultLang`, else `PARAMS.LOCS.DEFAULT_LANG`. A query value must be in `PARAMS.LOCS.LANGS`. In `setup`, `forceLang` emits `SETTINGS.SET`; otherwise `SETTINGS.INIT` uses `defaultLang` or `DEFAULT_LANG`. `init` emits `LOCS.SET` with `shared.settings[SETTINGS.LOCS.LANG]`. After `start`, `isDestroyAfterStart` destroys the module and deletes its `state` slot. `shared.textLang` stays. |
48
- | `locs.changed` | `CHANGED`: if label dictionary is missing — `LOAD`, then `TEXT.RECALC` and `COMPONENTS.EXTERNAL_UPDATE`. |
49
- | `locs.memory` | `MEMORY.REG` in `setup` with `module: this.name` (`locs.memory`). `MEMORY_GET` / `MEMORY_SET`. |
50
- | `locs.load` | `LOCS.LOAD`: fetch dictionary, read and write only via `MEMORY_GET` / `MEMORY_SET`. |
51
- | `locs.components.inject` | `COMPONENTS.INJECT_REG` in `init`. `LOC_LABEL` → `LOCS.GET` with `GROUPS.VIEWS`. |
52
- | `locs.text.replace` | `TEXT.REPLACE_REG` in `init` with priority `-999999`. Without `group` — `GROUPS.LABELS`. |
48
+ | `locs.changed` | `CHANGED`: if label dictionary is missing — `LOAD`, then `TEXT.RECALC` and `COMPONENTS.EXTERNAL_UPDATE`. |
49
+ | `locs.memory` | `MEMORY.REG` in `setup` with `module: this.name` (`locs.memory`). `MEMORY_GET` / `MEMORY_SET`. |
50
+ | `locs.load` | `LOCS.LOAD`: fetch dictionary, read and write only via `MEMORY_GET` / `MEMORY_SET`. |
51
+ | `locs.components.inject` | `COMPONENTS.INJECT_REG` in `init`. `LOC_LABEL` → `LOCS.GET` with `GROUPS.VIEWS`. |
52
+ | `locs.text.replace` | `TEXT.REPLACE_REG` in `init` with priority `-999999`. Without `group` — `GROUPS.LABELS`. |
53
53
 
54
54
  ## Related plugins
55
55
 
@@ -33,19 +33,19 @@ None.
33
33
 
34
34
  ## Modules
35
35
 
36
- | Module | Role |
37
- | ---------------------- | --------------------------------------------------------- |
36
+ | Module | Role |
37
+ | ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
38
38
  | `text.smooth.init` | In `postinject` — `shared.isTextSmoothInProcess = false`. After `start`, `isDestroyAfterStart` destroys the module and deletes its `state` slot. The shared flag stays. |
39
- | `text.smooth` | Plugin `smooth` submodule. |
40
- | `text.smooth.process` | Handles DONE, EMIT_PROCESS. |
41
- | `text.smooth.cycle` | Handles SMOOTH, PROCESS_CANCEL, EMIT_END, CLEAR. |
42
- | `text.smooth.emit.end` | Handles EMIT_END, RECALC_DONE. |
39
+ | `text.smooth` | Plugin `smooth` submodule. |
40
+ | `text.smooth.process` | Handles DONE, EMIT_PROCESS. |
41
+ | `text.smooth.cycle` | Handles SMOOTH, PROCESS_CANCEL, EMIT_END, CLEAR. |
42
+ | `text.smooth.emit.end` | Handles EMIT_END, RECALC_DONE. |
43
43
 
44
44
  ## Bridge
45
45
 
46
- ### `bridge/plugins.views.scenario.interface/plugins.text.smooth/`
46
+ ### `bridges/plugins.views.scenario.interface/plugins.text.smooth/`
47
47
 
48
- Package: `@vnejs/bridge.plugins.views.scenario.interface.plugins.text.smooth`
48
+ Package: `@vnejs/bridges.plugins.views.scenario.interface.plugins.text.smooth`
49
49
 
50
50
  Link to [interface.md](../views.scenario/interface.md): `CHANGED` → `INTERFACE.TEXT_CHANGED` (`tokens` from `globalState.text`, `tokensVisible`, `uid`). `start` resets `shared.interfaceTextShowAllTokensOnChange`.
51
51
 
@@ -65,21 +65,21 @@ Handler payloads and results are typed through module augmentation of the contra
65
65
 
66
66
  ## Bridge
67
67
 
68
- ### `bridge/plugins.views.scenario.interface/plugins.text/`
68
+ ### `bridges/plugins.views.scenario.interface/plugins.text/`
69
69
 
70
- Package: `@vnejs/bridge.plugins.views.scenario.interface.plugins.text`
70
+ Package: `@vnejs/bridges.plugins.views.scenario.interface.plugins.text`
71
71
 
72
72
  Link to [interface.md](../views.scenario/interface.md): `CHANGED` / `SPEAKER_CHANGED` / `EMIT` (`EMIT_PRIORITY.BEFORE`) → `INTERFACE.TEXT_CHANGED` / `SPEAKER_CHANGED` / `SHOW`. In `postinject` sets `shared.interfaceTextShowAllTokensOnChange`.
73
73
 
74
- ### `bridge/plugins.text/plugins.scenario.history/`
74
+ ### `bridges/plugins.text/plugins.scenario.history/`
75
75
 
76
- Package: `@vnejs/bridge.plugins.text.plugins.scenario.history`
76
+ Package: `@vnejs/bridges.plugins.text.plugins.scenario.history`
77
77
 
78
78
  On `EMIT_NEXT` emits `HISTORY.ADD` with text from the last line. `{…}` markers in the line stay: translation is looked up by them. Wired in `bundles/vn.skeleton`.
79
79
 
80
- ### `bridge/plugins.scenario.choose/plugins.text/`
80
+ ### `bridges/plugins.scenario.choose/plugins.text/`
81
81
 
82
- Package: `@vnejs/bridge.plugins.scenario.choose.plugins.text`
82
+ Package: `@vnejs/bridges.plugins.scenario.choose.plugins.text`
83
83
 
84
84
  Link to [choose.md](../scenario/choose.md): `OPTION_TEXT` handler returns `TEXT.REPLACE`. Wired in `bundles/vn.skeleton`.
85
85
 
@@ -24,11 +24,11 @@ None.
24
24
 
25
25
  ## Modules
26
26
 
27
- | Module | Role |
28
- | ------------------------ | ------------------------------------------------------------------------------------------ |
27
+ | Module | Role |
28
+ | ----------------------------- | ------------------------------------------------------------------------------------------ |
29
29
  | `cursor.view.controller` | SHOW/HIDE/UPDATE_STATE/UPDATE_FAST; cursor state is not cleared on `HIDE.CLEANUP`. |
30
30
  | `cursor.view.controller.sync` | `MOVED` / `VIEW_SET` / `MEMORY.CLEARED` → `UPDATE_STATE` + `UPDATE_FAST` and `MEDIA.LOAD`. |
31
- | `cursor.view` | Plugin `view` submodule. |
31
+ | `cursor.view` | Plugin `view` submodule. |
32
32
 
33
33
  ## Related plugins
34
34
 
@@ -46,8 +46,8 @@ None.
46
46
 
47
47
  ## Modules
48
48
 
49
- | Module | Role |
50
- | ---------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
49
+ | Module | Role |
50
+ | --------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
51
51
  | `settings.view.fields.controller` | `SHOW`/`HIDE`/`TAB_SET`; mirrors `UPDATE_STATE` (`currentArrowVerticalItem` + `currentItemInner`). On `ARROW_LEFT`/`ARROW_RIGHT`: `selector_texts` / `actions` (`options`) cycle `currentItemInner` (modulo); `selector_texts` call `SETTINGS.SET` at once. `INTERACT` — option value or named action (including `actions` without `settingKey`). `ACCEPT` is not handled — screens keep it. |
52
52
  | `settings.view.fields.controller.arrows` | Extends `@vnejs/module.controller.arrows.vertical`: `ARROW_UP`/`ARROW_BOTTOM` across fields; PUSH/POP on SHOW/HIDE; `TAB_SET` resets the index; emits `UPDATE_STATE` with `{ currentArrowVerticalItem }` and `UPDATE_FAST`. On `HIDE.CLEANUP` `currentArrowVerticalItem` in state becomes `undefined`. |
53
53
  | `settings.view.fields.controller.arrows.horizontal` | Extends `@vnejs/module.controller.arrows.horizontal`: `onArrowLeft` / `onArrowRight` → `ARROW_LEFT` / `ARROW_RIGHT`; PUSH/POP on SHOW/HIDE. On `HIDE.CLEANUP` `currentArrowHorizontalItem` in state becomes `undefined`. |
@@ -37,10 +37,10 @@ None.
37
37
 
38
38
  ## Modules
39
39
 
40
- | Module | Role |
41
- | ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
40
+ | Module | Role |
41
+ | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
42
42
  | `interface.controls.view.controller` | Handles UPDATE, VISIBLE, INTERACT, SHOW, …. `CONTROLS_EXTENSIONS` merges into `CONTROLS` in `ModuleController.init`. `SHOULD_CLEAR_STATE_ON_CLEANUP` — `false`: hide does not reset `isVisible` and `view`, so the next `$ interface show` shows the buttons again. |
43
- | `interface.controls.view` | Plugin `controls.view` submodule. |
43
+ | `interface.controls.view` | Plugin `controls.view` submodule. |
44
44
 
45
45
  ## Related plugins
46
46
 
@@ -35,10 +35,10 @@ None.
35
35
 
36
36
  ## Modules
37
37
 
38
- | Module | Role |
39
- | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
38
+ | Module | Role |
39
+ | --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
40
40
  | `interface.fastforward.view.controller` | Handles UPDATE, TOGGLE, START, STOP, …. `SHOULD_CLEAR_STATE_ON_CLEANUP` — `false`: hide does not reset `isVisible` and `view`, so the next `$ interface show` shows the button again. |
41
- | `interface.fastforward.view` | Plugin `fastforward.view` submodule. |
41
+ | `interface.fastforward.view` | Plugin `fastforward.view` submodule. |
42
42
 
43
43
  ## Related plugins
44
44
 
@@ -62,19 +62,19 @@ None.
62
62
  | `interface.scenario` | `$ interface`: `LINE_EXEC_REG` → SHOW / HIDE / VIEW per `CONST.INTERFACE.EXEC_ACTIONS`. |
63
63
  | `interface.actions` | VISIBLE / TEXT_HIDE / VIEW through `globalState.interface`. |
64
64
  | `interface.actions.show` | Subscribes to `SHOW` and `HIDE`. On `GATE` (`breakFollowing`): if the interface is already in the target state or a show/hide cycle is running, other subscribers on these events are not called. Showing a hidden layer sends `VISIBLE`. |
65
- | `interface.view` | `isForce` reaches `SmoothText` in `InterfaceViewDialog`, `InterfaceViewLine`, and `InterfaceViewWall`. Inactive views pass a stable empty tokens array so `SmoothText` memo can skip. |
65
+ | `interface.view` | `isForce` reaches `SmoothText` in `InterfaceViewDialog`, `InterfaceViewLine`, and `InterfaceViewWall`. Inactive views pass a stable empty tokens array so `SmoothText` memo can skip. |
66
66
 
67
67
  ## Bridge
68
68
 
69
- ### `bridge/plugins.views.scenario.interface/plugins.text/`
69
+ ### `bridges/plugins.views.scenario.interface/plugins.text/`
70
70
 
71
- Package: `@vnejs/bridge.plugins.views.scenario.interface.plugins.text`
71
+ Package: `@vnejs/bridges.plugins.views.scenario.interface.plugins.text`
72
72
 
73
73
  On `TEXT.CHANGED` emits `INTERFACE.TEXT_CHANGED` (`tokensVisible` = token length when `shared.interfaceTextShowAllTokensOnChange`). On `TEXT.SPEAKER_CHANGED` — `INTERFACE.SPEAKER_CHANGED`. In `postinject` sets the flag to `true`; in `subscribe` registers `TEXT.EMIT` (`CONST.TEXT.EMIT_PRIORITY.BEFORE`) → `INTERFACE.SHOW`. Wired in `bundles/vn.skeleton`.
74
74
 
75
- ### `bridge/plugins.views.scenario.interface/plugins.text.smooth/`
75
+ ### `bridges/plugins.views.scenario.interface/plugins.text.smooth/`
76
76
 
77
- Package: `@vnejs/bridge.plugins.views.scenario.interface.plugins.text.smooth`
77
+ Package: `@vnejs/bridges.plugins.views.scenario.interface.plugins.text.smooth`
78
78
 
79
79
  On `TEXT_SMOOTH.CHANGED` emits `INTERFACE.TEXT_CHANGED` with `tokens` from `globalState.text`, `tokensVisible`, and `uid`. In `start` sets `shared.interfaceTextShowAllTokensOnChange` to `false`.
80
80
 
@@ -66,9 +66,9 @@ sequenceDiagram
66
66
 
67
67
  ## Bridge
68
68
 
69
- ### `bridge/plugins.views.scenario.point_and_click/plugins.views.scenario.interface/`
69
+ ### `bridges/plugins.views.scenario.point_and_click/plugins.views.scenario.interface/`
70
70
 
71
- Package: `@vnejs/bridge.plugins.views.scenario.point_and_click.plugins.views.scenario.interface`
71
+ Package: `@vnejs/bridges.plugins.views.scenario.point_and_click.plugins.views.scenario.interface`
72
72
 
73
73
  On `POINT_AND_CLICK_VIEW.SHOW` with `CONST.COMPONENTS.LIFECYCLE_PRIORITY.SHOW.BEFORE` emits `INTERFACE.HIDE`.
74
74
 
@@ -83,9 +83,9 @@ sequenceDiagram
83
83
 
84
84
  ## Bridge
85
85
 
86
- ### `bridge/plugins.views.scenario.qte/plugins.views.scenario.interface/`
86
+ ### `bridges/plugins.views.scenario.qte/plugins.views.scenario.interface/`
87
87
 
88
- Package: `@vnejs/bridge.plugins.views.scenario.qte.plugins.views.scenario.interface`
88
+ Package: `@vnejs/bridges.plugins.views.scenario.qte.plugins.views.scenario.interface`
89
89
 
90
90
  On `QTE_VIEW.SHOW` with `CONST.COMPONENTS.LIFECYCLE_PRIORITY.SHOW.BEFORE` emits `INTERFACE.HIDE`. Wired in `bundles/vn.base`.
91
91
 
@@ -42,8 +42,8 @@ None.
42
42
 
43
43
  ## Modules
44
44
 
45
- | Module | Role |
46
- | -------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
45
+ | Module | Role |
46
+ | ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
47
47
  | `gallery.full.view.bridge` | `GALLERY.CHOOSE` with `isOpened: true` → `SHOW`. |
48
48
  | `gallery.full.view.controller` | `onShowBefore` writes `itemFullName` / `itemMediaType` / `itemLayerChildType` / `variants` into `UPDATE_STATE` and emits `LOAD` `{ pageIndex: 0 }`. `onHideAfter` resets this context via `UPDATE_STATE`. |
49
49
  | `gallery.full.view.load` | `LOAD` → `onLoad` by `state.variants`; for an open variation emits `LOAD_SRC`. `UPDATE_STATE` merges a partial into module state. |
@@ -51,7 +51,7 @@ None.
51
51
  | `gallery.full.view.variation` | Extends `@vnejs/module.controller.pages`: `EVENT_PAGE_PREV`/`NEXT`/`SET` = `PREV`/`NEXT`/`PAGE_SET`; state `pageIndex` / `pagesCount`; `applyPage` → `LOAD` `{ pageIndex }`. |
52
52
  | `gallery.full.view.controller.arrows` | `onArrowLeft` / `onArrowRight` → `PREV` / `NEXT`; PUSH/POP on SHOW/HIDE. |
53
53
  | `gallery.full.view.hide.controls` | Extends `@vnejs/module.controller.hide.on.controls`: `BACK` / `MENU` / `GAMEMENU` → `HIDE`; PUSH/POP on SHOW/HIDE. |
54
- | `gallery.full.view` | Plugin `full.view` submodule. |
54
+ | `gallery.full.view` | Plugin `full.view` submodule. |
55
55
 
56
56
  ## Related plugins
57
57
 
@@ -24,9 +24,9 @@ Handler payloads and results are typed through module augmentation of the contra
24
24
 
25
25
  ## Constants
26
26
 
27
- | Key | Type | Meaning |
28
- | -------- | -------- | -------------------------------------------- |
29
- | `SOURCE` | `string` | Loading screen source name (`gameMenu`). |
27
+ | Key | Type | Meaning |
28
+ | -------- | -------- | ---------------------------------------- |
29
+ | `SOURCE` | `string` | Loading screen source name (`gameMenu`). |
30
30
 
31
31
  ## Parameters
32
32
 
@@ -40,15 +40,15 @@ None.
40
40
 
41
41
  ## Modules
42
42
 
43
- | Module | Role |
44
- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
43
+ | Module | Role |
44
+ | -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
45
45
  | `history.view.controller` | SHOW/HIDE/UPDATE_STATE/UPDATE_FAST; before SHOW resolves row texts (`TEXT.REPLACE`). For `locKey` — via `PARAMS.HISTORY_VIEW.LOC_LABEL` (view localization), else via scenario label. After translation, `{…}` markers are stripped from the display row. Empty `controls` on `ZINDEX` to block lower layers. |
46
46
  | `history.view.controller.click` | `HISTORY_VIEW.CLICK` → `HISTORY.KEYS`; if `uid` is in keys — `HISTORY.LOAD`. |
47
47
  | `history.view.controller.accept` | Extends `@vnejs/module.controller.accept`: `ACCEPT` / `INTERACT` → `ACCEPT` → `CLICK` on `currentArrowVerticalItem`; mirrors `UPDATE_STATE`; PUSH/POP on SHOW/HIDE. |
48
48
  | `history.view.controller.arrows` | Extends `@vnejs/module.controller.arrows.vertical`: `ARROW_UP` / `ARROW_BOTTOM` over journal entries; PUSH/POP controls on SHOW/HIDE; emits `UPDATE_STATE` with `{ currentArrowVerticalItem }` and `UPDATE_FAST`. On `HIDE.CLEANUP` `currentArrowVerticalItem` in state becomes `undefined`. |
49
49
  | `history.view.hide.controls` | Extends `@vnejs/module.controller.hide.on.controls`: `BACK` / `MENU` / `GAMEMENU` → `HIDE`; PUSH/POP on SHOW/HIDE. |
50
50
  | `history.view.hide.state` | Extends `@vnejs/module.controller.hide.on.state`: `STATE.SET` → `HIDE` with `{ isForce: true }` (`IS_STATE_CLEAR_ENABLED = false`). |
51
- | `history.view` | Plugin `view` submodule. |
51
+ | `history.view` | Plugin `view` submodule. |
52
52
 
53
53
  ## Related plugins
54
54
 
@@ -27,9 +27,9 @@ Handler payloads and results are typed through module augmentation of the contra
27
27
 
28
28
  ## Constants
29
29
 
30
- | Key | Type | Meaning |
31
- | -------- | -------- | -------------------------------------------- |
32
- | `SOURCE` | `string` | Loading screen source name (`mainMenu`). |
30
+ | Key | Type | Meaning |
31
+ | -------- | -------- | ---------------------------------------- |
32
+ | `SOURCE` | `string` | Loading screen source name (`mainMenu`). |
33
33
 
34
34
  ## Parameters
35
35
 
@@ -31,10 +31,10 @@ None.
31
31
 
32
32
  ## Modules
33
33
 
34
- | Module | Role |
35
- | ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
34
+ | Module | Role |
35
+ | ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
36
36
  | `mainmenu.socials.view.controller` | Handles UPDATE, SHOW, HIDE. Hide on `STATE.SET` / `STATE.CLEAR` goes through `MAINMENU.HIDE` from `mainmenu.hide`; no direct `STATE` subscriptions. |
37
- | `mainmenu.socials.view` | Plugin `socials.view` submodule. |
37
+ | `mainmenu.socials.view` | Plugin `socials.view` submodule. |
38
38
 
39
39
  ## Related plugins
40
40
 
@@ -25,8 +25,8 @@ Handler payloads and results are typed through module augmentation of the contra
25
25
  | `PRELOAD` | `vne:save_view:preload` | Plugin namespace `PRELOAD` event. |
26
26
  | `ACCEPT` | `vne:save_view:accept` | ACCEPT / INTERACT on the selected slot. |
27
27
  | `UPDATE_STATE` | `vne:save_view:update_state` | Merge a partial into controller/accept/grid state without an UPDATE view. |
28
- | `GRID_NEXT` | `vne:save_view:grid_next` | Grid edge forward; `save.view.controller.pages` listens as `EVENT_PAGE_NEXT` (intentional bridge, pages module knows nothing about the grid). |
29
- | `GRID_PREV` | `vne:save_view:grid_prev` | Grid edge backward; `save.view.controller.pages` listens as `EVENT_PAGE_PREV`. |
28
+ | `GRID_NEXT` | `vne:save_view:grid_next` | Grid edge forward; `save.view.controller.pages` listens as `EVENT_PAGE_NEXT` (intentional bridge, pages module knows nothing about the grid). |
29
+ | `GRID_PREV` | `vne:save_view:grid_prev` | Grid edge backward; `save.view.controller.pages` listens as `EVENT_PAGE_PREV`. |
30
30
  | `GRID_CLEAR` | `vne:save_view:grid_clear` | Clear cell selection: `gridRow` / `gridColumn` → `null` (+ `UPDATE_STATE`). |
31
31
  | `GRID_UPDATE_ITEMS` | `vne:save_view:grid_update_items` | Rebuild the grid from state (no payload) → `UPDATE_STATE` `{ gridItems }`. Meta (`gridIndex` / `gridsCount` / `tab`) — set earlier via `UPDATE_STATE`. |
32
32
  | `SLOT_CREATE` | `vne:save_view:slot_create` | Build a UI slot → `SAVE.GET` + date/time; result: `SaveViewSlotCreateResult`. |
@@ -48,8 +48,8 @@ None.
48
48
 
49
49
  ## Modules
50
50
 
51
- | Module | Role |
52
- | ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
51
+ | Module | Role |
52
+ | ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
53
53
  | `save.view.controller.audio` | `ModuleControllerAudio` subclass: SHOW/HIDE/PRELOAD → pause global, play/stop `view` track; `VOLUME_SETTING = MUSIC.VOLUME`; SHOW passes a computed `volume` into `AUDIO.PLAY`; on `VOLUME_CHANGED` / `VOLUME_SETTING` change — `AUDIO.VOLUME` again. |
54
54
  | `save.view.controller` | SHOW/HIDE by `CONST.COMPONENTS.LIFECYCLE_PRIORITY` phases; on `SHOW.BEFORE` — `TAB_SET`. `UPDATE_STATE` / `UPDATE_FAST`; empty `controls` on `ZINDEX`. |
55
55
  | `save.view.controller.bg` | Extends `@vnejs/module.controller.bg`: `SHOW` + `LIFECYCLE_PRIORITY.SHOW.BEFORE` → `bgSrc`; PRELOAD / `start`; `MEMORY.CLEARED` — preload and refresh when `isShow`. |
@@ -57,12 +57,12 @@ None.
57
57
  | `save.view.controller.pages` | Extends `@vnejs/module.controller.pages`: `EVENT_*` → `SAVE_VIEW`; `applyPage` → `UPDATE_STATE` `{ gridIndex, gridsCount }` + `GRID_UPDATE_ITEMS`; `init` sets `pagesCount`. |
58
58
  | `save.view.controller.accept` | Extends `@vnejs/module.controller.accept`: `ACCEPT` / `INTERACT` → `ACCEPT` → `CREATE` on save tab, else `LOAD` when `screen`; mirrors `UPDATE_STATE`; PUSH/POP on SHOW/HIDE. |
59
59
  | `save.view.controller.grid` | Extends `@vnejs/module.controller.arrows.grid`: four arrows; `isDisableGridChangeVertical = true` (vertical does not flip pages); at column edge — `GRID_NEXT`/`PREV`; `GRID_CLEAR`; `GRID_UPDATE_ITEMS` → `getGridItems` / `UPDATE_STATE` `{ gridItems }`. On `HIDE.CLEANUP` `gridRow` / `gridColumn` in state become `undefined`. |
60
- | `save.view.slot` | On `SLOT_CREATE` builds a UI slot: `SAVE.GET` → `screen` / `ts` / `date` / `time` / `locKey`. |
60
+ | `save.view.slot` | On `SLOT_CREATE` builds a UI slot: `SAVE.GET` → `screen` / `ts` / `date` / `time` / `locKey`. |
61
61
  | `save.view.hide.controls` | Extends `@vnejs/module.controller.hide.on.controls`: `BACK` / `MENU` / `GAMEMENU` → `HIDE`; PUSH/POP on SHOW/HIDE. |
62
62
  | `save.view.hide.state` | Extends `@vnejs/module.controller.hide.on.state`: `STATE.SET` / `STATE.CLEAR` → `HIDE` with `{ isForce: true }`. |
63
63
  | `save.view.controller.tabs` | `ModuleControllerTabs` subclass: `TAB_SET` → `applyTab` + `onTabSet` (`pageIndex: 0`, `GRID_CLEAR`, `UPDATE_STATE` `{ gridIndex, gridsCount }`, `GRID_UPDATE_ITEMS`, optional `UPDATE_FAST`); TAB_PREV/TAB_NEXT → `TAB_SET`; `getTabKeys` filters SAVE vs LOAD/AUTOSAVE. |
64
64
  | `save.view.controller.load` | Plugin `controller.load` submodule. |
65
- | `save.view` | Plugin `view` submodule. |
65
+ | `save.view` | Plugin `view` submodule. |
66
66
 
67
67
  ## Related plugins
68
68
 
@@ -40,14 +40,14 @@ None.
40
40
 
41
41
  ## Modules
42
42
 
43
- | Module | Role |
44
- | ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
43
+ | Module | Role |
44
+ | ----------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
45
45
  | `settings.default.view.controller` | SHOW/HIDE by `CONST.COMPONENTS.LIFECYCLE_PRIORITY` phases; on `HIDE.BEFORE` — `SETTINGS_VIEW.HIDE`. `UPDATE_STATE` / `UPDATE_FAST`. |
46
46
  | `settings.default.view.controller.bg` | Extends `@vnejs/module.controller.bg`: `SHOW` + `LIFECYCLE_PRIORITY.SHOW.BEFORE` → `bgSrc`; `MEMORY.CLEARED` when `isShow` → refresh. |
47
47
  | `settings.default.view.controller.fields` | On `SHOW` + `LIFECYCLE_PRIORITY.SHOW.BEFORE`: `UPDATE_STATE` `{ tab }` + `SETTINGS_VIEW.SHOW` with `CONST.SETTINGS_VIEW.DEFAULT_TAB`. |
48
48
  | `settings.default.view.controller.accept` | Extends `@vnejs/module.controller.accept`: only `ACCEPT` (`IS_INTERACT_ENABLED = false`) → `CONFIRM` → `INITED`, `HIDE`, `emit SCENARIO.NEXT`; PUSH/POP on SHOW/HIDE. |
49
- | `settings.default.view.exec` | `SETTINGS.INIT` INITED in `setup`; `LINE_EXEC` as `$ settings.defaults` → `SHOW`, or `emit SCENARIO.NEXT` when `skip_if_possible` and `INITED`. |
50
- | `settings.default.view` | Chrome: title + Accept button. |
49
+ | `settings.default.view.exec` | `SETTINGS.INIT` INITED in `setup`; `LINE_EXEC` as `$ settings.defaults` → `SHOW`, or `emit SCENARIO.NEXT` when `skip_if_possible` and `INITED`. |
50
+ | `settings.default.view` | Chrome: title + Accept button. |
51
51
 
52
52
  ## Related plugins
53
53
 
@@ -41,8 +41,8 @@ None.
41
41
 
42
42
  ## Modules
43
43
 
44
- | Module | Role |
45
- | ----------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
44
+ | Module | Role |
45
+ | ---------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
46
46
  | `settings.screen.view.controller.audio` | `ModuleControllerAudio` subclass: SHOW/HIDE/PRELOAD → pause global, play/stop `view` track; `VOLUME_SETTING = MUSIC.VOLUME`; SHOW passes a computed `volume` into `AUDIO.PLAY`; on `VOLUME_CHANGED` / `VOLUME_SETTING` change — `AUDIO.VOLUME` again. |
47
47
  | `settings.screen.view.controller` | SHOW/HIDE by `CONST.COMPONENTS.LIFECYCLE_PRIORITY` phases; on `HIDE.BEFORE` emits `SETTINGS_VIEW.HIDE`. `UPDATE_STATE` → `updateState`; `UPDATE_FAST`. Empty `controls` on `ZINDEX`. |
48
48
  | `settings.screen.view.controller.bg` | Extends `@vnejs/module.controller.bg`: `SHOW` + `LIFECYCLE_PRIORITY.SHOW.BEFORE` → `bgSrc`; PRELOAD; `MEMORY.CLEARED` — preload and refresh when `isShow`. |
@@ -50,7 +50,7 @@ None.
50
50
  | `settings.screen.view.hide.controls` | Extends `@vnejs/module.controller.hide.on.controls`: `BACK` / `MENU` / `GAMEMENU` → `HIDE`; PUSH/POP on SHOW/HIDE. |
51
51
  | `settings.screen.view.hide.state` | Extends `@vnejs/module.controller.hide.on.state`: `STATE.SET` / `STATE.CLEAR` → `HIDE` with `{ isForce: true }`. |
52
52
  | `settings.screen.view.controller.tabs` | `ModuleControllerTabs` subclass: `TAB_SET` → `applyTab` + `onTabSet` (`UPDATE_FAST`, then `SETTINGS_VIEW.TAB_SET`); TAB_PREV/TAB_NEXT → `TAB_SET`; `getTabKeys` by `showInSettings`. |
53
- | `settings.screen.view` | Screen chrome (Screen, tabs, cross); fields and example text — in `SETTINGS_VIEW`. |
53
+ | `settings.screen.view` | Screen chrome (Screen, tabs, cross); fields and example text — in `SETTINGS_VIEW`. |
54
54
 
55
55
  ## Related plugins
56
56