@next-core/brick-kit 2.180.0 → 2.181.0
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 +14 -3
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +14 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/types/getRealValue.d.ts +3 -1
- package/dist/types/getRealValue.d.ts.map +1 -1
- package/dist/types/internal/evaluate.d.ts +1 -0
- package/dist/types/internal/evaluate.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.bundle.js
CHANGED
|
@@ -2593,9 +2593,15 @@
|
|
|
2593
2593
|
}
|
|
2594
2594
|
});
|
|
2595
2595
|
case "QUERY":
|
|
2596
|
-
|
|
2596
|
+
{
|
|
2597
|
+
var params = options.useRealTimeQuery ? new URLSearchParams(getHistory().location.search) : query;
|
|
2598
|
+
return Object.fromEntries(Array.from(params.keys()).map(key => [key, params.get(key)]));
|
|
2599
|
+
}
|
|
2597
2600
|
case "QUERY_ARRAY":
|
|
2598
|
-
|
|
2601
|
+
{
|
|
2602
|
+
var _params = options.useRealTimeQuery ? new URLSearchParams(getHistory().location.search) : query;
|
|
2603
|
+
return Object.fromEntries(Array.from(_params.keys()).map(key => [key, _params.getAll(key)]));
|
|
2604
|
+
}
|
|
2599
2605
|
case "SEGUE":
|
|
2600
2606
|
return {
|
|
2601
2607
|
getUrl: getUrlBySegueFactory(app, segues)
|
|
@@ -14792,10 +14798,15 @@
|
|
|
14792
14798
|
* @returns Computed real value.
|
|
14793
14799
|
*/
|
|
14794
14800
|
function getRealValue(value) {
|
|
14801
|
+
var {
|
|
14802
|
+
useRealTimeQuery
|
|
14803
|
+
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
14795
14804
|
var compute = (data, ctx) => {
|
|
14796
14805
|
if (typeof data === "string") {
|
|
14797
14806
|
if (brickUtils.isEvaluable(data)) {
|
|
14798
|
-
var result = evaluate(data
|
|
14807
|
+
var result = evaluate(data, undefined, {
|
|
14808
|
+
useRealTimeQuery
|
|
14809
|
+
});
|
|
14799
14810
|
recursiveMarkAsInjected(result);
|
|
14800
14811
|
return result;
|
|
14801
14812
|
}
|