@admin-layout/client 12.2.4-alpha.6 → 12.2.4-alpha.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/UpdateSettings/UpdateSettings.server.d.ts.map +1 -1
- package/lib/components/UpdateSettings/UpdateSettings.server.js +32 -14
- package/lib/components/UpdateSettings/UpdateSettings.server.js.map +1 -1
- package/lib/config/defaultSettings.d.ts +90 -0
- package/lib/config/defaultSettings.d.ts.map +1 -1
- package/lib/config/defaultSettings.js +91 -1
- package/lib/config/defaultSettings.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.native.js +1 -1
- package/lib/redux/actions/error-actions.js +1 -1
- package/lib/redux/hooks.js +1 -1
- package/lib/utils/seperatedMenus.test.d.ts +2 -0
- package/lib/utils/seperatedMenus.test.d.ts.map +1 -0
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateSettings.server.d.ts","sourceRoot":"","sources":["../../../src/components/UpdateSettings/UpdateSettings.server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UpdateSettings.server.d.ts","sourceRoot":"","sources":["../../../src/components/UpdateSettings/UpdateSettings.server.ts"],"names":[],"mappings":"AAiBA;;;;;GAKG;AACH,eAAO,MAAM,cAAc,kCAMzB,CAAC;AAEH;;;;;;;;;;;GAWG;AACH,wBAAsB,0BAA0B,CAAC,OAAO,EAAE,OAAO,EAAE,kBAAkB,CAAC,EAAE,MAAM;;GAoG7F;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAsB,kBAAkB,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE;;;;CAAA;;;GA4HpE;AAED,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAQrE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {createCookie}from'@remix-run/node';import {ConfigCollectionName,ConfigFragmentName,ConfigurationSchemaId}from'common';import {GetPageSettingsDocument}from'common/graphql';import {merge}from'lodash-es';import {print}from'graphql';import {parseEnvLayoutSettings}from'../../utils/parseEnvUiLayoutSettings.js';import {config}from'../../config/env-config.js';import'../../config/defaultSettings.js';import {generateCdecodeUri,DEFAULT_CONTRIBUTION_TENANT_ID}from'@adminide-stack/core';/**
|
|
1
|
+
import {createCookie}from'@remix-run/node';import {ConfigCollectionName,ConfigFragmentName,ConfigurationSchemaId}from'common';import {GetPageSettingsDocument}from'common/graphql';import {merge}from'lodash-es';import {print}from'graphql';import {parseEnvLayoutSettings}from'../../utils/parseEnvUiLayoutSettings.js';import {config}from'../../config/env-config.js';import {DEFAULT_SETTINGS}from'../../config/defaultSettings.js';import {generateCdecodeUri,DEFAULT_CONTRIBUTION_TENANT_ID}from'@adminide-stack/core';/**
|
|
2
2
|
* Cookie configuration for storing user settings
|
|
3
3
|
* - Max age: 30 days
|
|
4
4
|
* - Client-side accessible for dynamic UI updates
|
|
@@ -78,20 +78,25 @@ async function fetchPageSettingsWithFetch(request, overrideIdentifier) {
|
|
|
78
78
|
}),
|
|
79
79
|
});
|
|
80
80
|
if (!response.ok) {
|
|
81
|
-
console.
|
|
82
|
-
|
|
81
|
+
console.warn('⚠️ GraphQL fetch failed with status:', response.status, '- Backend may be down, using empty settings');
|
|
82
|
+
// Return empty data structure instead of throwing to allow layout to render
|
|
83
|
+
return { data: { pageSettings: { settings: null } } };
|
|
83
84
|
}
|
|
84
85
|
const result = await response.json();
|
|
85
86
|
if (result.errors) {
|
|
86
|
-
console.
|
|
87
|
-
|
|
87
|
+
console.warn('⚠️ GraphQL errors:', JSON.stringify(result.errors, null, 2), '- Backend may be down, using empty settings');
|
|
88
|
+
// Return empty data structure instead of throwing to allow layout to render
|
|
89
|
+
return { data: { pageSettings: { settings: null } } };
|
|
88
90
|
}
|
|
89
91
|
console.log('✅ Settings fetched successfully (from Redis-cached backend)');
|
|
90
92
|
return { data: result.data };
|
|
91
93
|
}
|
|
92
94
|
catch (error) {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
+
// Log error but return empty data instead of throwing to allow layout to render
|
|
96
|
+
console.warn('⚠️ Failed to fetch settings (backend may be down):', error?.message || error);
|
|
97
|
+
console.warn('⚠️ Returning empty settings to allow layout to render');
|
|
98
|
+
// Return empty data structure instead of throwing
|
|
99
|
+
return { data: { pageSettings: { settings: null } } };
|
|
95
100
|
}
|
|
96
101
|
}
|
|
97
102
|
/**
|
|
@@ -137,12 +142,20 @@ async function settingsLoaderUtil({ request, context, params }) {
|
|
|
137
142
|
const deviceType = getDeviceType(userAgent);
|
|
138
143
|
// 2. Fetch settings from GraphQL backend with device-specific overrides
|
|
139
144
|
// Override identifier format: "[desktop]" or "[mobile]"
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
145
|
+
let pageBackendSettings = null;
|
|
146
|
+
try {
|
|
147
|
+
const overrideIdentifier = `[${deviceType}]`;
|
|
148
|
+
const result = await fetchPageSettingsWithFetch(request, overrideIdentifier);
|
|
149
|
+
// console.log('ddRESULT=========>', JSON.stringify(result));
|
|
150
|
+
pageBackendSettings = result?.data?.pageSettings?.settings
|
|
151
|
+
? JSON.parse(JSON.stringify(result?.data?.pageSettings?.settings))
|
|
152
|
+
: null;
|
|
153
|
+
}
|
|
154
|
+
catch (error) {
|
|
155
|
+
// If fetchPageSettingsWithFetch still throws (shouldn't happen now, but defensive coding)
|
|
156
|
+
console.warn('⚠️ Error fetching page settings, using null:', error?.message || error);
|
|
157
|
+
pageBackendSettings = null;
|
|
158
|
+
}
|
|
146
159
|
// 3. Parse request payload (only available for POST/PUT requests in actions)
|
|
147
160
|
let requestPayload = {};
|
|
148
161
|
try {
|
|
@@ -196,7 +209,12 @@ async function settingsLoaderUtil({ request, context, params }) {
|
|
|
196
209
|
}
|
|
197
210
|
// 7. Merge all settings sources in priority order (later sources override earlier)
|
|
198
211
|
// Priority: GraphQL backend → Environment → Cookie + Request payload
|
|
199
|
-
|
|
212
|
+
// Use DEFAULT_SETTINGS as fallback when backend is down (null, undefined, or empty object)
|
|
213
|
+
const effectiveBackendSettings = !pageBackendSettings ||
|
|
214
|
+
(typeof pageBackendSettings === 'object' && Object.keys(pageBackendSettings).length === 0)
|
|
215
|
+
? DEFAULT_SETTINGS
|
|
216
|
+
: pageBackendSettings;
|
|
217
|
+
const fullSettings = merge({}, effectiveBackendSettings, envLayoutSettings, cookieUpdatedSettings);
|
|
200
218
|
// 8. Validate final merged settings - detect and remove numeric key corruption
|
|
201
219
|
const numericKeysAfterFinalMerge = Object.keys(fullSettings).filter((k) => /^\d+$/.test(k));
|
|
202
220
|
if (numericKeysAfterFinalMerge.length > 0) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateSettings.server.js","sources":["../../../src/components/UpdateSettings/UpdateSettings.server.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UpdateSettings.server.js","sources":["../../../src/components/UpdateSettings/UpdateSettings.server.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AA0CG,IAAA,QAAA,EAAA,KAAA;AACH,IAAA,IAAA,EAAA,GAAA;;AAoGC,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCG,IAAA,MAAA,SAAA,GAAA;AACH,QAAA,WAAA,EAAA,QAAsB;;;;AAA+C;;;AA4HpE,QAAA,cAAA,EAAA,kBAAA;AAED,QAAA,eAAA,EAAgB,qCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -76,6 +76,96 @@ export declare const SHARED_VIEW_CONFIG: {
|
|
|
76
76
|
};
|
|
77
77
|
};
|
|
78
78
|
};
|
|
79
|
+
/**
|
|
80
|
+
* Comprehensive default settings to use when backend is down
|
|
81
|
+
* These ensure header, footer, and all UI components render properly
|
|
82
|
+
*/
|
|
83
|
+
export declare const DEFAULT_SETTINGS: {
|
|
84
|
+
readonly header: {
|
|
85
|
+
readonly showHeader: true;
|
|
86
|
+
readonly showMenu: false;
|
|
87
|
+
readonly menuHeaderRender: true;
|
|
88
|
+
readonly showLogo: true;
|
|
89
|
+
readonly showSearchSlot: true;
|
|
90
|
+
readonly showRightContent: true;
|
|
91
|
+
readonly showMenuToggle: true;
|
|
92
|
+
readonly showBackButton: true;
|
|
93
|
+
readonly showPageTitle: true;
|
|
94
|
+
readonly showActionButtons: true;
|
|
95
|
+
readonly position: "fixed";
|
|
96
|
+
readonly height: "64px";
|
|
97
|
+
readonly backgroundColor: "inherit";
|
|
98
|
+
readonly elevation: 2;
|
|
99
|
+
readonly searchBarRender: true;
|
|
100
|
+
readonly searchBarBehavior: SearchBarBehavior.PERMANENT;
|
|
101
|
+
readonly searchBarOverlay: true;
|
|
102
|
+
readonly scrollThreshold: 50;
|
|
103
|
+
};
|
|
104
|
+
readonly footer: {
|
|
105
|
+
readonly showFooter: true;
|
|
106
|
+
};
|
|
107
|
+
readonly loginThemeColor: "blue";
|
|
108
|
+
readonly loginFormPosition: "center";
|
|
109
|
+
readonly loginSocials: "{\"Google\":true,\"Apple\":true,\"Facebook\":true}";
|
|
110
|
+
readonly loginBackgroundImage: any;
|
|
111
|
+
readonly verifyFormLayout: "center";
|
|
112
|
+
readonly verifyFormImageUrl: "";
|
|
113
|
+
readonly verifyFormBackgroundStyle: "color";
|
|
114
|
+
readonly verifyFormVisibleFields: "[\"firstName\",\"lastName\",\"username\",\"companyName\",\"workEmail\",\"phoneNumber\",\"dateOfBirth\"]";
|
|
115
|
+
readonly verifyFormShowSkipButton: false;
|
|
116
|
+
readonly organization: {
|
|
117
|
+
readonly members: {
|
|
118
|
+
readonly invitations: {
|
|
119
|
+
readonly showEmailInvite: true;
|
|
120
|
+
readonly showSmsInvite: true;
|
|
121
|
+
readonly showQrCodeInvite: true;
|
|
122
|
+
readonly showInviteLink: true;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
readonly logo: "https://cdmbase.s3.ca-central-1.amazonaws.com/favicon-new-128.svg";
|
|
127
|
+
readonly themeType: "light";
|
|
128
|
+
readonly theme: "default";
|
|
129
|
+
readonly navTheme: "light";
|
|
130
|
+
readonly primaryColor: "#1890ff";
|
|
131
|
+
readonly colorPrimary: "#1677FF";
|
|
132
|
+
readonly secondaryColor: "#4A5568";
|
|
133
|
+
readonly layout: "mix";
|
|
134
|
+
readonly contentWidth: ContentWidth;
|
|
135
|
+
readonly fixedHeader: true;
|
|
136
|
+
readonly fixedSidebar: true;
|
|
137
|
+
readonly colorWeak: false;
|
|
138
|
+
readonly title: "CDMBase LLC";
|
|
139
|
+
readonly iconfontUrl: "";
|
|
140
|
+
readonly showSettingPanel: true;
|
|
141
|
+
readonly titleColor: "#2869E0";
|
|
142
|
+
readonly language: "en-US";
|
|
143
|
+
readonly fontFamily: "Poppins, sans-serif";
|
|
144
|
+
readonly titleFontWeight: "700";
|
|
145
|
+
readonly titleHeight: "30px";
|
|
146
|
+
readonly titleFontSize: "1.8rem";
|
|
147
|
+
readonly letterSpacings: "1px";
|
|
148
|
+
readonly navigationMode: NavigationMode;
|
|
149
|
+
readonly sideMenuType: SideMenuType;
|
|
150
|
+
readonly splitMenus: false;
|
|
151
|
+
readonly upperMenuDividerName: "Navigation";
|
|
152
|
+
readonly middleMenuDividerName: "Dashboard";
|
|
153
|
+
readonly lowerMenuDividerName: "Admin";
|
|
154
|
+
readonly background: {
|
|
155
|
+
readonly type: "video";
|
|
156
|
+
readonly color: "inherit";
|
|
157
|
+
readonly image: "";
|
|
158
|
+
readonly video: "https://d1tsi4dpgrrap2.cloudfront.net/_site/pubng-mountain-view-orig.webm";
|
|
159
|
+
readonly videoThumbnail: "https://d1tsi4dpgrrap2.cloudfront.net/_site/pubng-mountain-view.webp";
|
|
160
|
+
};
|
|
161
|
+
readonly components: readonly [];
|
|
162
|
+
readonly hiddenMenuKeys: readonly [];
|
|
163
|
+
readonly hiddenMenuCategories: readonly [];
|
|
164
|
+
readonly activeComponent: any;
|
|
165
|
+
readonly siderBgColor: "#000000";
|
|
166
|
+
readonly headerBgColor: "#000000";
|
|
167
|
+
readonly textColor: "#a19c9c";
|
|
168
|
+
};
|
|
79
169
|
export type ISettings = ProSettings & {
|
|
80
170
|
logo: string;
|
|
81
171
|
showSettingPanel: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultSettings.d.ts","sourceRoot":"","sources":["../../src/config/defaultSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACzF,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAG3D,eAAO,MAAM,cAAc;kBACE,YAAY;;;;CAIxC,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;CAiB1B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AAEX,eAAO,MAAM,SAAS,yIAaZ,CAAC;AAGX,eAAO,MAAM,kBAAkB;;wBAGI,cAAc;sBACb,YAAY;;;;sBAnDnB,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuExC,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAA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EAAE;oBACJ,UAAU,EAAE,OAAO,CAAC;iBACvB,CAAC;aACL,CAAC;SACL,CAAC;KACL,CACJ,CAAC;IACF,UAAU,EAAE,GAAG,EAAE,CAAC;IAClB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC,CAAC"}
|
|
@@ -67,4 +67,94 @@ const SHARED_VIEW_CONFIG = {
|
|
|
67
67
|
},
|
|
68
68
|
footer: { showFooter: true },
|
|
69
69
|
},
|
|
70
|
-
};
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Comprehensive default settings to use when backend is down
|
|
73
|
+
* These ensure header, footer, and all UI components render properly
|
|
74
|
+
*/
|
|
75
|
+
const DEFAULT_SETTINGS = {
|
|
76
|
+
header: {
|
|
77
|
+
showHeader: true,
|
|
78
|
+
showMenu: false,
|
|
79
|
+
menuHeaderRender: true,
|
|
80
|
+
showLogo: true,
|
|
81
|
+
showSearchSlot: true,
|
|
82
|
+
showRightContent: true,
|
|
83
|
+
showMenuToggle: true,
|
|
84
|
+
showBackButton: true,
|
|
85
|
+
showPageTitle: true,
|
|
86
|
+
showActionButtons: true,
|
|
87
|
+
position: 'fixed',
|
|
88
|
+
height: '64px',
|
|
89
|
+
backgroundColor: 'inherit',
|
|
90
|
+
elevation: 2,
|
|
91
|
+
searchBarRender: true,
|
|
92
|
+
searchBarBehavior: SearchBarBehavior.PERMANENT,
|
|
93
|
+
searchBarOverlay: true,
|
|
94
|
+
scrollThreshold: 50,
|
|
95
|
+
},
|
|
96
|
+
footer: {
|
|
97
|
+
showFooter: true,
|
|
98
|
+
},
|
|
99
|
+
loginThemeColor: 'blue',
|
|
100
|
+
loginFormPosition: 'center',
|
|
101
|
+
loginSocials: '{"Google":true,"Apple":true,"Facebook":true}',
|
|
102
|
+
loginBackgroundImage: null,
|
|
103
|
+
verifyFormLayout: 'center',
|
|
104
|
+
verifyFormImageUrl: '',
|
|
105
|
+
verifyFormBackgroundStyle: 'color',
|
|
106
|
+
verifyFormVisibleFields: '["firstName","lastName","username","companyName","workEmail","phoneNumber","dateOfBirth"]',
|
|
107
|
+
verifyFormShowSkipButton: false,
|
|
108
|
+
organization: {
|
|
109
|
+
members: {
|
|
110
|
+
invitations: {
|
|
111
|
+
showEmailInvite: true,
|
|
112
|
+
showSmsInvite: true,
|
|
113
|
+
showQrCodeInvite: true,
|
|
114
|
+
showInviteLink: true,
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
logo: 'https://cdmbase.s3.ca-central-1.amazonaws.com/favicon-new-128.svg',
|
|
119
|
+
themeType: 'light',
|
|
120
|
+
theme: 'default',
|
|
121
|
+
navTheme: 'light',
|
|
122
|
+
primaryColor: '#1890ff',
|
|
123
|
+
colorPrimary: '#1677FF',
|
|
124
|
+
secondaryColor: '#4A5568',
|
|
125
|
+
layout: 'mix',
|
|
126
|
+
contentWidth: 'Fluid',
|
|
127
|
+
fixedHeader: true,
|
|
128
|
+
fixedSidebar: true,
|
|
129
|
+
colorWeak: false,
|
|
130
|
+
title: 'CDMBase LLC',
|
|
131
|
+
iconfontUrl: '',
|
|
132
|
+
showSettingPanel: true,
|
|
133
|
+
titleColor: '#2869E0',
|
|
134
|
+
language: 'en-US',
|
|
135
|
+
fontFamily: 'Poppins, sans-serif',
|
|
136
|
+
titleFontWeight: '700',
|
|
137
|
+
titleHeight: '30px',
|
|
138
|
+
titleFontSize: '1.8rem',
|
|
139
|
+
letterSpacings: '1px',
|
|
140
|
+
navigationMode: 'topbar',
|
|
141
|
+
sideMenuType: 'perplexLayout',
|
|
142
|
+
splitMenus: false,
|
|
143
|
+
upperMenuDividerName: 'Navigation',
|
|
144
|
+
middleMenuDividerName: 'Dashboard',
|
|
145
|
+
lowerMenuDividerName: 'Admin',
|
|
146
|
+
background: {
|
|
147
|
+
type: 'video',
|
|
148
|
+
color: 'inherit',
|
|
149
|
+
image: '',
|
|
150
|
+
video: 'https://d1tsi4dpgrrap2.cloudfront.net/_site/pubng-mountain-view-orig.webm',
|
|
151
|
+
videoThumbnail: 'https://d1tsi4dpgrrap2.cloudfront.net/_site/pubng-mountain-view.webp',
|
|
152
|
+
},
|
|
153
|
+
components: [],
|
|
154
|
+
hiddenMenuKeys: [],
|
|
155
|
+
hiddenMenuCategories: [],
|
|
156
|
+
activeComponent: null,
|
|
157
|
+
siderBgColor: '#000000',
|
|
158
|
+
headerBgColor: '#000000',
|
|
159
|
+
textColor: '#a19c9c',
|
|
160
|
+
};export{AMENITIES,DEFAULT_HEADER,DEFAULT_LAYOUT,DEFAULT_SETTINGS,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;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
|
+
{"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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAwBE,UAAA,EAAA,IAAA;AAEF,QAAA,QAAA,EAAA,KAAA;;;AAGG,QAAA,cAAA,EAAA,IAAA;AACH,QAAA,gBAAa,EAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
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{safeLocalStorage}from'./utils/storage.js';export{getStorageMode,isSpaMode,settingsStorage}from'./utils/settingsStorage.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
|
|
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{safeLocalStorage}from'./utils/storage.js';export{getStorageMode,isSpaMode,settingsStorage}from'./utils/settingsStorage.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,DEFAULT_SETTINGS,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{safeLocalStorage}from'./utils/storage.js';export{getStorageMode,isSpaMode,settingsStorage}from'./utils/settingsStorage.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
|
|
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{safeLocalStorage}from'./utils/storage.js';export{getStorageMode,isSpaMode,settingsStorage}from'./utils/settingsStorage.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,DEFAULT_SETTINGS,SEARCH_TYPES,SHARED_VIEW_CONFIG}from'./config/defaultSettings.js';//# sourceMappingURL=index.native.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {DISMISS_APPLICATION_ERROR,RESTORE_APPLICATION_ERRORS,LOG_APPLICATION_ERROR}from'../../constants/error.js';const setApplicationError = (payload) => {
|
|
2
2
|
return ({
|
|
3
3
|
type: LOG_APPLICATION_ERROR,
|
|
4
4
|
payload,
|
package/lib/redux/hooks.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {useDispatch
|
|
1
|
+
import {useSelector,useDispatch}from'react-redux';/* eslint-disable @typescript-eslint/no-restricted-imports */
|
|
2
2
|
// Use throughout app instead of plain `useDispatch` and `useSelector`
|
|
3
3
|
// export const useAppDispatch = () => useDispatch<AppDispatch>();
|
|
4
4
|
const useAppDispatch = () => useDispatch();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seperatedMenus.test.d.ts","sourceRoot":"","sources":["../../src/utils/seperatedMenus.test.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@admin-layout/client",
|
|
3
|
-
"version": "12.2.4-alpha.
|
|
3
|
+
"version": "12.2.4-alpha.67",
|
|
4
4
|
"description": "Sample client for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"serialize-error": "^8.0.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"common": "12.2.4-alpha.
|
|
29
|
+
"common": "12.2.4-alpha.67",
|
|
30
30
|
"rc-menu": "^9.16.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
+
"gitHead": "0c533449fa9f8434fec542020899b51bff506a9b",
|
|
44
45
|
"typescript": {
|
|
45
46
|
"definition": "lib/index.d.ts"
|
|
46
|
-
}
|
|
47
|
-
"gitHead": "ea9378bac8a406983554066b5e79c2df377f58e9"
|
|
47
|
+
}
|
|
48
48
|
}
|