@openeventkit/event-site 1.0.35 → 1.0.37

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": "1.0.35",
4
+ "version": "1.0.37",
5
5
  "author": "Tipit LLC",
6
6
  "dependencies": {
7
7
  "@mui/base": "^5.0.0-alpha.114",
@@ -42,7 +42,7 @@
42
42
  "font-awesome": "^4.7.0",
43
43
  "formik": "^2.2.9",
44
44
  "fs-extra": "^9.0.1",
45
- "full-schedule-widget": "^2.0.28",
45
+ "full-schedule-widget": "^2.0.32",
46
46
  "gatsby": "^5.8.1",
47
47
  "gatsby-alias-imports": "^1.0.6",
48
48
  "gatsby-plugin-image": "^3.8.0",
@@ -3,6 +3,7 @@ import * as Sentry from "@sentry/react";
3
3
  import { navigate, withPrefix } from "gatsby"
4
4
  import { connect } from "react-redux";
5
5
  import URI from "urijs";
6
+ import PropTypes from 'prop-types';
6
7
 
7
8
  // these two libraries are client-side only
8
9
  import RegistrationLiteWidget from "summit-registration-lite/dist";
@@ -45,13 +46,16 @@ const RegistrationLiteComponent = ({
45
46
  checkRequireExtraQuestionsByAttendee,
46
47
  getExtraQuestions,
47
48
  children,
49
+ ignoreAutoOpen
48
50
  }) => {
49
51
  const [isActive, setIsActive] = useState(false);
50
52
  const [initialEmailValue, setInitialEmailValue] = useState("");
51
53
 
52
54
  useEffect(() => {
53
- const fragmentParser = new FragmentParser();
54
- setIsActive(fragmentParser.getParam("registration"));
55
+ if(!ignoreAutoOpen) {
56
+ const fragmentParser = new FragmentParser();
57
+ setIsActive(fragmentParser.getParam("registration"));
58
+ }
55
59
  const paramInitialEmailValue = fragmentParser.getParam("email");
56
60
  if (paramInitialEmailValue)
57
61
  setInitialEmailValue(paramInitialEmailValue);
@@ -207,6 +211,15 @@ const RegistrationLiteComponent = ({
207
211
  )
208
212
  };
209
213
 
214
+ RegistrationLiteComponent.defaultProps = {
215
+ ignoreAutoOpen: false,
216
+ };
217
+
218
+ RegistrationLiteComponent.propTypes = {
219
+ ignoreAutoOpen: PropTypes.bool,
220
+ };
221
+
222
+
210
223
  const mapStateToProps = ({userState, summitState, settingState}) => {
211
224
  return ({
212
225
  registrationProfile: userState.idpProfile,
@@ -90,6 +90,8 @@ export const getFilteredEvents = (events, filters, summitTimezone) => {
90
90
  valid = filters.date.values.includes(dateString);
91
91
  if (!valid) return false;
92
92
  }
93
+
94
+ if (ev.type.show_always_on_schedule) return true;
93
95
 
94
96
  if (filters.level?.values.length > 0) {
95
97
  valid = filters.level.values.some(l => l.toString().toLowerCase() === ev.level?.toLowerCase());