mgtypes 1.0.30 → 1.0.32

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.30",
3
+ "version": "1.0.32",
4
4
  "description": "types for mg development",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -227,6 +227,16 @@ interface mgFontTextStyle {
227
227
 
228
228
  /**
229
229
  * Configs for all the app's font styles
230
+ *
231
+ * @property labelSmall: bottom navigation buttons, map label marker ("ZOOM IN"), other small-font instructions/labels
232
+ * @property labelMedium: text for feed notification, map filter container switch, map label marker (title), RSVP time info, other medium-font instructions/labels
233
+ * @property labelLarge: standard button texts, loading modal, accordion titles
234
+ * @property bodyMedium: standard card, avatar and modal text
235
+ * @property bodyLarge: card primary text
236
+ * @property displaySmall: page titles (eg, "Lists", "Options")
237
+ * @property displayMedium: app name in login screen
238
+ * @property headlineSmall: nothing at the moment
239
+ * @property default: fallback
230
240
  */
231
241
  export interface mgFontsConfig {
232
242
  labelLarge: mgFontTextStyle;
@@ -274,9 +284,12 @@ interface mgProfileConfig {
274
284
  interface mgPermissionsProfile {
275
285
  CONTENT_CREATION: {
276
286
  comment: boolean;
277
- // whether a guest/user can take a photo versus
278
- // use one from their library
279
- photo: { camera: boolean; library: boolean };
287
+ photo: {
288
+ image: boolean; // can user add an image in the photo post
289
+ video: boolean; // can user add a video in the video post
290
+ fromLibrary: boolean; // can user access that media from their library
291
+ fromCamera: boolean; // can user create that media from their camera
292
+ };
280
293
  pin:
281
294
  | {
282
295
  [key: string]: string[];
@@ -289,19 +302,49 @@ interface mgPermissionsProfile {
289
302
  | false;
290
303
  route: boolean;
291
304
  };
292
- VISIBLE_FEED_TABS: {
305
+ ENABLED_FEED_TABS: {
293
306
  main: boolean;
307
+ user: boolean;
294
308
  archive: boolean;
295
- mine: boolean;
296
309
  friends: boolean;
297
310
  };
298
- CAN_HAVE_FRIENDS: boolean;
299
- CAN_SHARE_LOCATION: boolean;
300
- CAN_SHARE_CONTENT: boolean;
301
- CAN_SAVE_CONTENT: boolean;
302
- CAN_VOTE: boolean;
303
- CAN_ADD_TO_THREAD: boolean;
304
- CAN_EMBED_CONTENT_IN_THREAD: boolean;
311
+ // ARE THESE PERMISSIONS NEEDED FOR THE USER'S
312
+ // VERSION OF THE APP? IF SO, THEY APPEAR IN SETTINGS
313
+ NATIVE_PERMISSIONS: {
314
+ LOCATION_FOREGROUND: boolean;
315
+ LOCATION_BACKGROUND: boolean;
316
+ PHOTO: boolean;
317
+ CAMERA: boolean;
318
+ MICROPHONE: boolean;
319
+ CONTACTS: boolean;
320
+ };
321
+ FEATURES: {
322
+ CAN_HAVE_FRIENDS: boolean;
323
+ CAN_ACCESS_CONTACTS: boolean;
324
+ CAN_SHARE_CONTENT: boolean;
325
+ CAN_SAVE_CONTENT: boolean;
326
+ CAN_VOTE: boolean;
327
+ CAN_ADD_TO_THREAD: boolean;
328
+ CAN_EMBED_IN_THREAD: boolean;
329
+ };
330
+ LOCATION: {
331
+ SHOW_LOCATION: { canToggle: boolean; default: boolean }; // blue dot
332
+ SHOW_DISTANCE_FROM_PINS: { canToggle: boolean; default: boolean };
333
+ // user coordinate are sent to server
334
+ LOCATION_TARGETED_CONTENT: { canToggle: boolean; default: boolean };
335
+ // shares location with friends when using the app
336
+ FRIENDS_LOCATION_SHARING_FOREGROUND: {
337
+ canToggle: boolean;
338
+ default: boolean;
339
+ };
340
+ // shares location with friends when not using the app
341
+ FRIENDS_LOCATION_SHARING_BACKGROUND: {
342
+ canToggle: boolean;
343
+ default: boolean;
344
+ };
345
+ // requires both foreground and background location tracking
346
+ EMERGENCY_LOCATION_SHARING: { canToggle: boolean; default: boolean };
347
+ };
305
348
  }
306
349
 
307
350
  /**
@@ -312,7 +355,7 @@ interface mgPermissionsProfile {
312
355
  * @param pins one of this property's internal properties can be 'all', which will filter all pins
313
356
  * @param plans same as above
314
357
  */
315
- interface mgMapFiltersProfile {
358
+ export interface mgMapFiltersProfile {
316
359
  pins?: { [key: string]: mgMapFilter };
317
360
  plans?: { [key: string]: mgMapFilter };
318
361
  people?: {