@openeventkit/event-site 2.0.78 → 2.0.80

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.78",
4
+ "version": "2.0.80",
5
5
  "author": "Tipit LLC",
6
6
  "dependencies": {
7
7
  "@mui/base": "^5.0.0-alpha.114",
@@ -1,4 +1,4 @@
1
- import React, { useContext, useEffect, useMemo, useRef, useState } from 'react';
1
+ import React, { useEffect, useMemo, useRef, useState } from 'react';
2
2
  import { useDispatch, useSelector } from "react-redux";
3
3
  import { useTranslation } from "react-i18next";
4
4
  import { CSSTransition } from "react-transition-group";
@@ -30,7 +30,7 @@ export const TicketPopupEditDetailsForm = ({
30
30
  order,
31
31
  canEditTicketData,
32
32
  goToReassignPanel,
33
- context
33
+ context
34
34
  }) => {
35
35
  const formRef = useRef(null);
36
36
  const { t } = useTranslation();
@@ -126,7 +126,7 @@ export const TicketPopupEditDetailsForm = ({
126
126
  };
127
127
 
128
128
  const handleConfirmAccept = async () => {
129
- setShowConfirm(false);
129
+ setShowConfirm(false);
130
130
  dispatch(removeAttendee({ticket, context})).then((updatedTicket) => {
131
131
  onTicketAssignChange(updatedTicket);
132
132
  toggleUnassignMessage()
@@ -160,7 +160,10 @@ export const TicketPopupEditDetailsForm = ({
160
160
  }
161
161
  // extra question
162
162
  if (knownErrorRef) {
163
- knownErrorRef.scrollIntoView(ScrollBehaviour);
163
+ knownErrorRef.scrollIntoView({
164
+ behavior: 'smooth',
165
+ block: 'center',
166
+ });
164
167
  return;
165
168
  }
166
169
  // disclaimer
@@ -207,10 +210,10 @@ export const TicketPopupEditDetailsForm = ({
207
210
  };
208
211
 
209
212
  const canSubmitChanges = () => {
210
- const qs = new QuestionsSet(extraQuestions, initialValues[TicketKeys.extraQuestions]);
213
+ const qs = new QuestionsSet(extraQuestions, initialValues[TicketKeys.extraQuestions]);
211
214
  const unansweredExtraQuestions = !qs.completed();
212
215
  return canEditTicketData || isReassignable || unansweredExtraQuestions;
213
- }
216
+ }
214
217
 
215
218
  return (
216
219
  <div className="ticket-popup-edit-details-form">
@@ -252,7 +255,7 @@ export const TicketPopupEditDetailsForm = ({
252
255
  value={initialValues[TicketKeys.email]}
253
256
  disabled={true}
254
257
  />
255
- {isUserTicketOwner && isReassignable &&
258
+ {isUserTicketOwner && isReassignable &&
256
259
  <div className="mt-1">
257
260
  <span onClick={() => goToReassignPanel()}>
258
261
  <u>Reassign</u>
@@ -332,7 +335,7 @@ export const TicketPopupEditDetailsForm = ({
332
335
  </div>
333
336
  }
334
337
 
335
- {hasExtraQuestions &&
338
+ {hasExtraQuestions &&
336
339
  <div className="column is-full pt-5">
337
340
  <h4 className="pb-2">{t("ticket_popup.edit_preferences")}</h4>
338
341
  <ExtraQuestionsForm
@@ -398,4 +401,4 @@ export const TicketPopupEditDetailsForm = ({
398
401
  />
399
402
  </div>
400
403
  );
401
- };
404
+ };
@@ -1,16 +1 @@
1
- {
2
- "widgets": {
3
- "chat": {
4
- "enabled": true,
5
- "showQA": false,
6
- "showHelp": false,
7
- "defaultScope": "page"
8
- },
9
- "schedule": {
10
- "allowClick": true
11
- }
12
- },
13
- "favicon": {
14
- "asset": "icon.png"
15
- }
16
- }
1
+ {"widgets":{"chat":{"enabled":true,"showQA":false,"showHelp":false,"defaultScope":"page"},"schedule":{"allowClick":true}},"favicon":{"asset":"icon.png"},"staticJsonFilesBuildTime":[{"file":"src/data/summit.json","build_time":1701469138106},{"file":"src/data/events.json","build_time":1701469139680},{"file":"src/data/events.idx.json","build_time":1701469139682},{"file":"src/data/speakers.json","build_time":1701469140132},{"file":"src/data/speakers.idx.json","build_time":1701469140132},{"file":"src/content/sponsors.json","build_time":1701469140775},{"file":"src/data/voteable-presentations.json","build_time":1701469141157}],"lastBuild":1701469141157}
@@ -1 +1 @@
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":[]}]
1
+ []
@@ -99,7 +99,10 @@ export const ExtraQuestionsPageTemplate = ({ user, summit, extraQuestions, atten
99
99
  }
100
100
  // extra question
101
101
  if (knownErrorRef) {
102
- knownErrorRef.scrollIntoView(ScrollBehaviour);
102
+ knownErrorRef.scrollIntoView({
103
+ behavior: 'smooth',
104
+ block: 'center',
105
+ });
103
106
  return;
104
107
  }
105
108
  // disclaimer
@@ -159,7 +162,7 @@ export const ExtraQuestionsPageTemplate = ({ user, summit, extraQuestions, atten
159
162
  <div className={styles.extraQuestionsAttendeeWarning}>
160
163
  {`Attention: The info below is for ${getAttendeeFullname(attendee)}. No additional action is required if you
161
164
  prefer ${attendee.first_name || attendee.email} to complete this info; they have received an email with instructions.
162
- You can manage this ticket on the "My Orders / Tickets" page.`}
165
+ You can manage this ticket on the "My Orders / Tickets" page.`}
163
166
  </div>
164
167
  }
165
168
  <div className={`content columns ${styles.extraQuestionsContainer}`}>
@@ -242,7 +245,7 @@ export const ExtraQuestionsPageTemplate = ({ user, summit, extraQuestions, atten
242
245
  questionContainerClassName={`columns is-multiline ${styles.extraQuestion} pt-3`}
243
246
  questionLabelContainerClassName={'column is-full pb-0'}
244
247
  questionControlContainerClassName={`column is-full pt-0`}
245
- shouldScroll2FirstError={false}
248
+ shouldScroll2FirstError={true}
246
249
  onError={handleExtraQuestionError}
247
250
  />
248
251
  </>