@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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openeventkit/event-site",
3
3
  "description": "Event Site",
4
- "version": "2.0.56",
4
+ "version": "2.0.58",
5
5
  "author": "Tipit LLC",
6
6
  "dependencies": {
7
7
  "@mui/base": "^5.0.0-alpha.114",
@@ -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: true,
134
+ required: false,
129
135
  default: "Nunito Sans"
130
136
  }),
131
137
  objectField({
@@ -13,6 +13,7 @@ module.exports = `
13
13
  allowClick: Boolean
14
14
  }
15
15
  type Chat {
16
+ enabled: Boolean
16
17
  showQA: Boolean
17
18
  showHelp: Boolean
18
19
  defaultScope: String
@@ -32,4 +32,8 @@ const config = {
32
32
  collections: collections
33
33
  };
34
34
 
35
+ if (!!CMS_BACKEND_REPO && !!CMS_BACKEND_BRANCH) {
36
+ config.local_backend = true;
37
+ }
38
+
35
39
  export default config;
@@ -32,7 +32,7 @@ const sbAuthProps = {
32
32
 
33
33
  const adminGroups = ["administrators", "super-admins"];
34
34
 
35
- export const AttendeesWidget = ({ user, event, chatSettings }) => {
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 AccessTracker = ({ user, isLoggedUser, summitPhase }) => {
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":1693939693324},{"file":"src/data/events.json","build_time":1693939701409},{"file":"src/data/events.idx.json","build_time":1693939701414},{"file":"src/data/speakers.json","build_time":1693939707752},{"file":"src/data/speakers.idx.json","build_time":1693939707753},{"file":"src/content/sponsors.json","build_time":1693939710725},{"file":"src/data/voteable-presentations.json","build_time":1693939711057}],"lastBuild":1693939711057}
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":229,"created":1692845763,"last_edited":1692845763,"order":8,"summit_id":49,"is_published":true,"side_image":null,"header_image":"https://summit-api-assets.sfo2.digitaloceanspaces.com/summits/49/sponsors/229/RDC23-FNV-Booth-Header-DevRel1.png","header_image_mobile":"https://summit-api-assets.sfo2.digitaloceanspaces.com/summits/49/sponsors/229/RDC23-FNV-Booth-Header-Mobile-DevRel2.png","carousel_advertise_image":null,"marquee":"","intro":"","external_link":"","video_link":"","chat_link":"","featured_event_id":3779,"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":[],"company":{"id":4223,"created":1692845761,"last_edited":1692845761,"name":"Developer Relations","url":"","display_on_site":false,"featured":false,"city":"","state":"","country":"","description":"","industry":"","contributions":"","contact_email":"","member_level":"None","admin_email":"","overview":"","products":"","commitment":"","commitment_author":"","logo":"https://summit-api-assets.sfo2.digitaloceanspaces.com/companies/4223/logos/RDC23-FNV-Booth-Logo-DevRel2.png","big_logo":"https://summit-api-assets.sfo2.digitaloceanspaces.com/companies/4223/logos/RDC23-FNV-Booth-Logo-DevRel3.png","color":"#6347ff","sponsorships":[],"project_sponsorships":[]},"sponsorship":{"id":2049,"widget_title":"","lobby_template":null,"expo_hall_template":"big-images","sponsor_page_template":"big-header","event_page_template":null,"sponsor_page_use_disqus_widget":true,"sponsor_page_use_live_event_widget":true,"sponsor_page_use_schedule_widget":false,"sponsor_page_use_banner_widget":true,"badge_image":null,"badge_image_alt_text":"","summit_id":49,"order":2,"should_display_on_expo_hall_page":true,"should_display_on_lobby_page":false,"type":{"id":25,"created":1692845527,"last_edited":1692845527,"name":"RDC Booth","label":"RDC Booth","order":25,"size":"Medium"}},"ads":[],"materials":[],"social_networks":[]},{"id":230,"created":1692845800,"last_edited":1692845800,"order":10,"summit_id":49,"is_published":true,"side_image":null,"header_image":"https://summit-api-assets.sfo2.digitaloceanspaces.com/summits/49/sponsors/230/RDC23-FNV-Booth-Header-EduPartner2.png","header_image_mobile":"https://summit-api-assets.sfo2.digitaloceanspaces.com/summits/49/sponsors/230/RDC23-FNV-Booth-Header-Mobile-EduPartner2.png","carousel_advertise_image":null,"marquee":"Our team helps educators harness the power of Roblox to create immersive learning experiences that inspire and educate","intro":"<p>The Roblox Education Team is dedicated to helping educators harness the power of Roblox to create and use immersive learning experiences that inspire creativity, collaboration, and critical thinking. Developers are key to this strategy as they create educational experiences and support content providers that wish to build immersive learning experiences on Roblox.</p>\n<p>Our team supports educational developers who desire to:</p>\n<ul>\n <li>Explore educational experience funding through the <a href=\"https://blog.roblox.com/2021/11/introducing-roblox-community-fund/\"><u>Roblox Community Fund</u></a></li>\n <li>Consult with experts on learning, game design, art, and coding</li>\n <li>Match with a content provider to build their educational experience</li>\n <li>Highlight their educational experiences in the <a href=\"https://create.roblox.com/docs/production/promotion/nominating-for-the-discover-page#learn--explore-criteria\"><u>Learn and Explore Sort</u></a></li>\n</ul>","external_link":"","video_link":"","chat_link":"","featured_event_id":0,"header_image_alt_text":"Education Partnerships","side_image_alt_text":"","header_image_mobile_alt_text":"Education Partnerships","carousel_advertise_image_alt_text":"","show_logo_in_event_page":true,"members":[],"company":{"id":4224,"created":1692845794,"last_edited":1692845794,"name":"Education Partnerships","url":"","display_on_site":false,"featured":false,"city":"","state":"","country":"","description":"","industry":"","contributions":"","contact_email":"education@roblox.com","member_level":"None","admin_email":"","overview":"","products":"","commitment":"","commitment_author":"","logo":"https://summit-api-assets.sfo2.digitaloceanspaces.com/companies/4224/logos/RDC23-FNV-Booth-Logo-EduPartner2.png","big_logo":"https://summit-api-assets.sfo2.digitaloceanspaces.com/companies/4224/logos/RDC23-FNV-Booth-Logo-EduPartner3.png","color":"#6347ff","sponsorships":[],"project_sponsorships":[]},"sponsorship":{"id":2049,"widget_title":"","lobby_template":null,"expo_hall_template":"big-images","sponsor_page_template":"big-header","event_page_template":null,"sponsor_page_use_disqus_widget":true,"sponsor_page_use_live_event_widget":true,"sponsor_page_use_schedule_widget":false,"sponsor_page_use_banner_widget":true,"badge_image":null,"badge_image_alt_text":"","summit_id":49,"order":2,"should_display_on_expo_hall_page":true,"should_display_on_lobby_page":false,"type":{"id":25,"created":1692845527,"last_edited":1692845527,"name":"RDC Booth","label":"RDC Booth","order":25,"size":"Medium"}},"ads":[],"materials":[{"id":1,"created":1693316206,"last_edited":1693316206,"order":1,"sponsor_id":230,"link":"https://education.roblox.com/","name":"Roblox Education","type":"Link"},{"id":2,"created":1693316281,"last_edited":1693316281,"order":2,"sponsor_id":230,"link":"https://blog.roblox.com/2023/08/where-learning-happens/","name":"Learn more about the Roblox Community Fund projects","type":"Link"},{"id":3,"created":1693316341,"last_edited":1693316341,"order":3,"sponsor_id":230,"link":"https://www.roblox.com/discover#/sortName/Curated_67","name":"Find educational experiences in the Learn and Explore Sort","type":"Link"}],"social_networks":[]},{"id":232,"created":1692846137,"last_edited":1692846137,"order":16,"summit_id":49,"is_published":true,"side_image":null,"header_image":"https://summit-api-assets.sfo2.digitaloceanspaces.com/summits/49/sponsors/232/RDC23-FNV-Booth-Header-Studio-AI2.png","header_image_mobile":"https://summit-api-assets.sfo2.digitaloceanspaces.com/summits/49/sponsors/232/RDC23-FNV-Booth-Header-Mobile-StudioAI.png","carousel_advertise_image":null,"marquee":"Our team in Studio supports users in creating experiences and 3D content. Come visit our live and virtual booths to learn more about Studio and AI.","intro":"<p>Roblox Studio is an all-in-one IDE that lets you create experiences that run on Roblox. From 3D building tools to integrated scripting, debugging, and testing, Studio offers a one-stop authoring and publishing workflow for creating experiences on Roblox.&nbsp;</p>\n<p>At Roblox, we want to enable creators to build in any way and as quickly as they can imagine. With recent advances in AI, we envision a leap forward in accessibility, velocity, and creativity of creation on the Roblox platform.&nbsp;</p>\n<p>Learn more about Studio and AI at our RDC in-person and virtual booths.</p>","external_link":"","video_link":"","chat_link":"https://roblox.zoom.us/j/94282430660?pwd=Y1pNNXE4UUJudTJNY0JKU0R2Nk9NQT09","featured_event_id":3779,"header_image_alt_text":"Studio & AI","side_image_alt_text":"","header_image_mobile_alt_text":"","carousel_advertise_image_alt_text":"","show_logo_in_event_page":true,"members":[],"company":{"id":4226,"created":1692846131,"last_edited":1692846131,"name":"Studio & AI","url":"","display_on_site":false,"featured":false,"city":"","state":"","country":"","description":"","industry":"RDC 2023 Booths","contributions":"","contact_email":"studio-pm@roblox.com","member_level":"None","admin_email":"","overview":"","products":"","commitment":"","commitment_author":"","logo":"https://summit-api-assets.sfo2.digitaloceanspaces.com/companies/4226/logos/RDC23-FNV-Booth-Logo-StudioAI2.png","big_logo":"https://summit-api-assets.sfo2.digitaloceanspaces.com/companies/4226/logos/RDC23-FNV-Booth-Logo-StudioAI3.png","color":"#6347ff","sponsorships":[],"project_sponsorships":[]},"sponsorship":{"id":2049,"widget_title":"","lobby_template":null,"expo_hall_template":"big-images","sponsor_page_template":"big-header","event_page_template":null,"sponsor_page_use_disqus_widget":true,"sponsor_page_use_live_event_widget":true,"sponsor_page_use_schedule_widget":false,"sponsor_page_use_banner_widget":true,"badge_image":null,"badge_image_alt_text":"","summit_id":49,"order":2,"should_display_on_expo_hall_page":true,"should_display_on_lobby_page":false,"type":{"id":25,"created":1692845527,"last_edited":1692845527,"name":"RDC Booth","label":"RDC Booth","order":25,"size":"Medium"}},"ads":[],"materials":[{"id":4,"created":1693316453,"last_edited":1693316453,"order":1,"sponsor_id":232,"link":"https://create.roblox.com/docs/studio","name":"Studio Overview","type":"Link"}],"social_networks":[]}]
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: allScheduleEvents, baseFilters: newFilters, filters: newFilters, pre_filters: newPreFilters};
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: filterEventsByTags(allScheduleEvents)
81
+ allScheduleEvents: allEventsTagExclusion
81
82
  };
82
83
  }
83
84
  case GET_EVENT_DATA: {
@@ -31,6 +31,7 @@ const siteSettingsQuery = graphql`
31
31
  }
32
32
  widgets {
33
33
  chat {
34
+ enabled
34
35
  defaultScope
35
36
  showHelp
36
37
  showQA