@gorilla-engine-sdk/gorilla-engine-react 1.6.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.
Files changed (79) hide show
  1. package/LICENSE.md +64 -0
  2. package/README.md +345 -0
  3. package/dist/ComponentFactory.d.ts +180 -0
  4. package/dist/ComponentFactory.js +118 -0
  5. package/dist/GEReact.d.ts +53 -0
  6. package/dist/GEReact.js +237 -0
  7. package/dist/Root.d.ts +15 -0
  8. package/dist/Root.js +52 -0
  9. package/dist/hooks/useInstrument.d.ts +27 -0
  10. package/dist/hooks/useInstrument.js +109 -0
  11. package/dist/hooks/useInstrumentProperty.d.ts +47 -0
  12. package/dist/hooks/useInstrumentProperty.js +113 -0
  13. package/dist/index.d.ts +50 -0
  14. package/dist/index.js +67 -0
  15. package/dist/instance.d.ts +18 -0
  16. package/dist/instance.js +16 -0
  17. package/dist/nativeWrappers/GEAmpEnv.d.ts +9 -0
  18. package/dist/nativeWrappers/GEAmpEnv.js +12 -0
  19. package/dist/nativeWrappers/GEBarStepEditor.d.ts +12 -0
  20. package/dist/nativeWrappers/GEBarStepEditor.js +16 -0
  21. package/dist/nativeWrappers/GEButton.d.ts +17 -0
  22. package/dist/nativeWrappers/GEButton.js +21 -0
  23. package/dist/nativeWrappers/GEComboBox.d.ts +18 -0
  24. package/dist/nativeWrappers/GEComboBox.js +16 -0
  25. package/dist/nativeWrappers/GECurve.d.ts +9 -0
  26. package/dist/nativeWrappers/GECurve.js +12 -0
  27. package/dist/nativeWrappers/GEDragContainer.d.ts +24 -0
  28. package/dist/nativeWrappers/GEDragContainer.js +22 -0
  29. package/dist/nativeWrappers/GEDragTarget.d.ts +20 -0
  30. package/dist/nativeWrappers/GEDragTarget.js +20 -0
  31. package/dist/nativeWrappers/GEDropZone.d.ts +22 -0
  32. package/dist/nativeWrappers/GEDropZone.js +20 -0
  33. package/dist/nativeWrappers/GEKnob.d.ts +18 -0
  34. package/dist/nativeWrappers/GEKnob.js +19 -0
  35. package/dist/nativeWrappers/GELabel.d.ts +16 -0
  36. package/dist/nativeWrappers/GELabel.js +20 -0
  37. package/dist/nativeWrappers/GELevelMeter.d.ts +8 -0
  38. package/dist/nativeWrappers/GELevelMeter.js +12 -0
  39. package/dist/nativeWrappers/GEListBox.d.ts +17 -0
  40. package/dist/nativeWrappers/GEListBox.js +15 -0
  41. package/dist/nativeWrappers/GELottieAnimation.d.ts +16 -0
  42. package/dist/nativeWrappers/GELottieAnimation.js +17 -0
  43. package/dist/nativeWrappers/GEMappingEditor.d.ts +24 -0
  44. package/dist/nativeWrappers/GEMappingEditor.js +22 -0
  45. package/dist/nativeWrappers/GEMidiKeyboard.d.ts +8 -0
  46. package/dist/nativeWrappers/GEMidiKeyboard.js +12 -0
  47. package/dist/nativeWrappers/GEPad.d.ts +15 -0
  48. package/dist/nativeWrappers/GEPad.js +16 -0
  49. package/dist/nativeWrappers/GERubberband.d.ts +16 -0
  50. package/dist/nativeWrappers/GERubberband.js +17 -0
  51. package/dist/nativeWrappers/GEScrollView.d.ts +26 -0
  52. package/dist/nativeWrappers/GEScrollView.js +21 -0
  53. package/dist/nativeWrappers/GESliceEditor.d.ts +30 -0
  54. package/dist/nativeWrappers/GESliceEditor.js +23 -0
  55. package/dist/nativeWrappers/GESlider.d.ts +20 -0
  56. package/dist/nativeWrappers/GESlider.js +20 -0
  57. package/dist/nativeWrappers/GEStepEditor.d.ts +12 -0
  58. package/dist/nativeWrappers/GEStepEditor.js +16 -0
  59. package/dist/nativeWrappers/GETagBrowser.d.ts +15 -0
  60. package/dist/nativeWrappers/GETagBrowser.js +16 -0
  61. package/dist/nativeWrappers/GETagEditor.d.ts +15 -0
  62. package/dist/nativeWrappers/GETagEditor.js +16 -0
  63. package/dist/nativeWrappers/GETextBox.d.ts +22 -0
  64. package/dist/nativeWrappers/GETextBox.js +20 -0
  65. package/dist/nativeWrappers/GEToggle.d.ts +18 -0
  66. package/dist/nativeWrappers/GEToggle.js +16 -0
  67. package/dist/nativeWrappers/GEWaveform.d.ts +17 -0
  68. package/dist/nativeWrappers/GEWaveform.js +17 -0
  69. package/dist/nativeWrappers/GEXYPad.d.ts +16 -0
  70. package/dist/nativeWrappers/GEXYPad.js +17 -0
  71. package/dist/nativeWrappers/common/GEComponent.d.ts +104 -0
  72. package/dist/nativeWrappers/common/GEComponent.js +226 -0
  73. package/dist/nativeWrappers/common/ReactElementProps.d.ts +20 -0
  74. package/dist/nativeWrappers/common/ReactElementProps.js +3 -0
  75. package/dist/nativeWrappers/common/clickableHandlerMappings.d.ts +40 -0
  76. package/dist/nativeWrappers/common/clickableHandlerMappings.js +21 -0
  77. package/dist/nativeWrappers/common/keyableHandlerMappings.d.ts +16 -0
  78. package/dist/nativeWrappers/common/keyableHandlerMappings.js +13 -0
  79. package/package.json +59 -0
@@ -0,0 +1,18 @@
1
+ import { GEComponent } from './common/GEComponent';
2
+ import { ClickableHandlers } from '../nativeWrappers/common/clickableHandlerMappings';
3
+ import { ReactElementProps } from './common/ReactElementProps';
4
+ /**
5
+ * Props for {@link GEKnob}.
6
+ * Combines native KnobProps with React element props, click handlers, and a value change callback.
7
+ * @property onChange - Fires when the knob value changes (maps to native `value` event).
8
+ */
9
+ export declare type GEKnobProps = GorillaEngine.UI.KnobProps & ReactElementProps & ClickableHandlers & {
10
+ onChange?: any;
11
+ };
12
+ /**
13
+ * Wraps the native `GorillaEngine.UI.Knob` component.
14
+ * Maps `onChange` to the native `value` event. Supports clickable handler mappings.
15
+ */
16
+ export declare class GEKnob extends GEComponent<GorillaEngine.UI.Knob> {
17
+ constructor(props: Partial<GEKnobProps>);
18
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GEKnob = void 0;
4
+ const GEComponent_1 = require("./common/GEComponent");
5
+ const clickableHandlerMappings_1 = require("../nativeWrappers/common/clickableHandlerMappings");
6
+ /**
7
+ * Wraps the native `GorillaEngine.UI.Knob` component.
8
+ * Maps `onChange` to the native `value` event. Supports clickable handler mappings.
9
+ */
10
+ class GEKnob extends GEComponent_1.GEComponent {
11
+ constructor(props) {
12
+ super(GorillaEngine.UI.Knob, props, {
13
+ ...clickableHandlerMappings_1.clickableHandlerMappings,
14
+ onChange: 'value'
15
+ });
16
+ }
17
+ }
18
+ exports.GEKnob = GEKnob;
19
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR0VLbm9iLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL25hdGl2ZVdyYXBwZXJzL0dFS25vYi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxzREFBbUQ7QUFDbkQsZ0dBQWdIO0FBWWhIOzs7R0FHRztBQUNILE1BQWEsTUFBTyxTQUFRLHlCQUFrQztJQUM1RCxZQUFZLEtBQTJCO1FBQ3JDLEtBQUssQ0FBQyxhQUFhLENBQUMsRUFBRSxDQUFDLElBQUksRUFDekIsS0FBSyxFQUNMO1lBQ0UsR0FBRyxtREFBd0I7WUFDM0IsUUFBUSxFQUFFLE9BQU87U0FDbEIsQ0FBQyxDQUFDO0lBQ1AsQ0FBQztDQUNGO0FBVEQsd0JBU0MifQ==
@@ -0,0 +1,16 @@
1
+ import { ReactElementProps } from './common/ReactElementProps';
2
+ import { GEComponent } from './common/GEComponent';
3
+ import { ClickableHandlers } from './common/clickableHandlerMappings';
4
+ import { KeyableHandlers } from './common/keyableHandlerMappings';
5
+ /**
6
+ * Props for {@link GELabel}.
7
+ * Combines native LabelProps with React element props, click handlers, and key handlers.
8
+ */
9
+ export type GELabelProps = GorillaEngine.UI.LabelProps & ReactElementProps & ClickableHandlers & KeyableHandlers;
10
+ /**
11
+ * Wraps the native `GorillaEngine.UI.Label` component.
12
+ * Renders a text label with clickable and keyable handler support.
13
+ */
14
+ export declare class GELabel extends GEComponent<GorillaEngine.UI.Label> {
15
+ constructor(props: Partial<GELabelProps>);
16
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GELabel = void 0;
4
+ const GEComponent_1 = require("./common/GEComponent");
5
+ const clickableHandlerMappings_1 = require("./common/clickableHandlerMappings");
6
+ const keyableHandlerMappings_1 = require("./common/keyableHandlerMappings");
7
+ /**
8
+ * Wraps the native `GorillaEngine.UI.Label` component.
9
+ * Renders a text label with clickable and keyable handler support.
10
+ */
11
+ class GELabel extends GEComponent_1.GEComponent {
12
+ constructor(props) {
13
+ super(GorillaEngine.UI.Label, props, {
14
+ ...clickableHandlerMappings_1.clickableHandlerMappings,
15
+ ...keyableHandlerMappings_1.keyableHandlerMappings,
16
+ });
17
+ }
18
+ }
19
+ exports.GELabel = GELabel;
20
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR0VMYWJlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9uYXRpdmVXcmFwcGVycy9HRUxhYmVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLHNEQUFtRDtBQUNuRCxnRkFBZ0c7QUFDaEcsNEVBQTBGO0FBVzFGOzs7R0FHRztBQUNILE1BQWEsT0FBUSxTQUFRLHlCQUFtQztJQUM5RCxZQUFZLEtBQTRCO1FBQ3RDLEtBQUssQ0FBQyxhQUFhLENBQUMsRUFBRSxDQUFDLEtBQUssRUFBRSxLQUFLLEVBQUU7WUFDbkMsR0FBRyxtREFBd0I7WUFDM0IsR0FBRywrQ0FBc0I7U0FDMUIsQ0FBQyxDQUFDO0lBQ0wsQ0FBQztDQUNGO0FBUEQsMEJBT0MifQ==
@@ -0,0 +1,8 @@
1
+ import { ReactElementProps } from './common/ReactElementProps';
2
+ import { GEComponent } from './common/GEComponent';
3
+ /** Props for {@link GELevelMeter}, combining native LevelMeterProps with React element props. */
4
+ export type GELevelMeterProps = GorillaEngine.UI.LevelMeterProps & ReactElementProps;
5
+ /** React wrapper for the native {@link GorillaEngine.UI.LevelMeter} component. */
6
+ export declare class GELevelMeter extends GEComponent<GorillaEngine.UI.LevelMeter> {
7
+ constructor(props: Partial<GELevelMeterProps>);
8
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GELevelMeter = void 0;
4
+ const GEComponent_1 = require("./common/GEComponent");
5
+ /** React wrapper for the native {@link GorillaEngine.UI.LevelMeter} component. */
6
+ class GELevelMeter extends GEComponent_1.GEComponent {
7
+ constructor(props) {
8
+ super(GorillaEngine.UI.LevelMeter, props);
9
+ }
10
+ }
11
+ exports.GELevelMeter = GELevelMeter;
12
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR0VMZXZlbE1ldGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL25hdGl2ZVdyYXBwZXJzL0dFTGV2ZWxNZXRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFFQSxzREFBbUQ7QUFLbkQsa0ZBQWtGO0FBQ2xGLE1BQWEsWUFBYSxTQUFRLHlCQUF3QztJQUN4RSxZQUFZLEtBQWlDO1FBQzNDLEtBQUssQ0FBQyxhQUFhLENBQUMsRUFBRSxDQUFDLFVBQVUsRUFBRSxLQUFLLENBQUMsQ0FBQztJQUM1QyxDQUFDO0NBQ0Y7QUFKRCxvQ0FJQyJ9
@@ -0,0 +1,17 @@
1
+ import { ReactElementProps } from './common/ReactElementProps';
2
+ import { GEComponent } from './common/GEComponent';
3
+ /**
4
+ * Props for {@link GEListBox}, combining native ListBoxProps with React element props
5
+ * and a custom row-click handler.
6
+ */
7
+ export declare type GEListBoxProps = GorillaEngine.UI.ListBoxProps & ReactElementProps & {
8
+ /** Handler called when a row is clicked. Mapped to the native `rowClicked` event. */
9
+ onRowClicked?: any;
10
+ };
11
+ /**
12
+ * React wrapper for the native {@link GorillaEngine.UI.ListBox} component.
13
+ * Maps `onRowClicked` to the native `rowClicked` event.
14
+ */
15
+ export declare class GEListBox extends GEComponent<GorillaEngine.UI.ListBox> {
16
+ constructor(props: Partial<GEListBoxProps>);
17
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GEListBox = void 0;
4
+ const GEComponent_1 = require("./common/GEComponent");
5
+ /**
6
+ * React wrapper for the native {@link GorillaEngine.UI.ListBox} component.
7
+ * Maps `onRowClicked` to the native `rowClicked` event.
8
+ */
9
+ class GEListBox extends GEComponent_1.GEComponent {
10
+ constructor(props) {
11
+ super(GorillaEngine.UI.ListBox, props, { onRowClicked: 'rowClicked' });
12
+ }
13
+ }
14
+ exports.GEListBox = GEListBox;
15
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR0VMaXN0Qm94LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL25hdGl2ZVdyYXBwZXJzL0dFTGlzdEJveC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFHQSxzREFBa0Q7QUFXbEQ7OztHQUdHO0FBQ0gsTUFBYSxTQUFVLFNBQVEseUJBQXFDO0lBQ2xFLFlBQVksS0FBOEI7UUFDeEMsS0FBSyxDQUFDLGFBQWEsQ0FBQyxFQUFFLENBQUMsT0FBTyxFQUFFLEtBQUssRUFBRSxFQUFFLFlBQVksRUFBRSxZQUFZLEVBQUMsQ0FBQyxDQUFDO0lBQ3hFLENBQUM7Q0FDRjtBQUpELDhCQUlDIn0=
@@ -0,0 +1,16 @@
1
+ import { ReactElementProps } from './common/ReactElementProps';
2
+ import { GEComponent } from './common/GEComponent';
3
+ import { KeyableHandlers } from './common/keyableHandlerMappings';
4
+ /**
5
+ * Props for the {@link GELottieAnimation} component.
6
+ * Combines native LottieAnimation props with React element props and keyboard handlers.
7
+ */
8
+ export type GELottieAnimationProps = GorillaEngine.UI.LottieAnimationProps & ReactElementProps & KeyableHandlers;
9
+ /**
10
+ * React wrapper for the Gorilla Engine LottieAnimation component.
11
+ * Renders a Lottie animation within the UI.
12
+ */
13
+ export declare class GELottieAnimation extends GEComponent<GorillaEngine.UI.LottieAnimation> {
14
+ /** @param props - Partial Lottie animation configuration and keyboard handlers. */
15
+ constructor(props: Partial<GELottieAnimationProps>);
16
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GELottieAnimation = void 0;
4
+ const GEComponent_1 = require("./common/GEComponent");
5
+ const keyableHandlerMappings_1 = require("./common/keyableHandlerMappings");
6
+ /**
7
+ * React wrapper for the Gorilla Engine LottieAnimation component.
8
+ * Renders a Lottie animation within the UI.
9
+ */
10
+ class GELottieAnimation extends GEComponent_1.GEComponent {
11
+ /** @param props - Partial Lottie animation configuration and keyboard handlers. */
12
+ constructor(props) {
13
+ super(GorillaEngine.UI.LottieAnimation, props, keyableHandlerMappings_1.keyableHandlerMappings);
14
+ }
15
+ }
16
+ exports.GELottieAnimation = GELottieAnimation;
17
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR0VMb3R0aWVBbmltYXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbmF0aXZlV3JhcHBlcnMvR0VMb3R0aWVBbmltYXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0Esc0RBQW1EO0FBQ25ELDRFQUEwRjtBQVUxRjs7O0dBR0c7QUFDSCxNQUFhLGlCQUFrQixTQUFRLHlCQUE2QztJQUNsRixtRkFBbUY7SUFDbkYsWUFBWSxLQUFzQztRQUNoRCxLQUFLLENBQUMsYUFBYSxDQUFDLEVBQUUsQ0FBQyxlQUFlLEVBQUUsS0FBSyxFQUFFLCtDQUFzQixDQUFDLENBQUM7SUFDekUsQ0FBQztDQUNGO0FBTEQsOENBS0MifQ==
@@ -0,0 +1,24 @@
1
+ import { ReactElementProps } from './common/ReactElementProps';
2
+ import { GEComponent } from './common/GEComponent';
3
+ import { ClickableHandlers } from './common/clickableHandlerMappings';
4
+ /**
5
+ * Props for the {@link GEMappingEditor} component.
6
+ * Combines native MappingEditor props with React element props, clickable handlers,
7
+ * and zone/key event callbacks.
8
+ */
9
+ export type GEMappingEditorProps = GorillaEngine.UI.MappingEditorProps & ReactElementProps & ClickableHandlers & {
10
+ /** Called when a zone is selected in the editor. */
11
+ onSelectedZone?: (args: any) => void;
12
+ /** Called when a key is pressed within the editor. */
13
+ onKeyPressed?: (value: string) => void;
14
+ /** Called when a zone's properties are changed. */
15
+ onChangedZone?: (args: any) => void;
16
+ };
17
+ /**
18
+ * React wrapper for the Gorilla Engine MappingEditor component.
19
+ * Provides a visual editor for sample/zone key and velocity mappings.
20
+ */
21
+ export declare class GEMappingEditor extends GEComponent<GorillaEngine.UI.MappingEditor> {
22
+ /** @param props - Partial mapping editor configuration and event handlers. */
23
+ constructor(props: Partial<GEMappingEditorProps>);
24
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GEMappingEditor = void 0;
4
+ const GEComponent_1 = require("./common/GEComponent");
5
+ const clickableHandlerMappings_1 = require("./common/clickableHandlerMappings");
6
+ /**
7
+ * React wrapper for the Gorilla Engine MappingEditor component.
8
+ * Provides a visual editor for sample/zone key and velocity mappings.
9
+ */
10
+ class GEMappingEditor extends GEComponent_1.GEComponent {
11
+ /** @param props - Partial mapping editor configuration and event handlers. */
12
+ constructor(props) {
13
+ super(GorillaEngine.UI.MappingEditor, props, {
14
+ ...clickableHandlerMappings_1.clickableHandlerMappings,
15
+ onSelectedZone: 'zoneSelected',
16
+ onKeyPressed: 'keyPressed',
17
+ onChangedZone: 'zoneChanged',
18
+ });
19
+ }
20
+ }
21
+ exports.GEMappingEditor = GEMappingEditor;
22
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR0VNYXBwaW5nRWRpdG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL25hdGl2ZVdyYXBwZXJzL0dFTWFwcGluZ0VkaXRvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSxzREFBbUQ7QUFDbkQsZ0ZBQWdHO0FBa0JoRzs7O0dBR0c7QUFDSCxNQUFhLGVBQWdCLFNBQVEseUJBQTJDO0lBQzlFLDhFQUE4RTtJQUM5RSxZQUFZLEtBQW9DO1FBQzlDLEtBQUssQ0FBQyxhQUFhLENBQUMsRUFBRSxDQUFDLGFBQWEsRUFBRSxLQUFLLEVBQUU7WUFDM0MsR0FBRyxtREFBd0I7WUFDM0IsY0FBYyxFQUFFLGNBQWM7WUFDOUIsWUFBWSxFQUFFLFlBQVk7WUFDMUIsYUFBYSxFQUFFLGFBQWE7U0FDN0IsQ0FBQyxDQUFDO0lBQ0wsQ0FBQztDQUNGO0FBVkQsMENBVUMifQ==
@@ -0,0 +1,8 @@
1
+ import { ReactElementProps } from './common/ReactElementProps';
2
+ import { GEComponent } from './common/GEComponent';
3
+ /** Props for {@link GEMidiKeyboard}, combining native MidiKeyboardProps with React element props. */
4
+ export type GEMidiKeyboardProps = GorillaEngine.UI.MidiKeyboardProps & ReactElementProps;
5
+ /** React wrapper for the native {@link GorillaEngine.UI.MidiKeyboard} component. */
6
+ export declare class GEMidiKeyboard extends GEComponent<GorillaEngine.UI.MidiKeyboard> {
7
+ constructor(props: Partial<GEMidiKeyboardProps>);
8
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GEMidiKeyboard = void 0;
4
+ const GEComponent_1 = require("./common/GEComponent");
5
+ /** React wrapper for the native {@link GorillaEngine.UI.MidiKeyboard} component. */
6
+ class GEMidiKeyboard extends GEComponent_1.GEComponent {
7
+ constructor(props) {
8
+ super(GorillaEngine.UI.MidiKeyboard, props);
9
+ }
10
+ }
11
+ exports.GEMidiKeyboard = GEMidiKeyboard;
12
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR0VNaWRpS2V5Ym9hcmQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbmF0aXZlV3JhcHBlcnMvR0VNaWRpS2V5Ym9hcmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBRUEsc0RBQW1EO0FBS25ELG9GQUFvRjtBQUNwRixNQUFhLGNBQWUsU0FBUSx5QkFBMEM7SUFDNUUsWUFBWSxLQUFtQztRQUM3QyxLQUFLLENBQUMsYUFBYSxDQUFDLEVBQUUsQ0FBQyxZQUFZLEVBQUUsS0FBSyxDQUFDLENBQUM7SUFDOUMsQ0FBQztDQUVGO0FBTEQsd0NBS0MifQ==
@@ -0,0 +1,15 @@
1
+ import { ClickableHandlers } from './common/clickableHandlerMappings';
2
+ import { GEComponent } from './common/GEComponent';
3
+ import { ReactElementProps } from './common/ReactElementProps';
4
+ /**
5
+ * Props for {@link GEPad}.
6
+ * Combines native PadProps with React element props and click handlers.
7
+ */
8
+ export type GEPadProps = GorillaEngine.UI.PadProps & ReactElementProps & ClickableHandlers;
9
+ /**
10
+ * Wraps the native `GorillaEngine.UI.Pad` component.
11
+ * Supports clickable handler mappings.
12
+ */
13
+ export declare class GEPad extends GEComponent<GorillaEngine.UI.Pad> {
14
+ constructor(props: Partial<GEPadProps>);
15
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GEPad = void 0;
4
+ const clickableHandlerMappings_1 = require("./common/clickableHandlerMappings");
5
+ const GEComponent_1 = require("./common/GEComponent");
6
+ /**
7
+ * Wraps the native `GorillaEngine.UI.Pad` component.
8
+ * Supports clickable handler mappings.
9
+ */
10
+ class GEPad extends GEComponent_1.GEComponent {
11
+ constructor(props) {
12
+ super(GorillaEngine.UI.Pad, props, clickableHandlerMappings_1.clickableHandlerMappings);
13
+ }
14
+ }
15
+ exports.GEPad = GEPad;
16
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR0VQYWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbmF0aXZlV3JhcHBlcnMvR0VQYWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsZ0ZBQWdHO0FBQ2hHLHNEQUFtRDtBQVNuRDs7O0dBR0c7QUFDSCxNQUFhLEtBQU0sU0FBUSx5QkFBaUM7SUFDMUQsWUFBWSxLQUEwQjtRQUNwQyxLQUFLLENBQUMsYUFBYSxDQUFDLEVBQUUsQ0FBQyxHQUFHLEVBQUUsS0FBSyxFQUFFLG1EQUF3QixDQUFDLENBQUM7SUFDL0QsQ0FBQztDQUNGO0FBSkQsc0JBSUMifQ==
@@ -0,0 +1,16 @@
1
+ import { ReactElementProps } from './common/ReactElementProps';
2
+ import { GEComponent } from './common/GEComponent';
3
+ /**
4
+ * Props for the {@link GERubberband} component.
5
+ * Combines native Rubberband props with React element props.
6
+ */
7
+ export type GERubberbandProps = GorillaEngine.UI.RubberbandProps & ReactElementProps;
8
+ /**
9
+ * React wrapper for the Gorilla Engine Rubberband component.
10
+ * A control that enables you to have a mouse drag event span over N child controls.
11
+ * If you want to implement a Graphic EQ for example where the user can set the curve on the faders with a single mouse movement, you need to put the sliders into a Rubberband control.
12
+ */
13
+ export declare class GERubberband extends GEComponent<GorillaEngine.UI.Rubberband> {
14
+ /** @param props - Partial rubberband configuration. */
15
+ constructor(props: Partial<GERubberbandProps>);
16
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GERubberband = void 0;
4
+ const GEComponent_1 = require("./common/GEComponent");
5
+ /**
6
+ * React wrapper for the Gorilla Engine Rubberband component.
7
+ * A control that enables you to have a mouse drag event span over N child controls.
8
+ * If you want to implement a Graphic EQ for example where the user can set the curve on the faders with a single mouse movement, you need to put the sliders into a Rubberband control.
9
+ */
10
+ class GERubberband extends GEComponent_1.GEComponent {
11
+ /** @param props - Partial rubberband configuration. */
12
+ constructor(props) {
13
+ super(GorillaEngine.UI.Rubberband, props);
14
+ }
15
+ }
16
+ exports.GERubberband = GERubberband;
17
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR0VSdWJiZXJiYW5kLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL25hdGl2ZVdyYXBwZXJzL0dFUnViYmVyYmFuZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSxzREFBbUQ7QUFRbkQ7Ozs7R0FJRztBQUNILE1BQWEsWUFBYSxTQUFRLHlCQUF3QztJQUN4RSx1REFBdUQ7SUFDdkQsWUFBWSxLQUFpQztRQUMzQyxLQUFLLENBQUMsYUFBYSxDQUFDLEVBQUUsQ0FBQyxVQUFVLEVBQUUsS0FBSyxDQUFDLENBQUM7SUFDNUMsQ0FBQztDQUNGO0FBTEQsb0NBS0MifQ==
@@ -0,0 +1,26 @@
1
+ import { ReactElementProps } from './common/ReactElementProps';
2
+ import { GEComponent } from './common/GEComponent';
3
+ /**
4
+ * Scroll position event handlers for {@link GEScrollView}.
5
+ * @property onScrollPositionX - Fires when the horizontal scroll position changes.
6
+ * @property onScrollPositionY - Fires when the vertical scroll position changes.
7
+ * @property onScrollPosition - Fires when the scroll position changes.
8
+ */
9
+ interface scrollPosHandlers {
10
+ onScrollPositionX: (pos: number) => void;
11
+ onScrollPositionY: (pos: number) => void;
12
+ onScrollPosition: (pos: number) => void;
13
+ }
14
+ /**
15
+ * Props for {@link GEScrollView}.
16
+ * Combines native ScrollViewProps with React element props and scroll position handlers.
17
+ */
18
+ export declare type GEScrollViewProps = GorillaEngine.UI.ScrollViewProps & ReactElementProps & scrollPosHandlers;
19
+ /**
20
+ * Wraps the native `GorillaEngine.UI.ScrollView` component.
21
+ * Maps scroll position callbacks to native scroll events.
22
+ */
23
+ export declare class GEScrollView extends GEComponent<GorillaEngine.UI.ScrollView> {
24
+ constructor(props: Partial<GEScrollViewProps>);
25
+ }
26
+ export {};
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GEScrollView = void 0;
4
+ const GEComponent_1 = require("./common/GEComponent");
5
+ /** Maps React scroll position callbacks to native scroll event names. */
6
+ const scrollPosHandleMappings = {
7
+ onScrollPositionX: 'scrollPositionX',
8
+ onScrollPositionY: 'scrollPositionY',
9
+ onScrollPosition: 'scrollPosition',
10
+ };
11
+ /**
12
+ * Wraps the native `GorillaEngine.UI.ScrollView` component.
13
+ * Maps scroll position callbacks to native scroll events.
14
+ */
15
+ class GEScrollView extends GEComponent_1.GEComponent {
16
+ constructor(props) {
17
+ super(GorillaEngine.UI.ScrollView, props, scrollPosHandleMappings);
18
+ }
19
+ }
20
+ exports.GEScrollView = GEScrollView;
21
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR0VTY3JvbGxWaWV3LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL25hdGl2ZVdyYXBwZXJzL0dFU2Nyb2xsVmlldy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSxzREFBbUQ7QUFFbkQseUVBQXlFO0FBQ3pFLE1BQU0sdUJBQXVCLEdBQUc7SUFDOUIsaUJBQWlCLEVBQUUsaUJBQWlCO0lBQ3BDLGlCQUFpQixFQUFFLGlCQUFpQjtJQUNwQyxnQkFBZ0IsRUFBRSxnQkFBZ0I7Q0FDbkMsQ0FBQztBQW9CRjs7O0dBR0c7QUFDSCxNQUFhLFlBQWEsU0FBUSx5QkFBd0M7SUFDeEUsWUFBWSxLQUFpQztRQUMzQyxLQUFLLENBQUMsYUFBYSxDQUFDLEVBQUUsQ0FBQyxVQUFVLEVBQUUsS0FBSyxFQUFFLHVCQUF1QixDQUFDLENBQUM7SUFDckUsQ0FBQztDQUNGO0FBSkQsb0NBSUMifQ==
@@ -0,0 +1,30 @@
1
+ import { GEComponent } from './common/GEComponent';
2
+ import { ReactElementProps } from './common/ReactElementProps';
3
+ /**
4
+ * Props for {@link GESliceEditor}, combining native SliceEditorProps with React element props
5
+ * and custom event handlers for slice, modulation, marker, scroll, and pinch events.
6
+ */
7
+ type GESliceEditorProps = GorillaEngine.UI.SliceEditorProps & ReactElementProps & {
8
+ /** Handler called when a slice is added. */
9
+ onSliceAdded?: any;
10
+ /** Handler called when a slice is changed. */
11
+ onSliceChanged?: any;
12
+ /** Handler called when slices are removed. */
13
+ onSlicesRemoved?: any;
14
+ /** Handler called when modulation values change. */
15
+ onModulationChanged?: any;
16
+ /** Handler called when a marker position changes. */
17
+ onMarkerChanged?: any;
18
+ /** Handler called on scroll events. */
19
+ onScroll?: any;
20
+ /** Handler called on pinch/zoom gestures. */
21
+ onPinch?: any;
22
+ };
23
+ /**
24
+ * React wrapper for the native {@link GorillaEngine.UI.SliceEditor} component.
25
+ * Maps React-style `on*` handlers to native engine event names.
26
+ */
27
+ declare class GESliceEditor extends GEComponent<GorillaEngine.UI.SliceEditor> {
28
+ constructor(props: GESliceEditorProps);
29
+ }
30
+ export { GESliceEditor, GESliceEditorProps };
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GESliceEditor = void 0;
4
+ const GEComponent_1 = require("./common/GEComponent");
5
+ /**
6
+ * React wrapper for the native {@link GorillaEngine.UI.SliceEditor} component.
7
+ * Maps React-style `on*` handlers to native engine event names.
8
+ */
9
+ class GESliceEditor extends GEComponent_1.GEComponent {
10
+ constructor(props) {
11
+ super(GorillaEngine.UI.SliceEditor, props, {
12
+ onSliceAdded: 'sliceAdded',
13
+ onSliceChanged: 'sliceChanged',
14
+ onSlicesRemoved: 'slicesRemoved',
15
+ onModulationChanged: 'modulationChanged',
16
+ onMarkerChanged: 'markerChanged',
17
+ onScroll: 'scroll',
18
+ onPinch: 'pinch'
19
+ });
20
+ }
21
+ }
22
+ exports.GESliceEditor = GESliceEditor;
23
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR0VTbGljZUVkaXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9uYXRpdmVXcmFwcGVycy9HRVNsaWNlRWRpdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHNEQUFtRDtBQXdCbkQ7OztHQUdHO0FBQ0gsTUFBTSxhQUFjLFNBQVEseUJBQXlDO0lBRW5FLFlBQVksS0FBeUI7UUFDbkMsS0FBSyxDQUFDLGFBQWEsQ0FBQyxFQUFFLENBQUMsV0FBVyxFQUFFLEtBQUssRUFBRTtZQUN6QyxZQUFZLEVBQUUsWUFBWTtZQUMxQixjQUFjLEVBQUUsY0FBYztZQUM5QixlQUFlLEVBQUUsZUFBZTtZQUNoQyxtQkFBbUIsRUFBRSxtQkFBbUI7WUFDeEMsZUFBZSxFQUFFLGVBQWU7WUFDaEMsUUFBUSxFQUFFLFFBQVE7WUFDbEIsT0FBTyxFQUFFLE9BQU87U0FDakIsQ0FBQyxDQUFDO0lBQ0wsQ0FBQztDQUNGO0FBRVEsc0NBQWEifQ==
@@ -0,0 +1,20 @@
1
+ import { GEComponent } from './common/GEComponent';
2
+ import { ClickableHandlers } from '../nativeWrappers/common/clickableHandlerMappings';
3
+ import { ReactElementProps } from './common/ReactElementProps';
4
+ /**
5
+ * Props for {@link GESlider}.
6
+ * Combines native SliderProps with React element props, click handlers, and a value change callback.
7
+ * @property onChange - Fires when the slider value changes (maps to native `value` event).
8
+ */
9
+ declare type GESliderProps = GorillaEngine.UI.SliderProps & ReactElementProps & ClickableHandlers & {
10
+ onChange?: any;
11
+ };
12
+ /**
13
+ * Wraps the native `GorillaEngine.UI.Knob` component with `type: 'slider'`.
14
+ * Automatically sets the knob type to `slider` in the constructor.
15
+ * Maps `onChange` to the native `value` event. Supports clickable handler mappings.
16
+ */
17
+ declare class GESlider extends GEComponent<GorillaEngine.UI.Knob> {
18
+ constructor(props: GESliderProps);
19
+ }
20
+ export { GESlider, GESliderProps };
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GESlider = void 0;
4
+ const GEComponent_1 = require("./common/GEComponent");
5
+ const clickableHandlerMappings_1 = require("../nativeWrappers/common/clickableHandlerMappings");
6
+ /**
7
+ * Wraps the native `GorillaEngine.UI.Knob` component with `type: 'slider'`.
8
+ * Automatically sets the knob type to `slider` in the constructor.
9
+ * Maps `onChange` to the native `value` event. Supports clickable handler mappings.
10
+ */
11
+ class GESlider extends GEComponent_1.GEComponent {
12
+ constructor(props) {
13
+ super(GorillaEngine.UI.Knob, { ...props, type: 'slider' }, {
14
+ ...clickableHandlerMappings_1.clickableHandlerMappings,
15
+ onChange: 'value'
16
+ });
17
+ }
18
+ }
19
+ exports.GESlider = GESlider;
20
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR0VTbGlkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbmF0aXZlV3JhcHBlcnMvR0VTbGlkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsc0RBQW1EO0FBQ25ELGdHQUFnSDtBQVloSDs7OztHQUlHO0FBQ0gsTUFBTSxRQUFTLFNBQVEseUJBQWtDO0lBRXZELFlBQVksS0FBb0I7UUFDOUIsS0FBSyxDQUFDLGFBQWEsQ0FBQyxFQUFFLENBQUMsSUFBSSxFQUN6QixFQUFDLEdBQUcsS0FBSyxFQUFFLElBQUksRUFBRSxRQUFRLEVBQUMsRUFDMUI7WUFDRSxHQUFHLG1EQUF3QjtZQUMzQixRQUFRLEVBQUUsT0FBTztTQUNsQixDQUFDLENBQUM7SUFDUCxDQUFDO0NBR0Y7QUFFUSw0QkFBUSJ9
@@ -0,0 +1,12 @@
1
+ import { ReactElementProps } from './common/ReactElementProps';
2
+ import { GEComponent } from './common/GEComponent';
3
+ import { ClickableHandlers } from './common/clickableHandlerMappings';
4
+ /** Props for {@link GEStepEditor}, combining native StepEditorProps with React element props and clickable event handlers. */
5
+ export type GEStepEditorProps = GorillaEngine.UI.StepEditorProps & ReactElementProps & ClickableHandlers;
6
+ /**
7
+ * React wrapper for the native {@link GorillaEngine.UI.StepEditor} component.
8
+ * Uses {@link clickableHandlerMappings} to map React mouse event handlers to native events.
9
+ */
10
+ export declare class GEStepEditor extends GEComponent<GorillaEngine.UI.StepEditor> {
11
+ constructor(props: GEStepEditorProps);
12
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GEStepEditor = void 0;
4
+ const GEComponent_1 = require("./common/GEComponent");
5
+ const clickableHandlerMappings_1 = require("./common/clickableHandlerMappings");
6
+ /**
7
+ * React wrapper for the native {@link GorillaEngine.UI.StepEditor} component.
8
+ * Uses {@link clickableHandlerMappings} to map React mouse event handlers to native events.
9
+ */
10
+ class GEStepEditor extends GEComponent_1.GEComponent {
11
+ constructor(props) {
12
+ super(GorillaEngine.UI.StepEditor, props, clickableHandlerMappings_1.clickableHandlerMappings);
13
+ }
14
+ }
15
+ exports.GEStepEditor = GEStepEditor;
16
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR0VTdGVwRWRpdG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL25hdGl2ZVdyYXBwZXJzL0dFU3RlcEVkaXRvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFFQSxzREFBbUQ7QUFDbkQsZ0ZBQWdHO0FBS2hHOzs7R0FHRztBQUNILE1BQWEsWUFBYSxTQUFRLHlCQUF3QztJQUN4RSxZQUFZLEtBQXdCO1FBQ2xDLEtBQUssQ0FBQyxhQUFhLENBQUMsRUFBRSxDQUFDLFVBQVUsRUFBRSxLQUFLLEVBQUUsbURBQXdCLENBQUMsQ0FBQztJQUN0RSxDQUFDO0NBQ0Y7QUFKRCxvQ0FJQyJ9
@@ -0,0 +1,15 @@
1
+ import { ReactElementProps } from './common/ReactElementProps';
2
+ import { GEComponent } from './common/GEComponent';
3
+ /**
4
+ * Props for the {@link GETagBrowser} component.
5
+ * Combines native TagBrowser props with React element props.
6
+ */
7
+ export type GETagBrowserProps = GorillaEngine.UI.TagBrowserProps & ReactElementProps;
8
+ /**
9
+ * React wrapper for the Gorilla Engine TagBrowser component.
10
+ * Displays a browsable, filterable list of tags.
11
+ */
12
+ export declare class GETagBrowser extends GEComponent<GorillaEngine.UI.TagBrowser> {
13
+ /** @param props - Partial tag browser configuration. */
14
+ constructor(props: Partial<GETagBrowserProps>);
15
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GETagBrowser = void 0;
4
+ const GEComponent_1 = require("./common/GEComponent");
5
+ /**
6
+ * React wrapper for the Gorilla Engine TagBrowser component.
7
+ * Displays a browsable, filterable list of tags.
8
+ */
9
+ class GETagBrowser extends GEComponent_1.GEComponent {
10
+ /** @param props - Partial tag browser configuration. */
11
+ constructor(props) {
12
+ super(GorillaEngine.UI.TagBrowser, props);
13
+ }
14
+ }
15
+ exports.GETagBrowser = GETagBrowser;
16
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR0VUYWdCcm93c2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL25hdGl2ZVdyYXBwZXJzL0dFVGFnQnJvd3Nlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSxzREFBbUQ7QUFRbkQ7OztHQUdHO0FBQ0gsTUFBYSxZQUFhLFNBQVEseUJBQXdDO0lBQ3hFLHdEQUF3RDtJQUN4RCxZQUFZLEtBQWlDO1FBQzNDLEtBQUssQ0FBQyxhQUFhLENBQUMsRUFBRSxDQUFDLFVBQVUsRUFBRSxLQUFLLENBQUMsQ0FBQztJQUM1QyxDQUFDO0NBQ0Y7QUFMRCxvQ0FLQyJ9
@@ -0,0 +1,15 @@
1
+ import { ReactElementProps } from './common/ReactElementProps';
2
+ import { GEComponent } from './common/GEComponent';
3
+ /**
4
+ * Props for the {@link GETagEditor} component.
5
+ * Combines native TagEditor props with React element props.
6
+ */
7
+ export type GETagEditorProps = GorillaEngine.UI.TagEditorProps & ReactElementProps;
8
+ /**
9
+ * React wrapper for the Gorilla Engine TagEditor component.
10
+ * Provides an interface for editing and managing tags.
11
+ */
12
+ export declare class GETagEditor extends GEComponent<GorillaEngine.UI.TagEditor> {
13
+ /** @param props - Partial tag editor configuration. */
14
+ constructor(props: Partial<GETagEditorProps>);
15
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GETagEditor = void 0;
4
+ const GEComponent_1 = require("./common/GEComponent");
5
+ /**
6
+ * React wrapper for the Gorilla Engine TagEditor component.
7
+ * Provides an interface for editing and managing tags.
8
+ */
9
+ class GETagEditor extends GEComponent_1.GEComponent {
10
+ /** @param props - Partial tag editor configuration. */
11
+ constructor(props) {
12
+ super(GorillaEngine.UI.TagEditor, props);
13
+ }
14
+ }
15
+ exports.GETagEditor = GETagEditor;
16
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR0VUYWdFZGl0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbmF0aXZlV3JhcHBlcnMvR0VUYWdFZGl0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0Esc0RBQW1EO0FBUW5EOzs7R0FHRztBQUNILE1BQWEsV0FBWSxTQUFRLHlCQUF1QztJQUN0RSx1REFBdUQ7SUFDdkQsWUFBWSxLQUFnQztRQUMxQyxLQUFLLENBQUMsYUFBYSxDQUFDLEVBQUUsQ0FBQyxTQUFTLEVBQUUsS0FBSyxDQUFDLENBQUM7SUFDM0MsQ0FBQztDQUNGO0FBTEQsa0NBS0MifQ==
@@ -0,0 +1,22 @@
1
+ import { GEComponent } from './common/GEComponent';
2
+ import { KeyableHandlers } from './common/keyableHandlerMappings';
3
+ import { ReactElementProps } from './common/ReactElementProps';
4
+ /**
5
+ * Props for {@link GETextBox}.
6
+ * Combines native TextBoxProps with React element props, key handlers, and text-specific callbacks.
7
+ * @property onChange - Fires when the text value changes (maps to native `text` event).
8
+ * @property onFocusLost - Fires when the text box loses focus (maps to native `focusLost` event).
9
+ * @property textChangedAction - Currently the only way to get an event that fires on enter, rather than on change.
10
+ */
11
+ export declare type GETextBoxProps = GorillaEngine.UI.TextBoxProps & ReactElementProps & KeyableHandlers & {
12
+ onChange?: (text: string) => void;
13
+ onFocusLost?: (text: string) => void;
14
+ textChangedAction: string;
15
+ };
16
+ /**
17
+ * Wraps the native `GorillaEngine.UI.TextBox` component.
18
+ * Maps `onChange` to native `text` event and `onFocusLost` to native `focusLost` event.
19
+ */
20
+ export declare class GETextBox extends GEComponent<GorillaEngine.UI.TextBox> {
21
+ constructor(props: GETextBoxProps);
22
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GETextBox = void 0;
4
+ const GEComponent_1 = require("./common/GEComponent");
5
+ const keyableHandlerMappings_1 = require("./common/keyableHandlerMappings");
6
+ /**
7
+ * Wraps the native `GorillaEngine.UI.TextBox` component.
8
+ * Maps `onChange` to native `text` event and `onFocusLost` to native `focusLost` event.
9
+ */
10
+ class GETextBox extends GEComponent_1.GEComponent {
11
+ constructor(props) {
12
+ super(GorillaEngine.UI.TextBox, props, {
13
+ onChange: 'text',
14
+ onFocusLost: 'focusLost',
15
+ ...keyableHandlerMappings_1.keyableHandlerMappings,
16
+ });
17
+ }
18
+ }
19
+ exports.GETextBox = GETextBox;
20
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR0VUZXh0Qm94LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL25hdGl2ZVdyYXBwZXJzL0dFVGV4dEJveC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxzREFBbUQ7QUFDbkQsNEVBQTBGO0FBa0IxRjs7O0dBR0c7QUFDSCxNQUFhLFNBQVUsU0FBUSx5QkFBcUM7SUFDbEUsWUFBWSxLQUFxQjtRQUMvQixLQUFLLENBQUMsYUFBYSxDQUFDLEVBQUUsQ0FBQyxPQUFPLEVBQUUsS0FBSyxFQUFFO1lBQ3JDLFFBQVEsRUFBRSxNQUFNO1lBQ2hCLFdBQVcsRUFBRSxXQUFXO1lBQ3hCLEdBQUcsK0NBQXNCO1NBQzFCLENBQUMsQ0FBQztJQUNMLENBQUM7Q0FDRjtBQVJELDhCQVFDIn0=