@momoyu-ink/kit 0.11.2 → 0.11.3
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-WLUT_h4x.d.mts → jsx-dev-runtime-xC0sDJ2D.d.mts} +11 -12
- package/dist/{jsx-dev-runtime-WLUT_h4x.d.ts → jsx-dev-runtime-xC0sDJ2D.d.ts} +11 -12
- 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.d.mts +2 -2
- package/dist/lib.d.ts +2 -2
- package/package.json +1 -1
|
@@ -429,7 +429,7 @@ type SteamCommand = {
|
|
|
429
429
|
|
|
430
430
|
type ReadFormat = 'text' | 'binary';
|
|
431
431
|
|
|
432
|
-
type WindowState =
|
|
432
|
+
type WindowState = "idle" | "maximized" | "minimized" | "fullscreen";
|
|
433
433
|
|
|
434
434
|
type SystemCommand = {
|
|
435
435
|
subCommand: 'setWindowSize';
|
|
@@ -622,6 +622,13 @@ type LayoutEvent = {
|
|
|
622
622
|
height: number;
|
|
623
623
|
};
|
|
624
624
|
|
|
625
|
+
type PointerEventKind = 'over' | 'enter' | 'leave' | 'down' | 'up' | 'click';
|
|
626
|
+
|
|
627
|
+
type TextInteractionEvent = {
|
|
628
|
+
id: string;
|
|
629
|
+
kind: PointerEventKind;
|
|
630
|
+
};
|
|
631
|
+
|
|
625
632
|
type TextLayoutEvent = {
|
|
626
633
|
text: string;
|
|
627
634
|
width: number;
|
|
@@ -806,11 +813,6 @@ type TextProps = {
|
|
|
806
813
|
printMode?: TextPrintMode;
|
|
807
814
|
printSpeed?: number;
|
|
808
815
|
parseMarkup?: boolean;
|
|
809
|
-
/**
|
|
810
|
-
* the writing direction of the text in the box,
|
|
811
|
-
* only `Horizontal` (right-to-left) or `Vertical` (top-to-bottom) is valid.
|
|
812
|
-
*/
|
|
813
|
-
direction?: 'horizontal' | 'vertical';
|
|
814
816
|
/**
|
|
815
817
|
* the width of box.
|
|
816
818
|
*/
|
|
@@ -819,10 +821,6 @@ type TextProps = {
|
|
|
819
821
|
* the height of box.
|
|
820
822
|
*/
|
|
821
823
|
boxHeight?: number;
|
|
822
|
-
/**
|
|
823
|
-
* the size of the glyph grid which each character be fit to, usually equals to `font_size`.
|
|
824
|
-
*/
|
|
825
|
-
glyphGridSize?: number;
|
|
826
824
|
fontSize?: number;
|
|
827
825
|
fillColor?: string;
|
|
828
826
|
lineHeight?: number;
|
|
@@ -911,7 +909,7 @@ type ShaderSlotProps = {
|
|
|
911
909
|
height?: number;
|
|
912
910
|
};
|
|
913
911
|
|
|
914
|
-
type AnimationFormat = 'apng' | 'webp';
|
|
912
|
+
type AnimationFormat = 'apng' | 'webp' | 'jxl';
|
|
915
913
|
|
|
916
914
|
type AnimationProps = {
|
|
917
915
|
src: string | null;
|
|
@@ -1000,6 +998,7 @@ type MoyuTextAttributes = TextProps & MoyuNodeAttributes & {
|
|
|
1000
998
|
onFinish?: () => void;
|
|
1001
999
|
onProgress?: (progress: number) => void;
|
|
1002
1000
|
onTextLayout?: (event: TextLayoutEvent) => void;
|
|
1001
|
+
onInteraction?: (event: TextInteractionEvent) => void;
|
|
1003
1002
|
};
|
|
1004
1003
|
declare namespace JSX {
|
|
1005
1004
|
type ElementType = string | React.JSXElementConstructor<any>;
|
|
@@ -1052,4 +1051,4 @@ type _Command = AudioCommand | EditableCommand | TextCommand | GamepadCommand |
|
|
|
1052
1051
|
type Command = MakeNullOptional<_Command>;
|
|
1053
1052
|
type MaybePromise = any;
|
|
1054
1053
|
|
|
1055
|
-
export { type
|
|
1054
|
+
export { type ShaderSource as $, type AudioCommand as A, type BubbleEvent as B, type Command as C, type DetailedMoyuProps as D, type EditableState as E, type MoyuShaderAttributes as F, type GamepadCommand as G, type MoyuShaderSlotAttributes as H, type MoyuVideoAttributes as I, JSX as J, type KeyboardEvent as K, type LayoutEvent as L, type MoyuEvent as M, Node as N, type OverlayDialog as O, type OverlayNotificationPosition as P, type OverlayStoreFlag as Q, type PlatformInfo as R, type ShaderDirection as S, type TouchEvent as T, type PointerEventKind as U, type RetainMode as V, type WheelEvent as W, type ScenarioCommand as X, type ShaderCommand as Y, type ShaderParam as Z, type ShaderParamType as _, type MaybePromise as a, type ShaderTimeControl as a0, type SteamCommand as a1, type SystemCommand as a2, type TextCommand as a3, type TextInteractionEvent as a4, type TextLayoutEvent as a5, type TimelinePossibleClip as a6, type TouchEventKind as a7, type Tuple2 as a8, type Tuple3 as a9, type Tuple4 as aa, type VideoCommand as ab, type WheelEventDeltaMode as ac, type WindowState as ad, createBubbleEvent as ae, getPlatform as af, getStageSize as ag, mergeEvent as ah, type MoyuClipAttributes as b, type MoyuVBoxAttributes as c, type MoyuSpriteAttributes as d, type TextProps as e, type MoyuNodeAttributes as f, type MouseEvent as g, type MoyuTextAttributes as h, type EditableChangeSource as i, type SpriteProps as j, type JsonValue as k, type AudioSettings as l, type EditableCommand as m, type EditableEvent as n, type EffectParams as o, type KeyboardEventKind as p, type MakeNullOptional as q, type MouseEventKind as r, type MoyuAnimationAttributes as s, type MoyuBackdropAttributes as t, type MoyuContainerAttributes as u, type MoyuEditableAttributes as v, type MoyuEventHandler as w, type MoyuFilterAttributes as x, type MoyuHBoxAttributes as y, type MoyuListenerAttributes as z };
|
|
@@ -429,7 +429,7 @@ type SteamCommand = {
|
|
|
429
429
|
|
|
430
430
|
type ReadFormat = 'text' | 'binary';
|
|
431
431
|
|
|
432
|
-
type WindowState =
|
|
432
|
+
type WindowState = "idle" | "maximized" | "minimized" | "fullscreen";
|
|
433
433
|
|
|
434
434
|
type SystemCommand = {
|
|
435
435
|
subCommand: 'setWindowSize';
|
|
@@ -622,6 +622,13 @@ type LayoutEvent = {
|
|
|
622
622
|
height: number;
|
|
623
623
|
};
|
|
624
624
|
|
|
625
|
+
type PointerEventKind = 'over' | 'enter' | 'leave' | 'down' | 'up' | 'click';
|
|
626
|
+
|
|
627
|
+
type TextInteractionEvent = {
|
|
628
|
+
id: string;
|
|
629
|
+
kind: PointerEventKind;
|
|
630
|
+
};
|
|
631
|
+
|
|
625
632
|
type TextLayoutEvent = {
|
|
626
633
|
text: string;
|
|
627
634
|
width: number;
|
|
@@ -806,11 +813,6 @@ type TextProps = {
|
|
|
806
813
|
printMode?: TextPrintMode;
|
|
807
814
|
printSpeed?: number;
|
|
808
815
|
parseMarkup?: boolean;
|
|
809
|
-
/**
|
|
810
|
-
* the writing direction of the text in the box,
|
|
811
|
-
* only `Horizontal` (right-to-left) or `Vertical` (top-to-bottom) is valid.
|
|
812
|
-
*/
|
|
813
|
-
direction?: 'horizontal' | 'vertical';
|
|
814
816
|
/**
|
|
815
817
|
* the width of box.
|
|
816
818
|
*/
|
|
@@ -819,10 +821,6 @@ type TextProps = {
|
|
|
819
821
|
* the height of box.
|
|
820
822
|
*/
|
|
821
823
|
boxHeight?: number;
|
|
822
|
-
/**
|
|
823
|
-
* the size of the glyph grid which each character be fit to, usually equals to `font_size`.
|
|
824
|
-
*/
|
|
825
|
-
glyphGridSize?: number;
|
|
826
824
|
fontSize?: number;
|
|
827
825
|
fillColor?: string;
|
|
828
826
|
lineHeight?: number;
|
|
@@ -911,7 +909,7 @@ type ShaderSlotProps = {
|
|
|
911
909
|
height?: number;
|
|
912
910
|
};
|
|
913
911
|
|
|
914
|
-
type AnimationFormat = 'apng' | 'webp';
|
|
912
|
+
type AnimationFormat = 'apng' | 'webp' | 'jxl';
|
|
915
913
|
|
|
916
914
|
type AnimationProps = {
|
|
917
915
|
src: string | null;
|
|
@@ -1000,6 +998,7 @@ type MoyuTextAttributes = TextProps & MoyuNodeAttributes & {
|
|
|
1000
998
|
onFinish?: () => void;
|
|
1001
999
|
onProgress?: (progress: number) => void;
|
|
1002
1000
|
onTextLayout?: (event: TextLayoutEvent) => void;
|
|
1001
|
+
onInteraction?: (event: TextInteractionEvent) => void;
|
|
1003
1002
|
};
|
|
1004
1003
|
declare namespace JSX {
|
|
1005
1004
|
type ElementType = string | React.JSXElementConstructor<any>;
|
|
@@ -1052,4 +1051,4 @@ type _Command = AudioCommand | EditableCommand | TextCommand | GamepadCommand |
|
|
|
1052
1051
|
type Command = MakeNullOptional<_Command>;
|
|
1053
1052
|
type MaybePromise = any;
|
|
1054
1053
|
|
|
1055
|
-
export { type
|
|
1054
|
+
export { type ShaderSource as $, type AudioCommand as A, type BubbleEvent as B, type Command as C, type DetailedMoyuProps as D, type EditableState as E, type MoyuShaderAttributes as F, type GamepadCommand as G, type MoyuShaderSlotAttributes as H, type MoyuVideoAttributes as I, JSX as J, type KeyboardEvent as K, type LayoutEvent as L, type MoyuEvent as M, Node as N, type OverlayDialog as O, type OverlayNotificationPosition as P, type OverlayStoreFlag as Q, type PlatformInfo as R, type ShaderDirection as S, type TouchEvent as T, type PointerEventKind as U, type RetainMode as V, type WheelEvent as W, type ScenarioCommand as X, type ShaderCommand as Y, type ShaderParam as Z, type ShaderParamType as _, type MaybePromise as a, type ShaderTimeControl as a0, type SteamCommand as a1, type SystemCommand as a2, type TextCommand as a3, type TextInteractionEvent as a4, type TextLayoutEvent as a5, type TimelinePossibleClip as a6, type TouchEventKind as a7, type Tuple2 as a8, type Tuple3 as a9, type Tuple4 as aa, type VideoCommand as ab, type WheelEventDeltaMode as ac, type WindowState as ad, createBubbleEvent as ae, getPlatform as af, getStageSize as ag, mergeEvent as ah, type MoyuClipAttributes as b, type MoyuVBoxAttributes as c, type MoyuSpriteAttributes as d, type TextProps as e, type MoyuNodeAttributes as f, type MouseEvent as g, type MoyuTextAttributes as h, type EditableChangeSource as i, type SpriteProps as j, type JsonValue as k, type AudioSettings as l, type EditableCommand as m, type EditableEvent as n, type EffectParams as o, type KeyboardEventKind as p, type MakeNullOptional as q, type MouseEventKind as r, type MoyuAnimationAttributes as s, type MoyuBackdropAttributes as t, type MoyuContainerAttributes as u, type MoyuEditableAttributes as v, type MoyuEventHandler as w, type MoyuFilterAttributes as x, type MoyuHBoxAttributes as y, type MoyuListenerAttributes as z };
|
package/dist/jsx-runtime.d.mts
CHANGED
package/dist/jsx-runtime.d.ts
CHANGED
package/dist/lib.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 MoyuTextAttributes, E as EditableState, i as EditableChangeSource, j as SpriteProps, k as JsonValue } from './jsx-dev-runtime-
|
|
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 PlatformInfo, U as
|
|
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-xC0sDJ2D.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 PlatformInfo, U as PointerEventKind, V as RetainMode, X as ScenarioCommand, Y as ShaderCommand, Z as ShaderParam, _ as ShaderParamType, $ as ShaderSource, a0 as ShaderTimeControl, a1 as SteamCommand, a2 as SystemCommand, a3 as TextCommand, a4 as TextInteractionEvent, a5 as TextLayoutEvent, a6 as TimelinePossibleClip, a7 as TouchEventKind, a8 as Tuple2, a9 as Tuple3, aa as Tuple4, ab as VideoCommand, ac as WheelEventDeltaMode, ad as WindowState, ae as createBubbleEvent, af as getPlatform, ag as getStageSize, ah as mergeEvent } from './jsx-dev-runtime-xC0sDJ2D.mjs';
|
|
5
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';
|
package/dist/lib.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 MoyuTextAttributes, E as EditableState, i as EditableChangeSource, j as SpriteProps, k as JsonValue } from './jsx-dev-runtime-
|
|
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 PlatformInfo, U as
|
|
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-xC0sDJ2D.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 PlatformInfo, U as PointerEventKind, V as RetainMode, X as ScenarioCommand, Y as ShaderCommand, Z as ShaderParam, _ as ShaderParamType, $ as ShaderSource, a0 as ShaderTimeControl, a1 as SteamCommand, a2 as SystemCommand, a3 as TextCommand, a4 as TextInteractionEvent, a5 as TextLayoutEvent, a6 as TimelinePossibleClip, a7 as TouchEventKind, a8 as Tuple2, a9 as Tuple3, aa as Tuple4, ab as VideoCommand, ac as WheelEventDeltaMode, ad as WindowState, ae as createBubbleEvent, af as getPlatform, ag as getStageSize, ah as mergeEvent } from './jsx-dev-runtime-xC0sDJ2D.js';
|
|
5
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';
|