@moku-labs/game 0.15.49 → 0.15.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/page.d.mts +1 -1
- package/dist/app/system.d.mts +3 -3
- package/dist/app.d.mts +3 -3
- package/dist/app.mjs +1 -1
- package/dist/{assets-DIYDAar4.mjs → assets-BRTUagOC.mjs} +108 -74
- package/dist/assets.d.mts +3 -3
- package/dist/assets.mjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/{commands-iR813FBY.d.mts → commands-B4bQrMk7.d.mts} +5 -5
- package/dist/control.d.mts +4 -4
- package/dist/control.mjs +1 -1
- package/dist/{define-Bi1cUDqV.d.mts → define-3weG6IEb.d.mts} +2 -2
- package/dist/{headless-DEvO-OYZ.d.mts → headless-oFoYPHp1.d.mts} +1 -1
- package/dist/{index-Uplq0kG1.d.mts → index-BMnrhJy2.d.mts} +3 -3
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +1 -1
- package/dist/inspect.d.mts +6 -6
- package/dist/jsx-dev-runtime.d.mts +1 -1
- package/dist/jsx-runtime.d.mts +1 -1
- package/dist/{run-8s7kh2QD.mjs → run-3QhrffgM.mjs} +10 -5
- package/dist/{runtime-BnClKG8W.d.mts → runtime-6XmgPNsS.d.mts} +1 -1
- package/dist/{src-D5fX75jk.mjs → src-D7vFymuY.mjs} +14 -4
- package/dist/testing.d.mts +4 -4
- package/dist/testing.mjs +1 -1
- package/dist/{types-CP2LCpoj.d.mts → types-B5tiMe_r.d.mts} +4 -4
- package/dist/{types-D0uITVZD.d.mts → types-BS0JBrBZ.d.mts} +29 -1
- package/dist/{types-65BDgeC1.d.mts → types-CEWtlmPp.d.mts} +2 -2
- package/dist/{types-AIu9QkEJ.d.mts → types-DPliH9lD.d.mts} +2 -2
- package/dist/{types-kKYSP3h-.d.mts → types-OvmeuFbz.d.mts} +1 -1
- package/dist/{visual-BeJuimAt.d.mts → visual-BJ8-LEjY.d.mts} +6 -6
- package/dist/visual.d.mts +1 -1
- package/dist/visual.mjs +1 -1
- package/package.json +1 -1
package/dist/app/page.d.mts
CHANGED
package/dist/app/system.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Pr as PlayerStateProvider } from "../types-
|
|
2
|
-
import { ht as PlatformProvider } from "../index-
|
|
3
|
-
import { _ as SystemShellFactory, g as SystemName, h as SystemModules } from "../types-
|
|
1
|
+
import { Pr as PlayerStateProvider } from "../types-BS0JBrBZ.mjs";
|
|
2
|
+
import { ht as PlatformProvider } from "../index-BMnrhJy2.mjs";
|
|
3
|
+
import { _ as SystemShellFactory, g as SystemName, h as SystemModules } from "../types-B5tiMe_r.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-
|
|
2
|
-
import { U as StringTable } from "./types-
|
|
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-
|
|
1
|
+
import { kr as Json } from "./types-BS0JBrBZ.mjs";
|
|
2
|
+
import { U as StringTable } from "./types-OvmeuFbz.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-B5tiMe_r.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-
|
|
1
|
+
import { Ft as audioPlugin, H as platformPlugin, i as screen, m as flattenFeatures, t as createApp, wt as effectsPlugin } from "./src-D7vFymuY.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
|
|
@@ -5,78 +5,6 @@ import { pathToFileURL } from "node:url";
|
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
import { mkdir, open, readFile, readdir, rm, rmdir, stat, writeFile } from "node:fs/promises";
|
|
7
7
|
import { MaxRectsBin, MaxRectsPacker } from "maxrects-packer";
|
|
8
|
-
/** Bytes per pixel of the decoded images: RGBA, 8 bits each. */
|
|
9
|
-
const CHANNELS = 4;
|
|
10
|
-
/**
|
|
11
|
-
* Copies the rows of one decoded texture into the pixels of a page. A copy, not a blend: the
|
|
12
|
-
* page is transparent everywhere else, so the frame holds exactly the source's pixels.
|
|
13
|
-
*
|
|
14
|
-
* @param page - The RGBA pixels of the page.
|
|
15
|
-
* @param pageWidth - Width of the page.
|
|
16
|
-
* @param part - The texture and its place.
|
|
17
|
-
*/
|
|
18
|
-
function blit(page, pageWidth, part) {
|
|
19
|
-
const { pixels, x, y } = part;
|
|
20
|
-
const rowBytes = pixels.width * CHANNELS;
|
|
21
|
-
for (let row = 0; row < pixels.height; row += 1) {
|
|
22
|
-
const from = row * rowBytes;
|
|
23
|
-
page.set(pixels.data.subarray(from, from + rowBytes), ((y + row) * pageWidth + x) * CHANNELS);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Builds the encoder over the `sharp` factory.
|
|
28
|
-
*
|
|
29
|
-
* @param sharp - The default export of the `sharp` module.
|
|
30
|
-
* @returns The encoder.
|
|
31
|
-
*/
|
|
32
|
-
function encoderOf(sharp) {
|
|
33
|
-
const webpOptions = {
|
|
34
|
-
quality: 80,
|
|
35
|
-
alphaQuality: 80
|
|
36
|
-
};
|
|
37
|
-
return {
|
|
38
|
-
version: sharp.versions.sharp ?? "unknown",
|
|
39
|
-
decode: async (bytes) => {
|
|
40
|
-
const { data, info } = await sharp(bytes).toColourspace("srgb").ensureAlpha().raw().toBuffer({ resolveWithObject: true });
|
|
41
|
-
return {
|
|
42
|
-
width: info.width,
|
|
43
|
-
height: info.height,
|
|
44
|
-
data: new Uint8Array(data)
|
|
45
|
-
};
|
|
46
|
-
},
|
|
47
|
-
page: async (width, height, parts) => {
|
|
48
|
-
const pixels = new Uint8Array(width * height * CHANNELS);
|
|
49
|
-
for (const part of parts) blit(pixels, width, part);
|
|
50
|
-
const encoded = await sharp(pixels, { raw: {
|
|
51
|
-
width,
|
|
52
|
-
height,
|
|
53
|
-
channels: CHANNELS
|
|
54
|
-
} }).webp(webpOptions).toBuffer();
|
|
55
|
-
return new Uint8Array(encoded);
|
|
56
|
-
},
|
|
57
|
-
webp: async (bytes) => new Uint8Array(await sharp(bytes).webp(webpOptions).toBuffer())
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Loads `sharp` and builds the encoder. `sharp` is an optional peer dependency of the engine,
|
|
62
|
-
* so a game installs it for its pack command only.
|
|
63
|
-
*
|
|
64
|
-
* @returns The encoder.
|
|
65
|
-
* @throws {Error} When `sharp` is not installed, with the command that installs it.
|
|
66
|
-
* @example
|
|
67
|
-
* ```ts
|
|
68
|
-
* const encoder = await loadEncoder();
|
|
69
|
-
* encoder.version; // the installed sharp version, such as "0.34.5"
|
|
70
|
-
* ```
|
|
71
|
-
*/
|
|
72
|
-
async function loadEncoder() {
|
|
73
|
-
try {
|
|
74
|
-
return encoderOf((await import("sharp")).default);
|
|
75
|
-
} catch (error) {
|
|
76
|
-
throw new Error("[game] assets: \"--pack\" needs sharp.\n Run \"bun add -d sharp\".", { cause: error });
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
//#endregion
|
|
80
8
|
//#region src/plugins/assets/scan/pack/layout.ts
|
|
81
9
|
/**
|
|
82
10
|
* @file assets packer, build time — where each texture of an atlas group lies on its pages. Pure
|
|
@@ -176,6 +104,111 @@ function layoutGroup(bundle, group, members) {
|
|
|
176
104
|
problems
|
|
177
105
|
};
|
|
178
106
|
}
|
|
107
|
+
/** Bytes per pixel of the decoded images: RGBA, 8 bits each. */
|
|
108
|
+
const CHANNELS = 4;
|
|
109
|
+
/**
|
|
110
|
+
* Copies the rows of one decoded texture into the pixels of a page, then its edge pixels `EXTRUDE` out into the
|
|
111
|
+
* padding around it (F105): a frame drawn at a fractional place samples its own edge there, not the page's clear
|
|
112
|
+
* padding. A copy, not a blend; a pixel outside the page is skipped.
|
|
113
|
+
*
|
|
114
|
+
* @param page - The RGBA pixels of the page.
|
|
115
|
+
* @param size - Width and height of the page.
|
|
116
|
+
* @param size.width - Width of the page.
|
|
117
|
+
* @param size.height - Height of the page.
|
|
118
|
+
* @param part - The texture and its place.
|
|
119
|
+
*/
|
|
120
|
+
function blit(page, size, part) {
|
|
121
|
+
const { pixels, x, y } = part;
|
|
122
|
+
const rowBytes = pixels.width * CHANNELS;
|
|
123
|
+
for (let row = 0; row < pixels.height; row += 1) {
|
|
124
|
+
const from = row * rowBytes;
|
|
125
|
+
page.set(pixels.data.subarray(from, from + rowBytes), ((y + row) * size.width + x) * CHANNELS);
|
|
126
|
+
}
|
|
127
|
+
if (pixels.width === 0 || pixels.height === 0) return;
|
|
128
|
+
for (let row = y - 1; row < y + pixels.height + 1; row += 1) {
|
|
129
|
+
if (row < 0 || row >= size.height) continue;
|
|
130
|
+
const inner = row >= y && row < y + pixels.height;
|
|
131
|
+
for (let column = x - 1; column < x + pixels.width + 1; column += 1) {
|
|
132
|
+
if (column < 0 || column >= size.width) continue;
|
|
133
|
+
if (inner && column >= x && column < x + pixels.width) continue;
|
|
134
|
+
const sourceX = Math.min(Math.max(column - x, 0), pixels.width - 1);
|
|
135
|
+
const from = (Math.min(Math.max(row - y, 0), pixels.height - 1) * pixels.width + sourceX) * CHANNELS;
|
|
136
|
+
page.set(pixels.data.subarray(from, from + CHANNELS), (row * size.width + column) * CHANNELS);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Composes a page: a transparent page with every texture copied onto its place and its edges extruded. Pure.
|
|
142
|
+
*
|
|
143
|
+
* @param width - Width of the page.
|
|
144
|
+
* @param height - Height of the page.
|
|
145
|
+
* @param parts - The textures and their places.
|
|
146
|
+
* @returns The RGBA pixels of the page.
|
|
147
|
+
* @example
|
|
148
|
+
* ```ts
|
|
149
|
+
* // One opaque 1×1 pixel at (1, 1) of a 3×3 page: its colour fills the whole page.
|
|
150
|
+
* composePage(3, 3, [{ pixels: { width: 1, height: 1, data: Uint8Array.of(255, 0, 0, 255) }, x: 1, y: 1 }])[3]; // 255
|
|
151
|
+
* ```
|
|
152
|
+
*/
|
|
153
|
+
function composePage(width, height, parts) {
|
|
154
|
+
const pixels = new Uint8Array(width * height * CHANNELS);
|
|
155
|
+
for (const part of parts) blit(pixels, {
|
|
156
|
+
width,
|
|
157
|
+
height
|
|
158
|
+
}, part);
|
|
159
|
+
return pixels;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Builds the encoder over the `sharp` factory.
|
|
163
|
+
*
|
|
164
|
+
* @param sharp - The default export of the `sharp` module.
|
|
165
|
+
* @returns The encoder.
|
|
166
|
+
*/
|
|
167
|
+
function encoderOf(sharp) {
|
|
168
|
+
const webpOptions = {
|
|
169
|
+
quality: 80,
|
|
170
|
+
alphaQuality: 80
|
|
171
|
+
};
|
|
172
|
+
return {
|
|
173
|
+
version: sharp.versions.sharp ?? "unknown",
|
|
174
|
+
decode: async (bytes) => {
|
|
175
|
+
const { data, info } = await sharp(bytes).toColourspace("srgb").ensureAlpha().raw().toBuffer({ resolveWithObject: true });
|
|
176
|
+
return {
|
|
177
|
+
width: info.width,
|
|
178
|
+
height: info.height,
|
|
179
|
+
data: new Uint8Array(data)
|
|
180
|
+
};
|
|
181
|
+
},
|
|
182
|
+
page: async (width, height, parts) => {
|
|
183
|
+
const encoded = await sharp(composePage(width, height, parts), { raw: {
|
|
184
|
+
width,
|
|
185
|
+
height,
|
|
186
|
+
channels: CHANNELS
|
|
187
|
+
} }).webp(webpOptions).toBuffer();
|
|
188
|
+
return new Uint8Array(encoded);
|
|
189
|
+
},
|
|
190
|
+
webp: async (bytes) => new Uint8Array(await sharp(bytes).webp(webpOptions).toBuffer())
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Loads `sharp` and builds the encoder. `sharp` is an optional peer dependency of the engine,
|
|
195
|
+
* so a game installs it for its pack command only.
|
|
196
|
+
*
|
|
197
|
+
* @returns The encoder.
|
|
198
|
+
* @throws {Error} When `sharp` is not installed, with the command that installs it.
|
|
199
|
+
* @example
|
|
200
|
+
* ```ts
|
|
201
|
+
* const encoder = await loadEncoder();
|
|
202
|
+
* encoder.version; // the installed sharp version, such as "0.34.5"
|
|
203
|
+
* ```
|
|
204
|
+
*/
|
|
205
|
+
async function loadEncoder() {
|
|
206
|
+
try {
|
|
207
|
+
return encoderOf((await import("sharp")).default);
|
|
208
|
+
} catch (error) {
|
|
209
|
+
throw new Error("[game] assets: \"--pack\" needs sharp.\n Run \"bun add -d sharp\".", { cause: error });
|
|
210
|
+
}
|
|
211
|
+
}
|
|
179
212
|
//#endregion
|
|
180
213
|
//#region src/plugins/assets/scan/pack/cache.ts
|
|
181
214
|
/**
|
|
@@ -242,6 +275,7 @@ function cacheKey(input) {
|
|
|
242
275
|
page: PAGE_SIZE,
|
|
243
276
|
border: 2,
|
|
244
277
|
padding: 2,
|
|
278
|
+
extrude: 1,
|
|
245
279
|
quality: 80,
|
|
246
280
|
alphaQuality: 80,
|
|
247
281
|
members
|
|
@@ -1698,8 +1732,8 @@ function countLoose(bundles) {
|
|
|
1698
1732
|
}
|
|
1699
1733
|
/**
|
|
1700
1734
|
* Packs the art of a game for production: per bundle, the textures of the `fx` group and of the
|
|
1701
|
-
* `main` group go onto WebP atlas pages (2048 px at most, 2 px padding and border
|
|
1702
|
-
* or rotated), a texture with a side above 512 px and a group of one stay loose files, fonts and
|
|
1735
|
+
* `main` group go onto WebP atlas pages (2048 px at most, 2 px padding and border with each frame's
|
|
1736
|
+
* edge extruded 1 px into it, never trimmed or rotated), a texture with a side above 512 px and a group of one stay loose files, fonts and
|
|
1703
1737
|
* sounds are copied, every file name carries the hash of its bytes, and the packed manifest
|
|
1704
1738
|
* (version 2) names it all. Nothing is written while a problem is open; afterwards the pack folder
|
|
1705
1739
|
* holds exactly what the manifest references, plus `manifest.json`. Two runs on the same tree and
|
package/dist/assets.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as Manifest } from "./types-
|
|
1
|
+
import { d as Manifest } from "./types-BS0JBrBZ.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/assets/scan/cli.d.ts
|
|
4
4
|
/**
|
|
@@ -358,8 +358,8 @@ type PackResult = {
|
|
|
358
358
|
};
|
|
359
359
|
/**
|
|
360
360
|
* Packs the art of a game for production: per bundle, the textures of the `fx` group and of the
|
|
361
|
-
* `main` group go onto WebP atlas pages (2048 px at most, 2 px padding and border
|
|
362
|
-
* or rotated), a texture with a side above 512 px and a group of one stay loose files, fonts and
|
|
361
|
+
* `main` group go onto WebP atlas pages (2048 px at most, 2 px padding and border with each frame's
|
|
362
|
+
* edge extruded 1 px into it, never trimmed or rotated), a texture with a side above 512 px and a group of one stay loose files, fonts and
|
|
363
363
|
* sounds are copied, every file name carries the hash of its bytes, and the packed manifest
|
|
364
364
|
* (version 2) names it all. Nothing is written while a problem is open; afterwards the pack folder
|
|
365
365
|
* holds exactly what the manifest references, plus `manifest.json`. Two runs on the same tree and
|
package/dist/assets.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as runCli, c as emitKeys, i as compileStrings, l as emitManifest, n as importStrings, o as scanAssets, r as checkStrings, s as packAssets, t as exportStrings } from "./assets-
|
|
1
|
+
import { a as runCli, c as emitKeys, i as compileStrings, l as emitManifest, n as importStrings, o as scanAssets, r as checkStrings, s as packAssets, t as exportStrings } from "./assets-BRTUagOC.mjs";
|
|
2
2
|
export { checkStrings, compileStrings, emitKeys, emitManifest, exportStrings, importStrings, packAssets, runCli, scanAssets };
|
package/dist/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as resolveConfig } from "./config-B87aFTW-.mjs";
|
|
2
2
|
import { t as findFeatureOwners } from "./features-DowEilZm.mjs";
|
|
3
3
|
import { r as watchTree, t as createBatcher, x as isSkippedFolder$1 } from "./watch-BSgptowj.mjs";
|
|
4
|
-
import { a as runCli$1, i as compileStrings, n as importStrings, t as exportStrings } from "./assets-
|
|
4
|
+
import { a as runCli$1, i as compileStrings, n as importStrings, t as exportStrings } from "./assets-BRTUagOC.mjs";
|
|
5
5
|
import { constants, copyFileSync, existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, rmSync, statSync, watch, writeFileSync } from "node:fs";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import { createBrandConsole } from "@moku-labs/common/cli";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Br as StoreApi, D as DebugSwitches, Rr as Snapshot, Ur as Api, Y as Api$1, Zr as FrameRate, ir as Bookmark, nn as Api$2, ot as Captured, sr as FlowState, ti as Time, w as ScenesApi } from "./types-
|
|
2
|
-
import { P as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-
|
|
3
|
-
import { N as InputApi } from "./types-
|
|
4
|
-
import { t as HeadlessApp } from "./headless-
|
|
5
|
-
import { n as Command, r as ControlApp } from "./types-
|
|
1
|
+
import { Br as StoreApi, D as DebugSwitches, Rr as Snapshot, Ur as Api, Y as Api$1, Zr as FrameRate, ir as Bookmark, nn as Api$2, ot as Captured, sr as FlowState, ti as Time, w as ScenesApi } from "./types-BS0JBrBZ.mjs";
|
|
2
|
+
import { P as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-CEWtlmPp.mjs";
|
|
3
|
+
import { N as InputApi } from "./types-OvmeuFbz.mjs";
|
|
4
|
+
import { t as HeadlessApp } from "./headless-oFoYPHp1.mjs";
|
|
5
|
+
import { n as Command, r as ControlApp } from "./types-DPliH9lD.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/plugins/flow/doors/commands.d.ts
|
|
8
8
|
/**
|
package/dist/control.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as HeadlessApp } from "./headless-
|
|
2
|
-
import { i as InputArguments, n as Command, o as InputSchema, s as Ran } from "./types-
|
|
3
|
-
import { t as commands } from "./commands-
|
|
4
|
-
import { t as defineCommand } from "./define-
|
|
1
|
+
import { t as HeadlessApp } from "./headless-oFoYPHp1.mjs";
|
|
2
|
+
import { i as InputArguments, n as Command, o as InputSchema, s as Ran } from "./types-DPliH9lD.mjs";
|
|
3
|
+
import { t as commands } from "./commands-B4bQrMk7.mjs";
|
|
4
|
+
import { t as defineCommand } from "./define-3weG6IEb.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/plugins/flow/doors/dev.d.ts
|
|
7
7
|
/**
|
package/dist/control.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { n as controlRefused, t as controlReadOnly } from "./dev-BNndV-hU.mjs";
|
|
2
2
|
import { s as defineCommand } from "./session-DuZfGZWk.mjs";
|
|
3
|
-
import { n as commands, t as run } from "./run-
|
|
3
|
+
import { n as commands, t as run } from "./run-3QhrffgM.mjs";
|
|
4
4
|
export { commands, controlReadOnly, controlRefused, defineCommand, run };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as HeadlessApp } from "./headless-
|
|
2
|
-
import { c as Source, n as Command, o as InputSchema } from "./types-
|
|
1
|
+
import { t as HeadlessApp } from "./headless-oFoYPHp1.mjs";
|
|
2
|
+
import { c as Source, n as Command, o as InputSchema } from "./types-DPliH9lD.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/flow/doors/define.d.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Hr as RngState, Rn as Api$1, Yr as Api, cr as JournalEntry, kr as Json, sr as FlowState, ur as RouteStep, yr as Answer } from "./types-
|
|
1
|
+
import { Hr as RngState, Rn as Api$1, Yr as Api, cr as JournalEntry, kr as Json, sr as FlowState, ur as RouteStep, yr as Answer } from "./types-BS0JBrBZ.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 Config$3, Br as StoreApi, C as SceneSpec, Cn as TagType, Dn as Ease, Dr as Config$5, Dt as PassKind, En as DescriptionNode, F as NineSliceValue, Gn as State$3, Gr as Events, Hn as GameTypes, K as TransformValue, Kn as TextStylesOf, Kr as PauseReason, L as OverlayValue, Mn as ProjectionMotion, N as HudPartValue, Nn as ProjectionSpec, Nr as Patch, Pn as ReducedMotion, Qr as RateChange, Rn as Api$2, S as SceneDefinition, Sn as SystemFor, Sr as Config$2, T as State$7, U as SpriteOptions, Un as HudKeysOf, Ur as Api$3, Vn as EmitterIdOf, Vr as RngApi, W as SpriteValue, Wr as Config$4, X as Config$6, Xr as Config$8, Y as Api$4, Yn as defineFlow, Yr as Api$5, _ as AnySceneProjection, _n as Mut, _r as Hint, _t as FrameRing, a as Config$1, ai as Require, an as State$9, ar as DefineNode, bn as ResourceType, br as Api$1, c as LoadBundles, dr as SceneIdOf, dt as ViewportSize, ei as ThermalReading, er as FeatureDescription, f as ReadyBundles, fn as ComponentType, gr as GuideOptions, gt as FrameRecord, hr as EffectOptions, i as BundleSpec, ii as Events$1, jn as NumericFields, jr as State$5, kr as Json, l as LoadReason, m as Tier, mr as Effect, nn as Api$6, nr as FeatureTree, o as DefineBundles, p as State$1, pn as ComponentValue, pr as Descriptor, q as sprite, qr as State$4, r as BundleMap, ri as Config$10, rn as Config$9, rt as State$6, t as Api, tr as FeaturePlugin, u as LoadResult, un as ComponentHandle, v as Config$7, vn as Narrowed, w as ScenesApi, wr as State$2, x as LayerMap, xn as SystemDefinition, y as DefineScene, yn as QueryTerm, yr as Answer, zn as BundlesOf } from "./types-
|
|
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 { 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-
|
|
1
|
+
import { $r as State$8, Ar as Root, B as ShapeValue, Bn as Config$3, Br as StoreApi, C as SceneSpec, Cn as TagType, Dn as Ease, Dr as Config$5, Dt as PassKind, En as DescriptionNode, F as NineSliceValue, Gn as State$3, Gr as Events, Hn as GameTypes, K as TransformValue, Kn as TextStylesOf, Kr as PauseReason, L as OverlayValue, Mn as ProjectionMotion, N as HudPartValue, Nn as ProjectionSpec, Nr as Patch, Pn as ReducedMotion, Qr as RateChange, Rn as Api$2, S as SceneDefinition, Sn as SystemFor, Sr as Config$2, T as State$7, U as SpriteOptions, Un as HudKeysOf, Ur as Api$3, Vn as EmitterIdOf, Vr as RngApi, W as SpriteValue, Wr as Config$4, X as Config$6, Xr as Config$8, Y as Api$4, Yn as defineFlow, Yr as Api$5, _ as AnySceneProjection, _n as Mut, _r as Hint, _t as FrameRing, a as Config$1, ai as Require, an as State$9, ar as DefineNode, bn as ResourceType, br as Api$1, c as LoadBundles, dr as SceneIdOf, dt as ViewportSize, ei as ThermalReading, er as FeatureDescription, f as ReadyBundles, fn as ComponentType, gr as GuideOptions, gt as FrameRecord, hr as EffectOptions, i as BundleSpec, ii as Events$1, jn as NumericFields, jr as State$5, kr as Json, l as LoadReason, m as Tier, mr as Effect, nn as Api$6, nr as FeatureTree, o as DefineBundles, p as State$1, pn as ComponentValue, pr as Descriptor, q as sprite, qr as State$4, r as BundleMap, ri as Config$10, rn as Config$9, rt as State$6, t as Api, tr as FeaturePlugin, u as LoadResult, un as ComponentHandle, v as Config$7, vn as Narrowed, w as ScenesApi, wr as State$2, x as LayerMap, xn as SystemDefinition, y as DefineScene, yn as QueryTerm, yr as Answer, zn as BundlesOf } from "./types-BS0JBrBZ.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-CEWtlmPp.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-OvmeuFbz.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 { $n as type, $t as ShaderWhat, At as PerfChange, Bt as PerfLongFrameLine, Ct as PERF_CAUSES, Dt as PassKind, E as types_d_exports$13, En as DescriptionNode, 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, Jn as contribution, 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, Qn as to, Qt as ShaderEventDetail, R as Parent, 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, Xn as exit, Xt as ProblemRule, Yt as ProblemEventDetail, Z as MonitorConfig, Zn as slot, Zt as SHADER_WHATS, _t as FrameRing, at as types_d_exports$12, bt as MonitorSections, en as WarmDetail, g as types_d_exports$1, gt as FrameRecord, ht as FrameReadout, j as Display, jt as PerfChangeEntry, kt as PerfCause, mt as FrameReadResult, ni as types_d_exports$15, nt as PoolTrim, on as types_d_exports$17, pt as FrameColumns, q as sprite, qn as types_d_exports$6, qt as PerfThermalLine, st as MonitorCounts, tn as DEMAND_REASONS, vt as LongFrameEntry, wn as AnchorTarget, wt as PERF_GAP_BUCKETS, xt as OverlayEventDetail, yt as MONITOR_SECTIONS, z as Shape, zt as PerfLogLine } from "./types-
|
|
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 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-
|
|
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-
|
|
1
|
+
import { $n as type, $t as ShaderWhat, At as PerfChange, Bt as PerfLongFrameLine, Ct as PERF_CAUSES, Dt as PassKind, E as types_d_exports$13, En as DescriptionNode, 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, Jn as contribution, 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, Qn as to, Qt as ShaderEventDetail, R as Parent, 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, Xn as exit, Xt as ProblemRule, Yt as ProblemEventDetail, Z as MonitorConfig, Zn as slot, Zt as SHADER_WHATS, _t as FrameRing, at as types_d_exports$12, bt as MonitorSections, en as WarmDetail, g as types_d_exports$1, gt as FrameRecord, ht as FrameReadout, j as Display, jt as PerfChangeEntry, kt as PerfCause, mt as FrameReadResult, ni as types_d_exports$15, nt as PoolTrim, on as types_d_exports$17, pt as FrameColumns, q as sprite, qn as types_d_exports$6, qt as PerfThermalLine, st as MonitorCounts, tn as DEMAND_REASONS, vt as LongFrameEntry, wn as AnchorTarget, wt as PERF_GAP_BUCKETS, xt as OverlayEventDetail, yt as MONITOR_SECTIONS, z as Shape, zt as PerfLogLine } from "./types-BS0JBrBZ.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-CEWtlmPp.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-OvmeuFbz.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-BMnrhJy2.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-
|
|
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-D7vFymuY.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 };
|
package/dist/inspect.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Er as Api, Rr as Snapshot, Wn as Position, Y as Api$2, cr as JournalEntry, ct as RenderStats, dn as ComponentSchema, gn as FrameDiff, h as Usage, hn as EntitySnapshot, in as Explained, it as Under, nn as Api$1, or as FlowGraph, t as Api$3 } from "./types-
|
|
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 InputOf, c as Source, i as InputArguments, l as WatchApp, o as InputSchema, t as CheatEntry, u as WatchInput } from "./types-
|
|
6
|
-
import { n as defineSource } from "./define-
|
|
1
|
+
import { Er as Api, Rr as Snapshot, Wn as Position, Y as Api$2, cr as JournalEntry, ct as RenderStats, dn as ComponentSchema, gn as FrameDiff, h as Usage, hn as EntitySnapshot, in as Explained, it as Under, nn as Api$1, or as FlowGraph, t as Api$3 } from "./types-BS0JBrBZ.mjs";
|
|
2
|
+
import { a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-CEWtlmPp.mjs";
|
|
3
|
+
import { c as UiNode } from "./types-OvmeuFbz.mjs";
|
|
4
|
+
import { t as HeadlessApp } from "./headless-oFoYPHp1.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-DPliH9lD.mjs";
|
|
6
|
+
import { n as defineSource } from "./define-3weG6IEb.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-
|
|
1
|
+
import { a as jsxs, i as jsxDEV, n as JSX, r as jsx, t as Fragment } from "./runtime-6XmgPNsS.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-6XmgPNsS.mjs";
|
|
2
2
|
export { Fragment, type JSX, jsx, jsxs };
|
|
@@ -408,18 +408,23 @@ function readRest(value) {
|
|
|
408
408
|
};
|
|
409
409
|
}
|
|
410
410
|
/**
|
|
411
|
-
* Reads the optional fields of a bookmark onto it: the `scene` the `game.bookmark` door added
|
|
412
|
-
*
|
|
411
|
+
* Reads the optional fields of a bookmark onto it: the `scene` the `game.bookmark` door added, the
|
|
412
|
+
* `rest` point of a bookmark taken at a transit node and the schema `version` of its trees. An
|
|
413
|
+
* absent field leaves no key.
|
|
413
414
|
*
|
|
414
415
|
* @param value - The JSON object of the bookmark.
|
|
415
416
|
* @param bookmark - The bookmark with its required fields.
|
|
416
417
|
* @returns The bookmark with its scene and its rest point.
|
|
417
|
-
* @throws {Error} When the scene
|
|
418
|
+
* @throws {Error} When the scene, the rest point or the version has the wrong shape.
|
|
418
419
|
*/
|
|
419
420
|
function readBookmarkOptions(value, bookmark) {
|
|
420
|
-
const { scene, rest } = value;
|
|
421
|
-
|
|
421
|
+
const { scene, rest, version } = value;
|
|
422
|
+
const sceneIsMalformed = scene !== void 0 && typeof scene !== "string";
|
|
423
|
+
const versionIsMalformed = version !== void 0 && !Number.isInteger(version);
|
|
424
|
+
if (sceneIsMalformed) throw invalidBookmark();
|
|
422
425
|
if (scene !== void 0) bookmark.scene = scene;
|
|
426
|
+
if (versionIsMalformed) throw invalidBookmark();
|
|
427
|
+
if (typeof version === "number") bookmark.version = version;
|
|
423
428
|
if (rest !== void 0) {
|
|
424
429
|
const point = readRest(rest);
|
|
425
430
|
if (point === void 0) throw invalidBookmark();
|
|
@@ -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-OvmeuFbz.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. */
|
|
@@ -2792,10 +2792,16 @@ function createStoreApi(ctx, deps) {
|
|
|
2792
2792
|
};
|
|
2793
2793
|
const restore = (input) => {
|
|
2794
2794
|
if (store.transaction) throw new Error("[game] restore() was called while a model transaction is open.\n Commit or discard the transaction first.");
|
|
2795
|
-
|
|
2795
|
+
const trees = {
|
|
2796
2796
|
player: structuredClone(input.player),
|
|
2797
|
-
rng:
|
|
2797
|
+
rng: structuredClone(input.rng ?? store.doc.rng)
|
|
2798
|
+
};
|
|
2799
|
+
const version = input.version ?? ctx.config.schemaVersion;
|
|
2800
|
+
const doc = version === ctx.config.schemaVersion ? trees : documentOfSave({
|
|
2801
|
+
state: trees,
|
|
2802
|
+
version
|
|
2798
2803
|
});
|
|
2804
|
+
store.doc = deepFreeze$1(doc);
|
|
2799
2805
|
if (input.session !== void 0) store.session = deepFreeze$1(structuredClone(input.session));
|
|
2800
2806
|
store.restPoint = {
|
|
2801
2807
|
doc: store.doc,
|
|
@@ -2811,6 +2817,7 @@ function createStoreApi(ctx, deps) {
|
|
|
2811
2817
|
fail("flush", error);
|
|
2812
2818
|
}
|
|
2813
2819
|
};
|
|
2820
|
+
const schemaVersion = () => ctx.config.schemaVersion;
|
|
2814
2821
|
return {
|
|
2815
2822
|
load,
|
|
2816
2823
|
snapshot,
|
|
@@ -2819,7 +2826,8 @@ function createStoreApi(ctx, deps) {
|
|
|
2819
2826
|
markBarrier,
|
|
2820
2827
|
rollback,
|
|
2821
2828
|
restore,
|
|
2822
|
-
flush
|
|
2829
|
+
flush,
|
|
2830
|
+
schemaVersion
|
|
2823
2831
|
};
|
|
2824
2832
|
}
|
|
2825
2833
|
/**
|
|
@@ -6017,7 +6025,8 @@ function enterBookmark(ctx, modules, bookmark, safe) {
|
|
|
6017
6025
|
ctx.deps.model.store.restore({
|
|
6018
6026
|
player: bookmark.player,
|
|
6019
6027
|
session: bookmark.session,
|
|
6020
|
-
rng: bookmark.rng
|
|
6028
|
+
rng: bookmark.rng,
|
|
6029
|
+
...bookmark.version === void 0 ? {} : { version: bookmark.version }
|
|
6021
6030
|
});
|
|
6022
6031
|
ctx.deps.model.store.markRest();
|
|
6023
6032
|
state.stack = framesOf(location.trail, bookmark.input);
|
|
@@ -6616,6 +6625,7 @@ function makeBookmark(ctx, modules) {
|
|
|
6616
6625
|
streams: { ...snapshot.rng.streams }
|
|
6617
6626
|
},
|
|
6618
6627
|
graph: graphHash(graphOf(ctx, modules.features)),
|
|
6628
|
+
version: ctx.deps.model.store.schemaVersion(),
|
|
6619
6629
|
...rest === void 0 ? {} : { rest }
|
|
6620
6630
|
};
|
|
6621
6631
|
}
|
package/dist/testing.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Cr as FakeClock, _r as Hint, kr as Json, lr as NodeTable, pr as Descriptor, rr as AnyFlow, tr as FeaturePlugin, vr as NodeFx, xr as ClockSource } from "./types-
|
|
2
|
-
import { t as createApp } from "./index-
|
|
3
|
-
import { b as saveOf, v as WithGameState, y as memory } 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 { Cr as FakeClock, _r as Hint, kr as Json, lr as NodeTable, pr as Descriptor, rr as AnyFlow, tr as FeaturePlugin, vr as NodeFx, xr as ClockSource } from "./types-BS0JBrBZ.mjs";
|
|
2
|
+
import { t as createApp } from "./index-BMnrhJy2.mjs";
|
|
3
|
+
import { b as saveOf, v as WithGameState, y as memory } from "./types-B5tiMe_r.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-oFoYPHp1.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-
|
|
1
|
+
import { an as type, en as refuseStart, m as flattenFeatures, nn as exit, t as createApp } from "./src-D7vFymuY.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,7 +1,7 @@
|
|
|
1
|
-
import { $ as PixiModule, Bn as Config$1, 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, fr as TypeTag, kr as Json, lt as Orientation, n as AssetsIo, rr as AnyFlow, tr as FeaturePlugin, xr as ClockSource, zr as SnapshotOf } from "./types-
|
|
2
|
-
import { o as AudioContextLike, s as Config$4 } from "./types-
|
|
3
|
-
import { R as I18nApi, U as StringTable, W as TextKey } from "./types-
|
|
4
|
-
import { St as effectsPlugin, Tt as audioPlugin, ht as PlatformProvider, i as screen, pt as platformPlugin, t as createApp } from "./index-
|
|
1
|
+
import { $ as PixiModule, Bn as Config$1, 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, fr as TypeTag, kr as Json, lt as Orientation, n as AssetsIo, rr as AnyFlow, tr as FeaturePlugin, xr as ClockSource, zr as SnapshotOf } from "./types-BS0JBrBZ.mjs";
|
|
2
|
+
import { o as AudioContextLike, s as Config$4 } from "./types-CEWtlmPp.mjs";
|
|
3
|
+
import { R as I18nApi, U as StringTable, W as TextKey } from "./types-OvmeuFbz.mjs";
|
|
4
|
+
import { St as effectsPlugin, Tt as audioPlugin, ht as PlatformProvider, i as screen, pt as platformPlugin, t as createApp } from "./index-BMnrhJy2.mjs";
|
|
5
5
|
import { AnyPluginInstance } from "@moku-labs/core";
|
|
6
6
|
|
|
7
7
|
//#region src/plugins/model/store/providers/memory.d.ts
|
|
@@ -1485,12 +1485,22 @@ type StoreApi = {
|
|
|
1485
1485
|
* @param input.player - The player tree.
|
|
1486
1486
|
* @param input.session - The session tree. Omitted: the current one stays.
|
|
1487
1487
|
* @param input.rng - The rng branch. Omitted: the current one stays.
|
|
1488
|
+
* @param input.version - The schema version `player` and `rng` were written at (a bookmark's
|
|
1489
|
+
* `version`). An older one runs through the migration chain first, as a stored save does on
|
|
1490
|
+
* `load()`. Omitted: they are taken as the current version.
|
|
1488
1491
|
* @throws {Error} When a transaction is open.
|
|
1492
|
+
* @throws {SaveUnreadableError} When the version is newer than this build, a step is missing or
|
|
1493
|
+
* a step throws; the state stays as it was.
|
|
1489
1494
|
* @example
|
|
1490
1495
|
* ```ts
|
|
1491
1496
|
* // The flow runner enters a bookmark: the trees first, then the rest point, then the node.
|
|
1492
1497
|
* // A game calls app.flow.restore(bookmark), which does all three.
|
|
1493
|
-
* store.restore({
|
|
1498
|
+
* store.restore({
|
|
1499
|
+
* player: bookmark.player,
|
|
1500
|
+
* session: bookmark.session,
|
|
1501
|
+
* rng: bookmark.rng,
|
|
1502
|
+
* version: bookmark.version // an older one migrates first
|
|
1503
|
+
* });
|
|
1494
1504
|
* store.markRest();
|
|
1495
1505
|
* ```
|
|
1496
1506
|
*/
|
|
@@ -1498,7 +1508,19 @@ type StoreApi = {
|
|
|
1498
1508
|
player: Json;
|
|
1499
1509
|
session?: Json;
|
|
1500
1510
|
rng?: RngState;
|
|
1511
|
+
version?: number;
|
|
1501
1512
|
}): void;
|
|
1513
|
+
/**
|
|
1514
|
+
* The schema version this build writes, `config.schemaVersion`: the version of the trees
|
|
1515
|
+
* `snapshot()` returns. A bookmark keeps it, so a restore after the schema changed migrates.
|
|
1516
|
+
*
|
|
1517
|
+
* @returns The version.
|
|
1518
|
+
* @example
|
|
1519
|
+
* ```ts
|
|
1520
|
+
* app.model.store.schemaVersion(); // 2 in a game on schemaVersion 2
|
|
1521
|
+
* ```
|
|
1522
|
+
*/
|
|
1523
|
+
schemaVersion(): number;
|
|
1502
1524
|
/**
|
|
1503
1525
|
* Asks the provider to write what it has accumulated. The pending patches stay: between two
|
|
1504
1526
|
* rest nodes they are an unfinished transition, and a kill must lose all of it, never half.
|
|
@@ -2993,6 +3015,12 @@ type Bookmark = {
|
|
|
2993
3015
|
path: string;
|
|
2994
3016
|
input: Json;
|
|
2995
3017
|
};
|
|
3018
|
+
/**
|
|
3019
|
+
* The save schema version `player` and `rng` were taken at (`model.store.schemaVersion()`).
|
|
3020
|
+
* `restore` runs the migrations from it when the game's schema moved on since, as a dev reload
|
|
3021
|
+
* after a schema change does. Absent in a bookmark of an older engine: taken as the current one.
|
|
3022
|
+
*/
|
|
3023
|
+
version?: number;
|
|
2996
3024
|
};
|
|
2997
3025
|
/**
|
|
2998
3026
|
* What `onEnter` callbacks learn about the node being entered.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as PixiModule, A as SyncApi, An as MotionHandle, Dn as Ease, Er as Api$6, Fn as TrackOptions, Gr as Events$5, In as TrackSegment, O as FilterSlot, Or as Events$3, Pn as ReducedMotion, Q as PixiFilter, Rn as Api$2, Y as Api$4, Yr as Api$1, ai as Require, b as Events$4, et as PixiSprite, fn as ComponentType, fr as TypeTag, ft as FilterCache, ii as Events$2, jn as NumericFields, k as FilterSlotInputs, kr as Json, ln as AnyComponentValue, mn as Entity, nn as Api$3, pr as Descriptor, s as Events$1, sn as AnyComponent, t as Api$5, tt as PixiTexture, un as ComponentHandle, ut as Point, wn as AnchorTarget } from "./types-
|
|
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-
|
|
1
|
+
import { $ as PixiModule, A as SyncApi, An as MotionHandle, Dn as Ease, Er as Api$6, Fn as TrackOptions, Gr as Events$5, In as TrackSegment, O as FilterSlot, Or as Events$3, Pn as ReducedMotion, Q as PixiFilter, Rn as Api$2, Y as Api$4, Yr as Api$1, ai as Require, b as Events$4, et as PixiSprite, fn as ComponentType, fr as TypeTag, ft as FilterCache, ii as Events$2, jn as NumericFields, k as FilterSlotInputs, kr as Json, ln as AnyComponentValue, mn as Entity, nn as Api$3, pr as Descriptor, s as Events$1, sn as AnyComponent, t as Api$5, tt as PixiTexture, un as ComponentHandle, ut as Point, wn as AnchorTarget } from "./types-BS0JBrBZ.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-OvmeuFbz.mjs";
|
|
3
3
|
import { Log } from "@moku-labs/common/browser";
|
|
4
4
|
import { PluginCtx } from "@moku-labs/core";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Rr as Snapshot, kr as Json } from "./types-
|
|
2
|
-
import { t as HeadlessApp } from "./headless-
|
|
1
|
+
import { Rr as Snapshot, kr as Json } from "./types-BS0JBrBZ.mjs";
|
|
2
|
+
import { t as HeadlessApp } from "./headless-oFoYPHp1.mjs";
|
|
3
3
|
import { Log } from "@moku-labs/common/browser";
|
|
4
4
|
|
|
5
5
|
//#region src/plugins/flow/doors/types.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { An as MotionHandle, Cn as TagType, Dn as Ease, K as TransformValue, Ln as ViewHandle, Mn as ProjectionMotion, On as Motion, Pn as ReducedMotion, Rn as Api$1, Tn as ChangeHook, Y as Api$3, Yr as Api, _r as Hint, ai as Require, br as Api$5, cn as AnyComponentType, dt as ViewportSize, fn as ComponentType, jn as NumericFields, kn as MotionCause, kr as Json, ln as AnyComponentValue, mn as Entity, nn as Api$2, pr as Descriptor, s as Events$1, sn as AnyComponent, t as Api$4, wn as AnchorTarget, yr as Answer } from "./types-
|
|
1
|
+
import { An as MotionHandle, Cn as TagType, Dn as Ease, K as TransformValue, Ln as ViewHandle, Mn as ProjectionMotion, On as Motion, Pn as ReducedMotion, Rn as Api$1, Tn as ChangeHook, Y as Api$3, Yr as Api, _r as Hint, ai as Require, br as Api$5, cn as AnyComponentType, dt as ViewportSize, fn as ComponentType, jn as NumericFields, kn as MotionCause, kr as Json, ln as AnyComponentValue, mn as Entity, nn as Api$2, pr as Descriptor, s as Events$1, sn as AnyComponent, t as Api$4, wn as AnchorTarget, yr as Answer } from "./types-BS0JBrBZ.mjs";
|
|
2
2
|
import { Log } from "@moku-labs/common/browser";
|
|
3
3
|
import { PluginCtx } from "@moku-labs/core";
|
|
4
4
|
import { Node, Yoga } from "yoga-layout/load";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Er as Api$2, Ur as Api$3, Y as Api, br as Api$4, nn as Api$1 } from "./types-
|
|
2
|
-
import { P as AnimApi, r as UiApi } from "./types-
|
|
3
|
-
import { N as InputApi } from "./types-
|
|
4
|
-
import { r as Repro } from "./headless-
|
|
5
|
-
import { a as InputOf, r as ControlApp } from "./types-
|
|
6
|
-
import { t as commands } from "./commands-
|
|
1
|
+
import { Er as Api$2, Ur as Api$3, Y as Api, br as Api$4, nn as Api$1 } from "./types-BS0JBrBZ.mjs";
|
|
2
|
+
import { P as AnimApi, r as UiApi } from "./types-CEWtlmPp.mjs";
|
|
3
|
+
import { N as InputApi } from "./types-OvmeuFbz.mjs";
|
|
4
|
+
import { r as Repro } from "./headless-oFoYPHp1.mjs";
|
|
5
|
+
import { a as InputOf, r as ControlApp } from "./types-DPliH9lD.mjs";
|
|
6
|
+
import { t as commands } from "./commands-B4bQrMk7.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-
|
|
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-BJ8-LEjY.mjs";
|
|
2
2
|
export { type CheckpointResult, type VisualApp, type VisualOptions, type VisualPage, type VisualRenderer, type VisualReport, type VisualSetup, type VisualStart, type VisualStep, type VisualTest, type VisualTestResult, type VisualTolerance, defineVisualTest, parseVisualArgv, runVisualTests };
|
package/dist/visual.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as VISUAL_CLOCK } from "./fake-hnJcJeYf.mjs";
|
|
2
2
|
import { n as read, t as sources } from "./sources-Cjrzga6S.mjs";
|
|
3
|
-
import { n as commands, t as run } from "./run-
|
|
3
|
+
import { n as commands, t as run } from "./run-3QhrffgM.mjs";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { createBrandConsole } from "@moku-labs/common/cli";
|
|
6
6
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|