@admin-layout/client 12.0.16-alpha.7 → 12.0.16-alpha.72
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/__tests__/ApplicationErrorHandlerCommon.test.d.ts.map +1 -0
- package/lib/__tests__/ConfigurationModelWrapper.test.d.ts +2 -0
- package/lib/__tests__/ConfigurationModelWrapper.test.d.ts.map +1 -0
- package/lib/__tests__/SettingsConfigurationModel.test.d.ts.map +1 -0
- package/lib/__tests__/__fixtures__/defaultSettingsExample.d.ts +3 -0
- package/lib/__tests__/__fixtures__/defaultSettingsExample.d.ts.map +1 -0
- package/lib/colors/colorsList.js.map +1 -1
- package/lib/colors/presets/black.js.map +1 -1
- package/lib/colors/presets/white.js.map +1 -1
- package/lib/components/ApplicationErrorHandlerCommon.js.map +1 -1
- package/lib/components/ErrorBoundaryCommon.js.map +1 -1
- package/lib/components/UpdateSettings/UpdateSettings.server.d.ts +65 -20
- package/lib/components/UpdateSettings/UpdateSettings.server.d.ts.map +1 -1
- package/lib/components/UpdateSettings/UpdateSettings.server.js +198 -103
- package/lib/components/UpdateSettings/UpdateSettings.server.js.map +1 -1
- package/lib/components/UpdateSettings/UpdateSettings.server.test.d.ts +2 -0
- package/lib/components/UpdateSettings/UpdateSettings.server.test.d.ts.map +1 -0
- package/lib/config/defaultSettings.d.ts +76 -1
- package/lib/config/defaultSettings.d.ts.map +1 -1
- package/lib/config/defaultSettings.js +2 -112
- package/lib/config/defaultSettings.js.map +1 -1
- package/lib/config/env-config.d.ts +3 -5
- package/lib/config/env-config.d.ts.map +1 -1
- package/lib/config/env-config.js +13 -20
- package/lib/config/env-config.js.map +1 -1
- package/lib/constants/constants.js.map +1 -1
- package/lib/constants/error.js.map +1 -1
- package/lib/constants/languages.js.map +1 -1
- package/lib/constants/layout.js.map +1 -1
- package/lib/graphql/link/error-link.js.map +1 -1
- package/lib/hooks/useLayoutSettings.d.ts +2 -2
- package/lib/hooks/useLayoutSettings.d.ts.map +1 -1
- package/lib/hooks/useLayoutSettings.js +64 -31
- package/lib/hooks/useLayoutSettings.js.map +1 -1
- package/lib/hooks/useLayoutSettings.test.d.ts +2 -0
- package/lib/hooks/useLayoutSettings.test.d.ts.map +1 -0
- package/lib/index.js +1 -1
- package/lib/index.native.js +1 -1
- package/lib/interfaces/pure-settings.d.ts +8 -0
- package/lib/interfaces/pure-settings.d.ts.map +1 -1
- package/lib/interfaces/settings.d.ts +7 -6
- package/lib/interfaces/settings.d.ts.map +1 -1
- package/lib/interfaces/settings.js.map +1 -1
- package/lib/interfaces/typings.d.ts +1 -1
- package/lib/interfaces/typings.d.ts.map +1 -1
- package/lib/redux/actions/error-actions.js.map +1 -1
- package/lib/redux/reducers/error.js.map +1 -1
- package/lib/redux/reducers/settings.d.ts.map +1 -1
- package/lib/redux/reducers/settings.js +2 -2
- package/lib/redux/reducers/settings.js.map +1 -1
- package/lib/redux/selectors/index.js.map +1 -1
- package/lib/redux/store.js +1 -1
- package/lib/redux/store.js.map +1 -1
- package/lib/themes/systemFont/index.js.map +1 -1
- package/lib/themes/templates/createLayoutTheme.js.map +1 -1
- package/lib/themes/templates/darkLayoutTheme.js.map +1 -1
- package/lib/themes/templates/lightLayoutTheme.js.map +1 -1
- package/lib/utils/assignDefaults.d.ts +0 -1
- package/lib/utils/assignDefaults.d.ts.map +1 -1
- package/lib/utils/assignDefaults.test.d.ts +0 -1
- package/lib/utils/generateMenuLink.js.map +1 -1
- package/lib/utils/matchMenuKeys.js.map +1 -1
- package/lib/utils/menuUtils.js.map +1 -1
- package/lib/utils/parseEnvUiLayoutSettings.d.ts +6 -0
- package/lib/utils/parseEnvUiLayoutSettings.d.ts.map +1 -0
- package/lib/utils/parseEnvUiLayoutSettings.js +27 -0
- package/lib/utils/parseEnvUiLayoutSettings.js.map +1 -0
- package/lib/utils/parseEnvUiLayoutSettings.test.d.ts +2 -0
- package/lib/utils/parseEnvUiLayoutSettings.test.d.ts.map +1 -0
- package/lib/utils/seperatedMenus.js.map +1 -1
- package/lib/utils/settingsDifference.d.ts +1 -0
- package/lib/utils/settingsDifference.d.ts.map +1 -1
- package/lib/utils/settingsDifference.js +51 -110
- package/lib/utils/settingsDifference.js.map +1 -1
- package/package.json +8 -4
- package/lib/components/UpdateSettings/SettingsConfigurationModel.test.d.ts.map +0 -1
- package/lib/components/__tests__/ApplicationErrorHandlerCommon.test.d.ts.map +0 -1
- package/lib/utils/assignDefaults.js +0 -166
- package/lib/utils/assignDefaults.js.map +0 -1
- /package/lib/{components/__tests__ → __tests__}/ApplicationErrorHandlerCommon.test.d.ts +0 -0
- /package/lib/{components/UpdateSettings → __tests__}/SettingsConfigurationModel.test.d.ts +0 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {SearchBarBehavior}from'../interfaces/settings.js';//
|
|
2
|
-
// Constants for common values
|
|
1
|
+
import {SearchBarBehavior}from'../interfaces/settings.js';// Constants for common values
|
|
3
2
|
const DEFAULT_LAYOUT = {
|
|
4
3
|
contentWidth: 'Fluid',
|
|
5
4
|
fixedHeader: true,
|
|
@@ -68,113 +67,4 @@ const SHARED_VIEW_CONFIG = {
|
|
|
68
67
|
},
|
|
69
68
|
footer: { showFooter: true },
|
|
70
69
|
},
|
|
71
|
-
};
|
|
72
|
-
const defaultSettings = {
|
|
73
|
-
logo: 'https://cdmbase.s3.ca-central-1.amazonaws.com/favicon-new-128.svg',
|
|
74
|
-
themeType: 'light',
|
|
75
|
-
theme: 'default',
|
|
76
|
-
primaryColor: '#1890ff',
|
|
77
|
-
colorPrimary: '#1677FF',
|
|
78
|
-
secondaryColor: '#4A5568',
|
|
79
|
-
layout: 'mix',
|
|
80
|
-
contentWidth: DEFAULT_LAYOUT.contentWidth,
|
|
81
|
-
fixedHeader: DEFAULT_LAYOUT.fixedHeader,
|
|
82
|
-
fixSiderbar: DEFAULT_LAYOUT.fixedSidebar,
|
|
83
|
-
colorWeak: false,
|
|
84
|
-
title: 'CDMBase LLC',
|
|
85
|
-
iconfontUrl: '',
|
|
86
|
-
showSettingPanel: true,
|
|
87
|
-
titleColor: '#2869E0',
|
|
88
|
-
language: 'en-US',
|
|
89
|
-
fontFamily: 'Poppins, sans-serif',
|
|
90
|
-
titleFontWeight: '700',
|
|
91
|
-
titleHeight: '30px',
|
|
92
|
-
titleFontSize: '1.8rem',
|
|
93
|
-
letterSpacings: '1px',
|
|
94
|
-
headerTheme: undefined,
|
|
95
|
-
loginThemeColor: 'blue',
|
|
96
|
-
loginFormPosition: 'center',
|
|
97
|
-
loginSocials: '{"Google":true,"Apple":true,"Facebook":true}',
|
|
98
|
-
loginBackgroundImage: null,
|
|
99
|
-
verifyFormLayout: 'center',
|
|
100
|
-
verifyFormImageUrl: '',
|
|
101
|
-
verifyFormBackgroundStyle: 'color',
|
|
102
|
-
verifyFormVisibleFields: '["firstName","lastName","username","companyName","workEmail","phoneNumber","dateOfBirth"]',
|
|
103
|
-
verifyFormShowSkipButton: false,
|
|
104
|
-
currentRoute: '/',
|
|
105
|
-
routeSettings: {
|
|
106
|
-
'/': {
|
|
107
|
-
layout: {
|
|
108
|
-
desktop: SHARED_VIEW_CONFIG.layout,
|
|
109
|
-
mobile: SHARED_VIEW_CONFIG.layout,
|
|
110
|
-
},
|
|
111
|
-
regions: {
|
|
112
|
-
desktop: SHARED_VIEW_CONFIG.regions,
|
|
113
|
-
mobile: SHARED_VIEW_CONFIG.regions,
|
|
114
|
-
},
|
|
115
|
-
},
|
|
116
|
-
},
|
|
117
|
-
components: [],
|
|
118
|
-
activeComponent: null,
|
|
119
|
-
searchbarSettings: {
|
|
120
|
-
enabledSearchBars: {
|
|
121
|
-
[SEARCH_TYPES.HOTELS]: true,
|
|
122
|
-
[SEARCH_TYPES.FLIGHTS]: true,
|
|
123
|
-
[SEARCH_TYPES.CARS]: true,
|
|
124
|
-
},
|
|
125
|
-
fieldsConfig: {
|
|
126
|
-
[SEARCH_TYPES.HOTELS]: {
|
|
127
|
-
location: true,
|
|
128
|
-
dates: true,
|
|
129
|
-
guests: true,
|
|
130
|
-
},
|
|
131
|
-
[SEARCH_TYPES.FLIGHTS]: {
|
|
132
|
-
fromLocation: true,
|
|
133
|
-
toLocation: true,
|
|
134
|
-
dates: true,
|
|
135
|
-
returnFlight: true,
|
|
136
|
-
},
|
|
137
|
-
[SEARCH_TYPES.CARS]: {
|
|
138
|
-
pickupLocation: true,
|
|
139
|
-
dropoffLocation: true,
|
|
140
|
-
dates: true,
|
|
141
|
-
},
|
|
142
|
-
},
|
|
143
|
-
datePickerConfig: {
|
|
144
|
-
[SEARCH_TYPES.HOTELS]: {
|
|
145
|
-
enableSingleDayMode: true,
|
|
146
|
-
enableTimeSelection: true,
|
|
147
|
-
defaultToSingleDay: false,
|
|
148
|
-
},
|
|
149
|
-
[SEARCH_TYPES.FLIGHTS]: {
|
|
150
|
-
enableSingleDayMode: false,
|
|
151
|
-
enableTimeSelection: false,
|
|
152
|
-
defaultToSingleDay: false,
|
|
153
|
-
},
|
|
154
|
-
[SEARCH_TYPES.CARS]: {
|
|
155
|
-
enableSingleDayMode: false,
|
|
156
|
-
enableTimeSelection: true,
|
|
157
|
-
defaultToSingleDay: false,
|
|
158
|
-
},
|
|
159
|
-
},
|
|
160
|
-
advanceFilterConfig: {
|
|
161
|
-
enabled: true,
|
|
162
|
-
fields: {
|
|
163
|
-
distance: true,
|
|
164
|
-
price: true,
|
|
165
|
-
petsAllowed: true,
|
|
166
|
-
instantBooking: true,
|
|
167
|
-
amenities: true,
|
|
168
|
-
datasources: true,
|
|
169
|
-
},
|
|
170
|
-
amenitiesList: AMENITIES.map((name) => ({ name })),
|
|
171
|
-
},
|
|
172
|
-
showTypeSelector: true,
|
|
173
|
-
isSettingsPanelOpen: false,
|
|
174
|
-
showTravelPlanner: false,
|
|
175
|
-
showAIAgent: true,
|
|
176
|
-
},
|
|
177
|
-
siderBgColor: '#000000',
|
|
178
|
-
headerBgColor: '#000000',
|
|
179
|
-
textColor: '#a19c9c',
|
|
180
|
-
};export{defaultSettings};//# sourceMappingURL=defaultSettings.js.map
|
|
70
|
+
};export{AMENITIES,DEFAULT_HEADER,DEFAULT_LAYOUT,SEARCH_TYPES,SHARED_VIEW_CONFIG};//# sourceMappingURL=defaultSettings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultSettings.js","sources":["../../src/config/defaultSettings.ts"],"sourcesContent":[null],"names":[],"mappings":"0DACA;
|
|
1
|
+
{"version":3,"file":"defaultSettings.js","sources":["../../src/config/defaultSettings.ts"],"sourcesContent":[null],"names":[],"mappings":"0DACA;AACS,MAAA,cAAc;AAGvB,IAAA,qBAAa;qBACgB;;;;AAI3B,MAAA,cAAA,GAAA;AAEF,IAAA,QAAA,EAAA;;;;;;;;;;;;;;;;;AAiBE,MAAA,YAAA,GAAA;AAEF,IAAA,MAAA,EAAA;;;;AAIW,MAAA,SAAA,GAAA;AAEX,IAAA,MAAA;AAgBA,IAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import * as envalid from 'envalid';
|
|
2
1
|
import { DefaultSettings } from '../interfaces';
|
|
3
|
-
declare const
|
|
2
|
+
export declare const config: Readonly<{
|
|
4
3
|
LAYOUT_SETTINGS: DefaultSettings;
|
|
5
4
|
APP_DOMAIN: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export { config };
|
|
5
|
+
APPLICATION_ID: string;
|
|
6
|
+
} & import("envalid").CleanedEnvAccessors>;
|
|
9
7
|
//# sourceMappingURL=env-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-config.d.ts","sourceRoot":"","sources":["../../src/config/env-config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"env-config.d.ts","sourceRoot":"","sources":["../../src/config/env-config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAoBhD,eAAO,MAAM,MAAM;;;;0CAAY,CAAC"}
|
package/lib/config/env-config.js
CHANGED
|
@@ -1,23 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
3
|
-
const preConfig = envalid.cleanEnv(env, {
|
|
1
|
+
import {cleanEnv,str,json}from'envalid';import {getEnvironment}from'@common-stack/core';const env = getEnvironment();
|
|
2
|
+
const preConfig = cleanEnv(env, {
|
|
4
3
|
LAYOUT_SETTINGS: json({
|
|
5
|
-
default: JSON.stringify({
|
|
4
|
+
default: JSON.stringify({
|
|
5
|
+
// Empty defaults - all settings come from backend GraphQL query
|
|
6
|
+
// hiddenMenuKeys: [],
|
|
7
|
+
// hiddenMenuCategories: [],
|
|
8
|
+
}),
|
|
9
|
+
}),
|
|
10
|
+
APP_DOMAIN: str({ default: 'cdebase.dev' }),
|
|
11
|
+
APPLICATION_ID: str({
|
|
12
|
+
default: '660e8400-e29b-41d4-a716-446655440001',
|
|
13
|
+
desc: 'Matches the Application ID exist already',
|
|
6
14
|
}),
|
|
7
|
-
APP_DOMAIN: envalid.str({ default: 'cdebase.dev' }),
|
|
8
15
|
});
|
|
9
|
-
|
|
10
|
-
// Parse the LAYOUT_SETTINGS if it exists in the environment
|
|
11
|
-
if (env.LAYOUT_SETTINGS) {
|
|
12
|
-
try {
|
|
13
|
-
const parsedLayoutSettings = JSON.parse(env.LAYOUT_SETTINGS);
|
|
14
|
-
config = { ...preConfig, LAYOUT_SETTINGS: merge({}, defaultSettings, parsedLayoutSettings) };
|
|
15
|
-
}
|
|
16
|
-
catch (error) {
|
|
17
|
-
console.error('Error parsing LAYOUT_SETTINGS:', error);
|
|
18
|
-
config = preConfig;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
config = preConfig;
|
|
23
|
-
}export{config};//# sourceMappingURL=env-config.js.map
|
|
16
|
+
const config = preConfig;export{config};//# sourceMappingURL=env-config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-config.js","sources":[
|
|
1
|
+
{"version":3,"file":"env-config.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sources":["../../src/constants/constants.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["../../src/constants/constants.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA,MAAA,sBAAa,GAAA;AACb,MAAA,eAAa,GAAA;AACb,MAAA,2BAAa,GAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.js","sources":["../../src/constants/error.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAY,MAAA,
|
|
1
|
+
{"version":3,"file":"error.js","sources":["../../src/constants/error.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAY,MAAA,aAAa,GAAG;AAC5B,MAAA,yBAA4B,GAAA;AAEhB,MAAA,wBAAyB,GAAG;AACxC,MAAA,0BAAa,GAAA;AAED,MAAA,qBAAA,GAAwB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"languages.js","sources":["../../src/constants/languages.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA,MAAA,
|
|
1
|
+
{"version":3,"file":"languages.js","sources":["../../src/constants/languages.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA,MAAA,SAAa,GAAA;;;;;IAoDX,EAAA,GAAA,EAAA,IAAA,EAAA,KAAA,EAAA,SAAA,EAAA,IAAA,EAAA,MAAA,EAAA,MAAA,EAAA,KAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.js","sources":["../../src/constants/layout.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"layout.js","sources":["../../src/constants/layout.ts"],"sourcesContent":[null],"names":[],"mappings":"AACA,MAAA,eAAa,GAAA;AACb,MAAA,kBAAa,GAAA;AACb,MAAA,yBAAa,GAAA;AACb,MAAA,qBAAa,GAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-link.js","sources":["../../../src/graphql/link/error-link.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"error-link.js","sources":["../../../src/graphql/link/error-link.ts"],"sourcesContent":[null],"names":[],"mappings":"qOAUI,MAAA;AACH,IAAA,OAAA;AAED,IAAA,mBAAa,CAAA,kBAAqB;QAC9B,IAAO,SAAS,CAAA,OAAA,CAAA,WAAA,CAAA,UAAA,CAAA,EAAA;YAEhB,MAAA,sBAA+B,CAAA,GAAA,CAAU,WAAU,CAAE,UAAK,CAAA;AAoB1D,YAAA,IAAY,MAAC,GAAA;AAoBhB,gBAAA,IAAA,EAAA,KAAA,EAAA,UAAA,EAAA,UAAA;AAED,gBAAO,0BAAwB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare
|
|
1
|
+
export declare function useLayoutSettings(): {
|
|
2
2
|
settings: any;
|
|
3
|
-
setSettings: (config: any) => Promise<any>;
|
|
3
|
+
setSettings: (config: any, changedSettings?: Record<string, any>) => Promise<any>;
|
|
4
4
|
getSettings: () => Promise<any>;
|
|
5
5
|
};
|
|
6
6
|
//# sourceMappingURL=useLayoutSettings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLayoutSettings.d.ts","sourceRoot":"","sources":["../../src/hooks/useLayoutSettings.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useLayoutSettings.d.ts","sourceRoot":"","sources":["../../src/hooks/useLayoutSettings.ts"],"names":[],"mappings":"AAOA,wBAAgB,iBAAiB;;0BAgDV,GAAG,oBAAoB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;EA8DhE"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
// @sri to avoid breaking during SSR, split into to checks
|
|
3
|
-
if (typeof window !== 'undefined') {
|
|
4
|
-
const root = document.getElementById('root');
|
|
5
|
-
if (root) {
|
|
6
|
-
root.className = colorWeak ? 'colorWeak' : '';
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
const useLayoutSettings = () => {
|
|
1
|
+
import {useParams}from'@remix-run/react';import {useCallback}from'react';import {useDispatch,useSelector,shallowEqual}from'react-redux';import {CHANGE_SETTINGS_ACTION}from'../constants/constants.js';function useLayoutSettings() {
|
|
11
2
|
const dispatch = useDispatch();
|
|
12
|
-
|
|
3
|
+
useSelector((state) => state.settings, shallowEqual);
|
|
4
|
+
// Filter out machine internal state - settings are now flat (no uilayout wrapper)
|
|
5
|
+
const settings = useSelector((state) => {
|
|
6
|
+
const raw = state.settings;
|
|
7
|
+
if (!raw)
|
|
8
|
+
return {};
|
|
9
|
+
// Remove machine internal properties only
|
|
10
|
+
const { configModel, deviceType, currentRoute, changedSettings, ...cleaned } = raw;
|
|
11
|
+
return cleaned;
|
|
12
|
+
}, shallowEqual);
|
|
13
13
|
const { orgName: orgNameFromParams } = useSelector((state) => ({
|
|
14
14
|
orgName: state.platform.orgName,
|
|
15
15
|
}), shallowEqual);
|
|
@@ -26,50 +26,83 @@ const useLayoutSettings = () => {
|
|
|
26
26
|
if (!response.ok) {
|
|
27
27
|
throw new Error('Failed to fetch settings');
|
|
28
28
|
}
|
|
29
|
-
const
|
|
30
|
-
return
|
|
29
|
+
const pageUiSettings = await response.json();
|
|
30
|
+
return pageUiSettings.settings;
|
|
31
31
|
}
|
|
32
32
|
catch (error) {
|
|
33
33
|
console.error(error);
|
|
34
34
|
// Return default settings if there's an error
|
|
35
|
-
return
|
|
35
|
+
return {};
|
|
36
36
|
}
|
|
37
37
|
}, []);
|
|
38
|
-
const setSettings = useCallback(async (config) => {
|
|
39
|
-
|
|
38
|
+
const setSettings = useCallback(async (config, changedSettings) => {
|
|
39
|
+
console.log('3️⃣ setSetting called', { config, changedSettings });
|
|
40
40
|
try {
|
|
41
|
-
//
|
|
42
|
-
if (
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
// 1. Calculate payload first
|
|
42
|
+
if (Object.keys(changedSettings).length === 0) {
|
|
43
|
+
console.log('⏭️ No changes to persist');
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
// 2. Apply UI side effects ONLY if relevant settings changed
|
|
47
|
+
const { colorWeak, contentWidth } = config;
|
|
48
|
+
// Only trigger resize if contentWidth actually changed
|
|
49
|
+
if (contentWidth !== undefined &&
|
|
50
|
+
settings.contentWidth !== contentWidth &&
|
|
51
|
+
typeof window !== 'undefined') {
|
|
52
|
+
console.log('📐 Content width changed, triggering resize');
|
|
53
|
+
window.dispatchEvent(new Event('resize'));
|
|
54
|
+
}
|
|
55
|
+
// Only update colorWeak if it changed
|
|
56
|
+
if (colorWeak !== undefined && settings.colorWeak !== colorWeak) {
|
|
57
|
+
console.log('🎨 Color weak mode changed');
|
|
58
|
+
updateColorWeak(!!colorWeak);
|
|
46
59
|
}
|
|
47
|
-
|
|
48
|
-
const cleanDiffSettings = compareAndSaveSettingsDifferences(config, defaultSettings);
|
|
60
|
+
// 3. Make API call
|
|
49
61
|
const response = await fetch('/resources/settings', {
|
|
50
62
|
method: 'POST',
|
|
51
63
|
headers: {
|
|
52
64
|
'Content-Type': 'application/json',
|
|
53
65
|
orgName: orgNameFromParams || orgNameFromUrl || '',
|
|
54
66
|
},
|
|
55
|
-
body: JSON.stringify({
|
|
67
|
+
body: JSON.stringify({
|
|
68
|
+
config: changedSettings,
|
|
69
|
+
deviceType: getClientDeviceType(),
|
|
70
|
+
}),
|
|
56
71
|
});
|
|
57
72
|
if (!response.ok) {
|
|
73
|
+
const errorText = await response.text();
|
|
74
|
+
console.error('Server error response:', errorText.substring(0, 500));
|
|
58
75
|
throw new Error('Failed to update settings');
|
|
59
76
|
}
|
|
60
|
-
|
|
61
|
-
const pageDefaultSettings = result || defaultSettings;
|
|
62
|
-
// Merge the full config with default settings before updating the store
|
|
63
|
-
const mergedSettings = merge({}, pageDefaultSettings, config);
|
|
77
|
+
// 4. update redux
|
|
64
78
|
dispatch({
|
|
65
79
|
type: CHANGE_SETTINGS_ACTION,
|
|
66
|
-
payload:
|
|
80
|
+
payload: config,
|
|
67
81
|
});
|
|
68
82
|
}
|
|
69
83
|
catch (error) {
|
|
70
|
-
console.error(error);
|
|
84
|
+
console.error('❌ setSettings error:', error);
|
|
71
85
|
return null;
|
|
72
86
|
}
|
|
73
87
|
}, [dispatch, settings]);
|
|
74
88
|
return { settings, setSettings, getSettings };
|
|
75
|
-
}
|
|
89
|
+
}
|
|
90
|
+
function updateColorWeak(colorWeak) {
|
|
91
|
+
// @sri to avoid breaking during SSR, split into to checks
|
|
92
|
+
if (typeof window !== 'undefined') {
|
|
93
|
+
const root = document.getElementById('root');
|
|
94
|
+
if (root) {
|
|
95
|
+
root.className = colorWeak ? 'colorWeak' : '';
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
function getClientDeviceType() {
|
|
100
|
+
if (typeof window === 'undefined') {
|
|
101
|
+
return 'desktop'; // SSR fallback
|
|
102
|
+
}
|
|
103
|
+
const userAgent = window.navigator.userAgent;
|
|
104
|
+
const isMobile = /mobile|android|iphone|ipad|ipod|webos|opera mini|iemobile|windows phone/i.test(userAgent);
|
|
105
|
+
// Also check viewport width as fallback
|
|
106
|
+
const isSmallViewport = window.matchMedia('(max-width: 768px)').matches;
|
|
107
|
+
return isMobile || isSmallViewport ? 'mobile' : 'desktop';
|
|
108
|
+
}export{useLayoutSettings};//# sourceMappingURL=useLayoutSettings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLayoutSettings.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useLayoutSettings.js","sources":["../../src/hooks/useLayoutSettings.ts"],"sourcesContent":[null],"names":[],"mappings":"uMAqHC,SAAA,iBAAA,GAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLayoutSettings.test.d.ts","sourceRoot":"","sources":["../../src/hooks/useLayoutSettings.test.ts"],"names":[],"mappings":""}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{SearchBarBehavior}from'./interfaces/settings.js';export{APPLICATION_ERROR_SLOT_FILL,CHANGE_LANGUAGE,CHANGE_SETTINGS_ACTION}from'./constants/constants.js';export{BACKEND_ERROR,CLEAR_APPLICATION_ERRORS,DISMISS_APPLICATION_ERROR,LOG_APPLICATION_ERROR,RESTORE_APPLICATION_ERRORS}from'./constants/error.js';export{HEADER_SEARCHBAR_FILL,HEADER_SEARCH_BUTTON_FILL,RIGHT_CONTENT_FILL,SCROLL_END_FILL}from'./constants/layout.js';export{languages}from'./constants/languages.js';export{dismissApplicationError,restoreApplicationError,setApplicationError}from'./redux/actions/error-actions.js';export{applicationErrors,initialErrorsState}from'./redux/reducers/error.js';export{settingsReducer}from'./redux/reducers/settings.js';export{store}from'./redux/store.js';export{useAppDispatch,useAppSelector}from'./redux/hooks.js';export{getMenuSeparation}from'./utils/seperatedMenus.js';export{useComponentSize,useIsomorphicLayoutEffect}from'./utils/componentSize.js';export{matchParentRoute}from'./utils/parentRoute.js';export{addProLayoutParentKeys,filterRoutesWithLocale,menuDataRender,removeUnnecessaryProperties,setLocale,transformData}from'./utils/menuUtils.js';export{getMatchMenuKeys}from'./utils/matchMenuKeys.js';export{generateMenuPath}from'./utils/generateMenuLink.js';export{compareAndSaveSettingsDifferences}from'./utils/settingsDifference.js';export{ApplicationErrorHandlerCommon}from'./components/ApplicationErrorHandlerCommon.js';export{ErrorBoundaryCommon}from'./components/ErrorBoundaryCommon.js';export{ApplicationErrorFillWrapper}from'./components/ApplicationErrorFillWrapper.js';export{LayoutCookieProvider}from'./components/LayoutCookieProvider.js';export{ErrorLink,errorReduxLink}from'./graphql/link/error-link.js';export{systemFont}from'./themes/systemFont/index.js';export{borderRadius,colors,lightLayoutTheme,lightNavigationBarTheme,lightTabBarTheme,shadows,sizes,spacings,textVariants}from'./themes/templates/lightLayoutTheme.js';export{createLayoutTheme}from'./themes/templates/createLayoutTheme.js';export{darkColors,darkLayoutTheme,darkNavigationBarTheme,darkTabBarTheme}from'./themes/templates/darkLayoutTheme.js';export{config}from'./config/env-config.js';export{
|
|
1
|
+
export{SearchBarBehavior}from'./interfaces/settings.js';export{APPLICATION_ERROR_SLOT_FILL,CHANGE_LANGUAGE,CHANGE_SETTINGS_ACTION}from'./constants/constants.js';export{BACKEND_ERROR,CLEAR_APPLICATION_ERRORS,DISMISS_APPLICATION_ERROR,LOG_APPLICATION_ERROR,RESTORE_APPLICATION_ERRORS}from'./constants/error.js';export{HEADER_SEARCHBAR_FILL,HEADER_SEARCH_BUTTON_FILL,RIGHT_CONTENT_FILL,SCROLL_END_FILL}from'./constants/layout.js';export{languages}from'./constants/languages.js';export{dismissApplicationError,restoreApplicationError,setApplicationError}from'./redux/actions/error-actions.js';export{applicationErrors,initialErrorsState}from'./redux/reducers/error.js';export{settingsReducer}from'./redux/reducers/settings.js';export{store}from'./redux/store.js';export{useAppDispatch,useAppSelector}from'./redux/hooks.js';export{getMenuSeparation}from'./utils/seperatedMenus.js';export{useComponentSize,useIsomorphicLayoutEffect}from'./utils/componentSize.js';export{matchParentRoute}from'./utils/parentRoute.js';export{addProLayoutParentKeys,filterRoutesWithLocale,menuDataRender,removeUnnecessaryProperties,setLocale,transformData}from'./utils/menuUtils.js';export{getMatchMenuKeys}from'./utils/matchMenuKeys.js';export{generateMenuPath}from'./utils/generateMenuLink.js';export{compareAndSaveSettingsDifferences}from'./utils/settingsDifference.js';export{ApplicationErrorHandlerCommon}from'./components/ApplicationErrorHandlerCommon.js';export{ErrorBoundaryCommon}from'./components/ErrorBoundaryCommon.js';export{ApplicationErrorFillWrapper}from'./components/ApplicationErrorFillWrapper.js';export{LayoutCookieProvider}from'./components/LayoutCookieProvider.js';export{ErrorLink,errorReduxLink}from'./graphql/link/error-link.js';export{systemFont}from'./themes/systemFont/index.js';export{borderRadius,colors,lightLayoutTheme,lightNavigationBarTheme,lightTabBarTheme,shadows,sizes,spacings,textVariants}from'./themes/templates/lightLayoutTheme.js';export{createLayoutTheme}from'./themes/templates/createLayoutTheme.js';export{darkColors,darkLayoutTheme,darkNavigationBarTheme,darkTabBarTheme}from'./themes/templates/darkLayoutTheme.js';export{config}from'./config/env-config.js';export{AMENITIES,DEFAULT_HEADER,DEFAULT_LAYOUT,SEARCH_TYPES,SHARED_VIEW_CONFIG}from'./config/defaultSettings.js';export{useLayoutSettings}from'./hooks/useLayoutSettings.js';export{usePermissionAutoFetch,useSetting,useSettingsLoader}from'@adminide-stack/platform-client';export{ClientOnly}from'./hooks/Client-only.js';export{blue}from'./colors/presets/blue.js';export{brinkPink}from'./colors/presets/brinkPink.js';export{cyan}from'./colors/presets/cyan.js';export{green}from'./colors/presets/green.js';export{lime}from'./colors/presets/lime.js';export{orange}from'./colors/presets/orange.js';export{pink}from'./colors/presets/pink.js';export{purple}from'./colors/presets/purple.js';export{red}from'./colors/presets/red.js';export{skyBlue}from'./colors/presets/skyBlue.js';export{turquoise}from'./colors/presets/turquoise.js';export{yellow}from'./colors/presets/yellow.js';export{white}from'./colors/presets/white.js';export{black}from'./colors/presets/black.js';export{colorList,getThemeColors}from'./colors/colorsList.js';//# sourceMappingURL=index.js.map
|
package/lib/index.native.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{SearchBarBehavior}from'./interfaces/settings.js';export{APPLICATION_ERROR_SLOT_FILL,CHANGE_LANGUAGE,CHANGE_SETTINGS_ACTION}from'./constants/constants.js';export{BACKEND_ERROR,CLEAR_APPLICATION_ERRORS,DISMISS_APPLICATION_ERROR,LOG_APPLICATION_ERROR,RESTORE_APPLICATION_ERRORS}from'./constants/error.js';export{HEADER_SEARCHBAR_FILL,HEADER_SEARCH_BUTTON_FILL,RIGHT_CONTENT_FILL,SCROLL_END_FILL}from'./constants/layout.js';export{languages}from'./constants/languages.js';export{dismissApplicationError,restoreApplicationError,setApplicationError}from'./redux/actions/error-actions.js';export{applicationErrors,initialErrorsState}from'./redux/reducers/error.js';export{settingsReducer}from'./redux/reducers/settings.js';export{store}from'./redux/store.js';export{useAppDispatch,useAppSelector}from'./redux/hooks.js';export{getMenuSeparation}from'./utils/seperatedMenus.js';export{useComponentSize,useIsomorphicLayoutEffect}from'./utils/componentSize.js';export{matchParentRoute}from'./utils/parentRoute.js';export{addProLayoutParentKeys,filterRoutesWithLocale,menuDataRender,removeUnnecessaryProperties,setLocale,transformData}from'./utils/menuUtils.js';export{getMatchMenuKeys}from'./utils/matchMenuKeys.js';export{generateMenuPath}from'./utils/generateMenuLink.js';export{compareAndSaveSettingsDifferences}from'./utils/settingsDifference.js';export{ApplicationErrorHandlerCommon}from'./components/ApplicationErrorHandlerCommon.js';export{ErrorBoundaryCommon}from'./components/ErrorBoundaryCommon.js';export{ApplicationErrorFillWrapper}from'./components/ApplicationErrorFillWrapper.js';export{LayoutCookieProvider}from'./components/LayoutCookieProvider.js';export{ErrorLink,errorReduxLink}from'./graphql/link/error-link.js';export{systemFont}from'./themes/systemFont/index.js';export{borderRadius,colors,lightLayoutTheme,lightNavigationBarTheme,lightTabBarTheme,shadows,sizes,spacings,textVariants}from'./themes/templates/lightLayoutTheme.js';export{createLayoutTheme}from'./themes/templates/createLayoutTheme.js';export{darkColors,darkLayoutTheme,darkNavigationBarTheme,darkTabBarTheme}from'./themes/templates/darkLayoutTheme.js';export{config}from'./config/env-config.js';export{
|
|
1
|
+
export{SearchBarBehavior}from'./interfaces/settings.js';export{APPLICATION_ERROR_SLOT_FILL,CHANGE_LANGUAGE,CHANGE_SETTINGS_ACTION}from'./constants/constants.js';export{BACKEND_ERROR,CLEAR_APPLICATION_ERRORS,DISMISS_APPLICATION_ERROR,LOG_APPLICATION_ERROR,RESTORE_APPLICATION_ERRORS}from'./constants/error.js';export{HEADER_SEARCHBAR_FILL,HEADER_SEARCH_BUTTON_FILL,RIGHT_CONTENT_FILL,SCROLL_END_FILL}from'./constants/layout.js';export{languages}from'./constants/languages.js';export{dismissApplicationError,restoreApplicationError,setApplicationError}from'./redux/actions/error-actions.js';export{applicationErrors,initialErrorsState}from'./redux/reducers/error.js';export{settingsReducer}from'./redux/reducers/settings.js';export{store}from'./redux/store.js';export{useAppDispatch,useAppSelector}from'./redux/hooks.js';export{getMenuSeparation}from'./utils/seperatedMenus.js';export{useComponentSize,useIsomorphicLayoutEffect}from'./utils/componentSize.js';export{matchParentRoute}from'./utils/parentRoute.js';export{addProLayoutParentKeys,filterRoutesWithLocale,menuDataRender,removeUnnecessaryProperties,setLocale,transformData}from'./utils/menuUtils.js';export{getMatchMenuKeys}from'./utils/matchMenuKeys.js';export{generateMenuPath}from'./utils/generateMenuLink.js';export{compareAndSaveSettingsDifferences}from'./utils/settingsDifference.js';export{ApplicationErrorHandlerCommon}from'./components/ApplicationErrorHandlerCommon.js';export{ErrorBoundaryCommon}from'./components/ErrorBoundaryCommon.js';export{ApplicationErrorFillWrapper}from'./components/ApplicationErrorFillWrapper.js';export{LayoutCookieProvider}from'./components/LayoutCookieProvider.js';export{ErrorLink,errorReduxLink}from'./graphql/link/error-link.js';export{systemFont}from'./themes/systemFont/index.js';export{borderRadius,colors,lightLayoutTheme,lightNavigationBarTheme,lightTabBarTheme,shadows,sizes,spacings,textVariants}from'./themes/templates/lightLayoutTheme.js';export{createLayoutTheme}from'./themes/templates/createLayoutTheme.js';export{darkColors,darkLayoutTheme,darkNavigationBarTheme,darkTabBarTheme}from'./themes/templates/darkLayoutTheme.js';export{config}from'./config/env-config.js';export{AMENITIES,DEFAULT_HEADER,DEFAULT_LAYOUT,SEARCH_TYPES,SHARED_VIEW_CONFIG}from'./config/defaultSettings.js';//# sourceMappingURL=index.native.js.map
|
|
@@ -82,6 +82,14 @@ export interface PureSettings {
|
|
|
82
82
|
siderMenuType?: string;
|
|
83
83
|
currentRoute?: string;
|
|
84
84
|
routeSettings?: any;
|
|
85
|
+
/**
|
|
86
|
+
* @name UI Settings with overrides
|
|
87
|
+
* @description Contains uilayout and route-specific overrides
|
|
88
|
+
*/
|
|
89
|
+
uiSettings?: {
|
|
90
|
+
uilayout?: any;
|
|
91
|
+
overrides?: Record<string, any>;
|
|
92
|
+
};
|
|
85
93
|
}
|
|
86
94
|
export type ProSettings = PureSettings;
|
|
87
95
|
//# sourceMappingURL=pure-settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pure-settings.d.ts","sourceRoot":"","sources":["../../src/interfaces/pure-settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,OAAO,CAAC;AAE7C,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAEzC,MAAM,WAAW,aAAa;IAC1B,UAAU,CAAC,EAAE,OAAO,GAAG,GAAG,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,GAAG,GAAG,CAAC;IAC7B,UAAU,CAAC,EAAE,OAAO,GAAG,GAAG,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,GAAG,GAAG,CAAC;IAC7B,eAAe,CAAC,EAAE,OAAO,GAAG,GAAG,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,GAAG,GAAG,CAAC;IACzB,UAAU,CAAC,EAAE,KAAK,GAAG,GAAG,CAAC;IACzB,gBAAgB,CAAC,EAAE,KAAK,GAAG,GAAG,CAAC;IAC/B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,YAAY;IACzB;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;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,aAAa,CAAC,EAAE,GAAG,CAAC;IAEpB;;;OAGG;IACH,UAAU,CAAC,EAAE;QACT,QAAQ,CAAC,EAAE,GAAG,CAAC;QACf,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KACnC,CAAC;CACL;AAED,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ContentWidth } from './pure-settings';
|
|
2
2
|
export type ThemeColor = 'blue' | 'indigo' | 'red' | 'orange' | 'yellow' | 'teal' | 'green' | 'blue' | 'purple';
|
|
3
3
|
export type NavigationMode = 'sidebar' | 'topbar' | 'mixed';
|
|
4
|
-
export type SideMenuType = 'expanded' | 'collapsed';
|
|
4
|
+
export type SideMenuType = 'expanded' | 'collapsed' | 'perplexLayout';
|
|
5
5
|
export declare enum SearchBarBehavior {
|
|
6
6
|
PERMANENT = "permanent",
|
|
7
7
|
ON_SCROLL = "on-scroll"
|
|
@@ -41,6 +41,7 @@ export interface SettingsContext {
|
|
|
41
41
|
components: ComponentSettings[];
|
|
42
42
|
activeComponent?: string;
|
|
43
43
|
currentRoute?: string;
|
|
44
|
+
sideMenuType: SideMenuType;
|
|
44
45
|
routeSettings: Record<string, {
|
|
45
46
|
layout?: {
|
|
46
47
|
desktop: {
|
|
@@ -121,7 +122,7 @@ export interface SettingsContext {
|
|
|
121
122
|
}>;
|
|
122
123
|
}
|
|
123
124
|
export type UpdateEvent = {
|
|
124
|
-
type: '
|
|
125
|
+
type: 'UISETTING_UPDATE';
|
|
125
126
|
value?: Partial<SettingsContext>;
|
|
126
127
|
};
|
|
127
128
|
export type ComponentEvent = {
|
|
@@ -138,7 +139,7 @@ export type ComponentEvent = {
|
|
|
138
139
|
type: 'CLEAR_COMPONENT_SELECTION';
|
|
139
140
|
};
|
|
140
141
|
export type MachineEvent = {
|
|
141
|
-
type: '
|
|
142
|
+
type: 'UISETTING_UPDATE';
|
|
142
143
|
value: Partial<SettingsContext>;
|
|
143
144
|
} | {
|
|
144
145
|
type: 'REGISTER_COMPONENT';
|
|
@@ -153,14 +154,14 @@ export type MachineEvent = {
|
|
|
153
154
|
} | {
|
|
154
155
|
type: 'CLEAR_COMPONENT_SELECTION';
|
|
155
156
|
} | {
|
|
156
|
-
type: '
|
|
157
|
+
type: 'UISETTING_RESET';
|
|
157
158
|
} | {
|
|
158
159
|
type: 'SAVE';
|
|
159
160
|
} | {
|
|
160
|
-
type: '
|
|
161
|
+
type: 'UISETTING_ROUTE_CHANGE';
|
|
161
162
|
pathname: string;
|
|
162
163
|
} | {
|
|
163
|
-
type: '
|
|
164
|
+
type: 'UISETTING_UPDATE_ROUTE_SETTINGS';
|
|
164
165
|
settings: Record<string, Partial<SettingsContext>>;
|
|
165
166
|
};
|
|
166
167
|
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../src/interfaces/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAChH,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC5D,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":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EAAE,kBAAkB,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,GACjD;IAAE,IAAI,EAAE,2BAA2B,CAAA;CAAE,GACrC;IAAE,IAAI,EAAE,iBAAiB,CAAA;CAAE,GAC3B;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,wBAAwB,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GACpD;IAAE,IAAI,EAAE,iCAAiC,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC,CAAA;CAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","sources":["../../src/interfaces/settings.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAS,IAAA;AAET,
|
|
1
|
+
{"version":3,"file":"settings.js","sources":["../../src/interfaces/settings.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAS,IAAA;AAET,CAAA,UAAM,iBAAmB,EAAA;AACzB,IAAA,6BAA6B,CAAA,GAAA,WAAY;AACzC,IAAA,6BAA2B,CAAA,GAAU,WAAG;AAExC,CAAA,EAAA,iBAAY,KAAA,iBAAiB,GAAA,EAAA,CAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as H from 'history';
|
|
2
|
-
import { RouteComponentProps as BasicRouteProps, match } from '
|
|
2
|
+
import { RouteComponentProps as BasicRouteProps, match } from '@remix-run/router';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
5
5
|
to: H.LocationDescriptor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typings.d.ts","sourceRoot":"","sources":["../../src/interfaces/typings.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,OAAO,EAAE,mBAAmB,IAAI,eAAe,EAAE,KA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IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;CAC1B;AACD,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;AAErC,MAAM,WAAW,WAAW,CAAC,CAAC,CAAE,SAAQ,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC;IACrE,aAAa,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC,GAAG;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACjE;AAED,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,GAAG,CAAC;IACR,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-actions.js","sources":["../../../src/redux/actions/error-actions.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"error-actions.js","sources":["../../../src/redux/actions/error-actions.ts"],"sourcesContent":[null],"names":[],"mappings":"kHAEE,MAAA,mBACA,GAAA,CAAA,OAAA,KAAA;AAMF,IAAA,QAAA;;;KAKE;AAEF;;;;;AAOC,YAAA;AAED;;;AAKE,MAAA,uBAAA,GAAA,CAAA,OAAA,KAAA;AAEF,IAAA,QAAY;QACJ,gCAAwB;AAAC,QAAA,OAAS;KACtC;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.js","sources":["../../../src/redux/reducers/error.ts"],"sourcesContent":[null],"names":[],"mappings":"2IAQA,MAAA,kBAAa,GAAA;
|
|
1
|
+
{"version":3,"file":"error.js","sources":["../../../src/redux/reducers/error.ts"],"sourcesContent":[null],"names":[],"mappings":"2IAQA,MAAA,kBAAa,GAAA;AAEb,SAAA,iBAAgB,CAAA,UAAkB,GAAA,kBAAuC,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -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":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAanD,QAAA,MAAM,eAAe,GACjB,OAAO,GAAmB,EAC1B,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 {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,7 +10,7 @@ const updateColorWeak = (colorWeak) => {
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
|
-
const settingsReducer = (state = merge({},
|
|
13
|
+
const settingsReducer = (state = merge({}, {}), { type, payload = {} }) => {
|
|
14
14
|
switch (type) {
|
|
15
15
|
case CHANGE_SETTINGS_ACTION:
|
|
16
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":"0HAGA;AAaA;AAEsE;AA2BtE,MAAA,eAAS,GAAe,CAAA,SAAG,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/redux/selectors/index.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/redux/selectors/index.ts"],"sourcesContent":[null],"names":[],"mappings":"2FAKE,MAAA,oBAAmB,GAAA,cAAuB,CAAA,CAAA,KAAA,KAAA,KAAA,CAAA,iBAAA,EAAA,CAAA,iBAAA,KAAA,iBAAA,EAAA,IAAA,CAAA,CAAA,KAAA,KAAA,KAAA,CAAA,IAAA,KAAA,aAAA,CAAA"}
|
package/lib/redux/store.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {combineReducers,configureStore}from'@reduxjs/toolkit';import {applicationErrors}from'./reducers/error.js';import'
|
|
1
|
+
import {combineReducers,configureStore}from'@reduxjs/toolkit';import {applicationErrors}from'./reducers/error.js';import'lodash-es';// Combine the reducers into an object
|
|
2
2
|
const rootReducer = combineReducers({
|
|
3
3
|
applicationErrors: applicationErrors, // Adding applicationErrors reducer
|
|
4
4
|
});
|
package/lib/redux/store.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.js","sources":["../../src/redux/store.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAcY,
|
|
1
|
+
{"version":3,"file":"store.js","sources":["../../src/redux/store.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAcY,MAAA,KAAA,GAAS,cAAc;AAGnC,IAAA,OAAM,EAAM,WAAW;AAEvB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/themes/systemFont/index.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/themes/systemFont/index.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA,MAAA,UAAa,GAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createLayoutTheme.js","sources":["../../../src/themes/templates/createLayoutTheme.ts"],"sourcesContent":[null],"names":[],"mappings":"qDACO,SAAE,4BAAmC,EAAC,SAAA,GAAA,gBAAA,EAAA;AAG7C,IAAA,MAAA,QAAA,GAAA,
|
|
1
|
+
{"version":3,"file":"createLayoutTheme.js","sources":["../../../src/themes/templates/createLayoutTheme.ts"],"sourcesContent":[null],"names":[],"mappings":"qDACO,SAAE,4BAAmC,EAAC,SAAA,GAAA,gBAAA,EAAA;AAG7C,IAAA,MAAA,QAAA,GAAA,IAAgB,CAAA,KAAA,CAAA,IAAA,CAAA,SAAkB,CAAA;;;;;;"}
|