@hackbuild/avatar-host 0.1.8 → 0.1.9

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/README.md CHANGED
@@ -27,7 +27,7 @@ It depends on `@hackbuild/avatar`, `@hackbuild/presence`, `@hackbuild/lipsync`,
27
27
  | `@hackbuild/avatar-host` | nothing; the ticketed host, drop sources, the stage loop and failure copy | none |
28
28
  | `@hackbuild/avatar-host/three` | `three` (optional peer), WebGL | 0.186.1 or later |
29
29
  | `@hackbuild/avatar-host/thumbs` | `three`, WebGL | 0.186.1 or later |
30
- | `@hackbuild/avatar-host/iife` | a page with a `THREE` global; leaves out three-vrm | none |
30
+ | `@hackbuild/avatar-host/iife` | a page with a [`THREE`](../../docs/concepts.md#builds-that-run-from-file) global; leaves out three-vrm | none |
31
31
 
32
32
  ## Quick start
33
33
 
@@ -55,7 +55,7 @@ input.onchange = async () => {
55
55
 
56
56
  ## Live example
57
57
 
58
- The demo page shows the placeholder or a VRM, GLB or FBX you drop, with the follow camera and the pause rules: [hackbuild-motion/avatar-host](https://hackbuild.github.io/hackbuild-motion/avatar-host/). The suite's avatar screen runs on this stage: [hackbuild-suite avatar](https://hackbuild.github.io/hackbuild-suite/#/motion/avatar).
58
+ The demo page shows the placeholder or a VRM, GLB or FBX you drop, with the follow camera and the pause rules: [hackbuild-motion/avatar-host](https://hackbuild.github.io/hackbuild-motion/avatar-host/). The suite's avatar screen runs on this stage: [hackbuild-suite avatar](https://hackbuild.github.io/hackbuild-suite/#/lib/avatar).
59
59
 
60
60
  ## Concepts
61
61
 
@@ -199,7 +199,7 @@ Not verified by anything:
199
199
  | file | gzip (measured) | ceiling |
200
200
  |---|---|---|
201
201
  | `dist/index.js` (main entry, imports external) | 3,840 bytes | 4,032 bytes |
202
- | `dist/avatar-host.iife.js` (single file build) | 197,702 bytes | 207,587 bytes |
202
+ | `dist/avatar-host.iife.js` (single file build) | 197,768 bytes | 207,656 bytes |
203
203
 
204
204
  Measured 2026-11-30 by `node tools/lint-packages.mjs` (gzip level 9) from the packed
205
205
  tarball. Generated from `tools/size-budget.json`; CI fails when a file moves more than
@@ -1,4 +1,5 @@
1
1
  var HackbuildAvatarHost = (function(exports, three) {
2
+ if (!globalThis.THREE) throw new Error("@hackbuild/avatar-host: no THREE on the page. import three in a module script, set globalThis.THREE, then load this file with defer.");
2
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
4
  // \0rolldown/runtime.js
4
5
  var __defProp = Object.defineProperty;
@@ -13562,4 +13563,4 @@ var HackbuildAvatarHost = (function(exports, three) {
13562
13563
  exports.stagePixelRatio = stagePixelRatio;
13563
13564
  exports.trackingManager = trackingManager;
13564
13565
  return exports;
13565
- })({}, THREE);
13566
+ })({}, globalThis.THREE);
package/llms.md CHANGED
@@ -25,7 +25,7 @@ It depends on `@hackbuild/avatar`, `@hackbuild/presence`, `@hackbuild/lipsync`,
25
25
  | `@hackbuild/avatar-host` | nothing; the ticketed host, drop sources, the stage loop and failure copy | none |
26
26
  | `@hackbuild/avatar-host/three` | `three` (optional peer), WebGL | 0.186.1 or later |
27
27
  | `@hackbuild/avatar-host/thumbs` | `three`, WebGL | 0.186.1 or later |
28
- | `@hackbuild/avatar-host/iife` | a page with a `THREE` global; leaves out three-vrm | none |
28
+ | `@hackbuild/avatar-host/iife` | a page with a [`THREE`](https://github.com/hackbuild/hackbuild-motion/blob/main/docs/concepts.md#builds-that-run-from-file) global; leaves out three-vrm | none |
29
29
 
30
30
  ## Exports
31
31
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hackbuild/avatar-host",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Host a character on a three.js stage in any container: ticketed loads through @hackbuild/avatar, a follow camera, the presence frame order, a loop that pauses when hidden, and a hb-avatar-host element.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -42,12 +42,12 @@
42
42
  "build": "node ../../tools/build-package.mjs avatar-host"
43
43
  },
44
44
  "dependencies": {
45
- "@hackbuild/avatar": "0.1.6",
46
- "@hackbuild/environment": "0.1.2",
47
- "@hackbuild/lipsync": "0.1.4",
48
- "@hackbuild/organic": "0.1.2",
49
- "@hackbuild/presence": "0.1.3",
50
- "@hackbuild/rig": "0.1.2"
45
+ "@hackbuild/avatar": "0.1.7",
46
+ "@hackbuild/environment": "0.1.3",
47
+ "@hackbuild/lipsync": "0.1.5",
48
+ "@hackbuild/organic": "0.1.3",
49
+ "@hackbuild/presence": "0.1.4",
50
+ "@hackbuild/rig": "0.1.3"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "three": ">=0.186.1"