@tomorrowevening/hermes 0.0.39 → 0.0.41

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/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "module": "./dist/hermes.esm.js",
8
8
  "types": "./types/index.d.ts",
9
9
  "type": "module",
10
- "version": "0.0.39",
10
+ "version": "0.0.41",
11
11
  "homepage": "https://github.com/tomorrowevening/hermes#readme",
12
12
  "bugs": {
13
13
  "url": "https://github.com/tomorrowevening/hermes/issues"
@@ -20,14 +20,14 @@
20
20
  "Tweakpane"
21
21
  ],
22
22
  "files": [
23
- "dist/hermes.esm.js",
23
+ "dist/hermes.es.js",
24
24
  "dist/hermes.cjs.js",
25
25
  "dist/style.css",
26
26
  "types/**/*.d.ts"
27
27
  ],
28
28
  "exports": {
29
29
  ".": {
30
- "import": "./dist/hermes.esm.js",
30
+ "import": "./dist/hermes.es.js",
31
31
  "require": "./dist/hermes.cjs.js",
32
32
  "types": "./types/index.d.ts"
33
33
  },
@@ -1,10 +1,9 @@
1
1
  import Application from '../Application';
2
2
  import { BroadcastData } from '../types';
3
3
  export default class BaseRemote {
4
- protected app: Application;
4
+ app: Application;
5
5
  constructor(app: Application);
6
6
  dispose(): void;
7
7
  handleApp(_: BroadcastData): void;
8
8
  handleEditor(_: BroadcastData): void;
9
- handleEditorApp(): void;
10
9
  }
@@ -1,14 +1,15 @@
1
- import { IProject, IProjectConfig, IRafDriver, ISheet, ISheetObject } from '@theatre/core';
1
+ import { IProject, IRafDriver, ISheet, ISheetObject } from '@theatre/core';
2
2
  import BaseRemote from './BaseRemote';
3
+ import Application from '../Application';
3
4
  import { BroadcastData, DataUpdateCallback, VoidCallback } from '../types';
5
+ export declare function theatreEditorApp(app: Application, theatre: RemoteTheatre, studio: any): void;
4
6
  export default class RemoteTheatre extends BaseRemote {
5
7
  project: IProject | undefined;
6
8
  sheets: Map<string, ISheet>;
7
9
  sheetObjects: Map<string, ISheetObject>;
8
10
  sheetObjectCBs: Map<string, DataUpdateCallback>;
9
11
  sheetObjectUnsubscribe: Map<string, VoidCallback>;
10
- private static rafDriver;
11
- init(projectName: string, projectConfig?: IProjectConfig | undefined): Promise<void>;
12
+ static rafDriver?: IRafDriver | undefined;
12
13
  dispose(): void;
13
14
  sheet(name: string): ISheet | undefined;
14
15
  playSheet(name: string, params?: any): void;
@@ -18,6 +19,4 @@ export default class RemoteTheatre extends BaseRemote {
18
19
  unsubscribe(sheetObject: ISheetObject): undefined;
19
20
  handleApp(msg: BroadcastData): void;
20
21
  handleEditor(msg: BroadcastData): void;
21
- handleEditorApp(): void;
22
- static getRafDriver(): IRafDriver;
23
22
  }
@@ -5,7 +5,7 @@ export interface CoreComponentProps {
5
5
  three: RemoteThree;
6
6
  }
7
7
  export interface ChildObjectProps extends CoreComponentProps {
8
- child: Object3D;
8
+ child?: Object3D;
9
9
  three: RemoteThree;
10
10
  }
11
11
  export interface SidePanelState {
package/types/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
+ export * from './core/types';
1
2
  export * from './editor/utils';
2
3
  export { default as Application } from './core/Application';
3
4
  export { debugDispatcher, ToolEvents } from './editor/global';
4
5
  export { default as BaseRemote } from './core/remote/BaseRemote';
5
6
  export { default as RemoteComponents } from './core/remote/RemoteComponents';
6
- export { default as RemoteTheatre } from './core/remote/RemoteTheatre';
7
+ export * from './core/remote/RemoteTheatre';
7
8
  export { default as RemoteThree } from './core/remote/RemoteThree';
8
9
  export { default as RemoteTweakpane } from './core/remote/RemoteTweakpane';
9
10
  export { default as NavButton } from './editor/components/NavButton';