@eventlook/sdk 1.5.0 → 1.5.1-beta.0

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 (34) hide show
  1. package/dist/cjs/{index-CUIxdwQn.js → index-CMWC53WV.js} +110 -10
  2. package/dist/cjs/{index-CUIxdwQn.js.map → index-CMWC53WV.js.map} +1 -1
  3. package/dist/cjs/index.js +1 -1
  4. package/dist/cjs/{index.umd-BoFEW91M.js → index.umd-DidY0wcP.js} +2 -2
  5. package/dist/cjs/{index.umd-BoFEW91M.js.map → index.umd-DidY0wcP.js.map} +1 -1
  6. package/dist/esm/{index-fvLIN6eP.js → index-Ckv5Hgla.js} +110 -10
  7. package/dist/esm/{index-fvLIN6eP.js.map → index-Ckv5Hgla.js.map} +1 -1
  8. package/dist/esm/index.js +1 -1
  9. package/dist/esm/{index.umd-BKBHcCnm.js → index.umd-B1DMUAwm.js} +2 -2
  10. package/dist/esm/{index.umd-bIV_YpEF.js.map → index.umd-B1DMUAwm.js.map} +1 -1
  11. package/dist/types/locales/cs.d.ts +5 -1
  12. package/dist/types/locales/en.d.ts +5 -1
  13. package/dist/types/locales/es.d.ts +5 -1
  14. package/dist/types/locales/pl.d.ts +5 -1
  15. package/dist/types/locales/sk.d.ts +5 -1
  16. package/dist/types/locales/uk.d.ts +5 -1
  17. package/package.json +1 -1
  18. package/src/form/PaymentOverviewBox.tsx +14 -12
  19. package/src/form/services/index.tsx +72 -37
  20. package/src/locales/cs.tsx +12 -2
  21. package/src/locales/en.tsx +12 -2
  22. package/src/locales/es.tsx +12 -2
  23. package/src/locales/pl.tsx +12 -2
  24. package/src/locales/sk.tsx +12 -2
  25. package/src/locales/uk.tsx +12 -2
  26. package/.claude/settings.local.json +0 -13
  27. package/dist/cjs/index-D5rQiSGP.js +0 -38574
  28. package/dist/cjs/index-D5rQiSGP.js.map +0 -1
  29. package/dist/cjs/index.umd-BzSM62qM.js +0 -13397
  30. package/dist/cjs/index.umd-BzSM62qM.js.map +0 -1
  31. package/dist/esm/index-Cm7V8Zl3.js +0 -38571
  32. package/dist/esm/index-Cm7V8Zl3.js.map +0 -1
  33. package/dist/esm/index.umd-BKBHcCnm.js.map +0 -1
  34. package/dist/esm/index.umd-bIV_YpEF.js +0 -13395
@@ -118,7 +118,11 @@ declare const cs: {
118
118
  label: string;
119
119
  per_ticket: string;
120
120
  modal: {
121
- description: string;
121
+ description: string[];
122
+ links: {
123
+ insurance: string;
124
+ info: string;
125
+ };
122
126
  coverage: string;
123
127
  price: string;
124
128
  };
@@ -119,7 +119,11 @@ declare const en: {
119
119
  per_ticket: string;
120
120
  modal: {
121
121
  title: string;
122
- description: string;
122
+ description: string[];
123
+ links: {
124
+ insurance: string;
125
+ info: string;
126
+ };
123
127
  coverage: string;
124
128
  price: string;
125
129
  };
@@ -119,7 +119,11 @@ declare const es: {
119
119
  per_ticket: string;
120
120
  modal: {
121
121
  title: string;
122
- description: string;
122
+ description: string[];
123
+ links: {
124
+ insurance: string;
125
+ info: string;
126
+ };
123
127
  coverage: string;
124
128
  price: string;
125
129
  };
@@ -119,7 +119,11 @@ declare const pl: {
119
119
  per_ticket: string;
120
120
  modal: {
121
121
  title: string;
122
- description: string;
122
+ description: string[];
123
+ links: {
124
+ insurance: string;
125
+ info: string;
126
+ };
123
127
  coverage: string;
124
128
  price: string;
125
129
  };
@@ -119,7 +119,11 @@ declare const sk: {
119
119
  per_ticket: string;
120
120
  modal: {
121
121
  title: string;
122
- description: string;
122
+ description: string[];
123
+ links: {
124
+ insurance: string;
125
+ info: string;
126
+ };
123
127
  coverage: string;
124
128
  price: string;
125
129
  };
@@ -119,7 +119,11 @@ declare const uk: {
119
119
  per_ticket: string;
120
120
  modal: {
121
121
  title: string;
122
- description: string;
122
+ description: string[];
123
+ links: {
124
+ insurance: string;
125
+ info: string;
126
+ };
123
127
  coverage: string;
124
128
  price: string;
125
129
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eventlook/sdk",
3
- "version": "1.5.0",
3
+ "version": "1.5.1-beta.0",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -487,18 +487,20 @@ const PaymentOverviewBox: React.FC<Props> = ({ event, withoutPadding, hideBuyBut
487
487
 
488
488
  {!!selectedTickets.length && (
489
489
  <Stack spacing={0.5}>
490
- {/* TODO: Uncomment this when Colonnade response - must update terms and conditions and email info */}
491
- {/*<PaymentOverviewCheckbox*/}
492
- {/* checkboxName="ticketInsurance"*/}
493
- {/* label={t('event.tickets.insurance.label')}*/}
494
- {/* value={*/}
495
- {/* <>*/}
496
- {/* {ticketInsurance && totalItemCount.totalTickets > 0 ? '' : '+ '}*/}
497
- {/* {fCurrency(ticketInsurancePricePerUnit, lang, event.currency)} /{' '}*/}
498
- {/* {t('event.tickets.insurance.per_ticket')}*/}
499
- {/* </>*/}
500
- {/* }*/}
501
- {/*/>*/}
490
+ <PaymentOverviewCheckbox
491
+ checkboxName="ticketInsurance"
492
+ label={`${totalItemCount.totalTickets}x ${t('event.tickets.insurance.label')}`}
493
+ value={
494
+ <>
495
+ {ticketInsurance && totalItemCount.totalTickets > 0 ? '' : '+ '}
496
+ {fCurrency(
497
+ ticketInsurancePricePerUnit * totalItemCount.totalTickets,
498
+ lang,
499
+ event.currency
500
+ )}
501
+ </>
502
+ }
503
+ />
502
504
  <PaymentOverviewCheckbox
503
505
  checkboxName="smsNotification"
504
506
  label={t('event.tickets.sms_notification.label')}
@@ -1,4 +1,4 @@
1
- import React, { useMemo, useState } from 'react';
1
+ import React, { useEffect, useMemo, useState } from 'react';
2
2
  import {
3
3
  Box,
4
4
  Button,
@@ -19,6 +19,7 @@ import useGlobal from '@hooks/useGlobal';
19
19
  import { Iconify } from '@components';
20
20
  import { ITicketForm, ITicketFormTicket } from '@utils/types/ticket.type';
21
21
  import { IEvent } from '@utils/types/event.type';
22
+ import { Trans } from '@components/Trans';
22
23
 
23
24
  interface Props {
24
25
  event: IEvent;
@@ -119,6 +120,15 @@ const Services: React.FC<Props> = ({ event }) => {
119
120
  return items.reduce((sum, ticket) => sum + (Number(ticket.quantity) || 0), 0);
120
121
  }, [tickets]);
121
122
 
123
+ const { setValue } = useFormContext<ITicketForm>();
124
+
125
+ useEffect(() => {
126
+ if (totalTickets <= 0) {
127
+ setValue('ticketInsurance', false);
128
+ setValue('smsNotification', false);
129
+ }
130
+ }, [totalTickets]);
131
+
122
132
  const handleOpen = (e: React.MouseEvent<HTMLAnchorElement>) => {
123
133
  e.preventDefault();
124
134
  setOpen(true);
@@ -137,18 +147,18 @@ const Services: React.FC<Props> = ({ event }) => {
137
147
 
138
148
  return (
139
149
  <Stack spacing={1}>
140
- {/*<BorderedCheckbox*/}
141
- {/* name="ticketInsurance"*/}
142
- {/* disabled={false}*/}
143
- {/* title={t('event.tickets.insurance.label')}*/}
144
- {/* price={*/}
145
- {/* <>*/}
146
- {/* + {fCurrency(ticketInsurancePricePerUnit, lang, event.currency)} /{' '}*/}
147
- {/* {t('event.tickets.insurance.per_ticket')}*/}
148
- {/* </>*/}
149
- {/* }*/}
150
- {/* onChange={handleServiceChange}*/}
151
- {/*/>*/}
150
+ <BorderedCheckbox
151
+ name="ticketInsurance"
152
+ disabled={false}
153
+ title={t('event.tickets.insurance.label')}
154
+ price={
155
+ <>
156
+ + {fCurrency(ticketInsurancePricePerUnit, lang, event.currency)} /{' '}
157
+ {t('event.tickets.insurance.per_ticket')}
158
+ </>
159
+ }
160
+ onChange={handleServiceChange}
161
+ />
152
162
 
153
163
  <BorderedCheckbox
154
164
  name="smsNotification"
@@ -198,30 +208,55 @@ const Services: React.FC<Props> = ({ event }) => {
198
208
  </DialogTitle>
199
209
  <DialogContent sx={{ px: { xs: 3, sm: 4 }, pb: { xs: 4, sm: 5 } }}>
200
210
  <Stack spacing={3}>
201
- {/*<Box>*/}
202
- {/* <Typography variant="subtitle2" fontWeight={700} gutterBottom>*/}
203
- {/* {t('event.tickets.insurance.label')}*/}
204
- {/* </Typography>*/}
205
- {/* <Typography variant="body2" paragraph>*/}
206
- {/* {t('event.tickets.insurance.modal.description')}*/}
207
- {/* </Typography>*/}
208
- {/* <Typography variant="body2" paragraph>*/}
209
- {/* {t('event.tickets.insurance.modal.coverage')}*/}
210
- {/* </Typography>*/}
211
- {/* <BorderedCheckbox*/}
212
- {/* name="ticketInsurance"*/}
213
- {/* disabled={false}*/}
214
- {/* title={t('event.tickets.insurance.label')}*/}
215
- {/* price={*/}
216
- {/* <>*/}
217
- {/* + {fCurrency(ticketInsurancePricePerUnit, lang, event.currency)} /{' '}*/}
218
- {/* {t('event.tickets.insurance.per_ticket')}*/}
219
- {/* </>*/}
220
- {/* }*/}
221
- {/* onChange={handleServiceChange}*/}
222
- {/* />*/}
223
- {/*</Box>*/}
224
- {/*<Divider />*/}
211
+ <Box>
212
+ {(t('event.tickets.insurance.modal.description') as any).map((item: string) => (
213
+ <Typography key={item} variant="body2" paragraph>
214
+ {item}
215
+ </Typography>
216
+ ))}
217
+ <Typography variant="body2" paragraph>
218
+ <Trans
219
+ text="event.tickets.insurance.modal.links.insurance"
220
+ components={{
221
+ 0: (
222
+ <Link
223
+ href="https://eventigo.s3-central.vshosting.cloud/production/colonnade/pp-storno-cz-eventlook-012026.pdf"
224
+ target="_blank"
225
+ />
226
+ ),
227
+ }}
228
+ />
229
+ </Typography>
230
+ <Typography variant="body2" paragraph>
231
+ <Trans
232
+ text="event.tickets.insurance.modal.links.info"
233
+ components={{
234
+ 0: (
235
+ <Link
236
+ href="https://eventigo.s3-central.vshosting.cloud/production/colonnade/ipid-storno-cz-112025.pdf"
237
+ target="_blank"
238
+ />
239
+ ),
240
+ }}
241
+ />
242
+ </Typography>
243
+ <Typography variant="body2" paragraph>
244
+ {t('event.tickets.insurance.modal.coverage')}
245
+ </Typography>
246
+ <BorderedCheckbox
247
+ name="ticketInsurance"
248
+ disabled={false}
249
+ title={t('event.tickets.insurance.label')}
250
+ price={
251
+ <>
252
+ + {fCurrency(ticketInsurancePricePerUnit, lang, event.currency)} /{' '}
253
+ {t('event.tickets.insurance.per_ticket')}
254
+ </>
255
+ }
256
+ onChange={handleServiceChange}
257
+ />
258
+ </Box>
259
+ <Divider />
225
260
  <Box>
226
261
  <Typography variant="subtitle2" fontWeight={700} gutterBottom>
227
262
  {t('event.tickets.sms_notification.label')}
@@ -122,8 +122,18 @@ const cs = {
122
122
  label: 'Pojištění vstupenek',
123
123
  per_ticket: 'ks',
124
124
  modal: {
125
- description:
126
- 'Pojištění vstupenek Vám poskytuje ochranu v případě, že se nebudete moci zúčastnit akce z důvodu nemoci, úrazu nebo jiných nepředvídatelných událostí.',
125
+ description: [
126
+ 'Pojištění stornopoplatků Vám poskytuje ochranu v případě nečekaných událostí, které Vám znemožní účast na akci. Díky pojištění můžete předejít peněžním ztrátám. Obdržíte zpět peníze za vstupenku, pokud se nemůžete zúčastnit akce, zejména z důvodu:',
127
+ '- Vašeho úrazu nebo nemoci',
128
+ '- Úrazu nebo nemoci rodinného příslušníka, o kterého se musíte postarat',
129
+ '- Nařízené karantény',
130
+ '- Uvedeného v pojistných podmínkách, kdy zruší účast přátelé, se kterými jste zakoupili vstupenku společně, pokud byste se dané akce museli zúčastnit sami.',
131
+ 'Přehled všech událostí, kdy vzniká nárok na vrácení vstupného, a kompletní informace k pojištění naleznete zde:',
132
+ ],
133
+ links: {
134
+ insurance: 'Pojistné podmínky <0>PP STORNO CZ Eventlook 01/2026</0>',
135
+ info: 'Informace o pojistném produktu <0>IPID STORNO CZ 11/2025</0>',
136
+ },
127
137
  coverage:
128
138
  'Pojištění pokrývá: nemoc, úraz, náhlá hospitalizace, karanténa nebo jiné nepředvídatelné události, které Vám zabrání v účasti na akci.',
129
139
  price: 'Cena pojištění',
@@ -123,8 +123,18 @@ const en = {
123
123
  per_ticket: 'pc',
124
124
  modal: {
125
125
  title: 'Ticket Insurance',
126
- description:
127
- 'Ticket insurance provides you with protection in case you cannot attend the event due to illness, injury, or other unforeseen circumstances.',
126
+ description: [
127
+ 'Cancellation fee insurance provides you with protection in case of unexpected events that prevent you from attending the event. With insurance, you can avoid financial losses. You will receive a refund for the ticket if you cannot attend the event, especially due to:',
128
+ '- Your injury or illness',
129
+ '- Injury or illness of a family member you need to take care of',
130
+ '- Ordered quarantine',
131
+ '- As stated in the insurance conditions, when friends with whom you purchased the ticket together cancel their attendance, if you would have to attend the event alone.',
132
+ 'An overview of all events when you are entitled to a ticket refund and complete insurance information can be found here:',
133
+ ],
134
+ links: {
135
+ insurance: 'Insurance conditions <0>PP STORNO CZ Eventlook 01/2026</0>',
136
+ info: 'Insurance product information <0>IPID STORNO CZ 11/2025</0>',
137
+ },
128
138
  coverage:
129
139
  'Insurance covers: illness, injury, sudden hospitalization, quarantine, or other unforeseen events that prevent you from attending the event.',
130
140
  price: 'Insurance price',
@@ -123,8 +123,18 @@ const es = {
123
123
  per_ticket: 'pc',
124
124
  modal: {
125
125
  title: 'Seguro de entrada',
126
- description:
127
- 'El seguro de entradas te ofrece protección en caso de que no puedas asistir al evento debido a enfermedad, lesión u otras circunstancias imprevistas.',
126
+ description: [
127
+ 'El seguro de gastos de cancelación te ofrece protección en caso de eventos inesperados que te impidan asistir al evento. Gracias al seguro, puedes evitar pérdidas económicas. Recibirás un reembolso por la entrada si no puedes asistir al evento, especialmente por:',
128
+ '- Tu lesión o enfermedad',
129
+ '- Lesión o enfermedad de un familiar que necesitas cuidar',
130
+ '- Cuarentena obligatoria',
131
+ '- Lo indicado en las condiciones del seguro, cuando los amigos con los que compraste la entrada conjuntamente cancelen su asistencia, si tuvieras que asistir al evento solo.',
132
+ 'Un resumen de todos los eventos en los que tienes derecho a un reembolso de la entrada e información completa sobre el seguro se puede encontrar aquí:',
133
+ ],
134
+ links: {
135
+ insurance: 'Condiciones del seguro <0>PP STORNO CZ Eventlook 01/2026</0>',
136
+ info: 'Información del producto de seguro <0>IPID STORNO CZ 11/2025</0>',
137
+ },
128
138
  coverage:
129
139
  'El seguro cubre: enfermedad, lesión, hospitalización repentina, cuarentena u otros acontecimientos imprevistos que te impidan asistir al evento.',
130
140
  price: 'Precio del seguro',
@@ -123,8 +123,18 @@ const pl = {
123
123
  per_ticket: 'pc',
124
124
  modal: {
125
125
  title: 'Ubezpieczenie biletów',
126
- description:
127
- 'Ubezpieczenie biletów zapewnia ochronę w przypadku, gdy nie będziesz mógł wziąć udziału w wydarzeniu z powodu choroby, kontuzji lub innych nieprzewidzianych okoliczności.',
126
+ description: [
127
+ 'Ubezpieczenie opłat za anulowanie zapewnia ochronę w przypadku nieoczekiwanych zdarzeń, które uniemożliwią Ci udział w wydarzeniu. Dzięki ubezpieczeniu możesz uniknąć strat finansowych. Otrzymasz zwrot pieniędzy za bilet, jeśli nie możesz wziąć udziału w wydarzeniu, szczególnie z powodu:',
128
+ '- Twojego urazu lub choroby',
129
+ '- Urazu lub choroby członka rodziny, którym musisz się opiekować',
130
+ '- Nakazanej kwarantanny',
131
+ '- Określonego w warunkach ubezpieczenia, gdy znajomi, z którymi wspólnie kupiliście bilet, zrezygnują z udziału, jeśli musielibyście uczestniczyć w wydarzeniu sami.',
132
+ 'Przegląd wszystkich zdarzeń, w których przysługuje zwrot za bilet, oraz pełne informacje o ubezpieczeniu znajdziesz tutaj:',
133
+ ],
134
+ links: {
135
+ insurance: 'Warunki ubezpieczenia <0>PP STORNO CZ Eventlook 01/2026</0>',
136
+ info: 'Informacje o produkcie ubezpieczeniowym <0>IPID STORNO CZ 11/2025</0>',
137
+ },
128
138
  coverage:
129
139
  'Ubezpieczenie obejmuje: chorobę, kontuzję, nagłe hospitalizacje, kwarantannę lub inne nieprzewidziane zdarzenia uniemożliwiające uczestnictwo w wydarzeniu.',
130
140
  price: 'Cena ubezpieczenia',
@@ -123,8 +123,18 @@ const sk = {
123
123
  per_ticket: 'pc',
124
124
  modal: {
125
125
  title: 'Poistenie vstupenky',
126
- description:
127
- 'Poistenie vstupenky vám poskytuje ochranu v prípade, že sa nemôžete zúčastniť podujatia z dôvodu choroby, zranenia alebo iných nepredvídaných okolností.',
126
+ description: [
127
+ 'Poistenie stornopoplatkov Vám poskytuje ochranu v prípade nečakaných udalostí, ktoré Vám znemožnia účasť na akcii. Vďaka poisteniu môžete predísť peňažným stratám. Dostanete späť peniaze za vstupenku, ak sa nemôžete zúčastniť akcie, najmä z dôvodu:',
128
+ '- Vášho úrazu alebo choroby',
129
+ '- Úrazu alebo choroby rodinného príslušníka, o ktorého sa musíte postarať',
130
+ '- Nariadenej karantény',
131
+ '- Uvedeného v poistných podmienkach, keď zrušia účasť priatelia, s ktorými ste zakúpili vstupenku spoločne, ak by ste sa danej akcie museli zúčastniť sami.',
132
+ 'Prehľad všetkých udalostí, kedy vzniká nárok na vrátenie vstupného, a kompletné informácie k poisteniu nájdete tu:',
133
+ ],
134
+ links: {
135
+ insurance: 'Poistné podmienky <0>PP STORNO CZ Eventlook 01/2026</0>',
136
+ info: 'Informácie o poistnom produkte <0>IPID STORNO CZ 11/2025</0>',
137
+ },
128
138
  coverage:
129
139
  'Poistenie kryje: chorobu, zranenie, náhlu hospitalizáciu, karanténu alebo iné nepredvídané udalosti, ktoré vám zabránia zúčastniť sa podujatia.',
130
140
  price: 'Cena poistenia',
@@ -123,8 +123,18 @@ const uk = {
123
123
  per_ticket: 'pc',
124
124
  modal: {
125
125
  title: 'Страхування квитка',
126
- description:
127
- 'Страхування квитка захищає вас у випадку, якщо ви не зможете відвідати подію через хворобу, травму або інші непередбачені обставини.',
126
+ description: [
127
+ 'Страхування від скасування забезпечує вам захист у разі несподіваних подій, які унеможливлюють вашу участь у заході. Завдяки страхуванню ви можете уникнути фінансових втрат. Ви отримаєте повернення коштів за квиток, якщо не зможете відвідати захід, зокрема через:',
128
+ '- Вашу травму або хворобу',
129
+ '- Травму або хворобу члена сім\'ї, за яким потрібно доглядати',
130
+ '- Призначений карантин',
131
+ '- Зазначене у страхових умовах, коли друзі, з якими ви придбали квиток спільно, скасують участь, якщо вам довелося б відвідати захід на самоті.',
132
+ 'Огляд усіх подій, за яких виникає право на повернення вартості квитка, та повну інформацію про страхування можна знайти тут:',
133
+ ],
134
+ links: {
135
+ insurance: 'Страхові умови <0>PP STORNO CZ Eventlook 01/2026</0>',
136
+ info: 'Інформація про страховий продукт <0>IPID STORNO CZ 11/2025</0>',
137
+ },
128
138
  coverage:
129
139
  'Страхування покриває: хворобу, травму, раптову госпіталізацію, карантин або інші непередбачені події, які перешкоджають вашій участі у заході.',
130
140
  price: 'Ціна страхування',
@@ -1,13 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(yarn build:*)",
5
- "Bash(GITLAB_TOKEN=dummy npx rollup:*)",
6
- "Bash(GITLAB_TOKEN=dummy yarn install:*)",
7
- "Bash(GITLAB_TOKEN=dummy npx eslint:*)",
8
- "Bash(GITLAB_TOKEN=dummy npx:*)",
9
- "Bash(GITLAB_TOKEN=dummy yarn build:*)",
10
- "Bash(GITLAB_TOKEN=dummy yarn lint:*)"
11
- ]
12
- }
13
- }