@moku-labs/game 0.15.93 → 0.15.94

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 (33) hide show
  1. package/dist/app/page.d.mts +1 -1
  2. package/dist/app/page.mjs +1 -1
  3. package/dist/app/system.d.mts +3 -3
  4. package/dist/app.d.mts +3 -3
  5. package/dist/app.mjs +1 -1
  6. package/dist/assets.d.mts +1 -1
  7. package/dist/{commands-DUco80gt.d.mts → commands-B05keaNh.d.mts} +5 -5
  8. package/dist/control.d.mts +4 -4
  9. package/dist/{define-C-EbeoLA.d.mts → define-C5oKi9M2.d.mts} +2 -2
  10. package/dist/{headless-Dasz6dgy.d.mts → headless-rXLWKvZq.d.mts} +1 -1
  11. package/dist/{index-vPc22SoP.d.mts → index-DuiCPP3n.d.mts} +26 -7
  12. package/dist/index.d.mts +5 -5
  13. package/dist/index.mjs +2 -2
  14. package/dist/inspect.d.mts +6 -6
  15. package/dist/inspect.mjs +1 -1
  16. package/dist/jsx-dev-runtime.d.mts +1 -1
  17. package/dist/jsx-runtime.d.mts +1 -1
  18. package/dist/{runtime-CW4HJWqC.d.mts → runtime-DGpGGQAh.d.mts} +1 -1
  19. package/dist/{sources-kL64Svgl.mjs → sources-DIl02J8z.mjs} +1 -1
  20. package/dist/{src-BBJh9Uxh.mjs → src-CkBzjWRd.mjs} +112 -25
  21. package/dist/testing.d.mts +4 -4
  22. package/dist/testing.mjs +1 -1
  23. package/dist/{types-Cc7uKiHX.d.mts → types-BrEqXapX.d.mts} +2 -2
  24. package/dist/{types-CNNxfAsF.d.mts → types-CA98KS-U.d.mts} +4 -4
  25. package/dist/{types-Btqe51cJ.d.mts → types-CSkVNKPZ.d.mts} +2 -2
  26. package/dist/{types-D1lRinVJ.d.mts → types-D33h-CNj.d.mts} +20 -3
  27. package/dist/{types-BMUuyOcm.d.mts → types-DhCTe-kr.d.mts} +28 -7
  28. package/dist/{visual-BMyWTUgm.d.mts → visual-BfN2jgqg.d.mts} +6 -6
  29. package/dist/{visual-CULAJg6b.mjs → visual-Cl7Q7pO9.mjs} +4 -2
  30. package/dist/visual.d.mts +1 -1
  31. package/dist/visual.mjs +1 -1
  32. package/llms.txt +4 -3
  33. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { h as StartedPage, r as GameConfig, t as AnyGameApp, u as PageOptions } from "../types-CNNxfAsF.mjs";
1
+ import { h as StartedPage, r as GameConfig, t as AnyGameApp, u as PageOptions } from "../types-CA98KS-U.mjs";
2
2
 
3
3
  //#region src/app/page.d.ts
4
4
  /**
package/dist/app/page.mjs CHANGED
@@ -2,7 +2,7 @@ import { r as systemSource, t as memory } from "../memory-CWlqhS7l.mjs";
2
2
  import { t as applyTo } from "../drafts-BawpSaVp.mjs";
3
3
  import { i as isControl } from "../dev-BNndV-hU.mjs";
4
4
  import { n as fakeClock, t as VISUAL_CLOCK } from "../fake-hnJcJeYf.mjs";
5
- import { n as read, r as watch, t as sources } from "../sources-kL64Svgl.mjs";
5
+ import { n as read, r as watch, t as sources } from "../sources-DIl02J8z.mjs";
6
6
  import { n as resolveConfig } from "../config-DVqciSkP.mjs";
7
7
  //#region src/app/boot.ts
8
8
  /** How long after the fade the timer removes a picture whose transition never ended, ms. */
@@ -1,6 +1,6 @@
1
- import { Kr as PlayerStateProvider } from "../types-D1lRinVJ.mjs";
2
- import { ht as PlatformProvider } from "../index-vPc22SoP.mjs";
3
- import { _ as SystemName, g as SystemModules, v as SystemShellFactory } from "../types-CNNxfAsF.mjs";
1
+ import { qr as PlayerStateProvider } from "../types-D33h-CNj.mjs";
2
+ import { gt as PlatformProvider } from "../index-DuiCPP3n.mjs";
3
+ import { _ as SystemName, g as SystemModules, v as SystemShellFactory } from "../types-CA98KS-U.mjs";
4
4
  import { Back, Haptics, KeepAwake, Lifecycle, Store } from "@moku-labs/system";
5
5
 
6
6
  //#region src/app/system.d.ts
package/dist/app.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { Vr as Json } from "./types-D1lRinVJ.mjs";
2
- import { q as StringTable } from "./types-BMUuyOcm.mjs";
3
- import { _ as SystemName, a as GameHandle, c as MemoryProvider, d as PlistValue, f as SaveKind, i as GameDefinition, l as PageAgent, m as ScreenSeams, n as GameApp, o as GamePluginConfigs, p as Scenario, r as GameConfig, s as HeadlessSeams, y as WithGameState } from "./types-CNNxfAsF.mjs";
1
+ import { Hr as Json } from "./types-D33h-CNj.mjs";
2
+ import { q as StringTable } from "./types-DhCTe-kr.mjs";
3
+ import { _ as SystemName, a as GameHandle, c as MemoryProvider, d as PlistValue, f as SaveKind, i as GameDefinition, l as PageAgent, m as ScreenSeams, n as GameApp, o as GamePluginConfigs, p as Scenario, r as GameConfig, s as HeadlessSeams, y as WithGameState } from "./types-CA98KS-U.mjs";
4
4
  import { AnyPluginInstance } from "@moku-labs/core";
5
5
 
6
6
  //#region src/app/define.d.ts
package/dist/app.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { Ft as audioPlugin, H as platformPlugin, i as screen, m as flattenFeatures, t as createApp, wt as effectsPlugin } from "./src-BBJh9Uxh.mjs";
1
+ import { Ft as audioPlugin, H as platformPlugin, i as screen, m as flattenFeatures, t as createApp, wt as effectsPlugin } from "./src-CkBzjWRd.mjs";
2
2
  import { t as memory } from "./memory-CWlqhS7l.mjs";
3
3
  import { n as fakeClock, r as isFakeClock } from "./fake-hnJcJeYf.mjs";
4
4
  //#region src/app/define.ts
package/dist/assets.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { d as Manifest } from "./types-D1lRinVJ.mjs";
1
+ import { d as Manifest } from "./types-D33h-CNj.mjs";
2
2
 
3
3
  //#region src/plugins/assets/scan/cli.d.ts
4
4
  /**
@@ -1,8 +1,8 @@
1
- import { D as DebugSwitches, Dr as Api$2, In as FlowState, Nn as Bookmark, Qr as StoreApi, Xr as Snapshot, Z as Api$1, ft as Captured, li as FrameRate, pi as Time, ti as Api, w as ScenesApi } from "./types-D1lRinVJ.mjs";
2
- import { P as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-Cc7uKiHX.mjs";
3
- import { L as InputApi } from "./types-BMUuyOcm.mjs";
4
- import { t as HeadlessApp } from "./headless-Dasz6dgy.mjs";
5
- import { i as ControlApp, r as Command } from "./types-Btqe51cJ.mjs";
1
+ import { $r as StoreApi, D as DebugSwitches, In as FlowState, Nn as Bookmark, Or as Api$2, Z as Api$1, Zr as Snapshot, ft as Captured, mi as Time, ni as Api, ui as FrameRate, w as ScenesApi } from "./types-D33h-CNj.mjs";
2
+ import { P as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-BrEqXapX.mjs";
3
+ import { L as InputApi } from "./types-DhCTe-kr.mjs";
4
+ import { t as HeadlessApp } from "./headless-rXLWKvZq.mjs";
5
+ import { i as ControlApp, r as Command } from "./types-CSkVNKPZ.mjs";
6
6
 
7
7
  //#region src/plugins/flow/doors/commands.d.ts
8
8
  /**
@@ -1,7 +1,7 @@
1
- import { t as HeadlessApp } from "./headless-Dasz6dgy.mjs";
2
- import { a as InputArguments, c as Ran, n as ChoiceInput, r as Command, s as InputSchema, u as ToggleInput } from "./types-Btqe51cJ.mjs";
3
- import { t as commands } from "./commands-DUco80gt.mjs";
4
- import { t as defineCommand } from "./define-C-EbeoLA.mjs";
1
+ import { t as HeadlessApp } from "./headless-rXLWKvZq.mjs";
2
+ import { a as InputArguments, c as Ran, n as ChoiceInput, r as Command, s as InputSchema, u as ToggleInput } from "./types-CSkVNKPZ.mjs";
3
+ import { t as commands } from "./commands-B05keaNh.mjs";
4
+ import { t as defineCommand } from "./define-C5oKi9M2.mjs";
5
5
 
6
6
  //#region src/plugins/flow/doors/dev.d.ts
7
7
  /**
@@ -1,5 +1,5 @@
1
- import { t as HeadlessApp } from "./headless-Dasz6dgy.mjs";
2
- import { l as Source, r as Command, s as InputSchema } from "./types-Btqe51cJ.mjs";
1
+ import { t as HeadlessApp } from "./headless-rXLWKvZq.mjs";
2
+ import { l as Source, r as Command, s as InputSchema } from "./types-CSkVNKPZ.mjs";
3
3
 
4
4
  //#region src/plugins/flow/doors/define.d.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { In as FlowState, Jn as Answer, Ln as JournalEntry, Vr as Json, ei as RngState, fn as Api$1, si as Api, zn as RouteStep } from "./types-D1lRinVJ.mjs";
1
+ import { Hr as Json, In as FlowState, Jn as Answer, Ln as JournalEntry, ci as Api, fn as Api$1, ti as RngState, zn as RouteStep } from "./types-D33h-CNj.mjs";
2
2
 
3
3
  //#region src/plugins/flow/headless.d.ts
4
4
  /**
@@ -1,6 +1,6 @@
1
- import { $r as RngApi, An as FeaturePlugin, Ar as State$9, Bn as SceneIdOf, C as SceneSpec, Cr as ResourceType, Dr as Api$6, Er as TagType, F as HudPartValue, Ft as PassKind, G as SpriteOptions, Gn as GuideOptions, Gr as Patch, H as ShapeValue, Hn as Descriptor, Hr as Root, Ir as State$2, J as TransformValue, Jn as Answer, K as SpriteValue, Kn as Hint, L as NineSliceValue, Mr as Api$1, Or as Config$9, Pn as DefineNode, Pr as Config$2, Q as Config$6, Qn as Ease, Qr as StoreApi, S as SceneDefinition, Sr as QueryTerm, T as State$7, Tr as SystemFor, Tt as FrameRing, Un as Effect, Ur as State$5, Vr as Json, Wn as EffectOptions, Y as sprite, Z as Api$4, Zn as DescriptionNode, _ as AnySceneProjection, _i as Require, _n as HudKeysOf, _t as ViewportSize, a as Config$1, ai as State$4, ar as ReducedMotion, bn as TextFormatsOf, br as Mut, c as LoadBundles, ci as Config$8, di as State$8, f as ReadyBundles, fi as ThermalReading, fn as Api$2, gi as Events$1, gn as GameTypes, gr as ComponentValue, hi as Config$10, hn as EmitterIdOf, hr as ComponentType, i as BundleSpec, ii as PauseReason, ir as ProjectionSpec, jn as FeatureTree, kn as FeatureDescription, l as LoadReason, m as Tier, mn as Config$3, ni as Config$4, nr as NumericFields, o as DefineBundles, p as State$1, pn as BundlesOf, pr as ComponentHandle, r as BundleMap, ri as Events, rr as ProjectionMotion, si as Api$5, st as State$6, t as Api, ti as Api$3, u as LoadResult, ui as RateChange, v as Config$7, w as ScenesApi, wn as defineFlow, wr as SystemDefinition, wt as FrameRecord, x as LayerMap, xn as TextStylesOf, xr as Narrowed, y as DefineScene, yn as State$3, z as OverlayValue, zr as Config$5 } from "./types-D1lRinVJ.mjs";
2
- import { A as GlowValue, B as Target, C as BlurValue, D as FilterComponent, F as AnimPlayerValue, H as HapticKind, I as Config$11, K as defineAnimation, L as FramesValue, M as OutlineValue, N as UniformDeclaration, O as FilterSpec, P as AnimApi, Q as play, R as MotionKeyframe, S as AlphaValue, T as DisplacementValue, U as SfxDescriptor, W as Step, _ as State$12, a as AudioApi, b as EmitterDefinition, c as MusicDescriptor, d as State$11, f as VolumesFor, h as EffectsApi, j as NoiseValue, k as FilterValueOf, l as MusicOptions, lt as OverlayApi, m as Config$13, n as State$13, r as UiApi, s as Config$12, t as Config$14, w as ColorMatrixValue, x as EmitterValue, y as EmitterConfig, z as State$10 } from "./types-Cc7uKiHX.mjs";
3
- import { $ as Style, A as TextFormats, B as Argument, C as Point, E as TextBind, F as defineComponent, G as Part, H as I18nApi, I as Config$16, J as TextKey, K as State$14, L as InputApi, M as TextStyles, N as TextValue, Q as ResolvedStyle, R as State$15, T as TextApi, U as IntlKit, V as Config$15, W as Message, Y as TypedTr, Z as IsFlags, b as Config$17, g as IntrinsicElementsFor, h as defineTokens, j as TextStyleInput, k as TextFormatFunction, s as PopupComponent, tt as WhenFlags, v as BindField, w as State$16, x as CountdownValue, y as BindOptions } from "./types-BMUuyOcm.mjs";
1
+ import { $n as Ease, $r as StoreApi, An as FeaturePlugin, Bn as SceneIdOf, Br as Config$5, C as SceneSpec, Cr as QueryTerm, Dr as TagType, Er as SystemFor, F as HudPartValue, Fr as Config$2, Ft as PassKind, G as SpriteOptions, Gn as GuideOptions, H as ShapeValue, Hn as Descriptor, Hr as Json, J as TransformValue, K as SpriteValue, Kn as Hint, Kr as Patch, L as NineSliceValue, Lr as State$2, Nr as Api$1, Or as Api$6, Pn as DefineNode, Q as Config$6, Qn as DescriptionNode, S as SceneDefinition, Sr as Narrowed, T as State$7, Tr as SystemDefinition, Tt as FrameRing, Un as Effect, Ur as Root, Wn as EffectOptions, Wr as State$5, Y as sprite, Yn as Answered, Z as Api$4, _ as AnySceneProjection, _i as Events$1, _n as HudKeysOf, _r as ComponentValue, _t as ViewportSize, a as Config$1, ai as PauseReason, ar as ProjectionSpec, bn as TextFormatsOf, c as LoadBundles, ci as Api$5, di as RateChange, ei as RngApi, f as ReadyBundles, fi as State$8, fn as Api$2, gi as Config$10, gn as GameTypes, gr as ComponentType, hn as EmitterIdOf, i as BundleSpec, ii as Events, ir as ProjectionMotion, jn as FeatureTree, jr as State$9, kn as FeatureDescription, kr as Config$9, l as LoadReason, li as Config$8, m as Tier, mn as Config$3, mr as ComponentHandle, ni as Api$3, o as DefineBundles, oi as State$4, or as ReducedMotion, p as State$1, pi as ThermalReading, pn as BundlesOf, r as BundleMap, ri as Config$4, rr as NumericFields, st as State$6, t as Api, u as LoadResult, v as Config$7, vi as Require, w as ScenesApi, wn as defineFlow, wr as ResourceType, wt as FrameRecord, x as LayerMap, xn as TextStylesOf, xr as Mut, y as DefineScene, yn as State$3, z as OverlayValue } from "./types-D33h-CNj.mjs";
2
+ import { A as GlowValue, B as Target, C as BlurValue, D as FilterComponent, F as AnimPlayerValue, H as HapticKind, I as Config$11, K as defineAnimation, L as FramesValue, M as OutlineValue, N as UniformDeclaration, O as FilterSpec, P as AnimApi, Q as play, R as MotionKeyframe, S as AlphaValue, T as DisplacementValue, U as SfxDescriptor, W as Step, _ as State$12, a as AudioApi, b as EmitterDefinition, c as MusicDescriptor, d as State$11, f as VolumesFor, h as EffectsApi, j as NoiseValue, k as FilterValueOf, l as MusicOptions, lt as OverlayApi, m as Config$13, n as State$13, r as UiApi, s as Config$12, t as Config$14, w as ColorMatrixValue, x as EmitterValue, y as EmitterConfig, z as State$10 } from "./types-BrEqXapX.mjs";
3
+ import { $ as Style, A as TextFormats, B as Argument, C as Point, E as TextBind, F as defineComponent, G as Part, H as I18nApi, I as Config$16, J as TextKey, K as State$14, L as InputApi, M as TextStyles, N as TextValue, Q as ResolvedStyle, R as State$15, T as TextApi, U as IntlKit, V as Config$15, W as Message, Y as TypedTr, Z as IsFlags, b as Config$17, g as IntrinsicElementsFor, h as defineTokens, j as TextStyleInput, k as TextFormatFunction, s as PopupComponent, tt as WhenFlags, v as BindField, w as State$16, x as CountdownValue, y as BindOptions } from "./types-DhCTe-kr.mjs";
4
4
  import { Log } from "@moku-labs/common/browser";
5
5
  import { PluginCtx } from "@moku-labs/core";
6
6
 
@@ -1056,6 +1056,24 @@ type IntentValue = {
1056
1056
  intent: string;
1057
1057
  payload: Json;
1058
1058
  };
1059
+ /**
1060
+ * What a `Tappable` carries: an intent and its payload, and `point` to ask for the press point.
1061
+ * With `point: true` a finger tap answers `{ intent, payload: { ...payload, point: { x, y } } }`,
1062
+ * the press-down point in the view's own units, the units of its hit box: (0, 0) the top-left
1063
+ * corner of a ui button, (width, height) its bottom-right. Absent by default, so a view without it
1064
+ * is stored and serialised exactly as before the point existed, and its tap answers the payload as
1065
+ * it is.
1066
+ *
1067
+ * @example
1068
+ * ```ts
1069
+ * const value: TapValue = { intent: "found", payload: { id: "lamp" } };
1070
+ * // A gift sphere that answers where on it the finger landed.
1071
+ * const sphere: TapValue = { intent: "kitTap", payload: {}, point: true };
1072
+ * ```
1073
+ */
1074
+ type TapValue = IntentValue & {
1075
+ /** `true` asks for the press point in the answer; absent (the default) answers the payload as it is. */point?: true;
1076
+ };
1059
1077
  /**
1060
1078
  * A view that can be carried. It names no intent: the drop target does. `carry` lists the
1061
1079
  * projection keys of views of the same projection that ride along on top of it, such as the cards
@@ -1103,9 +1121,10 @@ type PointerValue = {
1103
1121
  id: number;
1104
1122
  };
1105
1123
  /**
1106
- * A tap on this view answers `{ intent, payload }`.
1124
+ * A tap on this view answers `{ intent, payload }`. With `point: true` a finger tap adds the
1125
+ * press point, in the view's own units, to the payload under `point`.
1107
1126
  */
1108
- declare const Tappable: ComponentType<IntentValue>;
1127
+ declare const Tappable: ComponentType<TapValue>;
1109
1128
  /**
1110
1129
  * A long press on this view answers `{ intent, payload }`.
1111
1130
  */
@@ -1928,7 +1947,7 @@ declare function defineGame<Types extends GameTypes>(): {
1928
1947
  defineTokens: typeof defineTokens;
1929
1948
  popup: <Properties extends object, Local extends object, Outcomes extends Record<string, unknown>>(component: PopupComponent<Properties, Local, Outcomes>, props: Properties, options?: {
1930
1949
  over?: string;
1931
- }) => Descriptor<Answer<keyof Outcomes & string>>;
1950
+ }) => Descriptor<Answered<keyof Outcomes & string>>;
1932
1951
  intrinsics: IntrinsicElementsFor<Types["assets"], TextStylesOf<Types>, Extract<keyof Types["strings"], string>>;
1933
1952
  label: (options: Omit<LabelOptions, "style"> & {
1934
1953
  style: TextStylesOf<Types>;
@@ -2056,4 +2075,4 @@ declare const screen: readonly [import("@moku-labs/core").PluginInstance<"world"
2056
2075
  };
2057
2076
  }> & Record<never, never>, import("@moku-labs/core").PluginInstance<"text", Config$17, State$16, TextApi, {}> & Record<never, never>, import("@moku-labs/core").PluginInstance<"ui", Config$14, State$13, UiApi, {}> & Record<never, never>];
2058
2077
  //#endregion
2059
- export { system as $, Draggable as A, Text as At, Touchable as B, AnimPlayer as C, debugPlugin as Ct, defineBundles as D, animPlugin as Dt, defineScene as E, assetsPlugin as Et, PointerOver as F, Exiting as G, Traced as H, Pressable as I, Order as J, Layer as K, Pressed as L, Held as M, defineTextFormats as Mt, Hovered as N, defineTextStyles as Nt, load as O, projection as Ot, Pointer as P, label as Pt, resource as Q, Swipeable as R, defineMotion as S, effectsPlugin as St, Frames as T, audioPlugin as Tt, PASS_KINDS as U, Traceable as V, frameAt as W, component as X, Tree as Y, mut as Z, defineStyle as _, modelPlugin as _t, defineEmitter as a, defineFeature as at, messageDuration as b, i18nPlugin as bt, Alpha as c, uiPlugin as ct, Displacement as d, scenesPlugin as dt, tag as et, Glow as f, rendererPlugin as ft, resolve as g, types_d_exports as gt, music as h, PlatformProvider as ht, screen as i, schedule as it, DropTarget as j, bind as jt, ready as k, Countdown as kt, Blur as l, timePlugin as lt, Outline as m, BackResult as mt, createPlugin as n, guide as nt, Emitter as o, flattenFeatures as ot, Noise as p, platformPlugin as pt, Now as q, defineGame as r, hint as rt, defineFilter as s, worldPlugin as st, createApp as t, defineEffect as tt, ColorMatrix as u, textPlugin as ut, tr as v, lifecyclePlugin as vt, Animation as w, clockPlugin as wt, cubicBezier as x, flowPlugin as xt, messageArgument as y, inputPlugin as yt, Tappable as z };
2078
+ export { resource as $, Draggable as A, Countdown as At, Tappable as B, AnimPlayer as C, effectsPlugin as Ct, defineBundles as D, assetsPlugin as Dt, defineScene as E, audioPlugin as Et, PointerOver as F, label as Ft, frameAt as G, Traceable as H, Pressable as I, Now as J, Exiting as K, Pressed as L, Held as M, bind as Mt, Hovered as N, defineTextFormats as Nt, load as O, animPlugin as Ot, Pointer as P, defineTextStyles as Pt, mut as Q, Swipeable as R, defineMotion as S, flowPlugin as St, Frames as T, clockPlugin as Tt, Traced as U, Touchable as V, PASS_KINDS as W, Tree as X, Order as Y, component as Z, defineStyle as _, types_d_exports as _t, defineEmitter as a, schedule as at, messageDuration as b, inputPlugin as bt, Alpha as c, worldPlugin as ct, Displacement as d, textPlugin as dt, system as et, Glow as f, scenesPlugin as ft, resolve as g, PlatformProvider as gt, music as h, BackResult as ht, screen as i, hint as it, DropTarget as j, Text as jt, ready as k, projection as kt, Blur as l, uiPlugin as lt, Outline as m, platformPlugin as mt, createPlugin as n, defineEffect as nt, Emitter as o, defineFeature as ot, Noise as p, rendererPlugin as pt, Layer as q, defineGame as r, guide as rt, defineFilter as s, flattenFeatures as st, createApp as t, tag as tt, ColorMatrix as u, timePlugin as ut, tr as v, modelPlugin as vt, Animation as w, debugPlugin as wt, cubicBezier as x, i18nPlugin as xt, messageArgument as y, lifecyclePlugin as yt, TapValue as z };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as MonitorConfig, $t as PerfStartupLine, At as OverlayWhat, B as Parent, Bt as PerfCollectorLine, Cn as contribution, Ct as FrameReadout, Dn as to, Dt as MONITOR_SECTIONS, E as types_d_exports$13, En as slot, Et as LongFrameEntry, F as HudPartValue, Ft as PassKind, Gt as PerfGapLine, Ht as PerfDisplay, I as NineSlice, It as PassRecord, Jt as PerfLongFrameLine, Kt as PerfHeaderLine, Lr as types_d_exports$3, Lt as PerfCause, M as WhyEntry, Mt as PERF_GAP_BUCKETS, N as Display, Nt as PERF_LOG_VERSION, On as type, Ot as MonitorSections, P as HudPart, Pt as PROBLEM_RULES, Qt as PerfSpikeLine, R as Overlay, Rt as PerfChange, Sn as types_d_exports$6, St as FrameReadResult, Tn as exit, Tt as FrameRing, U as Sprite, Ut as PerfEventLine, V as Shape, Vt as PerfCounts, W as SpriteBlend, Wr as types_d_exports$10, Wt as PerfEventName, X as AdaptiveScale, Xt as PerfMeasured, Y as sprite, Yn as AnchorTarget, Yr as SaveUnreadableError, Yt as PerfMarkLine, Zn as DescriptionNode, Zt as PerfSampleLine, an as SHADER_WHATS, bt as WhyLive, cn as WarmDetail, dn as DEMAND_REASONS, dt as ShotsConfig, en as PerfTelemetryLine, g as types_d_exports$1, in as ProblemRule, jr as types_d_exports$17, jt as PERF_CAUSES, kt as OverlayEventDetail, ln as CANVAS_RESTARTS, lt as types_d_exports$12, mi as types_d_exports$15, nn as PoolTrimDetail, oi as types_d_exports$9, on as ShaderEventDetail, or as SceneSwitch, ot as PoolTrim, pt as MonitorCounts, q as Transform, qt as PerfLogLine, rn as ProblemEventDetail, sn as ShaderWhat, tn as PerfThermalLine, un as CanvasRestart, ut as ShotsApi, wt as FrameRecord, xt as FrameColumns, yt as RetakeWhy, z as OverlayValue, zt as PerfChangeEntry } from "./types-D1lRinVJ.mjs";
2
- import { $ as sequence, E as FilterArea, G as HAPTIC_KINDS, H as HapticKind, J as frames, K as defineAnimation, Q as play, V as types_d_exports, X as mark, Y as haptic, Z as parallel, at as stopSfx, ct as wait, et as set, i as types_d_exports$16, it as stagger, nt as spawn, ot as tween, p as types_d_exports$2, q as external, rt as spawned, st as use, tt as sfx, ut as types_d_exports$4, v as types_d_exports$5 } from "./types-Cc7uKiHX.mjs";
3
- import { A as TextFormats, D as TextFormat, F as defineComponent, O as TextFormatAnswer, P as types_d_exports$14, S as FormattedNumber, X as types_d_exports$7, d as DebugTrigger, f as LocalWrite, h as defineTokens, k as TextFormatFunction, m as popup, p as ScrollState, u as Box, x as CountdownValue, y as BindOptions, z as types_d_exports$8 } from "./types-BMUuyOcm.mjs";
4
- import { $ as system, A as Draggable, At as Text, B as Touchable, C as AnimPlayer, Ct as debugPlugin, D as defineBundles, Dt as animPlugin, E as defineScene, Et as assetsPlugin, F as PointerOver, G as Exiting, H as Traced, I as Pressable, J as Order, K as Layer, L as Pressed, M as Held, Mt as defineTextFormats, N as Hovered, Nt as defineTextStyles, O as load, Ot as projection, P as Pointer, Pt as label, Q as resource, R as Swipeable, S as defineMotion, St as effectsPlugin, T as Frames, Tt as audioPlugin, U as PASS_KINDS, V as Traceable, W as frameAt, X as component, Y as Tree, Z as mut, _ as defineStyle, _t as modelPlugin, a as defineEmitter, at as defineFeature, b as messageDuration, bt as i18nPlugin, c as Alpha, ct as uiPlugin, d as Displacement, dt as scenesPlugin, et as tag, f as Glow, ft as rendererPlugin, g as resolve, gt as types_d_exports$11, h as music, ht as PlatformProvider, i as screen, it as schedule, j as DropTarget, jt as bind, k as ready, kt as Countdown, l as Blur, lt as timePlugin, m as Outline, mt as BackResult, n as createPlugin, nt as guide, o as Emitter, ot as flattenFeatures, p as Noise, pt as platformPlugin, q as Now, r as defineGame, rt as hint, s as defineFilter, st as worldPlugin, t as createApp, tt as defineEffect, u as ColorMatrix, ut as textPlugin, v as tr, vt as lifecyclePlugin, w as Animation, wt as clockPlugin, x as cubicBezier, xt as flowPlugin, y as messageArgument, yt as inputPlugin, z as Tappable } from "./index-vPc22SoP.mjs";
5
- export { type AdaptiveScale, Alpha, type AnchorTarget, types_d_exports as Anim, AnimPlayer, Animation, types_d_exports$1 as Assets, types_d_exports$2 as Audio, type BackResult, type BindOptions, Blur, Box, CANVAS_RESTARTS, type CanvasRestart, types_d_exports$3 as Clock, ColorMatrix, Countdown, type CountdownValue, DEMAND_REASONS, types_d_exports$4 as Debug, DebugTrigger, type DescriptionNode, Displacement, Display, Draggable, DropTarget, types_d_exports$5 as Effects, Emitter, Exiting, type FilterArea, types_d_exports$6 as Flow, type FormattedNumber, type FrameColumns, type FrameReadResult, type FrameReadout, type FrameRecord, type FrameRing, Frames, Glow, HAPTIC_KINDS, type HapticKind, Held, Hovered, HudPart, type HudPartValue, types_d_exports$7 as I18n, types_d_exports$8 as Input, Layer, types_d_exports$9 as Lifecycle, LocalWrite, type LongFrameEntry, MONITOR_SECTIONS, types_d_exports$10 as Model, type MonitorConfig, type MonitorCounts, type MonitorSections, NineSlice, Noise, Now, Order, Outline, Overlay, type OverlayEventDetail, type OverlayValue, type OverlayWhat, PASS_KINDS, PERF_CAUSES, PERF_GAP_BUCKETS, PERF_LOG_VERSION, PROBLEM_RULES, Parent, type PassKind, type PassRecord, type PerfCause, type PerfChange, type PerfChangeEntry, type PerfCollectorLine, type PerfCounts, type PerfDisplay, type PerfEventLine, type PerfEventName, type PerfGapLine, type PerfHeaderLine, type PerfLogLine, type PerfLongFrameLine, type PerfMarkLine, type PerfMeasured, type PerfSampleLine, type PerfSpikeLine, type PerfStartupLine, type PerfTelemetryLine, type PerfThermalLine, types_d_exports$11 as Platform, type PlatformProvider, Pointer, PointerOver, type PoolTrim, type PoolTrimDetail, Pressable, Pressed, type ProblemEventDetail, type ProblemRule, types_d_exports$12 as Renderer, type RetakeWhy, SHADER_WHATS, SaveUnreadableError, type SceneSwitch, types_d_exports$13 as Scenes, ScrollState, type ShaderEventDetail, type ShaderWhat, Shape, type ShotsApi, type ShotsConfig, Sprite, type SpriteBlend, Swipeable, Tappable, Text, type TextFormat, type TextFormatAnswer, type TextFormatFunction, type TextFormats, types_d_exports$14 as TextTypes, types_d_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_d_exports$16 as Ui, type WarmDetail, type WhyEntry, type WhyLive, types_d_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, contribution, createApp, createPlugin, cubicBezier, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextFormats, defineTextStyles, defineTokens, effectsPlugin, exit, external, flattenFeatures, flowPlugin, frameAt, frames, guide, haptic, hint, i18nPlugin, inputPlugin, label, lifecyclePlugin, load, mark, messageArgument, messageDuration, modelPlugin, music, mut, parallel, platformPlugin, play, popup, projection, ready, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, stopSfx, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
1
+ import { $ as MonitorConfig, $t as PerfStartupLine, At as OverlayWhat, B as Parent, Bt as PerfCollectorLine, Cn as contribution, Ct as FrameReadout, Dn as to, Dt as MONITOR_SECTIONS, E as types_d_exports$13, En as slot, Et as LongFrameEntry, F as HudPartValue, Ft as PassKind, Gr as types_d_exports$10, Gt as PerfGapLine, Ht as PerfDisplay, I as NineSlice, It as PassRecord, Jt as PerfLongFrameLine, Kt as PerfHeaderLine, Lt as PerfCause, M as WhyEntry, Mr as types_d_exports$17, Mt as PERF_GAP_BUCKETS, N as Display, Nt as PERF_LOG_VERSION, On as type, Ot as MonitorSections, P as HudPart, Pt as PROBLEM_RULES, Qn as DescriptionNode, Qt as PerfSpikeLine, R as Overlay, Rr as types_d_exports$3, Rt as PerfChange, Sn as types_d_exports$6, St as FrameReadResult, Tn as exit, Tt as FrameRing, U as Sprite, Ut as PerfEventLine, V as Shape, Vt as PerfCounts, W as SpriteBlend, Wt as PerfEventName, X as AdaptiveScale, Xn as AnchorTarget, Xr as SaveUnreadableError, Xt as PerfMeasured, Y as sprite, Yt as PerfMarkLine, Zt as PerfSampleLine, an as SHADER_WHATS, bt as WhyLive, cn as WarmDetail, dn as DEMAND_REASONS, dt as ShotsConfig, en as PerfTelemetryLine, g as types_d_exports$1, hi as types_d_exports$15, in as ProblemRule, jt as PERF_CAUSES, kt as OverlayEventDetail, ln as CANVAS_RESTARTS, lt as types_d_exports$12, nn as PoolTrimDetail, on as ShaderEventDetail, ot as PoolTrim, pt as MonitorCounts, q as Transform, qt as PerfLogLine, rn as ProblemEventDetail, si as types_d_exports$9, sn as ShaderWhat, sr as SceneSwitch, tn as PerfThermalLine, un as CanvasRestart, ut as ShotsApi, wt as FrameRecord, xt as FrameColumns, yt as RetakeWhy, z as OverlayValue, zt as PerfChangeEntry } from "./types-D33h-CNj.mjs";
2
+ import { $ as sequence, E as FilterArea, G as HAPTIC_KINDS, H as HapticKind, J as frames, K as defineAnimation, Q as play, V as types_d_exports, X as mark, Y as haptic, Z as parallel, at as stopSfx, ct as wait, et as set, i as types_d_exports$16, it as stagger, nt as spawn, ot as tween, p as types_d_exports$2, q as external, rt as spawned, st as use, tt as sfx, ut as types_d_exports$4, v as types_d_exports$5 } from "./types-BrEqXapX.mjs";
3
+ import { A as TextFormats, D as TextFormat, F as defineComponent, O as TextFormatAnswer, P as types_d_exports$14, S as FormattedNumber, X as types_d_exports$7, d as DebugTrigger, f as LocalWrite, h as defineTokens, k as TextFormatFunction, m as popup, p as ScrollState, u as Box, x as CountdownValue, y as BindOptions, z as types_d_exports$8 } from "./types-DhCTe-kr.mjs";
4
+ import { $ as resource, A as Draggable, At as Countdown, B as Tappable, C as AnimPlayer, Ct as effectsPlugin, D as defineBundles, Dt as assetsPlugin, E as defineScene, Et as audioPlugin, F as PointerOver, Ft as label, G as frameAt, H as Traceable, I as Pressable, J as Now, K as Exiting, L as Pressed, M as Held, Mt as bind, N as Hovered, Nt as defineTextFormats, O as load, Ot as animPlugin, P as Pointer, Pt as defineTextStyles, Q as mut, R as Swipeable, S as defineMotion, St as flowPlugin, T as Frames, Tt as clockPlugin, U as Traced, V as Touchable, W as PASS_KINDS, X as Tree, Y as Order, Z as component, _ as defineStyle, _t as types_d_exports$11, a as defineEmitter, at as schedule, b as messageDuration, bt as inputPlugin, c as Alpha, ct as worldPlugin, d as Displacement, dt as textPlugin, et as system, f as Glow, ft as scenesPlugin, g as resolve, gt as PlatformProvider, h as music, ht as BackResult, i as screen, it as hint, j as DropTarget, jt as Text, k as ready, kt as projection, l as Blur, lt as uiPlugin, m as Outline, mt as platformPlugin, n as createPlugin, nt as defineEffect, o as Emitter, ot as defineFeature, p as Noise, pt as rendererPlugin, q as Layer, r as defineGame, rt as guide, s as defineFilter, st as flattenFeatures, t as createApp, tt as tag, u as ColorMatrix, ut as timePlugin, v as tr, vt as modelPlugin, w as Animation, wt as debugPlugin, x as cubicBezier, xt as i18nPlugin, y as messageArgument, yt as lifecyclePlugin, z as TapValue } from "./index-DuiCPP3n.mjs";
5
+ export { type AdaptiveScale, Alpha, type AnchorTarget, types_d_exports as Anim, AnimPlayer, Animation, types_d_exports$1 as Assets, types_d_exports$2 as Audio, type BackResult, type BindOptions, Blur, Box, CANVAS_RESTARTS, type CanvasRestart, types_d_exports$3 as Clock, ColorMatrix, Countdown, type CountdownValue, DEMAND_REASONS, types_d_exports$4 as Debug, DebugTrigger, type DescriptionNode, Displacement, Display, Draggable, DropTarget, types_d_exports$5 as Effects, Emitter, Exiting, type FilterArea, types_d_exports$6 as Flow, type FormattedNumber, type FrameColumns, type FrameReadResult, type FrameReadout, type FrameRecord, type FrameRing, Frames, Glow, HAPTIC_KINDS, type HapticKind, Held, Hovered, HudPart, type HudPartValue, types_d_exports$7 as I18n, types_d_exports$8 as Input, Layer, types_d_exports$9 as Lifecycle, LocalWrite, type LongFrameEntry, MONITOR_SECTIONS, types_d_exports$10 as Model, type MonitorConfig, type MonitorCounts, type MonitorSections, NineSlice, Noise, Now, Order, Outline, Overlay, type OverlayEventDetail, type OverlayValue, type OverlayWhat, PASS_KINDS, PERF_CAUSES, PERF_GAP_BUCKETS, PERF_LOG_VERSION, PROBLEM_RULES, Parent, type PassKind, type PassRecord, type PerfCause, type PerfChange, type PerfChangeEntry, type PerfCollectorLine, type PerfCounts, type PerfDisplay, type PerfEventLine, type PerfEventName, type PerfGapLine, type PerfHeaderLine, type PerfLogLine, type PerfLongFrameLine, type PerfMarkLine, type PerfMeasured, type PerfSampleLine, type PerfSpikeLine, type PerfStartupLine, type PerfTelemetryLine, type PerfThermalLine, types_d_exports$11 as Platform, type PlatformProvider, Pointer, PointerOver, type PoolTrim, type PoolTrimDetail, Pressable, Pressed, type ProblemEventDetail, type ProblemRule, types_d_exports$12 as Renderer, type RetakeWhy, SHADER_WHATS, SaveUnreadableError, type SceneSwitch, types_d_exports$13 as Scenes, ScrollState, type ShaderEventDetail, type ShaderWhat, Shape, type ShotsApi, type ShotsConfig, Sprite, type SpriteBlend, Swipeable, type TapValue, Tappable, Text, type TextFormat, type TextFormatAnswer, type TextFormatFunction, type TextFormats, types_d_exports$14 as TextTypes, types_d_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_d_exports$16 as Ui, type WarmDetail, type WhyEntry, type WhyLive, types_d_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, contribution, createApp, createPlugin, cubicBezier, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextFormats, defineTextStyles, defineTokens, effectsPlugin, exit, external, flattenFeatures, flowPlugin, frameAt, frames, guide, haptic, hint, i18nPlugin, inputPlugin, label, lifecyclePlugin, load, mark, messageArgument, messageDuration, modelPlugin, music, mut, parallel, platformPlugin, play, popup, projection, ready, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, stopSfx, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as sfx, $t as worldPlugin, A as types_exports$7, At as Glow, B as defineMotion, Bt as Animation, C as types_exports$14, Ct as messageDuration, D as types_exports$10, Dt as Blur, E as types_exports$11, Et as Alpha, F as types_exports$2, Ft as audioPlugin, G as external, Gt as MONITOR_SECTIONS, H as platformPlugin, Ht as rendererPlugin, I as types_exports$1, It as scenesPlugin, J as mark, Jt as PERF_LOG_VERSION, K as frames, Kt as PERF_CAUSES, L as types_exports, Lt as assetsPlugin, M as types_exports$5, Mt as Outline, N as types_exports$4, Nt as defineFilter, O as types_exports$9, Ot as ColorMatrix, P as types_exports$3, Pt as debugPlugin, Q as set, Qt as DEMAND_REASONS, R as uiPlugin, Rt as animPlugin, S as types_exports$15, St as messageArgument, T as types_exports$12, Tt as Emitter, U as HAPTIC_KINDS, Ut as PASS_KINDS, V as textPlugin, Vt as Frames, W as defineAnimation, Wt as frameAt, X as play, Xt as SHADER_WHATS, Y as parallel, Yt as PROBLEM_RULES, Z as sequence, Zt as CANVAS_RESTARTS, _ as defineBundles, _t as Tappable, a as cubicBezier, an as to, at as use, b as types_exports$17, bt as Traced, c as hint, cn as SaveUnreadableError, ct as Draggable, d as defineScene, dn as clockPlugin, dt as Hovered, en as flowPlugin, et as spawn, f as tr, ft as Pointer, g as music, gt as Swipeable, h as defineEmitter, ht as Pressed, i as screen, in as slot, it as tween, j as types_exports$6, jt as Noise, k as types_exports$8, kt as Displacement, l as schedule, ln as lifecyclePlugin, lt as DropTarget, m as flattenFeatures, mt as Pressable, n as createPlugin, nn as contribution, nt as stagger, o as defineEffect, on as type, ot as wait, p as defineFeature, pt as PointerOver, q as haptic, qt as PERF_GAP_BUCKETS, r as defineGame, rn as exit, rt as stopSfx, s as guide, sn as modelPlugin, st as inputPlugin, t as createApp, tt as spawned, u as projection, un as timePlugin, ut as Held, v as load, vt as Touchable, w as types_exports$13, wt as effectsPlugin, x as types_exports$16, xt as i18nPlugin, y as ready, yt as Traceable, z as resolve, zt as AnimPlayer } from "./src-BBJh9Uxh.mjs";
2
- import { $ as Shape, A as Countdown, F as defineTextStyles, I as label, J as HudPart, M as bind, P as defineTextFormats, Q as Parent, S as popup, T as defineStyle, X as Overlay, Y as NineSlice, _ as LocalWrite, at as Exiting, ct as Order, dt as mut, et as Sprite, ft as resource, h as DebugTrigger, ht as tag, it as sprite, j as Text, lt as Tree, ot as Layer, p as Box, pt as system, q as Display, st as Now, tt as Transform, ut as component, w as defineTokens, y as ScrollState } from "./visual-CULAJg6b.mjs";
1
+ import { $ as sfx, $t as worldPlugin, A as types_exports$7, At as Glow, B as defineMotion, Bt as Animation, C as types_exports$14, Ct as messageDuration, D as types_exports$10, Dt as Blur, E as types_exports$11, Et as Alpha, F as types_exports$2, Ft as audioPlugin, G as external, Gt as MONITOR_SECTIONS, H as platformPlugin, Ht as rendererPlugin, I as types_exports$1, It as scenesPlugin, J as mark, Jt as PERF_LOG_VERSION, K as frames, Kt as PERF_CAUSES, L as types_exports, Lt as assetsPlugin, M as types_exports$5, Mt as Outline, N as types_exports$4, Nt as defineFilter, O as types_exports$9, Ot as ColorMatrix, P as types_exports$3, Pt as debugPlugin, Q as set, Qt as DEMAND_REASONS, R as uiPlugin, Rt as animPlugin, S as types_exports$15, St as messageArgument, T as types_exports$12, Tt as Emitter, U as HAPTIC_KINDS, Ut as PASS_KINDS, V as textPlugin, Vt as Frames, W as defineAnimation, Wt as frameAt, X as play, Xt as SHADER_WHATS, Y as parallel, Yt as PROBLEM_RULES, Z as sequence, Zt as CANVAS_RESTARTS, _ as defineBundles, _t as Tappable, a as cubicBezier, an as to, at as use, b as types_exports$17, bt as Traced, c as hint, cn as SaveUnreadableError, ct as Draggable, d as defineScene, dn as clockPlugin, dt as Hovered, en as flowPlugin, et as spawn, f as tr, ft as Pointer, g as music, gt as Swipeable, h as defineEmitter, ht as Pressed, i as screen, in as slot, it as tween, j as types_exports$6, jt as Noise, k as types_exports$8, kt as Displacement, l as schedule, ln as lifecyclePlugin, lt as DropTarget, m as flattenFeatures, mt as Pressable, n as createPlugin, nn as contribution, nt as stagger, o as defineEffect, on as type, ot as wait, p as defineFeature, pt as PointerOver, q as haptic, qt as PERF_GAP_BUCKETS, r as defineGame, rn as exit, rt as stopSfx, s as guide, sn as modelPlugin, st as inputPlugin, t as createApp, tt as spawned, u as projection, un as timePlugin, ut as Held, v as load, vt as Touchable, w as types_exports$13, wt as effectsPlugin, x as types_exports$16, xt as i18nPlugin, y as ready, yt as Traceable, z as resolve, zt as AnimPlayer } from "./src-CkBzjWRd.mjs";
2
+ import { $ as Shape, A as Countdown, F as defineTextStyles, I as label, J as HudPart, M as bind, P as defineTextFormats, Q as Parent, S as popup, T as defineStyle, X as Overlay, Y as NineSlice, _ as LocalWrite, at as Exiting, ct as Order, dt as mut, et as Sprite, ft as resource, h as DebugTrigger, ht as tag, it as sprite, j as Text, lt as Tree, ot as Layer, p as Box, pt as system, q as Display, st as Now, tt as Transform, ut as component, w as defineTokens, y as ScrollState } from "./visual-Cl7Q7pO9.mjs";
3
3
  import { t as defineComponent } from "./component-DGg5DqKK.mjs";
4
4
  export { Alpha, types_exports as Anim, AnimPlayer, Animation, types_exports$1 as Assets, types_exports$2 as Audio, Blur, Box, CANVAS_RESTARTS, types_exports$3 as Clock, ColorMatrix, Countdown, DEMAND_REASONS, types_exports$4 as Debug, DebugTrigger, Displacement, Display, Draggable, DropTarget, types_exports$5 as Effects, Emitter, Exiting, types_exports$6 as Flow, Frames, Glow, HAPTIC_KINDS, Held, Hovered, HudPart, types_exports$7 as I18n, types_exports$8 as Input, Layer, types_exports$9 as Lifecycle, LocalWrite, MONITOR_SECTIONS, types_exports$10 as Model, NineSlice, Noise, Now, Order, Outline, Overlay, PASS_KINDS, PERF_CAUSES, PERF_GAP_BUCKETS, PERF_LOG_VERSION, PROBLEM_RULES, Parent, types_exports$11 as Platform, Pointer, PointerOver, Pressable, Pressed, types_exports$12 as Renderer, SHADER_WHATS, SaveUnreadableError, types_exports$13 as Scenes, ScrollState, Shape, Sprite, Swipeable, Tappable, Text, types_exports$14 as TextTypes, types_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_exports$16 as Ui, types_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, contribution, createApp, createPlugin, cubicBezier, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextFormats, defineTextStyles, defineTokens, effectsPlugin, exit, external, flattenFeatures, flowPlugin, frameAt, frames, guide, haptic, hint, i18nPlugin, inputPlugin, label, lifecyclePlugin, load, mark, messageArgument, messageDuration, modelPlugin, music, mut, parallel, platformPlugin, play, popup, projection, ready, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, stopSfx, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
@@ -1,9 +1,9 @@
1
- import { Dr as Api$1, Fn as FlowGraph, Ln as JournalEntry, Rr as Api, Xr as Snapshot, Z as Api$2, ct as Under, h as Usage, kr as Explained, mr as ComponentSchema, mt as RenderStats, t as Api$3, vn as Position, vr as EntitySnapshot, yr as FrameDiff } from "./types-D1lRinVJ.mjs";
2
- import { a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-Cc7uKiHX.mjs";
3
- import { c as UiNode } from "./types-BMUuyOcm.mjs";
4
- import { t as HeadlessApp } from "./headless-Dasz6dgy.mjs";
5
- import { a as InputArguments, d as WatchApp, f as WatchInput, l as Source, o as InputOf, s as InputSchema, t as CheatEntry } from "./types-Btqe51cJ.mjs";
6
- import { n as defineSource } from "./define-C-EbeoLA.mjs";
1
+ import { Ar as Explained, Fn as FlowGraph, Ln as JournalEntry, Or as Api$1, Z as Api$2, Zr as Snapshot, br as FrameDiff, ct as Under, h as Usage, hr as ComponentSchema, mt as RenderStats, t as Api$3, vn as Position, yr as EntitySnapshot, zr as Api } from "./types-D33h-CNj.mjs";
2
+ import { a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-BrEqXapX.mjs";
3
+ import { c as UiNode } from "./types-DhCTe-kr.mjs";
4
+ import { t as HeadlessApp } from "./headless-rXLWKvZq.mjs";
5
+ import { a as InputArguments, d as WatchApp, f as WatchInput, l as Source, o as InputOf, s as InputSchema, t as CheatEntry } from "./types-CSkVNKPZ.mjs";
6
+ import { n as defineSource } from "./define-C5oKi9M2.mjs";
7
7
 
8
8
  //#region src/plugins/flow/doors/read.d.ts
9
9
  /**
package/dist/inspect.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
  import { c as defineSource } from "./session-D0AYRm5T.mjs";
2
- import { n as read, r as watch, t as sources } from "./sources-kL64Svgl.mjs";
2
+ import { n as read, r as watch, t as sources } from "./sources-DIl02J8z.mjs";
3
3
  import "./inspect-la_KkjCS.mjs";
4
4
  export { defineSource, read, sources, watch };
@@ -1,2 +1,2 @@
1
- import { a as jsxs, i as jsxDEV, n as JSX, r as jsx, t as Fragment } from "./runtime-CW4HJWqC.mjs";
1
+ import { a as jsxs, i as jsxDEV, n as JSX, r as jsx, t as Fragment } from "./runtime-DGpGGQAh.mjs";
2
2
  export { Fragment, type JSX, jsx, jsxDEV, jsxs };
@@ -1,2 +1,2 @@
1
- import { a as jsxs, n as JSX, r as jsx, t as Fragment } from "./runtime-CW4HJWqC.mjs";
1
+ import { a as jsxs, n as JSX, r as jsx, t as Fragment } from "./runtime-DGpGGQAh.mjs";
2
2
  export { Fragment, type JSX, jsx, jsxs };
@@ -1,4 +1,4 @@
1
- import { _ as UiIntrinsicElements, a as JsxChild, t as DescriptionNode } from "./types-BMUuyOcm.mjs";
1
+ import { _ as UiIntrinsicElements, a as JsxChild, t as DescriptionNode } from "./types-DhCTe-kr.mjs";
2
2
 
3
3
  //#region src/plugins/ui/jsx/runtime.d.ts
4
4
  /** What the compiler passes as props: the children plus whatever the tag declared. */
@@ -1,4 +1,4 @@
1
- import { $ as Shape, H as parentOf, K as rootPoseOf, Y as NineSlice, i as drawnRect, ot as Layer, p as Box } from "./visual-CULAJg6b.mjs";
1
+ import { $ as Shape, H as parentOf, K as rootPoseOf, Y as NineSlice, i as drawnRect, ot as Layer, p as Box } from "./visual-Cl7Q7pO9.mjs";
2
2
  import { o as notInstalled } from "./dev-BNndV-hU.mjs";
3
3
  import { a as readTarget, c as defineSource, l as inputSchema, n as isTainted, o as inputOrEmpty, t as cheatsOf } from "./session-D0AYRm5T.mjs";
4
4
  //#region src/plugins/flow/doors/read.ts
@@ -2,7 +2,7 @@ import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
2
2
  import { r as systemSource, t as memory } from "./memory-CWlqhS7l.mjs";
3
3
  import { a as finishDrafts, i as enableDraftPatches, n as deepFreeze$1, o as openDrafts, r as dropDrafts } from "./drafts-BawpSaVp.mjs";
4
4
  import { _ as compact, c as collectFlows, d as findNode, f as framePath, g as slotNames, h as restlessCapOf, i as servePaused, l as describeGraph, m as isRestCheckpoint, n as captureFrame, o as epochOf, p as graphHash, r as serveCaptures, s as pageNow$1, t as cancelCaptures, v as pushEntry } from "./capture-BtS6_oWr.mjs";
5
- import { $ as Shape, A as Countdown, B as isLeaving, C as uiFor, D as isTextFormat, E as formatBound, G as rootPoseInto, H as parentOf$1, J as HudPart, K as rootPoseOf, L as readStyle, N as builtInStyles, O as unitOf, Q as Parent, R as textFor, U as poseUnder, V as localPoseOf, W as rootPointOf, X as Overlay, Y as NineSlice, Z as OverlayLevel, _ as LocalWrite, a as fieldsLeftAlone, at as Exiting, b as UI_OWNER, c as namesFormat, ct as Order, d as visualOf$1, et as Sprite, f as visualRectOf, ft as resource, g as Escapable, h as DebugTrigger, ht as tag, i as drawnRect, j as Text, k as wholeValue, l as restValueOf, lt as Tree, m as Covered, mt as systemsFor, n as CONTENT$1, nt as arcDefaults, o as fitScaleOf, ot as Layer, p as Box, pt as system, q as Display, r as bindOf, rt as componentsFor, s as livePatch, st as Now, tt as Transform, u as samePose, ut as component, v as Scroll, x as UiCounters, y as ScrollState, z as applyPose } from "./visual-CULAJg6b.mjs";
5
+ import { $ as Shape, A as Countdown, B as isLeaving, C as uiFor, D as isTextFormat, E as formatBound, G as rootPoseInto, H as parentOf$1, J as HudPart, K as rootPoseOf, L as readStyle, N as builtInStyles, O as unitOf, Q as Parent, R as textFor, U as poseUnder, V as localPoseOf, W as rootPointOf, X as Overlay, Y as NineSlice, Z as OverlayLevel, _ as LocalWrite, a as fieldsLeftAlone, at as Exiting, b as UI_OWNER, c as namesFormat, ct as Order, d as visualOf$1, et as Sprite, f as visualRectOf, ft as resource, g as Escapable, h as DebugTrigger, ht as tag, i as drawnRect, j as Text, k as wholeValue, l as restValueOf, lt as Tree, m as Covered, mt as systemsFor, n as CONTENT$1, nt as arcDefaults, o as fitScaleOf, ot as Layer, p as Box, pt as system, q as Display, r as bindOf, rt as componentsFor, s as livePatch, st as Now, tt as Transform, u as samePose, ut as component, v as Scroll, x as UiCounters, y as ScrollState, z as applyPose } from "./visual-Cl7Q7pO9.mjs";
6
6
  import { a as isDev } from "./dev-BNndV-hU.mjs";
7
7
  import { n as isComponentDefinition } from "./component-DGg5DqKK.mjs";
8
8
  import { n as flatten } from "./flatten-nUX9PpGo.mjs";
@@ -3169,19 +3169,24 @@ function beginGuide(state, signal) {
3169
3169
  }
3170
3170
  /**
3171
3171
  * Opens the gate for a descriptor that carries `answers` and resolves with the player's answer in
3172
- * both modes. In live mode the handler is called as well: it only shows the UI, the answer comes
3173
- * through the gate, so its failure is logged and does not block the node. Its signal ends with the
3174
- * answer — that is how the popup layer knows to unmount what it showed.
3172
+ * both modes, stamped with `at`: `clock.now()` read when the gate's answer arrives, not when the
3173
+ * gate opened. The spread keeps a payload-less answer without a `payload` key, and `at` replaces
3174
+ * one a caller put on the answer. In live mode the handler is called as well: it only shows the UI,
3175
+ * the answer comes through the gate, so its failure is logged and does not block the node. Its
3176
+ * signal ends with the answer — that is how the popup layer knows to unmount what it showed.
3175
3177
  *
3176
3178
  * @param ctx - Domain context of the flow plugin.
3177
3179
  * @param gate - Internal gate API.
3178
3180
  * @param descriptor - The awaited descriptor.
3179
3181
  * @param answers - Intents the gate accepts while the effect runs.
3180
3182
  * @param signal - The node's abort signal.
3181
- * @returns The answer the gate accepted.
3183
+ * @returns The answer the gate accepted, with the moment it arrived.
3182
3184
  */
3183
3185
  function openForAnswers(ctx, gate, descriptor, answers, signal) {
3184
- const answered = gate.open({ allowed: answers });
3186
+ const answered = gate.open({ allowed: answers }).then((answer) => ({
3187
+ ...answer,
3188
+ at: ctx.deps.clock.now()
3189
+ }));
3185
3190
  if (ctx.state.fx.mode !== "live") return answered;
3186
3191
  const shown = childOf(signal);
3187
3192
  invoke(ctx.state.fx, ctx.log, descriptor, shown.signal);
@@ -54393,6 +54398,22 @@ function intentDefaults() {
54393
54398
  };
54394
54399
  }
54395
54400
  /**
54401
+ * Fresh defaults for `Tappable`: an intent and a payload, and no `point` key, so a view that does
54402
+ * not ask for the press point stores and serialises as before.
54403
+ *
54404
+ * @returns An empty intent and an empty payload.
54405
+ * @example
54406
+ * ```ts
54407
+ * tapDefaults(); // { intent: "", payload: {} }
54408
+ * ```
54409
+ */
54410
+ function tapDefaults() {
54411
+ return {
54412
+ intent: "",
54413
+ payload: {}
54414
+ };
54415
+ }
54416
+ /**
54396
54417
  * Fresh defaults for the one component that carries a payload without an intent.
54397
54418
  *
54398
54419
  * @returns An empty payload and nothing carried along.
@@ -54416,9 +54437,10 @@ const pointerDefaults = {
54416
54437
  id: -1
54417
54438
  };
54418
54439
  /**
54419
- * A tap on this view answers `{ intent, payload }`.
54440
+ * A tap on this view answers `{ intent, payload }`. With `point: true` a finger tap adds the
54441
+ * press point, in the view's own units, to the payload under `point`.
54420
54442
  */
54421
- const Tappable = /*#__PURE__*/ component("Tappable", intentDefaults());
54443
+ const Tappable = /*#__PURE__*/ component("Tappable", tapDefaults());
54422
54444
  /**
54423
54445
  * A long press on this view answers `{ intent, payload }`.
54424
54446
  */
@@ -54559,21 +54581,37 @@ function asRecord(payload) {
54559
54581
  return payload;
54560
54582
  }
54561
54583
  /**
54562
- * Builds the answer of a tap or of a long press: the component's own intent and payload.
54584
+ * Builds the answer of a tap or of a long press: the component's own intent and payload. A
54585
+ * `Tappable` with `point: true` given a point adds it to the payload under `point`, which wins a
54586
+ * payload key of that name; a payload that is not an object becomes `{}` first. Without the flag
54587
+ * or without a point the answer carries the payload as it is: no copy, no `point` key.
54563
54588
  *
54564
54589
  * @param gesture - The `Tappable` or `Pressable` value of the view.
54590
+ * @param point - The press point in the view's own units; only a flagged view reads it.
54565
54591
  * @returns The answer to hand to the gate.
54566
54592
  * @example
54567
54593
  * ```ts
54568
54594
  * tapAnswer({ intent: "found", payload: { id: "lamp" } });
54569
54595
  * // { intent: "found", payload: { id: "lamp" } }
54596
+ * tapAnswer({ intent: "kitTap", payload: { kit: "k1" }, point: true }, { x: 10, y: 60 });
54597
+ * // { intent: "kitTap", payload: { kit: "k1", point: { x: 10, y: 60 } } }
54570
54598
  * ```
54571
54599
  */
54572
- function tapAnswer(gesture) {
54573
- return {
54600
+ function tapAnswer(gesture, point) {
54601
+ if (gesture.point !== true || point === void 0) return {
54574
54602
  intent: gesture.intent,
54575
54603
  payload: gesture.payload
54576
54604
  };
54605
+ return {
54606
+ intent: gesture.intent,
54607
+ payload: {
54608
+ ...asRecord(gesture.payload),
54609
+ point: {
54610
+ x: point.x,
54611
+ y: point.y
54612
+ }
54613
+ }
54614
+ };
54577
54615
  }
54578
54616
  /**
54579
54617
  * Builds the answer of a drop: the drop TARGET names the intent, and its payload wins a key the
@@ -56044,6 +56082,30 @@ function onMove(ctx, point) {
56044
56082
  ctx.state.phase = "dragging";
56045
56083
  }
56046
56084
  /**
56085
+ * The press-down point in the view's own units, the units of its hit box, brought through its
56086
+ * `Transform` and `Parent` chain as the trace hit test does. Only a `Tappable` with `point: true`
56087
+ * asks for it, so a view without the flag allocates nothing here.
56088
+ *
56089
+ * @param ctx - Domain context of the input plugin.
56090
+ * @param entity - The tapped view.
56091
+ * @param tappable - Its `Tappable` value.
56092
+ * @returns The local press point, or `undefined` for a view that does not ask for it.
56093
+ */
56094
+ function pressPointOf(ctx, entity, tappable) {
56095
+ if (tappable.point !== true) return void 0;
56096
+ const { start } = ctx.state;
56097
+ return localPoseOf(ctx.deps.world.ecs, entity, {
56098
+ x: start.x,
56099
+ y: start.y,
56100
+ rotation: 0,
56101
+ scale: 1,
56102
+ pivot: {
56103
+ x: 0,
56104
+ y: 0
56105
+ }
56106
+ });
56107
+ }
56108
+ /**
56047
56109
  * Answers the release of a press: a tap when the finger stayed inside the slop, a swipe when it
56048
56110
  * went far enough and fast enough. Neither: nothing happened, and nothing has to be undone. Every
56049
56111
  * release inside the slop runs the `onTap` listeners first, so a view that carries only
@@ -56062,7 +56124,7 @@ function answerRelease(ctx, entity, point) {
56062
56124
  notifyTap(ctx, entity);
56063
56125
  const tappable = ecs.get(entity, Tappable);
56064
56126
  if (tappable !== void 0) {
56065
- submit(ctx, entity, tapAnswer(tappable));
56127
+ submit(ctx, entity, tapAnswer(tappable, pressPointOf(ctx, entity, tappable)));
56066
56128
  return;
56067
56129
  }
56068
56130
  if (!ecs.has(entity, Transform)) lostPress(ctx, "view-gone");
@@ -56588,13 +56650,15 @@ function answerIntent(ctx, target, component) {
56588
56650
  /**
56589
56651
  * Taps a view the way the finger does: the `onTap` listeners run first, then the `Tappable` is
56590
56652
  * answered. A view that carries only `Touchable` reaches the listeners and answers nothing, which
56591
- * is what a ui button with local state does, so it is not reported as a mistake.
56653
+ * is what a ui button with local state does, so it is not reported as a mistake. A given point is
56654
+ * already in the view's own units and reaches the answer as it is, on a view that asks for it.
56592
56655
  *
56593
56656
  * @param ctx - Domain context of the input plugin.
56594
56657
  * @param target - What the caller pointed at.
56658
+ * @param point - The press point in the view's own units, or `undefined`.
56595
56659
  * @returns What `flow.gate.answer` returned.
56596
56660
  */
56597
- function answerTap(ctx, target) {
56661
+ function answerTap(ctx, target, point) {
56598
56662
  const entity = resolveTarget(ctx, target);
56599
56663
  if (entity === void 0) {
56600
56664
  ctx.log.warn("input: target has no Tappable", { target });
@@ -56606,7 +56670,7 @@ function answerTap(ctx, target) {
56606
56670
  if (!ctx.deps.world.ecs.has(entity, Touchable)) ctx.log.warn("input: target has no Tappable", { target });
56607
56671
  return false;
56608
56672
  }
56609
- return submit(ctx, entity, tapAnswer(tappable));
56673
+ return submit(ctx, entity, tapAnswer(tappable, point));
56610
56674
  }
56611
56675
  /**
56612
56676
  * Answers a drop: the source brings the payload, the destination names the intent.
@@ -56672,7 +56736,7 @@ function answerTrace(ctx, path) {
56672
56736
  function createInputApi(ctx) {
56673
56737
  const inputCtx = withDeps$2(ctx);
56674
56738
  return {
56675
- tap: (target) => answerTap(inputCtx, target),
56739
+ tap: (target, point) => answerTap(inputCtx, target, point),
56676
56740
  press: (target) => answerIntent(inputCtx, target, Pressable),
56677
56741
  drag: (from, to) => answerDrop(inputCtx, from, to),
56678
56742
  swipe: (target, direction) => answerSwipe(inputCtx, target, direction),
@@ -65454,8 +65518,8 @@ const CONTENT_ROW_STYLE = Object.freeze({
65454
65518
  });
65455
65519
  /**
65456
65520
  * The props, besides `style`, `state` and `content`, that a live element is written from: `bind`,
65457
- * `texture`, `name` and `fit` reach its visual, `intent`, `payload`, `local` and `escape` its
65458
- * input, `components` its extras and `motion` its hooks. Every other prop is read from the node
65521
+ * `texture`, `name` and `fit` reach its visual, `intent`, `payload`, `point`, `local` and `escape`
65522
+ * its input, `components` its extras and `motion` its hooks. Every other prop is read from the node
65459
65523
  * where it is used, at every patch: `hosts`, the props of a windowed scroll, the props of a text
65460
65524
  * field, and the children.
65461
65525
  */
@@ -65468,6 +65532,7 @@ const WRITTEN = [
65468
65532
  "motion",
65469
65533
  "intent",
65470
65534
  "payload",
65535
+ "point",
65471
65536
  "local",
65472
65537
  "escape"
65473
65538
  ];
@@ -65598,7 +65663,9 @@ function checkTag(node) {
65598
65663
  }
65599
65664
  /**
65600
65665
  * What a button that answers carries: `Tappable` with its intent, or `Touchable` and
65601
- * `LocalWrite` with its patch, or `Touchable` alone when it names neither.
65666
+ * `LocalWrite` with its patch, or `Touchable` alone when it names neither. `point={true}` beside
65667
+ * the intent writes `point: true` into `Tappable`; any other value writes no `point` key, never
65668
+ * `false` or `undefined`, so a button without it stores and serialises as before.
65602
65669
  *
65603
65670
  * @param node - The node of the button.
65604
65671
  * @returns The component values.
@@ -65606,10 +65673,17 @@ function checkTag(node) {
65606
65673
  function answerOf(node) {
65607
65674
  const intent = node.props.intent;
65608
65675
  const local = node.props.local;
65609
- if (typeof intent === "string") return [Tappable({
65610
- intent,
65611
- payload: node.props.payload ?? {}
65612
- })];
65676
+ if (typeof intent === "string") {
65677
+ const payload = node.props.payload ?? {};
65678
+ return [node.props.point === true ? Tappable({
65679
+ intent,
65680
+ payload,
65681
+ point: true
65682
+ }) : Tappable({
65683
+ intent,
65684
+ payload
65685
+ })];
65686
+ }
65613
65687
  if (typeof local === "object" && local !== null) return [Touchable(), LocalWrite({ patch: local })];
65614
65688
  return [Touchable()];
65615
65689
  }
@@ -66237,15 +66311,28 @@ function createReconciler(ctx, modules, fields) {
66237
66311
  if (others !== void 0) ecs.set(element.entity, asHandle(type), others);
66238
66312
  }
66239
66313
  /**
66314
+ * Tells whether a value is the `Tappable` of a button that stopped asking for its press point
66315
+ * while the entity still carries `point: true`. A patch keeps the fields it leaves out, so that
66316
+ * value replaces the stored one whole.
66317
+ *
66318
+ * @param entity - The element's entity.
66319
+ * @param value - The value of this render.
66320
+ * @returns True when the stored `Tappable` has the flag and the new one has not.
66321
+ */
66322
+ function dropsPoint(entity, value) {
66323
+ if (value.type !== Tappable || value.value === true) return false;
66324
+ return ecs.get(entity, Tappable)?.point === true && !("point" in value.value);
66325
+ }
66326
+ /**
66240
66327
  * Writes one visual or input value onto a live element: added when the entity lacks it, else
66241
66328
  * its fields patched, but never a tag or the state of a scroll, and never a field its type gives
66242
- * to a plugin.
66329
+ * to a plugin. A `Tappable` that drops `point` is added again: it replaces the stored one whole.
66243
66330
  *
66244
66331
  * @param element - The live element.
66245
66332
  * @param value - The value of this render.
66246
66333
  */
66247
66334
  function writeValue(element, value) {
66248
- if (!ecs.has(element.entity, value.type)) {
66335
+ if (!ecs.has(element.entity, value.type) || dropsPoint(element.entity, value)) {
66249
66336
  ecs.add(element.entity, value);
66250
66337
  return;
66251
66338
  }
@@ -1,7 +1,7 @@
1
- import { An as FeaturePlugin, Fr as FakeClock, Hn as Descriptor, Kn as Hint, Mn as AnyFlow, Nr as ClockSource, Rn as NodeTable, Vr as Json, qn as NodeFx } from "./types-D1lRinVJ.mjs";
2
- import { t as createApp } from "./index-vPc22SoP.mjs";
3
- import { b as memory, x as saveOf, y as WithGameState } from "./types-CNNxfAsF.mjs";
4
- import { a as createHeadless, i as ReproResult, n as HeadlessGame, o as runRepro, r as Repro, s as stepFrames, t as HeadlessApp } from "./headless-Dasz6dgy.mjs";
1
+ import { An as FeaturePlugin, Hn as Descriptor, Hr as Json, Ir as FakeClock, Kn as Hint, Mn as AnyFlow, Pr as ClockSource, Rn as NodeTable, qn as NodeFx } from "./types-D33h-CNj.mjs";
2
+ import { t as createApp } from "./index-DuiCPP3n.mjs";
3
+ import { b as memory, x as saveOf, y as WithGameState } from "./types-CA98KS-U.mjs";
4
+ import { a as createHeadless, i as ReproResult, n as HeadlessGame, o as runRepro, r as Repro, s as stepFrames, t as HeadlessApp } from "./headless-rXLWKvZq.mjs";
5
5
  import { AnyPluginInstance } from "@moku-labs/core";
6
6
 
7
7
  //#region src/plugins/clock/fake.d.ts
package/dist/testing.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { m as flattenFeatures, on as type, rn as exit, t as createApp, tn as refuseStart } from "./src-BBJh9Uxh.mjs";
1
+ import { m as flattenFeatures, on as type, rn as exit, t as createApp, tn as refuseStart } from "./src-CkBzjWRd.mjs";
2
2
  import { n as saveOf, t as memory } from "./memory-CWlqhS7l.mjs";
3
3
  import { n as fakeClock } from "./fake-hnJcJeYf.mjs";
4
4
  import { i as stepFrames, r as runRepro, t as createHeadless } from "./headless-CCiUwvlp.mjs";
@@ -1,5 +1,5 @@
1
- import { A as FilterSlotQuad, Br as Events$3, Dr as Api$3, Hn as Descriptor, O as FilterSlot, Qn as Ease, Rr as Api$6, Vn as TypeTag, Vr as Json, Yn as AnchorTarget, Z as Api$4, _i as Require, _r as Entity, ar as ReducedMotion, at as PixiUniformGroup, b as Events$4, cr as TrackSegment, et as PixiFilter, fn as Api$2, fr as AnyComponentValue, gi as Events$2, gt as Point, hr as ComponentType, it as PixiTexture, j as SyncApi, k as FilterSlotInputs, nr as NumericFields, nt as PixiModule, pr as ComponentHandle, ri as Events$5, rt as PixiSprite, s as Events$1, si as Api$1, sr as TrackOptions, t as Api$5, tr as MotionHandle, tt as PixiGpuProgram, ur as AnyComponent, vt as FilterCache } from "./types-D1lRinVJ.mjs";
2
- import { H as I18nApi, L as InputApi, T as TextApi, c as UiNode, et as StylesState, i as Finding, l as LayoutState, n as ElementChange, o as JsxState, r as ElementMotion } from "./types-BMUuyOcm.mjs";
1
+ import { $n as Ease, A as FilterSlotQuad, Hn as Descriptor, Hr as Json, O as FilterSlot, Or as Api$3, Vn as TypeTag, Vr as Events$3, Xn as AnchorTarget, Z as Api$4, _i as Events$2, at as PixiUniformGroup, b as Events$4, ci as Api$1, cr as TrackOptions, dr as AnyComponent, et as PixiFilter, fn as Api$2, gr as ComponentType, gt as Point, ii as Events$5, it as PixiTexture, j as SyncApi, k as FilterSlotInputs, lr as TrackSegment, mr as ComponentHandle, nr as MotionHandle, nt as PixiModule, or as ReducedMotion, pr as AnyComponentValue, rr as NumericFields, rt as PixiSprite, s as Events$1, t as Api$5, tt as PixiGpuProgram, vi as Require, vr as Entity, vt as FilterCache, zr as Api$6 } from "./types-D33h-CNj.mjs";
2
+ import { H as I18nApi, L as InputApi, T as TextApi, c as UiNode, et as StylesState, i as Finding, l as LayoutState, n as ElementChange, o as JsxState, r as ElementMotion } from "./types-DhCTe-kr.mjs";
3
3
  import { Log } from "@moku-labs/common/browser";
4
4
  import { PluginCtx } from "@moku-labs/core";
5
5
 
@@ -1,7 +1,7 @@
1
- import { An as FeaturePlugin, Fr as FakeClock, Jr as SaveDoc, Kr as PlayerStateProvider, Mn as AnyFlow, Nr as ClockSource, Q as Config$2, Vn as TypeTag, Vr as Json, Zr as SnapshotOf, a as Config$3, d as Manifest, ht as Orientation, mn as Config$1, n as AssetsIo, nt as PixiModule, qr as ProviderCall, zr as Config } from "./types-D1lRinVJ.mjs";
2
- import { o as AudioContextLike, s as Config$4 } from "./types-Cc7uKiHX.mjs";
3
- import { H as I18nApi, J as TextKey, q as StringTable } from "./types-BMUuyOcm.mjs";
4
- import { St as effectsPlugin, Tt as audioPlugin, ht as PlatformProvider, i as screen, pt as platformPlugin, t as createApp } from "./index-vPc22SoP.mjs";
1
+ import { An as FeaturePlugin, Br as Config, Hr as Json, Ir as FakeClock, Jr as ProviderCall, Mn as AnyFlow, Pr as ClockSource, Q as Config$2, Qr as SnapshotOf, Vn as TypeTag, Yr as SaveDoc, a as Config$3, d as Manifest, ht as Orientation, mn as Config$1, n as AssetsIo, nt as PixiModule, qr as PlayerStateProvider } from "./types-D33h-CNj.mjs";
2
+ import { o as AudioContextLike, s as Config$4 } from "./types-BrEqXapX.mjs";
3
+ import { H as I18nApi, J as TextKey, q as StringTable } from "./types-DhCTe-kr.mjs";
4
+ import { Ct as effectsPlugin, Et as audioPlugin, gt as PlatformProvider, i as screen, mt as platformPlugin, t as createApp } from "./index-DuiCPP3n.mjs";
5
5
  import { AnyPluginInstance } from "@moku-labs/core";
6
6
 
7
7
  //#region src/plugins/model/store/providers/memory.d.ts
@@ -1,5 +1,5 @@
1
- import { Vr as Json, Xr as Snapshot } from "./types-D1lRinVJ.mjs";
2
- import { t as HeadlessApp } from "./headless-Dasz6dgy.mjs";
1
+ import { Hr as Json, Zr as Snapshot } from "./types-D33h-CNj.mjs";
2
+ import { t as HeadlessApp } from "./headless-rXLWKvZq.mjs";
3
3
  import { Log } from "@moku-labs/common/browser";
4
4
 
5
5
  //#region src/plugins/flow/doors/types.d.ts
@@ -4894,6 +4894,23 @@ type Answer<Intent extends string = string> = {
4894
4894
  intent: Intent;
4895
4895
  payload?: Json;
4896
4896
  };
4897
+ /**
4898
+ * What `await fx(descriptor)` resolves with for a descriptor that takes answers, a `popup` among
4899
+ * them: the gate's answer plus `at`, the moment of the answer in game ms of `clock`. `at` is read
4900
+ * when the answer arrives, in live mode and in a fast walk alike, so a replayed route gives the same
4901
+ * `at` for the same clock position. A payload-less answer stays without a `payload` key.
4902
+ *
4903
+ * @example
4904
+ * ```ts
4905
+ * // The popup opened at 60000; the player taps "again" 5 s later. The node is still at its own
4906
+ * // `now` of 60000, so it times the closing animation from the answer.
4907
+ * const answer = await fx(popup(Retry, {})); // { intent: "again", at: 65000 }
4908
+ * const until = answer.at + 780; // 65780: the close ends 780 ms after the tap
4909
+ * ```
4910
+ */
4911
+ type Answered<Intent extends string = string> = Answer<Intent> & {
4912
+ at: number;
4913
+ };
4897
4914
  /**
4898
4915
  * The one answer a `guide` lets through. `payload` is compared by deep equality when present.
4899
4916
  *
@@ -5284,7 +5301,7 @@ type FxApi = {
5284
5301
  * @example
5285
5302
  * ```ts
5286
5303
  * // Inside a node body: wait for the player's pick, then sparkle once the edge has committed.
5287
- * const pick = await fx(popup(Retry, {})); // Answer<"again" | "home">: { intent: "again" }
5304
+ * const pick = await fx(popup(Retry, {})); // Answered<"again" | "home">: { intent: "again", at: 65000 }
5288
5305
  * fx.emit(hint("sparkle", { cell: "c3" }));
5289
5306
  * ```
5290
5307
  */
@@ -6996,7 +7013,7 @@ declare function contribution<S extends SlotNode<OutcomeTags, string>, F extends
6996
7013
  when?: (snapshot: Snapshot) => boolean;
6997
7014
  }): Readonly<Record<S["name"], ContributionSpec>>;
6998
7015
  declare namespace types_d_exports$3 {
6999
- export { Allow, Answer, AnyFlow, AnyNode, AnyNodeContext, Api$2 as Api, Bookmark, BundlesOf, CheckedEdges, Config$3 as Config, Contribution, ContributionSpec, DefineNode, Deps$3 as Deps, Descriptor, Edges, Effect, EffectHandler, EffectOptions, EmitterIdOf, EnterCallback, Events$3 as Events, Exit, FeatureDescription, FeatureEmitter, FeatureFilter, FeaturePlugin, FeatureTextFormats, FeatureTree, FeaturesApi, FlowCtx, FlowDefinition, FlowEntry, FlowGraph, FlowKit, FlowSpec, FlowState, FxApi, FxHandler, GameState, GameTypes, GateApi, GraphError, GraphNode, GuideOptions, Hint, HudKeysOf, InboxApi, JournalEntry, KernelSlice$3 as KernelSlice, LifecycleChanged, Mapped, NodeContext, NodeDefinition, NodeFx, NodeInfo, NodeSpec, NodeTable, OutcomeTags, Position, RecoverContext, RegisteredFeature, Result, RouteStep, RunnerApi, SceneIdOf, SlotNode, Stage, State$3 as State, StringTableLike, Target, TextFormatsOf, TextStylesOf, TypeTag, WorldEvent };
7016
+ export { Allow, Answer, Answered, AnyFlow, AnyNode, AnyNodeContext, Api$2 as Api, Bookmark, BundlesOf, CheckedEdges, Config$3 as Config, Contribution, ContributionSpec, DefineNode, Deps$3 as Deps, Descriptor, Edges, Effect, EffectHandler, EffectOptions, EmitterIdOf, EnterCallback, Events$3 as Events, Exit, FeatureDescription, FeatureEmitter, FeatureFilter, FeaturePlugin, FeatureTextFormats, FeatureTree, FeaturesApi, FlowCtx, FlowDefinition, FlowEntry, FlowGraph, FlowKit, FlowSpec, FlowState, FxApi, FxHandler, GameState, GameTypes, GateApi, GraphError, GraphNode, GuideOptions, Hint, HudKeysOf, InboxApi, JournalEntry, KernelSlice$3 as KernelSlice, LifecycleChanged, Mapped, NodeContext, NodeDefinition, NodeFx, NodeInfo, NodeSpec, NodeTable, OutcomeTags, Position, RecoverContext, RegisteredFeature, Result, RouteStep, RunnerApi, SceneIdOf, SlotNode, Stage, State$3 as State, StringTableLike, Target, TextFormatsOf, TextStylesOf, TypeTag, WorldEvent };
7000
7017
  }
7001
7018
  /**
7002
7019
  * flow plugin events.
@@ -14573,4 +14590,4 @@ type BundleCompanion = {
14573
14590
  unload(bundle: string): void;
14574
14591
  };
14575
14592
  //#endregion
14576
- export { MonitorConfig as $, Motion as $n, RngApi as $r, PerfStartupLine as $t, FilterSlotQuad as A, FeaturePlugin as An, State$4 as Ar, OverlayWhat as At, Parent as B, SceneIdOf as Bn, Events$5 as Br, PerfCollectorLine as Bt, SceneSpec as C, contribution as Cn, ResourceType as Cr, FrameReadout as Ct, DebugSwitches as D, to as Dn, Api$3 as Dr, MONITOR_SECTIONS as Dt, types_d_exports$1 as E, slot as En, TagType as Er, LongFrameEntry as Et, HudPartValue as F, FlowGraph as Fn, FakeClock as Fr, PassKind as Ft, SpriteOptions as G, GuideOptions as Gn, Patch as Gr, PerfGapLine as Gt, ShapeValue as H, Descriptor as Hn, Root as Hr, PerfDisplay as Ht, NineSlice$1 as I, FlowState as In, State$5 as Ir, PassRecord as It, TransformValue as J, Answer as Jn, SaveDoc as Jr, PerfLongFrameLine as Jt, SpriteValue as K, Hint as Kn, PlayerStateProvider as Kr, PerfHeaderLine as Kt, NineSliceValue as L, JournalEntry as Ln, types_d_exports$5 as Lr, PerfCause as Lt, WhyEntry as M, AnyFlow as Mn, Api$4 as Mr, PERF_GAP_BUCKETS as Mt, Display as N, Bookmark as Nn, ClockSource as Nr, PERF_LOG_VERSION as Nt, FilterSlot as O, type as On, Config$4 as Or, MonitorSections as Ot, HudPart as P, DefineNode as Pn, Config$5 as Pr, PROBLEM_RULES as Pt, Config$2 as Q, Ease as Qn, StoreApi as Qr, PerfSpikeLine as Qt, Overlay as R, NodeTable as Rn, Api$5 as Rr, PerfChange as Rt, SceneDefinition as S, types_d_exports$3 as Sn, QueryTerm as Sr, FrameReadResult as St, State$1 as T, exit as Tn, SystemFor as Tr, FrameRing as Tt, Sprite as U, Effect as Un, State$6 as Ur, PerfEventLine as Ut, Shape as V, TypeTag as Vn, Json as Vr, PerfCounts as Vt, SpriteBlend as W, EffectOptions as Wn, types_d_exports$6 as Wr, PerfEventName as Wt, AdaptiveScale as X, ChangeHook as Xn, Snapshot as Xr, PerfMeasured as Xt, sprite as Y, AnchorTarget as Yn, SaveUnreadableError as Yr, PerfMarkLine as Yt, Api$1 as Z, DescriptionNode as Zn, SnapshotOf as Zr, PerfSampleLine as Zt, AnySceneProjection as _, Require as _i, HudKeysOf as _n, Entity as _r, ViewportSize as _t, Config as a, State$7 as ai, SHADER_WHATS as an, ReducedMotion as ar, PixiUniformGroup as at, Events$1 as b, TextFormatsOf as bn, Mut as br, WhyLive as bt, LoadBundles as c, Config$8 as ci, WarmDetail as cn, TrackSegment as cr, Under as ct, Manifest as d, State$8 as di, DEMAND_REASONS as dn, AnyComponentType as dr, ShotsConfig as dt, RngState as ei, PerfTelemetryLine as en, MotionCause as er, PixiFilter as et, ReadyBundles as f, ThermalReading as fi, Api$2 as fn, AnyComponentValue as fr, Captured as ft, types_d_exports as g, Events$8 as gi, GameTypes as gn, ComponentValue as gr, Point as gt, Usage as h, Config$9 as hi, EmitterIdOf as hn, ComponentType as hr, Orientation as ht, BundleSpec as i, PauseReason as ii, ProblemRule as in, ProjectionSpec as ir, PixiTexture as it, SyncApi as j, FeatureTree as jn, types_d_exports$4 as jr, PERF_CAUSES as jt, FilterSlotInputs as k, FeatureDescription as kn, Explained as kr, OverlayEventDetail as kt, LoadReason as l, FrameRate as li, CANVAS_RESTARTS as ln, ViewHandle as lr, types_d_exports$2 as lt, Tier as m, types_d_exports$8 as mi, Config$3 as mn, ComponentSchema as mr, RenderStats as mt, AssetsIo as n, Config$7 as ni, PoolTrimDetail as nn, NumericFields as nr, PixiModule as nt, DefineBundles as o, types_d_exports$7 as oi, ShaderEventDetail as on, SceneSwitch as or, PoolTrim as ot, State as p, Time as pi, BundlesOf as pn, ComponentHandle as pr, MonitorCounts as pt, Transform as q, NodeFx as qn, ProviderCall as qr, PerfLogLine as qt, BundleMap as r, Events$6 as ri, ProblemEventDetail as rn, ProjectionMotion as rr, PixiSprite as rt, Events as s, Api$7 as si, ShaderWhat as sn, TrackOptions as sr, State$2 as st, Api as t, Api$6 as ti, PerfThermalLine as tn, MotionHandle as tr, PixiGpuProgram as tt, LoadResult as u, RateChange as ui, CanvasRestart as un, AnyComponent as ur, ShotsApi as ut, Config$1 as v, Position as vn, EntitySnapshot as vr, FilterCache as vt, ScenesApi as w, defineFlow as wn, SystemDefinition as wr, FrameRecord as wt, LayerMap as x, TextStylesOf as xn, Narrowed as xr, FrameColumns as xt, DefineScene as y, State$3 as yn, FrameDiff as yr, RetakeWhy as yt, OverlayValue as z, RouteStep as zn, Config$6 as zr, PerfChangeEntry as zt };
14593
+ export { MonitorConfig as $, Ease as $n, StoreApi as $r, PerfStartupLine as $t, FilterSlotQuad as A, FeaturePlugin as An, Explained as Ar, OverlayWhat as At, Parent as B, SceneIdOf as Bn, Config$6 as Br, PerfCollectorLine as Bt, SceneSpec as C, contribution as Cn, QueryTerm as Cr, FrameReadout as Ct, DebugSwitches as D, to as Dn, TagType as Dr, MONITOR_SECTIONS as Dt, types_d_exports$1 as E, slot as En, SystemFor as Er, LongFrameEntry as Et, HudPartValue as F, FlowGraph as Fn, Config$5 as Fr, PassKind as Ft, SpriteOptions as G, GuideOptions as Gn, types_d_exports$6 as Gr, PerfGapLine as Gt, ShapeValue as H, Descriptor as Hn, Json as Hr, PerfDisplay as Ht, NineSlice$1 as I, FlowState as In, FakeClock as Ir, PassRecord as It, TransformValue as J, Answer as Jn, ProviderCall as Jr, PerfLongFrameLine as Jt, SpriteValue as K, Hint as Kn, Patch as Kr, PerfHeaderLine as Kt, NineSliceValue as L, JournalEntry as Ln, State$5 as Lr, PerfCause as Lt, WhyEntry as M, AnyFlow as Mn, types_d_exports$4 as Mr, PERF_GAP_BUCKETS as Mt, Display as N, Bookmark as Nn, Api$4 as Nr, PERF_LOG_VERSION as Nt, FilterSlot as O, type as On, Api$3 as Or, MonitorSections as Ot, HudPart as P, DefineNode as Pn, ClockSource as Pr, PROBLEM_RULES as Pt, Config$2 as Q, DescriptionNode as Qn, SnapshotOf as Qr, PerfSpikeLine as Qt, Overlay as R, NodeTable as Rn, types_d_exports$5 as Rr, PerfChange as Rt, SceneDefinition as S, types_d_exports$3 as Sn, Narrowed as Sr, FrameReadResult as St, State$1 as T, exit as Tn, SystemDefinition as Tr, FrameRing as Tt, Sprite as U, Effect as Un, Root as Ur, PerfEventLine as Ut, Shape as V, TypeTag as Vn, Events$5 as Vr, PerfCounts as Vt, SpriteBlend as W, EffectOptions as Wn, State$6 as Wr, PerfEventName as Wt, AdaptiveScale as X, AnchorTarget as Xn, SaveUnreadableError as Xr, PerfMeasured as Xt, sprite as Y, Answered as Yn, SaveDoc as Yr, PerfMarkLine as Yt, Api$1 as Z, ChangeHook as Zn, Snapshot as Zr, PerfSampleLine as Zt, AnySceneProjection as _, Events$8 as _i, HudKeysOf as _n, ComponentValue as _r, ViewportSize as _t, Config as a, PauseReason as ai, SHADER_WHATS as an, ProjectionSpec as ar, PixiUniformGroup as at, Events$1 as b, TextFormatsOf as bn, FrameDiff as br, WhyLive as bt, LoadBundles as c, Api$7 as ci, WarmDetail as cn, TrackOptions as cr, Under as ct, Manifest as d, RateChange as di, DEMAND_REASONS as dn, AnyComponent as dr, ShotsConfig as dt, RngApi as ei, PerfTelemetryLine as en, Motion as er, PixiFilter as et, ReadyBundles as f, State$8 as fi, Api$2 as fn, AnyComponentType as fr, Captured as ft, types_d_exports as g, Config$9 as gi, GameTypes as gn, ComponentType as gr, Point as gt, Usage as h, types_d_exports$8 as hi, EmitterIdOf as hn, ComponentSchema as hr, Orientation as ht, BundleSpec as i, Events$6 as ii, ProblemRule as in, ProjectionMotion as ir, PixiTexture as it, SyncApi as j, FeatureTree as jn, State$4 as jr, PERF_CAUSES as jt, FilterSlotInputs as k, FeatureDescription as kn, Config$4 as kr, OverlayEventDetail as kt, LoadReason as l, Config$8 as li, CANVAS_RESTARTS as ln, TrackSegment as lr, types_d_exports$2 as lt, Tier as m, Time as mi, Config$3 as mn, ComponentHandle as mr, RenderStats as mt, AssetsIo as n, Api$6 as ni, PoolTrimDetail as nn, MotionHandle as nr, PixiModule as nt, DefineBundles as o, State$7 as oi, ShaderEventDetail as on, ReducedMotion as or, PoolTrim as ot, State as p, ThermalReading as pi, BundlesOf as pn, AnyComponentValue as pr, MonitorCounts as pt, Transform as q, NodeFx as qn, PlayerStateProvider as qr, PerfLogLine as qt, BundleMap as r, Config$7 as ri, ProblemEventDetail as rn, NumericFields as rr, PixiSprite as rt, Events as s, types_d_exports$7 as si, ShaderWhat as sn, SceneSwitch as sr, State$2 as st, Api as t, RngState as ti, PerfThermalLine as tn, MotionCause as tr, PixiGpuProgram as tt, LoadResult as u, FrameRate as ui, CanvasRestart as un, ViewHandle as ur, ShotsApi as ut, Config$1 as v, Require as vi, Position as vn, Entity as vr, FilterCache as vt, ScenesApi as w, defineFlow as wn, ResourceType as wr, FrameRecord as wt, LayerMap as x, TextStylesOf as xn, Mut as xr, FrameColumns as xt, DefineScene as y, State$3 as yn, EntitySnapshot as yr, RetakeWhy as yt, OverlayValue as z, RouteStep as zn, Api$5 as zr, PerfChangeEntry as zt };
@@ -1,4 +1,4 @@
1
- import { $n as Motion, Dr as Api$2, Er as TagType, Hn as Descriptor, J as TransformValue, Jn as Answer, Kn as Hint, Mr as Api$5, Qn as Ease, Vr as Json, Xn as ChangeHook, Yn as AnchorTarget, Z as Api$3, _i as Require, _r as Entity, _t as ViewportSize, ar as ReducedMotion, dr as AnyComponentType, er as MotionCause, fn as Api$1, fr as AnyComponentValue, hr as ComponentType, lr as ViewHandle, nr as NumericFields, rr as ProjectionMotion, s as Events$1, si as Api, t as Api$4, tr as MotionHandle, ur as AnyComponent } from "./types-D1lRinVJ.mjs";
1
+ import { $n as Ease, Dr as TagType, Hn as Descriptor, Hr as Json, J as TransformValue, Kn as Hint, Nr as Api$5, Or as Api$2, Xn as AnchorTarget, Yn as Answered, Z as Api$3, Zn as ChangeHook, _t as ViewportSize, ci as Api, dr as AnyComponent, er as Motion, fn as Api$1, fr as AnyComponentType, gr as ComponentType, ir as ProjectionMotion, nr as MotionHandle, or as ReducedMotion, pr as AnyComponentValue, rr as NumericFields, s as Events$1, t as Api$4, tr as MotionCause, ur as ViewHandle, vi as Require, vr as Entity } from "./types-D33h-CNj.mjs";
2
2
  import { Log } from "@moku-labs/common/browser";
3
3
  import { PluginCtx } from "@moku-labs/core";
4
4
  import { Node, Yoga } from "yoga-layout/load";
@@ -1118,18 +1118,27 @@ type State$1 = {
1118
1118
  */
1119
1119
  type InputApi = {
1120
1120
  /**
1121
- * Reads the `Tappable` of a view and answers its intent.
1121
+ * Reads the `Tappable` of a view and answers its intent. On a view whose `Tappable` has
1122
+ * `point: true`, a given point is added to the payload under `point`, as the finger's press
1123
+ * point would be. It is already in the view's own units, the units of its hit box, and is used
1124
+ * as it is. Without a point, or on a view without the flag, the payload is answered unchanged,
1125
+ * with no `point` key: the keyboard taps of ui (Enter on the focused button, Escape) give none.
1122
1126
  *
1123
1127
  * @param target - The projection key of a live view, or an entity.
1128
+ * @param point - The press point in the view's own units; read only by a view with `point: true`.
1124
1129
  * @returns What `flow.gate.answer` returned: true when the gate took the answer.
1125
1130
  * @example
1126
1131
  * ```ts
1127
1132
  * // A hidden-object test finds one object without touching a pixel.
1128
1133
  * app.input.tap({ projection: "scene.objects", key: "lamp" });
1129
1134
  * // true: answers { intent: "found", payload: { id: "lamp" } }
1135
+ *
1136
+ * // A headless test taps the gift sphere (Tappable { intent: "kitTap", point: true }) at its left edge.
1137
+ * app.input.tap({ projection: "kit", key: "sphere" }, { x: 10, y: 60 });
1138
+ * // true: answers { intent: "kitTap", payload: { point: { x: 10, y: 60 } } }
1130
1139
  * ```
1131
1140
  */
1132
- tap(target: Target): boolean;
1141
+ tap(target: Target, point?: Point$1): boolean;
1133
1142
  /**
1134
1143
  * Reads the `Pressable` of a view and answers its intent, the way a long press would.
1135
1144
  *
@@ -2104,6 +2113,8 @@ type ButtonPayload = Json & Brand<"ButtonPayload">;
2104
2113
  type ButtonLocal = Record<string, unknown> & Brand<"ButtonLocal">;
2105
2114
  /** Makes a button the control the Escape key taps while its root is the top one. */
2106
2115
  type ButtonEscape = boolean & Brand<"ButtonEscape">;
2116
+ /** Asks a button that answers an intent to add the press point to its payload. */
2117
+ type ButtonPoint = boolean & Brand<"ButtonPoint">;
2107
2118
  /** What a text draws: a plain string, or a message of the game's string table. */
2108
2119
  type TextContent = (string | Message) & Brand<"TextContent">;
2109
2120
  /** The text style key, or a layout style when the built-in `body` is meant. */
@@ -2235,13 +2246,19 @@ type HostProps = CommonProps & {
2235
2246
  /**
2236
2247
  * What a button takes. `intent` and `local` exclude each other: a button either answers the gate
2237
2248
  * or writes local state. `escape` marks the control the Escape key taps: the close button or the
2238
- * backdrop of a dismissable popup.
2249
+ * backdrop of a dismissable popup. `point`, only beside `intent`, adds the press point of a finger
2250
+ * tap to the payload under `point`, in the button's own layout units: (0, 0) its top-left corner,
2251
+ * (width, height) its bottom-right, whatever its offset, scale or parent. A keyboard tap (Enter on
2252
+ * the focused button, Escape) has no press point and answers the payload as it is.
2239
2253
  *
2240
2254
  * @example
2241
2255
  * ```ts
2242
2256
  * const props: ButtonTagProps = { intent: "claim", payload: { orderId: "o1" } };
2243
2257
  * // The close button of the settings popup: Escape taps it while the popup is on top.
2244
2258
  * const close: ButtonTagProps = { intent: "close", escape: true };
2259
+ * // The gift sphere of 400 x 200, `<button intent="kitTap" point />`: a finger 10 in from its
2260
+ * // left edge and 150 down answers { intent: "kitTap", payload: { point: { x: 10, y: 150 } } }.
2261
+ * const sphere: ButtonTagProps = { intent: "kitTap", point: true };
2245
2262
  * ```
2246
2263
  */
2247
2264
  type ButtonTagProps = CommonProps & {
@@ -2249,10 +2266,12 @@ type ButtonTagProps = CommonProps & {
2249
2266
  } & ({
2250
2267
  intent?: ButtonIntent;
2251
2268
  payload?: ButtonPayload;
2269
+ point?: ButtonPoint;
2252
2270
  local?: never;
2253
2271
  } | {
2254
2272
  intent?: never;
2255
2273
  payload?: never;
2274
+ point?: never;
2256
2275
  local?: ButtonLocal;
2257
2276
  });
2258
2277
  /**
@@ -2568,7 +2587,8 @@ declare const ScrollState: ComponentType<{
2568
2587
  declare const DebugTrigger: TagType;
2569
2588
  /**
2570
2589
  * Builds the effect a node awaits to show a popup. The gate opens for the outcomes of the
2571
- * component, so the node resolves with the intent one of its buttons answered. `over` names the
2590
+ * component, so the node resolves with the intent one of its buttons answered, its payload, and
2591
+ * `at`: the clock moment the answer arrived, in game ms. `over` names the
2572
2592
  * component of a popup that stays mounted beneath this one, drawn covered, until this one is gone.
2573
2593
  *
2574
2594
  * @param component - A component declared with `outcomes`.
@@ -2584,7 +2604,8 @@ declare const DebugTrigger: TagType;
2584
2604
  * });
2585
2605
  * popup(Reward, { gold: 5 });
2586
2606
  * // { kind: "popup", payload: { component: "Reward", props: { gold: 5 } }, answers: ["claim"] }
2587
- * await fx(popup(Reward, { gold: 5 })); // Answer<"claim">: { intent: "claim" }
2607
+ * // The player claims 5 s after the popup opened at 60000.
2608
+ * await fx(popup(Reward, { gold: 5 })); // Answered<"claim">: { intent: "claim", at: 65000 }
2588
2609
  * ```
2589
2610
  * @example
2590
2611
  * ```ts
@@ -2600,7 +2621,7 @@ declare const DebugTrigger: TagType;
2600
2621
  */
2601
2622
  declare function popup<Properties extends object, Local extends object, Outcomes extends Record<string, unknown>>(component: PopupComponent<Properties, Local, Outcomes>, props: Properties, options?: {
2602
2623
  over?: string;
2603
- }): Descriptor<Answer<keyof Outcomes & string>>;
2624
+ }): Descriptor<Answered<keyof Outcomes & string>>;
2604
2625
  //#endregion
2605
2626
  //#region src/plugins/ui/layout/types.d.ts
2606
2627
  /**
@@ -1,9 +1,9 @@
1
- import { Dr as Api$1, Mr as Api$4, Rr as Api$2, Z as Api, ti as Api$3 } from "./types-D1lRinVJ.mjs";
2
- import { P as AnimApi, r as UiApi } from "./types-Cc7uKiHX.mjs";
3
- import { L as InputApi } from "./types-BMUuyOcm.mjs";
4
- import { r as Repro } from "./headless-Dasz6dgy.mjs";
5
- import { i as ControlApp, o as InputOf } from "./types-Btqe51cJ.mjs";
6
- import { t as commands } from "./commands-DUco80gt.mjs";
1
+ import { Nr as Api$4, Or as Api$1, Z as Api, ni as Api$3, zr as Api$2 } from "./types-D33h-CNj.mjs";
2
+ import { P as AnimApi, r as UiApi } from "./types-BrEqXapX.mjs";
3
+ import { L as InputApi } from "./types-DhCTe-kr.mjs";
4
+ import { r as Repro } from "./headless-rXLWKvZq.mjs";
5
+ import { i as ControlApp, o as InputOf } from "./types-CSkVNKPZ.mjs";
6
+ import { t as commands } from "./commands-B05keaNh.mjs";
7
7
 
8
8
  //#region src/visual/types.d.ts
9
9
  /** The base commands of the `/control` door, keyed by their short names. */
@@ -1208,7 +1208,8 @@ const UiCounters = /*#__PURE__*/ resource("UiCounters", {
1208
1208
  });
1209
1209
  /**
1210
1210
  * Builds the effect a node awaits to show a popup. The gate opens for the outcomes of the
1211
- * component, so the node resolves with the intent one of its buttons answered. `over` names the
1211
+ * component, so the node resolves with the intent one of its buttons answered, its payload, and
1212
+ * `at`: the clock moment the answer arrived, in game ms. `over` names the
1212
1213
  * component of a popup that stays mounted beneath this one, drawn covered, until this one is gone.
1213
1214
  *
1214
1215
  * @param component - A component declared with `outcomes`.
@@ -1224,7 +1225,8 @@ const UiCounters = /*#__PURE__*/ resource("UiCounters", {
1224
1225
  * });
1225
1226
  * popup(Reward, { gold: 5 });
1226
1227
  * // { kind: "popup", payload: { component: "Reward", props: { gold: 5 } }, answers: ["claim"] }
1227
- * await fx(popup(Reward, { gold: 5 })); // Answer<"claim">: { intent: "claim" }
1228
+ * // The player claims 5 s after the popup opened at 60000.
1229
+ * await fx(popup(Reward, { gold: 5 })); // Answered<"claim">: { intent: "claim", at: 65000 }
1228
1230
  * ```
1229
1231
  * @example
1230
1232
  * ```ts
package/dist/visual.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as VisualApp, c as VisualRenderer, d as VisualStart, f as VisualStep, h as VisualTolerance, i as CheckpointResult, l as VisualReport, m as VisualTestResult, n as runVisualTests, o as VisualOptions, p as VisualTest, r as defineVisualTest, s as VisualPage, t as parseVisualArgv, u as VisualSetup } from "./visual-BMyWTUgm.mjs";
1
+ import { a as VisualApp, c as VisualRenderer, d as VisualStart, f as VisualStep, h as VisualTolerance, i as CheckpointResult, l as VisualReport, m as VisualTestResult, n as runVisualTests, o as VisualOptions, p as VisualTest, r as defineVisualTest, s as VisualPage, t as parseVisualArgv, u as VisualSetup } from "./visual-BfN2jgqg.mjs";
2
2
  export { type CheckpointResult, type VisualApp, type VisualOptions, type VisualPage, type VisualRenderer, type VisualReport, type VisualSetup, type VisualStart, type VisualStep, type VisualTest, type VisualTestResult, type VisualTolerance, defineVisualTest, parseVisualArgv, runVisualTests };
package/dist/visual.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as VISUAL_CLOCK } from "./fake-hnJcJeYf.mjs";
2
- import { n as read, t as sources } from "./sources-kL64Svgl.mjs";
2
+ import { n as read, t as sources } from "./sources-DIl02J8z.mjs";
3
3
  import { n as commands, t as run } from "./run-B5if0jxE.mjs";
4
4
  import path from "node:path";
5
5
  import { createBrandConsole } from "@moku-labs/common/cli";
package/llms.txt CHANGED
@@ -44,7 +44,7 @@ Root exports:
44
44
  - A pure wait ends in two ways. A gate answer whose `intent` is an outcome name: the answer payload becomes the outcome payload. Or a world event whose `type` is listed in the node's `inbox`: the event payload becomes the outcome payload.
45
45
  - Transition: rest node to rest node. It is a transaction. On an error the runner discards, rolls back to the last rest point, retries `retries` times, then enters `safeNode`. A failure inside `safeNode` rejects `run()`.
46
46
  - Three ways to run an effect in a node. `await fx(descriptor)`: the node waits for it. `fx.start(descriptor)`: it starts now and the node goes on; write it in place of `void fx(...)`. A failure of a started effect is the log entry `flow:fx-start-failed` and never fails the node. A `cosmetic` descriptor (`sfx`, `play`, `haptic`, `music`) that fails, awaited or started, is the warn entry `flow:fx-cosmetic-failed` with `{ kind, message }` and resolves `undefined`; a descriptor with `answers` and a `guide` are refused, they have to be awaited. `fx.emit(hint(...))`: released after the commit of the edge, dropped in fast mode.
47
- - `await fx(descriptor)` is typed by the descriptor (`Flow.Descriptor<Result>`): `schedule`, `guide`, `music`, `sfx`, `haptic`, `play` resolve `void`; `load` resolves `Assets.LoadResult | undefined` (`undefined` without `assets`, as in `game.headless()`); `ready` resolves `boolean | undefined` (`true` when every bundle is loaded and on the GPU, `undefined` without `assets`, so compare `=== false`); `popup(Component, props)` resolves `Flow.Answer<outcome names>`, so comparing it with an intent the component does not declare is a compile error; a descriptor written by hand resolves `unknown`. A game declares its own: `const envRead = defineEffect<{ notice: boolean }, EnvRead>("view-env.read", { fast: "run" })`, then `await fx(envRead({ notice: true }))` is `EnvRead` and `envRead.handle(ctx.require(flowPlugin).fx, payload => ...)` registers the one handler (returns the remover). Only `{ fast: "run" }` without `cosmetic` resolves `Result`; any other declaration resolves `Result | undefined`. `NodeFx` is generic: a hand-written fake is typed `as NodeFx`, or use `fakeFx`.
47
+ - `await fx(descriptor)` is typed by the descriptor (`Flow.Descriptor<Result>`): `schedule`, `guide`, `music`, `sfx`, `haptic`, `play` resolve `void`; `load` resolves `Assets.LoadResult | undefined` (`undefined` without `assets`, as in `game.headless()`); `ready` resolves `boolean | undefined` (`true` when every bundle is loaded and on the GPU, `undefined` without `assets`, so compare `=== false`); `popup(Component, props)` resolves `Flow.Answered<outcome names>`, `{ intent, payload?, at }` with `at` the `clock.now()` moment the answer arrived (live and in a fast walk alike), so comparing it with an intent the component does not declare is a compile error; a descriptor written by hand resolves `unknown`. A game declares its own: `const envRead = defineEffect<{ notice: boolean }, EnvRead>("view-env.read", { fast: "run" })`, then `await fx(envRead({ notice: true }))` is `EnvRead` and `envRead.handle(ctx.require(flowPlugin).fx, payload => ...)` registers the one handler (returns the remover). Only `{ fast: "run" }` without `cosmetic` resolves `Result`; any other declaration resolves `Result | undefined`. `NodeFx` is generic: a hand-written fake is typed `as NodeFx`, or use `fakeFx`.
48
48
  - Every failure is written into the log by the engine: an `error` entry `flow:error` with `{ path, rolledBackTo, retry, error: { message, stack } }`. Read it with `app.log.trace()`. A game needs no plugin for it.
49
49
  - `recover` on a rest node: `recover: async ({ player, session, rng, fx, signal, now }) => { ... }`. It runs only when the runner gave up on a transition and enters this node as `safeNode`, before the node is entered. The rollback left the state of the failed rest point; `recover` writes the drafts so the safe node can draw itself. What it wrote commits as one edge with `outcome: "recover"` and becomes the rest point. A `recover` that throws rejects `run()`. A retry does not run it. So the safe node stays a pure wait: no `run` body, no extra outcome, no self edge.
50
50
  - Entering a rest node calls `model.store.markRest()`: the save provider gets the patches. Leaving a `barrier` node calls `markBarrier(txId)`: a durable write, and rollback cannot cross it.
@@ -575,6 +575,7 @@ The graph. Modules `runner`, `gate`, `inbox`, `fx`, `features`. Runner methods s
575
575
  - `from(player, session, sw)`: the third argument is the switch another plugin last handed the projection with `projection.feed(name, sw)`, a `SceneSwitch` `{ from, to, progress }` (the scene left, the scene entered, `progress` 0 to 1), `undefined` for a projection never fed; a `from` with two parameters reads the state alone, as before. A loader reads it: `from: (_player, _session, sw: SceneSwitch | undefined) => ({ to: sw?.to ?? "", progress: sw?.progress ?? 0 })`. World README, "Feeding a projection".
576
576
  - `app.input.lock.window(rect | null | undefined)`: the input lock `ui` sets for a guide (`Input.LockWindow` = `{ x, y, w, h }` in reference units, kept by reference and written in place); a press outside reaches no view and answers `flow.gate.state().blocked` or nothing, a drop or trace sample outside finds nothing; `null` locks everything, `undefined` lifts it. The doors `tap`, `press`, `drag`, `swipe`, `trace` are never locked.
577
577
  - `input`: one followed pointer. A finger that has not started a gesture (pressed, inside the tap slop, no long press, no trace) gives way to the next finger that goes down, wherever it rests, and its press is cancelled; a finger that started a gesture keeps it. `Pointer.id` is the followed `pointerId` (`-1` at rest): a system that measures the finger's travel starts over when it changes.
578
+ - `Tappable({ intent, payload, point: true })`: a finger tap answers `{ intent, payload: { ...payload, point: { x, y } } }`, the press-down point in the view's own units (a ui `button` with `point`: (0, 0) its top-left corner); `app.input.tap(target, point?)` hands a point already in those units to a flagged view. No `point` key without the flag, without a point (Enter, Escape, `tap(target)`) or on a long press; `point` absent by default, so a `Tappable` serialises as before. Type: `TapValue` (the component's value, `IntentValue & { point?: true }`).
578
579
  - `Draggable({ payload, carry?, aim? })`: `aim: { x, y }`, a point of the view in its own units, moves the hover and the drop lookup from the finger to that point of the view in the hand; `null` (default) is the finger.
579
580
  - `pluginConfigs.renderer.onDemand: true` draws a frame only when something visible changed (a written view, a filter value, a resize, a wake, a capture); `app.renderer.stats().drawn` is the frames drawn per second (`fps` without it); a game that writes into its own `Display` object calls `app.renderer.invalidate(entity)` before the write; `renderer.sync.debug.verifyFrames(true)` (dev/debug) checks skipped frames by pixels and logs `renderer:missed-frame`; a dev build warns `renderer:missed-mark` for a write without the call.
580
581
  - `app.renderer.stats()` adds `textureMbSplit: { art, targets, kept }` (MiB). `app.renderer.host.resolution()` is the resolution drawn at: `override ?? min(devicePixelRatio, maxResolution)`; `maxResolution` is a number (default 2), a change of `devicePixelRatio` is followed from the next frame, and `app.renderer.monitor.setResolution(n | undefined)` overrides it in every build, the way to apply a player's graphics setting from an effect (0.5 to 4, else a `RangeError`).
@@ -593,9 +594,9 @@ The graph. Modules `runner`, `gate`, `inbox`, `fx`, `features`. Runner methods s
593
594
 
594
595
  A screen is a projection whose `view` returns JSX. The game's `tsconfig.json` sets `"jsx": "react-jsx"` and `"jsxImportSource": "@moku-labs/game"`; screens are `.tsx` files. There is no DOM and no React.
595
596
 
596
- - Tags: `screen`, `layer`, `row`, `column`, `stack`, `spacer`, `panel` (swallows taps), `image` (`texture`, `fit?: "contain" | "cover" | "fill"`), `icon` (`name`, `fit?`), `text` (`content: string | Message`, or `bind={bind(Counter, "value")}` with `components={[Counter({ value })]}`; formats `int`, `mm:ss`, `h:mm:ss`, `duration`; `Countdown({ until })` with `bind(Countdown, "left", { format: "mm:ss" })` counts down to a `clock` moment; `style` is a text style key), `button` (`intent` + `payload`, or `local`, never both), `scroll` (`axis?: "x" | "y"` (`"y"`), fixed at spawn, another one later warns `ui:scroll-axis-fixed`; children for a short list, laid out as a column on `y` and a row on `x`, or the windowed form `rows`, `rowHeight`, `overscan?` (5), `row: index => node`, on `y` only: `axis: "x"` with `rows` throws `[game] A windowed scroll moves on y only.`; row state belongs in the model, a row that leaves the window loses its local state; `snap?: number[]` stops in offsets, kept inside `0..max`: a release glides to the stop nearest `offset + v × 260` (v in units a ms) on `1 − (1 − p)³` over `min(620, 260 + distance × 1.1)` ms; without `snap` a release flings, `v ×= 0.998` a ms until under 0.02, 0 when the finger rested over 50 ms; `offset?: number` (0) where it stands from the start, drawn there in its first frame, a new value glides there, the same value does nothing; hard edges, nothing passes on to a parent scroll; a press on a child that leaves the tap slop along the scroll's axis goes to the scroll and the child answers nothing, a finger on a moving scroll only stops it; every number in `time.delta` ms, so a time scale applies; the public component `ScrollState { offset, max, moving }` on its entity, whole units `0..max`, written when it changes and once with `moving: false` when it stops, read by a system and by `game.explain`; `app.ui.scroll(key, to)` and the visual step `{ scroll: { key, to } }` set it at once), `input` (a text field; its text lives in the component's `local`, see the ui README), `anchor` (`to: AnchorTarget | AnchorTarget[]`, `AnchorTarget` = `{ projection, key }`, a ui element keyed under its root's projection; `pad?: number` (0) outward in its root's units: its rect is where its targets are drawn, the union of the shown ones, in the frame they are laid out, scrolled or moved, through fits, slots and ancestor motion, rotation left out; children lay out inside it; a `width`/`height`/`position` in its style is ignored (`ui:anchor-style`, dev); with no target shown it is drawn at alpha 0 and takes no tap, stays, and comes back with its target; `ui:anchor-target-missing` `{ key, to }` once (dev) after a key named nothing two frames in a row; a target inside the anchor is refused, `[game] An anchor cannot point at its own child "key".`; its `change.Box` motion plays only when its targets change (a new `to`, a key naming another entity), never on a follow, and a glide that runs is carried so it lands on the moving target; 0 B a frame still or following: `<anchor key="window" to={{ projection: "board.strip", key: "seat0" }} pad={4} motion={glide}>`). Common props: `key`, `style`, `state: { active?, disabled?, selected? }`, `motion`, `components` (extra component values for the element's entity, such as a filter: `components={[Glow({ strength: 2 })]}`, or `DebugTrigger()`: five taps within 3000 ms of wall time on that view call `app.debug.overlay.open()` on a page with the agent flag, nothing elsewhere; put it on a `button` naming nothing); containers take `hosts?: string[]` (projections drawn inside the element: world views hang under it from the slot's first frame; a JSX projection is laid out in the slot's content box). Children draw and are hit in markup order at equal `zIndex`; the roots of a scene draw in the order of its `projections` (the `ui` layer sorts by `Order`; `ui: { sort: "none" }` keeps insertion order). `defineMotion({ when: "change" })` plays its `enter` and `exit` only for a commit or a popup, never when its screen mounts or unmounts; declare a motion at module level (`ui:motion-rebuilt` names a loop rebuilt in a view). `motion.change` plays `Box` (the rects), `Transform` (the rest poses), the visual the element is drawn with (`Shape`, `Sprite`, `NineSlice`, `Text`, when a render or a restyle moves a number of it: `sweep`, `alpha`, `w`; a returned motion brings the numbers home from where they stand and the other fields land at once; the last motion of that name is cancelled first) and each extra of `components`, each as `(view, previous, next, hint)`; a dev build names any other `change` hook once, `ui:change-never-plays` `{ key, name }`. An element a render replaces (a root whose view returns another key or tag, a child of another key or tag) plays its exit with `"change"`, everything under it plays its own, and it leaves `find` at once, so the new element takes the keys they share. Style adds `nineSlice`, `tint`, `offsetX`, `offsetY`, `scale`, `origin`, `fit: "contain"`; state variants `is: { hover, pressed, disabled, active, selected, covered }`. `popup(Component, props, { over })` stacks a popup over a kept one.
597
+ - Tags: `screen`, `layer`, `row`, `column`, `stack`, `spacer`, `panel` (swallows taps), `image` (`texture`, `fit?: "contain" | "cover" | "fill"`), `icon` (`name`, `fit?`), `text` (`content: string | Message`, or `bind={bind(Counter, "value")}` with `components={[Counter({ value })]}`; formats `int`, `mm:ss`, `h:mm:ss`, `duration`; `Countdown({ until })` with `bind(Countdown, "left", { format: "mm:ss" })` counts down to a `clock` moment; `style` is a text style key), `button` (`intent` + `payload`, or `local`, never both; `point` beside `intent` adds `payload.point: { x, y }` of a finger tap, the press-down point in the button's own units, (0, 0) its top-left corner, absent for keyboard taps: `<button intent="kitTap" point />`), `scroll` (`axis?: "x" | "y"` (`"y"`), fixed at spawn, another one later warns `ui:scroll-axis-fixed`; children for a short list, laid out as a column on `y` and a row on `x`, or the windowed form `rows`, `rowHeight`, `overscan?` (5), `row: index => node`, on `y` only: `axis: "x"` with `rows` throws `[game] A windowed scroll moves on y only.`; row state belongs in the model, a row that leaves the window loses its local state; `snap?: number[]` stops in offsets, kept inside `0..max`: a release glides to the stop nearest `offset + v × 260` (v in units a ms) on `1 − (1 − p)³` over `min(620, 260 + distance × 1.1)` ms; without `snap` a release flings, `v ×= 0.998` a ms until under 0.02, 0 when the finger rested over 50 ms; `offset?: number` (0) where it stands from the start, drawn there in its first frame, a new value glides there, the same value does nothing; hard edges, nothing passes on to a parent scroll; a press on a child that leaves the tap slop along the scroll's axis goes to the scroll and the child answers nothing, a finger on a moving scroll only stops it; every number in `time.delta` ms, so a time scale applies; the public component `ScrollState { offset, max, moving }` on its entity, whole units `0..max`, written when it changes and once with `moving: false` when it stops, read by a system and by `game.explain`; `app.ui.scroll(key, to)` and the visual step `{ scroll: { key, to } }` set it at once), `input` (a text field; its text lives in the component's `local`, see the ui README), `anchor` (`to: AnchorTarget | AnchorTarget[]`, `AnchorTarget` = `{ projection, key }`, a ui element keyed under its root's projection; `pad?: number` (0) outward in its root's units: its rect is where its targets are drawn, the union of the shown ones, in the frame they are laid out, scrolled or moved, through fits, slots and ancestor motion, rotation left out; children lay out inside it; a `width`/`height`/`position` in its style is ignored (`ui:anchor-style`, dev); with no target shown it is drawn at alpha 0 and takes no tap, stays, and comes back with its target; `ui:anchor-target-missing` `{ key, to }` once (dev) after a key named nothing two frames in a row; a target inside the anchor is refused, `[game] An anchor cannot point at its own child "key".`; its `change.Box` motion plays only when its targets change (a new `to`, a key naming another entity), never on a follow, and a glide that runs is carried so it lands on the moving target; 0 B a frame still or following: `<anchor key="window" to={{ projection: "board.strip", key: "seat0" }} pad={4} motion={glide}>`). Common props: `key`, `style`, `state: { active?, disabled?, selected? }`, `motion`, `components` (extra component values for the element's entity, such as a filter: `components={[Glow({ strength: 2 })]}`, or `DebugTrigger()`: five taps within 3000 ms of wall time on that view call `app.debug.overlay.open()` on a page with the agent flag, nothing elsewhere; put it on a `button` naming nothing); containers take `hosts?: string[]` (projections drawn inside the element: world views hang under it from the slot's first frame; a JSX projection is laid out in the slot's content box). Children draw and are hit in markup order at equal `zIndex`; the roots of a scene draw in the order of its `projections` (the `ui` layer sorts by `Order`; `ui: { sort: "none" }` keeps insertion order). `defineMotion({ when: "change" })` plays its `enter` and `exit` only for a commit or a popup, never when its screen mounts or unmounts; declare a motion at module level (`ui:motion-rebuilt` names a loop rebuilt in a view). `motion.change` plays `Box` (the rects), `Transform` (the rest poses), the visual the element is drawn with (`Shape`, `Sprite`, `NineSlice`, `Text`, when a render or a restyle moves a number of it: `sweep`, `alpha`, `w`; a returned motion brings the numbers home from where they stand and the other fields land at once; the last motion of that name is cancelled first) and each extra of `components`, each as `(view, previous, next, hint)`; a dev build names any other `change` hook once, `ui:change-never-plays` `{ key, name }`. An element a render replaces (a root whose view returns another key or tag, a child of another key or tag) plays its exit with `"change"`, everything under it plays its own, and it leaves `find` at once, so the new element takes the keys they share. Style adds `nineSlice`, `tint`, `offsetX`, `offsetY`, `scale`, `origin`, `fit: "contain"`; state variants `is: { hover, pressed, disabled, active, selected, covered }`. `popup(Component, props, { over })` stacks a popup over a kept one.
597
598
  - Style vocabulary (`defineStyle`, plain data): flow `direction`, `wrap`, `justify`, `align`, `alignSelf`, `gap`, `grow`, `shrink`; box `padding`, `margin`, `width`, `height`, `minWidth`, `minHeight`, `maxWidth`, `maxHeight`, `aspect`, `overflow`; position `position`, `left`, `top`, `right`, `bottom`, `reason`; visual `fill`, `stroke`, `strokeWidth`, `radius`, `alpha`, `shape: "rect" | "triangle" | "arc"` (`"rect"`; a triangle fills the box pointing right; an arc is only a `stroke` of `strokeWidth` on the circle inscribed in the box, `min(width, height) − strokeWidth` across, from 12 o'clock clockwise over `sweep`), `dash` (dash length of the stroke, gaps of half a dash; not on an arc), `sweep` (0..1, default 1, clamped; 0 draws nothing, 1 a closed ring), `cap: "round" | "butt"` (`"round"`; the ends of an open arc); variants `is: { pressed?, disabled?, active?, selected? }` and `when: { portrait?, landscape?, tall?, wide? }`, each a partial style merged in when the flag holds. Lengths are reference units or `"safeArea.top" | "safeArea.right" | "safeArea.bottom" | "safeArea.left"`. No font size here: it comes from the text style.
598
- - `defineComponent(name, { local?, outcomes?, view(props, local) })`. A component with `outcomes` is a popup: `await fx(popup(Component, props))` opens the gate for its outcomes and resolves with `{ intent, payload }` of the pressed button. A button with `local` writes into the nearest component instance; it never reaches the graph.
599
+ - `defineComponent(name, { local?, outcomes?, view(props, local) })`. A component with `outcomes` is a popup: `await fx(popup(Component, props))` opens the gate for its outcomes and resolves with `{ intent, payload, at }` of the pressed button, `at` the clock moment of the answer. A button with `local` writes into the nearest component instance; it never reaches the graph.
599
600
  - `tr(key, params?)` returns a frozen `Message` `{ key, params }`; no locale is read at the call site. Strings live in `strings/<locale>.json` of any feature or sub-feature, as ICU MessageFormat 1 (`{n, plural, one {# order} other {# orders}}`, `select`, `selectordinal`, `number`, `date`, `time`; no skeletons, no `currency`). `bun run assets:keys` compiles them. The keys of the top-level features and the layers go into `generated/strings.<locale>.ts`, which one feature registers; a sub-feature's keys start with `<name>.` (`ep01.title`) and go into `generated/strings.<name>.<locale>.ts`, which the sub-feature registers lazily, `strings: { en: () => import("@generated/strings.ep01.en"), ru: () => import("@generated/strings.ep01.ru") }`. With `assets` composed those modules load and unload with the bundle named like the sub-feature: every way the bundle comes (a node entry, a scene's `bundles`, `load`, a restore, the `safeNode`) brings its strings, a locale switch brings them in the new locale, and while the bundle is not loaded a key of it gives `⟦key⟧` and `has(key)` is false. A compiled module calls the root helpers `messageArgument(value, intl)` (an element stays an element part, a list goes through `Intl.ListFormat`, a number through `Intl.NumberFormat`, else text) and `messageDuration(ms)` (`95_000` gives `{ minutes: 1, seconds: 35 }`). `app.i18n`: `locale()`, `setLocale(locale)` (async, emits `i18n:locale-changed`), `format(message, locale?)` returns `Part[]`, `plain(message)` returns a string, `has(key)`, `isKey(value)`, `locales()`, `replace(locale, messages)` (dev hot swap of a generated strings file). Config: `locale: "en"`, `fallback: "en"`, `locales: {}`.
600
601
  - Keys that come from data: `I18n.TextKey<Strings>` is the keys of the generated `Strings` without parameters (nothing new is generated). A data table types its keys `TextKey` or builds them with the kit's `key("board.hint.red")`; the kit's `tr` never takes a plain `string`. A key read back from a save is checked where the app is (an effect handler, app or page code, loading a save) with one `isKey(value)`: `defineGameApp({ ..., strings: type<Strings>() })` types the game's `app.i18n`, so a true `app.i18n.isKey(value)` narrows the value to `TextKey`; `ctx.require(i18nPlugin).isKey(value)` in a plugin narrows to `string`. `app.i18n.isKey(value)` answers true for a key of the loaded tables of the current locale or the fallback, and for the `<feature>.` prefix of a sub-feature whose strings are not loaded yet; a key that takes parameters answers true too.
601
602
  - Text: `Text` component, `label({ text, style, at, anchor? })` for board text in a projection view, `defineTextStyles({ "hud.digits": { font, size, fill, bold?, italic?, stroke?, strokeWidth?, letterSpacing?, align?, wrap? (a width, "none" or "box": wrap at the laid-out width of its ui element; lines break between words, after a hyphen inside a word and at a soft hyphen U+00AD, drawn as `-` only where the line breaks), digits?, lineHeight? (the line as a multiple of size above 0, such as 1.28; glyphs sit in the middle of the line; absent: the font's own line) } })` under the feature's `textStyles` key. Tags inside a string: `<b>`, `<i>`, `<color=#rrggbb>`, `<icon=key>`, `\<`, `\n`. Built-in styles `body` and `digits` from config `fonts: { body: "ui.font-body", digits: "ui.font-digits" }`. `app.text.measure(content, style, width?)` gives the same numbers in a browser and in Bun. `app.text.replaceStyles(styles)` is the dev hot swap of a saved `defineTextStyles` value. A game's own number format: `defineTextFormats({ "pill.number": value => ({ content, style }) })` under the feature's `textFormats` key, named by the `bind` of `defineGame` (`GameTypes.textFormats`): `bind(Counter, "value", { format: "pill.number" })`. It takes the whole value, is pure over value and language, is not called while the whole value and the locale stand, and owns `Text.style`; a `Countdown` calls it every frame. `app.text.formatted(name, value)` answers `{ text, style }`, `undefined` for an unknown or built-in name and for a format that threw. A saved module exporting formats reloads the page.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moku-labs/game",
3
- "version": "0.15.93",
3
+ "version": "0.15.94",
4
4
  "description": "2D puzzle game engine on TypeScript and PixiJS, built on @moku-labs/core.",
5
5
  "type": "module",
6
6
  "sideEffects": [