@openeventkit/event-site 2.1.48 → 2.1.50

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.
Files changed (97) hide show
  1. package/package.json +3 -3
  2. package/src/actions/user-actions.js +9 -10
  3. package/src/components/RegistrationLiteComponent.js +1 -1
  4. package/src/components/VimeoPlayer.js +2 -2
  5. package/src/content/site-settings/index.json +1 -1
  6. package/src/content/sponsors.json +1 -1
  7. package/src/styles/colors.scss +11 -11
  8. package/src/templates/extra-questions-page.js +1 -1
  9. package/src/templates/full-profile-page.js +2 -3
  10. package/src/utils/alerts.js +34 -27
  11. package/src/utils/customErrorHandler.js +4 -4
  12. package/src/utils/ticketConstants.js +10 -0
  13. package/src/components/summit-my-orders-tickets/components/ConfirmPopup/ConfirmPopup.js +0 -96
  14. package/src/components/summit-my-orders-tickets/components/ConfirmPopup/confirm-popup.scss +0 -57
  15. package/src/components/summit-my-orders-tickets/components/DelegatePopup/DelegatePopup.js +0 -50
  16. package/src/components/summit-my-orders-tickets/components/DelegatePopup/delegate-popup.scss +0 -57
  17. package/src/components/summit-my-orders-tickets/components/MyOrdersTickets.js +0 -79
  18. package/src/components/summit-my-orders-tickets/components/OrderDetails/OrderDetails.js +0 -112
  19. package/src/components/summit-my-orders-tickets/components/OrderDetails/order-details.scss +0 -128
  20. package/src/components/summit-my-orders-tickets/components/OrderList/OrderList.js +0 -80
  21. package/src/components/summit-my-orders-tickets/components/OrderList/OrderListItem.js +0 -85
  22. package/src/components/summit-my-orders-tickets/components/OrderList/order-list.scss +0 -60
  23. package/src/components/summit-my-orders-tickets/components/OrderOptions/OrderOptions.js +0 -83
  24. package/src/components/summit-my-orders-tickets/components/OrderOptions/order-options.scss +0 -50
  25. package/src/components/summit-my-orders-tickets/components/OrderSummary/OrderSummary.js +0 -64
  26. package/src/components/summit-my-orders-tickets/components/OrderSummary/OrderSummaryTable.js +0 -97
  27. package/src/components/summit-my-orders-tickets/components/OrderSummary/order-summary.scss +0 -178
  28. package/src/components/summit-my-orders-tickets/components/OrderTicketDetails/OrderTicketDetails.js +0 -102
  29. package/src/components/summit-my-orders-tickets/components/OrderTicketDetails/order-ticket-details.scss +0 -129
  30. package/src/components/summit-my-orders-tickets/components/OrderTicketList/OrderTicketList.js +0 -19
  31. package/src/components/summit-my-orders-tickets/components/OrderTicketList/OrderTicketListItem.js +0 -13
  32. package/src/components/summit-my-orders-tickets/components/OrderTicketList/order-ticket-list.scss +0 -21
  33. package/src/components/summit-my-orders-tickets/components/TicketDetails/TicketDetails.js +0 -93
  34. package/src/components/summit-my-orders-tickets/components/TicketDetails/ticket-details.scss +0 -129
  35. package/src/components/summit-my-orders-tickets/components/TicketList/TicketList.js +0 -65
  36. package/src/components/summit-my-orders-tickets/components/TicketList/TicketListItem.js +0 -16
  37. package/src/components/summit-my-orders-tickets/components/TicketList/ticket-list.scss +0 -21
  38. package/src/components/summit-my-orders-tickets/components/TicketPopup/TicketPopup.js +0 -186
  39. package/src/components/summit-my-orders-tickets/components/TicketPopup/TicketPopupAssignForm.js +0 -136
  40. package/src/components/summit-my-orders-tickets/components/TicketPopup/TicketPopupEditDetailsForm/TicketPopupEditDetailsForm.js +0 -468
  41. package/src/components/summit-my-orders-tickets/components/TicketPopup/TicketPopupEditDetailsForm/ticket-popup-edit-details-form.scss +0 -71
  42. package/src/components/summit-my-orders-tickets/components/TicketPopup/TicketPopupNotifyForm.js +0 -64
  43. package/src/components/summit-my-orders-tickets/components/TicketPopup/TicketPopupReassignForm.js +0 -193
  44. package/src/components/summit-my-orders-tickets/components/TicketPopup/TicketPopupRefundForm.js +0 -64
  45. package/src/components/summit-my-orders-tickets/components/TicketPopup/ticket-popup.scss +0 -416
  46. package/src/components/summit-my-orders-tickets/context/TicketAssignedContext.js +0 -24
  47. package/src/components/summit-my-orders-tickets/global/constants.js +0 -10
  48. package/src/components/summit-my-orders-tickets/i18n/index.js +0 -37
  49. package/src/components/summit-my-orders-tickets/i18n/locales/en.json +0 -296
  50. package/src/components/summit-my-orders-tickets/i18n/locales/es.json +0 -296
  51. package/src/components/summit-my-orders-tickets/index.js +0 -1
  52. package/src/components/summit-my-orders-tickets/store/actions/base-actions.js +0 -7
  53. package/src/components/summit-my-orders-tickets/store/actions/order-actions.js +0 -96
  54. package/src/components/summit-my-orders-tickets/store/actions/summit-actions.js +0 -64
  55. package/src/components/summit-my-orders-tickets/store/actions/ticket-actions.js +0 -666
  56. package/src/components/summit-my-orders-tickets/store/actions/timer-actions.js +0 -29
  57. package/src/components/summit-my-orders-tickets/store/actions/user-actions.js +0 -42
  58. package/src/components/summit-my-orders-tickets/store/history.js +0 -16
  59. package/src/components/summit-my-orders-tickets/store/index.js +0 -117
  60. package/src/components/summit-my-orders-tickets/store/reducers/base-reducer.js +0 -67
  61. package/src/components/summit-my-orders-tickets/store/reducers/clock-reducer.js +0 -31
  62. package/src/components/summit-my-orders-tickets/store/reducers/order-reducer.js +0 -95
  63. package/src/components/summit-my-orders-tickets/store/reducers/summit-reducer.js +0 -52
  64. package/src/components/summit-my-orders-tickets/store/reducers/ticket-reducer.js +0 -92
  65. package/src/components/summit-my-orders-tickets/store/reducers/user-reducer.js +0 -35
  66. package/src/components/summit-my-orders-tickets/styles/_variables.scss +0 -17
  67. package/src/components/summit-my-orders-tickets/styles/general.scss +0 -17
  68. package/src/components/summit-my-orders-tickets/summit-my-orders-tickets.js +0 -86
  69. package/src/components/summit-my-orders-tickets/util/helpers/capitalizeFirstLetter.js +0 -1
  70. package/src/components/summit-my-orders-tickets/util/helpers/createReducer.js +0 -11
  71. package/src/components/summit-my-orders-tickets/util/helpers/formatCurrency.js +0 -15
  72. package/src/components/summit-my-orders-tickets/util/helpers/getDayNumberFromDate.js +0 -9
  73. package/src/components/summit-my-orders-tickets/util/helpers/getDaysBetweenDates.js +0 -16
  74. package/src/components/summit-my-orders-tickets/util/helpers/getDocumentOffset.js +0 -8
  75. package/src/components/summit-my-orders-tickets/util/helpers/getFormattedDate.js +0 -7
  76. package/src/components/summit-my-orders-tickets/util/helpers/getFormattedTime.js +0 -9
  77. package/src/components/summit-my-orders-tickets/util/helpers/getWindowScroll.js +0 -6
  78. package/src/components/summit-my-orders-tickets/util/helpers/index.js +0 -22
  79. package/src/components/summit-my-orders-tickets/util/index.js +0 -5
  80. package/src/components/summit-my-orders-tickets/util/order/calculateOrderTotals.js +0 -28
  81. package/src/components/summit-my-orders-tickets/util/order/getOrderStatusData.js +0 -71
  82. package/src/components/summit-my-orders-tickets/util/order/index.js +0 -2
  83. package/src/components/summit-my-orders-tickets/util/summit/checkSummitPast.js +0 -10
  84. package/src/components/summit-my-orders-tickets/util/summit/checkSummitStarted.js +0 -5
  85. package/src/components/summit-my-orders-tickets/util/summit/getSummitFormattedDate.js +0 -29
  86. package/src/components/summit-my-orders-tickets/util/summit/getSummitFormattedReassignDate.js +0 -8
  87. package/src/components/summit-my-orders-tickets/util/summit/getSummitLocation.js +0 -9
  88. package/src/components/summit-my-orders-tickets/util/summit/getSummitReassignDate.js +0 -7
  89. package/src/components/summit-my-orders-tickets/util/summit/index.js +0 -7
  90. package/src/components/summit-my-orders-tickets/util/summit/useSummitDetails.js +0 -36
  91. package/src/components/summit-my-orders-tickets/util/ticket/getTicketRole.js +0 -11
  92. package/src/components/summit-my-orders-tickets/util/ticket/getTicketStatusData.js +0 -48
  93. package/src/components/summit-my-orders-tickets/util/ticket/getTicketType.js +0 -1
  94. package/src/components/summit-my-orders-tickets/util/ticket/index.js +0 -4
  95. package/src/components/summit-my-orders-tickets/util/ticket/useTicketDetails.js +0 -60
  96. package/src/components/summit-my-orders-tickets/util/timer/index.js +0 -1
  97. package/src/components/summit-my-orders-tickets/util/timer/useNow.js +0 -8
@@ -1,416 +0,0 @@
1
- @import "../../styles/variables";
2
-
3
- .ticket-popup {
4
- z-index: 1000;
5
- position: fixed;
6
- width: 100%;
7
- height: 100%;
8
- top: 0;
9
- left: 0;
10
- right: 0;
11
- bottom: 0;
12
- margin: auto;
13
- background-color: rgba(0, 0, 0, 0.5);
14
- }
15
-
16
- .ticket-popup-form-body {
17
- position: relative;
18
- button {
19
- background-color: var(--color_input_background_color) !important;;
20
- color: var(--color_input_text_color) !important;
21
- border-color: var(--color_input_border_color) !important;
22
- }
23
- }
24
-
25
- .ticket-popup-form-alert {
26
- z-index: 20;
27
- position: sticky;
28
- top: 0;
29
- }
30
-
31
- .ticket-popup-scroll {
32
- padding: 20px 15px;
33
- overflow-y: scroll;
34
- z-index: 20;
35
- padding: 20px;
36
- // fallback for old safari
37
- height: calc(100vh - 200px);
38
- height: calc(100dvh - 200px);
39
- & > :first-child {
40
- padding-bottom: 20px;
41
- }
42
- }
43
-
44
- .ticket-popup-content {
45
- position: absolute;
46
- left: 50%;
47
- right: 0%;
48
- top: 0%;
49
- bottom: 0%;
50
- margin: auto;
51
- background-color: var(--color_background_light) !important;
52
- z-index: 15;
53
-
54
- }
55
-
56
- .ticket-popup-header {
57
- background-color: var(--color_primary) !important;
58
- font-weight: bold;
59
- padding: 15px;
60
- display: flex;
61
- justify-content: space-between;
62
- border: none !important;
63
-
64
- h4 {
65
- font-size: 20px;
66
- margin-top: 0;
67
- margin-bottom: 15px;
68
- }
69
-
70
- p {
71
- margin: 0;
72
- text-transform: uppercase;
73
- font-size: 12px;
74
-
75
- .warning {
76
- color: $color-warning;
77
- }
78
-
79
- .complete {
80
- color: $color-success;
81
- }
82
- }
83
-
84
- .ticket-popup-icons {
85
- display: flex;
86
- gap: 15px;
87
- width: 90px;
88
- color: var(--color_text_dark);
89
- flex-direction: column;
90
-
91
- .ticket-popup-row-icon {
92
- display: flex;
93
- gap: 15px;
94
- justify-content: end;
95
- }
96
-
97
- .ticket-popup-qr {
98
- width: 90px;
99
- margin-left: auto;
100
- display: flex;
101
- padding: 3px;
102
- background-color: #fff;
103
- }
104
-
105
- i {
106
- font-size: 1.5em;
107
- cursor: pointer;
108
- font-weight: normal;
109
- }
110
- }
111
-
112
- .ticket-popup-title {
113
- color: $color-primary-contrast;
114
- white-space: normal;
115
- overflow: hidden;
116
-
117
- .status {
118
- margin-top: auto;
119
- font-size: 12px;
120
- color: $color-black;
121
- text-transform: uppercase;
122
-
123
- &.status-warning {
124
- color: $color-warning;
125
- }
126
-
127
- &.status-complete {
128
- color: $color-success;
129
- }
130
-
131
- &.status-unset {
132
- color: $color-black;
133
- }
134
-
135
- &.status-cancel {
136
- color: $color-danger;
137
- }
138
- }
139
- }
140
- }
141
-
142
- .ticket-popup-tabs {
143
- display: flex;
144
- flex-direction: row;
145
- justify-content: center;
146
- border-bottom: 2px solid $color-gray-lightest;
147
- line-height: 35px;
148
- margin-bottom: 0px;
149
- padding-inline-start: 0px;
150
-
151
- li {
152
- list-style-type: none;
153
- cursor: pointer;
154
- padding: 0 15px;
155
- }
156
-
157
- &--active {
158
- border-bottom: 2px solid $color-secondary-contrast;
159
- }
160
- }
161
-
162
- .ticket-popup-panel {
163
- &--assign {
164
- text-align: center;
165
- padding: 0 10%;
166
-
167
- p {
168
- font-size: 16px;
169
- margin: 20px 0 20px;
170
- padding: 0 15%;
171
- }
172
-
173
- p:first-of-type {
174
- margin: 40px 0 20px;
175
- }
176
-
177
- p.error-label {
178
- width: 60%;
179
- margin: 0px auto 5px auto;
180
- padding: 0;
181
- font-size: 14px;
182
- text-align: left;
183
- }
184
-
185
- .ticket-popup-separator {
186
- display: table;
187
- margin: 25px 0;
188
- width: 90%;
189
- margin-left: auto;
190
- margin-right: auto;
191
-
192
- div {
193
- display: table-cell;
194
- vertical-align: middle;
195
- width: 40%;
196
- }
197
-
198
- span {
199
- display: table-cell;
200
- padding: 0 5px;
201
- vertical-align: middle;
202
- white-space: nowrap;
203
- }
204
- }
205
-
206
- .form-control {
207
- width: 60%;
208
- margin: 25px auto 5px auto;
209
- background-color: var(--color_input_background_color) !important;
210
- border-color: var(--color_input_border_color) !important;
211
-
212
- &::placeholder {
213
- color: var(--color_text_input_hints);
214
- }
215
- }
216
-
217
- button:last-of-type {
218
- margin-top: 20px;
219
- }
220
- }
221
-
222
- &--reassign {
223
- text-align: center;
224
- padding: 0 10%;
225
-
226
- p {
227
- font-size: 16px;
228
- margin: 20px 0 20px;
229
- padding: 0 15%;
230
- }
231
-
232
- p.error-label {
233
- width: 60%;
234
- margin: 0px auto 5px auto;
235
- padding: 0;
236
- font-size: 14px;
237
- text-align: left;
238
- }
239
-
240
- .ticket-popup-separator {
241
- display: table;
242
- margin: 25px 0;
243
- width: 90%;
244
- margin-left: auto;
245
- margin-right: auto;
246
-
247
- div {
248
- display: table-cell;
249
- vertical-align: middle;
250
- width: 40%;
251
- }
252
-
253
- span {
254
- display: table-cell;
255
- padding: 0 5px;
256
- vertical-align: middle;
257
- white-space: nowrap;
258
- }
259
- }
260
-
261
- .form-control {
262
- width: 60%;
263
- margin: 25px auto 5px auto;
264
- background-color: var(--color_input_background_color) !important;
265
- border-color: var(--color_input_border_color) !important;
266
-
267
- &::placeholder {
268
- color: var(--color_text_input_hints);
269
- }
270
- }
271
-
272
- .ticket-popup-clean {
273
- margin-bottom: 30px;
274
- }
275
-
276
- button:last-of-type {
277
- margin-top: 20px;
278
- }
279
- }
280
-
281
- &--edit {
282
- .ticket-popup-footer {
283
- border-top: 1px solid var(--color_gray_lighter);
284
- left: 0;
285
- bottom: 0;
286
- height: 60px;
287
- padding: 10px 0;
288
- position: absolute;
289
- text-align: center;
290
- width: 100%;
291
- background-color: var(--color_background_light);
292
- z-index: 25;
293
-
294
-
295
- button {
296
- padding: 8px 26px;
297
- line-height: 22px;
298
- font-size: 16px;
299
- color: var(--color_input_text_color) !important;
300
- background-color: var(--color_input_background_color) !important;
301
- border-color: var(--color_input_border_color) !important;
302
- }
303
- }
304
-
305
- .ticket-popup-cancel-ticket {
306
- color: $color-danger;
307
- cursor: pointer;
308
- }
309
- }
310
-
311
- &--notify {
312
- padding: 20px;
313
- text-align: center;
314
-
315
- p {
316
- font-size: 16px;
317
- margin: 20px 0;
318
- padding: 0 15%;
319
- }
320
-
321
- button {
322
- padding: 8px 22px;
323
- line-height: 22px;
324
- font-size: 16px;
325
- margin-top: 15px;
326
- }
327
- }
328
-
329
- &--refund {
330
- padding: 0 10%;
331
- }
332
- }
333
-
334
- .ticket-refund-button {
335
- border: 1px solid $color-gray-light;
336
- margin-top: 20px;
337
- padding: 15px;
338
- font-weight: bold;
339
- margin-right: auto;
340
- margin-left: auto;
341
-
342
- @media screen and (min-width: 768px) {
343
- width: 50%;
344
- }
345
-
346
- a {
347
- line-height: 2em;
348
- cursor: pointer;
349
- }
350
-
351
- .cancel {
352
- color: $color-danger;
353
- }
354
-
355
- .info {
356
- font-weight: normal;
357
-
358
- h4 {
359
- font-weight: bold;
360
- }
361
-
362
- .role-badge {
363
- text-transform: uppercase;
364
- }
365
- }
366
-
367
- &:empty {
368
- display: none;
369
- }
370
- }
371
-
372
- @media (max-width: 768px) {
373
- .ticket-popup-content {
374
- left: 0%;
375
- }
376
-
377
- .ticket-popup-header {
378
- .ticket-popup-icons {
379
- width: 90px;
380
-
381
- i {
382
- margin-left: 10px;
383
- }
384
- }
385
- }
386
-
387
- .ticket-popup-panel--refund {
388
- padding: 0;
389
- }
390
-
391
- .ticket-popup-panel--assign {
392
- padding: 0px;
393
-
394
- p {
395
- margin: 30px 0 20px;
396
- }
397
-
398
- span {
399
- padding: 0 15%;
400
- display: inline-block;
401
- }
402
- }
403
-
404
- .ticket-popup-panel--reassign {
405
- padding: 0px;
406
-
407
- p {
408
- margin: 30px 0 20px;
409
- }
410
-
411
- span {
412
- padding: 0 15%;
413
- display: inline-block;
414
- }
415
- }
416
- }
@@ -1,24 +0,0 @@
1
- import React, { createContext, useContext, useCallback } from 'react';
2
-
3
- export const TicketAssignedContext = createContext(null);
4
-
5
- export const TicketAssignedProvider = ({ children, onTicketAssigned }) => {
6
-
7
- const onTicketAssignChange = useCallback((ticket) => {
8
- onTicketAssigned(ticket);
9
- }, []);
10
-
11
- return (
12
- <TicketAssignedContext.Provider value={{ onTicketAssignChange }}>
13
- {children}
14
- </TicketAssignedContext.Provider>
15
- );
16
- };
17
-
18
- export const useTicketAssignedContext = () => {
19
- const context = useContext(TicketAssignedContext);
20
-
21
- if (!context) throw new Error('useTicketAssignedContext must be used within a TicketAssignedProvider');
22
-
23
- return { ...context };
24
- };
@@ -1,10 +0,0 @@
1
- export const stepDefs = ['start', 'details', 'checkout', 'extra', 'done'];
2
-
3
- export const STATUS_COMPLETE = 'STATUS_COMPLETE';
4
- export const STATUS_INCOMPLETE = 'STATUS_INCOMPLETE';
5
- export const STATUS_PENDING = 'STATUS_PENDING';
6
- export const STATUS_CANCELLED = 'STATUS_CANCELLED';
7
- export const STATUS_ERROR = 'STATUS_ERROR';
8
- export const STATUS_PROCESSING = 'STATUS_PROCESSING';
9
- export const STATUS_UNASSIGNED = 'STATUS_UNASSIGNED';
10
-
@@ -1,37 +0,0 @@
1
- import i18n from 'i18next';
2
- import { initReactI18next } from 'react-i18next';
3
- import LanguageDetector from 'i18next-browser-languagedetector';
4
- import en from './locales/en.json';
5
- import es from './locales/es.json';
6
-
7
- // import Backend from 'i18next-http-backend';
8
- // don't want to use this?
9
- // have a look at the Quick start guide
10
- // for passing in lng and translations on init
11
-
12
- i18n
13
- // load translation using http -> see /public/locales (i.e. https://github.com/i18next/react-i18next/tree/master/example/react/public/locales)
14
- // learn more: https://github.com/i18next/i18next-http-backend
15
- // want your translations to be loaded from a professional CDN? => https://github.com/locize/react-tutorial#step-2---use-the-locize-cdn
16
- // .use(Backend)
17
- // detect user language
18
- // learn more: https://github.com/i18next/i18next-browser-languageDetector
19
- .use(LanguageDetector)
20
- // pass the i18n instance to react-i18next.
21
- .use(initReactI18next)
22
- // init i18next
23
- // for all options read: https://www.i18next.com/overview/configuration-options
24
- .init({
25
- fallbackLng: 'en',
26
- debug: true,
27
- resources: {
28
- en: { translation: en },
29
- es: { translation: es }
30
- },
31
- interpolation: {
32
- escapeValue: false, // not needed for react as it escapes by default
33
- }
34
- });
35
-
36
-
37
- export default i18n;