@onerjs/gui-editor 8.50.5 → 8.50.6

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.
@@ -147,7 +147,7 @@ import { RadioButton } from "@onerjs/gui/2D/controls/radioButton";
147
147
  import { ImageBasedSlider } from "@onerjs/gui/2D/controls/sliders/imageBasedSlider";
148
148
  export class GUINodeTools {
149
149
  static ImageControlDefaultUrl: string;
150
- static CreateControlFromString(data: string): Grid | StackPanel | Line | Rectangle | TextBlock | Image | Slider | ImageBasedSlider | RadioButton | InputText | ColorPicker | Ellipse | Checkbox | DisplayGrid;
150
+ static CreateControlFromString(data: string): Grid | Slider | Checkbox | ColorPicker | Ellipse | Rectangle | Line | TextBlock | StackPanel | Image | InputText | DisplayGrid | ImageBasedSlider | RadioButton;
151
151
  }
152
152
 
153
153
  }
@@ -270,7 +270,7 @@ export class GlobalState {
270
270
  onBackgroundColorChangeObservable: Observable<void>;
271
271
  onFontsParsedObservable: Observable<void>;
272
272
  onPointerMoveObservable: Observable<import("react").PointerEvent<HTMLCanvasElement>>;
273
- onPointerUpObservable: Observable<Nullable<import("react").PointerEvent<HTMLCanvasElement> | PointerEvent>>;
273
+ onPointerUpObservable: Observable<Nullable<PointerEvent | import("react").PointerEvent<HTMLCanvasElement>>>;
274
274
  draggedControl: Nullable<Control>;
275
275
  draggedControlDirection: DragOverLocation;
276
276
  onCopyObservable: Observable<(content: string) => void>;
@@ -4445,44 +4445,6 @@ declare module "@onerjs/gui-editor/modularTool/misc/assert" {
4445
4445
  */
4446
4446
  export function Assert(value: unknown): asserts value;
4447
4447
 
4448
- }
4449
- declare module "@onerjs/gui-editor/modularTool/hooks/useResizeHandle" {
4450
- export type GrowDirection = "end" | "start" | "up" | "down";
4451
- export type UseResizeHandleParams = {
4452
- /**
4453
- * The direction in which the element is considered growing in size ('end', 'start', 'up', or 'down').
4454
- */
4455
- growDirection: GrowDirection;
4456
- /**
4457
- * The name of the CSS variable that will be set on the wrapper element to reflect the current size of the element.
4458
- */
4459
- variableName: string;
4460
- /**
4461
- * A callback that will be called when the element is resized.
4462
- *
4463
- * @remarks The passed function should be memoized for better performance.
4464
- */
4465
- onChange?: (value: number) => void;
4466
- /**
4467
- * The minimum change allowed (e.g. the smallest negative number allowed).
4468
- */
4469
- minValue?: number;
4470
- /**
4471
- * The maximum change allowed (e.g. the largest positive number allowed).
4472
- */
4473
- maxValue?: number;
4474
- };
4475
- /**
4476
- * A custom hook that helps with element resizing.
4477
- * @param params The parameters for the resize handle.
4478
- * @returns An object containing refs and a function to set the value.
4479
- */
4480
- export function useResizeHandle(params: UseResizeHandleParams): {
4481
- elementRef: import("react").Dispatch<import("react").SetStateAction<HTMLElement | null>>;
4482
- handleRef: import("react").Dispatch<import("react").SetStateAction<HTMLElement | null>>;
4483
- setValue: (value: number) => void;
4484
- };
4485
-
4486
4448
  }
4487
4449
  declare module "@onerjs/gui-editor/modularTool/hooks/themeHooks" {
4488
4450
  import { ThemeMode } from "@onerjs/gui-editor/modularTool/services/themeService";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onerjs/gui-editor",
3
- "version": "8.50.5",
3
+ "version": "8.50.6",
4
4
  "main": "dist/babylon.guiEditor.js",
5
5
  "module": "dist/babylon.guiEditor.js",
6
6
  "esnext": "dist/babylon.guiEditor.js",
@@ -24,8 +24,8 @@
24
24
  "@types/react-dom": ">=16.0.9"
25
25
  },
26
26
  "devDependencies": {
27
- "@onerjs/core": "8.50.5",
28
- "@onerjs/gui": "8.50.5",
27
+ "@onerjs/core": "8.50.6",
28
+ "@onerjs/gui": "8.50.6",
29
29
  "react": "^18.2.0",
30
30
  "react-dom": "^18.2.0"
31
31
  },