@moku-labs/game 0.15.52 → 0.15.53

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-B-njMbRn.mjs";
1
+ import { m as StartedPage, r as GameConfig, t as AnyGameApp, u as PageOptions } from "../types-DZ395Ojc.mjs";
2
2
 
3
3
  //#region src/app/page.d.ts
4
4
  /**
@@ -1,6 +1,6 @@
1
- import { Pr as PlayerStateProvider } from "../types-BnK1FqER.mjs";
2
- import { ht as PlatformProvider } from "../index-C26tRxC6.mjs";
3
- import { _ as SystemShellFactory, g as SystemName, h as SystemModules } from "../types-B-njMbRn.mjs";
1
+ import { Pr as PlayerStateProvider } from "../types-D9YSrw2Z.mjs";
2
+ import { ht as PlatformProvider } from "../index-Bu1D4fG7.mjs";
3
+ import { _ as SystemShellFactory, g as SystemName, h as SystemModules } from "../types-DZ395Ojc.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 { kr as Json } from "./types-BnK1FqER.mjs";
2
- import { U as StringTable } from "./types-C5plKkdG.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-B-njMbRn.mjs";
1
+ import { kr as Json } from "./types-D9YSrw2Z.mjs";
2
+ import { U as StringTable } from "./types-DKSQ5lXh.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-DZ395Ojc.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-raYLhvHh.mjs";
1
+ import { Ft as audioPlugin, H as platformPlugin, i as screen, m as flattenFeatures, t as createApp, wt as effectsPlugin } from "./src-D5eKqI16.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-BnK1FqER.mjs";
1
+ import { d as Manifest } from "./types-D9YSrw2Z.mjs";
2
2
 
3
3
  //#region src/plugins/assets/scan/cli.d.ts
4
4
  /**
@@ -1,8 +1,8 @@
1
- import { Br as StoreApi, D as DebugSwitches, Rr as Snapshot, Sn as Bookmark, Tn as FlowState, Ur as Api, Y as Api$1, Zr as FrameRate, hr as Api$2, ot as Captured, ti as Time, w as ScenesApi } from "./types-BnK1FqER.mjs";
2
- import { P as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-DJTRzq16.mjs";
3
- import { N as InputApi } from "./types-C5plKkdG.mjs";
4
- import { t as HeadlessApp } from "./headless-Bk4PtaMO.mjs";
5
- import { n as Command, r as ControlApp } from "./types-ggSg0D6A.mjs";
1
+ import { Br as StoreApi, D as DebugSwitches, Rr as Snapshot, Sn as Bookmark, Tn as FlowState, Ur as Api, Y as Api$1, Zr as FrameRate, hr as Api$2, ot as Captured, ti as Time, w as ScenesApi } from "./types-D9YSrw2Z.mjs";
2
+ import { P as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-CS-taLiS.mjs";
3
+ import { N as InputApi } from "./types-DKSQ5lXh.mjs";
4
+ import { t as HeadlessApp } from "./headless-C4YDmZv1.mjs";
5
+ import { n as Command, r as ControlApp } from "./types-BdwZpZce.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-Bk4PtaMO.mjs";
2
- import { i as InputArguments, n as Command, o as InputSchema, s as Ran } from "./types-ggSg0D6A.mjs";
3
- import { t as commands } from "./commands-bfj6-tZt.mjs";
4
- import { t as defineCommand } from "./define-BGM6htbK.mjs";
1
+ import { t as HeadlessApp } from "./headless-C4YDmZv1.mjs";
2
+ import { i as InputArguments, n as Command, o as InputSchema, s as Ran } from "./types-BdwZpZce.mjs";
3
+ import { t as commands } from "./commands-4FGZndLY.mjs";
4
+ import { t as defineCommand } from "./define-BeFMCdMd.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-Bk4PtaMO.mjs";
2
- import { c as Source, n as Command, o as InputSchema } from "./types-ggSg0D6A.mjs";
1
+ import { t as HeadlessApp } from "./headless-C4YDmZv1.mjs";
2
+ import { c as Source, n as Command, o as InputSchema } from "./types-BdwZpZce.mjs";
3
3
 
4
4
  //#region src/plugins/flow/doors/define.d.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { En as JournalEntry, Hr as RngState, Ln as Answer, On as RouteStep, Tn as FlowState, Yr as Api, kr as Json, nn as Api$1 } from "./types-BnK1FqER.mjs";
1
+ import { En as JournalEntry, Hr as RngState, Ln as Answer, On as RouteStep, Tn as FlowState, Yr as Api, kr as Json, nn as Api$1 } from "./types-D9YSrw2Z.mjs";
2
2
 
3
3
  //#region src/plugins/flow/headless.d.ts
4
4
  /**
@@ -1,6 +1,6 @@
1
- import { $r as State$8, Ar as Root, B as ShapeValue, Bn as DescriptionNode, Br as StoreApi, C as SceneSpec, Cn as DefineNode, Dr as Config$5, Dt as PassKind, F as NineSliceValue, Fn as Hint, Gn as NumericFields, Gr as Events, Jn as ReducedMotion, K as TransformValue, Kn as ProjectionMotion, Kr as PauseReason, L as OverlayValue, Ln as Answer, Mn as Effect, N as HudPartValue, Nn as EffectOptions, Nr as Patch, Pn as GuideOptions, Qr as RateChange, S as SceneDefinition, Sr as Config$2, T as State$7, U as SpriteOptions, Ur as Api$3, Vn as Ease, Vr as RngApi, W as SpriteValue, Wr as Config$4, X as Config$6, Xr as Config$8, Y as Api$4, Yr as Api$5, _ as AnySceneProjection, _t as FrameRing, a as Config$1, ai as Require, an as EmitterIdOf, bn as FeatureTree, br as Api$1, c as LoadBundles, cr as Mut, dr as ResourceType, dt as ViewportSize, ei as ThermalReading, f as ReadyBundles, fr as SystemDefinition, gr as Config$9, gt as FrameRecord, hr as Api$6, i as BundleSpec, ii as Events$1, in as Config$3, ir as ComponentValue, jn as Descriptor, jr as State$5, kn as SceneIdOf, kr as Json, l as LoadReason, ln as State$3, lr as Narrowed, m as Tier, mr as TagType, nn as Api$2, o as DefineBundles, on as GameTypes, p as State$1, pn as defineFlow, pr as SystemFor, q as sprite, qn as ProjectionSpec, qr as State$4, r as BundleMap, ri as Config$10, rn as BundlesOf, rr as ComponentType, rt as State$6, sn as HudKeysOf, t as Api, tr as ComponentHandle, u as LoadResult, un as TextStylesOf, ur as QueryTerm, v as Config$7, vn as FeatureDescription, vr as State$9, w as ScenesApi, wr as State$2, x as LayerMap, y as DefineScene, yn as FeaturePlugin } from "./types-BnK1FqER.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-DJTRzq16.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-C5plKkdG.mjs";
1
+ import { $r as State$8, Ar as Root, B as ShapeValue, Bn as DescriptionNode, Br as StoreApi, C as SceneSpec, Cn as DefineNode, Dr as Config$5, Dt as PassKind, F as NineSliceValue, Fn as Hint, Gn as NumericFields, Gr as Events, Jn as ReducedMotion, K as TransformValue, Kn as ProjectionMotion, Kr as PauseReason, L as OverlayValue, Ln as Answer, Mn as Effect, N as HudPartValue, Nn as EffectOptions, Nr as Patch, Pn as GuideOptions, Qr as RateChange, S as SceneDefinition, Sr as Config$2, T as State$7, U as SpriteOptions, Ur as Api$3, Vn as Ease, Vr as RngApi, W as SpriteValue, Wr as Config$4, X as Config$6, Xr as Config$8, Y as Api$4, Yr as Api$5, _ as AnySceneProjection, _t as FrameRing, a as Config$1, ai as Require, an as EmitterIdOf, bn as FeatureTree, br as Api$1, c as LoadBundles, cr as Mut, dr as ResourceType, dt as ViewportSize, ei as ThermalReading, f as ReadyBundles, fr as SystemDefinition, gr as Config$9, gt as FrameRecord, hr as Api$6, i as BundleSpec, ii as Events$1, in as Config$3, ir as ComponentValue, jn as Descriptor, jr as State$5, kn as SceneIdOf, kr as Json, l as LoadReason, ln as State$3, lr as Narrowed, m as Tier, mr as TagType, nn as Api$2, o as DefineBundles, on as GameTypes, p as State$1, pn as defineFlow, pr as SystemFor, q as sprite, qn as ProjectionSpec, qr as State$4, r as BundleMap, ri as Config$10, rn as BundlesOf, rr as ComponentType, rt as State$6, sn as HudKeysOf, t as Api, tr as ComponentHandle, u as LoadResult, un as TextStylesOf, ur as QueryTerm, v as Config$7, vn as FeatureDescription, vr as State$9, w as ScenesApi, wr as State$2, x as LayerMap, y as DefineScene, yn as FeaturePlugin } from "./types-D9YSrw2Z.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-CS-taLiS.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-DKSQ5lXh.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, 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, Jr as types_d_exports$9, Jt as PoolTrimDetail, Kt as PerfTelemetryLine, L as OverlayValue, Lr as SaveUnreadableError, Lt as PerfGapLine, M as HudPart, Mr as types_d_exports$10, Mt as PerfCollectorLine, N as HudPartValue, Nt as PerfCounts, Ot as PassRecord, P as NineSlice, Pt as PerfDisplay, Qt as ShaderEventDetail, R as Parent, Rn as AnchorTarget, Rt as PerfHeaderLine, St as OverlayWhat, Tr as types_d_exports$3, Tt as PERF_LOG_VERSION, Ut as PerfSampleLine, V as Sprite, Vt as PerfMarkLine, Wt as PerfSpikeLine, Xt as ProblemRule, Yt as ProblemEventDetail, Z as MonitorConfig, Zt as SHADER_WHATS, _n as type, _t as FrameRing, at as types_d_exports$12, 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, ni as types_d_exports$15, nt as PoolTrim, pt as FrameColumns, q as sprite, qt as PerfThermalLine, st as MonitorCounts, tn as DEMAND_REASONS, vt as LongFrameEntry, wt as PERF_GAP_BUCKETS, xt as OverlayEventDetail, yr as types_d_exports$17, yt as MONITOR_SECTIONS, z as Shape, zt as PerfLogLine } from "./types-BnK1FqER.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-DJTRzq16.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-C5plKkdG.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-C26tRxC6.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, 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, Jr as types_d_exports$9, Jt as PoolTrimDetail, Kt as PerfTelemetryLine, L as OverlayValue, Lr as SaveUnreadableError, Lt as PerfGapLine, M as HudPart, Mr as types_d_exports$10, Mt as PerfCollectorLine, N as HudPartValue, Nt as PerfCounts, Ot as PassRecord, P as NineSlice, Pt as PerfDisplay, Qt as ShaderEventDetail, R as Parent, Rn as AnchorTarget, Rt as PerfHeaderLine, St as OverlayWhat, Tr as types_d_exports$3, Tt as PERF_LOG_VERSION, Ut as PerfSampleLine, V as Sprite, Vt as PerfMarkLine, Wt as PerfSpikeLine, Xt as ProblemRule, Yt as ProblemEventDetail, Z as MonitorConfig, Zt as SHADER_WHATS, _n as type, _t as FrameRing, at as types_d_exports$12, 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, ni as types_d_exports$15, nt as PoolTrim, pt as FrameColumns, q as sprite, qt as PerfThermalLine, st as MonitorCounts, tn as DEMAND_REASONS, vt as LongFrameEntry, wt as PERF_GAP_BUCKETS, xt as OverlayEventDetail, yr as types_d_exports$17, yt as MONITOR_SECTIONS, z as Shape, zt as PerfLogLine } from "./types-D9YSrw2Z.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-CS-taLiS.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-DKSQ5lXh.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-Bu1D4fG7.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, 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-raYLhvHh.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-D5eKqI16.mjs";
2
2
  import { $ as Tree, B as Overlay, C as bind, E as label, G as Transform, H as Parent, J as sprite, L as Display, Q as Order, R as HudPart, S as Text, T as defineTextStyles, U as Shape, W as Sprite, X as Layer, Y as Exiting, Z as Now, _ as popup, at as tag, b as defineStyle, c as Box, et as component, f as LocalWrite, m as ScrollState, nt as resource, rt as system, tt as mut, u as DebugTrigger, x as Countdown, y as defineTokens, z as NineSlice } from "./visual-LFiLc3GH.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 { En as JournalEntry, Er as Api, Rr as Snapshot, Y as Api$2, _r as Explained, cn as Position, ct as RenderStats, h as Usage, hr as Api$1, it as Under, nr as ComponentSchema, or as EntitySnapshot, sr as FrameDiff, t as Api$3, wn as FlowGraph } from "./types-BnK1FqER.mjs";
2
- import { a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-DJTRzq16.mjs";
3
- import { c as UiNode } from "./types-C5plKkdG.mjs";
4
- import { t as HeadlessApp } from "./headless-Bk4PtaMO.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-ggSg0D6A.mjs";
6
- import { n as defineSource } from "./define-BGM6htbK.mjs";
1
+ import { En as JournalEntry, Er as Api, Rr as Snapshot, Y as Api$2, _r as Explained, cn as Position, ct as RenderStats, h as Usage, hr as Api$1, it as Under, nr as ComponentSchema, or as EntitySnapshot, sr as FrameDiff, t as Api$3, wn as FlowGraph } from "./types-D9YSrw2Z.mjs";
2
+ import { a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-CS-taLiS.mjs";
3
+ import { c as UiNode } from "./types-DKSQ5lXh.mjs";
4
+ import { t as HeadlessApp } from "./headless-C4YDmZv1.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-BdwZpZce.mjs";
6
+ import { n as defineSource } from "./define-BeFMCdMd.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-LI4Ixax6.mjs";
1
+ import { a as jsxs, i as jsxDEV, n as JSX, r as jsx, t as Fragment } from "./runtime-f6MX_-hz.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-LI4Ixax6.mjs";
1
+ import { a as jsxs, n as JSX, r as jsx, t as Fragment } from "./runtime-f6MX_-hz.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-C5plKkdG.mjs";
1
+ import { _ as UiIntrinsicElements, a as JsxChild, t as DescriptionNode } from "./types-DKSQ5lXh.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. */
@@ -64171,7 +64171,7 @@ const NO_PATCH$1 = Object.freeze({});
64171
64171
  */
64172
64172
  const GRACE_FRAMES = 2;
64173
64173
  /** Frames in a row a key of the guide names no entity before a dev build names it, as for an anchor. */
64174
- const MISSING_FRAMES = 2;
64174
+ const MISSING_FRAMES$1 = 2;
64175
64175
  /**
64176
64176
  * Creates a rect the guide writes in place every frame. Its keys come in the order `w, h, x, y`, the
64177
64177
  * order of `ownRect` in `jsx/state.ts`: a rect of the order `x, y, w, h` shares its shape with the
@@ -64501,7 +64501,7 @@ function countMissing(ctx, guide) {
64501
64501
  let missing = false;
64502
64502
  for (const target of guide.targets) if (projection.entityOf(target.projection, target.key) === void 0) missing = true;
64503
64503
  guide.missing = missing ? guide.missing + 1 : 0;
64504
- if (guide.missing < MISSING_FRAMES) return;
64504
+ if (guide.missing < MISSING_FRAMES$1) return;
64505
64505
  guide.warned = true;
64506
64506
  ctx.log.warn("ui:guide-target-missing", { targets: guide.targets });
64507
64507
  }
@@ -65919,6 +65919,11 @@ const PLACED_FIELDS = [
65919
65919
  "bottom"
65920
65920
  ];
65921
65921
  /**
65922
+ * Frames in a row a key of an anchor names no entity before a dev build names it: a view spawned
65923
+ * this frame has its `Transform` queued until the flush.
65924
+ */
65925
+ const MISSING_FRAMES = 2;
65926
+ /**
65922
65927
  * Tells whether a value is a target: an object with a string `projection` and a string `key`.
65923
65928
  *
65924
65929
  * @param value - One entry of `to`.
@@ -65930,8 +65935,8 @@ const PLACED_FIELDS = [
65930
65935
  */
65931
65936
  function isTarget(value) {
65932
65937
  if (typeof value !== "object" || value === null) return false;
65933
- const target = value;
65934
- return typeof target.projection === "string" && typeof target.key === "string";
65938
+ if (!("projection" in value) || !("key" in value)) return false;
65939
+ return typeof value.projection === "string" && typeof value.key === "string";
65935
65940
  }
65936
65941
  /**
65937
65942
  * The targets a `to` prop names, when it names one or a list of them.
@@ -66126,7 +66131,8 @@ function createAnchorPass(ctx, jsx) {
66126
66131
  * @param anchor - Its record.
66127
66132
  */
66128
66133
  function warnStyle(element, anchor) {
66129
- if (anchor.warned.style || !PLACED_FIELDS.some((field) => element.style[field] !== void 0)) return;
66134
+ if (anchor.warned.style) return;
66135
+ if (!PLACED_FIELDS.some((field) => element.style[field] !== void 0)) return;
66130
66136
  anchor.warned.style = true;
66131
66137
  ctx.log.warn("ui:anchor-style", { key: element.key ?? element.identity });
66132
66138
  }
@@ -66195,7 +66201,7 @@ function createAnchorPass(ctx, jsx) {
66195
66201
  if (isTargetList(to)) for (const target of to) visit(element, anchor, target);
66196
66202
  else if (to !== void 0) visit(element, anchor, to);
66197
66203
  anchor.missing = found.missing ? anchor.missing + 1 : 0;
66198
- if (anchor.missing >= 2) warnMissing(element, anchor);
66204
+ if (anchor.missing >= MISSING_FRAMES) warnMissing(element, anchor);
66199
66205
  if (found.own !== void 0) refuseOwn(element, anchor, found.own);
66200
66206
  return found.shown;
66201
66207
  }
@@ -66206,7 +66212,8 @@ function createAnchorPass(ctx, jsx) {
66206
66212
  * @param anchor - Its record.
66207
66213
  */
66208
66214
  function warnMissing(element, anchor) {
66209
- if (typeof __MOKU_GAME_DEV__ === "undefined" || !__MOKU_GAME_DEV__ || anchor.warned.missing) return;
66215
+ if (typeof __MOKU_GAME_DEV__ === "undefined" || !__MOKU_GAME_DEV__) return;
66216
+ if (anchor.warned.missing) return;
66210
66217
  anchor.warned.missing = true;
66211
66218
  ctx.log.warn("ui:anchor-target-missing", {
66212
66219
  key: element.key ?? element.identity,
@@ -66354,18 +66361,20 @@ function createAnchorPass(ctx, jsx) {
66354
66361
  };
66355
66362
  for (const child of parent.children) {
66356
66363
  const element = lookup(child);
66357
- const childNode = element === void 0 ? void 0 : layout.byEntity.get(element.entity);
66358
- if (element === void 0 || childNode === void 0 || element.type === "anchor") continue;
66364
+ const placeable = element !== void 0 && element.type !== "anchor";
66365
+ const childNode = placeable ? layout.byEntity.get(element.entity) : void 0;
66366
+ if (!placeable || childNode === void 0) continue;
66359
66367
  const w = childNode.getComputedWidth();
66360
66368
  const h = childNode.getComputedHeight();
66361
66369
  const fitted = element.style.fit === "contain" ? fitInto(content, w, h) : void 0;
66370
+ const fit = fitted?.fit ?? 1;
66362
66371
  slot.x = fitted?.rect.x ?? parent.rect.x + childNode.getComputedLeft();
66363
66372
  slot.y = fitted?.rect.y ?? parent.rect.y + childNode.getComputedTop();
66364
66373
  slot.w = w;
66365
66374
  slot.h = h;
66366
66375
  writeRect(element, slot);
66367
- if ((fitted?.fit ?? 1) !== element.fit) {
66368
- element.fit = fitted?.fit ?? 1;
66376
+ if (fit !== element.fit) {
66377
+ element.fit = fit;
66369
66378
  element.moved = true;
66370
66379
  }
66371
66380
  placeUnder(element);
@@ -66420,6 +66429,22 @@ function createAnchorPass(ctx, jsx) {
66420
66429
  }
66421
66430
  }
66422
66431
  /**
66432
+ * Applies one live child a relayout moved: carried along only, it writes its `Box`; laid out
66433
+ * anew, it is applied with its `change` hooks, or with no motion when the anchor's size followed.
66434
+ *
66435
+ * @param element - The moved child.
66436
+ * @param followed - Whether the anchor's size changed by following its targets.
66437
+ */
66438
+ function applyMoved(element, followed) {
66439
+ if (!relaidOut(element, shift)) {
66440
+ writeBox(element);
66441
+ element.moved = false;
66442
+ } else if (followed) {
66443
+ jsx.applyAnchored(element, true);
66444
+ settlePose(element);
66445
+ } else jsx.applyAnchored(element, false);
66446
+ }
66447
+ /**
66423
66448
  * Applies what a relayout of an anchor's subtree moved. A child carried along only writes its
66424
66449
  * `Box`; one laid out anew is applied as the solve applies it, with its `change` hooks, unless
66425
66450
  * the anchor's size followed its targets: then it takes its rect and its rest pose with no motion.
@@ -66432,13 +66457,7 @@ function createAnchorPass(ctx, jsx) {
66432
66457
  const element = lookup(child);
66433
66458
  if (element === void 0 || element.type === "anchor") continue;
66434
66459
  if (!element.live) jsx.applyAnchored(element, false);
66435
- else if (element.moved && !relaidOut(element, shift)) {
66436
- writeBox(element);
66437
- element.moved = false;
66438
- } else if (element.moved && followed) {
66439
- jsx.applyAnchored(element, true);
66440
- settlePose(element);
66441
- } else if (element.moved) jsx.applyAnchored(element, false);
66460
+ else if (element.moved) applyMoved(element, followed);
66442
66461
  applyUnder(element, followed);
66443
66462
  }
66444
66463
  }
@@ -66656,7 +66675,17 @@ function createAnchorPass(ctx, jsx) {
66656
66675
  else moved = keep(element, anchor, relayout);
66657
66676
  show(element, anchor);
66658
66677
  if (anchor.owed && !moved) writePose(element, anchor);
66659
- if (moved) return;
66678
+ if (!moved) settle(entity, element, anchor);
66679
+ }
66680
+ /**
66681
+ * Catches an anchor that stands up, once: the world's copy of its rest and the `Box` values, then
66682
+ * a loop held while it moved goes on from where it stands.
66683
+ *
66684
+ * @param entity - The anchor's entity.
66685
+ * @param element - The anchor.
66686
+ * @param anchor - Its record.
66687
+ */
66688
+ function settle(entity, element, anchor) {
66660
66689
  if (anchor.stale) {
66661
66690
  ctx.deps.world.projection.setRest(entity, Transform, element.rest);
66662
66691
  anchor.stale = false;
@@ -1,7 +1,7 @@
1
- import { Cr as FakeClock, Dn as NodeTable, Fn as Hint, In as NodeFx, jn as Descriptor, kr as Json, xn as AnyFlow, xr as ClockSource, yn as FeaturePlugin } from "./types-BnK1FqER.mjs";
2
- import { t as createApp } from "./index-C26tRxC6.mjs";
3
- import { b as saveOf, v as WithGameState, y as memory } from "./types-B-njMbRn.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-Bk4PtaMO.mjs";
1
+ import { Cr as FakeClock, Dn as NodeTable, Fn as Hint, In as NodeFx, jn as Descriptor, kr as Json, xn as AnyFlow, xr as ClockSource, yn as FeaturePlugin } from "./types-D9YSrw2Z.mjs";
2
+ import { t as createApp } from "./index-Bu1D4fG7.mjs";
3
+ import { b as saveOf, v as WithGameState, y as memory } from "./types-DZ395Ojc.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-C4YDmZv1.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-raYLhvHh.mjs";
1
+ import { an as type, en as refuseStart, m as flattenFeatures, nn as exit, t as createApp } from "./src-D5eKqI16.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 { Rr as Snapshot, kr as Json } from "./types-BnK1FqER.mjs";
2
- import { t as HeadlessApp } from "./headless-Bk4PtaMO.mjs";
1
+ import { Rr as Snapshot, kr as Json } from "./types-D9YSrw2Z.mjs";
2
+ import { t as HeadlessApp } from "./headless-C4YDmZv1.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, A as SyncApi, An as TypeTag, Er as Api$6, Gn as NumericFields, Gr as Events$5, Jn as ReducedMotion, O as FilterSlot, Or as Events$3, Q as PixiFilter, Qn as AnyComponent, Rn as AnchorTarget, Vn as Ease, Wn as MotionHandle, Xn as TrackSegment, Y as Api$4, Yn as TrackOptions, Yr as Api$1, ai as Require, ar as Entity, b as Events$4, er as AnyComponentValue, et as PixiSprite, ft as FilterCache, hr as Api$3, ii as Events$2, jn as Descriptor, k as FilterSlotInputs, kr as Json, nn as Api$2, rr as ComponentType, s as Events$1, t as Api$5, tr as ComponentHandle, tt as PixiTexture, ut as Point } from "./types-BnK1FqER.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-C5plKkdG.mjs";
1
+ import { $ as PixiModule, A as SyncApi, An as TypeTag, Er as Api$6, Gn as NumericFields, Gr as Events$5, Jn as ReducedMotion, O as FilterSlot, Or as Events$3, Q as PixiFilter, Qn as AnyComponent, Rn as AnchorTarget, Vn as Ease, Wn as MotionHandle, Xn as TrackSegment, Y as Api$4, Yn as TrackOptions, Yr as Api$1, ai as Require, ar as Entity, b as Events$4, er as AnyComponentValue, et as PixiSprite, ft as FilterCache, hr as Api$3, ii as Events$2, jn as Descriptor, k as FilterSlotInputs, kr as Json, nn as Api$2, rr as ComponentType, s as Events$1, t as Api$5, tr as ComponentHandle, tt as PixiTexture, ut as Point } from "./types-D9YSrw2Z.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-DKSQ5lXh.mjs";
3
3
  import { Log } from "@moku-labs/common/browser";
4
4
  import { PluginCtx } from "@moku-labs/core";
5
5
 
@@ -5890,11 +5890,6 @@ type AnyNode = AnyWired & {
5890
5890
  * @param state.player - The committed player tree.
5891
5891
  * @param state.session - The committed session tree.
5892
5892
  * @returns The guide while the node stands, or `undefined` for none.
5893
- * @example
5894
- * ```ts
5895
- * // A unit test of the game asks the board's rest node what it guides at step 2 of the tutorial.
5896
- * awaitIntent.guide?.({ player, session: { tutorial: 2 } })?.allow; // { intent: "merge", payload: { from: "c2", to: "c3" } }
5897
- * ```
5898
5893
  */
5899
5894
  guide?(state: {
5900
5895
  player: unknown;
@@ -1,4 +1,4 @@
1
- import { $n as AnyComponentType, Fn as Hint, Gn as NumericFields, Hn as Motion, Jn as ReducedMotion, K as TransformValue, Kn as ProjectionMotion, Ln as Answer, Qn as AnyComponent, Rn as AnchorTarget, Un as MotionCause, Vn as Ease, Wn as MotionHandle, Y as Api$3, Yr as Api, Zn as ViewHandle, ai as Require, ar as Entity, br as Api$5, dt as ViewportSize, er as AnyComponentValue, hr as Api$2, jn as Descriptor, kr as Json, mr as TagType, nn as Api$1, rr as ComponentType, s as Events$1, t as Api$4, zn as ChangeHook } from "./types-BnK1FqER.mjs";
1
+ import { $n as AnyComponentType, Fn as Hint, Gn as NumericFields, Hn as Motion, Jn as ReducedMotion, K as TransformValue, Kn as ProjectionMotion, Ln as Answer, Qn as AnyComponent, Rn as AnchorTarget, Un as MotionCause, Vn as Ease, Wn as MotionHandle, Y as Api$3, Yr as Api, Zn as ViewHandle, ai as Require, ar as Entity, br as Api$5, dt as ViewportSize, er as AnyComponentValue, hr as Api$2, jn as Descriptor, kr as Json, mr as TagType, nn as Api$1, rr as ComponentType, s as Events$1, t as Api$4, zn as ChangeHook } from "./types-D9YSrw2Z.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,7 +1,7 @@
1
- import { $ as PixiModule, An as TypeTag, Cr as FakeClock, Dr as Config, Fr as ProviderCall, Ir as SaveDoc, Pr as PlayerStateProvider, X as Config$2, a as Config$3, d as Manifest, in as Config$1, kr as Json, lt as Orientation, n as AssetsIo, xn as AnyFlow, xr as ClockSource, yn as FeaturePlugin, zr as SnapshotOf } from "./types-BnK1FqER.mjs";
2
- import { o as AudioContextLike, s as Config$4 } from "./types-DJTRzq16.mjs";
3
- import { R as I18nApi, U as StringTable, W as TextKey } from "./types-C5plKkdG.mjs";
4
- import { St as effectsPlugin, Tt as audioPlugin, ht as PlatformProvider, i as screen, pt as platformPlugin, t as createApp } from "./index-C26tRxC6.mjs";
1
+ import { $ as PixiModule, An as TypeTag, Cr as FakeClock, Dr as Config, Fr as ProviderCall, Ir as SaveDoc, Pr as PlayerStateProvider, X as Config$2, a as Config$3, d as Manifest, in as Config$1, kr as Json, lt as Orientation, n as AssetsIo, xn as AnyFlow, xr as ClockSource, yn as FeaturePlugin, zr as SnapshotOf } from "./types-D9YSrw2Z.mjs";
2
+ import { o as AudioContextLike, s as Config$4 } from "./types-CS-taLiS.mjs";
3
+ import { R as I18nApi, U as StringTable, W as TextKey } from "./types-DKSQ5lXh.mjs";
4
+ import { St as effectsPlugin, Tt as audioPlugin, ht as PlatformProvider, i as screen, pt as platformPlugin, t as createApp } from "./index-Bu1D4fG7.mjs";
5
5
  import { AnyPluginInstance } from "@moku-labs/core";
6
6
 
7
7
  //#region src/plugins/model/store/providers/memory.d.ts
@@ -1,9 +1,9 @@
1
- import { Er as Api$2, Ur as Api$3, Y as Api, br as Api$4, hr as Api$1 } from "./types-BnK1FqER.mjs";
2
- import { P as AnimApi, r as UiApi } from "./types-DJTRzq16.mjs";
3
- import { N as InputApi } from "./types-C5plKkdG.mjs";
4
- import { r as Repro } from "./headless-Bk4PtaMO.mjs";
5
- import { a as InputOf, r as ControlApp } from "./types-ggSg0D6A.mjs";
6
- import { t as commands } from "./commands-bfj6-tZt.mjs";
1
+ import { Er as Api$2, Ur as Api$3, Y as Api, br as Api$4, hr as Api$1 } from "./types-D9YSrw2Z.mjs";
2
+ import { P as AnimApi, r as UiApi } from "./types-CS-taLiS.mjs";
3
+ import { N as InputApi } from "./types-DKSQ5lXh.mjs";
4
+ import { r as Repro } from "./headless-C4YDmZv1.mjs";
5
+ import { a as InputOf, r as ControlApp } from "./types-BdwZpZce.mjs";
6
+ import { t as commands } from "./commands-4FGZndLY.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-C9qDbPW6.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-CnGMkSF-.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.52",
3
+ "version": "0.15.53",
4
4
  "description": "2D puzzle game engine on TypeScript and PixiJS, built on @moku-labs/core.",
5
5
  "type": "module",
6
6
  "sideEffects": [