@openeventkit/event-site 2.0.56 → 2.0.58
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 +1 -1
- package/src/cms/config/collections/configurationsCollection/siteSettings/index.js +7 -1
- package/src/cms/config/collections/configurationsCollection/siteSettings/typeDefs.js +1 -0
- package/src/cms/config/index.js +4 -0
- package/src/components/AttendeeToAttendeeWidgetComponent.js +13 -3
- package/src/content/site-settings/index.json +1 -1
- package/src/content/sponsors.json +1 -1
- package/src/reducers/all-schedules-reducer.js +3 -2
- package/src/utils/useSiteSettings.js +1 -0
package/package.json
CHANGED
|
@@ -75,6 +75,12 @@ const siteSettings = {
|
|
|
75
75
|
label: "Chat",
|
|
76
76
|
name: "chat",
|
|
77
77
|
fields: [
|
|
78
|
+
booleanField({
|
|
79
|
+
label: "Enabled?",
|
|
80
|
+
name: "enabled",
|
|
81
|
+
required: true,
|
|
82
|
+
default: true
|
|
83
|
+
}),
|
|
78
84
|
booleanField({
|
|
79
85
|
label: "Show QA",
|
|
80
86
|
name: "showQA",
|
|
@@ -125,7 +131,7 @@ const siteSettings = {
|
|
|
125
131
|
textField({
|
|
126
132
|
label: "Font Name",
|
|
127
133
|
name: "fontFamily",
|
|
128
|
-
required:
|
|
134
|
+
required: false,
|
|
129
135
|
default: "Nunito Sans"
|
|
130
136
|
}),
|
|
131
137
|
objectField({
|
package/src/cms/config/index.js
CHANGED
|
@@ -32,7 +32,7 @@ const sbAuthProps = {
|
|
|
32
32
|
|
|
33
33
|
const adminGroups = ["administrators", "super-admins"];
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
const AttendeesWidgetComponent = ({ user, event, chatSettings }) => {
|
|
36
36
|
const [loading, setLoading] = useState(true);
|
|
37
37
|
|
|
38
38
|
//Deep linking support
|
|
@@ -163,6 +163,8 @@ export const AttendeesWidget = ({ user, event, chatSettings }) => {
|
|
|
163
163
|
...sbAuthProps,
|
|
164
164
|
};
|
|
165
165
|
|
|
166
|
+
if (!chatSettings?.enabled) return null;
|
|
167
|
+
|
|
166
168
|
return (
|
|
167
169
|
<div style={{ margin: "20px auto", position: "relative" }}>
|
|
168
170
|
<Sentry.ErrorBoundary fallback={SentryFallbackFunction({componentName: 'Attendee To Attendee'})}>
|
|
@@ -175,7 +177,13 @@ export const AttendeesWidget = ({ user, event, chatSettings }) => {
|
|
|
175
177
|
);
|
|
176
178
|
};
|
|
177
179
|
|
|
178
|
-
const
|
|
180
|
+
const mapState = ({ settingState }) => ({
|
|
181
|
+
chatSettings: settingState.widgets.chat,
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
export const AttendeesWidget = connect(mapState)(AttendeesWidgetComponent);
|
|
185
|
+
|
|
186
|
+
const AccessTracker = ({ user, isLoggedUser, summitPhase, chatSettings }) => {
|
|
179
187
|
const trackerRef = useRef();
|
|
180
188
|
|
|
181
189
|
const handleLogout = useCallback(() => {
|
|
@@ -260,6 +268,8 @@ const AccessTracker = ({ user, isLoggedUser, summitPhase }) => {
|
|
|
260
268
|
...sbAuthProps,
|
|
261
269
|
};
|
|
262
270
|
|
|
271
|
+
if (!chatSettings.enabled) return null;
|
|
272
|
+
|
|
263
273
|
return <Tracker {...widgetProps} ref={trackerRef} />;
|
|
264
274
|
};
|
|
265
275
|
|
|
@@ -267,7 +277,7 @@ const mapStateToProps = ({ loggedUserState, userState, clockState, settingState
|
|
|
267
277
|
isLoggedUser: loggedUserState.isLoggedUser,
|
|
268
278
|
user: userState,
|
|
269
279
|
summitPhase: clockState.summit_phase,
|
|
270
|
-
chatSettings: settingState.widgets.chat
|
|
280
|
+
chatSettings: settingState.widgets.chat,
|
|
271
281
|
});
|
|
272
282
|
|
|
273
283
|
export default connect(mapStateToProps)(AccessTracker);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"widgets":{"chat":{"showQA":false,"showHelp":false,"defaultScope":"page"},"schedule":{"allowClick":true}},"favicons":{"favicon180":"/img/favicon.png","favicon32":"/img/favicon.png","favicon16":"/img/favicon.png"},"staticJsonFilesBuildTime":[{"file":"src/data/summit.json","build_time":
|
|
1
|
+
{"widgets":{"chat":{"enabled": true, "showQA":false,"showHelp":false,"defaultScope":"page"},"schedule":{"allowClick":true}},"favicons":{"favicon180":"/img/favicon.png","favicon32":"/img/favicon.png","favicon16":"/img/favicon.png"},"staticJsonFilesBuildTime":[{"file":"src/data/summit.json","build_time":1692386447666},{"file":"src/data/events.json","build_time":1692386451064},{"file":"src/data/events.idx.json","build_time":1692386451066},{"file":"src/data/speakers.json","build_time":1692386451884},{"file":"src/data/speakers.idx.json","build_time":1692386451884},{"file":"src/content/sponsors.json","build_time":1692386455106},{"file":"src/data/voteable-presentations.json","build_time":1692386457214}],"lastBuild":1692386457215}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":
|
|
1
|
+
[{"id":228,"created":1691602669,"last_edited":1691602669,"order":1,"summit_id":49,"is_published":false,"side_image":null,"header_image":null,"header_image_mobile":null,"carousel_advertise_image":null,"marquee":"","intro":"","external_link":"","video_link":"","chat_link":"","featured_event_id":0,"header_image_alt_text":"","side_image_alt_text":"","header_image_mobile_alt_text":"","carousel_advertise_image_alt_text":"","show_logo_in_event_page":true,"members":[90654],"company":{"id":3,"created":1580138376,"last_edited":1580138376,"name":"Tipit , LLC","url":null,"display_on_site":false,"featured":false,"city":null,"state":null,"country":null,"description":null,"industry":null,"contributions":null,"contact_email":null,"member_level":"None","admin_email":null,"overview":null,"products":null,"commitment":null,"commitment_author":null,"logo":null,"big_logo":null,"color":"#f0f0ee","sponsorships":[616],"project_sponsorships":[]},"sponsorship":{"id":2048,"widget_title":"","lobby_template":null,"expo_hall_template":null,"sponsor_page_template":null,"event_page_template":null,"sponsor_page_use_disqus_widget":false,"sponsor_page_use_live_event_widget":false,"sponsor_page_use_schedule_widget":false,"sponsor_page_use_banner_widget":false,"badge_image":null,"badge_image_alt_text":"","summit_id":49,"order":1,"should_display_on_expo_hall_page":false,"should_display_on_lobby_page":false,"type":{"id":3,"created":1579890943,"last_edited":1579890943,"name":"Gold","label":"not sure??","order":3,"size":"Medium"}},"ads":[],"materials":[],"social_networks":[]}]
|
|
@@ -45,6 +45,7 @@ const allSchedulesReducer = (state = DEFAULT_STATE, action) => {
|
|
|
45
45
|
case RELOAD_SCHED_DATA:
|
|
46
46
|
{
|
|
47
47
|
const {eventsData: allScheduleEvents, summitData, isLoggedUser, userProfile, eventsIDXData } = payload;
|
|
48
|
+
const allEventsTagExclusion = filterEventsByTags(allScheduleEvents);
|
|
48
49
|
|
|
49
50
|
const schedules = summitData?.schedule_settings?.map(sched => {
|
|
50
51
|
|
|
@@ -62,7 +63,7 @@ const allSchedulesReducer = (state = DEFAULT_STATE, action) => {
|
|
|
62
63
|
return result;
|
|
63
64
|
}, {});
|
|
64
65
|
|
|
65
|
-
const newData = {...sched, all_events:
|
|
66
|
+
const newData = {...sched, all_events: allEventsTagExclusion, baseFilters: newFilters, filters: newFilters, pre_filters: newPreFilters};
|
|
66
67
|
|
|
67
68
|
const schedState = scheduleReducer(scheduleState, {type: `SCHED_${type}`, payload: {...newData, isLoggedUser, userProfile }});
|
|
68
69
|
|
|
@@ -77,7 +78,7 @@ const allSchedulesReducer = (state = DEFAULT_STATE, action) => {
|
|
|
77
78
|
allEvents:allScheduleEvents,
|
|
78
79
|
schedules,
|
|
79
80
|
allIDXEvents: eventsIDXData,
|
|
80
|
-
allScheduleEvents:
|
|
81
|
+
allScheduleEvents: allEventsTagExclusion
|
|
81
82
|
};
|
|
82
83
|
}
|
|
83
84
|
case GET_EVENT_DATA: {
|