@momoyu-ink/kit 0.4.0 → 0.4.2

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.
@@ -21,7 +21,7 @@ const moyu_1 = require("../moyu");
21
21
  // ---------------------------------------------------------------------------
22
22
  // Skip state — independent valtio proxy (not serialized with game saves)
23
23
  // ---------------------------------------------------------------------------
24
- const SKIP_INTERVAL_MS = 5;
24
+ const SKIP_INTERVAL_MS = 80;
25
25
  const autoRuntime = {
26
26
  defaultTailMs: 0,
27
27
  };
package/dist/lib.d.ts CHANGED
@@ -11,4 +11,5 @@ export * from './commands';
11
11
  export * from './runtime-globals';
12
12
  export * from './components/navigation';
13
13
  export * from './hooks';
14
+ export * from './zod-patch';
14
15
  export { moyu };
package/dist/lib.js CHANGED
@@ -51,3 +51,4 @@ __exportStar(require("./commands"), exports);
51
51
  __exportStar(require("./runtime-globals"), exports);
52
52
  __exportStar(require("./components/navigation"), exports);
53
53
  __exportStar(require("./hooks"), exports);
54
+ __exportStar(require("./zod-patch"), exports);
@@ -21,12 +21,9 @@ const primitives_1 = require("./primitives");
21
21
  shared_1.Globals.assign({
22
22
  createStringInterpolator: shared_1.createStringInterpolator,
23
23
  colors: shared_1.colors,
24
- frameLoop: 'demand',
24
+ frameLoop: 'always',
25
+ requestAnimationFrame: (cb) => requestAnimationFrame(cb),
25
26
  });
26
- // Let r3f drive the frameloop.
27
- setInterval(() => {
28
- shared_1.raf.advance();
29
- }, 10);
30
27
  const host = (0, animated_1.createHost)(primitives_1.primitives, {
31
28
  applyAnimatedValues(instance, props) {
32
29
  instance.updateProps(props);
@@ -0,0 +1,10 @@
1
+ declare module 'zod' {
2
+ interface GlobalMeta {
3
+ title?: string;
4
+ format?: string;
5
+ 'x-asset-kind'?: 'audio' | 'image' | 'font' | 'video' | 'other';
6
+ 'x-i18n'?: Record<string, string>;
7
+ 'x-i18n-desc'?: Record<string, string>;
8
+ }
9
+ }
10
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momoyu-ink/kit",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Software Development Kit of Moyu Visual Novel Engine",
5
5
  "main": "dist/lib.js",
6
6
  "module": "dist/lib.js",