@vnejs/docs 0.2.83 → 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.
- package/README.md +1 -1
- package/architecture/{bridge.md → bridges.md} +5 -5
- package/architecture/build.md +3 -3
- package/architecture/bundles.md +2 -2
- package/architecture/configs.md +6 -6
- package/architecture/contracts.md +5 -5
- package/architecture/dependencies.md +5 -5
- package/architecture/model.md +3 -3
- package/architecture/modules.md +1 -1
- package/changelog/0.2.84.md +3 -0
- package/changelog/README.md +1 -0
- package/manifest.json +1 -1
- package/package.json +1 -1
- package/plugins/controls/cursor.md +1 -1
- package/plugins/controls/gamepad.md +1 -1
- package/plugins/scenario/choose.md +8 -8
- package/plugins/scenario/fastforward.md +1 -1
- package/plugins/scenario/history.md +4 -4
- package/plugins/scenario/point_and_click.md +4 -4
- package/plugins/scenario/qte.md +3 -3
- package/plugins/text/smooth.md +2 -2
- package/plugins/text/text.md +6 -6
- package/plugins/views.scenario/interface.md +4 -4
- package/plugins/views.scenario/point_and_click.md +2 -2
- package/plugins/views.scenario/qte.md +2 -2
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
|
-
| [`
|
|
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
|
-
#
|
|
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/
|
|
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/
|
|
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[
|
|
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/
|
|
21
|
+
BR --> CT[contracts/bridges]
|
|
22
22
|
BR --> CTA[contracts/ A]
|
|
23
23
|
BR --> CTB[contracts/ B]
|
|
24
24
|
```
|
package/architecture/build.md
CHANGED
|
@@ -9,7 +9,7 @@ flowchart TD
|
|
|
9
9
|
CT[contracts/]
|
|
10
10
|
SH[shared/]
|
|
11
11
|
PL[plugins/]
|
|
12
|
-
CP[
|
|
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 `
|
|
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 `
|
|
40
|
+
4. The game runs on bus events. Cross-plugin links go through `bridges/` from `bundles/`.
|
package/architecture/bundles.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# bundles/
|
|
2
2
|
|
|
3
|
-
**Composition** with no business logic. A chain of side-effect imports from `plugins/` and `
|
|
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 `
|
|
20
|
+
Entry point: re-export `VneCore` → import `plugins/` → import `bridges/`.
|
package/architecture/configs.md
CHANGED
|
@@ -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/`, `
|
|
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/ /
|
|
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 `
|
|
22
|
-
- A contract **does not import** an implementation from `plugins/` or `
|
|
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/
|
|
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
|
|
29
|
+
CT -->|"CONSTANTS, EVENTS, PARAMS"| REG[regPlugin when plugins/ or bridges/ load]
|
|
30
30
|
PL[plugins/] -->|"import"| CT
|
|
31
|
-
BR[
|
|
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[
|
|
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/`, `
|
|
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
|
-
| `
|
|
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
|
-
| **`
|
|
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 `
|
|
61
|
+
**Main rule:** `plugins/` do not know each other. Integration goes through events in `contracts/` and an explicit `bridges/` package in `bundles/`.
|
package/architecture/model.md
CHANGED
|
@@ -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/
|
|
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
|
-
|
|
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. `
|
|
45
|
+
A slash in the path becomes a dot in the name. `bridges/` repeats `plugins.` so the two plugin packages stay visible.
|
package/architecture/modules.md
CHANGED
|
@@ -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 `
|
|
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
|
| ----------------- | -------------------------- | ---------------------------- |
|
package/changelog/README.md
CHANGED
package/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -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 `
|
|
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`
|
|
@@ -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 `
|
|
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`
|
|
@@ -86,27 +86,27 @@ None.
|
|
|
86
86
|
|
|
87
87
|
## Bridge
|
|
88
88
|
|
|
89
|
-
### `
|
|
89
|
+
### `bridges/plugins.scenario.choose/plugins.scenario.fastforward/`
|
|
90
90
|
|
|
91
|
-
Package: `@vnejs/
|
|
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
|
-
### `
|
|
95
|
+
### `bridges/plugins.scenario.choose/plugins.scenario.history/`
|
|
96
96
|
|
|
97
|
-
Package: `@vnejs/
|
|
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
|
-
### `
|
|
101
|
+
### `bridges/plugins.scenario.choose/plugins.scenario.qte/`
|
|
102
102
|
|
|
103
|
-
Package: `@vnejs/
|
|
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
|
-
### `
|
|
107
|
+
### `bridges/plugins.scenario.choose/plugins.text/`
|
|
108
108
|
|
|
109
|
-
Package: `@vnejs/
|
|
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 `
|
|
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
|
-
### `
|
|
52
|
+
### `bridges/plugins.text/plugins.scenario.history/`
|
|
53
53
|
|
|
54
|
-
Package: `@vnejs/
|
|
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
|
-
### `
|
|
58
|
+
### `bridges/plugins.scenario.choose/plugins.scenario.history/`
|
|
59
59
|
|
|
60
|
-
Package: `@vnejs/
|
|
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
|
-
### `
|
|
75
|
+
### `bridges/plugins.scenario.point_and_click/plugins.vars.flags/`
|
|
76
76
|
|
|
77
|
-
Package: `@vnejs/
|
|
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
|
-
### `
|
|
81
|
+
### `bridges/plugins.scenario.point_and_click/plugins.vars.counters/`
|
|
82
82
|
|
|
83
|
-
Package: `@vnejs/
|
|
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
|
|
package/plugins/scenario/qte.md
CHANGED
|
@@ -72,11 +72,11 @@ On `EMIT` with `skipScenario: true` sets `shared.qteScenarioSkip`; on `RESULT` m
|
|
|
72
72
|
|
|
73
73
|
## Bridge
|
|
74
74
|
|
|
75
|
-
### `
|
|
75
|
+
### `bridges/plugins.scenario.choose/plugins.scenario.qte/`
|
|
76
76
|
|
|
77
|
-
Package: `@vnejs/
|
|
77
|
+
Package: `@vnejs/bridges.plugins.scenario.choose.plugins.scenario.qte`
|
|
78
78
|
|
|
79
|
-
Contract: `@vnejs/contracts.
|
|
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
|
|
package/plugins/text/smooth.md
CHANGED
|
@@ -43,9 +43,9 @@ None.
|
|
|
43
43
|
|
|
44
44
|
## Bridge
|
|
45
45
|
|
|
46
|
-
### `
|
|
46
|
+
### `bridges/plugins.views.scenario.interface/plugins.text.smooth/`
|
|
47
47
|
|
|
48
|
-
Package: `@vnejs/
|
|
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
|
|
package/plugins/text/text.md
CHANGED
|
@@ -65,21 +65,21 @@ Handler payloads and results are typed through module augmentation of the contra
|
|
|
65
65
|
|
|
66
66
|
## Bridge
|
|
67
67
|
|
|
68
|
-
### `
|
|
68
|
+
### `bridges/plugins.views.scenario.interface/plugins.text/`
|
|
69
69
|
|
|
70
|
-
Package: `@vnejs/
|
|
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
|
-
### `
|
|
74
|
+
### `bridges/plugins.text/plugins.scenario.history/`
|
|
75
75
|
|
|
76
|
-
Package: `@vnejs/
|
|
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
|
-
### `
|
|
80
|
+
### `bridges/plugins.scenario.choose/plugins.text/`
|
|
81
81
|
|
|
82
|
-
Package: `@vnejs/
|
|
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
|
|
|
@@ -66,15 +66,15 @@ None.
|
|
|
66
66
|
|
|
67
67
|
## Bridge
|
|
68
68
|
|
|
69
|
-
### `
|
|
69
|
+
### `bridges/plugins.views.scenario.interface/plugins.text/`
|
|
70
70
|
|
|
71
|
-
Package: `@vnejs/
|
|
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
|
-
### `
|
|
75
|
+
### `bridges/plugins.views.scenario.interface/plugins.text.smooth/`
|
|
76
76
|
|
|
77
|
-
Package: `@vnejs/
|
|
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
|
-
### `
|
|
69
|
+
### `bridges/plugins.views.scenario.point_and_click/plugins.views.scenario.interface/`
|
|
70
70
|
|
|
71
|
-
Package: `@vnejs/
|
|
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
|
-
### `
|
|
86
|
+
### `bridges/plugins.views.scenario.qte/plugins.views.scenario.interface/`
|
|
87
87
|
|
|
88
|
-
Package: `@vnejs/
|
|
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
|
|