@admin-layout/client 9.0.4-alpha.68 → 9.0.4-alpha.99
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/antd-themes/ThemeProvider.d.ts.map +1 -1
- package/lib/antd-themes/ThemeProvider.js +2 -2
- package/lib/antd-themes/ThemeProvider.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 +7 -0
- package/lib/components/UpdateSettings/UpdateSettings.server.d.ts.map +1 -0
- package/lib/components/UpdateSettings/UpdateSettings.server.js +36 -0
- package/lib/components/UpdateSettings/UpdateSettings.server.js.map +1 -0
- package/lib/config/env-config.d.ts +1 -0
- package/lib/config/env-config.d.ts.map +1 -1
- package/lib/config/env-config.js +2 -1
- 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/layout.js.map +1 -1
- package/lib/graphql/link/error-link.js.map +1 -1
- package/lib/hooks/index.d.ts +2 -0
- package/lib/hooks/index.d.ts.map +1 -0
- package/lib/hooks/useSettings.d.ts +5 -0
- package/lib/hooks/useSettings.d.ts.map +1 -0
- package/lib/hooks/useSettings.js +70 -0
- package/lib/hooks/useSettings.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.server.d.ts +2 -0
- package/lib/index.server.d.ts.map +1 -0
- package/lib/index.server.js +1 -0
- package/lib/index.server.js.map +1 -0
- package/lib/redux/actions/error-actions.js.map +1 -1
- package/lib/redux/reducers/error.js.map +1 -1
- package/lib/redux/settings.js.map +1 -1
- package/lib/redux/store.js +2 -2
- package/lib/redux/store.js.map +1 -1
- package/lib/themes/templates/darkLayoutTheme.js.map +1 -1
- package/lib/utils/componentSize.js.map +1 -1
- package/lib/utils/matchMenuKeys.js.map +1 -1
- package/lib/utils/menuUtils.js.map +1 -1
- package/lib/utils/seperatedMenus.js.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/antd-themes/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/antd-themes/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,kBAAkB;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQpB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAkCtD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React__default from'react';import {ConfigProvider}from'antd';import {themeRegistry}from'./themeRegistry.js';import
|
|
1
|
+
import React__default from'react';import {ConfigProvider}from'antd';import {themeRegistry}from'./themeRegistry.js';import {useSettings}from'../hooks/useSettings.js';const getTheme = (themeType, themeName) => {
|
|
2
2
|
const key = `${themeName}${themeType === 'realDark' ? 'Dark' : 'Light'}Theme`;
|
|
3
3
|
if (key in themeRegistry) {
|
|
4
4
|
return themeRegistry[key];
|
|
@@ -8,7 +8,7 @@ import React__default from'react';import {ConfigProvider}from'antd';import {them
|
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
10
|
const ThemeProvider = ({ children }) => {
|
|
11
|
-
const settings =
|
|
11
|
+
const { settings } = useSettings();
|
|
12
12
|
const { theme, themeType } = settings;
|
|
13
13
|
const selectedTheme = getTheme(themeType, theme);
|
|
14
14
|
const applyScopedStyles = (components) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.js","sources":["../../src/antd-themes/ThemeProvider.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ThemeProvider.js","sources":["../../src/antd-themes/ThemeProvider.tsx"],"sourcesContent":[null],"names":[],"mappings":"qKAUA,MAAA,QAAa,GAAQ,CAAA,SAAA,EAAA,SAAA,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationErrorHandlerCommon.js","sources":["../../src/components/ApplicationErrorHandlerCommon.tsx"],"sourcesContent":[null],"names":["React"],"mappings":"oRAUG;AACH;AACE;;AAED;AAED;;;AAGC;AAED;;AAGI,MAAS,6BAAE,GAAA,CAAA,iBAAA,EAAA,oBAAA,EAAA,iBAAA,KAAA,CAAA,EAAA,OAAA,EAAA,QAAA,EAAA,KAAA;UACH,iBAAU,GAAA,WAAA,CAAA,CAAA,KAAA,KAAA,KAAA,EAAA,iBAAA,CAAA
|
|
1
|
+
{"version":3,"file":"ApplicationErrorHandlerCommon.js","sources":["../../src/components/ApplicationErrorHandlerCommon.tsx"],"sourcesContent":[null],"names":["React"],"mappings":"oRAUG;AACH;AACE;;AAED;AAED;;;AAGC;AAED;;AAGI,MAAS,6BAAE,GAAA,CAAA,iBAAA,EAAA,oBAAA,EAAA,iBAAA,KAAA,CAAA,EAAA,OAAA,EAAA,QAAA,EAAA,KAAA;UACH,iBAAU,GAAA,WAAA,CAAA,CAAA,KAAA,KAAA,KAAA,EAAA,iBAAA,CAAA;UACC,MAAA,GAAA,iBAAuB,EAAA,MAAA,CAAA,CAAA,KAAE,KAAA,CAAA,CAAA,OAAA,CAAA,IAAA,CAAA,CAAA,MAAA,KAAA,MAAA,CAAA,IAAA,KAAA,KAAA,EAAA,UAAA,CAAA,CAAA;UAC3C,YAAA,GAAA,WAAA,CAAA,oBAAA,CAAA;AACF,IAAA,gCACe,GAAA,CAAA,KAAA,KAAA;AAClB,QAAA,OAAA,CAAA,CAAA,oBAAA,GAAAA,cAAA,CAAA,aAAA,CAAA,oBAAA,EAAA,EAAA,GAAA,KAAA,EAAA,CAAA,GAAAA,cAAA,CAAA,aAAA,CAAA,IAAA,EAAA,EAAA,GAAA,KAAA,EAAA,CAAA;;;;;;;;;;AAUG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorBoundaryCommon.js","sources":["../../src/components/ErrorBoundaryCommon.tsx"],"sourcesContent":[null],"names":["React"],"mappings":"0EAGoC,MAAA,mBAAU,SAAAA,cAAA,CAAA,SAAA,CAAA;AAAC,IAAA,WAAO,CAAK,KAAG,EAAI;QAAG,KAAA,CAAA,KAAA,CAAA
|
|
1
|
+
{"version":3,"file":"ErrorBoundaryCommon.js","sources":["../../src/components/ErrorBoundaryCommon.tsx"],"sourcesContent":[null],"names":["React"],"mappings":"0EAGoC,MAAA,mBAAU,SAAAA,cAAA,CAAA,SAAA,CAAA;AAAC,IAAA,WAAO,CAAK,KAAG,EAAI;QAAG,KAAA,CAAA,KAAA,CAAA;AACrE,uBAAuB,QAAG,EAAA,KAAA,EAAA,KAAA,EAAA,IAAA,EAAA;;IAEtB,OAAQ,wBAAe,CAAA,KAAA,EAAA;QACN,OAAA,EAAA,QAAG,EAAA,IAAO,EAAA,KAAA,EAAA;;AAAgB,IAAA,kBAAiB,KAAC,EAAA;QAC/D,MAAA,CAAA,KAAA,CAAA,KAAA,CAAA;AAEF;AACgB,IAAA,mBAAO,SAAkB,EAAA,SAAA,EAAA;AAKrC,QAAA,IAAO,SAAA,EAAA,QAAA,KAAyB,IAAA,CAAK,KAAO,EAAA,QAAA,EAAA;;;;IAI5C,MAAiB,GAAA;AAIjB,QAAA,IAAA,IAAA,CAAA,KAAkB,CAAC,QAAA,EAAW;YAMxB,MAAA,iBAAA,GAAA,IAAA,CAAA,KAAA,CAAA,iBAAA;AAOT,YAAA,OAAAA,cAAA,CAAA,aAAA,CAAA,iBAAA,EAAA,EAAA,KAAA,EAAA,IAAA,CAAA,KAAA,CAAA,KAAA,EAAA,CAAA;;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const action: ({ request }: {
|
|
2
|
+
request: Request;
|
|
3
|
+
}) => Promise<import("@remix-run/node").TypedResponse<any>>;
|
|
4
|
+
export declare const loader: ({ request }: {
|
|
5
|
+
request: Request;
|
|
6
|
+
}) => Promise<import("@remix-run/node").TypedResponse<any>>;
|
|
7
|
+
//# sourceMappingURL=UpdateSettings.server.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdateSettings.server.d.ts","sourceRoot":"","sources":["../../../src/components/UpdateSettings/UpdateSettings.server.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,MAAM;aAAkC,OAAO;2DAiB3D,CAAC;AAEF,eAAO,MAAM,MAAM;aAAkC,OAAO;2DAiB3D,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {defaultSettings}from'@admin-layout/client';import {createCookie,json}from'@remix-run/node';import keys from'lodash/keys';import pick from'lodash/pick';import {config}from'../../config/env-config.js';const settingsCookie = createCookie('settings', {
|
|
2
|
+
maxAge: 60 * 60 * 24 * 30, // 1 month
|
|
3
|
+
httpOnly: true,
|
|
4
|
+
sameSite: 'lax',
|
|
5
|
+
domain: config.isProd ? config.APP_DOMAIN : undefined,
|
|
6
|
+
});
|
|
7
|
+
const action = async ({ request }) => {
|
|
8
|
+
const jsonData = await request.json();
|
|
9
|
+
const payload = jsonData?.config;
|
|
10
|
+
const cookieHeader = request.headers.get('Cookie');
|
|
11
|
+
const settings = await settingsCookie.parse(cookieHeader);
|
|
12
|
+
const updatedSettings = {
|
|
13
|
+
...settings,
|
|
14
|
+
...pick(payload, keys(config.LAYOUT_SETTINGS)),
|
|
15
|
+
};
|
|
16
|
+
return json(updatedSettings, {
|
|
17
|
+
headers: {
|
|
18
|
+
'Set-Cookie': await settingsCookie.serialize(updatedSettings),
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
const loader = async ({ request }) => {
|
|
23
|
+
const cookieHeader = request.headers.get('Cookie');
|
|
24
|
+
const settings = await settingsCookie.parse(cookieHeader);
|
|
25
|
+
if (!settings) {
|
|
26
|
+
const updatedSettings = {
|
|
27
|
+
...defaultSettings,
|
|
28
|
+
};
|
|
29
|
+
return json(updatedSettings, {
|
|
30
|
+
headers: {
|
|
31
|
+
'Set-Cookie': await settingsCookie.serialize(updatedSettings),
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
return json(settings);
|
|
36
|
+
};export{action,loader};//# sourceMappingURL=UpdateSettings.server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdateSettings.server.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,6 +2,7 @@ import * as envalid from 'envalid';
|
|
|
2
2
|
import { DefaultSettings } from '../interfaces';
|
|
3
3
|
declare let config: Readonly<{
|
|
4
4
|
LAYOUT_SETTINGS: DefaultSettings;
|
|
5
|
+
APP_DOMAIN: string;
|
|
5
6
|
} & envalid.CleanedEnvAccessors>;
|
|
6
7
|
export { config };
|
|
7
8
|
//# 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":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAEnC,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"env-config.d.ts","sourceRoot":"","sources":["../../src/config/env-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAEnC,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAYhD,QAAA,IAAI,MAAM;;;gCAAyB,CAAC;AAQpC,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
package/lib/config/env-config.js
CHANGED
|
@@ -4,9 +4,10 @@ const preConfig = envalid.cleanEnv(env, {
|
|
|
4
4
|
LAYOUT_SETTINGS: json({
|
|
5
5
|
default: JSON.stringify(defaultSettings),
|
|
6
6
|
}),
|
|
7
|
+
APP_DOMAIN: envalid.str({ default: 'cdebase.dev' }),
|
|
7
8
|
});
|
|
8
9
|
let config = {};
|
|
9
|
-
// overwrite the layout settings with environment
|
|
10
|
+
// overwrite the layout settings with environment
|
|
10
11
|
if (env.LAYOUT_SETTINGS) {
|
|
11
12
|
config = { ...preConfig, LAYOUT_SETTINGS: { ...defaultSettings, ...preConfig.LAYOUT_SETTINGS } };
|
|
12
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-config.js","sources":["../../src/config/env-config.ts"],"sourcesContent":[null],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"env-config.js","sources":["../../src/config/env-config.ts"],"sourcesContent":[null],"names":[],"mappings":";;kCAcoC,CAAA,GAAA,EAAA;AAQpC,IAAO,eAAW,EAAA,IAAA,CAAA;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sources":["../../src/constants/constants.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAA,sBAA4B,GAAA
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["../../src/constants/constants.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAA,sBAA4B,GAAA;AAC5B,MAAA,eAAqB,GAAA;AACrB,MAAA,2BAAiC,GAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.js","sources":["../../src/constants/error.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAY,MAAA,aAAgB,GAAA
|
|
1
|
+
{"version":3,"file":"error.js","sources":["../../src/constants/error.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAY,MAAA,aAAgB,GAAA;AAC5B,MAAA,yBAA4B,GAAA;AAEhB,MAAA,wBAAyB,GAAG;AACxC,MAAA,0BAAa,GAAA;AAED,MAAA,qBAAA,GAA2B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.js","sources":["../../src/constants/layout.ts"],"sourcesContent":[null],"names":[],"mappings":"AACO,MAAA,eAAqB,GAAA
|
|
1
|
+
{"version":3,"file":"layout.js","sources":["../../src/constants/layout.ts"],"sourcesContent":[null],"names":[],"mappings":"AACO,MAAA,eAAqB,GAAA;AACrB,MAAA,kBAAwB,GAAA;AACxB,MAAA,yBAA+B,GAAA;AAC/B,MAAA,qBAA2B,GAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-link.js","sources":["../../../src/graphql/link/error-link.ts"],"sourcesContent":[null],"names":[],"mappings":"qOAUgB,MAAA;AACf,IAAA,OAAA
|
|
1
|
+
{"version":3,"file":"error-link.js","sources":["../../../src/graphql/link/error-link.ts"],"sourcesContent":[null],"names":[],"mappings":"qOAUgB,MAAA;AACf,IAAA,OAAA;AAED,IAAa,mBAAA,CAAA,kBAAqB;QACvB,IAAA,SAAS,CAAA,OAAA,CAAA,WAAA,CAAA,UAAA,CAAA,EAAA;YAEG,MAAA,sBAAY,CAAA,GAAA,CAAU,WAAU,CAAE,UAAK,CAAA;AAoB1D,YAAA,IAAY,MAAC,GAAA;AAoBhB,gBAAA,IAAA,EAAA,KAAA,EAAA,UAAA,EAAA,UAAA;AAED,uBAA2B,EAAA,KAAA,EAAA,UAAA,EAAA,OAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSettings.d.ts","sourceRoot":"","sources":["../../src/hooks/useSettings.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,WAAW;;0BAiCD,GAAG;CAuCzB,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import {useState,useEffect,useCallback}from'react';const updateColorWeak = (colorWeak) => {
|
|
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 useSettings = () => {
|
|
11
|
+
const [settings, setSettingsState] = useState({});
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
const fetchSettings = async () => {
|
|
14
|
+
const settingsData = await getSettings();
|
|
15
|
+
setSettingsState(settingsData);
|
|
16
|
+
};
|
|
17
|
+
fetchSettings();
|
|
18
|
+
}, []);
|
|
19
|
+
const getSettings = useCallback(async () => {
|
|
20
|
+
try {
|
|
21
|
+
const response = await fetch('/resources/settings', {
|
|
22
|
+
method: 'GET',
|
|
23
|
+
headers: {
|
|
24
|
+
'Content-Type': 'application/json',
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
if (!response.ok) {
|
|
28
|
+
throw new Error('Failed to fetch settings');
|
|
29
|
+
}
|
|
30
|
+
const result = await response.json();
|
|
31
|
+
return result;
|
|
32
|
+
}
|
|
33
|
+
catch (error) {
|
|
34
|
+
console.error(error);
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
}, []);
|
|
38
|
+
const setSettings = useCallback(async (config) => {
|
|
39
|
+
const { colorWeak, contentWidth } = config;
|
|
40
|
+
try {
|
|
41
|
+
// @sri to avoid breaking during SSR, split into to checks
|
|
42
|
+
if (settings.contentWidth !== contentWidth) {
|
|
43
|
+
if (typeof window !== 'undefined') {
|
|
44
|
+
window.dispatchEvent(new Event('resize'));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
updateColorWeak(!!colorWeak);
|
|
48
|
+
const response = await fetch('/resources/settings', {
|
|
49
|
+
method: 'POST',
|
|
50
|
+
headers: {
|
|
51
|
+
'Content-Type': 'application/json',
|
|
52
|
+
},
|
|
53
|
+
body: JSON.stringify({ config }),
|
|
54
|
+
});
|
|
55
|
+
if (!response.ok) {
|
|
56
|
+
throw new Error('Failed to update settings');
|
|
57
|
+
}
|
|
58
|
+
setSettingsState((prevSettings) => ({
|
|
59
|
+
...prevSettings,
|
|
60
|
+
...config,
|
|
61
|
+
}));
|
|
62
|
+
return await response.json();
|
|
63
|
+
}
|
|
64
|
+
catch (error) {
|
|
65
|
+
console.error(error);
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
}, [setSettingsState, settings]);
|
|
69
|
+
return { settings, setSettings };
|
|
70
|
+
};export{useSettings};//# sourceMappingURL=useSettings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSettings.js","sources":["../../src/hooks/useSettings.ts"],"sourcesContent":[null],"names":[],"mappings":";;IAoFE,IAAA,OAAA,MAAA,KAAA,WAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/index.d.ts
CHANGED
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
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{settingsReducer}from'./redux/settings.js';export{applicationErrors,initialErrorsState}from'./redux/reducers/error.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{getAntdLocale}from'./utils/getAntdLocale.js';export{generateMenuPath}from'./utils/generateMenuLink.js';export{ApplicationErrorHandlerCommon}from'./components/ApplicationErrorHandlerCommon.js';export{ErrorBoundaryCommon}from'./components/ErrorBoundaryCommon.js';export{ApplicationErrorFillWrapper}from'./components/ApplicationErrorFillWrapper.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{defaultSettings}from'./config/defaultSettings.js';export{ThemeProvider,getTheme}from'./antd-themes/ThemeProvider.js';export{airbnbDarkTheme}from'./antd-themes/airbnb-dark-theme.js';export{airbnbLightTheme}from'./antd-themes/airbnb-light-theme.js';export{colorList,getThemeColors}from'./antd-themes/colors.js';export{defaultDarkTheme}from'./antd-themes/default-dark-theme.js';export{defaultLightTheme}from'./antd-themes/default-light-theme.js';export{githubDarkTheme}from'./antd-themes/github-dark-theme.js';export{githubLightTheme}from'./antd-themes/github-light-theme.js';export{slackDarkTheme}from'./antd-themes/slack-dark-theme.js';export{slackLightTheme}from'./antd-themes/slack-light-theme.js';export{spotifyDarkTheme}from'./antd-themes/spotify-dark-theme.js';export{spotifyLightTheme}from'./antd-themes/spotify-light-theme.js';export{themeRegistry}from'./antd-themes/themeRegistry.js';//# sourceMappingURL=index.js.map
|
|
1
|
+
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{settingsReducer}from'./redux/settings.js';export{applicationErrors,initialErrorsState}from'./redux/reducers/error.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{getAntdLocale}from'./utils/getAntdLocale.js';export{generateMenuPath}from'./utils/generateMenuLink.js';export{ApplicationErrorHandlerCommon}from'./components/ApplicationErrorHandlerCommon.js';export{ErrorBoundaryCommon}from'./components/ErrorBoundaryCommon.js';export{ApplicationErrorFillWrapper}from'./components/ApplicationErrorFillWrapper.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{defaultSettings}from'./config/defaultSettings.js';export{ThemeProvider,getTheme}from'./antd-themes/ThemeProvider.js';export{airbnbDarkTheme}from'./antd-themes/airbnb-dark-theme.js';export{airbnbLightTheme}from'./antd-themes/airbnb-light-theme.js';export{colorList,getThemeColors}from'./antd-themes/colors.js';export{defaultDarkTheme}from'./antd-themes/default-dark-theme.js';export{defaultLightTheme}from'./antd-themes/default-light-theme.js';export{githubDarkTheme}from'./antd-themes/github-dark-theme.js';export{githubLightTheme}from'./antd-themes/github-light-theme.js';export{slackDarkTheme}from'./antd-themes/slack-dark-theme.js';export{slackLightTheme}from'./antd-themes/slack-light-theme.js';export{spotifyDarkTheme}from'./antd-themes/spotify-dark-theme.js';export{spotifyLightTheme}from'./antd-themes/spotify-light-theme.js';export{themeRegistry}from'./antd-themes/themeRegistry.js';export{useSettings}from'./hooks/useSettings.js';//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.server.d.ts","sourceRoot":"","sources":["../src/index.server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,oBAAoB,MAAM,mDAAmD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as UpdateSettings_server from'./components/UpdateSettings/UpdateSettings.server.js';export{UpdateSettings_server as UpdateSettingsServer };//# sourceMappingURL=index.server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.server.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-actions.js","sources":["../../../src/redux/actions/error-actions.ts"],"sourcesContent":[null],"names":[],"mappings":"kHAEuB,MAAA,mBACrB,GAAwB,CAAA,OAAA,KAAA;AAM1B,IAAA,QAAA;;;KAKE
|
|
1
|
+
{"version":3,"file":"error-actions.js","sources":["../../../src/redux/actions/error-actions.ts"],"sourcesContent":[null],"names":[],"mappings":"kHAEuB,MAAA,mBACrB,GAAwB,CAAA,OAAA,KAAA;AAM1B,IAAA,QAAA;;;KAKE;AAEF;;;;;AAOC,YAAA;AAED;;;AAKE,MAAA,uBAAA,GAAA,CAAA,OAAA,KAAA;AAEF,IAAM,QAAM;QACJ,gCAAwB;AAAC,QAAA,OAAa;KAC1C;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.js","sources":["../../../src/redux/reducers/error.ts"],"sourcesContent":[null],"names":[],"mappings":"2IAQO,MAAA,kBAAwB,GAAA
|
|
1
|
+
{"version":3,"file":"error.js","sources":["../../../src/redux/reducers/error.ts"],"sourcesContent":[null],"names":[],"mappings":"2IAQO,MAAA,kBAAwB,GAAA;AAEf,SAAA,iBAAA,CAAA,UAA4B,GAAA,kBAA6B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","sources":["../../src/redux/settings.ts"],"sourcesContent":[null],"names":[],"mappings":"8JAIA;AAmBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aA2BE
|
|
1
|
+
{"version":3,"file":"settings.js","sources":["../../src/redux/settings.ts"],"sourcesContent":[null],"names":[],"mappings":"8JAIA;AAmBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aA2BE;AAEF,QAAO;;;"}
|
package/lib/redux/store.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {combineReducers,configureStore}from'@reduxjs/toolkit';import {
|
|
1
|
+
import {combineReducers,configureStore}from'@reduxjs/toolkit';import {applicationErrors}from'./reducers/error.js';// Combine the reducers into an object
|
|
2
2
|
const rootReducer = combineReducers({
|
|
3
|
-
settings: settingsReducer, // Adding settings reducer
|
|
3
|
+
// settings: settingsReducer, // Adding settings reducer // now handled via cookie
|
|
4
4
|
applicationErrors: applicationErrors, // Adding applicationErrors reducer
|
|
5
5
|
});
|
|
6
6
|
// Configure the store
|
package/lib/redux/store.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.js","sources":["../../src/redux/store.ts"],"sourcesContent":["import { combineReducers, configureStore } from '@reduxjs/toolkit';\nimport {
|
|
1
|
+
{"version":3,"file":"store.js","sources":["../../src/redux/store.ts"],"sourcesContent":["import { combineReducers, configureStore } from '@reduxjs/toolkit';\nimport { applicationErrors } from './reducers';\n// Combine the reducers into an object\nconst rootReducer = combineReducers({\n // settings: settingsReducer, // Adding settings reducer // now handled via cookie\n applicationErrors: applicationErrors, // Adding applicationErrors reducer\n});\n// Configure the store\nexport const store = configureStore({\n reducer: rootReducer,\n});\n"],"names":[],"mappings":"kHAEA;AACA,MAAM,WAAW,GAAG,eAAe,CAAC;AACpC;AACA,IAAI,iBAAiB,EAAE,iBAAiB;AACxC,CAAC,CAAC;AACF;AACY,MAAC,KAAK,GAAG,cAAc,CAAC;AACpC,IAAI,OAAO,EAAE,WAAW;AACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"darkLayoutTheme.js","sources":["../../../src/themes/templates/darkLayoutTheme.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;IAuBE,0BAAA,EAAA,KAAA,CAAA,OAAA;AAEF,IAAA,0BAAa,EAAA,KAAA,CAAA,OAAwB;AAUrC,IAAA,0BAAa,EAAA,KAAiB,CAAA
|
|
1
|
+
{"version":3,"file":"darkLayoutTheme.js","sources":["../../../src/themes/templates/darkLayoutTheme.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;IAuBE,0BAAA,EAAA,KAAA,CAAA,OAAA;AAEF,IAAA,0BAAa,EAAA,KAAA,CAAA,OAAwB;AAUrC,IAAA,0BAAa,EAAA,KAAiB,CAAA;AAK9B;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"componentSize.js","sources":["../../src/utils/componentSize.ts"],"sourcesContent":[null],"names":[],"mappings":"0EAkBA,MAAA,yBAA6B,GAAA,OAAA,MAAA,KAAA,WAAA,GAAA,eAAA,GAAA
|
|
1
|
+
{"version":3,"file":"componentSize.js","sources":["../../src/utils/componentSize.ts"],"sourcesContent":[null],"names":[],"mappings":"0EAkBA,MAAA,yBAA6B,GAAA,OAAA,MAAA,KAAA,WAAA,GAAA,eAAA,GAAA;;;;YAoC5B,KAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matchMenuKeys.js","sources":["../../src/utils/matchMenuKeys.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;AAEA;;;;;;;AAOG,MAAA,gBAAA,GAAA,CAAA,SAAA,EAAA,WAAA,KAAA;AAEH,IAAO,MAAA,SAAA,GAAsB,EAAA
|
|
1
|
+
{"version":3,"file":"matchMenuKeys.js","sources":["../../src/utils/matchMenuKeys.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;AAEA;;;;;;;AAOG,MAAA,gBAAA,GAAA,CAAA,SAAA,EAAA,WAAA,KAAA;AAEH,IAAO,MAAA,SAAA,GAAsB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menuUtils.js","sources":["../../src/utils/menuUtils.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAaG;AACH;AA2BA;AAeA,MAAA,uCAA+B;AAS/B,IAAO,MAAA,CAAA,KAAA,CAAA,kCAA2C,CAAA
|
|
1
|
+
{"version":3,"file":"menuUtils.js","sources":["../../src/utils/menuUtils.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAaG;AACH;AA2BA;AAeA,MAAA,uCAA+B;AAS/B,IAAO,MAAA,CAAA,KAAA,CAAA,kCAA2C,CAAA;AAWlD,IAAO,MAAA,cAA4B,GAAA,mBAAA,CAAA,QAAA,CAAA;AAenC,IAAA,QAAA;;;AAGG,QAAA,MAAA,EAAA,SAAA,EAAA,GAAA,IAAA;AACH,QAAA,IAAA,KAAA,CAAA,OAA2C,CAAA,SAAA,CAAA,IAAA,SAAA,EAAA,MAAI,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seperatedMenus.js","sources":["../../src/utils/seperatedMenus.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;AAGY,uBAAkB,GAAG,CAAA,KAAA,KAAA;AAC7B,IAAA,IAAA,CAAA,KAAU,CAAC,OAAc,CAAA,KAAA,CAAA,EAAE;AAC3B,QAAA,OAAW,CAAC,GAAc,CAAA,kBAAG,EAAA,KAAA,CAAA
|
|
1
|
+
{"version":3,"file":"seperatedMenus.js","sources":["../../src/utils/seperatedMenus.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;AAGY,uBAAkB,GAAG,CAAA,KAAA,KAAA;AAC7B,IAAA,IAAA,CAAA,KAAU,CAAC,OAAc,CAAA,KAAA,CAAA,EAAE;AAC3B,QAAA,OAAW,CAAC,GAAc,CAAA,kBAAG,EAAA,KAAA,CAAA;AAC7B;AACA;IACF,MAAA,UAAA,GAAA,KAAA,EAAA,MAAA,CAAA,CAAA,IAAA,KAAA,IAAA,CAAA,QAAA,KAAA,OAAA,CAAA,IAAA,EAAA;AAGF,IAAO,MAAA,WAAM,GAAiB,KAAA,EAAA,MAAA,CAAA,CAAA,IAAG,KAAO,IAAY,CAAA,QAAA,KAAO,QAAA;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@admin-layout/client",
|
|
3
|
-
"version": "9.0.4-alpha.
|
|
3
|
+
"version": "9.0.4-alpha.99",
|
|
4
4
|
"description": "Sample client for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"watch": "yarn build:lib:watch"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@common-stack/client-core": "6.0.6-alpha.
|
|
25
|
+
"@common-stack/client-core": "6.0.6-alpha.106",
|
|
26
26
|
"serialize-error": "^8.0.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"typescript": {
|
|
38
38
|
"definition": "lib/index.d.ts"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "442b97b40702c02b635d5842b1be10df11fa51b6"
|
|
41
41
|
}
|