@momoyu-ink/kit 0.10.1 → 0.11.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/AGENTS.md +3 -2
- package/dist/{jsx-dev-runtime-x1NET2hA.d.mts → jsx-dev-runtime-BasPxDFu.d.mts} +116 -2
- package/dist/{jsx-dev-runtime-x1NET2hA.d.ts → jsx-dev-runtime-BasPxDFu.d.ts} +116 -2
- 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 +534 -83
- package/dist/lib.d.mts +78 -8
- package/dist/lib.d.ts +78 -8
- package/dist/lib.mjs +544 -82
- package/package.json +2 -1
package/dist/lib.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactElement, Component, ForwardRefExoticComponent, CSSProperties, FC, ReactNode, ComponentType } from 'react';
|
|
3
|
-
import { S as ShaderDirection, M as MoyuEvent, C as Command, a as MaybePromise, J as JSX, L as LayoutEvent, W as WheelEvent, T as TouchEvent, b as MoyuClipAttributes, c as MoyuVBoxAttributes, d as MoyuSpriteAttributes, e as TextProps, f as MoyuNodeAttributes, g as MouseEvent, h as
|
|
4
|
-
export { A as AudioCommand,
|
|
5
|
-
import { FluidValue } from '@react-spring/shared';
|
|
3
|
+
import { S as ShaderDirection, M as MoyuEvent, C as Command, a as MaybePromise, J as JSX, L as LayoutEvent, W as WheelEvent, T as TouchEvent, b as MoyuClipAttributes, c as MoyuVBoxAttributes, d as MoyuSpriteAttributes, e as TextProps, f as MoyuNodeAttributes, g as MouseEvent, h as MoyuTextAttributes, E as EditableState, i as EditableChangeSource, j as SpriteProps, k as JsonValue } from './jsx-dev-runtime-BasPxDFu.mjs';
|
|
4
|
+
export { A as AudioCommand, l as AudioSettings, B as BubbleEvent, D as DetailedMoyuProps, m as EditableCommand, n as EditableEvent, o as EffectParams, G as GamepadCommand, K as KeyboardEvent, p as KeyboardEventKind, q as MakeNullOptional, r as MouseEventKind, s as MoyuAnimationAttributes, t as MoyuBackdropAttributes, u as MoyuContainerAttributes, v as MoyuEditableAttributes, w as MoyuEventHandler, x as MoyuFilterAttributes, y as MoyuHBoxAttributes, z as MoyuListenerAttributes, F as MoyuShaderAttributes, H as MoyuShaderSlotAttributes, I as MoyuVideoAttributes, N as Node, O as OverlayDialog, P as OverlayNotificationPosition, Q as OverlayStoreFlag, R as RetainMode, U as ScenarioCommand, V as ShaderCommand, X as ShaderParam, Y as ShaderParamType, Z as ShaderSource, _ as ShaderTimeControl, $ as SteamCommand, a0 as SystemCommand, a1 as TextCommand, a2 as TextLayoutEvent, a3 as TimelinePossibleClip, a4 as TouchEventKind, a5 as Tuple2, a6 as Tuple3, a7 as Tuple4, a8 as VideoCommand, a9 as WheelEventDeltaMode, aa as WindowState, ab as createBubbleEvent, ac as getStageSize, ad as mergeEvent } from './jsx-dev-runtime-BasPxDFu.mjs';
|
|
5
|
+
import { FluidValue, addFluidObserver as addFluidObserver$1, removeFluidObserver as removeFluidObserver$1 } from '@react-spring/shared';
|
|
6
6
|
import { ElementType, AssignableKeys, ComponentPropsWithRef } from '@react-spring/types';
|
|
7
7
|
import { Snapshot } from 'valtio';
|
|
8
8
|
import { SpringValue, SpringValues, SpringRef } from '@react-spring/core';
|
|
@@ -33,7 +33,7 @@ interface RootOptions {
|
|
|
33
33
|
declare function createRoot(options?: RootOptions): RootHandle;
|
|
34
34
|
|
|
35
35
|
declare const globalEventListeners: Record<string, ((event: unknown) => void)[]>;
|
|
36
|
-
declare const globalRequestAnimationFrameListeners: FrameRequestCallback
|
|
36
|
+
declare const globalRequestAnimationFrameListeners: Map<number, FrameRequestCallback>;
|
|
37
37
|
|
|
38
38
|
declare function addEventListener(name: string, callback: (...args: any[]) => void): () => void;
|
|
39
39
|
|
|
@@ -273,21 +273,25 @@ declare function insertChildBefore(nodeId: number, beforeChildNodeId: number, ch
|
|
|
273
273
|
declare function removeChildAt(nodeId: number, index: number): void;
|
|
274
274
|
declare function removeChild(nodeId: number, childNodeId: number): void;
|
|
275
275
|
declare function updateProps(nodeId: number, props: Record<string, any>): void;
|
|
276
|
+
declare function focusEditable(nodeId: number): void;
|
|
277
|
+
declare function blurEditable(nodeId: number): void;
|
|
276
278
|
declare function executeNodeCommand(nodeId: number, payload: Command): MaybePromise;
|
|
277
279
|
declare function executePluginCommand(pluginName: string, payload: Command): MaybePromise;
|
|
278
280
|
|
|
279
281
|
declare const moyu_addChild: typeof addChild;
|
|
282
|
+
declare const moyu_blurEditable: typeof blurEditable;
|
|
280
283
|
declare const moyu_createInstance: typeof createInstance;
|
|
281
284
|
declare const moyu_destroyInstance: typeof destroyInstance;
|
|
282
285
|
declare const moyu_executeNodeCommand: typeof executeNodeCommand;
|
|
283
286
|
declare const moyu_executePluginCommand: typeof executePluginCommand;
|
|
287
|
+
declare const moyu_focusEditable: typeof focusEditable;
|
|
284
288
|
declare const moyu_insertChild: typeof insertChild;
|
|
285
289
|
declare const moyu_insertChildBefore: typeof insertChildBefore;
|
|
286
290
|
declare const moyu_removeChild: typeof removeChild;
|
|
287
291
|
declare const moyu_removeChildAt: typeof removeChildAt;
|
|
288
292
|
declare const moyu_updateProps: typeof updateProps;
|
|
289
293
|
declare namespace moyu {
|
|
290
|
-
export { moyu_addChild as addChild, moyu_createInstance as createInstance, moyu_destroyInstance as destroyInstance, moyu_executeNodeCommand as executeNodeCommand, moyu_executePluginCommand as executePluginCommand, moyu_insertChild as insertChild, moyu_insertChildBefore as insertChildBefore, moyu_removeChild as removeChild, moyu_removeChildAt as removeChildAt, moyu_updateProps as updateProps };
|
|
294
|
+
export { moyu_addChild as addChild, moyu_blurEditable as blurEditable, moyu_createInstance as createInstance, moyu_destroyInstance as destroyInstance, moyu_executeNodeCommand as executeNodeCommand, moyu_executePluginCommand as executePluginCommand, moyu_focusEditable as focusEditable, moyu_insertChild as insertChild, moyu_insertChildBefore as insertChildBefore, moyu_removeChild as removeChild, moyu_removeChildAt as removeChildAt, moyu_updateProps as updateProps };
|
|
291
295
|
}
|
|
292
296
|
|
|
293
297
|
type Primitives = keyof JSX.IntrinsicElements;
|
|
@@ -316,6 +320,9 @@ type AnimatedLeaf<T> = Exclude<T, object | undefined> | Extract<T, ReadonlyArray
|
|
|
316
320
|
|
|
317
321
|
declare const animated: WithAnimated;
|
|
318
322
|
|
|
323
|
+
declare const addFluidObserver: typeof addFluidObserver$1;
|
|
324
|
+
declare const removeFluidObserver: typeof removeFluidObserver$1;
|
|
325
|
+
|
|
319
326
|
type GameStateStore<TState extends object> = TState;
|
|
320
327
|
interface GameStateSourceProps<TState extends object> {
|
|
321
328
|
store: GameStateStore<TState>;
|
|
@@ -628,6 +635,65 @@ interface CheckboxProps extends Omit<ButtonProps, 'lockOn' | 'sprite'> {
|
|
|
628
635
|
}
|
|
629
636
|
declare function Checkbox({ checked, defaultChecked, onCheckedChange, uncheckedSprite, checkedSprite, onPress, ...buttonProps }: CheckboxProps): JSX.Element;
|
|
630
637
|
|
|
638
|
+
interface InputCaretStyle extends Omit<MoyuSpriteAttributes, 'bounds' | 'children' | 'interactive' | 'mode' | 'nineSliceMode' | 'targetWidth' | 'targetHeight' | 'x' | 'y' | 'visible'> {
|
|
639
|
+
width: number;
|
|
640
|
+
height?: number;
|
|
641
|
+
blinkInterval?: number;
|
|
642
|
+
}
|
|
643
|
+
interface InputBackgroundStyle extends Omit<MoyuSpriteAttributes, 'children' | 'interactive' | 'targetWidth' | 'targetHeight'> {
|
|
644
|
+
}
|
|
645
|
+
interface InputBackgroundStates {
|
|
646
|
+
idle: InputBackgroundStyle;
|
|
647
|
+
hover?: InputBackgroundStyle;
|
|
648
|
+
press?: InputBackgroundStyle;
|
|
649
|
+
focused?: InputBackgroundStyle;
|
|
650
|
+
readOnly?: InputBackgroundStyle;
|
|
651
|
+
disabled?: InputBackgroundStyle;
|
|
652
|
+
}
|
|
653
|
+
type InputBackground = InputBackgroundStyle | InputBackgroundStates;
|
|
654
|
+
interface InputProps extends Omit<MoyuNodeAttributes, 'children' | 'onFocus' | 'onBlur' | 'onInput' | 'onChange'> {
|
|
655
|
+
value?: string;
|
|
656
|
+
defaultValue?: string;
|
|
657
|
+
placeholder?: string;
|
|
658
|
+
disabled?: boolean;
|
|
659
|
+
readOnly?: boolean;
|
|
660
|
+
autoFocus?: boolean;
|
|
661
|
+
width: number;
|
|
662
|
+
height: number;
|
|
663
|
+
paddingX?: number;
|
|
664
|
+
textStyle: Omit<MoyuTextAttributes, 'children' | 'interactive' | 'text'>;
|
|
665
|
+
placeholderStyle?: Omit<MoyuTextAttributes, 'children' | 'interactive' | 'text'>;
|
|
666
|
+
caret: InputCaretStyle;
|
|
667
|
+
background?: InputBackground;
|
|
668
|
+
onInput?: (state: EditableState) => void;
|
|
669
|
+
onChange?: (state: EditableState, source: EditableChangeSource) => void;
|
|
670
|
+
onFocus?: (state: EditableState) => void;
|
|
671
|
+
onBlur?: (state: EditableState) => void;
|
|
672
|
+
onCompositionStart?: (state: EditableState) => void;
|
|
673
|
+
onCompositionUpdate?: (state: EditableState) => void;
|
|
674
|
+
onCompositionEnd?: (state: EditableState) => void;
|
|
675
|
+
}
|
|
676
|
+
interface InputHandle {
|
|
677
|
+
focus(): void;
|
|
678
|
+
blur(): void;
|
|
679
|
+
getState(): EditableState;
|
|
680
|
+
}
|
|
681
|
+
declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<InputHandle>>;
|
|
682
|
+
|
|
683
|
+
interface RadioGroupProps extends MoyuNodeAttributes {
|
|
684
|
+
value?: string;
|
|
685
|
+
defaultValue?: string;
|
|
686
|
+
onValueChange?: (value: string) => void;
|
|
687
|
+
children?: ReactNode;
|
|
688
|
+
}
|
|
689
|
+
declare function RadioGroup({ value, defaultValue, onValueChange, children, ...containerProps }: RadioGroupProps): JSX.Element;
|
|
690
|
+
interface RadioProps extends Omit<ButtonProps, 'lockOn' | 'sprite'> {
|
|
691
|
+
value: string;
|
|
692
|
+
uncheckedSprite: ControlSpriteProps;
|
|
693
|
+
checkedSprite: ControlSpriteProps;
|
|
694
|
+
}
|
|
695
|
+
declare function Radio({ value, uncheckedSprite, checkedSprite, onPress, ...buttonProps }: RadioProps): JSX.Element;
|
|
696
|
+
|
|
631
697
|
interface SelectOption {
|
|
632
698
|
text: string;
|
|
633
699
|
value: string;
|
|
@@ -716,8 +782,8 @@ type StoryReplaceOutcome = {
|
|
|
716
782
|
interface GameControl {
|
|
717
783
|
/** Timed wait — blocks auto-advance. Engine fires scenariowaitingcancelled on timeout or skip. */
|
|
718
784
|
setWaiting(time: number, skippable: boolean): void;
|
|
719
|
-
/**
|
|
720
|
-
hold(): void;
|
|
785
|
+
/** Hold indefinitely, or until a Promise-like object settles. */
|
|
786
|
+
hold(until?: PromiseLike<void>, skippable?: boolean): void;
|
|
721
787
|
/** Manually advance (rarely needed, e.g. `!` tailing). */
|
|
722
788
|
nextLine(): void;
|
|
723
789
|
/** Mark this dispatch cycle as unskippable. If skipping, hold() will stop skip instead of advancing. */
|
|
@@ -790,9 +856,11 @@ declare function createStage(): {
|
|
|
790
856
|
startAuto: () => void;
|
|
791
857
|
stopAuto: () => void;
|
|
792
858
|
isAutoing: () => boolean;
|
|
859
|
+
setDefaultAutoTailMs: typeof setDefaultAutoTailMs;
|
|
793
860
|
startFastForward: (options?: FastForwardOptions) => void;
|
|
794
861
|
stopFastForward: () => void;
|
|
795
862
|
isFastForwarding: () => boolean;
|
|
863
|
+
getSeekingType: typeof getSeekingType;
|
|
796
864
|
resetRuntimeState: () => void;
|
|
797
865
|
bindEvents: () => () => void;
|
|
798
866
|
};
|
|
@@ -819,9 +887,11 @@ declare function StageContextProvider({ stage, children }: {
|
|
|
819
887
|
startAuto: () => void;
|
|
820
888
|
stopAuto: () => void;
|
|
821
889
|
isAutoing: () => boolean;
|
|
890
|
+
setDefaultAutoTailMs: typeof setDefaultAutoTailMs;
|
|
822
891
|
startFastForward: (options?: FastForwardOptions) => void;
|
|
823
892
|
stopFastForward: () => void;
|
|
824
893
|
isFastForwarding: () => boolean;
|
|
894
|
+
getSeekingType: typeof getSeekingType;
|
|
825
895
|
resetRuntimeState: () => void;
|
|
826
896
|
bindEvents: () => () => void;
|
|
827
897
|
} | null>>;
|
|
@@ -1016,4 +1086,4 @@ declare module 'zod' {
|
|
|
1016
1086
|
}
|
|
1017
1087
|
}
|
|
1018
1088
|
|
|
1019
|
-
export { type AnimatedComponent, type AnimatedProps, type AnimationFrameCallbackEvent, type AppStateAdapter, type AutoTicketHandle, type AutoTicketOptions, type BeforeUnloadEvent, Button, type ButtonProps, Checkbox, type CheckboxProps, type CombinedCheckpoint, Command, type CommandHandler, type ControlSpriteProps, type ControlState, type ControlStateValue, type ControlTextStyle, type CustomEvent, DEBUG_EMPTY_PAGE, type DebugSessionConfig, type DebugSessionController, type DebugWarpBoundary, type DebugWarpOptions, type DefaultOverlayName, type DefaultPageName, type DlcProgress, type FastForwardOptions, type FocusEvent, type FocusEventKind, type FullScreenEvent, type FullscreenEventKind, type GameControl, type GameEvent, type GameStateSourceProps, type GameStateStore, type Gamepad, type GamepadButton, type GamepadEvent, type GamepadHapticActuator, JSX, type KeyboardLocation, LayoutEvent, type Literal, MaybePromise, MouseEvent, MoyuClipAttributes, MoyuEvent, MoyuNodeAttributes, MoyuSpriteAttributes, MoyuVBoxAttributes, type NavigationState, type Navigator, type NodeEvent, type OverlayConfig, type OverlayDescriptor, type OverlayInfo, OverlayParamsContext, type PageConfig, type PageDescriptor, PageParamsContext, type PressEvent, type RegisterNavigator, type ResizeEvent, type ResolvedArgument, type ResolvedCommandLine, type ResolvedSystemCallLine, type RootErrorInfo, type RootHandle, type RootNavigatorList, type RootOptions, type RootUiDataMap, type RootUncaughtErrorInfo, type ScenarioCommandBaseType, type ScenarioEvent, ScrollView, type ScrollViewController, type ScrollViewProps, Select, type SelectListProps, type SelectOption, type SelectOptionSpriteProps, type SelectProps, type ShaderBuiltin, type ShaderBuiltinName, type ShaderEvent, Slider, type SliderProps, type SliderThumbProps, type SliderTrackProps, type StackNavigatorOptions, StageContextProvider, type StageInstance, type TextLine, type TextLineHandler, TouchEvent, type UseScrollViewOptions, WheelEvent, type WithAnimated, animated as a, addEventListener, animated, autoState, createGameStateContext, createRoot, createStackNavigator, createStage, createStaticNavigation, ensureArchiveVariableDefaults, executeNodeCommand, executePluginCommand, fastForwardState, getAppStateAdapter, getNavigator, getSeekingType, getUiData, globalEventListeners, globalRequestAnimationFrameListeners, initGlobalVariableDefaults, initUiData, loadVariablesDocument, moyu, nextLine, registerAppStateAdapter, replaceUiData, setDefaultAutoTailMs, setWaiting, skipState, startDebugSession, startRuntimeDebugSession, stopDebugSession, stopRuntimeDebugSession, useAutoBlocker, useAutoTicket, useBeforeHandleCommandCallback, useDebugSession, useFadeIn, useFadeInOut, useFadeOut, useInterruptCallback, useIsAutoing, useIsSeeking, useIsSkipping, useNavigation, useNavigationParams, useNavigationState, useScenario, useScrollView, useSkipBlocker, useSkipCallback, useSoundEffect, useStageContext, useUiData, warpState };
|
|
1089
|
+
export { type AnimatedComponent, type AnimatedProps, type AnimationFrameCallbackEvent, type AppStateAdapter, type AutoTicketHandle, type AutoTicketOptions, type BeforeUnloadEvent, Button, type ButtonProps, Checkbox, type CheckboxProps, type CombinedCheckpoint, Command, type CommandHandler, type ControlSpriteProps, type ControlState, type ControlStateValue, type ControlTextStyle, type CustomEvent, DEBUG_EMPTY_PAGE, type DebugSessionConfig, type DebugSessionController, type DebugWarpBoundary, type DebugWarpOptions, type DefaultOverlayName, type DefaultPageName, type DlcProgress, EditableChangeSource, EditableState, type FastForwardOptions, type FocusEvent, type FocusEventKind, type FullScreenEvent, type FullscreenEventKind, type GameControl, type GameEvent, type GameStateSourceProps, type GameStateStore, type Gamepad, type GamepadButton, type GamepadEvent, type GamepadHapticActuator, Input, type InputBackground, type InputBackgroundStates, type InputBackgroundStyle, type InputCaretStyle, type InputHandle, type InputProps, JSX, type KeyboardLocation, LayoutEvent, type Literal, MaybePromise, MouseEvent, MoyuClipAttributes, MoyuEvent, MoyuNodeAttributes, MoyuSpriteAttributes, MoyuTextAttributes, MoyuVBoxAttributes, type NavigationState, type Navigator, type NodeEvent, type OverlayConfig, type OverlayDescriptor, type OverlayInfo, OverlayParamsContext, type PageConfig, type PageDescriptor, PageParamsContext, type PressEvent, Radio, RadioGroup, type RadioGroupProps, type RadioProps, type RegisterNavigator, type ResizeEvent, type ResolvedArgument, type ResolvedCommandLine, type ResolvedSystemCallLine, type RootErrorInfo, type RootHandle, type RootNavigatorList, type RootOptions, type RootUiDataMap, type RootUncaughtErrorInfo, type ScenarioCommandBaseType, type ScenarioEvent, ScrollView, type ScrollViewController, type ScrollViewProps, Select, type SelectListProps, type SelectOption, type SelectOptionSpriteProps, type SelectProps, type ShaderBuiltin, type ShaderBuiltinName, type ShaderEvent, Slider, type SliderProps, type SliderThumbProps, type SliderTrackProps, type StackNavigatorOptions, StageContextProvider, type StageInstance, type TextLine, type TextLineHandler, TouchEvent, type UseScrollViewOptions, WheelEvent, type WithAnimated, animated as a, addEventListener, addFluidObserver, animated, autoState, createGameStateContext, createRoot, createStackNavigator, createStage, createStaticNavigation, ensureArchiveVariableDefaults, executeNodeCommand, executePluginCommand, fastForwardState, getAppStateAdapter, getNavigator, getSeekingType, getUiData, globalEventListeners, globalRequestAnimationFrameListeners, initGlobalVariableDefaults, initUiData, loadVariablesDocument, moyu, nextLine, registerAppStateAdapter, removeFluidObserver, replaceUiData, setDefaultAutoTailMs, setWaiting, skipState, startDebugSession, startRuntimeDebugSession, stopDebugSession, stopRuntimeDebugSession, useAutoBlocker, useAutoTicket, useBeforeHandleCommandCallback, useDebugSession, useFadeIn, useFadeInOut, useFadeOut, useInterruptCallback, useIsAutoing, useIsSeeking, useIsSkipping, useNavigation, useNavigationParams, useNavigationState, useScenario, useScrollView, useSkipBlocker, useSkipCallback, useSoundEffect, useStageContext, useUiData, warpState };
|
package/dist/lib.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactElement, Component, ForwardRefExoticComponent, CSSProperties, FC, ReactNode, ComponentType } from 'react';
|
|
3
|
-
import { S as ShaderDirection, M as MoyuEvent, C as Command, a as MaybePromise, J as JSX, L as LayoutEvent, W as WheelEvent, T as TouchEvent, b as MoyuClipAttributes, c as MoyuVBoxAttributes, d as MoyuSpriteAttributes, e as TextProps, f as MoyuNodeAttributes, g as MouseEvent, h as
|
|
4
|
-
export { A as AudioCommand,
|
|
5
|
-
import { FluidValue } from '@react-spring/shared';
|
|
3
|
+
import { S as ShaderDirection, M as MoyuEvent, C as Command, a as MaybePromise, J as JSX, L as LayoutEvent, W as WheelEvent, T as TouchEvent, b as MoyuClipAttributes, c as MoyuVBoxAttributes, d as MoyuSpriteAttributes, e as TextProps, f as MoyuNodeAttributes, g as MouseEvent, h as MoyuTextAttributes, E as EditableState, i as EditableChangeSource, j as SpriteProps, k as JsonValue } from './jsx-dev-runtime-BasPxDFu.js';
|
|
4
|
+
export { A as AudioCommand, l as AudioSettings, B as BubbleEvent, D as DetailedMoyuProps, m as EditableCommand, n as EditableEvent, o as EffectParams, G as GamepadCommand, K as KeyboardEvent, p as KeyboardEventKind, q as MakeNullOptional, r as MouseEventKind, s as MoyuAnimationAttributes, t as MoyuBackdropAttributes, u as MoyuContainerAttributes, v as MoyuEditableAttributes, w as MoyuEventHandler, x as MoyuFilterAttributes, y as MoyuHBoxAttributes, z as MoyuListenerAttributes, F as MoyuShaderAttributes, H as MoyuShaderSlotAttributes, I as MoyuVideoAttributes, N as Node, O as OverlayDialog, P as OverlayNotificationPosition, Q as OverlayStoreFlag, R as RetainMode, U as ScenarioCommand, V as ShaderCommand, X as ShaderParam, Y as ShaderParamType, Z as ShaderSource, _ as ShaderTimeControl, $ as SteamCommand, a0 as SystemCommand, a1 as TextCommand, a2 as TextLayoutEvent, a3 as TimelinePossibleClip, a4 as TouchEventKind, a5 as Tuple2, a6 as Tuple3, a7 as Tuple4, a8 as VideoCommand, a9 as WheelEventDeltaMode, aa as WindowState, ab as createBubbleEvent, ac as getStageSize, ad as mergeEvent } from './jsx-dev-runtime-BasPxDFu.js';
|
|
5
|
+
import { FluidValue, addFluidObserver as addFluidObserver$1, removeFluidObserver as removeFluidObserver$1 } from '@react-spring/shared';
|
|
6
6
|
import { ElementType, AssignableKeys, ComponentPropsWithRef } from '@react-spring/types';
|
|
7
7
|
import { Snapshot } from 'valtio';
|
|
8
8
|
import { SpringValue, SpringValues, SpringRef } from '@react-spring/core';
|
|
@@ -33,7 +33,7 @@ interface RootOptions {
|
|
|
33
33
|
declare function createRoot(options?: RootOptions): RootHandle;
|
|
34
34
|
|
|
35
35
|
declare const globalEventListeners: Record<string, ((event: unknown) => void)[]>;
|
|
36
|
-
declare const globalRequestAnimationFrameListeners: FrameRequestCallback
|
|
36
|
+
declare const globalRequestAnimationFrameListeners: Map<number, FrameRequestCallback>;
|
|
37
37
|
|
|
38
38
|
declare function addEventListener(name: string, callback: (...args: any[]) => void): () => void;
|
|
39
39
|
|
|
@@ -273,21 +273,25 @@ declare function insertChildBefore(nodeId: number, beforeChildNodeId: number, ch
|
|
|
273
273
|
declare function removeChildAt(nodeId: number, index: number): void;
|
|
274
274
|
declare function removeChild(nodeId: number, childNodeId: number): void;
|
|
275
275
|
declare function updateProps(nodeId: number, props: Record<string, any>): void;
|
|
276
|
+
declare function focusEditable(nodeId: number): void;
|
|
277
|
+
declare function blurEditable(nodeId: number): void;
|
|
276
278
|
declare function executeNodeCommand(nodeId: number, payload: Command): MaybePromise;
|
|
277
279
|
declare function executePluginCommand(pluginName: string, payload: Command): MaybePromise;
|
|
278
280
|
|
|
279
281
|
declare const moyu_addChild: typeof addChild;
|
|
282
|
+
declare const moyu_blurEditable: typeof blurEditable;
|
|
280
283
|
declare const moyu_createInstance: typeof createInstance;
|
|
281
284
|
declare const moyu_destroyInstance: typeof destroyInstance;
|
|
282
285
|
declare const moyu_executeNodeCommand: typeof executeNodeCommand;
|
|
283
286
|
declare const moyu_executePluginCommand: typeof executePluginCommand;
|
|
287
|
+
declare const moyu_focusEditable: typeof focusEditable;
|
|
284
288
|
declare const moyu_insertChild: typeof insertChild;
|
|
285
289
|
declare const moyu_insertChildBefore: typeof insertChildBefore;
|
|
286
290
|
declare const moyu_removeChild: typeof removeChild;
|
|
287
291
|
declare const moyu_removeChildAt: typeof removeChildAt;
|
|
288
292
|
declare const moyu_updateProps: typeof updateProps;
|
|
289
293
|
declare namespace moyu {
|
|
290
|
-
export { moyu_addChild as addChild, moyu_createInstance as createInstance, moyu_destroyInstance as destroyInstance, moyu_executeNodeCommand as executeNodeCommand, moyu_executePluginCommand as executePluginCommand, moyu_insertChild as insertChild, moyu_insertChildBefore as insertChildBefore, moyu_removeChild as removeChild, moyu_removeChildAt as removeChildAt, moyu_updateProps as updateProps };
|
|
294
|
+
export { moyu_addChild as addChild, moyu_blurEditable as blurEditable, moyu_createInstance as createInstance, moyu_destroyInstance as destroyInstance, moyu_executeNodeCommand as executeNodeCommand, moyu_executePluginCommand as executePluginCommand, moyu_focusEditable as focusEditable, moyu_insertChild as insertChild, moyu_insertChildBefore as insertChildBefore, moyu_removeChild as removeChild, moyu_removeChildAt as removeChildAt, moyu_updateProps as updateProps };
|
|
291
295
|
}
|
|
292
296
|
|
|
293
297
|
type Primitives = keyof JSX.IntrinsicElements;
|
|
@@ -316,6 +320,9 @@ type AnimatedLeaf<T> = Exclude<T, object | undefined> | Extract<T, ReadonlyArray
|
|
|
316
320
|
|
|
317
321
|
declare const animated: WithAnimated;
|
|
318
322
|
|
|
323
|
+
declare const addFluidObserver: typeof addFluidObserver$1;
|
|
324
|
+
declare const removeFluidObserver: typeof removeFluidObserver$1;
|
|
325
|
+
|
|
319
326
|
type GameStateStore<TState extends object> = TState;
|
|
320
327
|
interface GameStateSourceProps<TState extends object> {
|
|
321
328
|
store: GameStateStore<TState>;
|
|
@@ -628,6 +635,65 @@ interface CheckboxProps extends Omit<ButtonProps, 'lockOn' | 'sprite'> {
|
|
|
628
635
|
}
|
|
629
636
|
declare function Checkbox({ checked, defaultChecked, onCheckedChange, uncheckedSprite, checkedSprite, onPress, ...buttonProps }: CheckboxProps): JSX.Element;
|
|
630
637
|
|
|
638
|
+
interface InputCaretStyle extends Omit<MoyuSpriteAttributes, 'bounds' | 'children' | 'interactive' | 'mode' | 'nineSliceMode' | 'targetWidth' | 'targetHeight' | 'x' | 'y' | 'visible'> {
|
|
639
|
+
width: number;
|
|
640
|
+
height?: number;
|
|
641
|
+
blinkInterval?: number;
|
|
642
|
+
}
|
|
643
|
+
interface InputBackgroundStyle extends Omit<MoyuSpriteAttributes, 'children' | 'interactive' | 'targetWidth' | 'targetHeight'> {
|
|
644
|
+
}
|
|
645
|
+
interface InputBackgroundStates {
|
|
646
|
+
idle: InputBackgroundStyle;
|
|
647
|
+
hover?: InputBackgroundStyle;
|
|
648
|
+
press?: InputBackgroundStyle;
|
|
649
|
+
focused?: InputBackgroundStyle;
|
|
650
|
+
readOnly?: InputBackgroundStyle;
|
|
651
|
+
disabled?: InputBackgroundStyle;
|
|
652
|
+
}
|
|
653
|
+
type InputBackground = InputBackgroundStyle | InputBackgroundStates;
|
|
654
|
+
interface InputProps extends Omit<MoyuNodeAttributes, 'children' | 'onFocus' | 'onBlur' | 'onInput' | 'onChange'> {
|
|
655
|
+
value?: string;
|
|
656
|
+
defaultValue?: string;
|
|
657
|
+
placeholder?: string;
|
|
658
|
+
disabled?: boolean;
|
|
659
|
+
readOnly?: boolean;
|
|
660
|
+
autoFocus?: boolean;
|
|
661
|
+
width: number;
|
|
662
|
+
height: number;
|
|
663
|
+
paddingX?: number;
|
|
664
|
+
textStyle: Omit<MoyuTextAttributes, 'children' | 'interactive' | 'text'>;
|
|
665
|
+
placeholderStyle?: Omit<MoyuTextAttributes, 'children' | 'interactive' | 'text'>;
|
|
666
|
+
caret: InputCaretStyle;
|
|
667
|
+
background?: InputBackground;
|
|
668
|
+
onInput?: (state: EditableState) => void;
|
|
669
|
+
onChange?: (state: EditableState, source: EditableChangeSource) => void;
|
|
670
|
+
onFocus?: (state: EditableState) => void;
|
|
671
|
+
onBlur?: (state: EditableState) => void;
|
|
672
|
+
onCompositionStart?: (state: EditableState) => void;
|
|
673
|
+
onCompositionUpdate?: (state: EditableState) => void;
|
|
674
|
+
onCompositionEnd?: (state: EditableState) => void;
|
|
675
|
+
}
|
|
676
|
+
interface InputHandle {
|
|
677
|
+
focus(): void;
|
|
678
|
+
blur(): void;
|
|
679
|
+
getState(): EditableState;
|
|
680
|
+
}
|
|
681
|
+
declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<InputHandle>>;
|
|
682
|
+
|
|
683
|
+
interface RadioGroupProps extends MoyuNodeAttributes {
|
|
684
|
+
value?: string;
|
|
685
|
+
defaultValue?: string;
|
|
686
|
+
onValueChange?: (value: string) => void;
|
|
687
|
+
children?: ReactNode;
|
|
688
|
+
}
|
|
689
|
+
declare function RadioGroup({ value, defaultValue, onValueChange, children, ...containerProps }: RadioGroupProps): JSX.Element;
|
|
690
|
+
interface RadioProps extends Omit<ButtonProps, 'lockOn' | 'sprite'> {
|
|
691
|
+
value: string;
|
|
692
|
+
uncheckedSprite: ControlSpriteProps;
|
|
693
|
+
checkedSprite: ControlSpriteProps;
|
|
694
|
+
}
|
|
695
|
+
declare function Radio({ value, uncheckedSprite, checkedSprite, onPress, ...buttonProps }: RadioProps): JSX.Element;
|
|
696
|
+
|
|
631
697
|
interface SelectOption {
|
|
632
698
|
text: string;
|
|
633
699
|
value: string;
|
|
@@ -716,8 +782,8 @@ type StoryReplaceOutcome = {
|
|
|
716
782
|
interface GameControl {
|
|
717
783
|
/** Timed wait — blocks auto-advance. Engine fires scenariowaitingcancelled on timeout or skip. */
|
|
718
784
|
setWaiting(time: number, skippable: boolean): void;
|
|
719
|
-
/**
|
|
720
|
-
hold(): void;
|
|
785
|
+
/** Hold indefinitely, or until a Promise-like object settles. */
|
|
786
|
+
hold(until?: PromiseLike<void>, skippable?: boolean): void;
|
|
721
787
|
/** Manually advance (rarely needed, e.g. `!` tailing). */
|
|
722
788
|
nextLine(): void;
|
|
723
789
|
/** Mark this dispatch cycle as unskippable. If skipping, hold() will stop skip instead of advancing. */
|
|
@@ -790,9 +856,11 @@ declare function createStage(): {
|
|
|
790
856
|
startAuto: () => void;
|
|
791
857
|
stopAuto: () => void;
|
|
792
858
|
isAutoing: () => boolean;
|
|
859
|
+
setDefaultAutoTailMs: typeof setDefaultAutoTailMs;
|
|
793
860
|
startFastForward: (options?: FastForwardOptions) => void;
|
|
794
861
|
stopFastForward: () => void;
|
|
795
862
|
isFastForwarding: () => boolean;
|
|
863
|
+
getSeekingType: typeof getSeekingType;
|
|
796
864
|
resetRuntimeState: () => void;
|
|
797
865
|
bindEvents: () => () => void;
|
|
798
866
|
};
|
|
@@ -819,9 +887,11 @@ declare function StageContextProvider({ stage, children }: {
|
|
|
819
887
|
startAuto: () => void;
|
|
820
888
|
stopAuto: () => void;
|
|
821
889
|
isAutoing: () => boolean;
|
|
890
|
+
setDefaultAutoTailMs: typeof setDefaultAutoTailMs;
|
|
822
891
|
startFastForward: (options?: FastForwardOptions) => void;
|
|
823
892
|
stopFastForward: () => void;
|
|
824
893
|
isFastForwarding: () => boolean;
|
|
894
|
+
getSeekingType: typeof getSeekingType;
|
|
825
895
|
resetRuntimeState: () => void;
|
|
826
896
|
bindEvents: () => () => void;
|
|
827
897
|
} | null>>;
|
|
@@ -1016,4 +1086,4 @@ declare module 'zod' {
|
|
|
1016
1086
|
}
|
|
1017
1087
|
}
|
|
1018
1088
|
|
|
1019
|
-
export { type AnimatedComponent, type AnimatedProps, type AnimationFrameCallbackEvent, type AppStateAdapter, type AutoTicketHandle, type AutoTicketOptions, type BeforeUnloadEvent, Button, type ButtonProps, Checkbox, type CheckboxProps, type CombinedCheckpoint, Command, type CommandHandler, type ControlSpriteProps, type ControlState, type ControlStateValue, type ControlTextStyle, type CustomEvent, DEBUG_EMPTY_PAGE, type DebugSessionConfig, type DebugSessionController, type DebugWarpBoundary, type DebugWarpOptions, type DefaultOverlayName, type DefaultPageName, type DlcProgress, type FastForwardOptions, type FocusEvent, type FocusEventKind, type FullScreenEvent, type FullscreenEventKind, type GameControl, type GameEvent, type GameStateSourceProps, type GameStateStore, type Gamepad, type GamepadButton, type GamepadEvent, type GamepadHapticActuator, JSX, type KeyboardLocation, LayoutEvent, type Literal, MaybePromise, MouseEvent, MoyuClipAttributes, MoyuEvent, MoyuNodeAttributes, MoyuSpriteAttributes, MoyuVBoxAttributes, type NavigationState, type Navigator, type NodeEvent, type OverlayConfig, type OverlayDescriptor, type OverlayInfo, OverlayParamsContext, type PageConfig, type PageDescriptor, PageParamsContext, type PressEvent, type RegisterNavigator, type ResizeEvent, type ResolvedArgument, type ResolvedCommandLine, type ResolvedSystemCallLine, type RootErrorInfo, type RootHandle, type RootNavigatorList, type RootOptions, type RootUiDataMap, type RootUncaughtErrorInfo, type ScenarioCommandBaseType, type ScenarioEvent, ScrollView, type ScrollViewController, type ScrollViewProps, Select, type SelectListProps, type SelectOption, type SelectOptionSpriteProps, type SelectProps, type ShaderBuiltin, type ShaderBuiltinName, type ShaderEvent, Slider, type SliderProps, type SliderThumbProps, type SliderTrackProps, type StackNavigatorOptions, StageContextProvider, type StageInstance, type TextLine, type TextLineHandler, TouchEvent, type UseScrollViewOptions, WheelEvent, type WithAnimated, animated as a, addEventListener, animated, autoState, createGameStateContext, createRoot, createStackNavigator, createStage, createStaticNavigation, ensureArchiveVariableDefaults, executeNodeCommand, executePluginCommand, fastForwardState, getAppStateAdapter, getNavigator, getSeekingType, getUiData, globalEventListeners, globalRequestAnimationFrameListeners, initGlobalVariableDefaults, initUiData, loadVariablesDocument, moyu, nextLine, registerAppStateAdapter, replaceUiData, setDefaultAutoTailMs, setWaiting, skipState, startDebugSession, startRuntimeDebugSession, stopDebugSession, stopRuntimeDebugSession, useAutoBlocker, useAutoTicket, useBeforeHandleCommandCallback, useDebugSession, useFadeIn, useFadeInOut, useFadeOut, useInterruptCallback, useIsAutoing, useIsSeeking, useIsSkipping, useNavigation, useNavigationParams, useNavigationState, useScenario, useScrollView, useSkipBlocker, useSkipCallback, useSoundEffect, useStageContext, useUiData, warpState };
|
|
1089
|
+
export { type AnimatedComponent, type AnimatedProps, type AnimationFrameCallbackEvent, type AppStateAdapter, type AutoTicketHandle, type AutoTicketOptions, type BeforeUnloadEvent, Button, type ButtonProps, Checkbox, type CheckboxProps, type CombinedCheckpoint, Command, type CommandHandler, type ControlSpriteProps, type ControlState, type ControlStateValue, type ControlTextStyle, type CustomEvent, DEBUG_EMPTY_PAGE, type DebugSessionConfig, type DebugSessionController, type DebugWarpBoundary, type DebugWarpOptions, type DefaultOverlayName, type DefaultPageName, type DlcProgress, EditableChangeSource, EditableState, type FastForwardOptions, type FocusEvent, type FocusEventKind, type FullScreenEvent, type FullscreenEventKind, type GameControl, type GameEvent, type GameStateSourceProps, type GameStateStore, type Gamepad, type GamepadButton, type GamepadEvent, type GamepadHapticActuator, Input, type InputBackground, type InputBackgroundStates, type InputBackgroundStyle, type InputCaretStyle, type InputHandle, type InputProps, JSX, type KeyboardLocation, LayoutEvent, type Literal, MaybePromise, MouseEvent, MoyuClipAttributes, MoyuEvent, MoyuNodeAttributes, MoyuSpriteAttributes, MoyuTextAttributes, MoyuVBoxAttributes, type NavigationState, type Navigator, type NodeEvent, type OverlayConfig, type OverlayDescriptor, type OverlayInfo, OverlayParamsContext, type PageConfig, type PageDescriptor, PageParamsContext, type PressEvent, Radio, RadioGroup, type RadioGroupProps, type RadioProps, type RegisterNavigator, type ResizeEvent, type ResolvedArgument, type ResolvedCommandLine, type ResolvedSystemCallLine, type RootErrorInfo, type RootHandle, type RootNavigatorList, type RootOptions, type RootUiDataMap, type RootUncaughtErrorInfo, type ScenarioCommandBaseType, type ScenarioEvent, ScrollView, type ScrollViewController, type ScrollViewProps, Select, type SelectListProps, type SelectOption, type SelectOptionSpriteProps, type SelectProps, type ShaderBuiltin, type ShaderBuiltinName, type ShaderEvent, Slider, type SliderProps, type SliderThumbProps, type SliderTrackProps, type StackNavigatorOptions, StageContextProvider, type StageInstance, type TextLine, type TextLineHandler, TouchEvent, type UseScrollViewOptions, WheelEvent, type WithAnimated, animated as a, addEventListener, addFluidObserver, animated, autoState, createGameStateContext, createRoot, createStackNavigator, createStage, createStaticNavigation, ensureArchiveVariableDefaults, executeNodeCommand, executePluginCommand, fastForwardState, getAppStateAdapter, getNavigator, getSeekingType, getUiData, globalEventListeners, globalRequestAnimationFrameListeners, initGlobalVariableDefaults, initUiData, loadVariablesDocument, moyu, nextLine, registerAppStateAdapter, removeFluidObserver, replaceUiData, setDefaultAutoTailMs, setWaiting, skipState, startDebugSession, startRuntimeDebugSession, stopDebugSession, stopRuntimeDebugSession, useAutoBlocker, useAutoTicket, useBeforeHandleCommandCallback, useDebugSession, useFadeIn, useFadeInOut, useFadeOut, useInterruptCallback, useIsAutoing, useIsSeeking, useIsSkipping, useNavigation, useNavigationParams, useNavigationState, useScenario, useScrollView, useSkipBlocker, useSkipCallback, useSoundEffect, useStageContext, useUiData, warpState };
|