@momoyu-ink/kit 0.11.1 → 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.
@@ -429,7 +429,7 @@ type SteamCommand = {
429
429
 
430
430
  type ReadFormat = 'text' | 'binary';
431
431
 
432
- type WindowState = 'idle' | 'maximized' | 'minimized' | 'fullscreen';
432
+ type WindowState = "idle" | "maximized" | "minimized" | "fullscreen";
433
433
 
434
434
  type SystemCommand = {
435
435
  subCommand: 'setWindowSize';
@@ -450,6 +450,8 @@ type SystemCommand = {
450
450
  subCommand: 'getWindowInnerSize';
451
451
  } | {
452
452
  subCommand: 'getStageSize';
453
+ } | {
454
+ subCommand: 'getPlatform';
453
455
  } | {
454
456
  subCommand: 'takeSnapshot';
455
457
  width?: number;
@@ -500,6 +502,18 @@ type VideoCommand = {
500
502
  enabled: boolean;
501
503
  };
502
504
 
505
+ type PlatformInfo = {
506
+ isLinux: boolean;
507
+ isMacOS: boolean;
508
+ isAndroid: boolean;
509
+ isIOS: boolean;
510
+ isWasm: boolean;
511
+ isNative: boolean;
512
+ isDesktop: boolean;
513
+ isMobile: boolean;
514
+ isWeb: boolean;
515
+ };
516
+
503
517
  interface MoyuEvent<T extends Record<string, unknown> = Record<string, unknown>> {
504
518
  name: string;
505
519
  body: T;
@@ -608,6 +622,13 @@ type LayoutEvent = {
608
622
  height: number;
609
623
  };
610
624
 
625
+ type PointerEventKind = 'over' | 'enter' | 'leave' | 'down' | 'up' | 'click';
626
+
627
+ type TextInteractionEvent = {
628
+ id: string;
629
+ kind: PointerEventKind;
630
+ };
631
+
611
632
  type TextLayoutEvent = {
612
633
  text: string;
613
634
  width: number;
@@ -792,11 +813,6 @@ type TextProps = {
792
813
  printMode?: TextPrintMode;
793
814
  printSpeed?: number;
794
815
  parseMarkup?: boolean;
795
- /**
796
- * the writing direction of the text in the box,
797
- * only `Horizontal` (right-to-left) or `Vertical` (top-to-bottom) is valid.
798
- */
799
- direction?: 'horizontal' | 'vertical';
800
816
  /**
801
817
  * the width of box.
802
818
  */
@@ -805,10 +821,6 @@ type TextProps = {
805
821
  * the height of box.
806
822
  */
807
823
  boxHeight?: number;
808
- /**
809
- * the size of the glyph grid which each character be fit to, usually equals to `font_size`.
810
- */
811
- glyphGridSize?: number;
812
824
  fontSize?: number;
813
825
  fillColor?: string;
814
826
  lineHeight?: number;
@@ -897,7 +909,7 @@ type ShaderSlotProps = {
897
909
  height?: number;
898
910
  };
899
911
 
900
- type AnimationFormat = 'apng' | 'webp';
912
+ type AnimationFormat = 'apng' | 'webp' | 'jxl';
901
913
 
902
914
  type AnimationProps = {
903
915
  src: string | null;
@@ -986,6 +998,7 @@ type MoyuTextAttributes = TextProps & MoyuNodeAttributes & {
986
998
  onFinish?: () => void;
987
999
  onProgress?: (progress: number) => void;
988
1000
  onTextLayout?: (event: TextLayoutEvent) => void;
1001
+ onInteraction?: (event: TextInteractionEvent) => void;
989
1002
  };
990
1003
  declare namespace JSX {
991
1004
  type ElementType = string | React.JSXElementConstructor<any>;
@@ -1026,6 +1039,7 @@ declare function getStageSize(): {
1026
1039
  height: number;
1027
1040
  scaleFactor: number;
1028
1041
  };
1042
+ declare function getPlatform(): PlatformInfo;
1029
1043
  type MakeNullOptional<T> = T extends unknown ? {
1030
1044
  [K in keyof T as null extends T[K] ? never : K]: T[K];
1031
1045
  } & {
@@ -1037,4 +1051,4 @@ type _Command = AudioCommand | EditableCommand | TextCommand | GamepadCommand |
1037
1051
  type Command = MakeNullOptional<_Command>;
1038
1052
  type MaybePromise = any;
1039
1053
 
1040
- export { type SteamCommand 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 RetainMode as R, type ShaderDirection as S, type TouchEvent as T, type ScenarioCommand as U, type ShaderCommand as V, type WheelEvent as W, type ShaderParam as X, type ShaderParamType as Y, type ShaderSource as Z, type ShaderTimeControl as _, type MaybePromise as a, type SystemCommand as a0, type TextCommand as a1, type TextLayoutEvent as a2, type TimelinePossibleClip as a3, type TouchEventKind as a4, type Tuple2 as a5, type Tuple3 as a6, type Tuple4 as a7, type VideoCommand as a8, type WheelEventDeltaMode as a9, type WindowState as aa, createBubbleEvent as ab, getStageSize as ac, mergeEvent as ad, 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 };
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 = 'idle' | 'maximized' | 'minimized' | 'fullscreen';
432
+ type WindowState = "idle" | "maximized" | "minimized" | "fullscreen";
433
433
 
434
434
  type SystemCommand = {
435
435
  subCommand: 'setWindowSize';
@@ -450,6 +450,8 @@ type SystemCommand = {
450
450
  subCommand: 'getWindowInnerSize';
451
451
  } | {
452
452
  subCommand: 'getStageSize';
453
+ } | {
454
+ subCommand: 'getPlatform';
453
455
  } | {
454
456
  subCommand: 'takeSnapshot';
455
457
  width?: number;
@@ -500,6 +502,18 @@ type VideoCommand = {
500
502
  enabled: boolean;
501
503
  };
502
504
 
505
+ type PlatformInfo = {
506
+ isLinux: boolean;
507
+ isMacOS: boolean;
508
+ isAndroid: boolean;
509
+ isIOS: boolean;
510
+ isWasm: boolean;
511
+ isNative: boolean;
512
+ isDesktop: boolean;
513
+ isMobile: boolean;
514
+ isWeb: boolean;
515
+ };
516
+
503
517
  interface MoyuEvent<T extends Record<string, unknown> = Record<string, unknown>> {
504
518
  name: string;
505
519
  body: T;
@@ -608,6 +622,13 @@ type LayoutEvent = {
608
622
  height: number;
609
623
  };
610
624
 
625
+ type PointerEventKind = 'over' | 'enter' | 'leave' | 'down' | 'up' | 'click';
626
+
627
+ type TextInteractionEvent = {
628
+ id: string;
629
+ kind: PointerEventKind;
630
+ };
631
+
611
632
  type TextLayoutEvent = {
612
633
  text: string;
613
634
  width: number;
@@ -792,11 +813,6 @@ type TextProps = {
792
813
  printMode?: TextPrintMode;
793
814
  printSpeed?: number;
794
815
  parseMarkup?: boolean;
795
- /**
796
- * the writing direction of the text in the box,
797
- * only `Horizontal` (right-to-left) or `Vertical` (top-to-bottom) is valid.
798
- */
799
- direction?: 'horizontal' | 'vertical';
800
816
  /**
801
817
  * the width of box.
802
818
  */
@@ -805,10 +821,6 @@ type TextProps = {
805
821
  * the height of box.
806
822
  */
807
823
  boxHeight?: number;
808
- /**
809
- * the size of the glyph grid which each character be fit to, usually equals to `font_size`.
810
- */
811
- glyphGridSize?: number;
812
824
  fontSize?: number;
813
825
  fillColor?: string;
814
826
  lineHeight?: number;
@@ -897,7 +909,7 @@ type ShaderSlotProps = {
897
909
  height?: number;
898
910
  };
899
911
 
900
- type AnimationFormat = 'apng' | 'webp';
912
+ type AnimationFormat = 'apng' | 'webp' | 'jxl';
901
913
 
902
914
  type AnimationProps = {
903
915
  src: string | null;
@@ -986,6 +998,7 @@ type MoyuTextAttributes = TextProps & MoyuNodeAttributes & {
986
998
  onFinish?: () => void;
987
999
  onProgress?: (progress: number) => void;
988
1000
  onTextLayout?: (event: TextLayoutEvent) => void;
1001
+ onInteraction?: (event: TextInteractionEvent) => void;
989
1002
  };
990
1003
  declare namespace JSX {
991
1004
  type ElementType = string | React.JSXElementConstructor<any>;
@@ -1026,6 +1039,7 @@ declare function getStageSize(): {
1026
1039
  height: number;
1027
1040
  scaleFactor: number;
1028
1041
  };
1042
+ declare function getPlatform(): PlatformInfo;
1029
1043
  type MakeNullOptional<T> = T extends unknown ? {
1030
1044
  [K in keyof T as null extends T[K] ? never : K]: T[K];
1031
1045
  } & {
@@ -1037,4 +1051,4 @@ type _Command = AudioCommand | EditableCommand | TextCommand | GamepadCommand |
1037
1051
  type Command = MakeNullOptional<_Command>;
1038
1052
  type MaybePromise = any;
1039
1053
 
1040
- export { type SteamCommand 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 RetainMode as R, type ShaderDirection as S, type TouchEvent as T, type ScenarioCommand as U, type ShaderCommand as V, type WheelEvent as W, type ShaderParam as X, type ShaderParamType as Y, type ShaderSource as Z, type ShaderTimeControl as _, type MaybePromise as a, type SystemCommand as a0, type TextCommand as a1, type TextLayoutEvent as a2, type TimelinePossibleClip as a3, type TouchEventKind as a4, type Tuple2 as a5, type Tuple3 as a6, type Tuple4 as a7, type VideoCommand as a8, type WheelEventDeltaMode as a9, type WindowState as aa, createBubbleEvent as ab, getStageSize as ac, mergeEvent as ad, 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 };
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 };
@@ -1,4 +1,4 @@
1
1
  export { Fragment, jsxDEV } from 'react/jsx-dev-runtime';
2
- export { J as JSX } from './jsx-dev-runtime-BasPxDFu.mjs';
2
+ export { J as JSX } from './jsx-dev-runtime-xC0sDJ2D.mjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -1,4 +1,4 @@
1
1
  export { Fragment, jsxDEV } from 'react/jsx-dev-runtime';
2
- export { J as JSX } from './jsx-dev-runtime-BasPxDFu.js';
2
+ export { J as JSX } from './jsx-dev-runtime-xC0sDJ2D.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -1,4 +1,4 @@
1
1
  export { Fragment, jsx, jsxs } from 'react/jsx-runtime';
2
- export { J as JSX } from './jsx-dev-runtime-BasPxDFu.mjs';
2
+ export { J as JSX } from './jsx-dev-runtime-xC0sDJ2D.mjs';
3
3
  import 'react/jsx-dev-runtime';
4
4
  import 'react';
@@ -1,4 +1,4 @@
1
1
  export { Fragment, jsx, jsxs } from 'react/jsx-runtime';
2
- export { J as JSX } from './jsx-dev-runtime-BasPxDFu.js';
2
+ export { J as JSX } from './jsx-dev-runtime-xC0sDJ2D.js';
3
3
  import 'react/jsx-dev-runtime';
4
4
  import 'react';
package/dist/lib.cjs CHANGED
@@ -60,6 +60,7 @@ __export(lib_exports, {
60
60
  fastForwardState: () => fastForwardState,
61
61
  getAppStateAdapter: () => getAppStateAdapter,
62
62
  getNavigator: () => getNavigator,
63
+ getPlatform: () => getPlatform,
63
64
  getSeekingType: () => getSeekingType,
64
65
  getStageSize: () => getStageSize,
65
66
  getUiData: () => getUiData,
@@ -983,6 +984,11 @@ function getStageSize() {
983
984
  });
984
985
  return stageSize;
985
986
  }
987
+ function getPlatform() {
988
+ return executePluginCommand("system", {
989
+ subCommand: "getPlatform"
990
+ });
991
+ }
986
992
  function mergeEvent(handlers, defaultHandler) {
987
993
  return (event) => {
988
994
  if (handlers) {
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-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';
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-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';
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';
package/dist/lib.mjs CHANGED
@@ -48,6 +48,7 @@ __export(lib_exports, {
48
48
  fastForwardState: () => fastForwardState,
49
49
  getAppStateAdapter: () => getAppStateAdapter,
50
50
  getNavigator: () => getNavigator,
51
+ getPlatform: () => getPlatform,
51
52
  getSeekingType: () => getSeekingType,
52
53
  getStageSize: () => getStageSize,
53
54
  getUiData: () => getUiData,
@@ -977,6 +978,11 @@ function getStageSize() {
977
978
  });
978
979
  return stageSize;
979
980
  }
981
+ function getPlatform() {
982
+ return executePluginCommand("system", {
983
+ subCommand: "getPlatform"
984
+ });
985
+ }
980
986
  function mergeEvent(handlers, defaultHandler) {
981
987
  return (event) => {
982
988
  if (handlers) {
@@ -4117,6 +4123,7 @@ export {
4117
4123
  fastForwardState,
4118
4124
  getAppStateAdapter,
4119
4125
  getNavigator,
4126
+ getPlatform,
4120
4127
  getSeekingType,
4121
4128
  getStageSize,
4122
4129
  getUiData,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momoyu-ink/kit",
3
- "version": "0.11.1",
3
+ "version": "0.11.3",
4
4
  "description": "Software Development Kit of Moyu Visual Novel Engine",
5
5
  "main": "dist/lib.cjs",
6
6
  "module": "dist/lib.mjs",