@plurid/plurid-engine 0.0.0-12 → 0.0.0-13
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/distribution/index.es.js +4 -4
- package/distribution/index.es.js.map +1 -1
- package/distribution/index.js +4 -4
- package/distribution/index.js.map +1 -1
- package/distribution/modules/state/compute/index.d.ts +1 -1
- package/distribution/modules/state/compute/space/index.d.ts +1 -1
- package/package.json +1 -1
package/distribution/index.js
CHANGED
|
@@ -2582,13 +2582,13 @@ var index$2 = Object.freeze({
|
|
|
2582
2582
|
view: index$3
|
|
2583
2583
|
});
|
|
2584
2584
|
|
|
2585
|
-
const resolveSpace = (view, configuration, planesRegistrar, currentState, localState, precomputedState, contextState) => {
|
|
2585
|
+
const resolveSpace = (view, configuration, planesRegistrar, currentState, localState, precomputedState, contextState, hostname = "origin") => {
|
|
2586
2586
|
const registeredPlanes = getRegisteredPlanes(planesRegistrar);
|
|
2587
2587
|
const spaceTree = new Tree({
|
|
2588
2588
|
planes: registeredPlanes,
|
|
2589
2589
|
configuration: configuration,
|
|
2590
2590
|
view: view
|
|
2591
|
-
});
|
|
2591
|
+
}, hostname);
|
|
2592
2592
|
const computedTree = spaceTree.compute();
|
|
2593
2593
|
const stateSpace = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
|
|
2594
2594
|
loading: true,
|
|
@@ -2673,10 +2673,10 @@ const resolveThemes = (configuration, precomputedState) => {
|
|
|
2673
2673
|
return stateThemes;
|
|
2674
2674
|
};
|
|
2675
2675
|
|
|
2676
|
-
const compute = (view, configuration, planesRegistrar, currentState, localState, precomputedState, contextState) => {
|
|
2676
|
+
const compute = (view, configuration, planesRegistrar, currentState, localState, precomputedState, contextState, hostname = "origin") => {
|
|
2677
2677
|
const specifiedConfiguration = merge(configuration);
|
|
2678
2678
|
const stateConfiguration = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, specifiedConfiguration), precomputedState === null || precomputedState === void 0 ? void 0 : precomputedState.configuration), contextState === null || contextState === void 0 ? void 0 : contextState.configuration), localState === null || localState === void 0 ? void 0 : localState.configuration), currentState === null || currentState === void 0 ? void 0 : currentState.configuration);
|
|
2679
|
-
const stateSpace = resolveSpace(view, stateConfiguration, planesRegistrar, currentState, localState, precomputedState, contextState);
|
|
2679
|
+
const stateSpace = resolveSpace(view, stateConfiguration, planesRegistrar, currentState, localState, precomputedState, contextState, hostname);
|
|
2680
2680
|
const stateThemes = resolveThemes(stateConfiguration, precomputedState);
|
|
2681
2681
|
const state = {
|
|
2682
2682
|
configuration: Object.assign({}, stateConfiguration),
|