hyperframes 0.8.74 → 0.8.75
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/cli.js +445 -307
- package/dist/fontLocalizeCli.js +9 -4
- package/dist/hyperframe-runtime.js +56 -51
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +56 -51
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/studio/assets/{hyperframes-player-Bs9qG2hg.js → hyperframes-player-WbBVbWuO.js} +1 -1
- package/dist/studio/assets/{index-vccPjvCl.js → index-BiFKcNjs.js} +1 -1
- package/dist/studio/assets/{index-DhTyI9zH.js → index-BlUYw1MB.js} +162 -162
- package/dist/studio/assets/{index-B86QTmD2.js → index-HjexPsny.js} +1 -1
- package/dist/studio/index.d.ts +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/studio/index.js +2230 -2174
- package/dist/studio/index.js.map +1 -1
- package/package.json +1 -1
package/dist/fontLocalizeCli.js
CHANGED
|
@@ -66642,7 +66642,7 @@ function scopeCssToComposition(css, compositionId, scopeSelectorOverride, author
|
|
|
66642
66642
|
function jsonScriptLiteral(value) {
|
|
66643
66643
|
return JSON.stringify(value).replace(/</g, "\\u003c");
|
|
66644
66644
|
}
|
|
66645
|
-
function wrapScopedCompositionScript(source, compositionId, errorLabel = "[HyperFrames] composition script error:", scopeSelectorOverride, timelineCompositionId = compositionId, authoredRootId) {
|
|
66645
|
+
function wrapScopedCompositionScript(source, compositionId, errorLabel = "[HyperFrames] composition script error:", scopeSelectorOverride, timelineCompositionId = compositionId, authoredRootId, compositionSrc) {
|
|
66646
66646
|
const compositionIdLiteral = jsonScriptLiteral(compositionId);
|
|
66647
66647
|
const timelineCompositionIdLiteral = jsonScriptLiteral(timelineCompositionId);
|
|
66648
66648
|
const errorLabelLiteral = jsonScriptLiteral(errorLabel);
|
|
@@ -66657,6 +66657,7 @@ function wrapScopedCompositionScript(source, compositionId, errorLabel = "[Hyper
|
|
|
66657
66657
|
var __hfTimelineCompId = ${timelineCompositionIdLiteral};
|
|
66658
66658
|
var __hfErrorLabel = ${errorLabelLiteral};
|
|
66659
66659
|
var __hfAuthoredRootId = ${authoredRootIdLiteral};
|
|
66660
|
+
var __hfCompositionSrc = ${jsonScriptLiteral(compositionSrc?.trim() || null)};
|
|
66660
66661
|
var __hfAuthoredRootAttr = ${jsonScriptLiteral(AUTHORED_ROOT_ID_ATTR)};
|
|
66661
66662
|
var __hfEscapeAttr = function(value) {
|
|
66662
66663
|
return (value + "").replace(/\\\\/g, "\\\\\\\\").replace(/"/g, "\\\\\\"");
|
|
@@ -66965,6 +66966,10 @@ function wrapScopedCompositionScript(source, compositionId, errorLabel = "[Hyper
|
|
|
66965
66966
|
var __hfScopedHyperframes = !__hfBaseHyperframes
|
|
66966
66967
|
? __hfBaseHyperframes
|
|
66967
66968
|
: Object.assign({}, __hfBaseHyperframes, {
|
|
66969
|
+
assetUrl: function(path) {
|
|
66970
|
+
var page = window.document.baseURI;
|
|
66971
|
+
return new URL(path, __hfCompositionSrc ? new URL(__hfCompositionSrc, page) : page).href;
|
|
66972
|
+
},
|
|
66968
66973
|
getVariables: function() {
|
|
66969
66974
|
var byComp = window.__hfVariablesByComp;
|
|
66970
66975
|
var scoped = byComp && __hfTimelineCompId ? byComp[__hfTimelineCompId] : null;
|
|
@@ -78850,7 +78855,7 @@ function inlineSubCompositions(document2, hosts, options) {
|
|
|
78850
78855
|
...readExternalScriptAttributes(scriptEl)
|
|
78851
78856
|
});
|
|
78852
78857
|
} else {
|
|
78853
|
-
const wrappedScript = scriptCompositionId ? wrapScopedCompositionScript(scriptEl.textContent || "", scriptCompositionId, scriptErrorLabel, runtimeScope || void 0, runtimeCompId || scopeCompId || scriptCompositionId, authoredRootId) : wrapInlineScriptWithErrorBoundary(scriptEl.textContent || "", scriptErrorLabel);
|
|
78858
|
+
const wrappedScript = scriptCompositionId ? wrapScopedCompositionScript(scriptEl.textContent || "", scriptCompositionId, scriptErrorLabel, runtimeScope || void 0, runtimeCompId || scopeCompId || scriptCompositionId, authoredRootId, src) : wrapInlineScriptWithErrorBoundary(scriptEl.textContent || "", scriptErrorLabel);
|
|
78854
78859
|
scripts.push(wrappedScript);
|
|
78855
78860
|
scriptItems.push({ kind: "inline", content: wrappedScript });
|
|
78856
78861
|
}
|
|
@@ -104290,8 +104295,8 @@ async function runFontLocalize(io, localize) {
|
|
|
104290
104295
|
}
|
|
104291
104296
|
|
|
104292
104297
|
// src/version.ts
|
|
104293
|
-
var VERSION = true ? "0.8.
|
|
104294
|
-
var PRODUCER_VERSION = true ? "0.8.
|
|
104298
|
+
var VERSION = true ? "0.8.75" : "0.0.0-dev";
|
|
104299
|
+
var PRODUCER_VERSION = true ? "0.8.75" : "0.0.0-dev";
|
|
104295
104300
|
|
|
104296
104301
|
// src/fontLocalizeCli.ts
|
|
104297
104302
|
async function readStdin() {
|