@plurid/plurid-engine 0.0.0-10 → 0.0.0-11
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.js
CHANGED
|
@@ -18,14 +18,6 @@ function _interopDefaultLegacy(e) {
|
|
|
18
18
|
|
|
19
19
|
var themes__default = _interopDefaultLegacy(themes);
|
|
20
20
|
|
|
21
|
-
const specifiedOrDefault = (path, type, configuration) => {
|
|
22
|
-
const item = pluridFunctions.objects.getNested(configuration, path);
|
|
23
|
-
if (typeof item === type) {
|
|
24
|
-
return item;
|
|
25
|
-
}
|
|
26
|
-
return pluridFunctions.objects.getNested(pluridData.defaultConfiguration, path);
|
|
27
|
-
};
|
|
28
|
-
|
|
29
21
|
const resolveTheme = (theme, type) => {
|
|
30
22
|
if (!theme) {
|
|
31
23
|
return "plurid";
|
|
@@ -52,6 +44,13 @@ const merge = (configuration, target) => {
|
|
|
52
44
|
if (!configuration) {
|
|
53
45
|
return Object.assign({}, targetConfiguration);
|
|
54
46
|
}
|
|
47
|
+
const specifiedOrDefault = (path, type, configuration) => {
|
|
48
|
+
const item = pluridFunctions.objects.getNested(configuration, path);
|
|
49
|
+
if (typeof item === type) {
|
|
50
|
+
return item;
|
|
51
|
+
}
|
|
52
|
+
return pluridFunctions.objects.getNested(targetConfiguration, path);
|
|
53
|
+
};
|
|
55
54
|
const layout = configuration && configuration.space && typeof configuration.space.layout === "object" ? configuration.space.layout : targetConfiguration.space.layout;
|
|
56
55
|
const mergedConfiguration = Object.assign(Object.assign({}, targetConfiguration), {
|
|
57
56
|
global: {
|