@admin-layout/client 9.1.1-alpha.49 → 10.0.2-alpha.0

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.
@@ -1,5 +1,7 @@
1
1
  import React from 'react';
2
+ import { ISettings } from '../config/defaultSettings';
2
3
  interface ThemeProviderProps {
4
+ settings: ISettings;
3
5
  children: React.ReactNode;
4
6
  }
5
7
  export declare const getTheme: (themeType: any, themeName: any) => {
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/antd-themes/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,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,CAiCtD,CAAC"}
1
+ {"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/antd-themes/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,UAAU,kBAAkB;IACxB,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQpB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAgCtD,CAAC"}
@@ -1,4 +1,4 @@
1
- import React__default from'react';import {ConfigProvider}from'antd';import {themeRegistry}from'./themeRegistry.js';import'../config/env-config.js';import'lodash-es';import'../redux/store.js';import {useAppSelector}from'../redux/hooks.js';const getTheme = (themeType, themeName) => {
1
+ import React__default from'react';import {ConfigProvider}from'antd';import {themeRegistry}from'./themeRegistry.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];
@@ -7,8 +7,7 @@ import React__default from'react';import {ConfigProvider}from'antd';import {them
7
7
  return themeRegistry?.defaultLightTheme;
8
8
  }
9
9
  };
10
- const ThemeProvider = ({ children }) => {
11
- const settings = useAppSelector((state) => state?.settings);
10
+ const ThemeProvider = ({ settings, children }) => {
12
11
  const { theme, themeType } = settings;
13
12
  const selectedTheme = getTheme(themeType, theme);
14
13
  const applyScopedStyles = (components) => {
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeProvider.js","sources":["../../src/antd-themes/ThemeProvider.tsx"],"sourcesContent":[null],"names":[],"mappings":"8OASA,MAAA,QAAa,GAAQ,CAAA,SAAA,EAAA,SAAA,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ThemeProvider.js","sources":["../../src/antd-themes/ThemeProvider.tsx"],"sourcesContent":[null],"names":[],"mappings":"mHAMY,MAAA,WAAY,CAAA,SAAA,EAAA,SAAA,KAAA;AACpB,IAAA,MAAA,GAAU,GAAA,CAAA,EAAK,SAAC,CAAS,EAAC,SAAA,KAAA,UAAA,GAAA,MAAA,GAAA,OAAA,CAAA,KAAA,CAAA;AAC7B,IAAA,IAAA,GAAA,IAAA,aAAA,EAAA;AAED,QAAA,OAAO,aAAc,CAAA,GAAA,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":"AAYA,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 {pick,keys}from'lodash-es';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":["../../../src/components/UpdateSettings/UpdateSettings.server.ts"],"sourcesContent":[null],"names":[],"mappings":"yMA+B4D,GAAA,YAAA,CAAA,UAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { ProSettings } from '../interfaces';
2
- export declare const defaultSettings: ProSettings & {
2
+ export type ISettings = ProSettings & {
3
3
  logo: string;
4
4
  showSettingPanel: boolean;
5
5
  titleColor: string;
@@ -15,4 +15,5 @@ export declare const defaultSettings: ProSettings & {
15
15
  theme: string;
16
16
  themeType: string;
17
17
  };
18
+ export declare const defaultSettings: ISettings;
18
19
  //# sourceMappingURL=defaultSettings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"defaultSettings.d.ts","sourceRoot":"","sources":["../../src/config/defaultSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,eAAO,MAAM,eAAe,EAAE,WAAW,GAAG;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CAmCrB,CAAC"}
1
+ {"version":3,"file":"defaultSettings.d.ts","sourceRoot":"","sources":["../../src/config/defaultSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,WAAW,EAAE,MAAM,eAAe,CAAC;AAEvD,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACrB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,SAkC7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"defaultSettings.js","sources":["../../src/config/defaultSettings.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAS,MAAA,eAAmB;AAE5B,IAAA,IAAA,EAAA,mEAA4C;IACxC,kBAAa;IACb,KAAgB,EAAA,SAAA;IAChB,YAAY,WAAO;IACnB,uBAAiB;IACjB,MAAU,EAAA;IACV,YAAe,EAAA;IACf,WAAW,EAAE;IACb,WAAa,EAAA;IACb,eAAc;IACd,SAAY,EAAA;IACZ,KAAa,EAAA;IACb,WAAW;IACX,gBAAc,EAAA,IAAA;IACd,UAAS,WAAS;IAmCpB,QAAA,EAAA,OAAA;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"defaultSettings.js","sources":["../../src/config/defaultSettings.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAoB,MAAA,eAAmB;AAEvC,IAAA,IAAY,EAAA,mEAA0B;IAClC,kBAAa;IACb,KAAgB,EAAA,SAAA;IAChB,YAAY,WAAO;IACnB,uBAAiB;IACjB,MAAU,EAAA;IACV,YAAe,EAAA;IACf,WAAW,EAAE;IACb,WAAa,EAAA;IACb,eAAc;IACd,SAAY,EAAA;IACZ,KAAa,EAAA;IACb,WAAW;IACX,gBAAc,EAAA,IAAA;IACd,UAAS,WAAS;IACrB,QAAA,EAAA,OAAA;AAED,IAAA,UAAA,EAAa,qBAAiB;;;;;;;;;;;;;;;;;"}
@@ -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;AAahD,QAAA,IAAI,MAAM;;gCAAyB,CAAC;AAQpC,OAAO,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"}
@@ -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":";;AAuBA,MAAO,SAAQ,GAAG,OAAA,CAAA,QAAA,CAAA,GAAA,EAAA;;;;;;;;;;;;"}
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;;;;;;;;;;;;"}
@@ -0,0 +1,2 @@
1
+ export * from './useSettings';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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,5 @@
1
+ export declare const useSettings: () => {
2
+ settings: any;
3
+ setSettings: (config: any) => Promise<any>;
4
+ };
5
+ //# sourceMappingURL=useSettings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSettings.d.ts","sourceRoot":"","sources":["../../src/hooks/useSettings.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,WAAW;;0BAqCD,GAAG;CAuCzB,CAAC"}
@@ -0,0 +1,74 @@
1
+ import {useState,useEffect,useCallback}from'react';import'../config/env-config.js';import {defaultSettings}from'../config/defaultSettings.js';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(defaultSettings);
12
+ const [settingsSynced, setSettingsSynced] = useState(false);
13
+ useEffect(() => {
14
+ if (!settingsSynced) {
15
+ void getSettings().then((settingsData) => {
16
+ if (settingsData) {
17
+ setSettingsState(settingsData);
18
+ setSettingsSynced(true);
19
+ }
20
+ });
21
+ }
22
+ }, []);
23
+ const getSettings = useCallback(async () => {
24
+ try {
25
+ const response = await fetch('/resources/settings', {
26
+ method: 'GET',
27
+ headers: {
28
+ 'Content-Type': 'application/json',
29
+ },
30
+ });
31
+ if (!response.ok) {
32
+ throw new Error('Failed to fetch settings');
33
+ }
34
+ const result = await response.json();
35
+ return result;
36
+ }
37
+ catch (error) {
38
+ console.error(error);
39
+ return null;
40
+ }
41
+ }, []);
42
+ const setSettings = useCallback(async (config) => {
43
+ const { colorWeak, contentWidth } = config;
44
+ try {
45
+ // @sri to avoid breaking during SSR, split into to checks
46
+ if (settings.contentWidth !== contentWidth) {
47
+ if (typeof window !== 'undefined') {
48
+ window.dispatchEvent(new Event('resize'));
49
+ }
50
+ }
51
+ updateColorWeak(!!colorWeak);
52
+ const response = await fetch('/resources/settings', {
53
+ method: 'POST',
54
+ headers: {
55
+ 'Content-Type': 'application/json',
56
+ },
57
+ body: JSON.stringify({ config }),
58
+ });
59
+ if (!response.ok) {
60
+ throw new Error('Failed to update settings');
61
+ }
62
+ setSettingsState((prevSettings) => ({
63
+ ...prevSettings,
64
+ ...config,
65
+ }));
66
+ return await response.json();
67
+ }
68
+ catch (error) {
69
+ console.error(error);
70
+ return null;
71
+ }
72
+ }, [setSettingsState, settings]);
73
+ return { settings, setSettings };
74
+ };export{useSettings};//# sourceMappingURL=useSettings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSettings.js","sources":["../../src/hooks/useSettings.ts"],"sourcesContent":[null],"names":[],"mappings":"gLAkD0B,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/lib/index.d.ts CHANGED
@@ -7,4 +7,5 @@ export * from './graphql';
7
7
  export * from './themes';
8
8
  export * from './config';
9
9
  export * from './antd-themes';
10
+ export * from './hooks';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -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,2 @@
1
+ export * as UpdateSettingsServer from './components/UpdateSettings/UpdateSettings.server';
2
+ //# sourceMappingURL=index.server.d.ts.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,6 +1,5 @@
1
- import {combineReducers,configureStore}from'@reduxjs/toolkit';import {settingsReducer}from'./settings.js';import {applicationErrors}from'./reducers/error.js';// Combine the reducers into an object
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
4
3
  applicationErrors: applicationErrors, // Adding applicationErrors reducer
5
4
  });
6
5
  // Configure the store
@@ -1 +1 @@
1
- {"version":3,"file":"store.js","sources":["../../src/redux/store.ts"],"sourcesContent":["import { combineReducers, configureStore } from '@reduxjs/toolkit';\nimport { settingsReducer } from './settings';\nimport { applicationErrors } from './reducers';\n// Combine the reducers into an object\nconst rootReducer = combineReducers({\n settings: settingsReducer, // Adding settings reducer\n applicationErrors: applicationErrors, // Adding applicationErrors reducer\n});\n// Configure the store\nexport const store = configureStore({\n reducer: rootReducer,\n});\n"],"names":[],"mappings":"8JAGA;AACA,MAAM,WAAW,GAAG,eAAe,CAAC;AACpC,IAAI,QAAQ,EAAE,eAAe;AAC7B,IAAI,iBAAiB,EAAE,iBAAiB;AACxC,CAAC,CAAC;AACF;AACY,MAAC,KAAK,GAAG,cAAc,CAAC;AACpC,IAAI,OAAO,EAAE,WAAW;AACxB,CAAC"}
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 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,IAAI,iBAAiB,EAAE,iBAAiB;AACxC,CAAC,CAAC;AACF;AACY,MAAC,KAAK,GAAG,cAAc,CAAC;AACpC,IAAI,OAAO,EAAE,WAAW;AACxB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@admin-layout/client",
3
- "version": "9.1.1-alpha.49",
3
+ "version": "10.0.2-alpha.0",
4
4
  "description": "Sample client for higher packages to depend on",
5
5
  "license": "ISC",
6
6
  "author": "CDMBase LLC",
@@ -22,12 +22,13 @@
22
22
  "watch": "yarn build:lib:watch"
23
23
  },
24
24
  "dependencies": {
25
- "@common-stack/client-core": "6.0.8-alpha.21",
25
+ "@common-stack/client-core": "6.0.8-alpha.31",
26
26
  "serialize-error": "^8.0.0"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "envalid": "*",
30
30
  "history": "*",
31
+ "lodash-es": "^4.17.21",
31
32
  "react": "*",
32
33
  "react-router": "*"
33
34
  },
@@ -37,5 +38,5 @@
37
38
  "typescript": {
38
39
  "definition": "lib/index.d.ts"
39
40
  },
40
- "gitHead": "06cfb03abd556c727964194f4317c3b02fb5d792"
41
+ "gitHead": "18efdcd06c199b47d9ddbbe8d917ef279d7aea42"
41
42
  }