mgtypes 1.0.82 → 1.0.83
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/package.json
CHANGED
package/types/Admin.ts
CHANGED
|
@@ -6,10 +6,10 @@ interface mgAdminUser {}
|
|
|
6
6
|
interface mgAdminUserRole {}
|
|
7
7
|
|
|
8
8
|
export enum mgAdminRoleTitle {
|
|
9
|
-
ADMINISTRATOR = '
|
|
10
|
-
EDITOR = '
|
|
11
|
-
CONTRIBUTOR = '
|
|
12
|
-
DESIGNER = '
|
|
9
|
+
ADMINISTRATOR = 'administrator', // FULL
|
|
10
|
+
EDITOR = 'editor', // USERS, CONTENT
|
|
11
|
+
CONTRIBUTOR = 'contributor', // CONTENT
|
|
12
|
+
DESIGNER = 'designer', // STYLES, THEME, MAP
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export interface mgAdminRoleProfile {
|
|
@@ -81,8 +81,8 @@ export enum mgNavButton {
|
|
|
81
81
|
*/
|
|
82
82
|
export interface mgNavigationConfig {
|
|
83
83
|
bottomNavButtons: {
|
|
84
|
-
primary:
|
|
85
|
-
secondary:
|
|
84
|
+
primary: ('feed'|'map'|'create'|'list'|'calendar'|'help'|'settings')[];
|
|
85
|
+
secondary: ('feed'|'map'|'create'|'list'|'calendar'|'help'|'settings')[];
|
|
86
86
|
};
|
|
87
87
|
homePage: 'Settings' | 'Map' | 'Feed' | 'Calendar' | 'Lists';
|
|
88
88
|
}
|
|
@@ -171,15 +171,29 @@ export interface mgAuthenticationConfig {
|
|
|
171
171
|
// ** COLORS **
|
|
172
172
|
/**
|
|
173
173
|
* Configs based on React Native Paper color assignments w/ some extras
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
174
|
+
*
|
|
175
|
+
* @property surfaceVariant: backgrounds for icon button, custom chips,
|
|
176
|
+
* mock components, admin secondary surfaces
|
|
177
177
|
* @property onSurfaceVariant: only contrasts with surfaceVariant in the
|
|
178
178
|
* form of selected/unselected buttons that invert colors
|
|
179
|
-
* @property surface: card backgrounds,
|
|
180
|
-
*
|
|
179
|
+
* @property surface: card backgrounds, unselected nav button backgrounds,
|
|
180
|
+
*
|
|
181
|
+
*
|
|
182
|
+
* @property primary: backgrounds for selected nav and feed selection buttons;
|
|
183
|
+
* not sorted out for gradient backgrounds on these buttons
|
|
181
184
|
* @property primaryContainer: bottom nav, search bar container on map and feed,
|
|
182
|
-
* @property primaryContainerGradient: slightly darker
|
|
185
|
+
* @property primaryContainerGradient: used with and slightly darker
|
|
186
|
+
* than primaryContainer
|
|
187
|
+
*
|
|
188
|
+
*
|
|
189
|
+
* @property secondaryContainer: feed notification background,
|
|
190
|
+
* sticky when in search mode,
|
|
191
|
+
* @property secondaryContainerGradient: used with and slightly darker
|
|
192
|
+
* than secondaryContainer
|
|
193
|
+
*
|
|
194
|
+
*
|
|
195
|
+
*
|
|
196
|
+
* @property tertiaryContainerGradient: slightly darker than tertiaryContainer
|
|
183
197
|
*/
|
|
184
198
|
export interface mgColorsConfig {
|
|
185
199
|
// NEW ONES
|
|
@@ -11,11 +11,11 @@ export interface mgMapComponentConfig{
|
|
|
11
11
|
mapIconButtonSize:number;
|
|
12
12
|
}
|
|
13
13
|
export interface mgAuthenticationComponentConfig {
|
|
14
|
-
|
|
14
|
+
THIS_INTERFACE_HAS_NO_PROPERTIES: undefined;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export interface mgFeedComponentConfig {
|
|
18
|
-
HEADER: { height: number;
|
|
18
|
+
HEADER: { height: number; graphicPadding:{top:number, right:number, bottom:number, left:number} };
|
|
19
19
|
NOTIFICATION: {
|
|
20
20
|
height: number;
|
|
21
21
|
fallbackText: string; // what's displayed if server doesn't work
|