@hyperframes/core 0.6.12 → 0.6.13
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/compiler/compositionScoping.d.ts +2 -2
- package/dist/compiler/compositionScoping.d.ts.map +1 -1
- package/dist/compiler/compositionScoping.js +159 -8
- package/dist/compiler/compositionScoping.js.map +1 -1
- package/dist/compiler/htmlBundler.d.ts.map +1 -1
- package/dist/compiler/htmlBundler.js +210 -84
- package/dist/compiler/htmlBundler.js.map +1 -1
- package/dist/generated/runtime-inline.js +1 -1
- package/dist/generated/runtime-inline.js.map +1 -1
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +108 -29
- package/dist/hyperframe.runtime.mjs +108 -29
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare function scopeCssToComposition(css: string, compositionId: string, scopeSelectorOverride?: string): string;
|
|
2
|
-
export declare function wrapScopedCompositionScript(source: string, compositionId: string, errorLabel?: string, scopeSelectorOverride?: string, timelineCompositionId?: string): string;
|
|
1
|
+
export declare function scopeCssToComposition(css: string, compositionId: string, scopeSelectorOverride?: string, authoredRootId?: string | null): string;
|
|
2
|
+
export declare function wrapScopedCompositionScript(source: string, compositionId: string, errorLabel?: string, scopeSelectorOverride?: string, timelineCompositionId?: string, authoredRootId?: string | null): string;
|
|
3
3
|
//# sourceMappingURL=compositionScoping.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compositionScoping.d.ts","sourceRoot":"","sources":["../../src/compiler/compositionScoping.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"compositionScoping.d.ts","sourceRoot":"","sources":["../../src/compiler/compositionScoping.ts"],"names":[],"mappings":"AA2JA,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,MAAM,EACX,aAAa,EAAE,MAAM,EACrB,qBAAqB,CAAC,EAAE,MAAM,EAC9B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAC7B,MAAM,CAgBR;AAED,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,EACrB,UAAU,SAA4C,EACtD,qBAAqB,CAAC,EAAE,MAAM,EAC9B,qBAAqB,SAAgB,EACrC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAC7B,MAAM,CAwSR"}
|
|
@@ -1,12 +1,82 @@
|
|
|
1
1
|
import postcss from "postcss";
|
|
2
|
+
const AUTHORED_ROOT_ID_ATTR = "data-hf-authored-id";
|
|
2
3
|
function escapeRegExp(value) {
|
|
3
4
|
return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
4
5
|
}
|
|
5
6
|
function escapeCssAttributeValue(value) {
|
|
6
7
|
return value.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
|
|
7
8
|
}
|
|
8
|
-
function
|
|
9
|
-
|
|
9
|
+
function escapeCssIdentifier(value) {
|
|
10
|
+
if (!value)
|
|
11
|
+
return value;
|
|
12
|
+
const escaped = value.replace(/[^a-zA-Z0-9_-]/g, (char) => `\\${char}`);
|
|
13
|
+
return escaped.replace(/^-?\d/, (match) => `\\${match}`);
|
|
14
|
+
}
|
|
15
|
+
function getAuthoredRootIdSelectorForms(authoredRootId) {
|
|
16
|
+
const trimmed = authoredRootId.trim();
|
|
17
|
+
if (!trimmed)
|
|
18
|
+
return [];
|
|
19
|
+
return Array.from(new Set([trimmed, escapeCssIdentifier(trimmed)])).filter(Boolean);
|
|
20
|
+
}
|
|
21
|
+
function isSelectorNameChar(char) {
|
|
22
|
+
return !!char && /[\w-]/.test(char);
|
|
23
|
+
}
|
|
24
|
+
function replaceAuthoredRootIdSelectors(selector, authoredRootId, replacement) {
|
|
25
|
+
const forms = getAuthoredRootIdSelectorForms(authoredRootId).sort((a, b) => b.length - a.length);
|
|
26
|
+
if (forms.length === 0)
|
|
27
|
+
return selector;
|
|
28
|
+
let result = "";
|
|
29
|
+
let bracketDepth = 0;
|
|
30
|
+
let quote = null;
|
|
31
|
+
for (let index = 0; index < selector.length; index += 1) {
|
|
32
|
+
const char = selector[index];
|
|
33
|
+
const previousChar = index > 0 ? selector[index - 1] : "";
|
|
34
|
+
if (quote) {
|
|
35
|
+
result += char;
|
|
36
|
+
if (char === quote && previousChar !== "\\") {
|
|
37
|
+
quote = null;
|
|
38
|
+
}
|
|
39
|
+
continue;
|
|
40
|
+
}
|
|
41
|
+
if (char === '"' || char === "'") {
|
|
42
|
+
quote = char;
|
|
43
|
+
result += char;
|
|
44
|
+
continue;
|
|
45
|
+
}
|
|
46
|
+
if (char === "[") {
|
|
47
|
+
bracketDepth += 1;
|
|
48
|
+
result += char;
|
|
49
|
+
continue;
|
|
50
|
+
}
|
|
51
|
+
if (char === "]") {
|
|
52
|
+
bracketDepth = Math.max(0, bracketDepth - 1);
|
|
53
|
+
result += char;
|
|
54
|
+
continue;
|
|
55
|
+
}
|
|
56
|
+
if (char === "#" && bracketDepth === 0) {
|
|
57
|
+
const matchedForm = forms.find((form) => selector.startsWith(form, index + 1));
|
|
58
|
+
if (matchedForm) {
|
|
59
|
+
const nextChar = selector[index + 1 + matchedForm.length];
|
|
60
|
+
if (!isSelectorNameChar(nextChar)) {
|
|
61
|
+
result += replacement;
|
|
62
|
+
index += matchedForm.length;
|
|
63
|
+
continue;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
result += char;
|
|
68
|
+
}
|
|
69
|
+
return result;
|
|
70
|
+
}
|
|
71
|
+
function normalizeAuthoredRootIdSelector(selector, authoredRootId) {
|
|
72
|
+
const trimmed = authoredRootId?.trim();
|
|
73
|
+
if (!trimmed)
|
|
74
|
+
return selector;
|
|
75
|
+
return replaceAuthoredRootIdSelectors(selector, trimmed, `[${AUTHORED_ROOT_ID_ATTR}="${escapeCssAttributeValue(trimmed)}"]`);
|
|
76
|
+
}
|
|
77
|
+
function scopeSelector(selector, scope, compositionId, authoredRootId) {
|
|
78
|
+
const selectorWithoutAuthoredRootId = normalizeAuthoredRootIdSelector(selector, authoredRootId);
|
|
79
|
+
const selectorWithoutRootTiming = normalizeCompositionRootSelector(selectorWithoutAuthoredRootId, scope, compositionId);
|
|
10
80
|
const trimmed = selectorWithoutRootTiming.trim();
|
|
11
81
|
if (!trimmed)
|
|
12
82
|
return selector;
|
|
@@ -42,7 +112,7 @@ function isInsideGlobalAtRule(rule) {
|
|
|
42
112
|
}
|
|
43
113
|
return false;
|
|
44
114
|
}
|
|
45
|
-
export function scopeCssToComposition(css, compositionId, scopeSelectorOverride) {
|
|
115
|
+
export function scopeCssToComposition(css, compositionId, scopeSelectorOverride, authoredRootId) {
|
|
46
116
|
const trimmedCompositionId = compositionId.trim();
|
|
47
117
|
if (!css || !trimmedCompositionId)
|
|
48
118
|
return css;
|
|
@@ -52,22 +122,26 @@ export function scopeCssToComposition(css, compositionId, scopeSelectorOverride)
|
|
|
52
122
|
root.walkRules((rule) => {
|
|
53
123
|
if (isInsideGlobalAtRule(rule))
|
|
54
124
|
return;
|
|
55
|
-
rule.selectors = rule.selectors.map((selector) => scopeSelector(selector, scope, trimmedCompositionId));
|
|
125
|
+
rule.selectors = rule.selectors.map((selector) => scopeSelector(selector, scope, trimmedCompositionId, authoredRootId));
|
|
56
126
|
});
|
|
57
127
|
return root.toResult({ map: false }).css;
|
|
58
128
|
}
|
|
59
|
-
export function wrapScopedCompositionScript(source, compositionId, errorLabel = "[HyperFrames] composition script error:", scopeSelectorOverride, timelineCompositionId = compositionId) {
|
|
129
|
+
export function wrapScopedCompositionScript(source, compositionId, errorLabel = "[HyperFrames] composition script error:", scopeSelectorOverride, timelineCompositionId = compositionId, authoredRootId) {
|
|
60
130
|
const compositionIdLiteral = JSON.stringify(compositionId);
|
|
61
131
|
const timelineCompositionIdLiteral = JSON.stringify(timelineCompositionId);
|
|
62
132
|
const errorLabelLiteral = JSON.stringify(errorLabel);
|
|
63
133
|
const escapedCompositionId = escapeRegExp(compositionId);
|
|
134
|
+
const authoredRootIdLiteral = JSON.stringify(authoredRootId?.trim() || null);
|
|
64
135
|
const scopeSelectorLiteral = JSON.stringify(scopeSelectorOverride ?? null);
|
|
65
136
|
const rootSelectorPatternLiteral = JSON.stringify(String.raw `\[\s*data-composition-id\s*=\s*(?:"${escapedCompositionId}"|'${escapedCompositionId}')\s*\]`);
|
|
66
137
|
const timingSelectorPatternLiteral = JSON.stringify(String.raw `\s*\[\s*data-(?:start|duration)\s*=\s*(?:"[^"]*"|'[^']*')\s*\]`);
|
|
138
|
+
const authoredRootIdFormsLiteral = JSON.stringify(getAuthoredRootIdSelectorForms(authoredRootId?.trim() || ""));
|
|
67
139
|
return `(function(){
|
|
68
140
|
var __hfCompId = ${compositionIdLiteral};
|
|
69
141
|
var __hfTimelineCompId = ${timelineCompositionIdLiteral};
|
|
70
142
|
var __hfErrorLabel = ${errorLabelLiteral};
|
|
143
|
+
var __hfAuthoredRootId = ${authoredRootIdLiteral};
|
|
144
|
+
var __hfAuthoredRootAttr = ${JSON.stringify(AUTHORED_ROOT_ID_ATTR)};
|
|
71
145
|
var __hfEscapeAttr = function(value) {
|
|
72
146
|
return (value + "").replace(/\\\\/g, "\\\\\\\\").replace(/"/g, "\\\\\\"");
|
|
73
147
|
};
|
|
@@ -77,11 +151,76 @@ export function wrapScopedCompositionScript(source, compositionId, errorLabel =
|
|
|
77
151
|
var __hfRoot = null;
|
|
78
152
|
var __hfRootSelectorPattern = ${rootSelectorPatternLiteral};
|
|
79
153
|
var __hfTimingSelectorPattern = ${timingSelectorPatternLiteral};
|
|
154
|
+
var __hfAuthoredRootIdForms = ${authoredRootIdFormsLiteral};
|
|
155
|
+
var __hfAuthoredRootSelector = __hfAuthoredRootId
|
|
156
|
+
? "[" + __hfAuthoredRootAttr + '="' + __hfEscapeAttr(__hfAuthoredRootId) + '"]'
|
|
157
|
+
: "";
|
|
158
|
+
var __hfIsSelectorNameChar = function(char) {
|
|
159
|
+
return !!char && /[\\w-]/.test(char);
|
|
160
|
+
};
|
|
161
|
+
var __hfReplaceAuthoredRootIdSelectors = function(selector) {
|
|
162
|
+
if (!__hfAuthoredRootSelector || !__hfAuthoredRootIdForms.length || typeof selector !== "string") {
|
|
163
|
+
return selector;
|
|
164
|
+
}
|
|
165
|
+
var result = "";
|
|
166
|
+
var bracketDepth = 0;
|
|
167
|
+
var quote = null;
|
|
168
|
+
for (var index = 0; index < selector.length; index += 1) {
|
|
169
|
+
var char = selector[index];
|
|
170
|
+
var previousChar = index > 0 ? selector[index - 1] : "";
|
|
171
|
+
if (quote) {
|
|
172
|
+
result += char;
|
|
173
|
+
if (char === quote && previousChar !== "\\\\") {
|
|
174
|
+
quote = null;
|
|
175
|
+
}
|
|
176
|
+
continue;
|
|
177
|
+
}
|
|
178
|
+
if (char === '"' || char === "'") {
|
|
179
|
+
quote = char;
|
|
180
|
+
result += char;
|
|
181
|
+
continue;
|
|
182
|
+
}
|
|
183
|
+
if (char === "[") {
|
|
184
|
+
bracketDepth += 1;
|
|
185
|
+
result += char;
|
|
186
|
+
continue;
|
|
187
|
+
}
|
|
188
|
+
if (char === "]") {
|
|
189
|
+
bracketDepth = Math.max(0, bracketDepth - 1);
|
|
190
|
+
result += char;
|
|
191
|
+
continue;
|
|
192
|
+
}
|
|
193
|
+
if (char === "#" && bracketDepth === 0) {
|
|
194
|
+
var matchedForm = null;
|
|
195
|
+
for (var formIndex = 0; formIndex < __hfAuthoredRootIdForms.length; formIndex += 1) {
|
|
196
|
+
var form = __hfAuthoredRootIdForms[formIndex];
|
|
197
|
+
if (selector.slice(index + 1, index + 1 + form.length) === form) {
|
|
198
|
+
matchedForm = form;
|
|
199
|
+
break;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
if (matchedForm) {
|
|
203
|
+
var nextChar = selector[index + 1 + matchedForm.length];
|
|
204
|
+
if (!__hfIsSelectorNameChar(nextChar)) {
|
|
205
|
+
result += __hfAuthoredRootSelector;
|
|
206
|
+
index += matchedForm.length;
|
|
207
|
+
continue;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
result += char;
|
|
212
|
+
}
|
|
213
|
+
return result;
|
|
214
|
+
};
|
|
80
215
|
var __hfNormalizeSelector = function(selector) {
|
|
81
216
|
if (!__hfCompId || typeof selector !== "string") return selector;
|
|
82
|
-
|
|
217
|
+
var normalized = selector
|
|
83
218
|
.replace(new RegExp(__hfRootSelectorPattern + '(?:' + __hfTimingSelectorPattern + ')+', 'g'), __hfRootSelector)
|
|
84
219
|
.replace(new RegExp('(?:' + __hfTimingSelectorPattern + ')+' + __hfRootSelectorPattern, 'g'), __hfRootSelector);
|
|
220
|
+
if (__hfAuthoredRootSelector) {
|
|
221
|
+
normalized = __hfReplaceAuthoredRootIdSelectors(normalized);
|
|
222
|
+
}
|
|
223
|
+
return normalized;
|
|
85
224
|
};
|
|
86
225
|
var __hfFindRoot = function() {
|
|
87
226
|
if (!__hfRoot && __hfRootSelector) {
|
|
@@ -112,8 +251,15 @@ export function wrapScopedCompositionScript(source, compositionId, errorLabel =
|
|
|
112
251
|
var root = __hfFindRoot();
|
|
113
252
|
if (!root) return found || null;
|
|
114
253
|
var idValue = id + "";
|
|
254
|
+
if (__hfAuthoredRootId && __hfAuthoredRootId === idValue && root.getAttribute && root.getAttribute(__hfAuthoredRootAttr) === idValue) {
|
|
255
|
+
return root;
|
|
256
|
+
}
|
|
115
257
|
if (root.id === idValue) return root;
|
|
116
258
|
if (typeof root.querySelector !== "function") return null;
|
|
259
|
+
try {
|
|
260
|
+
var authoredRootMatch = root.querySelector('[' + __hfAuthoredRootAttr + '="' + __hfEscapeAttr(idValue) + '"]');
|
|
261
|
+
if (authoredRootMatch) return authoredRootMatch;
|
|
262
|
+
} catch {}
|
|
117
263
|
if (typeof CSS !== "undefined" && CSS && typeof CSS.escape === "function") {
|
|
118
264
|
try {
|
|
119
265
|
return root.querySelector("#" + CSS.escape(idValue)) || null;
|
|
@@ -230,7 +376,12 @@ export function wrapScopedCompositionScript(source, compositionId, errorLabel =
|
|
|
230
376
|
var root = baseEl || __hfFindRoot();
|
|
231
377
|
return function(selector) {
|
|
232
378
|
if (!root || typeof selector !== "string") return [];
|
|
233
|
-
return Array.prototype.
|
|
379
|
+
return Array.prototype.filter.call(
|
|
380
|
+
window.document.querySelectorAll(__hfNormalizeSelector(selector)),
|
|
381
|
+
function(node) {
|
|
382
|
+
return node === root || (typeof root.contains === "function" && root.contains(node));
|
|
383
|
+
},
|
|
384
|
+
);
|
|
234
385
|
};
|
|
235
386
|
};
|
|
236
387
|
}
|
|
@@ -249,7 +400,7 @@ export function wrapScopedCompositionScript(source, compositionId, errorLabel =
|
|
|
249
400
|
: Object.assign({}, __hfBaseHyperframes, {
|
|
250
401
|
getVariables: function() {
|
|
251
402
|
var byComp = window.__hfVariablesByComp;
|
|
252
|
-
var scoped = byComp &&
|
|
403
|
+
var scoped = byComp && __hfTimelineCompId ? byComp[__hfTimelineCompId] : null;
|
|
253
404
|
return scoped ? Object.assign({}, scoped) : {};
|
|
254
405
|
},
|
|
255
406
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compositionScoping.js","sourceRoot":"","sources":["../../src/compiler/compositionScoping.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8C,MAAM,SAAS,CAAC;AAErE,SAAS,YAAY,CAAC,KAAa;IACjC,OAAO,KAAK,CAAC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC;AACtD,CAAC;AAED,SAAS,uBAAuB,CAAC,KAAa;IAC5C,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,SAAS,
|
|
1
|
+
{"version":3,"file":"compositionScoping.js","sourceRoot":"","sources":["../../src/compiler/compositionScoping.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8C,MAAM,SAAS,CAAC;AAErE,MAAM,qBAAqB,GAAG,qBAAqB,CAA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;;;;;;;;;;;;;;;;;;;;;;;;EAgQ1D,MAAM;;;;;;;;MAQF,CAAC;AACP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"htmlBundler.d.ts","sourceRoot":"","sources":["../../src/compiler/htmlBundler.ts"],"names":[],"mappings":"AAGA,OAAO,EAAe,KAAK,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"htmlBundler.d.ts","sourceRoot":"","sources":["../../src/compiler/htmlBundler.ts"],"names":[],"mappings":"AAGA,OAAO,EAAe,KAAK,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAmdvE,MAAM,WAAW,aAAa;IAC5B,oGAAoG;IACpG,kBAAkB,CAAC,EAAE,mBAAmB,CAAC;IACzC;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,EAAE,QAAQ,GAAG,aAAa,CAAC;CACpC;AAED;;;;;;;;GAQG;AACH,wBAAsB,kBAAkB,CACtC,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,MAAM,CAAC,CAiYjB"}
|