@cyclonium/editor 0.0.105 → 1.0.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.
package/lib/cce.d.ts CHANGED
@@ -20,13 +20,7 @@ declare global {
20
20
  }
21
21
  const Operation: InstanceType<typeof OperationManager>;
22
22
  namespace Operation {
23
- type EventMap = {
24
- [x in 'mousedown' | 'mousemove' | 'mouseup' | 'mousewheel']: [OperationMouseEvent];
25
- } & {
26
- [x in 'keydown' | 'keyup']: [KeyboardEvent];
27
- } & {
28
- [x in 'onDragOver' | 'onDrop']: [DragEvent];
29
- };
23
+ type EventMap = Record<'mousedown' | 'mousemove' | 'mouseup' | 'mousewheel', [OperationMouseEvent]> & Record<'keydown' | 'keyup', [KeyboardEvent]> & Record<'onDragOver' | 'onDrop', [DragEvent]>;
30
24
  type OperationMouseEvent = Omit<MouseEvent, 'type'>;
31
25
  }
32
26
  class EngineManager {
@@ -18,5 +18,5 @@ export declare namespace ComponentEditor {
18
18
  function attachTo<TTarget extends Component>(targetComponentClass: new (...args: never[]) => TTarget): (componentEditorClass: new (target: TTarget) => ComponentEditor<TTarget>) => void;
19
19
  }
20
20
  }
21
- export declare function startComponentEditor(): Promise<void>;
21
+ export declare function startComponentEditor(): void;
22
22
  //# sourceMappingURL=component-editor.editor.d.ts.map
@@ -28,10 +28,13 @@ export class ComponentEditor {
28
28
  this.onSceneGUI(ctx);
29
29
  }
30
30
  onAttached() {
31
+ // Optional lifecycle hook for component editors.
31
32
  }
32
33
  onDetached() {
34
+ // Optional lifecycle hook for component editors.
33
35
  }
34
36
  onDestroy() {
37
+ // Optional lifecycle hook for component editors.
35
38
  }
36
39
  onSceneGUI(ctx) {
37
40
  void ctx;
@@ -125,7 +128,7 @@ function getSelectedNodes() {
125
128
  return globalEditor.Selection.getSelected('node');
126
129
  }
127
130
  const handlesRenderRootNodeName = '::handles-render-root::';
128
- export async function startComponentEditor() {
131
+ export function startComponentEditor() {
129
132
  if (!isSceneEditorEnv()) {
130
133
  return;
131
134
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyclonium/editor",
3
- "version": "0.0.105",
3
+ "version": "1.0.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/shrinktofit/cyclonium",
@@ -21,10 +21,10 @@
21
21
  }
22
22
  },
23
23
  "dependencies": {
24
- "@cyclonium/handles": "0.0.105"
24
+ "@cyclonium/handles": "1.0.1"
25
25
  },
26
26
  "peerDependencies": {
27
- "@cyclonium/core": "0.0.105"
27
+ "@cyclonium/core": "1.0.1"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/node": "^25.9.2",