@moku-labs/game 0.15.92 → 0.15.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/app/page.d.mts +1 -1
- package/dist/app/page.mjs +2 -2
- package/dist/app/system.d.mts +3 -3
- package/dist/app.d.mts +3 -3
- package/dist/app.mjs +1 -1
- package/dist/assets.d.mts +1 -1
- package/dist/cli.mjs +317 -45
- package/dist/{commands-DUco80gt.d.mts → commands-B05keaNh.d.mts} +5 -5
- package/dist/{config-BYx_7HL1.mjs → config-DVqciSkP.mjs} +23 -1
- package/dist/control.d.mts +4 -4
- package/dist/{define-C-EbeoLA.d.mts → define-C5oKi9M2.d.mts} +2 -2
- package/dist/{headless-Dasz6dgy.d.mts → headless-rXLWKvZq.d.mts} +1 -1
- package/dist/{index-vPc22SoP.d.mts → index-DuiCPP3n.d.mts} +26 -7
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +2 -2
- package/dist/inspect.d.mts +6 -6
- package/dist/inspect.mjs +1 -1
- package/dist/jsx-dev-runtime.d.mts +1 -1
- package/dist/jsx-runtime.d.mts +1 -1
- package/dist/{runtime-CW4HJWqC.d.mts → runtime-DGpGGQAh.d.mts} +1 -1
- package/dist/{sources-kL64Svgl.mjs → sources-DIl02J8z.mjs} +1 -1
- package/dist/{src-BBJh9Uxh.mjs → src-CkBzjWRd.mjs} +112 -25
- package/dist/testing.d.mts +4 -4
- package/dist/testing.mjs +1 -1
- package/dist/{types-Cc7uKiHX.d.mts → types-BrEqXapX.d.mts} +2 -2
- package/dist/{types-B2Dh7oWu.d.mts → types-CA98KS-U.d.mts} +29 -6
- package/dist/{types-Btqe51cJ.d.mts → types-CSkVNKPZ.d.mts} +2 -2
- package/dist/{types-D1lRinVJ.d.mts → types-D33h-CNj.d.mts} +20 -3
- package/dist/{types-BMUuyOcm.d.mts → types-DhCTe-kr.d.mts} +28 -7
- package/dist/{visual-BMyWTUgm.d.mts → visual-BfN2jgqg.d.mts} +6 -6
- package/dist/{visual-CULAJg6b.mjs → visual-Cl7Q7pO9.mjs} +4 -2
- package/dist/visual.d.mts +1 -1
- package/dist/visual.mjs +1 -1
- package/llms.txt +6 -5
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as HeadlessApp } from "./headless-
|
|
2
|
-
import { l as Source, r as Command, s as InputSchema } from "./types-
|
|
1
|
+
import { t as HeadlessApp } from "./headless-rXLWKvZq.mjs";
|
|
2
|
+
import { l as Source, r as Command, s as InputSchema } from "./types-CSkVNKPZ.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/flow/doors/define.d.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { In as FlowState, Jn as Answer, Ln as JournalEntry,
|
|
1
|
+
import { Hr as Json, In as FlowState, Jn as Answer, Ln as JournalEntry, ci as Api, fn as Api$1, ti as RngState, zn as RouteStep } from "./types-D33h-CNj.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/flow/headless.d.ts
|
|
4
4
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $r as
|
|
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-
|
|
3
|
-
import { $ as Style, A as TextFormats, B as Argument, C as Point, E as TextBind, F as defineComponent, G as Part, H as I18nApi, I as Config$16, J as TextKey, K as State$14, L as InputApi, M as TextStyles, N as TextValue, Q as ResolvedStyle, R as State$15, T as TextApi, U as IntlKit, V as Config$15, W as Message, Y as TypedTr, Z as IsFlags, b as Config$17, g as IntrinsicElementsFor, h as defineTokens, j as TextStyleInput, k as TextFormatFunction, s as PopupComponent, tt as WhenFlags, v as BindField, w as State$16, x as CountdownValue, y as BindOptions } from "./types-
|
|
1
|
+
import { $n as Ease, $r as StoreApi, An as FeaturePlugin, Bn as SceneIdOf, Br as Config$5, C as SceneSpec, Cr as QueryTerm, Dr as TagType, Er as SystemFor, F as HudPartValue, Fr as Config$2, Ft as PassKind, G as SpriteOptions, Gn as GuideOptions, H as ShapeValue, Hn as Descriptor, Hr as Json, J as TransformValue, K as SpriteValue, Kn as Hint, Kr as Patch, L as NineSliceValue, Lr as State$2, Nr as Api$1, Or as Api$6, Pn as DefineNode, Q as Config$6, Qn as DescriptionNode, S as SceneDefinition, Sr as Narrowed, T as State$7, Tr as SystemDefinition, Tt as FrameRing, Un as Effect, Ur as Root, Wn as EffectOptions, Wr as State$5, Y as sprite, Yn as Answered, Z as Api$4, _ as AnySceneProjection, _i as Events$1, _n as HudKeysOf, _r as ComponentValue, _t as ViewportSize, a as Config$1, ai as PauseReason, ar as ProjectionSpec, bn as TextFormatsOf, c as LoadBundles, ci as Api$5, di as RateChange, ei as RngApi, f as ReadyBundles, fi as State$8, fn as Api$2, gi as Config$10, gn as GameTypes, gr as ComponentType, hn as EmitterIdOf, i as BundleSpec, ii as Events, ir as ProjectionMotion, jn as FeatureTree, jr as State$9, kn as FeatureDescription, kr as Config$9, l as LoadReason, li as Config$8, m as Tier, mn as Config$3, mr as ComponentHandle, ni as Api$3, o as DefineBundles, oi as State$4, or as ReducedMotion, p as State$1, pi as ThermalReading, pn as BundlesOf, r as BundleMap, ri as Config$4, rr as NumericFields, st as State$6, t as Api, u as LoadResult, v as Config$7, vi as Require, w as ScenesApi, wn as defineFlow, wr as ResourceType, wt as FrameRecord, x as LayerMap, xn as TextStylesOf, xr as Mut, y as DefineScene, yn as State$3, z as OverlayValue } from "./types-D33h-CNj.mjs";
|
|
2
|
+
import { A as GlowValue, B as Target, C as BlurValue, D as FilterComponent, F as AnimPlayerValue, H as HapticKind, I as Config$11, K as defineAnimation, L as FramesValue, M as OutlineValue, N as UniformDeclaration, O as FilterSpec, P as AnimApi, Q as play, R as MotionKeyframe, S as AlphaValue, T as DisplacementValue, U as SfxDescriptor, W as Step, _ as State$12, a as AudioApi, b as EmitterDefinition, c as MusicDescriptor, d as State$11, f as VolumesFor, h as EffectsApi, j as NoiseValue, k as FilterValueOf, l as MusicOptions, lt as OverlayApi, m as Config$13, n as State$13, r as UiApi, s as Config$12, t as Config$14, w as ColorMatrixValue, x as EmitterValue, y as EmitterConfig, z as State$10 } from "./types-BrEqXapX.mjs";
|
|
3
|
+
import { $ as Style, A as TextFormats, B as Argument, C as Point, E as TextBind, F as defineComponent, G as Part, H as I18nApi, I as Config$16, J as TextKey, K as State$14, L as InputApi, M as TextStyles, N as TextValue, Q as ResolvedStyle, R as State$15, T as TextApi, U as IntlKit, V as Config$15, W as Message, Y as TypedTr, Z as IsFlags, b as Config$17, g as IntrinsicElementsFor, h as defineTokens, j as TextStyleInput, k as TextFormatFunction, s as PopupComponent, tt as WhenFlags, v as BindField, w as State$16, x as CountdownValue, y as BindOptions } from "./types-DhCTe-kr.mjs";
|
|
4
4
|
import { Log } from "@moku-labs/common/browser";
|
|
5
5
|
import { PluginCtx } from "@moku-labs/core";
|
|
6
6
|
|
|
@@ -1056,6 +1056,24 @@ type IntentValue = {
|
|
|
1056
1056
|
intent: string;
|
|
1057
1057
|
payload: Json;
|
|
1058
1058
|
};
|
|
1059
|
+
/**
|
|
1060
|
+
* What a `Tappable` carries: an intent and its payload, and `point` to ask for the press point.
|
|
1061
|
+
* With `point: true` a finger tap answers `{ intent, payload: { ...payload, point: { x, y } } }`,
|
|
1062
|
+
* the press-down point in the view's own units, the units of its hit box: (0, 0) the top-left
|
|
1063
|
+
* corner of a ui button, (width, height) its bottom-right. Absent by default, so a view without it
|
|
1064
|
+
* is stored and serialised exactly as before the point existed, and its tap answers the payload as
|
|
1065
|
+
* it is.
|
|
1066
|
+
*
|
|
1067
|
+
* @example
|
|
1068
|
+
* ```ts
|
|
1069
|
+
* const value: TapValue = { intent: "found", payload: { id: "lamp" } };
|
|
1070
|
+
* // A gift sphere that answers where on it the finger landed.
|
|
1071
|
+
* const sphere: TapValue = { intent: "kitTap", payload: {}, point: true };
|
|
1072
|
+
* ```
|
|
1073
|
+
*/
|
|
1074
|
+
type TapValue = IntentValue & {
|
|
1075
|
+
/** `true` asks for the press point in the answer; absent (the default) answers the payload as it is. */point?: true;
|
|
1076
|
+
};
|
|
1059
1077
|
/**
|
|
1060
1078
|
* A view that can be carried. It names no intent: the drop target does. `carry` lists the
|
|
1061
1079
|
* projection keys of views of the same projection that ride along on top of it, such as the cards
|
|
@@ -1103,9 +1121,10 @@ type PointerValue = {
|
|
|
1103
1121
|
id: number;
|
|
1104
1122
|
};
|
|
1105
1123
|
/**
|
|
1106
|
-
* A tap on this view answers `{ intent, payload }`.
|
|
1124
|
+
* A tap on this view answers `{ intent, payload }`. With `point: true` a finger tap adds the
|
|
1125
|
+
* press point, in the view's own units, to the payload under `point`.
|
|
1107
1126
|
*/
|
|
1108
|
-
declare const Tappable: ComponentType<
|
|
1127
|
+
declare const Tappable: ComponentType<TapValue>;
|
|
1109
1128
|
/**
|
|
1110
1129
|
* A long press on this view answers `{ intent, payload }`.
|
|
1111
1130
|
*/
|
|
@@ -1928,7 +1947,7 @@ declare function defineGame<Types extends GameTypes>(): {
|
|
|
1928
1947
|
defineTokens: typeof defineTokens;
|
|
1929
1948
|
popup: <Properties extends object, Local extends object, Outcomes extends Record<string, unknown>>(component: PopupComponent<Properties, Local, Outcomes>, props: Properties, options?: {
|
|
1930
1949
|
over?: string;
|
|
1931
|
-
}) => Descriptor<
|
|
1950
|
+
}) => Descriptor<Answered<keyof Outcomes & string>>;
|
|
1932
1951
|
intrinsics: IntrinsicElementsFor<Types["assets"], TextStylesOf<Types>, Extract<keyof Types["strings"], string>>;
|
|
1933
1952
|
label: (options: Omit<LabelOptions, "style"> & {
|
|
1934
1953
|
style: TextStylesOf<Types>;
|
|
@@ -2056,4 +2075,4 @@ declare const screen: readonly [import("@moku-labs/core").PluginInstance<"world"
|
|
|
2056
2075
|
};
|
|
2057
2076
|
}> & Record<never, never>, import("@moku-labs/core").PluginInstance<"text", Config$17, State$16, TextApi, {}> & Record<never, never>, import("@moku-labs/core").PluginInstance<"ui", Config$14, State$13, UiApi, {}> & Record<never, never>];
|
|
2058
2077
|
//#endregion
|
|
2059
|
-
export {
|
|
2078
|
+
export { resource as $, Draggable as A, Countdown as At, Tappable as B, AnimPlayer as C, effectsPlugin as Ct, defineBundles as D, assetsPlugin as Dt, defineScene as E, audioPlugin as Et, PointerOver as F, label as Ft, frameAt as G, Traceable as H, Pressable as I, Now as J, Exiting as K, Pressed as L, Held as M, bind as Mt, Hovered as N, defineTextFormats as Nt, load as O, animPlugin as Ot, Pointer as P, defineTextStyles as Pt, mut as Q, Swipeable as R, defineMotion as S, flowPlugin as St, Frames as T, clockPlugin as Tt, Traced as U, Touchable as V, PASS_KINDS as W, Tree as X, Order as Y, component as Z, defineStyle as _, types_d_exports as _t, defineEmitter as a, schedule as at, messageDuration as b, inputPlugin as bt, Alpha as c, worldPlugin as ct, Displacement as d, textPlugin as dt, system as et, Glow as f, scenesPlugin as ft, resolve as g, PlatformProvider as gt, music as h, BackResult as ht, screen as i, hint as it, DropTarget as j, Text as jt, ready as k, projection as kt, Blur as l, uiPlugin as lt, Outline as m, platformPlugin as mt, createPlugin as n, defineEffect as nt, Emitter as o, defineFeature as ot, Noise as p, rendererPlugin as pt, Layer as q, defineGame as r, guide as rt, defineFilter as s, flattenFeatures as st, createApp as t, tag as tt, ColorMatrix as u, timePlugin as ut, tr as v, modelPlugin as vt, Animation as w, debugPlugin as wt, cubicBezier as x, i18nPlugin as xt, messageArgument as y, lifecyclePlugin as yt, TapValue as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as MonitorConfig, $t as PerfStartupLine, At as OverlayWhat, B as Parent, Bt as PerfCollectorLine, Cn as contribution, Ct as FrameReadout, Dn as to, Dt as MONITOR_SECTIONS, E as types_d_exports$13, En as slot, Et as LongFrameEntry, F as HudPartValue, Ft as PassKind, Gt as PerfGapLine, Ht as PerfDisplay, I as NineSlice, It as PassRecord, Jt as PerfLongFrameLine, Kt as PerfHeaderLine,
|
|
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-
|
|
3
|
-
import { A as TextFormats, D as TextFormat, F as defineComponent, O as TextFormatAnswer, P as types_d_exports$14, S as FormattedNumber, X as types_d_exports$7, d as DebugTrigger, f as LocalWrite, h as defineTokens, k as TextFormatFunction, m as popup, p as ScrollState, u as Box, x as CountdownValue, y as BindOptions, z as types_d_exports$8 } from "./types-
|
|
4
|
-
import { $ as
|
|
5
|
-
export { type AdaptiveScale, Alpha, type AnchorTarget, types_d_exports as Anim, AnimPlayer, Animation, types_d_exports$1 as Assets, types_d_exports$2 as Audio, type BackResult, type BindOptions, Blur, Box, CANVAS_RESTARTS, type CanvasRestart, types_d_exports$3 as Clock, ColorMatrix, Countdown, type CountdownValue, DEMAND_REASONS, types_d_exports$4 as Debug, DebugTrigger, type DescriptionNode, Displacement, Display, Draggable, DropTarget, types_d_exports$5 as Effects, Emitter, Exiting, type FilterArea, types_d_exports$6 as Flow, type FormattedNumber, type FrameColumns, type FrameReadResult, type FrameReadout, type FrameRecord, type FrameRing, Frames, Glow, HAPTIC_KINDS, type HapticKind, Held, Hovered, HudPart, type HudPartValue, types_d_exports$7 as I18n, types_d_exports$8 as Input, Layer, types_d_exports$9 as Lifecycle, LocalWrite, type LongFrameEntry, MONITOR_SECTIONS, types_d_exports$10 as Model, type MonitorConfig, type MonitorCounts, type MonitorSections, NineSlice, Noise, Now, Order, Outline, Overlay, type OverlayEventDetail, type OverlayValue, type OverlayWhat, PASS_KINDS, PERF_CAUSES, PERF_GAP_BUCKETS, PERF_LOG_VERSION, PROBLEM_RULES, Parent, type PassKind, type PassRecord, type PerfCause, type PerfChange, type PerfChangeEntry, type PerfCollectorLine, type PerfCounts, type PerfDisplay, type PerfEventLine, type PerfEventName, type PerfGapLine, type PerfHeaderLine, type PerfLogLine, type PerfLongFrameLine, type PerfMarkLine, type PerfMeasured, type PerfSampleLine, type PerfSpikeLine, type PerfStartupLine, type PerfTelemetryLine, type PerfThermalLine, types_d_exports$11 as Platform, type PlatformProvider, Pointer, PointerOver, type PoolTrim, type PoolTrimDetail, Pressable, Pressed, type ProblemEventDetail, type ProblemRule, types_d_exports$12 as Renderer, type RetakeWhy, SHADER_WHATS, SaveUnreadableError, type SceneSwitch, types_d_exports$13 as Scenes, ScrollState, type ShaderEventDetail, type ShaderWhat, Shape, type ShotsApi, type ShotsConfig, Sprite, type SpriteBlend, Swipeable, Tappable, Text, type TextFormat, type TextFormatAnswer, type TextFormatFunction, type TextFormats, types_d_exports$14 as TextTypes, types_d_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_d_exports$16 as Ui, type WarmDetail, type WhyEntry, type WhyLive, types_d_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, contribution, createApp, createPlugin, cubicBezier, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextFormats, defineTextStyles, defineTokens, effectsPlugin, exit, external, flattenFeatures, flowPlugin, frameAt, frames, guide, haptic, hint, i18nPlugin, inputPlugin, label, lifecyclePlugin, load, mark, messageArgument, messageDuration, modelPlugin, music, mut, parallel, platformPlugin, play, popup, projection, ready, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, stopSfx, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
|
|
1
|
+
import { $ as MonitorConfig, $t as PerfStartupLine, At as OverlayWhat, B as Parent, Bt as PerfCollectorLine, Cn as contribution, Ct as FrameReadout, Dn as to, Dt as MONITOR_SECTIONS, E as types_d_exports$13, En as slot, Et as LongFrameEntry, F as HudPartValue, Ft as PassKind, Gr as types_d_exports$10, Gt as PerfGapLine, Ht as PerfDisplay, I as NineSlice, It as PassRecord, Jt as PerfLongFrameLine, Kt as PerfHeaderLine, Lt as PerfCause, M as WhyEntry, Mr as types_d_exports$17, Mt as PERF_GAP_BUCKETS, N as Display, Nt as PERF_LOG_VERSION, On as type, Ot as MonitorSections, P as HudPart, Pt as PROBLEM_RULES, Qn as DescriptionNode, Qt as PerfSpikeLine, R as Overlay, Rr as types_d_exports$3, Rt as PerfChange, Sn as types_d_exports$6, St as FrameReadResult, Tn as exit, Tt as FrameRing, U as Sprite, Ut as PerfEventLine, V as Shape, Vt as PerfCounts, W as SpriteBlend, Wt as PerfEventName, X as AdaptiveScale, Xn as AnchorTarget, Xr as SaveUnreadableError, Xt as PerfMeasured, Y as sprite, Yt as PerfMarkLine, Zt as PerfSampleLine, an as SHADER_WHATS, bt as WhyLive, cn as WarmDetail, dn as DEMAND_REASONS, dt as ShotsConfig, en as PerfTelemetryLine, g as types_d_exports$1, hi as types_d_exports$15, in as ProblemRule, jt as PERF_CAUSES, kt as OverlayEventDetail, ln as CANVAS_RESTARTS, lt as types_d_exports$12, nn as PoolTrimDetail, on as ShaderEventDetail, ot as PoolTrim, pt as MonitorCounts, q as Transform, qt as PerfLogLine, rn as ProblemEventDetail, si as types_d_exports$9, sn as ShaderWhat, sr as SceneSwitch, tn as PerfThermalLine, un as CanvasRestart, ut as ShotsApi, wt as FrameRecord, xt as FrameColumns, yt as RetakeWhy, z as OverlayValue, zt as PerfChangeEntry } from "./types-D33h-CNj.mjs";
|
|
2
|
+
import { $ as sequence, E as FilterArea, G as HAPTIC_KINDS, H as HapticKind, J as frames, K as defineAnimation, Q as play, V as types_d_exports, X as mark, Y as haptic, Z as parallel, at as stopSfx, ct as wait, et as set, i as types_d_exports$16, it as stagger, nt as spawn, ot as tween, p as types_d_exports$2, q as external, rt as spawned, st as use, tt as sfx, ut as types_d_exports$4, v as types_d_exports$5 } from "./types-BrEqXapX.mjs";
|
|
3
|
+
import { A as TextFormats, D as TextFormat, F as defineComponent, O as TextFormatAnswer, P as types_d_exports$14, S as FormattedNumber, X as types_d_exports$7, d as DebugTrigger, f as LocalWrite, h as defineTokens, k as TextFormatFunction, m as popup, p as ScrollState, u as Box, x as CountdownValue, y as BindOptions, z as types_d_exports$8 } from "./types-DhCTe-kr.mjs";
|
|
4
|
+
import { $ as resource, A as Draggable, At as Countdown, B as Tappable, C as AnimPlayer, Ct as effectsPlugin, D as defineBundles, Dt as assetsPlugin, E as defineScene, Et as audioPlugin, F as PointerOver, Ft as label, G as frameAt, H as Traceable, I as Pressable, J as Now, K as Exiting, L as Pressed, M as Held, Mt as bind, N as Hovered, Nt as defineTextFormats, O as load, Ot as animPlugin, P as Pointer, Pt as defineTextStyles, Q as mut, R as Swipeable, S as defineMotion, St as flowPlugin, T as Frames, Tt as clockPlugin, U as Traced, V as Touchable, W as PASS_KINDS, X as Tree, Y as Order, Z as component, _ as defineStyle, _t as types_d_exports$11, a as defineEmitter, at as schedule, b as messageDuration, bt as inputPlugin, c as Alpha, ct as worldPlugin, d as Displacement, dt as textPlugin, et as system, f as Glow, ft as scenesPlugin, g as resolve, gt as PlatformProvider, h as music, ht as BackResult, i as screen, it as hint, j as DropTarget, jt as Text, k as ready, kt as projection, l as Blur, lt as uiPlugin, m as Outline, mt as platformPlugin, n as createPlugin, nt as defineEffect, o as Emitter, ot as defineFeature, p as Noise, pt as rendererPlugin, q as Layer, r as defineGame, rt as guide, s as defineFilter, st as flattenFeatures, t as createApp, tt as tag, u as ColorMatrix, ut as timePlugin, v as tr, vt as modelPlugin, w as Animation, wt as debugPlugin, x as cubicBezier, xt as i18nPlugin, y as messageArgument, yt as lifecyclePlugin, z as TapValue } from "./index-DuiCPP3n.mjs";
|
|
5
|
+
export { type AdaptiveScale, Alpha, type AnchorTarget, types_d_exports as Anim, AnimPlayer, Animation, types_d_exports$1 as Assets, types_d_exports$2 as Audio, type BackResult, type BindOptions, Blur, Box, CANVAS_RESTARTS, type CanvasRestart, types_d_exports$3 as Clock, ColorMatrix, Countdown, type CountdownValue, DEMAND_REASONS, types_d_exports$4 as Debug, DebugTrigger, type DescriptionNode, Displacement, Display, Draggable, DropTarget, types_d_exports$5 as Effects, Emitter, Exiting, type FilterArea, types_d_exports$6 as Flow, type FormattedNumber, type FrameColumns, type FrameReadResult, type FrameReadout, type FrameRecord, type FrameRing, Frames, Glow, HAPTIC_KINDS, type HapticKind, Held, Hovered, HudPart, type HudPartValue, types_d_exports$7 as I18n, types_d_exports$8 as Input, Layer, types_d_exports$9 as Lifecycle, LocalWrite, type LongFrameEntry, MONITOR_SECTIONS, types_d_exports$10 as Model, type MonitorConfig, type MonitorCounts, type MonitorSections, NineSlice, Noise, Now, Order, Outline, Overlay, type OverlayEventDetail, type OverlayValue, type OverlayWhat, PASS_KINDS, PERF_CAUSES, PERF_GAP_BUCKETS, PERF_LOG_VERSION, PROBLEM_RULES, Parent, type PassKind, type PassRecord, type PerfCause, type PerfChange, type PerfChangeEntry, type PerfCollectorLine, type PerfCounts, type PerfDisplay, type PerfEventLine, type PerfEventName, type PerfGapLine, type PerfHeaderLine, type PerfLogLine, type PerfLongFrameLine, type PerfMarkLine, type PerfMeasured, type PerfSampleLine, type PerfSpikeLine, type PerfStartupLine, type PerfTelemetryLine, type PerfThermalLine, types_d_exports$11 as Platform, type PlatformProvider, Pointer, PointerOver, type PoolTrim, type PoolTrimDetail, Pressable, Pressed, type ProblemEventDetail, type ProblemRule, types_d_exports$12 as Renderer, type RetakeWhy, SHADER_WHATS, SaveUnreadableError, type SceneSwitch, types_d_exports$13 as Scenes, ScrollState, type ShaderEventDetail, type ShaderWhat, Shape, type ShotsApi, type ShotsConfig, Sprite, type SpriteBlend, Swipeable, type TapValue, Tappable, Text, type TextFormat, type TextFormatAnswer, type TextFormatFunction, type TextFormats, types_d_exports$14 as TextTypes, types_d_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_d_exports$16 as Ui, type WarmDetail, type WhyEntry, type WhyLive, types_d_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, contribution, createApp, createPlugin, cubicBezier, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextFormats, defineTextStyles, defineTokens, effectsPlugin, exit, external, flattenFeatures, flowPlugin, frameAt, frames, guide, haptic, hint, i18nPlugin, inputPlugin, label, lifecyclePlugin, load, mark, messageArgument, messageDuration, modelPlugin, music, mut, parallel, platformPlugin, play, popup, projection, ready, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, stopSfx, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as sfx, $t as worldPlugin, A as types_exports$7, At as Glow, B as defineMotion, Bt as Animation, C as types_exports$14, Ct as messageDuration, D as types_exports$10, Dt as Blur, E as types_exports$11, Et as Alpha, F as types_exports$2, Ft as audioPlugin, G as external, Gt as MONITOR_SECTIONS, H as platformPlugin, Ht as rendererPlugin, I as types_exports$1, It as scenesPlugin, J as mark, Jt as PERF_LOG_VERSION, K as frames, Kt as PERF_CAUSES, L as types_exports, Lt as assetsPlugin, M as types_exports$5, Mt as Outline, N as types_exports$4, Nt as defineFilter, O as types_exports$9, Ot as ColorMatrix, P as types_exports$3, Pt as debugPlugin, Q as set, Qt as DEMAND_REASONS, R as uiPlugin, Rt as animPlugin, S as types_exports$15, St as messageArgument, T as types_exports$12, Tt as Emitter, U as HAPTIC_KINDS, Ut as PASS_KINDS, V as textPlugin, Vt as Frames, W as defineAnimation, Wt as frameAt, X as play, Xt as SHADER_WHATS, Y as parallel, Yt as PROBLEM_RULES, Z as sequence, Zt as CANVAS_RESTARTS, _ as defineBundles, _t as Tappable, a as cubicBezier, an as to, at as use, b as types_exports$17, bt as Traced, c as hint, cn as SaveUnreadableError, ct as Draggable, d as defineScene, dn as clockPlugin, dt as Hovered, en as flowPlugin, et as spawn, f as tr, ft as Pointer, g as music, gt as Swipeable, h as defineEmitter, ht as Pressed, i as screen, in as slot, it as tween, j as types_exports$6, jt as Noise, k as types_exports$8, kt as Displacement, l as schedule, ln as lifecyclePlugin, lt as DropTarget, m as flattenFeatures, mt as Pressable, n as createPlugin, nn as contribution, nt as stagger, o as defineEffect, on as type, ot as wait, p as defineFeature, pt as PointerOver, q as haptic, qt as PERF_GAP_BUCKETS, r as defineGame, rn as exit, rt as stopSfx, s as guide, sn as modelPlugin, st as inputPlugin, t as createApp, tt as spawned, u as projection, un as timePlugin, ut as Held, v as load, vt as Touchable, w as types_exports$13, wt as effectsPlugin, x as types_exports$16, xt as i18nPlugin, y as ready, yt as Traceable, z as resolve, zt as AnimPlayer } from "./src-
|
|
2
|
-
import { $ as Shape, A as Countdown, F as defineTextStyles, I as label, J as HudPart, M as bind, P as defineTextFormats, Q as Parent, S as popup, T as defineStyle, X as Overlay, Y as NineSlice, _ as LocalWrite, at as Exiting, ct as Order, dt as mut, et as Sprite, ft as resource, h as DebugTrigger, ht as tag, it as sprite, j as Text, lt as Tree, ot as Layer, p as Box, pt as system, q as Display, st as Now, tt as Transform, ut as component, w as defineTokens, y as ScrollState } from "./visual-
|
|
1
|
+
import { $ as sfx, $t as worldPlugin, A as types_exports$7, At as Glow, B as defineMotion, Bt as Animation, C as types_exports$14, Ct as messageDuration, D as types_exports$10, Dt as Blur, E as types_exports$11, Et as Alpha, F as types_exports$2, Ft as audioPlugin, G as external, Gt as MONITOR_SECTIONS, H as platformPlugin, Ht as rendererPlugin, I as types_exports$1, It as scenesPlugin, J as mark, Jt as PERF_LOG_VERSION, K as frames, Kt as PERF_CAUSES, L as types_exports, Lt as assetsPlugin, M as types_exports$5, Mt as Outline, N as types_exports$4, Nt as defineFilter, O as types_exports$9, Ot as ColorMatrix, P as types_exports$3, Pt as debugPlugin, Q as set, Qt as DEMAND_REASONS, R as uiPlugin, Rt as animPlugin, S as types_exports$15, St as messageArgument, T as types_exports$12, Tt as Emitter, U as HAPTIC_KINDS, Ut as PASS_KINDS, V as textPlugin, Vt as Frames, W as defineAnimation, Wt as frameAt, X as play, Xt as SHADER_WHATS, Y as parallel, Yt as PROBLEM_RULES, Z as sequence, Zt as CANVAS_RESTARTS, _ as defineBundles, _t as Tappable, a as cubicBezier, an as to, at as use, b as types_exports$17, bt as Traced, c as hint, cn as SaveUnreadableError, ct as Draggable, d as defineScene, dn as clockPlugin, dt as Hovered, en as flowPlugin, et as spawn, f as tr, ft as Pointer, g as music, gt as Swipeable, h as defineEmitter, ht as Pressed, i as screen, in as slot, it as tween, j as types_exports$6, jt as Noise, k as types_exports$8, kt as Displacement, l as schedule, ln as lifecyclePlugin, lt as DropTarget, m as flattenFeatures, mt as Pressable, n as createPlugin, nn as contribution, nt as stagger, o as defineEffect, on as type, ot as wait, p as defineFeature, pt as PointerOver, q as haptic, qt as PERF_GAP_BUCKETS, r as defineGame, rn as exit, rt as stopSfx, s as guide, sn as modelPlugin, st as inputPlugin, t as createApp, tt as spawned, u as projection, un as timePlugin, ut as Held, v as load, vt as Touchable, w as types_exports$13, wt as effectsPlugin, x as types_exports$16, xt as i18nPlugin, y as ready, yt as Traceable, z as resolve, zt as AnimPlayer } from "./src-CkBzjWRd.mjs";
|
|
2
|
+
import { $ as Shape, A as Countdown, F as defineTextStyles, I as label, J as HudPart, M as bind, P as defineTextFormats, Q as Parent, S as popup, T as defineStyle, X as Overlay, Y as NineSlice, _ as LocalWrite, at as Exiting, ct as Order, dt as mut, et as Sprite, ft as resource, h as DebugTrigger, ht as tag, it as sprite, j as Text, lt as Tree, ot as Layer, p as Box, pt as system, q as Display, st as Now, tt as Transform, ut as component, w as defineTokens, y as ScrollState } from "./visual-Cl7Q7pO9.mjs";
|
|
3
3
|
import { t as defineComponent } from "./component-DGg5DqKK.mjs";
|
|
4
4
|
export { Alpha, types_exports as Anim, AnimPlayer, Animation, types_exports$1 as Assets, types_exports$2 as Audio, Blur, Box, CANVAS_RESTARTS, types_exports$3 as Clock, ColorMatrix, Countdown, DEMAND_REASONS, types_exports$4 as Debug, DebugTrigger, Displacement, Display, Draggable, DropTarget, types_exports$5 as Effects, Emitter, Exiting, types_exports$6 as Flow, Frames, Glow, HAPTIC_KINDS, Held, Hovered, HudPart, types_exports$7 as I18n, types_exports$8 as Input, Layer, types_exports$9 as Lifecycle, LocalWrite, MONITOR_SECTIONS, types_exports$10 as Model, NineSlice, Noise, Now, Order, Outline, Overlay, PASS_KINDS, PERF_CAUSES, PERF_GAP_BUCKETS, PERF_LOG_VERSION, PROBLEM_RULES, Parent, types_exports$11 as Platform, Pointer, PointerOver, Pressable, Pressed, types_exports$12 as Renderer, SHADER_WHATS, SaveUnreadableError, types_exports$13 as Scenes, ScrollState, Shape, Sprite, Swipeable, Tappable, Text, types_exports$14 as TextTypes, types_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_exports$16 as Ui, types_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, contribution, createApp, createPlugin, cubicBezier, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextFormats, defineTextStyles, defineTokens, effectsPlugin, exit, external, flattenFeatures, flowPlugin, frameAt, frames, guide, haptic, hint, i18nPlugin, inputPlugin, label, lifecyclePlugin, load, mark, messageArgument, messageDuration, modelPlugin, music, mut, parallel, platformPlugin, play, popup, projection, ready, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, stopSfx, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
|
package/dist/inspect.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-
|
|
3
|
-
import { c as UiNode } from "./types-
|
|
4
|
-
import { t as HeadlessApp } from "./headless-
|
|
5
|
-
import { a as InputArguments, d as WatchApp, f as WatchInput, l as Source, o as InputOf, s as InputSchema, t as CheatEntry } from "./types-
|
|
6
|
-
import { n as defineSource } from "./define-
|
|
1
|
+
import { Ar as Explained, Fn as FlowGraph, Ln as JournalEntry, Or as Api$1, Z as Api$2, Zr as Snapshot, br as FrameDiff, ct as Under, h as Usage, hr as ComponentSchema, mt as RenderStats, t as Api$3, vn as Position, yr as EntitySnapshot, zr as Api } from "./types-D33h-CNj.mjs";
|
|
2
|
+
import { a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-BrEqXapX.mjs";
|
|
3
|
+
import { c as UiNode } from "./types-DhCTe-kr.mjs";
|
|
4
|
+
import { t as HeadlessApp } from "./headless-rXLWKvZq.mjs";
|
|
5
|
+
import { a as InputArguments, d as WatchApp, f as WatchInput, l as Source, o as InputOf, s as InputSchema, t as CheatEntry } from "./types-CSkVNKPZ.mjs";
|
|
6
|
+
import { n as defineSource } from "./define-C5oKi9M2.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/plugins/flow/doors/read.d.ts
|
|
9
9
|
/**
|
package/dist/inspect.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { c as defineSource } from "./session-D0AYRm5T.mjs";
|
|
2
|
-
import { n as read, r as watch, t as sources } from "./sources-
|
|
2
|
+
import { n as read, r as watch, t as sources } from "./sources-DIl02J8z.mjs";
|
|
3
3
|
import "./inspect-la_KkjCS.mjs";
|
|
4
4
|
export { defineSource, read, sources, watch };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as jsxs, i as jsxDEV, n as JSX, r as jsx, t as Fragment } from "./runtime-
|
|
1
|
+
import { a as jsxs, i as jsxDEV, n as JSX, r as jsx, t as Fragment } from "./runtime-DGpGGQAh.mjs";
|
|
2
2
|
export { Fragment, type JSX, jsx, jsxDEV, jsxs };
|
package/dist/jsx-runtime.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as jsxs, n as JSX, r as jsx, t as Fragment } from "./runtime-
|
|
1
|
+
import { a as jsxs, n as JSX, r as jsx, t as Fragment } from "./runtime-DGpGGQAh.mjs";
|
|
2
2
|
export { Fragment, type JSX, jsx, jsxs };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as UiIntrinsicElements, a as JsxChild, t as DescriptionNode } from "./types-
|
|
1
|
+
import { _ as UiIntrinsicElements, a as JsxChild, t as DescriptionNode } from "./types-DhCTe-kr.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/ui/jsx/runtime.d.ts
|
|
4
4
|
/** What the compiler passes as props: the children plus whatever the tag declared. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as Shape, H as parentOf, K as rootPoseOf, Y as NineSlice, i as drawnRect, ot as Layer, p as Box } from "./visual-
|
|
1
|
+
import { $ as Shape, H as parentOf, K as rootPoseOf, Y as NineSlice, i as drawnRect, ot as Layer, p as Box } from "./visual-Cl7Q7pO9.mjs";
|
|
2
2
|
import { o as notInstalled } from "./dev-BNndV-hU.mjs";
|
|
3
3
|
import { a as readTarget, c as defineSource, l as inputSchema, n as isTainted, o as inputOrEmpty, t as cheatsOf } from "./session-D0AYRm5T.mjs";
|
|
4
4
|
//#region src/plugins/flow/doors/read.ts
|
|
@@ -2,7 +2,7 @@ import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
|
|
|
2
2
|
import { r as systemSource, t as memory } from "./memory-CWlqhS7l.mjs";
|
|
3
3
|
import { a as finishDrafts, i as enableDraftPatches, n as deepFreeze$1, o as openDrafts, r as dropDrafts } from "./drafts-BawpSaVp.mjs";
|
|
4
4
|
import { _ as compact, c as collectFlows, d as findNode, f as framePath, g as slotNames, h as restlessCapOf, i as servePaused, l as describeGraph, m as isRestCheckpoint, n as captureFrame, o as epochOf, p as graphHash, r as serveCaptures, s as pageNow$1, t as cancelCaptures, v as pushEntry } from "./capture-BtS6_oWr.mjs";
|
|
5
|
-
import { $ as Shape, A as Countdown, B as isLeaving, C as uiFor, D as isTextFormat, E as formatBound, G as rootPoseInto, H as parentOf$1, J as HudPart, K as rootPoseOf, L as readStyle, N as builtInStyles, O as unitOf, Q as Parent, R as textFor, U as poseUnder, V as localPoseOf, W as rootPointOf, X as Overlay, Y as NineSlice, Z as OverlayLevel, _ as LocalWrite, a as fieldsLeftAlone, at as Exiting, b as UI_OWNER, c as namesFormat, ct as Order, d as visualOf$1, et as Sprite, f as visualRectOf, ft as resource, g as Escapable, h as DebugTrigger, ht as tag, i as drawnRect, j as Text, k as wholeValue, l as restValueOf, lt as Tree, m as Covered, mt as systemsFor, n as CONTENT$1, nt as arcDefaults, o as fitScaleOf, ot as Layer, p as Box, pt as system, q as Display, r as bindOf, rt as componentsFor, s as livePatch, st as Now, tt as Transform, u as samePose, ut as component, v as Scroll, x as UiCounters, y as ScrollState, z as applyPose } from "./visual-
|
|
5
|
+
import { $ as Shape, A as Countdown, B as isLeaving, C as uiFor, D as isTextFormat, E as formatBound, G as rootPoseInto, H as parentOf$1, J as HudPart, K as rootPoseOf, L as readStyle, N as builtInStyles, O as unitOf, Q as Parent, R as textFor, U as poseUnder, V as localPoseOf, W as rootPointOf, X as Overlay, Y as NineSlice, Z as OverlayLevel, _ as LocalWrite, a as fieldsLeftAlone, at as Exiting, b as UI_OWNER, c as namesFormat, ct as Order, d as visualOf$1, et as Sprite, f as visualRectOf, ft as resource, g as Escapable, h as DebugTrigger, ht as tag, i as drawnRect, j as Text, k as wholeValue, l as restValueOf, lt as Tree, m as Covered, mt as systemsFor, n as CONTENT$1, nt as arcDefaults, o as fitScaleOf, ot as Layer, p as Box, pt as system, q as Display, r as bindOf, rt as componentsFor, s as livePatch, st as Now, tt as Transform, u as samePose, ut as component, v as Scroll, x as UiCounters, y as ScrollState, z as applyPose } from "./visual-Cl7Q7pO9.mjs";
|
|
6
6
|
import { a as isDev } from "./dev-BNndV-hU.mjs";
|
|
7
7
|
import { n as isComponentDefinition } from "./component-DGg5DqKK.mjs";
|
|
8
8
|
import { n as flatten } from "./flatten-nUX9PpGo.mjs";
|
|
@@ -3169,19 +3169,24 @@ function beginGuide(state, signal) {
|
|
|
3169
3169
|
}
|
|
3170
3170
|
/**
|
|
3171
3171
|
* Opens the gate for a descriptor that carries `answers` and resolves with the player's answer in
|
|
3172
|
-
* both modes
|
|
3173
|
-
*
|
|
3174
|
-
*
|
|
3172
|
+
* both modes, stamped with `at`: `clock.now()` read when the gate's answer arrives, not when the
|
|
3173
|
+
* gate opened. The spread keeps a payload-less answer without a `payload` key, and `at` replaces
|
|
3174
|
+
* one a caller put on the answer. In live mode the handler is called as well: it only shows the UI,
|
|
3175
|
+
* the answer comes through the gate, so its failure is logged and does not block the node. Its
|
|
3176
|
+
* signal ends with the answer — that is how the popup layer knows to unmount what it showed.
|
|
3175
3177
|
*
|
|
3176
3178
|
* @param ctx - Domain context of the flow plugin.
|
|
3177
3179
|
* @param gate - Internal gate API.
|
|
3178
3180
|
* @param descriptor - The awaited descriptor.
|
|
3179
3181
|
* @param answers - Intents the gate accepts while the effect runs.
|
|
3180
3182
|
* @param signal - The node's abort signal.
|
|
3181
|
-
* @returns The answer the gate accepted.
|
|
3183
|
+
* @returns The answer the gate accepted, with the moment it arrived.
|
|
3182
3184
|
*/
|
|
3183
3185
|
function openForAnswers(ctx, gate, descriptor, answers, signal) {
|
|
3184
|
-
const answered = gate.open({ allowed: answers })
|
|
3186
|
+
const answered = gate.open({ allowed: answers }).then((answer) => ({
|
|
3187
|
+
...answer,
|
|
3188
|
+
at: ctx.deps.clock.now()
|
|
3189
|
+
}));
|
|
3185
3190
|
if (ctx.state.fx.mode !== "live") return answered;
|
|
3186
3191
|
const shown = childOf(signal);
|
|
3187
3192
|
invoke(ctx.state.fx, ctx.log, descriptor, shown.signal);
|
|
@@ -54393,6 +54398,22 @@ function intentDefaults() {
|
|
|
54393
54398
|
};
|
|
54394
54399
|
}
|
|
54395
54400
|
/**
|
|
54401
|
+
* Fresh defaults for `Tappable`: an intent and a payload, and no `point` key, so a view that does
|
|
54402
|
+
* not ask for the press point stores and serialises as before.
|
|
54403
|
+
*
|
|
54404
|
+
* @returns An empty intent and an empty payload.
|
|
54405
|
+
* @example
|
|
54406
|
+
* ```ts
|
|
54407
|
+
* tapDefaults(); // { intent: "", payload: {} }
|
|
54408
|
+
* ```
|
|
54409
|
+
*/
|
|
54410
|
+
function tapDefaults() {
|
|
54411
|
+
return {
|
|
54412
|
+
intent: "",
|
|
54413
|
+
payload: {}
|
|
54414
|
+
};
|
|
54415
|
+
}
|
|
54416
|
+
/**
|
|
54396
54417
|
* Fresh defaults for the one component that carries a payload without an intent.
|
|
54397
54418
|
*
|
|
54398
54419
|
* @returns An empty payload and nothing carried along.
|
|
@@ -54416,9 +54437,10 @@ const pointerDefaults = {
|
|
|
54416
54437
|
id: -1
|
|
54417
54438
|
};
|
|
54418
54439
|
/**
|
|
54419
|
-
* A tap on this view answers `{ intent, payload }`.
|
|
54440
|
+
* A tap on this view answers `{ intent, payload }`. With `point: true` a finger tap adds the
|
|
54441
|
+
* press point, in the view's own units, to the payload under `point`.
|
|
54420
54442
|
*/
|
|
54421
|
-
const Tappable = /*#__PURE__*/ component("Tappable",
|
|
54443
|
+
const Tappable = /*#__PURE__*/ component("Tappable", tapDefaults());
|
|
54422
54444
|
/**
|
|
54423
54445
|
* A long press on this view answers `{ intent, payload }`.
|
|
54424
54446
|
*/
|
|
@@ -54559,21 +54581,37 @@ function asRecord(payload) {
|
|
|
54559
54581
|
return payload;
|
|
54560
54582
|
}
|
|
54561
54583
|
/**
|
|
54562
|
-
* Builds the answer of a tap or of a long press: the component's own intent and payload.
|
|
54584
|
+
* Builds the answer of a tap or of a long press: the component's own intent and payload. A
|
|
54585
|
+
* `Tappable` with `point: true` given a point adds it to the payload under `point`, which wins a
|
|
54586
|
+
* payload key of that name; a payload that is not an object becomes `{}` first. Without the flag
|
|
54587
|
+
* or without a point the answer carries the payload as it is: no copy, no `point` key.
|
|
54563
54588
|
*
|
|
54564
54589
|
* @param gesture - The `Tappable` or `Pressable` value of the view.
|
|
54590
|
+
* @param point - The press point in the view's own units; only a flagged view reads it.
|
|
54565
54591
|
* @returns The answer to hand to the gate.
|
|
54566
54592
|
* @example
|
|
54567
54593
|
* ```ts
|
|
54568
54594
|
* tapAnswer({ intent: "found", payload: { id: "lamp" } });
|
|
54569
54595
|
* // { intent: "found", payload: { id: "lamp" } }
|
|
54596
|
+
* tapAnswer({ intent: "kitTap", payload: { kit: "k1" }, point: true }, { x: 10, y: 60 });
|
|
54597
|
+
* // { intent: "kitTap", payload: { kit: "k1", point: { x: 10, y: 60 } } }
|
|
54570
54598
|
* ```
|
|
54571
54599
|
*/
|
|
54572
|
-
function tapAnswer(gesture) {
|
|
54573
|
-
return {
|
|
54600
|
+
function tapAnswer(gesture, point) {
|
|
54601
|
+
if (gesture.point !== true || point === void 0) return {
|
|
54574
54602
|
intent: gesture.intent,
|
|
54575
54603
|
payload: gesture.payload
|
|
54576
54604
|
};
|
|
54605
|
+
return {
|
|
54606
|
+
intent: gesture.intent,
|
|
54607
|
+
payload: {
|
|
54608
|
+
...asRecord(gesture.payload),
|
|
54609
|
+
point: {
|
|
54610
|
+
x: point.x,
|
|
54611
|
+
y: point.y
|
|
54612
|
+
}
|
|
54613
|
+
}
|
|
54614
|
+
};
|
|
54577
54615
|
}
|
|
54578
54616
|
/**
|
|
54579
54617
|
* Builds the answer of a drop: the drop TARGET names the intent, and its payload wins a key the
|
|
@@ -56044,6 +56082,30 @@ function onMove(ctx, point) {
|
|
|
56044
56082
|
ctx.state.phase = "dragging";
|
|
56045
56083
|
}
|
|
56046
56084
|
/**
|
|
56085
|
+
* The press-down point in the view's own units, the units of its hit box, brought through its
|
|
56086
|
+
* `Transform` and `Parent` chain as the trace hit test does. Only a `Tappable` with `point: true`
|
|
56087
|
+
* asks for it, so a view without the flag allocates nothing here.
|
|
56088
|
+
*
|
|
56089
|
+
* @param ctx - Domain context of the input plugin.
|
|
56090
|
+
* @param entity - The tapped view.
|
|
56091
|
+
* @param tappable - Its `Tappable` value.
|
|
56092
|
+
* @returns The local press point, or `undefined` for a view that does not ask for it.
|
|
56093
|
+
*/
|
|
56094
|
+
function pressPointOf(ctx, entity, tappable) {
|
|
56095
|
+
if (tappable.point !== true) return void 0;
|
|
56096
|
+
const { start } = ctx.state;
|
|
56097
|
+
return localPoseOf(ctx.deps.world.ecs, entity, {
|
|
56098
|
+
x: start.x,
|
|
56099
|
+
y: start.y,
|
|
56100
|
+
rotation: 0,
|
|
56101
|
+
scale: 1,
|
|
56102
|
+
pivot: {
|
|
56103
|
+
x: 0,
|
|
56104
|
+
y: 0
|
|
56105
|
+
}
|
|
56106
|
+
});
|
|
56107
|
+
}
|
|
56108
|
+
/**
|
|
56047
56109
|
* Answers the release of a press: a tap when the finger stayed inside the slop, a swipe when it
|
|
56048
56110
|
* went far enough and fast enough. Neither: nothing happened, and nothing has to be undone. Every
|
|
56049
56111
|
* release inside the slop runs the `onTap` listeners first, so a view that carries only
|
|
@@ -56062,7 +56124,7 @@ function answerRelease(ctx, entity, point) {
|
|
|
56062
56124
|
notifyTap(ctx, entity);
|
|
56063
56125
|
const tappable = ecs.get(entity, Tappable);
|
|
56064
56126
|
if (tappable !== void 0) {
|
|
56065
|
-
submit(ctx, entity, tapAnswer(tappable));
|
|
56127
|
+
submit(ctx, entity, tapAnswer(tappable, pressPointOf(ctx, entity, tappable)));
|
|
56066
56128
|
return;
|
|
56067
56129
|
}
|
|
56068
56130
|
if (!ecs.has(entity, Transform)) lostPress(ctx, "view-gone");
|
|
@@ -56588,13 +56650,15 @@ function answerIntent(ctx, target, component) {
|
|
|
56588
56650
|
/**
|
|
56589
56651
|
* Taps a view the way the finger does: the `onTap` listeners run first, then the `Tappable` is
|
|
56590
56652
|
* answered. A view that carries only `Touchable` reaches the listeners and answers nothing, which
|
|
56591
|
-
* is what a ui button with local state does, so it is not reported as a mistake.
|
|
56653
|
+
* is what a ui button with local state does, so it is not reported as a mistake. A given point is
|
|
56654
|
+
* already in the view's own units and reaches the answer as it is, on a view that asks for it.
|
|
56592
56655
|
*
|
|
56593
56656
|
* @param ctx - Domain context of the input plugin.
|
|
56594
56657
|
* @param target - What the caller pointed at.
|
|
56658
|
+
* @param point - The press point in the view's own units, or `undefined`.
|
|
56595
56659
|
* @returns What `flow.gate.answer` returned.
|
|
56596
56660
|
*/
|
|
56597
|
-
function answerTap(ctx, target) {
|
|
56661
|
+
function answerTap(ctx, target, point) {
|
|
56598
56662
|
const entity = resolveTarget(ctx, target);
|
|
56599
56663
|
if (entity === void 0) {
|
|
56600
56664
|
ctx.log.warn("input: target has no Tappable", { target });
|
|
@@ -56606,7 +56670,7 @@ function answerTap(ctx, target) {
|
|
|
56606
56670
|
if (!ctx.deps.world.ecs.has(entity, Touchable)) ctx.log.warn("input: target has no Tappable", { target });
|
|
56607
56671
|
return false;
|
|
56608
56672
|
}
|
|
56609
|
-
return submit(ctx, entity, tapAnswer(tappable));
|
|
56673
|
+
return submit(ctx, entity, tapAnswer(tappable, point));
|
|
56610
56674
|
}
|
|
56611
56675
|
/**
|
|
56612
56676
|
* Answers a drop: the source brings the payload, the destination names the intent.
|
|
@@ -56672,7 +56736,7 @@ function answerTrace(ctx, path) {
|
|
|
56672
56736
|
function createInputApi(ctx) {
|
|
56673
56737
|
const inputCtx = withDeps$2(ctx);
|
|
56674
56738
|
return {
|
|
56675
|
-
tap: (target) => answerTap(inputCtx, target),
|
|
56739
|
+
tap: (target, point) => answerTap(inputCtx, target, point),
|
|
56676
56740
|
press: (target) => answerIntent(inputCtx, target, Pressable),
|
|
56677
56741
|
drag: (from, to) => answerDrop(inputCtx, from, to),
|
|
56678
56742
|
swipe: (target, direction) => answerSwipe(inputCtx, target, direction),
|
|
@@ -65454,8 +65518,8 @@ const CONTENT_ROW_STYLE = Object.freeze({
|
|
|
65454
65518
|
});
|
|
65455
65519
|
/**
|
|
65456
65520
|
* The props, besides `style`, `state` and `content`, that a live element is written from: `bind`,
|
|
65457
|
-
* `texture`, `name` and `fit` reach its visual, `intent`, `payload`, `local` and `escape`
|
|
65458
|
-
* input, `components` its extras and `motion` its hooks. Every other prop is read from the node
|
|
65521
|
+
* `texture`, `name` and `fit` reach its visual, `intent`, `payload`, `point`, `local` and `escape`
|
|
65522
|
+
* its input, `components` its extras and `motion` its hooks. Every other prop is read from the node
|
|
65459
65523
|
* where it is used, at every patch: `hosts`, the props of a windowed scroll, the props of a text
|
|
65460
65524
|
* field, and the children.
|
|
65461
65525
|
*/
|
|
@@ -65468,6 +65532,7 @@ const WRITTEN = [
|
|
|
65468
65532
|
"motion",
|
|
65469
65533
|
"intent",
|
|
65470
65534
|
"payload",
|
|
65535
|
+
"point",
|
|
65471
65536
|
"local",
|
|
65472
65537
|
"escape"
|
|
65473
65538
|
];
|
|
@@ -65598,7 +65663,9 @@ function checkTag(node) {
|
|
|
65598
65663
|
}
|
|
65599
65664
|
/**
|
|
65600
65665
|
* What a button that answers carries: `Tappable` with its intent, or `Touchable` and
|
|
65601
|
-
* `LocalWrite` with its patch, or `Touchable` alone when it names neither.
|
|
65666
|
+
* `LocalWrite` with its patch, or `Touchable` alone when it names neither. `point={true}` beside
|
|
65667
|
+
* the intent writes `point: true` into `Tappable`; any other value writes no `point` key, never
|
|
65668
|
+
* `false` or `undefined`, so a button without it stores and serialises as before.
|
|
65602
65669
|
*
|
|
65603
65670
|
* @param node - The node of the button.
|
|
65604
65671
|
* @returns The component values.
|
|
@@ -65606,10 +65673,17 @@ function checkTag(node) {
|
|
|
65606
65673
|
function answerOf(node) {
|
|
65607
65674
|
const intent = node.props.intent;
|
|
65608
65675
|
const local = node.props.local;
|
|
65609
|
-
if (typeof intent === "string")
|
|
65610
|
-
|
|
65611
|
-
|
|
65612
|
-
|
|
65676
|
+
if (typeof intent === "string") {
|
|
65677
|
+
const payload = node.props.payload ?? {};
|
|
65678
|
+
return [node.props.point === true ? Tappable({
|
|
65679
|
+
intent,
|
|
65680
|
+
payload,
|
|
65681
|
+
point: true
|
|
65682
|
+
}) : Tappable({
|
|
65683
|
+
intent,
|
|
65684
|
+
payload
|
|
65685
|
+
})];
|
|
65686
|
+
}
|
|
65613
65687
|
if (typeof local === "object" && local !== null) return [Touchable(), LocalWrite({ patch: local })];
|
|
65614
65688
|
return [Touchable()];
|
|
65615
65689
|
}
|
|
@@ -66237,15 +66311,28 @@ function createReconciler(ctx, modules, fields) {
|
|
|
66237
66311
|
if (others !== void 0) ecs.set(element.entity, asHandle(type), others);
|
|
66238
66312
|
}
|
|
66239
66313
|
/**
|
|
66314
|
+
* Tells whether a value is the `Tappable` of a button that stopped asking for its press point
|
|
66315
|
+
* while the entity still carries `point: true`. A patch keeps the fields it leaves out, so that
|
|
66316
|
+
* value replaces the stored one whole.
|
|
66317
|
+
*
|
|
66318
|
+
* @param entity - The element's entity.
|
|
66319
|
+
* @param value - The value of this render.
|
|
66320
|
+
* @returns True when the stored `Tappable` has the flag and the new one has not.
|
|
66321
|
+
*/
|
|
66322
|
+
function dropsPoint(entity, value) {
|
|
66323
|
+
if (value.type !== Tappable || value.value === true) return false;
|
|
66324
|
+
return ecs.get(entity, Tappable)?.point === true && !("point" in value.value);
|
|
66325
|
+
}
|
|
66326
|
+
/**
|
|
66240
66327
|
* Writes one visual or input value onto a live element: added when the entity lacks it, else
|
|
66241
66328
|
* its fields patched, but never a tag or the state of a scroll, and never a field its type gives
|
|
66242
|
-
* to a plugin.
|
|
66329
|
+
* to a plugin. A `Tappable` that drops `point` is added again: it replaces the stored one whole.
|
|
66243
66330
|
*
|
|
66244
66331
|
* @param element - The live element.
|
|
66245
66332
|
* @param value - The value of this render.
|
|
66246
66333
|
*/
|
|
66247
66334
|
function writeValue(element, value) {
|
|
66248
|
-
if (!ecs.has(element.entity, value.type)) {
|
|
66335
|
+
if (!ecs.has(element.entity, value.type) || dropsPoint(element.entity, value)) {
|
|
66249
66336
|
ecs.add(element.entity, value);
|
|
66250
66337
|
return;
|
|
66251
66338
|
}
|
package/dist/testing.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { An as FeaturePlugin,
|
|
2
|
-
import { t as createApp } from "./index-
|
|
3
|
-
import { b as memory, x as saveOf, y as WithGameState } from "./types-
|
|
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-
|
|
1
|
+
import { An as FeaturePlugin, Hn as Descriptor, Hr as Json, Ir as FakeClock, Kn as Hint, Mn as AnyFlow, Pr as ClockSource, Rn as NodeTable, qn as NodeFx } from "./types-D33h-CNj.mjs";
|
|
2
|
+
import { t as createApp } from "./index-DuiCPP3n.mjs";
|
|
3
|
+
import { b as memory, x as saveOf, y as WithGameState } from "./types-CA98KS-U.mjs";
|
|
4
|
+
import { a as createHeadless, i as ReproResult, n as HeadlessGame, o as runRepro, r as Repro, s as stepFrames, t as HeadlessApp } from "./headless-rXLWKvZq.mjs";
|
|
5
5
|
import { AnyPluginInstance } from "@moku-labs/core";
|
|
6
6
|
|
|
7
7
|
//#region src/plugins/clock/fake.d.ts
|
package/dist/testing.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as flattenFeatures, on as type, rn as exit, t as createApp, tn as refuseStart } from "./src-
|
|
1
|
+
import { m as flattenFeatures, on as type, rn as exit, t as createApp, tn as refuseStart } from "./src-CkBzjWRd.mjs";
|
|
2
2
|
import { n as saveOf, t as memory } from "./memory-CWlqhS7l.mjs";
|
|
3
3
|
import { n as fakeClock } from "./fake-hnJcJeYf.mjs";
|
|
4
4
|
import { i as stepFrames, r as runRepro, t as createHeadless } from "./headless-CCiUwvlp.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { H as I18nApi, L as InputApi, T as TextApi, c as UiNode, et as StylesState, i as Finding, l as LayoutState, n as ElementChange, o as JsxState, r as ElementMotion } from "./types-
|
|
1
|
+
import { $n as Ease, A as FilterSlotQuad, Hn as Descriptor, Hr as Json, O as FilterSlot, Or as Api$3, Vn as TypeTag, Vr as Events$3, Xn as AnchorTarget, Z as Api$4, _i as Events$2, at as PixiUniformGroup, b as Events$4, ci as Api$1, cr as TrackOptions, dr as AnyComponent, et as PixiFilter, fn as Api$2, gr as ComponentType, gt as Point, ii as Events$5, it as PixiTexture, j as SyncApi, k as FilterSlotInputs, lr as TrackSegment, mr as ComponentHandle, nr as MotionHandle, nt as PixiModule, or as ReducedMotion, pr as AnyComponentValue, rr as NumericFields, rt as PixiSprite, s as Events$1, t as Api$5, tt as PixiGpuProgram, vi as Require, vr as Entity, vt as FilterCache, zr as Api$6 } from "./types-D33h-CNj.mjs";
|
|
2
|
+
import { H as I18nApi, L as InputApi, T as TextApi, c as UiNode, et as StylesState, i as Finding, l as LayoutState, n as ElementChange, o as JsxState, r as ElementMotion } from "./types-DhCTe-kr.mjs";
|
|
3
3
|
import { Log } from "@moku-labs/common/browser";
|
|
4
4
|
import { PluginCtx } from "@moku-labs/core";
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { An as FeaturePlugin,
|
|
2
|
-
import { o as AudioContextLike, s as Config$4 } from "./types-
|
|
3
|
-
import { H as I18nApi, J as TextKey, q as StringTable } from "./types-
|
|
4
|
-
import {
|
|
1
|
+
import { An as FeaturePlugin, Br as Config, Hr as Json, Ir as FakeClock, Jr as ProviderCall, Mn as AnyFlow, Pr as ClockSource, Q as Config$2, Qr as SnapshotOf, Vn as TypeTag, Yr as SaveDoc, a as Config$3, d as Manifest, ht as Orientation, mn as Config$1, n as AssetsIo, nt as PixiModule, qr as PlayerStateProvider } from "./types-D33h-CNj.mjs";
|
|
2
|
+
import { o as AudioContextLike, s as Config$4 } from "./types-BrEqXapX.mjs";
|
|
3
|
+
import { H as I18nApi, J as TextKey, q as StringTable } from "./types-DhCTe-kr.mjs";
|
|
4
|
+
import { Ct as effectsPlugin, Et as audioPlugin, gt as PlatformProvider, i as screen, mt as platformPlugin, t as createApp } from "./index-DuiCPP3n.mjs";
|
|
5
5
|
import { AnyPluginInstance } from "@moku-labs/core";
|
|
6
6
|
|
|
7
7
|
//#region src/plugins/model/store/providers/memory.d.ts
|
|
@@ -155,9 +155,32 @@ type GameConfig = {
|
|
|
155
155
|
keystorePasswordEnv: string; /** The name of the env var with the key password. The keystore's one by default. */
|
|
156
156
|
keyPasswordEnv?: string; /** The alias of the key in the keystore. */
|
|
157
157
|
keyAlias: string;
|
|
158
|
-
};
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* The Apple team, and the App Store Connect team key an iOS build signs with from the
|
|
161
|
+
* command line, where `xcodebuild` sees no Xcode account. The key is named by its two ids and
|
|
162
|
+
* the path of its `.p8` file, all three or none, never the key itself. Without them a build
|
|
163
|
+
* reads `APPLE_API_KEY`, `APPLE_API_ISSUER` and `APPLE_API_KEY_PATH` from the env as Tauri
|
|
164
|
+
* does. `--store` refuses iOS without the block, `--upload` without a key.
|
|
165
|
+
*
|
|
166
|
+
* @example
|
|
167
|
+
* ```ts
|
|
168
|
+
* // config.ts of A Memory Missing: `tauri ios build` signs with the team key, and
|
|
169
|
+
* // `moku-game native build ios --store --build-number 12 --upload` sends the .ipa to TestFlight.
|
|
170
|
+
* signing: {
|
|
171
|
+
* apple: { teamId: "ABCDE12345", apiKeyId: "ABC123DEF4", apiIssuer: "69a6de7e-1234-47e3-e053-5b8c7c11a4d1", apiKeyPath: "~/keys/AuthKey_ABC123DEF4.p8" }
|
|
172
|
+
* } // on a Mac with the home /Users/anya, tauri runs with APPLE_API_KEY "ABC123DEF4" and APPLE_API_KEY_PATH "/Users/anya/keys/AuthKey_ABC123DEF4.p8"
|
|
173
|
+
* ```
|
|
174
|
+
*/
|
|
159
175
|
apple?: {
|
|
160
|
-
/** The Apple Developer team id. */teamId: string;
|
|
176
|
+
/** The Apple Developer team id. */teamId: string; /** The key id of the App Store Connect key, such as `"ABC123DEF4"`. With the two others. */
|
|
177
|
+
apiKeyId?: string; /** The issuer id of the team in App Store Connect, a UUID. With the two others. */
|
|
178
|
+
apiIssuer?: string;
|
|
179
|
+
/**
|
|
180
|
+
* The `.p8` file of the key: absolute, `~/...` from the home folder, or relative to the game
|
|
181
|
+
* folder. Keep it outside the repo. With the two others.
|
|
182
|
+
*/
|
|
183
|
+
apiKeyPath?: string;
|
|
161
184
|
};
|
|
162
185
|
}; /** What an iOS app adds to its bundle. None by default. */
|
|
163
186
|
ios?: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as HeadlessApp } from "./headless-
|
|
1
|
+
import { Hr as Json, Zr as Snapshot } from "./types-D33h-CNj.mjs";
|
|
2
|
+
import { t as HeadlessApp } from "./headless-rXLWKvZq.mjs";
|
|
3
3
|
import { Log } from "@moku-labs/common/browser";
|
|
4
4
|
|
|
5
5
|
//#region src/plugins/flow/doors/types.d.ts
|