mgtypes 1.0.82 → 1.0.84

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mgtypes",
3
- "version": "1.0.82",
3
+ "version": "1.0.84",
4
4
  "description": "types for mg development",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/types/Admin.ts CHANGED
@@ -6,10 +6,10 @@ interface mgAdminUser {}
6
6
  interface mgAdminUserRole {}
7
7
 
8
8
  export enum mgAdminRoleTitle {
9
- ADMINISTRATOR = 'ADMINISTRATOR', // FULL
10
- EDITOR = 'EDITOR', // USERS, CONTENT
11
- CONTRIBUTOR = 'CONTRIBUTOR', // CONTENT
12
- DESIGNER = 'DESIGNER', // STYLES, THEME, MAP
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 {
@@ -26,14 +26,14 @@ export interface mgMapConfig {
26
26
  MAP_BILLBOARDS: mgMapBillboards;
27
27
  MAP_STYLE_URL: string;
28
28
  DEFAULT_MAP_BOUNDARIES: { latitude: number; longitude: number }[];
29
- EVENT_CENTER_COORDINATES: {latitude: number, longitude:number}
29
+ EVENT_CENTER_COORDINATES: { latitude: number; longitude: number };
30
30
  }
31
31
 
32
32
  /**
33
33
  * Configs for feed
34
34
  */
35
35
  export interface mgFeedConfig {
36
- SHOW_NETWORK_INDICATOR: boolean; // TODO: delete, not used, just have a popup when network fails
36
+ THIS_INTERFACE_HAS_NO_PROPERTIES: undefined;
37
37
  }
38
38
 
39
39
  /**
@@ -80,11 +80,7 @@ export enum mgNavButton {
80
80
  * @property bottomNavButtons.secondary: buttons that show in 'MORE' menu
81
81
  */
82
82
  export interface mgNavigationConfig {
83
- bottomNavButtons: {
84
- primary: mgNavButton[];
85
- secondary: mgNavButton[];
86
- };
87
- homePage: 'Settings' | 'Map' | 'Feed' | 'Calendar' | 'Lists';
83
+ THIS_INTERFACE_HAS_NO_PROPERTIES: undefined;
88
84
  }
89
85
 
90
86
  /**
@@ -92,8 +88,8 @@ export interface mgNavigationConfig {
92
88
  */
93
89
  export interface mgFeaturesConfig {
94
90
  IS_CONTENT_THREADED: boolean;
95
- VOTING_MODE: 'none' | 'up only' | 'up and down'
96
- SHOW_CONTENT_CREATION_DATE: boolean
91
+ VOTING_MODE: 'none' | 'up only' | 'up and down';
92
+ SHOW_CONTENT_CREATION_DATE: boolean;
97
93
  }
98
94
 
99
95
  /**
@@ -171,15 +167,29 @@ export interface mgAuthenticationConfig {
171
167
  // ** COLORS **
172
168
  /**
173
169
  * Configs based on React Native Paper color assignments w/ some extras
174
- * @property surfaceVariant: ICON BUTTON, "Show map" chip in cards, admin chips,
175
- * "Loading" components admin secondary surfaces, unselected button
176
- * or option in most cases,
170
+ *
171
+ * @property surfaceVariant: backgrounds for icon button, custom chips,
172
+ * mock components, admin secondary surfaces
177
173
  * @property onSurfaceVariant: only contrasts with surfaceVariant in the
178
174
  * form of selected/unselected buttons that invert colors
179
- * @property surface: card backgrounds,
180
- * @property background: background, indeed
175
+ * @property surface: card backgrounds, unselected nav button backgrounds,
176
+ *
177
+ *
178
+ * @property primary: backgrounds for selected nav and feed selection buttons;
179
+ * not sorted out for gradient backgrounds on these buttons
181
180
  * @property primaryContainer: bottom nav, search bar container on map and feed,
182
- * @property primaryContainerGradient: slightly darker than primaryContainer
181
+ * @property primaryContainerGradient: used with and slightly darker
182
+ * than primaryContainer
183
+ *
184
+ *
185
+ * @property secondaryContainer: feed notification background,
186
+ * sticky when in search mode,
187
+ * @property secondaryContainerGradient: used with and slightly darker
188
+ * than secondaryContainer
189
+ *
190
+ *
191
+ *
192
+ * @property tertiaryContainerGradient: slightly darker than tertiaryContainer
183
193
  */
184
194
  export interface mgColorsConfig {
185
195
  // NEW ONES
@@ -187,7 +197,7 @@ export interface mgColorsConfig {
187
197
  lightNeutral: string;
188
198
  darkNeutral: string;
189
199
  dark: string;
190
- sunkSurface:string;
200
+ sunkSurface: string;
191
201
  success: string;
192
202
  warning: string;
193
203
  locationPuck: string;
@@ -7,15 +7,23 @@ export interface mgComponentConfiguration {
7
7
  other: mgOtherComponentConfig;
8
8
  }
9
9
 
10
- export interface mgMapComponentConfig{
11
- mapIconButtonSize:number;
10
+ export interface mgMapComponentConfig {
11
+ mapIconButtonSize: number;
12
12
  }
13
13
  export interface mgAuthenticationComponentConfig {
14
- TOP_VIEW: ReactElement;
14
+ THIS_INTERFACE_HAS_NO_PROPERTIES: undefined;
15
15
  }
16
16
 
17
17
  export interface mgFeedComponentConfig {
18
- HEADER: { height: number; OVERLAY: ReactElement };
18
+ HEADER: {
19
+ height: number;
20
+ graphicPadding: {
21
+ top: number;
22
+ right: number;
23
+ bottom: number;
24
+ left: number;
25
+ };
26
+ };
19
27
  NOTIFICATION: {
20
28
  height: number;
21
29
  fallbackText: string; // what's displayed if server doesn't work
@@ -42,5 +50,26 @@ export interface mgOtherComponentConfig {
42
50
  buttonSize: number;
43
51
  height: number;
44
52
  iconSize: number;
53
+ buttons: {
54
+ primary: (
55
+ | 'feed'
56
+ | 'map'
57
+ | 'create'
58
+ | 'list'
59
+ | 'calendar'
60
+ | 'help'
61
+ | 'settings'
62
+ )[];
63
+ secondary: (
64
+ | 'feed'
65
+ | 'map'
66
+ | 'create'
67
+ | 'list'
68
+ | 'calendar'
69
+ | 'help'
70
+ | 'settings'
71
+ )[];
72
+ };
73
+ homePage: 'Settings' | 'Map' | 'Feed' | 'Calendar' | 'Lists';
45
74
  };
46
75
  }