Repository navigation
Commit 53e2e20
authored
fix(registry): six blocks load their own files and variables when mounted (#4452)
* feat(core): a composition's script can load its own files with __hyperframes.assetUrl
* test(core): a template composition inside a mounted file resolves assets from that file
* docs: assetUrl is for paths beside the composition, not project-root paths
* docs: say assetUrl misses a project-root path
* fix(core): a mounted composition's import map and module scripts run as such
* refactor(core): scope a mounted module script under the same condition as a classic one
* fix(core): a mounted module script loaded by src stays a module
* fix(core): a mounted import map keeps the trailing slash of a prefix address
* fix(registry): six blocks load their own files and variables when mounted
* fix(registry): keep frost's variable declarations on its html element
* fix(registry): orbit-card uses its own variables; frost font and catalog maps follow
* chore(core): keep the module-script helpers' comment share at the base
* fix(catalog): frost's payload runs its driving script, not the asset-base one
* test(catalog): check import-map keys by membership, not a built regex1 parent f873734 commit 53e2e20
9 files changed
Lines changed: 356 additions & 277 deletions
File tree
- registry/blocks
- canopy-part-title
- cuboid-carousel
- frost-sequence-camera-orbit
- lottie-character-walk
- orbit-card
- assets
- wireframe-portal-title
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
| 109 | + | |
| 110 | + | |
116 | 111 | | |
117 | 112 | | |
118 | | - | |
| 113 | + | |
119 | 114 | | |
120 | 115 | | |
121 | 116 | | |
| |||
347 | 342 | | |
348 | 343 | | |
349 | 344 | | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
| 345 | + | |
| 346 | + | |
357 | 347 | | |
358 | | - | |
359 | | - | |
| 348 | + | |
| 349 | + | |
360 | 350 | | |
361 | 351 | | |
362 | 352 | | |
363 | 353 | | |
364 | | - | |
| 354 | + | |
365 | 355 | | |
366 | 356 | | |
367 | 357 | | |
368 | | - | |
| 358 | + | |
369 | 359 | | |
370 | 360 | | |
371 | 361 | | |
372 | 362 | | |
373 | 363 | | |
374 | | - | |
| 364 | + | |
375 | 365 | | |
376 | 366 | | |
377 | 367 | | |
| |||
386 | 376 | | |
387 | 377 | | |
388 | 378 | | |
389 | | - | |
| 379 | + | |
390 | 380 | | |
391 | 381 | | |
392 | 382 | | |
| |||
650 | 640 | | |
651 | 641 | | |
652 | 642 | | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
653 | 648 | | |
654 | 649 | | |
655 | | - | |
656 | | - | |
| 650 | + | |
| 651 | + | |
657 | 652 | | |
658 | 653 | | |
659 | 654 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
106 | | - | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
| 110 | + | |
109 | 111 | | |
110 | | - | |
111 | | - | |
| 112 | + | |
| 113 | + | |
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
| |||
2523 | 2528 | | |
2524 | 2529 | | |
2525 | 2530 | | |
| 2531 | + | |
| 2532 | + | |
| 2533 | + | |
2526 | 2534 | | |
2527 | 2535 | | |
2528 | 2536 | | |
| |||
3160 | 3168 | | |
3161 | 3169 | | |
3162 | 3170 | | |
3163 | | - | |
| 3171 | + | |
3164 | 3172 | | |
3165 | 3173 | | |
3166 | 3174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
103 | 108 | | |
104 | 109 | | |
105 | 110 | | |
106 | 111 | | |
107 | 112 | | |
108 | 113 | | |
109 | 114 | | |
110 | | - | |
| 115 | + | |
111 | 116 | | |
112 | 117 | | |
113 | 118 | | |
| |||
0 commit comments