@hyperframes/producer 0.9.63 → 0.9.64
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/distributed.js +13 -6
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +65 -65
- package/dist/index.js +13 -6
- package/dist/public-server.js +13 -6
- package/package.json +7 -7
package/dist/distributed.js
CHANGED
|
@@ -3661,16 +3661,23 @@ function assertOutsideMarkupAsked(projectDir, filePath, srcPath, assetRoot, outs
|
|
|
3661
3661
|
}
|
|
3662
3662
|
}
|
|
3663
3663
|
var isPrivateCompositionFile = (projectDir, filePath) => isPrivateFileUnder2(projectDir, filePath, isStudioPrivatePath2);
|
|
3664
|
-
var mountSrcsUnder = (root) => [...root.querySelectorAll("[data-composition-src]")].map((el) => el.getAttribute("data-composition-src")).filter((srcPath) => !!srcPath && !isUnresolvedAssetPlaceholder(srcPath));
|
|
3665
3664
|
function compositionSrcsIn(html) {
|
|
3666
3665
|
const { document: document2 } = parseHTML5(html);
|
|
3666
|
+
const mounts = [];
|
|
3667
3667
|
const templated = [];
|
|
3668
|
-
const
|
|
3669
|
-
for (let
|
|
3670
|
-
|
|
3671
|
-
|
|
3668
|
+
const stack = [...document2.children].reverse().map((el) => [el, false]);
|
|
3669
|
+
for (let next = stack.pop(); next; next = stack.pop()) {
|
|
3670
|
+
const [el, inTemplate] = next;
|
|
3671
|
+
const srcPath = el.getAttribute("data-composition-src");
|
|
3672
|
+
if (srcPath && !isUnresolvedAssetPlaceholder(srcPath)) {
|
|
3673
|
+
(inTemplate ? templated : mounts).push(srcPath);
|
|
3674
|
+
}
|
|
3675
|
+
const childrenInTemplate = inTemplate || el.localName === "template";
|
|
3676
|
+
const children = [...el.children];
|
|
3677
|
+
for (let i = children.length - 1; i >= 0; i -= 1)
|
|
3678
|
+
stack.push([children[i], childrenInTemplate]);
|
|
3672
3679
|
}
|
|
3673
|
-
return { mounts
|
|
3680
|
+
return { mounts, templated };
|
|
3674
3681
|
}
|
|
3675
3682
|
function compositionPathProblem(projectDir, filePath, assetRoot, outsideFiles) {
|
|
3676
3683
|
if (outsideAssetRefusal(projectDir, filePath) === "blocklisted") {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "0.1.0",
|
|
3
3
|
"buildId": "dev",
|
|
4
|
-
"sha256": "
|
|
4
|
+
"sha256": "9908c266bf0c428907be35f907a443dd2d6d3fe4c2706f935269903361f95c30",
|
|
5
5
|
"artifacts": {
|
|
6
6
|
"iife": "hyperframe.runtime.iife.js",
|
|
7
7
|
"esm": "hyperframe.runtime.mjs"
|