mgtypes 1.0.84 → 1.0.85
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
|
@@ -4,19 +4,29 @@ import { mgMapBillboards } from '../Content';
|
|
|
4
4
|
* Mother Config object
|
|
5
5
|
*/
|
|
6
6
|
export interface mgClientConfiguration {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
7
|
+
SPECS: mgSpecsConfig;
|
|
8
|
+
COLORS: mgColorsConfig;
|
|
9
|
+
FONTS: mgFontsConfig;
|
|
10
|
+
STYLES: mgStylesConfig;
|
|
11
|
+
FEATURES: mgFeaturesConfig;
|
|
12
|
+
MAP: mgMapConfig;
|
|
13
|
+
PROFILES: mgProfilesConfig;
|
|
14
|
+
CONTENT: mgContentConfig;
|
|
15
|
+
PLACEHOLDERS: mgPlaceholdersConfig;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface mgPlaceholdersConfig {
|
|
19
|
+
networkFailureMessage: string;
|
|
20
|
+
FEED_NOTIFICATION: {
|
|
21
|
+
MAIN_TAB: {
|
|
22
|
+
searchMode: (numberOfHits: number) => string;
|
|
23
|
+
browseMode: string;
|
|
24
|
+
};
|
|
25
|
+
friendsTab: string;
|
|
26
|
+
archiveTab: string;
|
|
27
|
+
userTab: string;
|
|
28
|
+
};
|
|
29
|
+
stickySearchBar: string;
|
|
20
30
|
}
|
|
21
31
|
|
|
22
32
|
/**
|
|
@@ -24,41 +34,20 @@ export interface mgClientConfiguration {
|
|
|
24
34
|
*/
|
|
25
35
|
export interface mgMapConfig {
|
|
26
36
|
MAP_BILLBOARDS: mgMapBillboards;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Configs for feed
|
|
34
|
-
*/
|
|
35
|
-
export interface mgFeedConfig {
|
|
36
|
-
THIS_INTERFACE_HAS_NO_PROPERTIES: undefined;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Configs for lists
|
|
41
|
-
*/
|
|
42
|
-
export interface mgListsConfig {
|
|
43
|
-
THIS_INTERFACE_HAS_NO_PROPERTIES: undefined;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Configs for calendars
|
|
48
|
-
*/
|
|
49
|
-
export interface mgCalendarConfig {
|
|
50
|
-
THIS_INTERFACE_HAS_NO_PROPERTIES: undefined;
|
|
37
|
+
DEFAULT_MAP_BOUNDARIES: { latitude: number; longitude: number }[] | null;
|
|
38
|
+
EVENT_CENTER_COORDINATES: { latitude: number; longitude: number } | null;
|
|
39
|
+
mapStyleURL: string | null;
|
|
51
40
|
}
|
|
52
41
|
|
|
53
42
|
/**
|
|
54
43
|
* Configs for event dates, locations, names, map details and feed header
|
|
55
44
|
*/
|
|
56
45
|
export interface mgSpecsConfig {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
46
|
+
eventName: string;
|
|
47
|
+
appAlias: string;
|
|
48
|
+
presentingOrganization: string | null;
|
|
49
|
+
eventStartDateTime: string | null;
|
|
50
|
+
eventEndDateTime: string | null;
|
|
62
51
|
}
|
|
63
52
|
|
|
64
53
|
/**
|
|
@@ -74,22 +63,51 @@ export enum mgNavButton {
|
|
|
74
63
|
SETTINGS = 'settings',
|
|
75
64
|
}
|
|
76
65
|
|
|
77
|
-
/**
|
|
78
|
-
* Configs for nav, like bottom nav buttons
|
|
79
|
-
* @property bottomNavButtons.primary: buttons that show on bottom nav, listed in order they're displayed
|
|
80
|
-
* @property bottomNavButtons.secondary: buttons that show in 'MORE' menu
|
|
81
|
-
*/
|
|
82
|
-
export interface mgNavigationConfig {
|
|
83
|
-
THIS_INTERFACE_HAS_NO_PROPERTIES: undefined;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
66
|
/**
|
|
87
67
|
* Configs that dictate user interactivity
|
|
88
68
|
*/
|
|
89
69
|
export interface mgFeaturesConfig {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
70
|
+
CONTENT: {
|
|
71
|
+
isContentThreaded: boolean;
|
|
72
|
+
votingMode: 'none' | 'up only' | 'up and down';
|
|
73
|
+
showContentCreationDate: boolean;
|
|
74
|
+
};
|
|
75
|
+
PAGES: {
|
|
76
|
+
FEED: {
|
|
77
|
+
isEnabled: boolean;
|
|
78
|
+
};
|
|
79
|
+
MAP: {
|
|
80
|
+
isEnabled: boolean;
|
|
81
|
+
};
|
|
82
|
+
LISTS: {
|
|
83
|
+
isEnabled: boolean;
|
|
84
|
+
};
|
|
85
|
+
CALENDAR: {
|
|
86
|
+
isEnabled: boolean;
|
|
87
|
+
};
|
|
88
|
+
SETTINGS: {
|
|
89
|
+
isEnabled: boolean;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
NAV: {
|
|
93
|
+
homePage: 'settings' | 'map' | 'feed' | 'calendar' | 'lists';
|
|
94
|
+
primaryButtons: 'settings' | 'map' | 'feed' | 'calendar' | 'lists'[]; // | 'create' | 'help'
|
|
95
|
+
secondaryButtons: 'settings' | 'map' | 'feed' | 'calendar' | 'lists'[]; // | 'create' | 'help'
|
|
96
|
+
};
|
|
97
|
+
AUTH: {
|
|
98
|
+
userAuthMode: 'guest only' | 'account only' | 'guest or account';
|
|
99
|
+
AUTH_PAGE: {
|
|
100
|
+
displayMode: 'never' | 'interval' | 'always';
|
|
101
|
+
interval:
|
|
102
|
+
| null
|
|
103
|
+
| '10 minutes'
|
|
104
|
+
| '30 minutes'
|
|
105
|
+
| '1 hour'
|
|
106
|
+
| '1 day'
|
|
107
|
+
| '1 week'
|
|
108
|
+
| '1 month';
|
|
109
|
+
};
|
|
110
|
+
};
|
|
93
111
|
}
|
|
94
112
|
|
|
95
113
|
/**
|
|
@@ -103,7 +121,7 @@ export interface mgFeaturesConfig {
|
|
|
103
121
|
*
|
|
104
122
|
*/
|
|
105
123
|
export interface mgContentConfig {
|
|
106
|
-
|
|
124
|
+
tags: string[];
|
|
107
125
|
PINS: {
|
|
108
126
|
art?: string[]; // painting, sculpture, etc... same as "plans-art"
|
|
109
127
|
default: ['pin'];
|
|
@@ -148,22 +166,6 @@ export interface mgContentConfig {
|
|
|
148
166
|
EMERGENCIES?: ('mental health' | 'security' | 'fire' | 'medical')[];
|
|
149
167
|
}
|
|
150
168
|
|
|
151
|
-
// ** AUTH **
|
|
152
|
-
export interface mgAuthenticationConfig {
|
|
153
|
-
USER_AUTH_MODE: 'guest only' | 'account only' | 'guest or account';
|
|
154
|
-
AUTH_PAGE: {
|
|
155
|
-
DISPLAY_MODE: 'never' | 'interval' | 'always';
|
|
156
|
-
INTERVAL:
|
|
157
|
-
| null
|
|
158
|
-
| '10 minutes'
|
|
159
|
-
| '30 minutes'
|
|
160
|
-
| '1 hour'
|
|
161
|
-
| '1 day'
|
|
162
|
-
| '1 week'
|
|
163
|
-
| '1 month';
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
|
|
167
169
|
// ** COLORS **
|
|
168
170
|
/**
|
|
169
171
|
* Configs based on React Native Paper color assignments w/ some extras
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// COMPONENT DIMENSIONS
|
|
2
|
+
// VALUES ARE NUMBER ONLY!
|
|
3
3
|
export interface mgComponentConfiguration {
|
|
4
4
|
authentication: mgAuthenticationComponentConfig;
|
|
5
5
|
feed: mgFeedComponentConfig;
|
|
@@ -26,14 +26,13 @@ export interface mgFeedComponentConfig {
|
|
|
26
26
|
};
|
|
27
27
|
NOTIFICATION: {
|
|
28
28
|
height: number;
|
|
29
|
-
fallbackText: string; // what's displayed if server doesn't work
|
|
30
29
|
};
|
|
31
30
|
}
|
|
32
31
|
|
|
33
32
|
export interface mgOtherComponentConfig {
|
|
34
33
|
STICKY: {
|
|
35
34
|
height: number;
|
|
36
|
-
SEARCH_BAR: { fontSize: number; height: number;
|
|
35
|
+
SEARCH_BAR: { fontSize: number; height: number; };
|
|
37
36
|
BOTTOM: { height: number };
|
|
38
37
|
};
|
|
39
38
|
CARD: {
|
|
@@ -50,26 +49,5 @@ export interface mgOtherComponentConfig {
|
|
|
50
49
|
buttonSize: number;
|
|
51
50
|
height: number;
|
|
52
51
|
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';
|
|
74
52
|
};
|
|
75
53
|
}
|