@tomorrowevening/hermes 0.0.122 → 0.0.124

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/dist/hermes.es.js CHANGED
@@ -415,10 +415,7 @@ class xo {
415
415
  this.targets[e.id]?.handleEvent(e.data);
416
416
  }
417
417
  }
418
- function Oo() {
419
- return new Worker(new URL("/assets/LoadWorker-e3775bcc.js", self.location), { type: "module" });
420
- }
421
- class To {
418
+ class Oo {
422
419
  components = /* @__PURE__ */ new Map();
423
420
  listen;
424
421
  // Protected
@@ -490,7 +487,7 @@ class Bi {
490
487
  handleEditor(e, t, i) {
491
488
  }
492
489
  }
493
- class Mo extends Bi {
490
+ class To extends Bi {
494
491
  selectDropdown(e, t) {
495
492
  this.app.send({
496
493
  event: "selectComponent",
@@ -522,7 +519,7 @@ class Mo extends Bi {
522
519
  }
523
520
  }
524
521
  }
525
- function Ao(s, e, t) {
522
+ function Mo(s, e, t) {
526
523
  if (s.editor) {
527
524
  t.ui.restore(), t.onSelectionChange((a) => {
528
525
  a.length < 1 || a.forEach((o) => {
@@ -565,7 +562,7 @@ function Ao(s, e, t) {
565
562
  } else
566
563
  t.ui.hide();
567
564
  }
568
- function Po() {
565
+ function Ao() {
569
566
  setTimeout(() => {
570
567
  const s = document.getElementById("theatrejs-studio-root");
571
568
  if (s === null || s.shadowRoot === null)
@@ -591,7 +588,7 @@ function Po() {
591
588
  }
592
589
  }, 1e3);
593
590
  }
594
- class Do extends Bi {
591
+ class Po extends Bi {
595
592
  project;
596
593
  sheets = /* @__PURE__ */ new Map();
597
594
  sheetObjects = /* @__PURE__ */ new Map();
@@ -1000,7 +997,7 @@ function fn(s) {
1000
997
  }, i.onerror = t, i.src = s;
1001
998
  });
1002
999
  }
1003
- class Ro extends Bi {
1000
+ class Do extends Bi {
1004
1001
  canvas = null;
1005
1002
  // Canvas or OffscreenCanvas
1006
1003
  inputElement = null;
@@ -2044,7 +2041,7 @@ function nr(s) {
2044
2041
  }
2045
2042
  return /* @__PURE__ */ u.jsx("li", { className: t === e.title ? "selected" : "", children: n }, Ua());
2046
2043
  }
2047
- function Io(s, e, t) {
2044
+ function Ro(s, e, t) {
2048
2045
  function i(r) {
2049
2046
  switch (e.forEach((a) => {
2050
2047
  a.callback(s, a.remote, r);
@@ -8157,7 +8154,7 @@ function fo(s) {
8157
8154
  /* @__PURE__ */ u.jsx(ae, { three: s.three })
8158
8155
  ] });
8159
8156
  }
8160
- function Lo(s) {
8157
+ function Io(s) {
8161
8158
  return tt(() => {
8162
8159
  function e(o) {
8163
8160
  let c = null;
@@ -8223,7 +8220,7 @@ function go(s) {
8223
8220
  /* @__PURE__ */ u.jsx("div", { className: "footer", children: s.footer })
8224
8221
  ] });
8225
8222
  }
8226
- function ko(s) {
8223
+ function Lo(s) {
8227
8224
  return /* @__PURE__ */ u.jsx(go, { children: /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
8228
8225
  /* @__PURE__ */ u.jsx(
8229
8226
  me,
@@ -8240,11 +8237,10 @@ function ko(s) {
8240
8237
  }
8241
8238
  export {
8242
8239
  ri as Accordion,
8243
- To as Application,
8240
+ Oo as Application,
8244
8241
  Bi as BaseRemote,
8245
8242
  _n as ChildObject,
8246
8243
  vs as ContainerObject,
8247
- Oo as CreateLoadWorker,
8248
8244
  ir as Draggable,
8249
8245
  tr as DraggableItem,
8250
8246
  sr as Dropdown,
@@ -8257,22 +8253,22 @@ export {
8257
8253
  gn as NavButton,
8258
8254
  xo as ProxyManager,
8259
8255
  Ba as QualityType,
8260
- Mo as RemoteComponents,
8261
- Io as RemoteController,
8262
- Do as RemoteTheatre,
8263
- Ro as RemoteThree,
8264
- Lo as SceneInspector,
8256
+ To as RemoteComponents,
8257
+ Ro as RemoteController,
8258
+ Po as RemoteTheatre,
8259
+ Do as RemoteThree,
8260
+ Io as SceneInspector,
8265
8261
  fo as SidePanel,
8266
8262
  Hs as Spline,
8267
8263
  oo as SplineEditor,
8268
- ko as ThreeEditor,
8264
+ Lo as ThreeEditor,
8269
8265
  P as ToolEvents,
8270
8266
  ge as Transform,
8271
8267
  ai as capitalize,
8272
8268
  $e as clamp,
8273
8269
  hs as colorToHex,
8274
8270
  ka as copyToClipboard,
8275
- Po as customizeTheatreElements,
8271
+ Ao as customizeTheatreElements,
8276
8272
  D as debugDispatcher,
8277
8273
  bo as defaultTheatreCallback,
8278
8274
  Co as detectSettings,
@@ -8289,6 +8285,6 @@ export {
8289
8285
  Ua as randomID,
8290
8286
  fs as resetThreeObjects,
8291
8287
  Ae as round,
8292
- Ao as theatreEditorApp,
8288
+ Mo as theatreEditorApp,
8293
8289
  Li as totalThreeObjects
8294
8290
  };
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.122",
10
+ "version": "0.0.124",
11
11
  "homepage": "https://github.com/tomorrowevening/hermes#readme",
12
12
  "bugs": {
13
13
  "url": "https://github.com/tomorrowevening/hermes/issues"
@@ -30,7 +30,8 @@
30
30
  "require": "./dist/hermes.cjs.js",
31
31
  "types": "./types/index.d.ts"
32
32
  },
33
- "./style.css": "./dist/style.css"
33
+ "./style.css": "./dist/style.css",
34
+ "./LoadWorker.ts": "./src/webworkers/LoadWorker.ts"
34
35
  },
35
36
  "repository": {
36
37
  "type": "git",
package/types/index.d.ts CHANGED
@@ -5,7 +5,6 @@ export * from './utils/math';
5
5
  export * from './utils/three';
6
6
  export * from './webworkers/types';
7
7
  export * from './webworkers/ProxyManager';
8
- export { default as CreateLoadWorker } from './webworkers/CreateLoadWorker';
9
8
  export { default as Application } from './core/Application';
10
9
  export { debugDispatcher, ToolEvents } from './editor/global';
11
10
  export { default as BaseRemote } from './core/remote/BaseRemote';
@@ -1 +0,0 @@
1
- export default function CreateLoadWorker(): Worker;