@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
@@ -2060,6 +2060,7 @@ class ConfigurationStateService {
|
|
2060
2060
|
this.configurationStore = {};
|
2061
2061
|
this.executionInProgress$ = new BehaviorSubject(false);
|
2062
2062
|
this.statefulRequestStream$ = new Subject();
|
2063
|
+
this.statelessExecutionRequest$ = null;
|
2063
2064
|
this.statefulExecutionRequest$ = this.initBufferedRequest$();
|
2064
2065
|
}
|
2065
2066
|
get isExecutionInProgress$() {
|
@@ -2107,7 +2108,15 @@ class ConfigurationStateService {
|
|
2107
2108
|
actions: [{ name: actionName, inputData }],
|
2108
2109
|
};
|
2109
2110
|
const request = this.execToRequest(exec);
|
2110
|
-
|
2111
|
+
const executionRequest$ = this.executeRequest$(request);
|
2112
|
+
if (this.isStatefulConfiguration) {
|
2113
|
+
return executionRequest$;
|
2114
|
+
}
|
2115
|
+
// prevent parallel configuration requests in stateless mode
|
2116
|
+
if (!this.statelessExecutionRequest$) {
|
2117
|
+
this.statelessExecutionRequest$ = executionRequest$.pipe(shareReplay$1(), take$1(1), finalize(() => (this.statelessExecutionRequest$ = null)));
|
2118
|
+
}
|
2119
|
+
return this.statelessExecutionRequest$;
|
2111
2120
|
}
|
2112
2121
|
select$(selectorName, inputData = {}) {
|
2113
2122
|
const requestId = UUID.UUID();
|