@next-core/brick-utils 2.50.1 → 2.50.3
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/index.bundle.js +12 -3
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +12 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +5 -5
package/dist/index.bundle.js
CHANGED
|
@@ -17507,7 +17507,7 @@
|
|
|
17507
17507
|
return /^\s*<%~\s/.test(raw);
|
|
17508
17508
|
}
|
|
17509
17509
|
function isSnippetEvaluation(raw) {
|
|
17510
|
-
return /^\s*<%[!@]
|
|
17510
|
+
return /^\s*<%[!@]=?\s/.test(raw) && /\s%>\s*$/.test(raw);
|
|
17511
17511
|
}
|
|
17512
17512
|
function isTrackAll(raw) {
|
|
17513
17513
|
return /^\s*<%=\s/.test(raw) && /\s%>\s*$/.test(raw);
|
|
@@ -20563,7 +20563,8 @@
|
|
|
20563
20563
|
try {
|
|
20564
20564
|
var raw = value;
|
|
20565
20565
|
var ctxOrState = context.rootType === "template" ? "STATE" : "CTX";
|
|
20566
|
-
|
|
20566
|
+
var ctxOrStateUpdate = context.rootType === "template" ? "state.update" : "context.replace";
|
|
20567
|
+
if (/^\s*<%@=?\s*/.test(value)) {
|
|
20567
20568
|
var replacements = [{
|
|
20568
20569
|
search: "<%@",
|
|
20569
20570
|
replace: "<%"
|
|
@@ -20587,6 +20588,14 @@
|
|
|
20587
20588
|
if (attemptVisitSnippetParams) {
|
|
20588
20589
|
globalVariables.SNIPPET_PARAMS = context.inputParams;
|
|
20589
20590
|
}
|
|
20591
|
+
var attemptVisitSnippetRootType = attemptToVisitGlobals.has("SNIPPET_ROOT_TYPE");
|
|
20592
|
+
if (attemptVisitSnippetRootType) {
|
|
20593
|
+
globalVariables.SNIPPET_ROOT_TYPE = context.rootType;
|
|
20594
|
+
}
|
|
20595
|
+
var attemptVisitSnippetDataUpdateMethod = attemptToVisitGlobals.has("DATA_UPDATE_METHOD");
|
|
20596
|
+
if (attemptVisitSnippetDataUpdateMethod) {
|
|
20597
|
+
globalVariables.DATA_UPDATE_METHOD = ctxOrStateUpdate;
|
|
20598
|
+
}
|
|
20590
20599
|
var result = cook(expression, source, {
|
|
20591
20600
|
globalVariables: supply(attemptToVisitGlobals, globalVariables)
|
|
20592
20601
|
});
|
|
@@ -20594,7 +20603,7 @@
|
|
|
20594
20603
|
} catch (error) {
|
|
20595
20604
|
/* istanbul ignore next */
|
|
20596
20605
|
// eslint-disable-next-line no-console
|
|
20597
|
-
|
|
20606
|
+
throw new Error("Parse storyboard expression failed: ".concat(error));
|
|
20598
20607
|
}
|
|
20599
20608
|
}
|
|
20600
20609
|
if (!isObject$1(value)) {
|