mgtypes 1.0.70 → 1.0.72
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/Content.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { mgVote } from './Vote';
|
|
|
4
4
|
import { mgEmergency } from './Emergency';
|
|
5
5
|
import { Position } from 'geojson';
|
|
6
6
|
|
|
7
|
-
|
|
8
7
|
export interface mgPost {
|
|
9
8
|
content: mgContent;
|
|
10
9
|
contentable: mgContentable;
|
|
@@ -76,7 +75,7 @@ export interface mgContentable {
|
|
|
76
75
|
updatedAt: string;
|
|
77
76
|
|
|
78
77
|
// Pins, plans, routes & photos
|
|
79
|
-
|
|
78
|
+
mediaURL?: string;
|
|
80
79
|
|
|
81
80
|
// Pins
|
|
82
81
|
pinCategory?: string;
|
|
@@ -104,7 +103,7 @@ export interface mgContentable {
|
|
|
104
103
|
|
|
105
104
|
// Routes
|
|
106
105
|
routeCategory?: string;
|
|
107
|
-
routeType?:string;
|
|
106
|
+
routeType?: string;
|
|
108
107
|
distance?: string;
|
|
109
108
|
color?: string;
|
|
110
109
|
coordinates?: Position[];
|
|
@@ -161,7 +160,7 @@ export interface mgPin {
|
|
|
161
160
|
// TODO:type CHANGE TO KEY AND BUCKET
|
|
162
161
|
// WHICH ARE NEEDED FOR createPresignedUrlWothClient
|
|
163
162
|
// KEY IS ROUTE + FILENAME
|
|
164
|
-
|
|
163
|
+
mediaURL?: string; // only available after post is created (ie, this is not added by the user)
|
|
165
164
|
primaryText: string;
|
|
166
165
|
secondaryText: string;
|
|
167
166
|
latitude?: number | string | null; // should be a number but is coming back from db as a string for some reason
|
|
@@ -179,6 +178,7 @@ export interface mgPlan {
|
|
|
179
178
|
planType: string;
|
|
180
179
|
primaryText: string;
|
|
181
180
|
secondaryText: string;
|
|
181
|
+
mediaURL: string;
|
|
182
182
|
address?: string;
|
|
183
183
|
startDateTime?: string | Date;
|
|
184
184
|
endDateTime?: string | Date;
|
|
@@ -202,7 +202,7 @@ export interface mgComment {
|
|
|
202
202
|
export interface mgPhoto {
|
|
203
203
|
id: number | null; // will not have id when creating
|
|
204
204
|
primaryText: string;
|
|
205
|
-
|
|
205
|
+
mediaURL?: string;
|
|
206
206
|
createdAt: string;
|
|
207
207
|
updatedAt: string;
|
|
208
208
|
}
|
|
@@ -211,7 +211,7 @@ export interface mgRoute {
|
|
|
211
211
|
routeCategory: string;
|
|
212
212
|
primaryText: string;
|
|
213
213
|
secondaryText: string;
|
|
214
|
-
|
|
214
|
+
mediaURL?: string;
|
|
215
215
|
color: string;
|
|
216
216
|
coordinates: Position[];
|
|
217
217
|
startDateTime: string;
|
|
@@ -238,4 +238,3 @@ export interface mgMapBillboards {
|
|
|
238
238
|
zoomThresholds: number[];
|
|
239
239
|
billboards: mgMapBillboard[][];
|
|
240
240
|
}
|
|
241
|
-
|
|
@@ -252,7 +252,7 @@ interface mgFontTextStyle {
|
|
|
252
252
|
*
|
|
253
253
|
* @property labelSmall: bottom navigation buttons, map label marker ("ZOOM IN"), other small-font instructions/labels
|
|
254
254
|
* @property labelMedium: map filter container switch, map label marker (title), RSVP time info and check text, Custom Chip
|
|
255
|
-
* @property labelLarge: standard button texts, loading modal, accordion titles
|
|
255
|
+
* @property labelLarge: standard & segmented button texts, loading modal, accordion titles,
|
|
256
256
|
* @property bodySmall: smallest normal text. Still needs to be legible.
|
|
257
257
|
* @property bodyMedium: avatar and modal text, card primary text,
|
|
258
258
|
* @property bodyLarge: TextInput, some accessory text (on splash)
|
|
@@ -425,6 +425,9 @@ export interface mgMapFiltersProfile {
|
|
|
425
425
|
|
|
426
426
|
/**
|
|
427
427
|
* Configs to display a map filter
|
|
428
|
+
*
|
|
429
|
+
* allows configuration of filters by contentFamily,
|
|
430
|
+
* category and subtype
|
|
428
431
|
*/
|
|
429
432
|
export interface mgMapFilter {
|
|
430
433
|
contentToFilter?: {
|
|
@@ -11,16 +11,19 @@ export interface mgAuthenticationComponentConfig {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export interface mgFeedComponentConfig {
|
|
14
|
-
STICKY: { height: number };
|
|
15
14
|
HEADER: { height: number; OVERLAY: ReactElement };
|
|
16
|
-
NOTIFICATION: {height: number
|
|
15
|
+
NOTIFICATION: { height: number };
|
|
17
16
|
}
|
|
18
17
|
|
|
19
18
|
export interface mgOtherComponentConfig {
|
|
20
|
-
|
|
19
|
+
STICKY: {
|
|
20
|
+
height: number;
|
|
21
|
+
SEARCH_BAR: { placeholder: string; fontSize: number; height: number };
|
|
22
|
+
BOTTOM: { height: number };
|
|
23
|
+
};
|
|
21
24
|
CARD: {
|
|
22
|
-
actionButtonSize: number
|
|
23
|
-
avatarImageSize: number
|
|
24
|
-
avatarIconSize: number
|
|
25
|
-
}
|
|
25
|
+
actionButtonSize: number;
|
|
26
|
+
avatarImageSize: number;
|
|
27
|
+
avatarIconSize: number;
|
|
28
|
+
};
|
|
26
29
|
}
|