@next-core/brick-kit 2.180.0 → 2.181.1
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 +16 -4
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +16 -4
- 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.esm.js
CHANGED
|
@@ -2595,9 +2595,15 @@ function evaluate(raw) {
|
|
|
2595
2595
|
}
|
|
2596
2596
|
});
|
|
2597
2597
|
case "QUERY":
|
|
2598
|
-
|
|
2598
|
+
{
|
|
2599
|
+
var params = options.useRealTimeQuery ? new URLSearchParams(getHistory().location.search) : query;
|
|
2600
|
+
return Object.fromEntries(Array.from(params.keys()).map(key => [key, params.get(key)]));
|
|
2601
|
+
}
|
|
2599
2602
|
case "QUERY_ARRAY":
|
|
2600
|
-
|
|
2603
|
+
{
|
|
2604
|
+
var _params = options.useRealTimeQuery ? new URLSearchParams(getHistory().location.search) : query;
|
|
2605
|
+
return Object.fromEntries(Array.from(_params.keys()).map(key => [key, _params.getAll(key)]));
|
|
2606
|
+
}
|
|
2601
2607
|
case "SEGUE":
|
|
2602
2608
|
return {
|
|
2603
2609
|
getUrl: getUrlBySegueFactory(app, segues)
|
|
@@ -5999,7 +6005,8 @@ function getApiArgsFromApiProfile(_ref, originalArgs, method) {
|
|
|
5999
6005
|
isFileType,
|
|
6000
6006
|
request
|
|
6001
6007
|
} = _ref;
|
|
6002
|
-
|
|
6008
|
+
// `saveAs` requires the first argument to be the filename.
|
|
6009
|
+
var isDownload = method === "saveAs";
|
|
6003
6010
|
var fileName;
|
|
6004
6011
|
if (isDownload) {
|
|
6005
6012
|
fileName = originalArgs.shift();
|
|
@@ -14794,10 +14801,15 @@ function useProvider() {
|
|
|
14794
14801
|
* @returns Computed real value.
|
|
14795
14802
|
*/
|
|
14796
14803
|
function getRealValue(value) {
|
|
14804
|
+
var {
|
|
14805
|
+
useRealTimeQuery
|
|
14806
|
+
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
14797
14807
|
var compute = (data, ctx) => {
|
|
14798
14808
|
if (typeof data === "string") {
|
|
14799
14809
|
if (isEvaluable(data)) {
|
|
14800
|
-
var result = evaluate(data
|
|
14810
|
+
var result = evaluate(data, undefined, {
|
|
14811
|
+
useRealTimeQuery
|
|
14812
|
+
});
|
|
14801
14813
|
recursiveMarkAsInjected(result);
|
|
14802
14814
|
return result;
|
|
14803
14815
|
}
|