mgtypes 1.0.77 → 1.0.79

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.77",
3
+ "version": "1.0.79",
4
4
  "description": "types for mg development",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -26,13 +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
30
  }
30
31
 
31
32
  /**
32
33
  * Configs for feed
33
34
  */
34
35
  export interface mgFeedConfig {
35
- SHOW_NETWORK_INDICATOR: boolean;
36
+ SHOW_NETWORK_INDICATOR: boolean; // TODO: delete, not used, just have a popup when network fails
36
37
  }
37
38
 
38
39
  /**
@@ -54,11 +55,10 @@ export interface mgCalendarConfig {
54
55
  */
55
56
  export interface mgSpecsConfig {
56
57
  EVENT_NAME: string;
57
- EVENT_START_DATETIME: string;
58
- EVENT_END_DATETIME: string;
59
- EVENT_LONGITUDE: string;
60
- EVENT_LATITUDE: string;
61
58
  APP_ALIAS: string;
59
+ PRESENTING_ORGANIZATION: string | null;
60
+ EVENT_START_DATETIME: string | null;
61
+ EVENT_END_DATETIME: string | null;
62
62
  }
63
63
 
64
64
  /**
@@ -210,6 +210,7 @@ export interface mgColorsConfig {
210
210
  onTertiary: string;
211
211
  tertiaryContainer: string;
212
212
  onTertiaryContainer: string;
213
+
213
214
  error: string;
214
215
  onError: string;
215
216
  errorContainer: string;
@@ -254,27 +255,40 @@ interface mgFontTextStyle {
254
255
  /**
255
256
  * Configs for all the app's font styles
256
257
  *
257
- * @property labelSmall: bottom navigation buttons, map label marker ("ZOOM IN"), other small-font instructions/labels
258
- * @property labelMedium: map filter container switch, map label marker (title), RSVP time info and check text, Custom Chip
259
- * @property labelLarge: standard & segmented button texts, loading modal, accordion titles, help modal, confirm action snackbar title
260
- * @property bodySmall: smallest normal text. Still needs to be legible.
261
- * @property bodyMedium: avatar and modal text, card primary text,
258
+ * @property displayMedium: Nothing, could be back up for app title on splash/login
259
+ * @property displaySmall: permission/loading modal text
260
+ *
261
+ * @property titleMedium: page titles
262
+ * @property titleSmall: modal titles
263
+ *
264
+ * @property labelLarge: BUTTONS, segmented buttons
265
+ * accordion titles, help modal, confirm action snackbar title
266
+ * @property labelMedium: Billboard title,
267
+ * @property labelSmall: bottom navigation buttons,
268
+ * Billboard "ZOOM IN", custom chip,
269
+ * other small-font instructions/labels,
270
+ *
262
271
  * @property bodyLarge: TextInput, some accessory text (on splash)
263
- * @property displaySmall: page titles (eg, "Lists", "Options")
264
- * @property displayMedium: app name in login screen
265
- * @property headlineSmall: nothing at the moment
272
+ * @property bodyMedium: avatar and modal text, card primary text,
273
+ * @property bodySmall: smallest normal text. Still needs to be legible.
274
+ *
266
275
  * @property default: fallback
267
276
  */
268
277
  export interface mgFontsConfig {
278
+ displayMedium: mgFontTextStyle;
279
+ displaySmall: mgFontTextStyle;
280
+
281
+ titleMedium: mgFontTextStyle;
282
+ titleSmall: mgFontTextStyle;
283
+
269
284
  labelLarge: mgFontTextStyle;
270
285
  labelMedium: mgFontTextStyle;
271
286
  labelSmall: mgFontTextStyle;
287
+
272
288
  bodyLarge: mgFontTextStyle;
273
289
  bodyMedium: mgFontTextStyle;
274
290
  bodySmall: mgFontTextStyle;
275
- displayMedium: mgFontTextStyle;
276
- displaySmall: mgFontTextStyle;
277
- headlineSmall: mgFontTextStyle;
291
+
278
292
  default: mgFontTextStyle;
279
293
  }
280
294
 
@@ -26,8 +26,16 @@ export interface mgOtherComponentConfig {
26
26
  };
27
27
  CARD: {
28
28
  mediaHeight: number;
29
- actionButtonIconSize: number;
29
+ voteButtonIconSize: number;
30
30
  avatarImageSize: number;
31
- avatarIconSize: number;
32
31
  };
32
+ CUSTOM_CHIP: {
33
+ iconSize:number;
34
+ height:number;
35
+ };
36
+ BOTTOM_NAV: {
37
+ buttonSize: number;
38
+ iconSize: number;
39
+ height: number;
40
+ }
33
41
  }