@admin-layout/client 10.1.1-alpha.10 → 10.1.1-alpha.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/lib/components/LayoutCookieProvider.d.ts.map +1 -1
- package/lib/components/LayoutCookieProvider.js +0 -3
- package/lib/components/LayoutCookieProvider.js.map +1 -1
- package/lib/components/UpdateSettings/UpdateSettings.server.d.ts.map +1 -1
- package/lib/components/UpdateSettings/UpdateSettings.server.js +3 -7
- package/lib/components/UpdateSettings/UpdateSettings.server.js.map +1 -1
- package/lib/redux/reducers/settings.d.ts.map +1 -1
- package/lib/redux/reducers/settings.js +2 -6
- package/lib/redux/reducers/settings.js.map +1 -1
- package/lib/redux/store.js +1 -1
- package/lib/utils/assignDefaults.d.ts +4 -5
- package/lib/utils/assignDefaults.d.ts.map +1 -1
- package/lib/utils/assignDefaults.js +143 -34
- package/lib/utils/assignDefaults.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutCookieProvider.d.ts","sourceRoot":"","sources":["../../src/components/LayoutCookieProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAK/C,UAAU,yBAAyB;IAC/B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED,wBAAgB,oBAAoB,CAAC,EAAE,QAAQ,EAAE,EAAE,yBAAyB,GAAG,KAAK,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"LayoutCookieProvider.d.ts","sourceRoot":"","sources":["../../src/components/LayoutCookieProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAK/C,UAAU,yBAAyB;IAC/B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED,wBAAgB,oBAAoB,CAAC,EAAE,QAAQ,EAAE,EAAE,yBAAyB,GAAG,KAAK,CAAC,YAAY,CAkBhG"}
|
|
@@ -12,8 +12,5 @@ import {jsx,Fragment}from'react/jsx-runtime';import {useLoaderData}from'@remix-r
|
|
|
12
12
|
useLayoutEffect(() => {
|
|
13
13
|
changeSettings();
|
|
14
14
|
}, [settings, dispatch]);
|
|
15
|
-
if (typeof window === 'undefined') {
|
|
16
|
-
changeSettings();
|
|
17
|
-
}
|
|
18
15
|
return jsx(Fragment, { children: children });
|
|
19
16
|
}export{LayoutCookieProvider};//# sourceMappingURL=LayoutCookieProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutCookieProvider.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LayoutCookieProvider.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateSettings.server.d.ts","sourceRoot":"","sources":["../../../src/components/UpdateSettings/UpdateSettings.server.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAY/C,wBAAsB,kBAAkB,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAAC;IACjF,QAAQ,EAAE,WAAW,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;CACrB,CAAC,
|
|
1
|
+
{"version":3,"file":"UpdateSettings.server.d.ts","sourceRoot":"","sources":["../../../src/components/UpdateSettings/UpdateSettings.server.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAY/C,wBAAsB,kBAAkB,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAAC;IACjF,QAAQ,EAAE,WAAW,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;CACrB,CAAC,CA6BD;AAED,eAAO,MAAM,MAAM,GAAU,aAAa;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,oEA8B7D,CAAC;AAEF,eAAO,MAAM,MAAM,GAAU,aAAa;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE;;GAkB7D,CAAC"}
|
|
@@ -11,6 +11,7 @@ async function settingsLoaderUtil({ request }) {
|
|
|
11
11
|
try {
|
|
12
12
|
settings = await settingsCookie.parse(cookieHeader);
|
|
13
13
|
console.log('Parsed cookie settings:', settings);
|
|
14
|
+
assignDefaults(settings, defaultSettings);
|
|
14
15
|
}
|
|
15
16
|
catch (error) {
|
|
16
17
|
console.error('Error parsing settings cookie:', error);
|
|
@@ -19,6 +20,7 @@ async function settingsLoaderUtil({ request }) {
|
|
|
19
20
|
// If no settings in cookie, generate default settings
|
|
20
21
|
if (!settings) {
|
|
21
22
|
const fullSettings = merge({}, defaultSettings, config.LAYOUT_SETTINGS);
|
|
23
|
+
assignDefaults(fullSettings, defaultSettings);
|
|
22
24
|
// Only store differences to keep cookie size small
|
|
23
25
|
const diffSettings = await compareAndSaveSettingsDifferences(fullSettings, defaultSettings);
|
|
24
26
|
const cookie = await settingsCookie.serialize(diffSettings);
|
|
@@ -38,15 +40,12 @@ const action = async ({ request }) => {
|
|
|
38
40
|
let existingSettings;
|
|
39
41
|
try {
|
|
40
42
|
existingSettings = await settingsCookie.parse(cookieHeader);
|
|
43
|
+
assignDefaults(merge({}, payload, existingSettings), defaultSettings);
|
|
41
44
|
}
|
|
42
45
|
catch (error) {
|
|
43
46
|
console.error('Error parsing settings cookie in action:', error);
|
|
44
47
|
existingSettings = null;
|
|
45
48
|
}
|
|
46
|
-
// Compare payload and existingSettings, add missing keys from existingSettings to payload with default value
|
|
47
|
-
if (existingSettings) {
|
|
48
|
-
assignDefaults(payload, existingSettings, defaultSettings);
|
|
49
|
-
}
|
|
50
49
|
// Merge everything together
|
|
51
50
|
const fullSettings = merge({}, defaultSettings, config.LAYOUT_SETTINGS, existingSettings || {}, payload);
|
|
52
51
|
// Store only differences from default
|
|
@@ -72,9 +71,6 @@ const loader = async ({ request }) => {
|
|
|
72
71
|
if (setCookie) {
|
|
73
72
|
headers['Set-Cookie'] = setCookie;
|
|
74
73
|
}
|
|
75
|
-
if (settings) {
|
|
76
|
-
assignDefaults(settings, settings, defaultSettings);
|
|
77
|
-
}
|
|
78
74
|
return json({ settings }, { headers });
|
|
79
75
|
}
|
|
80
76
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateSettings.server.js","sources":["../../../src/components/UpdateSettings/UpdateSettings.server.ts"],"sourcesContent":[null],"names":[],"mappings":"uYAiBa,iBAAS,YAAA,CAAA,UAAA,EAAA;AACrB,
|
|
1
|
+
{"version":3,"file":"UpdateSettings.server.js","sources":["../../../src/components/UpdateSettings/UpdateSettings.server.ts"],"sourcesContent":[null],"names":[],"mappings":"uYAiBa,iBAAS,YAAA,CAAA,UAAA,EAAA;AACrB,IA6BA,MAAA,EAAA,EAAA,GAAA,EAAA,GAAA,EAAA,GAAA,EAAA;AAED,IAAO,QAAA,EAAA,KAAA;IAAqC,QAAO;AAAW,IAAA,IAAA,EAAA,GAAA;AAgC9D,IAAO,MAAA,EAAA,MAAA,CAAA,MAAY,GAAA,MAAuB,CAAA,UAAA,GAAA,SAAA;;AAAoB,eAAA,kBAAA,CAAA,EAAA,OAAA,EAAA,EAAA;;IAkB5D,IAAA,QAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/redux/reducers/settings.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/redux/reducers/settings.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAanD,QAAA,MAAM,eAAe,GACjB,OAAO,GAAgC,EACvC,mBAAwB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,eAAe,CAAA;CAAE,QAyBrE,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {CHANGE_LANGUAGE,CHANGE_SETTINGS_ACTION}from'../../constants/constants.js';import {
|
|
1
|
+
import {CHANGE_LANGUAGE,CHANGE_SETTINGS_ACTION}from'../../constants/constants.js';import {defaultSettings}from'../../config/defaultSettings.js';import {merge,cloneDeep}from'lodash-es';/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
|
2
2
|
/* eslint-disable no-case-declarations */
|
|
3
3
|
// Note: We customize reducer part as AntPro uses inbuild way.
|
|
4
4
|
const updateColorWeak = (colorWeak) => {
|
|
@@ -10,11 +10,7 @@ const updateColorWeak = (colorWeak) => {
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
|
-
|
|
14
|
-
// colorWeak: any;
|
|
15
|
-
// contentWidth: any;
|
|
16
|
-
// }
|
|
17
|
-
const settingsReducer = (state = config.LAYOUT_SETTINGS, { type, payload = {} }) => {
|
|
13
|
+
const settingsReducer = (state = merge({}, defaultSettings), { type, payload = {} }) => {
|
|
18
14
|
switch (type) {
|
|
19
15
|
case CHANGE_SETTINGS_ACTION:
|
|
20
16
|
const { colorWeak, contentWidth } = payload;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","sources":["../../../src/redux/reducers/settings.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"settings.js","sources":["../../../src/redux/reducers/settings.ts"],"sourcesContent":[null],"names":[],"mappings":"wLAKA;AAaA;AA6BA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/redux/store.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {combineReducers,configureStore}from'@reduxjs/toolkit';import {applicationErrors}from'./reducers/error.js';import'../config/
|
|
1
|
+
import {combineReducers,configureStore}from'@reduxjs/toolkit';import {applicationErrors}from'./reducers/error.js';import'../config/defaultSettings.js';import'lodash-es';// Combine the reducers into an object
|
|
2
2
|
const rootReducer = combineReducers({
|
|
3
3
|
applicationErrors: applicationErrors, // Adding applicationErrors reducer
|
|
4
4
|
});
|
|
@@ -2,11 +2,10 @@ export interface DefaultsObject {
|
|
|
2
2
|
[key: string]: any;
|
|
3
3
|
}
|
|
4
4
|
/**
|
|
5
|
-
* Recursively assigns default values for
|
|
6
|
-
* based on source object structure
|
|
5
|
+
* Recursively assigns default values only for non-existent keys in target object,
|
|
6
|
+
* based on source object structure. Does not modify any existing values in target.
|
|
7
7
|
* @param target - The target object to assign defaults to
|
|
8
|
-
* @param source - The source object containing the structure
|
|
9
|
-
* @param defaults - The default values to use when a key is missing
|
|
8
|
+
* @param source - The source object containing the structure and default values
|
|
10
9
|
*/
|
|
11
|
-
export declare function assignDefaults(target: DefaultsObject, source: DefaultsObject
|
|
10
|
+
export declare function assignDefaults(target: DefaultsObject, source: DefaultsObject): void;
|
|
12
11
|
//# sourceMappingURL=assignDefaults.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assignDefaults.d.ts","sourceRoot":"","sources":["../../src/utils/assignDefaults.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED
|
|
1
|
+
{"version":3,"file":"assignDefaults.d.ts","sourceRoot":"","sources":["../../src/utils/assignDefaults.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,cAAc,GAAG,IAAI,CA6JnF"}
|
|
@@ -1,48 +1,157 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Recursively assigns default values for
|
|
3
|
-
* based on source object structure
|
|
2
|
+
* Recursively assigns default values only for non-existent keys in target object,
|
|
3
|
+
* based on source object structure. Does not modify any existing values in target.
|
|
4
4
|
* @param target - The target object to assign defaults to
|
|
5
|
-
* @param source - The source object containing the structure
|
|
6
|
-
* @param defaults - The default values to use when a key is missing
|
|
5
|
+
* @param source - The source object containing the structure and default values
|
|
7
6
|
*/
|
|
8
|
-
function assignDefaults(target, source
|
|
7
|
+
function assignDefaults(target, source) {
|
|
9
8
|
// Special handling for routeSettings to ensure all routes have complete structure
|
|
10
|
-
if (
|
|
11
|
-
const rootRoute =
|
|
9
|
+
if (source?.routeSettings && target.routeSettings) {
|
|
10
|
+
const rootRoute = source.routeSettings['/'];
|
|
12
11
|
if (rootRoute) {
|
|
13
12
|
Object.keys(target.routeSettings).forEach((route) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
13
|
+
const currentRoute = target.routeSettings[route];
|
|
14
|
+
// Handle layout
|
|
15
|
+
if (!currentRoute.layout) {
|
|
16
|
+
currentRoute.layout = {
|
|
17
|
+
desktop: { ...rootRoute.layout.desktop },
|
|
18
|
+
mobile: { ...rootRoute.layout.mobile },
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
if (!currentRoute.layout.desktop) {
|
|
23
|
+
currentRoute.layout.desktop = { ...rootRoute.layout.desktop };
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
Object.keys(rootRoute.layout.desktop).forEach((key) => {
|
|
27
|
+
if (!(key in currentRoute.layout.desktop)) {
|
|
28
|
+
currentRoute.layout.desktop[key] = rootRoute.layout.desktop[key];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
if (!currentRoute.layout.mobile) {
|
|
33
|
+
currentRoute.layout.mobile = { ...rootRoute.layout.mobile };
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
Object.keys(rootRoute.layout.mobile).forEach((key) => {
|
|
37
|
+
if (!(key in currentRoute.layout.mobile)) {
|
|
38
|
+
currentRoute.layout.mobile[key] = rootRoute.layout.mobile[key];
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
// Handle regions
|
|
44
|
+
if (!currentRoute.regions) {
|
|
45
|
+
currentRoute.regions = {
|
|
46
|
+
desktop: {
|
|
47
|
+
header: { ...rootRoute.regions.desktop.header },
|
|
48
|
+
background: { ...rootRoute.regions.desktop.background },
|
|
49
|
+
footer: { ...rootRoute.regions.desktop.footer },
|
|
24
50
|
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
51
|
+
mobile: {
|
|
52
|
+
header: { ...rootRoute.regions.mobile.header },
|
|
53
|
+
background: { ...rootRoute.regions.mobile.background },
|
|
54
|
+
footer: { ...rootRoute.regions.mobile.footer },
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
// Handle desktop regions
|
|
60
|
+
if (!currentRoute.regions.desktop) {
|
|
61
|
+
currentRoute.regions.desktop = {
|
|
62
|
+
header: { ...rootRoute.regions.desktop.header },
|
|
63
|
+
background: { ...rootRoute.regions.desktop.background },
|
|
64
|
+
footer: { ...rootRoute.regions.desktop.footer },
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
// Handle desktop header
|
|
69
|
+
if (!currentRoute.regions.desktop.header) {
|
|
70
|
+
currentRoute.regions.desktop.header = { ...rootRoute.regions.desktop.header };
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
Object.keys(rootRoute.regions.desktop.header).forEach((key) => {
|
|
74
|
+
if (!(key in currentRoute.regions.desktop.header)) {
|
|
75
|
+
currentRoute.regions.desktop.header[key] = rootRoute.regions.desktop.header[key];
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
// Handle desktop background
|
|
80
|
+
if (!currentRoute.regions.desktop.background) {
|
|
81
|
+
currentRoute.regions.desktop.background = { ...rootRoute.regions.desktop.background };
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
Object.keys(rootRoute.regions.desktop.background).forEach((key) => {
|
|
85
|
+
if (!(key in currentRoute.regions.desktop.background)) {
|
|
86
|
+
currentRoute.regions.desktop.background[key] =
|
|
87
|
+
rootRoute.regions.desktop.background[key];
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
// Handle desktop footer
|
|
92
|
+
if (!currentRoute.regions.desktop.footer) {
|
|
93
|
+
currentRoute.regions.desktop.footer = { ...rootRoute.regions.desktop.footer };
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
Object.keys(rootRoute.regions.desktop.footer).forEach((key) => {
|
|
97
|
+
if (!(key in currentRoute.regions.desktop.footer)) {
|
|
98
|
+
currentRoute.regions.desktop.footer[key] = rootRoute.regions.desktop.footer[key];
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
// Handle mobile regions
|
|
104
|
+
if (!currentRoute.regions.mobile) {
|
|
105
|
+
currentRoute.regions.mobile = {
|
|
106
|
+
header: { ...rootRoute.regions.mobile.header },
|
|
107
|
+
background: { ...rootRoute.regions.mobile.background },
|
|
108
|
+
footer: { ...rootRoute.regions.mobile.footer },
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
// Handle mobile header
|
|
113
|
+
if (!currentRoute.regions.mobile.header) {
|
|
114
|
+
currentRoute.regions.mobile.header = { ...rootRoute.regions.mobile.header };
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
Object.keys(rootRoute.regions.mobile.header).forEach((key) => {
|
|
118
|
+
if (!(key in currentRoute.regions.mobile.header)) {
|
|
119
|
+
currentRoute.regions.mobile.header[key] = rootRoute.regions.mobile.header[key];
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
// Handle mobile background
|
|
124
|
+
if (!currentRoute.regions.mobile.background) {
|
|
125
|
+
currentRoute.regions.mobile.background = { ...rootRoute.regions.mobile.background };
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
Object.keys(rootRoute.regions.mobile.background).forEach((key) => {
|
|
129
|
+
if (!(key in currentRoute.regions.mobile.background)) {
|
|
130
|
+
currentRoute.regions.mobile.background[key] =
|
|
131
|
+
rootRoute.regions.mobile.background[key];
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
// Handle mobile footer
|
|
136
|
+
if (!currentRoute.regions.mobile.footer) {
|
|
137
|
+
currentRoute.regions.mobile.footer = { ...rootRoute.regions.mobile.footer };
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
Object.keys(rootRoute.regions.mobile.footer).forEach((key) => {
|
|
141
|
+
if (!(key in currentRoute.regions.mobile.footer)) {
|
|
142
|
+
currentRoute.regions.mobile.footer[key] = rootRoute.regions.mobile.footer[key];
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
39
148
|
});
|
|
40
149
|
}
|
|
41
150
|
}
|
|
42
151
|
Object.keys(source).forEach((key) => {
|
|
43
152
|
if (!(key in target)) {
|
|
44
|
-
//
|
|
45
|
-
target[key] =
|
|
153
|
+
// Only assign default if the key doesn't exist
|
|
154
|
+
target[key] = source[key];
|
|
46
155
|
}
|
|
47
156
|
else if (typeof source[key] === 'object' &&
|
|
48
157
|
source[key] !== null &&
|
|
@@ -51,7 +160,7 @@ function assignDefaults(target, source, defaults) {
|
|
|
51
160
|
target[key] !== null &&
|
|
52
161
|
!Array.isArray(target[key])) {
|
|
53
162
|
// Recursively assign for nested objects
|
|
54
|
-
assignDefaults(target[key], source[key]
|
|
163
|
+
assignDefaults(target[key], source[key]);
|
|
55
164
|
}
|
|
56
165
|
});
|
|
57
166
|
}export{assignDefaults};//# sourceMappingURL=assignDefaults.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assignDefaults.js","sources":["../../src/utils/assignDefaults.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACI;AACH;AAED
|
|
1
|
+
{"version":3,"file":"assignDefaults.js","sources":["../../src/utils/assignDefaults.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACI;AACH;AAED;;;;;AAKG,IAAA,IAAA,MAAA,EAAA,aAAA,IAAA,MAAA,CAAA,aAAA,EAAA;AACH,QAAgB,MAAA,SAAA,GAAA,MAAA,CAAA,aAAuB,CAAA,GAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@admin-layout/client",
|
|
3
|
-
"version": "10.1.1-alpha.
|
|
3
|
+
"version": "10.1.1-alpha.11",
|
|
4
4
|
"description": "Sample client for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"typescript": {
|
|
41
41
|
"definition": "lib/index.d.ts"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "ca5f3396d249806ac05fd1f01b36fcb27f096744"
|
|
44
44
|
}
|