@openeventkit/event-site 2.0.80 → 2.0.81
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 +2 -2
- package/src/components/summit-my-orders-tickets/components/TicketPopup/TicketPopupEditDetailsForm/TicketPopupEditDetailsForm.js +5 -8
- package/src/content/site-settings/index.json +16 -1
- package/src/content/sponsors.json +1 -1
- package/src/templates/extra-questions-page.js +5 -8
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.
|
|
4
|
+
"version": "2.0.81",
|
|
5
5
|
"author": "Tipit LLC",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@mui/base": "^5.0.0-alpha.114",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"netlify-cms-app": "^2.15.72",
|
|
79
79
|
"netlify-cms-lib-widgets": "^1.8.0",
|
|
80
80
|
"node-sass-utils": "^1.1.3",
|
|
81
|
-
"openstack-uicore-foundation": "4.1.
|
|
81
|
+
"openstack-uicore-foundation": "4.1.59",
|
|
82
82
|
"path-browserify": "^1.0.1",
|
|
83
83
|
"prop-types": "^15.6.0",
|
|
84
84
|
"react": "^18.2.0",
|
|
@@ -149,7 +149,7 @@ export const TicketPopupEditDetailsForm = ({
|
|
|
149
149
|
|
|
150
150
|
const scrollToError = (error) => document.querySelector(`label[for="${error}"]`).scrollIntoView(ScrollBehaviour);
|
|
151
151
|
|
|
152
|
-
const validateForm = (
|
|
152
|
+
const validateForm = (errorId = null) => {
|
|
153
153
|
// Validate the formik form
|
|
154
154
|
formik.validateForm().then((errors) => {
|
|
155
155
|
const errorKeys = Object.keys(errors);
|
|
@@ -159,11 +159,8 @@ export const TicketPopupEditDetailsForm = ({
|
|
|
159
159
|
return;
|
|
160
160
|
}
|
|
161
161
|
// extra question
|
|
162
|
-
if (
|
|
163
|
-
|
|
164
|
-
behavior: 'smooth',
|
|
165
|
-
block: 'center',
|
|
166
|
-
});
|
|
162
|
+
if (errorId) {
|
|
163
|
+
formRef.current.scroll2QuestionById(errorId);
|
|
167
164
|
return;
|
|
168
165
|
}
|
|
169
166
|
// disclaimer
|
|
@@ -187,8 +184,8 @@ export const TicketPopupEditDetailsForm = ({
|
|
|
187
184
|
validateForm();
|
|
188
185
|
};
|
|
189
186
|
|
|
190
|
-
const handleExtraQuestionError = (
|
|
191
|
-
validateForm(
|
|
187
|
+
const handleExtraQuestionError = (errors, ref, errorId) => {
|
|
188
|
+
validateForm(errorId);
|
|
192
189
|
}
|
|
193
190
|
|
|
194
191
|
const onExtraQuestionsAnswersSet = (answersForm) => {
|
|
@@ -1 +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 +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":[]}]
|
|
@@ -88,7 +88,7 @@ export const ExtraQuestionsPageTemplate = ({ user, summit, extraQuestions, atten
|
|
|
88
88
|
|
|
89
89
|
const scrollToError = (error) => document.querySelector(`label[for="${error}"]`).scrollIntoView(ScrollBehaviour);
|
|
90
90
|
|
|
91
|
-
const validateForm = (
|
|
91
|
+
const validateForm = (errorId = null) => {
|
|
92
92
|
// Validate the formik form
|
|
93
93
|
formik.validateForm().then((errors) => {
|
|
94
94
|
const errorKeys = Object.keys(errors);
|
|
@@ -98,11 +98,8 @@ export const ExtraQuestionsPageTemplate = ({ user, summit, extraQuestions, atten
|
|
|
98
98
|
return;
|
|
99
99
|
}
|
|
100
100
|
// extra question
|
|
101
|
-
if (
|
|
102
|
-
|
|
103
|
-
behavior: 'smooth',
|
|
104
|
-
block: 'center',
|
|
105
|
-
});
|
|
101
|
+
if (errorId) {
|
|
102
|
+
formRef.current.scroll2QuestionById(errorId);
|
|
106
103
|
return;
|
|
107
104
|
}
|
|
108
105
|
// disclaimer
|
|
@@ -126,8 +123,8 @@ export const ExtraQuestionsPageTemplate = ({ user, summit, extraQuestions, atten
|
|
|
126
123
|
validateForm();
|
|
127
124
|
};
|
|
128
125
|
|
|
129
|
-
const handleExtraQuestionError = (
|
|
130
|
-
validateForm(
|
|
126
|
+
const handleExtraQuestionError = (errors, ref, errorId) => {
|
|
127
|
+
validateForm(errorId);
|
|
131
128
|
}
|
|
132
129
|
|
|
133
130
|
const onExtraQuestionsAnswersSet = (answersForm) => {
|