@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.
- package/dist/{jsx-dev-runtime-BasPxDFu.d.mts → jsx-dev-runtime-xC0sDJ2D.d.mts} +26 -12
- package/dist/{jsx-dev-runtime-BasPxDFu.d.ts → jsx-dev-runtime-xC0sDJ2D.d.ts} +26 -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.cjs +6 -0
- package/dist/lib.d.mts +2 -2
- package/dist/lib.d.ts +2 -2
- package/dist/lib.mjs +7 -0
- 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';
|
|
@@ -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
|
|
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';
|
|
@@ -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
|
|
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.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-
|
|
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
|
|
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
|
|
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,
|