@almadar/core 7.2.0 → 7.3.0
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/dist/types/index.d.ts +9 -1
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -1351,8 +1351,16 @@ interface OrbitalVerificationAPI {
|
|
|
1351
1351
|
* Send an event into the runtime. Requires {@link bindEventBus} (in
|
|
1352
1352
|
* `@almadar/ui`) to have run at least once. Payload typed as
|
|
1353
1353
|
* {@link EventPayload} so callers can't slip non-bus-shaped data in.
|
|
1354
|
+
*
|
|
1355
|
+
* `traitScope` is the qualified `Orbital.Trait` (or `App.Trait`)
|
|
1356
|
+
* scope that bus listeners subscribe under. The bridge constructs
|
|
1357
|
+
* `UI:${traitScope}.${event}` and emits that on the bus, matching
|
|
1358
|
+
* the codegen-emitted subscription keys (gap #13). When omitted,
|
|
1359
|
+
* the legacy bare-prefix form `UI:${event}` is used — kept only
|
|
1360
|
+
* for system-scope events like `UI:NOTIFY`; trait-driven dispatch
|
|
1361
|
+
* MUST pass a `traitScope`.
|
|
1354
1362
|
*/
|
|
1355
|
-
sendEvent?: (event: string, payload?: EventPayload) => void;
|
|
1363
|
+
sendEvent?: (event: string, payload?: EventPayload, traitScope?: string) => void;
|
|
1356
1364
|
/** Current state name for a given trait, if known. */
|
|
1357
1365
|
getTraitState?: (traitName: string) => string | undefined;
|
|
1358
1366
|
/** Per-trait reducer snapshots (VG4/VG6/VG11a/b/c). */
|