@veloceapps/sdk 10.0.0-5 → 10.0.0-7
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/cms/modules/runtime/services/runtime.service.d.ts +3 -1
- package/cms/utils/index.d.ts +1 -0
- package/cms/utils/inject.d.ts +1 -0
- package/cms/utils/ui-definition.utils.d.ts +1 -0
- package/cms/vendor-map.d.ts +1 -0
- package/core/modules/configuration/services/configuration-state.service.d.ts +1 -0
- package/esm2020/cms/components/element-renderer/element-renderer.component.mjs +3 -2
- package/esm2020/cms/modules/runtime/services/runtime.service.mjs +3 -1
- package/esm2020/cms/utils/index.mjs +2 -1
- package/esm2020/cms/utils/inject.mjs +27 -0
- package/esm2020/cms/utils/ui-definition.utils.mjs +13 -1
- package/esm2020/cms/vendor-map.mjs +3 -1
- package/esm2020/core/modules/configuration/services/configuration-state.service.mjs +13 -4
- package/fesm2015/veloceapps-sdk-cms.mjs +41 -2
- package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -1
- package/fesm2015/veloceapps-sdk-core.mjs +10 -1
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-cms.mjs +40 -1
- package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-core.mjs +10 -1
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
- package/package.json +1 -1
@@ -2089,6 +2089,7 @@ class ConfigurationStateService {
|
|
2089
2089
|
this.configurationStore = {};
|
2090
2090
|
this.executionInProgress$ = new BehaviorSubject(false);
|
2091
2091
|
this.statefulRequestStream$ = new Subject();
|
2092
|
+
this.statelessExecutionRequest$ = null;
|
2092
2093
|
this.statefulExecutionRequest$ = this.initBufferedRequest$();
|
2093
2094
|
}
|
2094
2095
|
get isExecutionInProgress$() {
|
@@ -2135,7 +2136,15 @@ class ConfigurationStateService {
|
|
2135
2136
|
actions: [{ name: actionName, inputData }],
|
2136
2137
|
};
|
2137
2138
|
const request = this.execToRequest(exec);
|
2138
|
-
|
2139
|
+
const executionRequest$ = this.executeRequest$(request);
|
2140
|
+
if (this.isStatefulConfiguration) {
|
2141
|
+
return executionRequest$;
|
2142
|
+
}
|
2143
|
+
// prevent parallel configuration requests in stateless mode
|
2144
|
+
if (!this.statelessExecutionRequest$) {
|
2145
|
+
this.statelessExecutionRequest$ = executionRequest$.pipe(shareReplay$1(), take$1(1), finalize(() => (this.statelessExecutionRequest$ = null)));
|
2146
|
+
}
|
2147
|
+
return this.statelessExecutionRequest$;
|
2139
2148
|
}
|
2140
2149
|
select$(selectorName, inputData = {}) {
|
2141
2150
|
const requestId = UUID.UUID();
|