@next-core/brick-kit 2.164.3 → 2.164.5
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
CHANGED
|
@@ -1899,7 +1899,12 @@
|
|
|
1899
1899
|
}
|
|
1900
1900
|
}
|
|
1901
1901
|
getResolveOptions(coreContext) {
|
|
1902
|
-
return this.
|
|
1902
|
+
return this.formContextId ? {
|
|
1903
|
+
mergedContext: _objectSpread__default["default"](_objectSpread__default["default"]({}, coreContext), {}, {
|
|
1904
|
+
formContextId: this.formContextId
|
|
1905
|
+
}),
|
|
1906
|
+
keyword: "FORM_STATE"
|
|
1907
|
+
} : this.tplContextId ? {
|
|
1903
1908
|
mergedContext: _objectSpread__default["default"](_objectSpread__default["default"]({}, coreContext), {}, {
|
|
1904
1909
|
tplContextId: this.tplContextId
|
|
1905
1910
|
}),
|
|
@@ -2017,8 +2022,9 @@
|
|
|
2017
2022
|
}
|
|
2018
2023
|
if (contextConf.track) {
|
|
2019
2024
|
var isTemplateState = !!storyboardContextWrapper.tplContextId;
|
|
2025
|
+
var isFormState = !!storyboardContextWrapper.formContextId;
|
|
2020
2026
|
// Track its dependencies and auto update when each of them changed.
|
|
2021
|
-
var deps = (isTemplateState ? brickUtils.trackUsedState : brickUtils.trackUsedContext)(load ? contextConf.resolve : contextConf.value);
|
|
2027
|
+
var deps = (isFormState ? brickUtils.trackUsedFormState : isTemplateState ? brickUtils.trackUsedState : brickUtils.trackUsedContext)(load ? contextConf.resolve : contextConf.value);
|
|
2022
2028
|
for (var dep of deps) {
|
|
2023
2029
|
var _eventTarget;
|
|
2024
2030
|
var ctx = storyboardContextWrapper.get().get(dep);
|
|
@@ -11641,7 +11647,7 @@
|
|
|
11641
11647
|
throw new Error(message);
|
|
11642
11648
|
}
|
|
11643
11649
|
// eslint-disable-next-line no-console
|
|
11644
|
-
console
|
|
11650
|
+
console.warn(message);
|
|
11645
11651
|
}
|
|
11646
11652
|
}
|
|
11647
11653
|
|