@vnejs/docs 0.2.82 → 0.2.83

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.
@@ -2,11 +2,11 @@
2
2
 
3
3
  **Shared build configs.** Reusable TypeScript settings. Not runtime.
4
4
 
5
- | Package | Role |
6
- | ------------------------------ | ------------------------------------------------------------------------------------------------ |
5
+ | Package | Role |
6
+ | ------------------------------ | ----------------------------------------------------------------------------------------------------------- |
7
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 |
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/docs",
3
- "version": "0.2.82",
3
+ "version": "0.2.83",
4
4
  "description": "VNEJS documentation for engine consumers and coding agents",
5
5
  "files": [
6
6
  "*.md",
@@ -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_*` |
@@ -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
 
@@ -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,13 +33,13 @@ 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
 
@@ -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,7 +62,7 @@ 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
 
@@ -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