@moku-labs/game 0.15.66 → 0.15.68

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.
@@ -1,4 +1,4 @@
1
- import { m as StartedPage, r as GameConfig, t as AnyGameApp, u as PageOptions } from "../types-Chzp2med.mjs";
1
+ import { m as StartedPage, r as GameConfig, t as AnyGameApp, u as PageOptions } from "../types-D9K8Z4rn.mjs";
2
2
 
3
3
  //#region src/app/page.d.ts
4
4
  /**
@@ -1,6 +1,6 @@
1
- import { Fr as PlayerStateProvider } from "../types-CmwjkCj5.mjs";
2
- import { ht as PlatformProvider } from "../index-BJtzpola.mjs";
3
- import { _ as SystemShellFactory, g as SystemName, h as SystemModules } from "../types-Chzp2med.mjs";
1
+ import { Fr as PlayerStateProvider } from "../types-BZKA93ET.mjs";
2
+ import { ht as PlatformProvider } from "../index-B0SkvWYo.mjs";
3
+ import { _ as SystemShellFactory, g as SystemName, h as SystemModules } from "../types-D9K8Z4rn.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 { Ar as Json } from "./types-CmwjkCj5.mjs";
2
- import { U as StringTable } from "./types-CafT9oPU.mjs";
3
- import { a as GameHandle, c as MemoryProvider, d as SaveKind, f as Scenario, g as SystemName, i as GameDefinition, l as PageAgent, n as GameApp, o as GamePluginConfigs, p as ScreenSeams, r as GameConfig, s as HeadlessSeams, v as WithGameState } from "./types-Chzp2med.mjs";
1
+ import { Ar as Json } from "./types-BZKA93ET.mjs";
2
+ import { U as StringTable } from "./types-Do69nHfS.mjs";
3
+ import { a as GameHandle, c as MemoryProvider, d as SaveKind, f as Scenario, g as SystemName, i as GameDefinition, l as PageAgent, n as GameApp, o as GamePluginConfigs, p as ScreenSeams, r as GameConfig, s as HeadlessSeams, v as WithGameState } from "./types-D9K8Z4rn.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-CSmeCq6N.mjs";
1
+ import { Ft as audioPlugin, H as platformPlugin, i as screen, m as flattenFeatures, t as createApp, wt as effectsPlugin } from "./src-DXyZrs7u.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-CmwjkCj5.mjs";
1
+ import { d as Manifest } from "./types-BZKA93ET.mjs";
2
2
 
3
3
  //#region src/plugins/assets/scan/cli.d.ts
4
4
  /**
@@ -1,8 +1,8 @@
1
- import { D as DebugSwitches, Qr as FrameRate, Sn as Bookmark, Tn as FlowState, Vr as StoreApi, Wr as Api, Y as Api$1, gr as Api$2, ni as Time, ot as Captured, w as ScenesApi, zr as Snapshot } from "./types-CmwjkCj5.mjs";
2
- import { P as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-feXn09s4.mjs";
3
- import { N as InputApi } from "./types-CafT9oPU.mjs";
4
- import { t as HeadlessApp } from "./headless-BdfPq6Rk.mjs";
5
- import { n as Command, r as ControlApp } from "./types-C9LTGx_J.mjs";
1
+ import { D as DebugSwitches, Qr as FrameRate, Sn as Bookmark, Tn as FlowState, Vr as StoreApi, Wr as Api, Y as Api$1, gr as Api$2, ni as Time, ot as Captured, w as ScenesApi, zr as Snapshot } from "./types-BZKA93ET.mjs";
2
+ import { P as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-D32c8jB6.mjs";
3
+ import { N as InputApi } from "./types-Do69nHfS.mjs";
4
+ import { t as HeadlessApp } from "./headless-CioallrX.mjs";
5
+ import { n as Command, r as ControlApp } from "./types-CHxk93vk.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-BdfPq6Rk.mjs";
2
- import { i as InputArguments, n as Command, o as InputSchema, s as Ran } from "./types-C9LTGx_J.mjs";
3
- import { t as commands } from "./commands-Bm8eGFaH.mjs";
4
- import { t as defineCommand } from "./define-CvDuGXk8.mjs";
1
+ import { t as HeadlessApp } from "./headless-CioallrX.mjs";
2
+ import { i as InputArguments, n as Command, o as InputSchema, s as Ran } from "./types-CHxk93vk.mjs";
3
+ import { t as commands } from "./commands-BwR4qbnN.mjs";
4
+ import { t as defineCommand } from "./define-xiy0xWQP.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-BdfPq6Rk.mjs";
2
- import { c as Source, n as Command, o as InputSchema } from "./types-C9LTGx_J.mjs";
1
+ import { t as HeadlessApp } from "./headless-CioallrX.mjs";
2
+ import { c as Source, n as Command, o as InputSchema } from "./types-CHxk93vk.mjs";
3
3
 
4
4
  //#region src/plugins/flow/doors/define.d.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { Ar as Json, En as JournalEntry, Ln as Answer, On as RouteStep, Tn as FlowState, Ur as RngState, Xr as Api, nn as Api$1 } from "./types-CmwjkCj5.mjs";
1
+ import { Ar as Json, En as JournalEntry, Ln as Answer, On as RouteStep, Tn as FlowState, Ur as RngState, Xr as Api, nn as Api$1 } from "./types-BZKA93ET.mjs";
2
2
 
3
3
  //#region src/plugins/flow/headless.d.ts
4
4
  /**
@@ -1,6 +1,6 @@
1
- import { $r as RateChange, Ar as Json, B as ShapeValue, Bn as DescriptionNode, C as SceneSpec, Cn as DefineNode, Cr as Config$2, Dt as PassKind, F as NineSliceValue, Fn as Hint, Gn as NumericFields, Gr as Config$4, Hr as RngApi, Jn as ReducedMotion, Jr as State$4, K as TransformValue, Kn as ProjectionMotion, Kr as Events, L as OverlayValue, Ln as Answer, Mn as Effect, Mr as State$5, N as HudPartValue, Nn as EffectOptions, Or as Config$5, Pn as GuideOptions, Pr as Patch, S as SceneDefinition, T as State$7, Tr as State$2, U as SpriteOptions, Vn as Ease, Vr as StoreApi, W as SpriteValue, Wr as Api$3, X as Config$6, Xr as Api$5, Y as Api$4, Zr as Config$8, _ as AnySceneProjection, _r as Config$9, _t as FrameRing, a as Config$1, ai as Events$1, an as EmitterIdOf, ar as ComponentValue, bn as FeatureTree, c as LoadBundles, dr as QueryTerm, dt as ViewportSize, ei as State$8, f as ReadyBundles, fr as ResourceType, gr as Api$6, gt as FrameRecord, hr as TagType, i as BundleSpec, ii as Config$10, in as Config$3, ir as ComponentType, jn as Descriptor, jr as Root, kn as SceneIdOf, l as LoadReason, ln as State$3, lr as Mut, m as Tier, mr as SystemFor, nn as Api$2, nr as ComponentHandle, o as DefineBundles, oi as Require, on as GameTypes, p as State$1, pn as defineFlow, pr as SystemDefinition, q as sprite, qn as ProjectionSpec, qr as PauseReason, r as BundleMap, rn as BundlesOf, rt as State$6, sn as HudKeysOf, t as Api, ti as ThermalReading, u as LoadResult, un as TextStylesOf, ur as Narrowed, v as Config$7, vn as FeatureDescription, w as ScenesApi, x as LayerMap, xr as Api$1, y as DefineScene, yn as FeaturePlugin, yr as State$9 } from "./types-CmwjkCj5.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-feXn09s4.mjs";
3
- import { B as Message, C as State$16, D as TextStyleInput, G as TypedTr, H as State$14, I as Argument, J as ResolvedStyle, L as Config$15, M as Config$16, N as InputApi, O as TextStyles, P as State$15, R as I18nApi, S as Point, T as TextBind, V as Part, W as TextKey, Y as Style, Z as WhenFlags, b as Config$17, g as IntrinsicElementsFor, h as defineTokens, j as defineComponent, k as TextValue, q as IsFlags, s as PopupComponent, v as BindField, w as TextApi, x as CountdownValue, y as BindOptions, z as IntlKit } from "./types-CafT9oPU.mjs";
1
+ import { $r as RateChange, Ar as Json, B as ShapeValue, Bn as DescriptionNode, C as SceneSpec, Cn as DefineNode, Cr as Config$2, Dt as PassKind, F as NineSliceValue, Fn as Hint, Gn as NumericFields, Gr as Config$4, Hr as RngApi, Jn as ReducedMotion, Jr as State$4, K as TransformValue, Kn as ProjectionMotion, Kr as Events, L as OverlayValue, Ln as Answer, Mn as Effect, Mr as State$5, N as HudPartValue, Nn as EffectOptions, Or as Config$5, Pn as GuideOptions, Pr as Patch, S as SceneDefinition, T as State$7, Tr as State$2, U as SpriteOptions, Vn as Ease, Vr as StoreApi, W as SpriteValue, Wr as Api$3, X as Config$6, Xr as Api$5, Y as Api$4, Zr as Config$8, _ as AnySceneProjection, _r as Config$9, _t as FrameRing, a as Config$1, ai as Events$1, an as EmitterIdOf, ar as ComponentValue, bn as FeatureTree, c as LoadBundles, dr as QueryTerm, dt as ViewportSize, ei as State$8, f as ReadyBundles, fr as ResourceType, gr as Api$6, gt as FrameRecord, hr as TagType, i as BundleSpec, ii as Config$10, in as Config$3, ir as ComponentType, jn as Descriptor, jr as Root, kn as SceneIdOf, l as LoadReason, ln as State$3, lr as Mut, m as Tier, mr as SystemFor, nn as Api$2, nr as ComponentHandle, o as DefineBundles, oi as Require, on as GameTypes, p as State$1, pn as defineFlow, pr as SystemDefinition, q as sprite, qn as ProjectionSpec, qr as PauseReason, r as BundleMap, rn as BundlesOf, rt as State$6, sn as HudKeysOf, t as Api, ti as ThermalReading, u as LoadResult, un as TextStylesOf, ur as Narrowed, v as Config$7, vn as FeatureDescription, w as ScenesApi, x as LayerMap, xr as Api$1, y as DefineScene, yn as FeaturePlugin, yr as State$9 } from "./types-BZKA93ET.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-D32c8jB6.mjs";
3
+ import { B as Message, C as State$16, D as TextStyleInput, G as TypedTr, H as State$14, I as Argument, J as ResolvedStyle, L as Config$15, M as Config$16, N as InputApi, O as TextStyles, P as State$15, R as I18nApi, S as Point, T as TextBind, V as Part, W as TextKey, Y as Style, Z as WhenFlags, b as Config$17, g as IntrinsicElementsFor, h as defineTokens, j as defineComponent, k as TextValue, q as IsFlags, s as PopupComponent, v as BindField, w as TextApi, x as CountdownValue, y as BindOptions, z as IntlKit } from "./types-Do69nHfS.mjs";
4
4
  import { Log } from "@moku-labs/common/browser";
5
5
  import { PluginCtx } from "@moku-labs/core";
6
6
 
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { $t as ShaderWhat, At as PerfChange, Bn as DescriptionNode, Bt as PerfLongFrameLine, Ct as PERF_CAUSES, Dt as PassKind, E as types_d_exports$13, Er as types_d_exports$3, Et as PROBLEM_RULES, Ft as PerfEventLine, G as Transform, Gt as PerfStartupLine, H as SpriteBlend, Ht as PerfMeasured, I as Overlay, It as PerfEventName, J as AdaptiveScale, Jt as PoolTrimDetail, Kt as PerfTelemetryLine, L as OverlayValue, Lt as PerfGapLine, M as HudPart, Mt as PerfCollectorLine, N as HudPartValue, Nr as types_d_exports$10, Nt as PerfCounts, Ot as PassRecord, P as NineSlice, Pt as PerfDisplay, Qt as ShaderEventDetail, R as Parent, Rn as AnchorTarget, Rr as SaveUnreadableError, Rt as PerfHeaderLine, St as OverlayWhat, Tt as PERF_LOG_VERSION, Ut as PerfSampleLine, V as Sprite, Vt as PerfMarkLine, Wt as PerfSpikeLine, Xt as ProblemRule, Yn as SceneSwitch, Yr as types_d_exports$9, Yt as ProblemEventDetail, Z as MonitorConfig, Zt as SHADER_WHATS, _n as type, _t as FrameRing, at as types_d_exports$12, br as types_d_exports$17, bt as MonitorSections, dn as types_d_exports$6, en as WarmDetail, fn as contribution, g as types_d_exports$1, gn as to, gt as FrameRecord, hn as slot, ht as FrameReadout, j as Display, jt as PerfChangeEntry, kt as PerfCause, mn as exit, mt as FrameReadResult, nt as PoolTrim, pt as FrameColumns, q as sprite, qt as PerfThermalLine, ri as types_d_exports$15, st as MonitorCounts, tn as DEMAND_REASONS, vt as LongFrameEntry, wt as PERF_GAP_BUCKETS, xt as OverlayEventDetail, yt as MONITOR_SECTIONS, z as Shape, zt as PerfLogLine } from "./types-CmwjkCj5.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-feXn09s4.mjs";
3
- import { A as types_d_exports$14, E as TextFormat, F as types_d_exports$8, K as types_d_exports$7, d as DebugTrigger, f as LocalWrite, h as defineTokens, j as defineComponent, m as popup, p as ScrollState, u as Box, x as CountdownValue, y as BindOptions } from "./types-CafT9oPU.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 defineTextStyles, N as Hovered, Nt as label, O as load, Ot as projection, P as Pointer, 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-BJtzpola.mjs";
1
+ import { $t as ShaderWhat, At as PerfChange, Bn as DescriptionNode, Bt as PerfLongFrameLine, Ct as PERF_CAUSES, Dt as PassKind, E as types_d_exports$13, Er as types_d_exports$3, Et as PROBLEM_RULES, Ft as PerfEventLine, G as Transform, Gt as PerfStartupLine, H as SpriteBlend, Ht as PerfMeasured, I as Overlay, It as PerfEventName, J as AdaptiveScale, Jt as PoolTrimDetail, Kt as PerfTelemetryLine, L as OverlayValue, Lt as PerfGapLine, M as HudPart, Mt as PerfCollectorLine, N as HudPartValue, Nr as types_d_exports$10, Nt as PerfCounts, Ot as PassRecord, P as NineSlice, Pt as PerfDisplay, Qt as ShaderEventDetail, R as Parent, Rn as AnchorTarget, Rr as SaveUnreadableError, Rt as PerfHeaderLine, St as OverlayWhat, Tt as PERF_LOG_VERSION, Ut as PerfSampleLine, V as Sprite, Vt as PerfMarkLine, Wt as PerfSpikeLine, Xt as ProblemRule, Yn as SceneSwitch, Yr as types_d_exports$9, Yt as ProblemEventDetail, Z as MonitorConfig, Zt as SHADER_WHATS, _n as type, _t as FrameRing, at as types_d_exports$12, br as types_d_exports$17, bt as MonitorSections, dn as types_d_exports$6, en as WarmDetail, fn as contribution, g as types_d_exports$1, gn as to, gt as FrameRecord, hn as slot, ht as FrameReadout, j as Display, jt as PerfChangeEntry, kt as PerfCause, mn as exit, mt as FrameReadResult, nt as PoolTrim, pt as FrameColumns, q as sprite, qt as PerfThermalLine, ri as types_d_exports$15, st as MonitorCounts, tn as DEMAND_REASONS, vt as LongFrameEntry, wt as PERF_GAP_BUCKETS, xt as OverlayEventDetail, yt as MONITOR_SECTIONS, z as Shape, zt as PerfLogLine } from "./types-BZKA93ET.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-D32c8jB6.mjs";
3
+ import { A as types_d_exports$14, E as TextFormat, F as types_d_exports$8, K as types_d_exports$7, d as DebugTrigger, f as LocalWrite, h as defineTokens, j as defineComponent, m as popup, p as ScrollState, u as Box, x as CountdownValue, y as BindOptions } from "./types-Do69nHfS.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 defineTextStyles, N as Hovered, Nt as label, O as load, Ot as projection, P as Pointer, 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-B0SkvWYo.mjs";
5
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, 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 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, SHADER_WHATS, SaveUnreadableError, type SceneSwitch, types_d_exports$13 as Scenes, ScrollState, type ShaderEventDetail, type ShaderWhat, Shape, Sprite, type SpriteBlend, Swipeable, Tappable, Text, type TextFormat, 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, 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, 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 flowPlugin, 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 worldPlugin, 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 DEMAND_REASONS, _ as defineBundles, _t as Tappable, a as cubicBezier, an as type, at as use, b as types_exports$17, bt as Traced, c as hint, cn as lifecyclePlugin, ct as Draggable, d as defineScene, dt as Hovered, 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 to, it as tween, j as types_exports$6, jt as Noise, k as types_exports$8, kt as Displacement, l as schedule, ln as timePlugin, lt as DropTarget, m as flattenFeatures, mt as Pressable, n as createPlugin, nn as exit, nt as stagger, o as defineEffect, on as modelPlugin, ot as wait, p as defineFeature, pt as PointerOver, q as haptic, qt as PERF_GAP_BUCKETS, r as defineGame, rn as slot, rt as stopSfx, s as guide, sn as SaveUnreadableError, st as inputPlugin, t as createApp, tn as contribution, tt as spawned, u as projection, un as clockPlugin, 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-CSmeCq6N.mjs";
1
+ import { $ as sfx, $t as flowPlugin, 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 worldPlugin, 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 DEMAND_REASONS, _ as defineBundles, _t as Tappable, a as cubicBezier, an as type, at as use, b as types_exports$17, bt as Traced, c as hint, cn as lifecyclePlugin, ct as Draggable, d as defineScene, dt as Hovered, 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 to, it as tween, j as types_exports$6, jt as Noise, k as types_exports$8, kt as Displacement, l as schedule, ln as timePlugin, lt as DropTarget, m as flattenFeatures, mt as Pressable, n as createPlugin, nn as exit, nt as stagger, o as defineEffect, on as modelPlugin, ot as wait, p as defineFeature, pt as PointerOver, q as haptic, qt as PERF_GAP_BUCKETS, r as defineGame, rn as slot, rt as stopSfx, s as guide, sn as SaveUnreadableError, st as inputPlugin, t as createApp, tn as contribution, tt as spawned, u as projection, un as clockPlugin, 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-DXyZrs7u.mjs";
2
2
  import { $ as Layer, B as Display, C as defineStyle, E as bind, G as Parent, H as NineSlice, J as Transform, K as Shape, O as defineTextStyles, Q as Exiting, S as defineTokens, T as Text, U as Overlay, V as HudPart, Z as sprite, _ as ScrollState, at as resource, b as popup, ct as tag, d as Box, et as Now, h as LocalWrite, it as mut, k as label, nt as Tree, ot as system, p as DebugTrigger, q as Sprite, rt as component, tt as Order, w as Countdown } from "./visual-B7TxMv1J.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, 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, 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, En as JournalEntry, Y as Api$2, cn as Position, cr as FrameDiff, ct as RenderStats, gr as Api$1, h as Usage, it as Under, rr as ComponentSchema, sr as EntitySnapshot, t as Api$3, vr as Explained, wn as FlowGraph, zr as Snapshot } from "./types-CmwjkCj5.mjs";
2
- import { a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-feXn09s4.mjs";
3
- import { c as UiNode } from "./types-CafT9oPU.mjs";
4
- import { t as HeadlessApp } from "./headless-BdfPq6Rk.mjs";
5
- import { a as InputOf, c as Source, i as InputArguments, l as WatchApp, o as InputSchema, t as CheatEntry, u as WatchInput } from "./types-C9LTGx_J.mjs";
6
- import { n as defineSource } from "./define-CvDuGXk8.mjs";
1
+ import { Dr as Api, En as JournalEntry, Y as Api$2, cn as Position, cr as FrameDiff, ct as RenderStats, gr as Api$1, h as Usage, it as Under, rr as ComponentSchema, sr as EntitySnapshot, t as Api$3, vr as Explained, wn as FlowGraph, zr as Snapshot } from "./types-BZKA93ET.mjs";
2
+ import { a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-D32c8jB6.mjs";
3
+ import { c as UiNode } from "./types-Do69nHfS.mjs";
4
+ import { t as HeadlessApp } from "./headless-CioallrX.mjs";
5
+ import { a as InputOf, c as Source, i as InputArguments, l as WatchApp, o as InputSchema, t as CheatEntry, u as WatchInput } from "./types-CHxk93vk.mjs";
6
+ import { n as defineSource } from "./define-xiy0xWQP.mjs";
7
7
 
8
8
  //#region src/plugins/flow/doors/read.d.ts
9
9
  /**
@@ -1,2 +1,2 @@
1
- import { a as jsxs, i as jsxDEV, n as JSX, r as jsx, t as Fragment } from "./runtime-BOpDKzS4.mjs";
1
+ import { a as jsxs, i as jsxDEV, n as JSX, r as jsx, t as Fragment } from "./runtime-DvrJ6g-z.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-BOpDKzS4.mjs";
1
+ import { a as jsxs, n as JSX, r as jsx, t as Fragment } from "./runtime-DvrJ6g-z.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-CafT9oPU.mjs";
1
+ import { _ as UiIntrinsicElements, a as JsxChild, t as DescriptionNode } from "./types-Do69nHfS.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. */
@@ -3,7 +3,7 @@ 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
5
  import { $ as Layer, A as readStyle, B as Display, D as builtInStyles, F as parentOf$1, G as Parent, H as NineSlice, I as poseUnder, J as Transform, K as Shape, L as rootPointOf, M as applyPose, N as isLeaving, P as localPoseOf, Q as Exiting, R as rootPoseInto, T as Text, U as Overlay, V as HudPart, W as OverlayLevel, X as componentsFor, Y as arcDefaults, _ as ScrollState, a as fitScaleOf, at as resource, c as samePose, ct as tag, d as Box, et as Now, f as Covered, g as Scroll, h as LocalWrite, i as fieldsLeftAlone, j as textFor, l as visualOf$1, m as Escapable, n as CONTENT$1, nt as Tree, o as livePatch, ot as system, p as DebugTrigger, q as Sprite, r as drawnRect, rt as component, s as restValueOf, st as systemsFor, tt as Order, u as visualRectOf, v as UI_OWNER, w as Countdown, x as uiFor, y as UiCounters, z as rootPoseOf } from "./visual-B7TxMv1J.mjs";
6
- import { a as isDev } from "./dev-BNndV-hU.mjs";
6
+ import { a as isDev$1 } 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";
9
9
  import { envPlugin, logPlugin } from "@moku-labs/common/browser";
@@ -3422,6 +3422,30 @@ function objectEquals(left, right) {
3422
3422
  * for an answer that arrived while the gate was closed, and the `guide` narrow.
3423
3423
  */
3424
3424
  /**
3425
+ * Tells whether the dev log is on: a dev build, `__MOKU_GAME_DEV__` defined true.
3426
+ *
3427
+ * @returns True in a dev build.
3428
+ */
3429
+ function isDev() {
3430
+ return typeof __MOKU_GAME_DEV__ !== "undefined" && __MOKU_GAME_DEV__;
3431
+ }
3432
+ /**
3433
+ * Logs, in a dev build, an answer a closed gate refused that no gate will take (F122). The payload
3434
+ * is built only when the line is written.
3435
+ *
3436
+ * @param ctx - Domain context of the flow plugin.
3437
+ * @param answer - The answer that is lost.
3438
+ * @param reason - Why no gate takes it.
3439
+ */
3440
+ function dropped(ctx, answer, reason) {
3441
+ if (!isDev()) return;
3442
+ ctx.log.warn("flow:answer-dropped", {
3443
+ intent: answer.intent,
3444
+ payload: answer.payload,
3445
+ reason
3446
+ });
3447
+ }
3448
+ /**
3425
3449
  * Tells whether an answer is the one a guide names: the intent matches, and the payload too when
3426
3450
  * the guide's answer carries one.
3427
3451
  *
@@ -3512,9 +3536,17 @@ function deliver$1(state, answer) {
3512
3536
  * @param answer - The answer the closed gate refused.
3513
3537
  */
3514
3538
  function hold$1(ctx, answer) {
3515
- if (ctx.state.fx.mode === "fast") return;
3516
- if (!ctx.deps.time.isRunning()) return;
3517
- if (ctx.config.holdMs <= 0 && ctx.state.gate.held !== void 0) return;
3539
+ if (ctx.state.fx.mode === "fast") {
3540
+ dropped(ctx, answer, "fast");
3541
+ return;
3542
+ }
3543
+ if (!ctx.deps.time.isRunning()) {
3544
+ dropped(ctx, answer, "stopped");
3545
+ return;
3546
+ }
3547
+ const previous = ctx.state.gate.held;
3548
+ if (ctx.config.holdMs <= 0 && previous !== void 0) return;
3549
+ if (previous !== void 0) dropped(ctx, previous.answer, "replaced");
3518
3550
  const { frame, elapsed } = ctx.deps.time.snapshot();
3519
3551
  const heldFor = frame === ctx.state.gate.aged ? frame + 1 : frame;
3520
3552
  ctx.state.gate.held = {
@@ -3534,8 +3566,14 @@ function offerHeld(ctx) {
3534
3566
  const held = ctx.state.gate.held;
3535
3567
  if (held === void 0) return;
3536
3568
  ctx.state.gate.held = void 0;
3537
- if (ctx.state.fx.mode === "fast") return;
3538
- if (!accepts(ctx.state.gate, held.answer)) return;
3569
+ if (ctx.state.fx.mode === "fast") {
3570
+ dropped(ctx, held.answer, "fast");
3571
+ return;
3572
+ }
3573
+ if (!accepts(ctx.state.gate, held.answer)) {
3574
+ dropped(ctx, held.answer, "refusedNext");
3575
+ return;
3576
+ }
3539
3577
  deliver$1(ctx.state.gate, held.answer);
3540
3578
  }
3541
3579
  /**
@@ -3595,9 +3633,12 @@ function createGateApi(ctx) {
3595
3633
  if (held.frame === frame) return;
3596
3634
  if (ctx.config.holdMs > 0 && elapsed - held.at <= ctx.config.holdMs) return;
3597
3635
  ctx.state.gate.held = void 0;
3636
+ dropped(ctx, held.answer, "expired");
3598
3637
  },
3599
3638
  dropHeld: () => {
3639
+ const held = ctx.state.gate.held;
3600
3640
  ctx.state.gate.held = void 0;
3641
+ if (held !== void 0) dropped(ctx, held.answer, "jumped");
3601
3642
  }
3602
3643
  };
3603
3644
  }
@@ -33842,7 +33883,13 @@ function createSyncApi(ctx, deps) {
33842
33883
  state.outlinesStale = true;
33843
33884
  },
33844
33885
  verifyFrames: (on) => deps.demand.verifyFrames(on),
33845
- kept: (on) => deps.kept.enabled(on),
33886
+ kept: (on) => {
33887
+ if (typeof on !== "boolean") {
33888
+ ctx.log.warn("renderer:debug-kept-needs-boolean", { on });
33889
+ return;
33890
+ }
33891
+ deps.kept.enabled(on);
33892
+ },
33846
33893
  overdraw: (on) => {
33847
33894
  const next = on && (typeof __MOKU_GAME_DEV__ !== "undefined" && __MOKU_GAME_DEV__ || typeof __MOKU_GAME_AGENT__ !== "undefined" && __MOKU_GAME_AGENT__);
33848
33895
  if (state.debug.overdraw === next) return;
@@ -49590,7 +49637,7 @@ function bake(ectx, id) {
49590
49637
  }
49591
49638
  textures.push(texture);
49592
49639
  }
49593
- const baked = bakeEmitter(definition, isDev() ? firstSource(ectx, id, keys, textures) : textures);
49640
+ const baked = bakeEmitter(definition, isDev$1() ? firstSource(ectx, id, keys, textures) : textures);
49594
49641
  state.baked.set(id, baked);
49595
49642
  return baked;
49596
49643
  }
@@ -51345,6 +51392,183 @@ const i18nPlugin = /*#__PURE__*/ createPlugin$1("i18n", {
51345
51392
  onStart: startI18n
51346
51393
  });
51347
51394
  //#endregion
51395
+ //#region src/plugins/input/components.ts
51396
+ const scrollableDefaults = {
51397
+ axis: "y",
51398
+ moving: false
51399
+ };
51400
+ /**
51401
+ * Fresh defaults for a component that names an intent. A function, so each component type gets
51402
+ * its own payload object instead of sharing one.
51403
+ *
51404
+ * @returns An empty intent and an empty payload.
51405
+ * @example
51406
+ * ```ts
51407
+ * intentDefaults(); // { intent: "", payload: {} }
51408
+ * ```
51409
+ */
51410
+ function intentDefaults() {
51411
+ return {
51412
+ intent: "",
51413
+ payload: {}
51414
+ };
51415
+ }
51416
+ /**
51417
+ * Fresh defaults for the one component that carries a payload without an intent.
51418
+ *
51419
+ * @returns An empty payload and nothing carried along.
51420
+ * @example
51421
+ * ```ts
51422
+ * carryDefaults(); // { payload: {}, carry: [] }
51423
+ * ```
51424
+ */
51425
+ function carryDefaults() {
51426
+ return {
51427
+ payload: {},
51428
+ carry: []
51429
+ };
51430
+ }
51431
+ const pointerDefaults = {
51432
+ x: 0,
51433
+ y: 0,
51434
+ down: false,
51435
+ justPressed: false,
51436
+ justReleased: false,
51437
+ id: -1
51438
+ };
51439
+ /**
51440
+ * A tap on this view answers `{ intent, payload }`.
51441
+ */
51442
+ const Tappable = /*#__PURE__*/ component("Tappable", intentDefaults());
51443
+ /**
51444
+ * A long press on this view answers `{ intent, payload }`.
51445
+ */
51446
+ const Pressable = /*#__PURE__*/ component("Pressable", intentDefaults());
51447
+ /**
51448
+ * This view can be carried by the finger. It names no intent; the drop target does. The views
51449
+ * whose keys `carry` lists hang under it from the grab to the release and fly home with it. With
51450
+ * an `aim`, the hover and the drop are looked up under that point of the view in the hand.
51451
+ */
51452
+ const Draggable = /*#__PURE__*/ component("Draggable", carryDefaults());
51453
+ /**
51454
+ * A drop on this view answers THIS intent, with the carried payload merged under it.
51455
+ */
51456
+ const DropTarget = /*#__PURE__*/ component("DropTarget", intentDefaults());
51457
+ /**
51458
+ * A swipe on this view answers `{ intent, payload: { ...payload, direction } }`.
51459
+ */
51460
+ const Swipeable = /*#__PURE__*/ component("Swipeable", intentDefaults());
51461
+ /**
51462
+ * A finger drawn through views that carry this answers once, on the release:
51463
+ * `{ intent, payload: { path } }`, the payloads of the cells in the order the finger went through
51464
+ * them. Going back to the cell before the last takes the last one off. It wins over every other
51465
+ * gesture component on the same view.
51466
+ */
51467
+ const Traceable = /*#__PURE__*/ component("Traceable", intentDefaults());
51468
+ /**
51469
+ * Takes a press without naming a gesture: the hit test accepts a view that carries only this tag,
51470
+ * and a tap on it runs the `onTap` listeners and answers nothing. `ui` tags the buttons that
51471
+ * write local state and name no intent.
51472
+ */
51473
+ const Touchable = /*#__PURE__*/ tag("Touchable");
51474
+ /**
51475
+ * On the carried view, from grab to release.
51476
+ */
51477
+ const Held = /*#__PURE__*/ tag("Held");
51478
+ /**
51479
+ * On the topmost drop target under the finger during a drag. At most one, never the held view.
51480
+ */
51481
+ const Hovered = /*#__PURE__*/ tag("Hovered");
51482
+ /**
51483
+ * On every view of the trace in progress, from the moment the finger reaches it until it backs
51484
+ * off it or the trace ends. A game system draws the line through them.
51485
+ */
51486
+ const Traced = /*#__PURE__*/ tag("Traced");
51487
+ /**
51488
+ * On the pressed view, from pointer down until a tap, a long press, a grab, a swipe or a cancel.
51489
+ */
51490
+ const Pressed = /*#__PURE__*/ tag("Pressed");
51491
+ /**
51492
+ * On the topmost view a press would take, while a mouse or a pen moves over it with no press. At
51493
+ * most one view carries it, and a touch never hovers. A touch sample, a pointer cancel, the pointer
51494
+ * leaving the canvas and a paused world take it away. `ui` reads it as `is.hover`. It is not
51495
+ * `Hovered`, which marks the drop target under a drag.
51496
+ */
51497
+ const PointerOver = /*#__PURE__*/ tag("PointerOver");
51498
+ /**
51499
+ * On every ui scroll container, internal: ui writes it, input reads it, a game never sees it. A
51500
+ * press that leaves the tap slop along `axis` goes from the pressed view to the innermost scroll
51501
+ * of that axis the view hangs in by its `Parent` chain; a finger that lands on a view inside a
51502
+ * scroll that is `moving` stops it and answers nothing.
51503
+ */
51504
+ const Scrollable = /*#__PURE__*/ component("Scrollable", scrollableDefaults);
51505
+ /**
51506
+ * Where the one pointer is, in reference units. Written once per frame by the frame step. `id`
51507
+ * names the pointer it follows, `-1` at rest.
51508
+ */
51509
+ const Pointer = /*#__PURE__*/ resource("Pointer", pointerDefaults);
51510
+ //#endregion
51511
+ //#region src/plugins/input/lost.ts
51512
+ /**
51513
+ * Tells whether the dev log is on: a dev build, `__MOKU_GAME_DEV__` defined true.
51514
+ *
51515
+ * @returns True in a dev build.
51516
+ */
51517
+ function dev() {
51518
+ return typeof __MOKU_GAME_DEV__ !== "undefined" && __MOKU_GAME_DEV__;
51519
+ }
51520
+ /**
51521
+ * Logs a press that wore the press look of a button and will not be a tap. Only a pressed view
51522
+ * that carries `Tappable` (or left the world during the press) is told; a press caught by a
51523
+ * scroll was the scroll's from its start, and a view without a tap has nothing to lose.
51524
+ *
51525
+ * @param ctx - Domain context of the input plugin.
51526
+ * @param reason - Why the press is lost.
51527
+ */
51528
+ function lostPress(ctx, reason) {
51529
+ if (!dev()) return;
51530
+ const { entity, caught, key } = ctx.state;
51531
+ if (entity === void 0 || caught) return;
51532
+ if (reason !== "view-gone" && !ctx.deps.world.ecs.has(entity, Tappable)) return;
51533
+ ctx.log.warn("input: pressed, but the tap was not counted", {
51534
+ view: key ?? entity,
51535
+ reason
51536
+ });
51537
+ }
51538
+ /**
51539
+ * Logs an answer the gate did not take. A closed gate holds it for the next gate, so that is told
51540
+ * at debug level only: `flow` warns `flow:answer-dropped` when no gate takes the held answer. Otherwise the line says what
51541
+ * the gate said: `no-edge`, the resting node does not list the intent; `refused`, a guide's narrow
51542
+ * dropped it and names no `blocked`; `blocked`, it answered the guide's `blocked` in its place.
51543
+ *
51544
+ * @param ctx - Domain context of the input plugin.
51545
+ * @param entity - The view the answer came from.
51546
+ * @param answer - The answer the gate refused.
51547
+ * @param gate - What the gate said.
51548
+ * @param gate.open - Whether the gate was open.
51549
+ * @param gate.allowed - The intents the open gate lists.
51550
+ * @param blocked - Whether the guide's `blocked` was taken in the answer's place.
51551
+ */
51552
+ function lostAnswer(ctx, entity, answer, gate, blocked) {
51553
+ if (!dev()) return;
51554
+ const view = ctx.deps.world.projection.keyOf(entity) ?? entity;
51555
+ if (!gate.open && !blocked) {
51556
+ ctx.log.debug("input: counted, the gate is closed: held for the next gate", {
51557
+ view,
51558
+ intent: answer.intent
51559
+ });
51560
+ return;
51561
+ }
51562
+ let said = "refused";
51563
+ if (blocked) said = "blocked";
51564
+ else if (!gate.allowed.includes(answer.intent)) said = "no-edge";
51565
+ ctx.log.warn("input: counted, but the gate took nothing", {
51566
+ view,
51567
+ intent: answer.intent,
51568
+ gate: said
51569
+ });
51570
+ }
51571
+ //#endregion
51348
51572
  //#region src/plugins/input/answers.ts
51349
51573
  /**
51350
51574
  * Reads a component payload as a record. A payload that is not a plain JSON object is dropped:
@@ -51483,7 +51707,8 @@ function notifyTap(ctx, entity) {
51483
51707
  * A press the narrow of a guide drops — another intent, or the allowed intent with another
51484
51708
  * payload (a drop on the wrong cell) — answers the guide's `blocked` instead, once, when the gate
51485
51709
  * is open and the guide names one. A closed gate holds the press as it is and converts nothing.
51486
- * The gate's state is read only for a refused answer, never for an accepted one.
51710
+ * The gate's state is read only for a refused answer, never for an accepted one. A dev build logs
51711
+ * the refusal with the view and what the gate said (F122).
51487
51712
  *
51488
51713
  * @param ctx - Domain context of the input plugin.
51489
51714
  * @param entity - The view the answer came from, for the warning.
@@ -51494,8 +51719,10 @@ function submit(ctx, entity, answer) {
51494
51719
  if (answer.intent === "") ctx.log.warn("input: empty intent", { view: ctx.deps.world.projection.keyOf(entity) });
51495
51720
  const gate = ctx.deps.flow.gate;
51496
51721
  if (gate.answer(answer)) return true;
51497
- const { open, blocked } = gate.state();
51498
- return open && blocked !== void 0 && gate.answer(blocked);
51722
+ const read = gate.state();
51723
+ const taken = read.open && read.blocked !== void 0 && gate.answer(read.blocked);
51724
+ lostAnswer(ctx, entity, answer, read, taken);
51725
+ return taken;
51499
51726
  }
51500
51727
  /**
51501
51728
  * Answers a press the lock of a guide kept from every view: the gate's `blocked`, the answer the
@@ -51512,122 +51739,6 @@ function submitBlocked(ctx) {
51512
51739
  return ctx.deps.flow.gate.answer(blocked);
51513
51740
  }
51514
51741
  //#endregion
51515
- //#region src/plugins/input/components.ts
51516
- const scrollableDefaults = {
51517
- axis: "y",
51518
- moving: false
51519
- };
51520
- /**
51521
- * Fresh defaults for a component that names an intent. A function, so each component type gets
51522
- * its own payload object instead of sharing one.
51523
- *
51524
- * @returns An empty intent and an empty payload.
51525
- * @example
51526
- * ```ts
51527
- * intentDefaults(); // { intent: "", payload: {} }
51528
- * ```
51529
- */
51530
- function intentDefaults() {
51531
- return {
51532
- intent: "",
51533
- payload: {}
51534
- };
51535
- }
51536
- /**
51537
- * Fresh defaults for the one component that carries a payload without an intent.
51538
- *
51539
- * @returns An empty payload and nothing carried along.
51540
- * @example
51541
- * ```ts
51542
- * carryDefaults(); // { payload: {}, carry: [] }
51543
- * ```
51544
- */
51545
- function carryDefaults() {
51546
- return {
51547
- payload: {},
51548
- carry: []
51549
- };
51550
- }
51551
- const pointerDefaults = {
51552
- x: 0,
51553
- y: 0,
51554
- down: false,
51555
- justPressed: false,
51556
- justReleased: false,
51557
- id: -1
51558
- };
51559
- /**
51560
- * A tap on this view answers `{ intent, payload }`.
51561
- */
51562
- const Tappable = /*#__PURE__*/ component("Tappable", intentDefaults());
51563
- /**
51564
- * A long press on this view answers `{ intent, payload }`.
51565
- */
51566
- const Pressable = /*#__PURE__*/ component("Pressable", intentDefaults());
51567
- /**
51568
- * This view can be carried by the finger. It names no intent; the drop target does. The views
51569
- * whose keys `carry` lists hang under it from the grab to the release and fly home with it. With
51570
- * an `aim`, the hover and the drop are looked up under that point of the view in the hand.
51571
- */
51572
- const Draggable = /*#__PURE__*/ component("Draggable", carryDefaults());
51573
- /**
51574
- * A drop on this view answers THIS intent, with the carried payload merged under it.
51575
- */
51576
- const DropTarget = /*#__PURE__*/ component("DropTarget", intentDefaults());
51577
- /**
51578
- * A swipe on this view answers `{ intent, payload: { ...payload, direction } }`.
51579
- */
51580
- const Swipeable = /*#__PURE__*/ component("Swipeable", intentDefaults());
51581
- /**
51582
- * A finger drawn through views that carry this answers once, on the release:
51583
- * `{ intent, payload: { path } }`, the payloads of the cells in the order the finger went through
51584
- * them. Going back to the cell before the last takes the last one off. It wins over every other
51585
- * gesture component on the same view.
51586
- */
51587
- const Traceable = /*#__PURE__*/ component("Traceable", intentDefaults());
51588
- /**
51589
- * Takes a press without naming a gesture: the hit test accepts a view that carries only this tag,
51590
- * and a tap on it runs the `onTap` listeners and answers nothing. `ui` tags the buttons that
51591
- * write local state and name no intent.
51592
- */
51593
- const Touchable = /*#__PURE__*/ tag("Touchable");
51594
- /**
51595
- * On the carried view, from grab to release.
51596
- */
51597
- const Held = /*#__PURE__*/ tag("Held");
51598
- /**
51599
- * On the topmost drop target under the finger during a drag. At most one, never the held view.
51600
- */
51601
- const Hovered = /*#__PURE__*/ tag("Hovered");
51602
- /**
51603
- * On every view of the trace in progress, from the moment the finger reaches it until it backs
51604
- * off it or the trace ends. A game system draws the line through them.
51605
- */
51606
- const Traced = /*#__PURE__*/ tag("Traced");
51607
- /**
51608
- * On the pressed view, from pointer down until a tap, a long press, a grab, a swipe or a cancel.
51609
- */
51610
- const Pressed = /*#__PURE__*/ tag("Pressed");
51611
- /**
51612
- * On the topmost view a press would take, while a mouse or a pen moves over it with no press. At
51613
- * most one view carries it, and a touch never hovers. A touch sample, a pointer cancel, the pointer
51614
- * leaving the canvas and a paused world take it away. `ui` reads it as `is.hover`. It is not
51615
- * `Hovered`, which marks the drop target under a drag.
51616
- */
51617
- const PointerOver = /*#__PURE__*/ tag("PointerOver");
51618
- /**
51619
- * On every ui scroll container, internal: ui writes it, input reads it, a game never sees it. A
51620
- * press that leaves the tap slop along `axis` goes from the pressed view to the innermost scroll
51621
- * of that axis the view hangs in by its `Parent` chain; a finger that lands on a view inside a
51622
- * scroll that is `moving` stops it and answers nothing.
51623
- */
51624
- const Scrollable = /*#__PURE__*/ component("Scrollable", scrollableDefaults);
51625
- /**
51626
- * Where the one pointer is, in reference units. Written once per frame by the frame step. `id`
51627
- * names the pointer it follows, `-1` at rest.
51628
- */
51629
- const Pointer = /*#__PURE__*/ resource("Pointer", pointerDefaults);
51630
- //#endregion
51631
51742
  //#region src/plugins/input/hit.ts
51632
51743
  /**
51633
51744
  * @file input plugin — who is under the finger. Every lookup goes through `renderer.sync.hitTest`,
@@ -52933,6 +53044,7 @@ function handOff(ctx, point) {
52933
53044
  if (ecs.has(entity, Draggable) || ecs.has(entity, Swipeable)) return;
52934
53045
  const scroll = scrollOnAxisOf(ctx, entity, axisOf$1(start, point));
52935
53046
  if (scroll === void 0 || scroll === entity) return;
53047
+ lostPress(ctx, "scroll");
52936
53048
  ecs.untag(entity, Pressed);
52937
53049
  ctx.state.caught = true;
52938
53050
  press(ctx, scroll);
@@ -52981,9 +53093,13 @@ function answerRelease(ctx, entity, point) {
52981
53093
  submit(ctx, entity, tapAnswer(tappable));
52982
53094
  return;
52983
53095
  }
53096
+ if (!ecs.has(entity, Transform)) lostPress(ctx, "view-gone");
52984
53097
  }
52985
53098
  const swipeable = ecs.get(entity, Swipeable);
52986
- if (swipeable === void 0 || travelled < ctx.config.swipeMinPx || ctx.state.pressedMs > ctx.config.swipeMaxMs) return;
53099
+ if (swipeable === void 0 || travelled < ctx.config.swipeMinPx || ctx.state.pressedMs > ctx.config.swipeMaxMs) {
53100
+ if (travelled > ctx.config.tapSlopPx) lostPress(ctx, "moved-off");
53101
+ return;
53102
+ }
52987
53103
  submit(ctx, entity, swipeAnswer(swipeable, direction(ctx.state.start, point)));
52988
53104
  }
52989
53105
  /**
@@ -53010,8 +53126,10 @@ function onUp(ctx, pointer, point) {
53010
53126
  *
53011
53127
  * @param ctx - Domain context of the input plugin.
53012
53128
  * @param pointer - The `Pointer` resource of this frame.
53129
+ * @param reason - What took it away, for the dev log of a lost tap.
53013
53130
  */
53014
- function onCancel(ctx, pointer) {
53131
+ function onCancel(ctx, pointer, reason) {
53132
+ lostPress(ctx, reason);
53015
53133
  pointer.down = false;
53016
53134
  letGestureGo(ctx);
53017
53135
  toIdle(ctx);
@@ -53067,6 +53185,7 @@ function handleSample(ctx, pointer, sample) {
53067
53185
  if (sample.kind === "leave") return void 0;
53068
53186
  if (pointerId !== void 0 && pointerId !== sample.pointerId) {
53069
53187
  if (sample.kind !== "down" || !rests(ctx)) return void 0;
53188
+ lostPress(ctx, "other-finger");
53070
53189
  toIdle(ctx);
53071
53190
  }
53072
53191
  const point = ctx.deps.renderer.viewport.toReference(sample.clientX, sample.clientY);
@@ -53088,7 +53207,7 @@ function handleSample(ctx, pointer, sample) {
53088
53207
  case "up":
53089
53208
  onUp(ctx, pointer, point);
53090
53209
  break;
53091
- default: onCancel(ctx, pointer);
53210
+ default: onCancel(ctx, pointer, sample.kind === "lost" ? "capture-lost" : "cancelled");
53092
53211
  }
53093
53212
  }
53094
53213
  /**
@@ -53191,9 +53310,11 @@ function syncCanvas(ctx) {
53191
53310
  * at once.
53192
53311
  *
53193
53312
  * @param ctx - Domain context of the input plugin.
53313
+ * @param reason - The mode that stopped the world, for the dev log of a lost tap.
53194
53314
  */
53195
- function pauseGestures(ctx) {
53315
+ function pauseGestures(ctx, reason) {
53196
53316
  const pointer = ctx.deps.world.ecs.resource(Pointer);
53317
+ lostPress(ctx, reason);
53197
53318
  ctx.state.samples = [];
53198
53319
  ctx.state.resolvedEarly = false;
53199
53320
  clearPointerOver(ctx);
@@ -53251,11 +53372,11 @@ function stepGestures(ctx, time) {
53251
53372
  if (mode === "fast") {
53252
53373
  ctx.state.samples = [];
53253
53374
  ctx.state.resolvedEarly = false;
53254
- if (ctx.state.phase !== "idle") pauseGestures(ctx);
53375
+ if (ctx.state.phase !== "idle") pauseGestures(ctx, "fast");
53255
53376
  return;
53256
53377
  }
53257
53378
  if (mode === "paused") {
53258
- pauseGestures(ctx);
53379
+ pauseGestures(ctx, "paused");
53259
53380
  syncCursor(ctx);
53260
53381
  return;
53261
53382
  }
@@ -54379,7 +54500,7 @@ function playHaptic(ctx, provider, kind) {
54379
54500
  safely(ctx.log, "haptic", () => provider.haptic(kind));
54380
54501
  return;
54381
54502
  }
54382
- if (!isDev() || ctx.state.warned.has(kind)) return;
54503
+ if (!isDev$1() || ctx.state.warned.has(kind)) return;
54383
54504
  ctx.state.warned.add(kind);
54384
54505
  ctx.log.warn("platform: unknown haptic kind", { kind });
54385
54506
  }
@@ -1,7 +1,7 @@
1
- import { Ar as Json, Dn as NodeTable, Fn as Hint, In as NodeFx, Sr as ClockSource, jn as Descriptor, wr as FakeClock, xn as AnyFlow, yn as FeaturePlugin } from "./types-CmwjkCj5.mjs";
2
- import { t as createApp } from "./index-BJtzpola.mjs";
3
- import { b as saveOf, v as WithGameState, y as memory } from "./types-Chzp2med.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-BdfPq6Rk.mjs";
1
+ import { Ar as Json, Dn as NodeTable, Fn as Hint, In as NodeFx, Sr as ClockSource, jn as Descriptor, wr as FakeClock, xn as AnyFlow, yn as FeaturePlugin } from "./types-BZKA93ET.mjs";
2
+ import { t as createApp } from "./index-B0SkvWYo.mjs";
3
+ import { b as saveOf, v as WithGameState, y as memory } from "./types-D9K8Z4rn.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-CioallrX.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 { an as type, en as refuseStart, m as flattenFeatures, nn as exit, t as createApp } from "./src-CSmeCq6N.mjs";
1
+ import { an as type, en as refuseStart, m as flattenFeatures, nn as exit, t as createApp } from "./src-DXyZrs7u.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";
@@ -11429,7 +11429,8 @@ type DebugApi = {
11429
11429
  /**
11430
11430
  * Draws every kept picture live again (false) or lets the renderer keep them (true): the A/B switch of a measurement.
11431
11431
  * Off takes effect in the next drawn frame, all views at once; on lets each view be taken again by the usual rule.
11432
- * Works in every build; with `keptMb: 0` the pictures stay off.
11432
+ * Works in every build; with `keptMb: 0` the pictures stay off. A call without a boolean switches nothing and warns
11433
+ * `renderer:debug-kept-needs-boolean`: `state().kept` reads the switch.
11433
11434
  *
11434
11435
  * @param on - False to draw every filtered view live.
11435
11436
  * @example
@@ -1,5 +1,5 @@
1
- import { Ar as Json, zr as Snapshot } from "./types-CmwjkCj5.mjs";
2
- import { t as HeadlessApp } from "./headless-BdfPq6Rk.mjs";
1
+ import { Ar as Json, zr as Snapshot } from "./types-BZKA93ET.mjs";
2
+ import { t as HeadlessApp } from "./headless-CioallrX.mjs";
3
3
  import { Log } from "@moku-labs/common/browser";
4
4
 
5
5
  //#region src/plugins/flow/doors/types.d.ts
@@ -1,5 +1,5 @@
1
- import { $ as PixiModule, $n as AnyComponent, A as SyncApi, An as TypeTag, Ar as Json, Dr as Api$6, Gn as NumericFields, Jn as ReducedMotion, Kr as Events$5, O as FilterSlot, Q as PixiFilter, Rn as AnchorTarget, Vn as Ease, Wn as MotionHandle, Xn as TrackOptions, Xr as Api$1, Y as Api$4, Zn as TrackSegment, ai as Events$2, b as Events$4, et as PixiSprite, ft as FilterCache, gr as Api$3, ir as ComponentType, jn as Descriptor, k as FilterSlotInputs, kr as Events$3, nn as Api$2, nr as ComponentHandle, oi as Require, or as Entity, s as Events$1, t as Api$5, tr as AnyComponentValue, tt as PixiTexture, ut as Point } from "./types-CmwjkCj5.mjs";
2
- import { N as InputApi, R as I18nApi, X as StylesState, c as UiNode, i as Finding, l as LayoutState, n as ElementChange, o as JsxState, r as ElementMotion, w as TextApi } from "./types-CafT9oPU.mjs";
1
+ import { $ as PixiModule, $n as AnyComponent, A as SyncApi, An as TypeTag, Ar as Json, Dr as Api$6, Gn as NumericFields, Jn as ReducedMotion, Kr as Events$5, O as FilterSlot, Q as PixiFilter, Rn as AnchorTarget, Vn as Ease, Wn as MotionHandle, Xn as TrackOptions, Xr as Api$1, Y as Api$4, Zn as TrackSegment, ai as Events$2, b as Events$4, et as PixiSprite, ft as FilterCache, gr as Api$3, ir as ComponentType, jn as Descriptor, k as FilterSlotInputs, kr as Events$3, nn as Api$2, nr as ComponentHandle, oi as Require, or as Entity, s as Events$1, t as Api$5, tr as AnyComponentValue, tt as PixiTexture, ut as Point } from "./types-BZKA93ET.mjs";
2
+ import { N as InputApi, R as I18nApi, X as StylesState, c as UiNode, i as Finding, l as LayoutState, n as ElementChange, o as JsxState, r as ElementMotion, w as TextApi } from "./types-Do69nHfS.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 { $ as PixiModule, An as TypeTag, Ar as Json, Br as SnapshotOf, Fr as PlayerStateProvider, Ir as ProviderCall, Lr as SaveDoc, Or as Config, Sr as ClockSource, X as Config$2, a as Config$3, d as Manifest, in as Config$1, lt as Orientation, n as AssetsIo, wr as FakeClock, xn as AnyFlow, yn as FeaturePlugin } from "./types-CmwjkCj5.mjs";
2
- import { o as AudioContextLike, s as Config$4 } from "./types-feXn09s4.mjs";
3
- import { R as I18nApi, U as StringTable, W as TextKey } from "./types-CafT9oPU.mjs";
4
- import { St as effectsPlugin, Tt as audioPlugin, ht as PlatformProvider, i as screen, pt as platformPlugin, t as createApp } from "./index-BJtzpola.mjs";
1
+ import { $ as PixiModule, An as TypeTag, Ar as Json, Br as SnapshotOf, Fr as PlayerStateProvider, Ir as ProviderCall, Lr as SaveDoc, Or as Config, Sr as ClockSource, X as Config$2, a as Config$3, d as Manifest, in as Config$1, lt as Orientation, n as AssetsIo, wr as FakeClock, xn as AnyFlow, yn as FeaturePlugin } from "./types-BZKA93ET.mjs";
2
+ import { o as AudioContextLike, s as Config$4 } from "./types-D32c8jB6.mjs";
3
+ import { R as I18nApi, U as StringTable, W as TextKey } from "./types-Do69nHfS.mjs";
4
+ import { St as effectsPlugin, Tt as audioPlugin, ht as PlatformProvider, i as screen, pt as platformPlugin, t as createApp } from "./index-B0SkvWYo.mjs";
5
5
  import { AnyPluginInstance } from "@moku-labs/core";
6
6
 
7
7
  //#region src/plugins/model/store/providers/memory.d.ts
@@ -1,4 +1,4 @@
1
- import { $n as AnyComponent, Ar as Json, Fn as Hint, Gn as NumericFields, Hn as Motion, Jn as ReducedMotion, K as TransformValue, Kn as ProjectionMotion, Ln as Answer, Qn as ViewHandle, Rn as AnchorTarget, Un as MotionCause, Vn as Ease, Wn as MotionHandle, Xr as Api, Y as Api$3, dt as ViewportSize, er as AnyComponentType, gr as Api$2, hr as TagType, ir as ComponentType, jn as Descriptor, nn as Api$1, oi as Require, or as Entity, s as Events$1, t as Api$4, tr as AnyComponentValue, xr as Api$5, zn as ChangeHook } from "./types-CmwjkCj5.mjs";
1
+ import { $n as AnyComponent, Ar as Json, Fn as Hint, Gn as NumericFields, Hn as Motion, Jn as ReducedMotion, K as TransformValue, Kn as ProjectionMotion, Ln as Answer, Qn as ViewHandle, Rn as AnchorTarget, Un as MotionCause, Vn as Ease, Wn as MotionHandle, Xr as Api, Y as Api$3, dt as ViewportSize, er as AnyComponentType, gr as Api$2, hr as TagType, ir as ComponentType, jn as Descriptor, nn as Api$1, oi as Require, or as Entity, s as Events$1, t as Api$4, tr as AnyComponentValue, xr as Api$5, zn as ChangeHook } from "./types-BZKA93ET.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";
@@ -1,9 +1,9 @@
1
- import { Dr as Api$2, Wr as Api$3, Y as Api, gr as Api$1, xr as Api$4 } from "./types-CmwjkCj5.mjs";
2
- import { P as AnimApi, r as UiApi } from "./types-feXn09s4.mjs";
3
- import { N as InputApi } from "./types-CafT9oPU.mjs";
4
- import { r as Repro } from "./headless-BdfPq6Rk.mjs";
5
- import { a as InputOf, r as ControlApp } from "./types-C9LTGx_J.mjs";
6
- import { t as commands } from "./commands-Bm8eGFaH.mjs";
1
+ import { Dr as Api$2, Wr as Api$3, Y as Api, gr as Api$1, xr as Api$4 } from "./types-BZKA93ET.mjs";
2
+ import { P as AnimApi, r as UiApi } from "./types-D32c8jB6.mjs";
3
+ import { N as InputApi } from "./types-Do69nHfS.mjs";
4
+ import { r as Repro } from "./headless-CioallrX.mjs";
5
+ import { a as InputOf, r as ControlApp } from "./types-CHxk93vk.mjs";
6
+ import { t as commands } from "./commands-BwR4qbnN.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. */
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-DGI5ygP0.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-D0f6Ymdl.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moku-labs/game",
3
- "version": "0.15.66",
3
+ "version": "0.15.68",
4
4
  "description": "2D puzzle game engine on TypeScript and PixiJS, built on @moku-labs/core.",
5
5
  "type": "module",
6
6
  "sideEffects": [