@hyperframes/inspector 0.9.9 → 0.9.11

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/service.js CHANGED
@@ -61155,10 +61155,10 @@ function inlineSubCompositions(document2, hosts, options) {
61155
61155
  const compDoc = parseCopy(compHtml);
61156
61156
  let compId;
61157
61157
  let runtimeCompId;
61158
- if (hostIdentityMap) {
61159
- const identity = hostIdentityMap.get(hostEl);
61160
- compId = identity?.authoredCompositionId || null;
61161
- runtimeCompId = identity?.runtimeCompositionId || compId || "";
61158
+ const identity = hostIdentityMap?.get(hostEl);
61159
+ if (identity) {
61160
+ compId = identity.authoredCompositionId || null;
61161
+ runtimeCompId = identity.runtimeCompositionId || compId || "";
61162
61162
  } else {
61163
61163
  compId = hostEl.getAttribute("data-composition-id") || null;
61164
61164
  runtimeCompId = compId || "";
@@ -29,8 +29,8 @@ export interface InlineSubCompositionsOptions {
29
29
  parseHtml: (html: string) => Document;
30
30
  /**
31
31
  * Identity map produced by `assignBundledRuntimeCompositionIds`.
32
- * When provided, authoredCompositionId and runtimeCompositionId are read
33
- * from this map instead of from the host element's attributes directly.
32
+ * When provided, a host's ids are read from this map; a host it lacks (one
33
+ * inside a scene) is read from its own attributes, as without a map.
34
34
  * The bundler uses this; the producer can omit it.
35
35
  */
36
36
  hostIdentityMap?: Map<Element, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/inspector",
3
- "version": "0.9.9",
3
+ "version": "0.9.11",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/heygen-com/hyperframes",
@@ -43,8 +43,8 @@
43
43
  "htmlparser2": "^10.1.0",
44
44
  "postcss": "^8.5.8",
45
45
  "puppeteer-core": "^25.8.0",
46
- "@hyperframes/core": "0.9.9",
47
- "@hyperframes/parsers": "0.9.9"
46
+ "@hyperframes/core": "0.9.11",
47
+ "@hyperframes/parsers": "0.9.11"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/node": "^25.0.10",