@tomorrowevening/hermes 0.0.39 → 0.0.40

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.40",
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,4 +1,4 @@
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
3
  import { BroadcastData, DataUpdateCallback, VoidCallback } from '../types';
4
4
  export default class RemoteTheatre extends BaseRemote {
@@ -7,8 +7,7 @@ export default class RemoteTheatre extends BaseRemote {
7
7
  sheetObjects: Map<string, ISheetObject>;
8
8
  sheetObjectCBs: Map<string, DataUpdateCallback>;
9
9
  sheetObjectUnsubscribe: Map<string, VoidCallback>;
10
- private static rafDriver;
11
- init(projectName: string, projectConfig?: IProjectConfig | undefined): Promise<void>;
10
+ static rafDriver?: IRafDriver | undefined;
12
11
  dispose(): void;
13
12
  sheet(name: string): ISheet | undefined;
14
13
  playSheet(name: string, params?: any): void;
@@ -19,5 +18,4 @@ export default class RemoteTheatre extends BaseRemote {
19
18
  handleApp(msg: BroadcastData): void;
20
19
  handleEditor(msg: BroadcastData): void;
21
20
  handleEditorApp(): void;
22
- static getRafDriver(): IRafDriver;
23
21
  }
@@ -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 {