@momoyu-ink/kit 0.6.1 → 0.7.1
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/{jsx-dev-runtime-CFlTWFj5.d.mts → jsx-dev-runtime-CKclO27C.d.mts} +13 -1
- package/dist/{jsx-dev-runtime-CFlTWFj5.d.ts → jsx-dev-runtime-CKclO27C.d.ts} +13 -1
- package/dist/jsx-dev-runtime.d.mts +1 -1
- package/dist/jsx-dev-runtime.d.ts +1 -1
- package/dist/jsx-runtime.d.mts +1 -1
- package/dist/jsx-runtime.d.ts +1 -1
- package/dist/lib.cjs +496 -82
- package/dist/lib.d.mts +49 -9
- package/dist/lib.d.ts +49 -9
- package/dist/lib.mjs +504 -82
- package/package.json +1 -1
|
@@ -50,10 +50,16 @@ type AudioCommand = {
|
|
|
50
50
|
name: string;
|
|
51
51
|
src: string;
|
|
52
52
|
settings?: AudioSettings;
|
|
53
|
+
} | {
|
|
54
|
+
subCommand: 'loadAndPlay';
|
|
55
|
+
name: string;
|
|
56
|
+
src: string;
|
|
57
|
+
settings?: AudioSettings;
|
|
53
58
|
} | {
|
|
54
59
|
subCommand: 'release';
|
|
55
60
|
name: string;
|
|
56
61
|
fadeTime?: number;
|
|
62
|
+
silentFail?: boolean;
|
|
57
63
|
} | {
|
|
58
64
|
subCommand: 'play';
|
|
59
65
|
name: string;
|
|
@@ -256,6 +262,8 @@ type ScenarioCommand = {
|
|
|
256
262
|
pattern?: string;
|
|
257
263
|
};
|
|
258
264
|
|
|
265
|
+
type ReadFormat = 'text' | 'binary';
|
|
266
|
+
|
|
259
267
|
type WindowState = 'idle' | 'maximized' | 'minimized' | 'fullscreen';
|
|
260
268
|
|
|
261
269
|
type SystemCommand = {
|
|
@@ -282,6 +290,10 @@ type SystemCommand = {
|
|
|
282
290
|
width?: number;
|
|
283
291
|
height?: number;
|
|
284
292
|
keepAspectRatio?: boolean;
|
|
293
|
+
} | {
|
|
294
|
+
subCommand: 'readFile';
|
|
295
|
+
path: string;
|
|
296
|
+
format?: ReadFormat;
|
|
285
297
|
} | {
|
|
286
298
|
subCommand: 'getParams';
|
|
287
299
|
} | {
|
|
@@ -631,4 +643,4 @@ declare namespace JSX {
|
|
|
631
643
|
}
|
|
632
644
|
}
|
|
633
645
|
|
|
634
|
-
export { type AudioCommand as A, type BubbleEvent as B, type Command as C, type DetailedMoyuProps as D, type EffectParams as E, type GamepadCommand as G, JSX as J, type KeyboardEvent as K, type MouseEvent as M, Node as N, type ScenarioCommand as S, type TextCommand as T, type WindowState as W, type MoyuEvent as a, type MaybePromise as b, type
|
|
646
|
+
export { type AudioCommand as A, type BubbleEvent as B, type Command as C, type DetailedMoyuProps as D, type EffectParams as E, type GamepadCommand as G, JSX as J, type KeyboardEvent as K, type MouseEvent as M, Node as N, type ScenarioCommand as S, type TextCommand as T, type WindowState as W, type MoyuEvent as a, type MaybePromise as b, type JsonValue as c, type AudioSettings as d, type KeyboardEventKind as e, type MakeNullOptional as f, type MouseEventKind as g, type MoyuAnimationAttributes as h, type MoyuBackdropAttributes as i, type MoyuClipAttributes as j, type MoyuContainerAttributes as k, type MoyuEventHandler as l, type MoyuFilterAttributes as m, type MoyuListenerAttributes as n, type MoyuNodeAttributes as o, type MoyuSpriteAttributes as p, type MoyuTextAttributes as q, type MoyuVideoAttributes as r, type SystemCommand as s, type TouchEvent as t, type TouchEventKind as u, type Tuple2 as v, type Tuple3 as w, type Tuple4 as x, createBubbleEvent as y, getStageSize as z };
|
|
@@ -50,10 +50,16 @@ type AudioCommand = {
|
|
|
50
50
|
name: string;
|
|
51
51
|
src: string;
|
|
52
52
|
settings?: AudioSettings;
|
|
53
|
+
} | {
|
|
54
|
+
subCommand: 'loadAndPlay';
|
|
55
|
+
name: string;
|
|
56
|
+
src: string;
|
|
57
|
+
settings?: AudioSettings;
|
|
53
58
|
} | {
|
|
54
59
|
subCommand: 'release';
|
|
55
60
|
name: string;
|
|
56
61
|
fadeTime?: number;
|
|
62
|
+
silentFail?: boolean;
|
|
57
63
|
} | {
|
|
58
64
|
subCommand: 'play';
|
|
59
65
|
name: string;
|
|
@@ -256,6 +262,8 @@ type ScenarioCommand = {
|
|
|
256
262
|
pattern?: string;
|
|
257
263
|
};
|
|
258
264
|
|
|
265
|
+
type ReadFormat = 'text' | 'binary';
|
|
266
|
+
|
|
259
267
|
type WindowState = 'idle' | 'maximized' | 'minimized' | 'fullscreen';
|
|
260
268
|
|
|
261
269
|
type SystemCommand = {
|
|
@@ -282,6 +290,10 @@ type SystemCommand = {
|
|
|
282
290
|
width?: number;
|
|
283
291
|
height?: number;
|
|
284
292
|
keepAspectRatio?: boolean;
|
|
293
|
+
} | {
|
|
294
|
+
subCommand: 'readFile';
|
|
295
|
+
path: string;
|
|
296
|
+
format?: ReadFormat;
|
|
285
297
|
} | {
|
|
286
298
|
subCommand: 'getParams';
|
|
287
299
|
} | {
|
|
@@ -631,4 +643,4 @@ declare namespace JSX {
|
|
|
631
643
|
}
|
|
632
644
|
}
|
|
633
645
|
|
|
634
|
-
export { type AudioCommand as A, type BubbleEvent as B, type Command as C, type DetailedMoyuProps as D, type EffectParams as E, type GamepadCommand as G, JSX as J, type KeyboardEvent as K, type MouseEvent as M, Node as N, type ScenarioCommand as S, type TextCommand as T, type WindowState as W, type MoyuEvent as a, type MaybePromise as b, type
|
|
646
|
+
export { type AudioCommand as A, type BubbleEvent as B, type Command as C, type DetailedMoyuProps as D, type EffectParams as E, type GamepadCommand as G, JSX as J, type KeyboardEvent as K, type MouseEvent as M, Node as N, type ScenarioCommand as S, type TextCommand as T, type WindowState as W, type MoyuEvent as a, type MaybePromise as b, type JsonValue as c, type AudioSettings as d, type KeyboardEventKind as e, type MakeNullOptional as f, type MouseEventKind as g, type MoyuAnimationAttributes as h, type MoyuBackdropAttributes as i, type MoyuClipAttributes as j, type MoyuContainerAttributes as k, type MoyuEventHandler as l, type MoyuFilterAttributes as m, type MoyuListenerAttributes as n, type MoyuNodeAttributes as o, type MoyuSpriteAttributes as p, type MoyuTextAttributes as q, type MoyuVideoAttributes as r, type SystemCommand as s, type TouchEvent as t, type TouchEventKind as u, type Tuple2 as v, type Tuple3 as w, type Tuple4 as x, createBubbleEvent as y, getStageSize as z };
|
package/dist/jsx-runtime.d.mts
CHANGED
package/dist/jsx-runtime.d.ts
CHANGED