@mrfylke/contact-form 0.1.25 → 0.1.27
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/README.md +41 -13
- package/lib/ContactFormRoot.d.ts.map +1 -1
- package/lib/ContactFormRoot.js +4 -3
- package/lib/components/icon/generated-icons.d.ts +26 -26
- package/lib/components/icon/generated-icons.js +108 -108
- package/lib/contact.module.css +0 -9
- package/lib/group-travel/index.d.ts.map +1 -1
- package/lib/group-travel/index.js +1 -2
- package/lib/index.d.ts +2 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +3 -2
- package/lib/journey-info/index.d.ts.map +1 -1
- package/lib/journey-info/index.js +10 -8
- package/lib/journey-info/journeyInfoStateMachine.d.ts +2 -2
- package/lib/journey-info/journeyInfoStateMachine.d.ts.map +1 -1
- package/lib/journey-info/journeyInfoStateMachine.js +1 -1
- package/lib/layouts/contact-pages.js +1 -1
- package/lib/lost-property/LostPropertyMachine.d.ts +2 -2
- package/lib/lost-property/LostPropertyMachine.d.ts.map +1 -1
- package/lib/lost-property/LostPropertyMachine.js +1 -1
- package/lib/lost-property-external/index.d.ts.map +1 -1
- package/lib/lost-property-external/index.js +1 -2
- package/lib/means-of-transport/forms/serviceOfferingForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/serviceOfferingForm.js +3 -1
- package/lib/means-of-transport/index.d.ts.map +1 -1
- package/lib/means-of-transport/index.js +8 -2
- package/lib/means-of-transport/means-of-transport-form-machine.d.ts +4 -2
- package/lib/means-of-transport/means-of-transport-form-machine.d.ts.map +1 -1
- package/lib/means-of-transport/means-of-transport-form-machine.js +9 -3
- package/lib/modules/config/context.d.ts +8 -1
- package/lib/modules/config/context.d.ts.map +1 -1
- package/lib/modules/config/context.js +7 -1
- package/lib/modules/config/default-submit.d.ts +3 -0
- package/lib/modules/config/default-submit.d.ts.map +1 -0
- package/lib/modules/config/default-submit.js +13 -0
- package/lib/modules/config/index.d.ts +1 -0
- package/lib/modules/config/index.d.ts.map +1 -1
- package/lib/modules/config/index.js +1 -0
- package/lib/modules/config/types.d.ts +52 -25
- package/lib/modules/config/types.d.ts.map +1 -1
- package/lib/modules/org-data/index.d.ts +1 -2
- package/lib/modules/org-data/index.d.ts.map +1 -1
- package/lib/modules/org-data/index.js +1 -2
- package/lib/refund/forms/refund-and-travel-guarantee/index.d.ts.map +1 -1
- package/lib/refund/forms/refund-and-travel-guarantee/index.js +1 -1
- package/lib/refund/forms/refund-and-travel-guarantee/refundCarForm.d.ts.map +1 -1
- package/lib/refund/forms/refund-and-travel-guarantee/refundCarForm.js +1 -1
- package/lib/refund/forms/refund-ticket/appTicketRefund.d.ts.map +1 -1
- package/lib/refund/forms/refund-ticket/appTicketRefund.js +18 -2
- package/lib/refund/forms/refund-ticket/index.d.ts.map +1 -1
- package/lib/refund/forms/refund-ticket/index.js +1 -1
- package/lib/refund/forms/refund-ticket/otherTicketRefund.d.ts.map +1 -1
- package/lib/refund/forms/refund-ticket/otherTicketRefund.js +19 -3
- package/lib/refund/forms/residualValueOnTravelCard/index.d.ts.map +1 -1
- package/lib/refund/forms/residualValueOnTravelCard/index.js +1 -2
- package/lib/refund/index.d.ts.map +1 -1
- package/lib/refund/index.js +9 -0
- package/lib/refund/refundFormMachine.d.ts +11 -2
- package/lib/refund/refundFormMachine.d.ts.map +1 -1
- package/lib/refund/refundFormMachine.js +24 -2
- package/lib/server/index.d.ts +1 -0
- package/lib/server/index.d.ts.map +1 -1
- package/lib/server/index.js +3 -1
- package/lib/server/submit-route-handler.d.ts +20 -0
- package/lib/server/submit-route-handler.d.ts.map +1 -0
- package/lib/server/submit-route-handler.js +62 -0
- package/lib/ticket-control/forms/feeComplaintForm.d.ts.map +1 -1
- package/lib/ticket-control/forms/feeComplaintForm.js +2 -2
- package/lib/ticket-control/forms/postponePayment.d.ts.map +1 -1
- package/lib/ticket-control/forms/postponePayment.js +2 -2
- package/lib/ticket-control/index.d.ts.map +1 -1
- package/lib/ticket-control/index.js +2 -0
- package/lib/ticket-control/ticket-control-form-machine.d.ts +5 -2
- package/lib/ticket-control/ticket-control-form-machine.d.ts.map +1 -1
- package/lib/ticket-control/ticket-control-form-machine.js +14 -4
- package/lib/ticketing/forms/travel-card/orderTravelCard.d.ts.map +1 -1
- package/lib/ticketing/forms/travel-card/orderTravelCard.js +1 -1
- package/lib/ticketing/ticketingStateMachine.d.ts +2 -2
- package/lib/ticketing/ticketingStateMachine.d.ts.map +1 -1
- package/lib/translations/commons.d.ts +1 -0
- package/lib/translations/commons.d.ts.map +1 -1
- package/lib/translations/commons.js +4 -4
- package/lib/translations/index.d.ts +2 -6
- package/lib/translations/index.d.ts.map +1 -1
- package/lib/translations/index.js +1 -9
- package/lib/translations/language-context.d.ts +0 -8
- package/lib/translations/language-context.d.ts.map +1 -1
- package/lib/translations/language-context.js +1 -31
- package/lib/translations/merge-overrides.d.ts +1 -7
- package/lib/translations/merge-overrides.d.ts.map +1 -1
- package/lib/translations/merge-overrides.js +1 -13
- package/lib/translations/pages/contact.d.ts +9 -4
- package/lib/translations/pages/contact.d.ts.map +1 -1
- package/lib/translations/pages/contact.js +10 -5
- package/lib/translations/server/endpoints.d.ts +0 -62
- package/lib/translations/server/endpoints.d.ts.map +1 -1
- package/lib/translations/server/endpoints.js +0 -62
- package/lib/translations/types.d.ts +0 -6
- package/lib/translations/types.d.ts.map +1 -1
- package/lib/types/submit-payloads.d.ts +2 -0
- package/lib/types/submit-payloads.d.ts.map +1 -1
- package/package.json +1 -1
- package/lib/translations/common/index.d.ts +0 -3
- package/lib/translations/common/index.d.ts.map +0 -1
- package/lib/translations/common/index.js +0 -7
- package/lib/translations/common/layout.d.ts +0 -8
- package/lib/translations/common/layout.d.ts.map +0 -1
- package/lib/translations/common/layout.js +0 -11
- package/lib/translations/common/titles.d.ts +0 -4
- package/lib/translations/common/titles.d.ts.map +0 -1
- package/lib/translations/common/titles.js +0 -7
- package/lib/translations/json-to-override.d.ts +0 -19
- package/lib/translations/json-to-override.d.ts.map +0 -1
- package/lib/translations/json-to-override.js +0 -65
- package/lib/translations/load-org-translations.d.ts +0 -19
- package/lib/translations/load-org-translations.d.ts.map +0 -1
- package/lib/translations/load-org-translations.js +0 -23
|
@@ -6,18 +6,6 @@ exports.icons = void 0;
|
|
|
6
6
|
// NB! NB! NB!
|
|
7
7
|
exports.icons = {
|
|
8
8
|
"mono": {
|
|
9
|
-
"bonus/Star": {
|
|
10
|
-
"relative": "mono/bonus/Star.svg",
|
|
11
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/mono/bonus/Star.svg",
|
|
12
|
-
"assetType": "mono",
|
|
13
|
-
"id": "bonus/Star"
|
|
14
|
-
},
|
|
15
|
-
"bonus/StarFill": {
|
|
16
|
-
"relative": "mono/bonus/StarFill.svg",
|
|
17
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/mono/bonus/StarFill.svg",
|
|
18
|
-
"assetType": "mono",
|
|
19
|
-
"id": "bonus/StarFill"
|
|
20
|
-
},
|
|
21
9
|
"actions/Add": {
|
|
22
10
|
"relative": "mono/actions/Add.svg",
|
|
23
11
|
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/mono/actions/Add.svg",
|
|
@@ -174,6 +162,18 @@ exports.icons = {
|
|
|
174
162
|
"assetType": "mono",
|
|
175
163
|
"id": "actions/Swap"
|
|
176
164
|
},
|
|
165
|
+
"bonus/Star": {
|
|
166
|
+
"relative": "mono/bonus/Star.svg",
|
|
167
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/mono/bonus/Star.svg",
|
|
168
|
+
"assetType": "mono",
|
|
169
|
+
"id": "bonus/Star"
|
|
170
|
+
},
|
|
171
|
+
"bonus/StarFill": {
|
|
172
|
+
"relative": "mono/bonus/StarFill.svg",
|
|
173
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/mono/bonus/StarFill.svg",
|
|
174
|
+
"assetType": "mono",
|
|
175
|
+
"id": "bonus/StarFill"
|
|
176
|
+
},
|
|
177
177
|
"devices/Laptop": {
|
|
178
178
|
"relative": "mono/devices/Laptop.svg",
|
|
179
179
|
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/mono/devices/Laptop.svg",
|
|
@@ -1146,6 +1146,12 @@ exports.icons = {
|
|
|
1146
1146
|
"assetType": "mono",
|
|
1147
1147
|
"id": "transportation-entur/Walk"
|
|
1148
1148
|
},
|
|
1149
|
+
"logo/logo": {
|
|
1150
|
+
"relative": "mono/logo/logo.svg",
|
|
1151
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/mono/logo/logo.svg",
|
|
1152
|
+
"assetType": "mono",
|
|
1153
|
+
"id": "logo/logo"
|
|
1154
|
+
},
|
|
1149
1155
|
"ticketing/Travelcard": {
|
|
1150
1156
|
"relative": "mono/ticketing/Travelcard.svg",
|
|
1151
1157
|
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/mono/ticketing/Travelcard.svg",
|
|
@@ -1157,12 +1163,6 @@ exports.icons = {
|
|
|
1157
1163
|
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/mono/ticketing/TravelcardOutlined.svg",
|
|
1158
1164
|
"assetType": "mono",
|
|
1159
1165
|
"id": "ticketing/TravelcardOutlined"
|
|
1160
|
-
},
|
|
1161
|
-
"logo/logo": {
|
|
1162
|
-
"relative": "mono/logo/logo.svg",
|
|
1163
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/mono/logo/logo.svg",
|
|
1164
|
-
"assetType": "mono",
|
|
1165
|
-
"id": "logo/logo"
|
|
1166
1166
|
}
|
|
1167
1167
|
},
|
|
1168
1168
|
"images": {
|
|
@@ -1343,168 +1343,168 @@ exports.icons = {
|
|
|
1343
1343
|
"id": "logo/RichLogo"
|
|
1344
1344
|
},
|
|
1345
1345
|
"BackgroundIllustration-OnBehalfOf": {
|
|
1346
|
-
"relative": "colors/images/
|
|
1347
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/
|
|
1346
|
+
"relative": "colors/images/light/BackgroundIllustration-OnBehalfOf.svg",
|
|
1347
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/light/BackgroundIllustration-OnBehalfOf.svg",
|
|
1348
1348
|
"assetType": "colors",
|
|
1349
1349
|
"colorType": "images",
|
|
1350
1350
|
"darkable": true,
|
|
1351
1351
|
"id": "BackgroundIllustration-OnBehalfOf"
|
|
1352
1352
|
},
|
|
1353
1353
|
"BackgroundIllustration": {
|
|
1354
|
-
"relative": "colors/images/
|
|
1355
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/
|
|
1354
|
+
"relative": "colors/images/light/BackgroundIllustration.svg",
|
|
1355
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/light/BackgroundIllustration.svg",
|
|
1356
1356
|
"assetType": "colors",
|
|
1357
1357
|
"colorType": "images",
|
|
1358
1358
|
"darkable": true,
|
|
1359
1359
|
"id": "BackgroundIllustration"
|
|
1360
1360
|
},
|
|
1361
1361
|
"Beacons": {
|
|
1362
|
-
"relative": "colors/images/
|
|
1363
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/
|
|
1362
|
+
"relative": "colors/images/light/Beacons.svg",
|
|
1363
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/light/Beacons.svg",
|
|
1364
1364
|
"assetType": "colors",
|
|
1365
1365
|
"colorType": "images",
|
|
1366
1366
|
"darkable": true,
|
|
1367
1367
|
"id": "Beacons"
|
|
1368
1368
|
},
|
|
1369
1369
|
"Contact": {
|
|
1370
|
-
"relative": "colors/images/
|
|
1371
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/
|
|
1370
|
+
"relative": "colors/images/light/Contact.svg",
|
|
1371
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/light/Contact.svg",
|
|
1372
1372
|
"assetType": "colors",
|
|
1373
1373
|
"colorType": "images",
|
|
1374
1374
|
"darkable": true,
|
|
1375
1375
|
"id": "Contact"
|
|
1376
1376
|
},
|
|
1377
1377
|
"CrashSmall": {
|
|
1378
|
-
"relative": "colors/images/
|
|
1379
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/
|
|
1378
|
+
"relative": "colors/images/light/CrashSmall.svg",
|
|
1379
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/light/CrashSmall.svg",
|
|
1380
1380
|
"assetType": "colors",
|
|
1381
1381
|
"colorType": "images",
|
|
1382
1382
|
"darkable": true,
|
|
1383
1383
|
"id": "CrashSmall"
|
|
1384
1384
|
},
|
|
1385
1385
|
"EmptyIllustration": {
|
|
1386
|
-
"relative": "colors/images/
|
|
1387
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/
|
|
1386
|
+
"relative": "colors/images/light/EmptyIllustration.svg",
|
|
1387
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/light/EmptyIllustration.svg",
|
|
1388
1388
|
"assetType": "colors",
|
|
1389
1389
|
"colorType": "images",
|
|
1390
1390
|
"darkable": true,
|
|
1391
1391
|
"id": "EmptyIllustration"
|
|
1392
1392
|
},
|
|
1393
1393
|
"FlexibleTransport": {
|
|
1394
|
-
"relative": "colors/images/
|
|
1395
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/
|
|
1394
|
+
"relative": "colors/images/light/FlexibleTransport.svg",
|
|
1395
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/light/FlexibleTransport.svg",
|
|
1396
1396
|
"assetType": "colors",
|
|
1397
1397
|
"colorType": "images",
|
|
1398
1398
|
"darkable": true,
|
|
1399
1399
|
"id": "FlexibleTransport"
|
|
1400
1400
|
},
|
|
1401
1401
|
"HoldingHands": {
|
|
1402
|
-
"relative": "colors/images/
|
|
1403
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/
|
|
1402
|
+
"relative": "colors/images/light/HoldingHands.svg",
|
|
1403
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/light/HoldingHands.svg",
|
|
1404
1404
|
"assetType": "colors",
|
|
1405
1405
|
"colorType": "images",
|
|
1406
1406
|
"darkable": true,
|
|
1407
1407
|
"id": "HoldingHands"
|
|
1408
1408
|
},
|
|
1409
1409
|
"Map": {
|
|
1410
|
-
"relative": "colors/images/
|
|
1411
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/
|
|
1410
|
+
"relative": "colors/images/light/Map.svg",
|
|
1411
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/light/Map.svg",
|
|
1412
1412
|
"assetType": "colors",
|
|
1413
1413
|
"colorType": "images",
|
|
1414
1414
|
"darkable": true,
|
|
1415
1415
|
"id": "Map"
|
|
1416
1416
|
},
|
|
1417
1417
|
"MyLocation": {
|
|
1418
|
-
"relative": "colors/images/
|
|
1419
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/
|
|
1418
|
+
"relative": "colors/images/light/MyLocation.svg",
|
|
1419
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/light/MyLocation.svg",
|
|
1420
1420
|
"assetType": "colors",
|
|
1421
1421
|
"colorType": "images",
|
|
1422
1422
|
"darkable": true,
|
|
1423
1423
|
"id": "MyLocation"
|
|
1424
1424
|
},
|
|
1425
1425
|
"NoFavouriteDeparture": {
|
|
1426
|
-
"relative": "colors/images/
|
|
1427
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/
|
|
1426
|
+
"relative": "colors/images/light/NoFavouriteDeparture.svg",
|
|
1427
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/light/NoFavouriteDeparture.svg",
|
|
1428
1428
|
"assetType": "colors",
|
|
1429
1429
|
"colorType": "images",
|
|
1430
1430
|
"darkable": true,
|
|
1431
1431
|
"id": "NoFavouriteDeparture"
|
|
1432
1432
|
},
|
|
1433
1433
|
"OnBehalfOf": {
|
|
1434
|
-
"relative": "colors/images/
|
|
1435
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/
|
|
1434
|
+
"relative": "colors/images/light/OnBehalfOf.svg",
|
|
1435
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/light/OnBehalfOf.svg",
|
|
1436
1436
|
"assetType": "colors",
|
|
1437
1437
|
"colorType": "images",
|
|
1438
1438
|
"darkable": true,
|
|
1439
1439
|
"id": "OnBehalfOf"
|
|
1440
1440
|
},
|
|
1441
1441
|
"PaymentCard": {
|
|
1442
|
-
"relative": "colors/images/
|
|
1443
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/
|
|
1442
|
+
"relative": "colors/images/light/PaymentCard.svg",
|
|
1443
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/light/PaymentCard.svg",
|
|
1444
1444
|
"assetType": "colors",
|
|
1445
1445
|
"colorType": "images",
|
|
1446
1446
|
"darkable": true,
|
|
1447
1447
|
"id": "PaymentCard"
|
|
1448
1448
|
},
|
|
1449
1449
|
"ProfileCardLoggedIn": {
|
|
1450
|
-
"relative": "colors/images/
|
|
1451
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/
|
|
1450
|
+
"relative": "colors/images/light/ProfileCardLoggedIn.svg",
|
|
1451
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/light/ProfileCardLoggedIn.svg",
|
|
1452
1452
|
"assetType": "colors",
|
|
1453
1453
|
"colorType": "images",
|
|
1454
1454
|
"darkable": true,
|
|
1455
1455
|
"id": "ProfileCardLoggedIn"
|
|
1456
1456
|
},
|
|
1457
1457
|
"ProfileCardLoggedOut": {
|
|
1458
|
-
"relative": "colors/images/
|
|
1459
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/
|
|
1458
|
+
"relative": "colors/images/light/ProfileCardLoggedOut.svg",
|
|
1459
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/light/ProfileCardLoggedOut.svg",
|
|
1460
1460
|
"assetType": "colors",
|
|
1461
1461
|
"colorType": "images",
|
|
1462
1462
|
"darkable": true,
|
|
1463
1463
|
"id": "ProfileCardLoggedOut"
|
|
1464
1464
|
},
|
|
1465
1465
|
"PushNotification": {
|
|
1466
|
-
"relative": "colors/images/
|
|
1467
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/
|
|
1466
|
+
"relative": "colors/images/light/PushNotification.svg",
|
|
1467
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/light/PushNotification.svg",
|
|
1468
1468
|
"assetType": "colors",
|
|
1469
1469
|
"colorType": "images",
|
|
1470
1470
|
"darkable": true,
|
|
1471
1471
|
"id": "PushNotification"
|
|
1472
1472
|
},
|
|
1473
1473
|
"Ticket": {
|
|
1474
|
-
"relative": "colors/images/
|
|
1475
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/
|
|
1474
|
+
"relative": "colors/images/light/Ticket.svg",
|
|
1475
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/light/Ticket.svg",
|
|
1476
1476
|
"assetType": "colors",
|
|
1477
1477
|
"colorType": "images",
|
|
1478
1478
|
"darkable": true,
|
|
1479
1479
|
"id": "Ticket"
|
|
1480
1480
|
},
|
|
1481
1481
|
"TicketTilted": {
|
|
1482
|
-
"relative": "colors/images/
|
|
1483
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/
|
|
1482
|
+
"relative": "colors/images/light/TicketTilted.svg",
|
|
1483
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/light/TicketTilted.svg",
|
|
1484
1484
|
"assetType": "colors",
|
|
1485
1485
|
"colorType": "images",
|
|
1486
1486
|
"darkable": true,
|
|
1487
1487
|
"id": "TicketTilted"
|
|
1488
1488
|
},
|
|
1489
1489
|
"TicketValid": {
|
|
1490
|
-
"relative": "colors/images/
|
|
1491
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/
|
|
1490
|
+
"relative": "colors/images/light/TicketValid.svg",
|
|
1491
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/light/TicketValid.svg",
|
|
1492
1492
|
"assetType": "colors",
|
|
1493
1493
|
"colorType": "images",
|
|
1494
1494
|
"darkable": true,
|
|
1495
1495
|
"id": "TicketValid"
|
|
1496
1496
|
},
|
|
1497
1497
|
"TravelPlanning": {
|
|
1498
|
-
"relative": "colors/images/
|
|
1499
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/
|
|
1498
|
+
"relative": "colors/images/light/TravelPlanning.svg",
|
|
1499
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/light/TravelPlanning.svg",
|
|
1500
1500
|
"assetType": "colors",
|
|
1501
1501
|
"colorType": "images",
|
|
1502
1502
|
"darkable": true,
|
|
1503
1503
|
"id": "TravelPlanning"
|
|
1504
1504
|
},
|
|
1505
1505
|
"login": {
|
|
1506
|
-
"relative": "colors/images/
|
|
1507
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/
|
|
1506
|
+
"relative": "colors/images/light/login.svg",
|
|
1507
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/images/light/login.svg",
|
|
1508
1508
|
"assetType": "colors",
|
|
1509
1509
|
"colorType": "images",
|
|
1510
1510
|
"darkable": true,
|
|
@@ -1624,38 +1624,6 @@ exports.icons = {
|
|
|
1624
1624
|
"darkable": false,
|
|
1625
1625
|
"id": "actions/CloseCircle"
|
|
1626
1626
|
},
|
|
1627
|
-
"input/CheckboxChecked": {
|
|
1628
|
-
"relative": "colors/icons/input/CheckboxChecked.svg",
|
|
1629
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/icons/input/CheckboxChecked.svg",
|
|
1630
|
-
"assetType": "colors",
|
|
1631
|
-
"colorType": "icons",
|
|
1632
|
-
"darkable": false,
|
|
1633
|
-
"id": "input/CheckboxChecked"
|
|
1634
|
-
},
|
|
1635
|
-
"input/CheckboxUnchecked": {
|
|
1636
|
-
"relative": "colors/icons/input/CheckboxUnchecked.svg",
|
|
1637
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/icons/input/CheckboxUnchecked.svg",
|
|
1638
|
-
"assetType": "colors",
|
|
1639
|
-
"colorType": "icons",
|
|
1640
|
-
"darkable": false,
|
|
1641
|
-
"id": "input/CheckboxUnchecked"
|
|
1642
|
-
},
|
|
1643
|
-
"input/RadiobuttonChecked": {
|
|
1644
|
-
"relative": "colors/icons/input/RadiobuttonChecked.svg",
|
|
1645
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/icons/input/RadiobuttonChecked.svg",
|
|
1646
|
-
"assetType": "colors",
|
|
1647
|
-
"colorType": "icons",
|
|
1648
|
-
"darkable": false,
|
|
1649
|
-
"id": "input/RadiobuttonChecked"
|
|
1650
|
-
},
|
|
1651
|
-
"input/RadiobuttonUnchecked": {
|
|
1652
|
-
"relative": "colors/icons/input/RadiobuttonUnchecked.svg",
|
|
1653
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/icons/input/RadiobuttonUnchecked.svg",
|
|
1654
|
-
"assetType": "colors",
|
|
1655
|
-
"colorType": "icons",
|
|
1656
|
-
"darkable": false,
|
|
1657
|
-
"id": "input/RadiobuttonUnchecked"
|
|
1658
|
-
},
|
|
1659
1627
|
"map/Map": {
|
|
1660
1628
|
"relative": "colors/icons/map/Map.svg",
|
|
1661
1629
|
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/icons/map/Map.svg",
|
|
@@ -1696,6 +1664,38 @@ exports.icons = {
|
|
|
1696
1664
|
"darkable": false,
|
|
1697
1665
|
"id": "map/PinValid"
|
|
1698
1666
|
},
|
|
1667
|
+
"input/CheckboxChecked": {
|
|
1668
|
+
"relative": "colors/icons/input/CheckboxChecked.svg",
|
|
1669
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/icons/input/CheckboxChecked.svg",
|
|
1670
|
+
"assetType": "colors",
|
|
1671
|
+
"colorType": "icons",
|
|
1672
|
+
"darkable": false,
|
|
1673
|
+
"id": "input/CheckboxChecked"
|
|
1674
|
+
},
|
|
1675
|
+
"input/CheckboxUnchecked": {
|
|
1676
|
+
"relative": "colors/icons/input/CheckboxUnchecked.svg",
|
|
1677
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/icons/input/CheckboxUnchecked.svg",
|
|
1678
|
+
"assetType": "colors",
|
|
1679
|
+
"colorType": "icons",
|
|
1680
|
+
"darkable": false,
|
|
1681
|
+
"id": "input/CheckboxUnchecked"
|
|
1682
|
+
},
|
|
1683
|
+
"input/RadiobuttonChecked": {
|
|
1684
|
+
"relative": "colors/icons/input/RadiobuttonChecked.svg",
|
|
1685
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/icons/input/RadiobuttonChecked.svg",
|
|
1686
|
+
"assetType": "colors",
|
|
1687
|
+
"colorType": "icons",
|
|
1688
|
+
"darkable": false,
|
|
1689
|
+
"id": "input/RadiobuttonChecked"
|
|
1690
|
+
},
|
|
1691
|
+
"input/RadiobuttonUnchecked": {
|
|
1692
|
+
"relative": "colors/icons/input/RadiobuttonUnchecked.svg",
|
|
1693
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/icons/input/RadiobuttonUnchecked.svg",
|
|
1694
|
+
"assetType": "colors",
|
|
1695
|
+
"colorType": "icons",
|
|
1696
|
+
"darkable": false,
|
|
1697
|
+
"id": "input/RadiobuttonUnchecked"
|
|
1698
|
+
},
|
|
1699
1699
|
"ticketing/Amex": {
|
|
1700
1700
|
"relative": "colors/icons/ticketing/Amex.svg",
|
|
1701
1701
|
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/icons/ticketing/Amex.svg",
|
|
@@ -1793,32 +1793,32 @@ exports.icons = {
|
|
|
1793
1793
|
"id": "favicon"
|
|
1794
1794
|
},
|
|
1795
1795
|
"status/Check": {
|
|
1796
|
-
"relative": "colors/icons/status/
|
|
1797
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/icons/status/
|
|
1796
|
+
"relative": "colors/icons/status/light/Check.svg",
|
|
1797
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/icons/status/light/Check.svg",
|
|
1798
1798
|
"assetType": "colors",
|
|
1799
1799
|
"colorType": "icons",
|
|
1800
1800
|
"darkable": true,
|
|
1801
1801
|
"id": "status/Check"
|
|
1802
1802
|
},
|
|
1803
1803
|
"status/Error": {
|
|
1804
|
-
"relative": "colors/icons/status/
|
|
1805
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/icons/status/
|
|
1804
|
+
"relative": "colors/icons/status/light/Error.svg",
|
|
1805
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/icons/status/light/Error.svg",
|
|
1806
1806
|
"assetType": "colors",
|
|
1807
1807
|
"colorType": "icons",
|
|
1808
1808
|
"darkable": true,
|
|
1809
1809
|
"id": "status/Error"
|
|
1810
1810
|
},
|
|
1811
1811
|
"status/Info": {
|
|
1812
|
-
"relative": "colors/icons/status/
|
|
1813
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/icons/status/
|
|
1812
|
+
"relative": "colors/icons/status/light/Info.svg",
|
|
1813
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/icons/status/light/Info.svg",
|
|
1814
1814
|
"assetType": "colors",
|
|
1815
1815
|
"colorType": "icons",
|
|
1816
1816
|
"darkable": true,
|
|
1817
1817
|
"id": "status/Info"
|
|
1818
1818
|
},
|
|
1819
1819
|
"status/Warning": {
|
|
1820
|
-
"relative": "colors/icons/status/
|
|
1821
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/icons/status/
|
|
1820
|
+
"relative": "colors/icons/status/light/Warning.svg",
|
|
1821
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/icons/status/light/Warning.svg",
|
|
1822
1822
|
"assetType": "colors",
|
|
1823
1823
|
"colorType": "icons",
|
|
1824
1824
|
"darkable": true,
|
|
@@ -1922,14 +1922,6 @@ exports.icons = {
|
|
|
1922
1922
|
"darkable": true,
|
|
1923
1923
|
"id": "contact/Contact"
|
|
1924
1924
|
},
|
|
1925
|
-
"token/mobile/Phone": {
|
|
1926
|
-
"relative": "colors/illustrations/token/mobile/dark/Phone.svg",
|
|
1927
|
-
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/illustrations/token/mobile/dark/Phone.svg",
|
|
1928
|
-
"assetType": "colors",
|
|
1929
|
-
"colorType": "illustrations",
|
|
1930
|
-
"darkable": true,
|
|
1931
|
-
"id": "token/mobile/Phone"
|
|
1932
|
-
},
|
|
1933
1925
|
"token/travelcard/Travelcard": {
|
|
1934
1926
|
"relative": "colors/illustrations/token/travelcard/dark/Travelcard.svg",
|
|
1935
1927
|
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/illustrations/token/travelcard/dark/Travelcard.svg",
|
|
@@ -1937,6 +1929,14 @@ exports.icons = {
|
|
|
1937
1929
|
"colorType": "illustrations",
|
|
1938
1930
|
"darkable": true,
|
|
1939
1931
|
"id": "token/travelcard/Travelcard"
|
|
1932
|
+
},
|
|
1933
|
+
"token/mobile/Phone": {
|
|
1934
|
+
"relative": "colors/illustrations/token/mobile/light/Phone.svg",
|
|
1935
|
+
"absolute": "/home/runner/work/mrfylke-contact-form/mrfylke-contact-form/packages/contact-form/.tmp-icon-assets/colors/illustrations/token/mobile/light/Phone.svg",
|
|
1936
|
+
"assetType": "colors",
|
|
1937
|
+
"colorType": "illustrations",
|
|
1938
|
+
"darkable": true,
|
|
1939
|
+
"id": "token/mobile/Phone"
|
|
1940
1940
|
}
|
|
1941
1941
|
}
|
|
1942
1942
|
};
|
package/lib/contact.module.css
CHANGED
|
@@ -19,15 +19,6 @@
|
|
|
19
19
|
padding: token('spacing.xSmall') 0;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.link {
|
|
23
|
-
font-weight: bold;
|
|
24
|
-
text-decoration: none;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.link:hover {
|
|
28
|
-
text-decoration: underline;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
22
|
.feedback {
|
|
32
23
|
composes: typo-body__s;
|
|
33
24
|
padding: token('spacing.small');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/group-travel/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/group-travel/index.tsx"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,kBAAkB,gCAkBzC"}
|
|
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.default = GroupTravelContent;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const contact_module_css_1 = __importDefault(require("../contact.module.css"));
|
|
9
8
|
const components_1 = require("../components");
|
|
10
9
|
const link_1 = __importDefault(require("next/link"));
|
|
11
10
|
const translations_1 = require("../translations");
|
|
@@ -13,5 +12,5 @@ const typography_1 = require("../components/typography");
|
|
|
13
12
|
function GroupTravelContent() {
|
|
14
13
|
const PageText = (0, translations_1.usePageText)();
|
|
15
14
|
const { t } = (0, translations_1.useTranslation)();
|
|
16
|
-
return ((0, jsx_runtime_1.jsx)(components_1.SectionCard, { title: t(PageText.Contact.groupTravel.title), children: (0, jsx_runtime_1.jsxs)(typography_1.Typo.p, { textType: "body__m", children: [t(PageText.Contact.groupTravel.description.info), ' ', (0, jsx_runtime_1.jsx)(link_1.default, {
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)(components_1.SectionCard, { title: t(PageText.Contact.groupTravel.title), children: (0, jsx_runtime_1.jsxs)(typography_1.Typo.p, { textType: "body__m", children: [t(PageText.Contact.groupTravel.description.info), ' ', (0, jsx_runtime_1.jsx)(link_1.default, { href: t(PageText.Contact.groupTravel.description.url), target: "_blank", rel: "noopener noreferrer", children: t(PageText.Contact.groupTravel.description.externalLink) })] }) }));
|
|
17
16
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { useContactFormConfig, useThemeConfig, useApiConfig, buildEnabledPageIds, } from './modules/config';
|
|
1
|
+
export { useContactFormConfig, useThemeConfig, useApiConfig, buildEnabledPageIds, createDefaultOnSubmit, } from './modules/config';
|
|
2
2
|
export type { TicketControlSubmitPayload, RefundSubmitPayload, MeansOfTransportSubmitPayload, TicketingSubmitPayload, JourneyInfoSubmitPayload, LostPropertySubmitPayload, } from './types/submit-payloads';
|
|
3
3
|
export type { TransportModeType, ReasonForTransportFailure, TicketType, PurchasePlatformType, } from './types';
|
|
4
4
|
export { TicketTypeId } from './types';
|
|
5
|
-
export type { ContactFormConfig, Theme, ThemeColors, ContrastColor, TransportColors, InteractiveColor, StatusColors, ApiConfig,
|
|
5
|
+
export type { ContactFormConfig, Theme, ThemeColors, ContrastColor, TransportColors, InteractiveColor, StatusColors, ApiConfig, LayoutConfig, LayoutLinkLabel, PagesConfig, FormSchemaOverrides, FormSlug, ContactPage, PageId, ExtraPageId, ExtraContactPage, EnabledPageIdsList, } from './modules/config';
|
|
6
6
|
export { ThemeProvider, useTheme, useHtmlDarkMode } from './modules/theme';
|
|
7
7
|
export type { MonoIcons } from './components/icon';
|
|
8
8
|
export { ButtonLink, Button } from './components/button';
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
|
package/lib/index.js
CHANGED
|
@@ -17,14 +17,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.
|
|
21
|
-
exports.ContactFormRoot = exports.JourneyInfoContent = void 0;
|
|
20
|
+
exports.TicketControlPageContent = exports.MeansOfTransportContent = exports.AppTicketRefundContent = exports.RefundFormEvents = exports.RefundTicketForm = exports.FormType = exports.RefundContent = exports.SuccessContent = exports.ErrorContent = exports.ExternalLinkPage = exports.ContactFormContainer = exports.useActiveContactPageTitle = exports.getPageTitleForPathname = exports.getContactPages = exports.ContactPageLayout = exports.commonInputValidator = exports.findOrderFormFields = exports.getLineName = exports.findFirstErrorMessage = exports.scrollToFirstErrorMessage = exports.useTransportModeOptions = exports.useLines = exports.Checkbox = exports.DepartureTimeField = exports.TimeSelector = exports.DateSelector = exports.getStopOptions = exports.getLineOptions = exports.SearchableSelect = exports.Textarea = exports.Select = exports.Radio = exports.Input = exports.Fieldset = exports.FileInput = exports.FieldWrapperWithError = exports.SectionCard = exports.ErrorMessage = exports.Typo = exports.Button = exports.ButtonLink = exports.useHtmlDarkMode = exports.useTheme = exports.ThemeProvider = exports.TicketTypeId = exports.createDefaultOnSubmit = exports.buildEnabledPageIds = exports.useApiConfig = exports.useThemeConfig = exports.useContactFormConfig = void 0;
|
|
21
|
+
exports.ContactFormRoot = exports.JourneyInfoContent = exports.TicketingContent = void 0;
|
|
22
22
|
// Configuration system (NEW - required for setup)
|
|
23
23
|
var config_1 = require("./modules/config");
|
|
24
24
|
Object.defineProperty(exports, "useContactFormConfig", { enumerable: true, get: function () { return config_1.useContactFormConfig; } });
|
|
25
25
|
Object.defineProperty(exports, "useThemeConfig", { enumerable: true, get: function () { return config_1.useThemeConfig; } });
|
|
26
26
|
Object.defineProperty(exports, "useApiConfig", { enumerable: true, get: function () { return config_1.useApiConfig; } });
|
|
27
27
|
Object.defineProperty(exports, "buildEnabledPageIds", { enumerable: true, get: function () { return config_1.buildEnabledPageIds; } });
|
|
28
|
+
Object.defineProperty(exports, "createDefaultOnSubmit", { enumerable: true, get: function () { return config_1.createDefaultOnSubmit; } });
|
|
28
29
|
var types_1 = require("./types");
|
|
29
30
|
Object.defineProperty(exports, "TicketTypeId", { enumerable: true, get: function () { return types_1.TicketTypeId; } });
|
|
30
31
|
// Theme system (NEW)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/journey-info/index.tsx"],"names":[],"mappings":"AAaA,MAAM,CAAC,OAAO,UAAU,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/journey-info/index.tsx"],"names":[],"mappings":"AAaA,MAAM,CAAC,OAAO,UAAU,kBAAkB,gCAiLzC"}
|
|
@@ -20,7 +20,7 @@ function JourneyInfoContent() {
|
|
|
20
20
|
const PageText = (0, translations_1.usePageText)();
|
|
21
21
|
const { t } = (0, translations_1.useTranslation)();
|
|
22
22
|
const apiConfig = (0, config_1.useApiConfig)();
|
|
23
|
-
const { layout
|
|
23
|
+
const { layout } = (0, config_1.useContactFormConfig)();
|
|
24
24
|
const successPath = layout?.successPath ??
|
|
25
25
|
(layout?.basePath ? `${layout.basePath}/success` : '/contact/success');
|
|
26
26
|
const errorPath = layout?.errorPath ??
|
|
@@ -34,14 +34,16 @@ function JourneyInfoContent() {
|
|
|
34
34
|
e.preventDefault();
|
|
35
35
|
send({ type: 'SUBMIT', orderedFormFieldNames: (0, utils_1.findOrderFormFields)(e) });
|
|
36
36
|
};
|
|
37
|
-
return ((0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, className: contact_module_css_1.default.form, children: [(0, jsx_runtime_1.jsxs)(components_1.Fieldset, { title: t(PageText.Contact.journeyInfo.input.question.title), isRequired: true, children: [(0, jsx_runtime_1.jsxs)("div", { className: contact_module_css_1.default.extraInfo, children: [(0, jsx_runtime_1.jsx)("p", { children: t(PageText.Contact.journeyInfo.info.useTravelSearch) }), (0, jsx_runtime_1.jsx)("div", { className: contact_module_css_1.default.extraInfo__buttonContainer, children: (0, jsx_runtime_1.jsx)(button_1.ButtonLink, { href:
|
|
37
|
+
return ((0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, className: contact_module_css_1.default.form, children: [(0, jsx_runtime_1.jsxs)(components_1.Fieldset, { title: t(PageText.Contact.journeyInfo.input.question.title), isRequired: true, children: [(0, jsx_runtime_1.jsxs)("div", { className: contact_module_css_1.default.extraInfo, children: [(0, jsx_runtime_1.jsx)("p", { children: t(PageText.Contact.journeyInfo.info.useTravelSearch) }), (0, jsx_runtime_1.jsx)("div", { className: contact_module_css_1.default.extraInfo__buttonContainer, children: (0, jsx_runtime_1.jsx)(button_1.ButtonLink, { href: t(PageText.Contact.journeyInfo.info.travelSearchLink.href), mode: "interactive_0", title: t(PageText.Contact.journeyInfo.info.travelSearchLink.text), icon: {
|
|
38
38
|
right: ((0, jsx_runtime_1.jsx)(icon_1.MonoIcon, { icon: "navigation/ArrowRight", overrideMode: "dark" })),
|
|
39
|
-
}, aProps: { target: '_blank', rel: 'noreferrer' } }) }),
|
|
40
|
-
(
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
}, aProps: { target: '_blank', rel: 'noreferrer' } }) }), (() => {
|
|
40
|
+
const contactHref = t(PageText.Contact.journeyInfo.info.contactLink.href);
|
|
41
|
+
if (!contactHref)
|
|
42
|
+
return null;
|
|
43
|
+
const prefix = t(PageText.Contact.journeyInfo.info.contactLink.prefix);
|
|
44
|
+
const linkText = t(PageText.Contact.journeyInfo.info.contactLink.text);
|
|
45
|
+
return ((0, jsx_runtime_1.jsxs)("p", { children: [prefix && `${prefix} `, (0, jsx_runtime_1.jsx)("a", { href: contactHref, target: "_blank", rel: "noreferrer", children: linkText }), "."] }));
|
|
46
|
+
})()] }), (0, jsx_runtime_1.jsx)(components_1.Textarea, { id: "question", description: t(PageText.Contact.journeyInfo.input.question.info), value: state.context.question || '', onChange: (e) => send({
|
|
45
47
|
type: 'ON_INPUT_CHANGE',
|
|
46
48
|
inputName: 'question',
|
|
47
49
|
value: e.target.value,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputErrorMessages } from '../validation';
|
|
2
|
-
import type {
|
|
2
|
+
import type { FormSlug } from '../modules/config/types';
|
|
3
3
|
type SubmitInput = {
|
|
4
4
|
attachments?: File[];
|
|
5
5
|
firstName?: string;
|
|
@@ -21,7 +21,7 @@ export type MachinePaths = {
|
|
|
21
21
|
successPath: string;
|
|
22
22
|
errorPath: string;
|
|
23
23
|
};
|
|
24
|
-
export declare function createJourneyInfoStateMachine(onSubmit: (
|
|
24
|
+
export declare function createJourneyInfoStateMachine(onSubmit: (slug: FormSlug, state: Record<string, unknown>) => Promise<Response>, paths?: MachinePaths): import("xstate").StateMachine<JourneyInfoContextType, {
|
|
25
25
|
type: "VALIDATE";
|
|
26
26
|
} | {
|
|
27
27
|
type: "ON_INPUT_CHANGE";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journeyInfoStateMachine.d.ts","sourceRoot":"","sources":["../../src/journey-info/journeyInfoStateMachine.ts"],"names":[],"mappings":"AAMA,OAAO,EAAwB,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEzE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"journeyInfoStateMachine.d.ts","sourceRoot":"","sources":["../../src/journey-info/journeyInfoStateMachine.ts"],"names":[],"mappings":"AAMA,OAAO,EAAwB,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEzE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,IAAI,EAAE,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,CAAC,EAAE,IAAI,EAAE,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,kBAAkB,CAAC;IAClC,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAaF,MAAM,MAAM,YAAY,GAAG;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtE,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,CACR,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC3B,OAAO,CAAC,QAAQ,CAAC,EACtB,KAAK,CAAC,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0JrB;AAED,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOnC,CAAC"}
|
|
@@ -79,7 +79,7 @@ function createJourneyInfoStateMachine(onSubmit, paths) {
|
|
|
79
79
|
...input,
|
|
80
80
|
attachments: base64EncodedAttachments,
|
|
81
81
|
};
|
|
82
|
-
const response = await onSubmit('
|
|
82
|
+
const response = await onSubmit('journey-info', state);
|
|
83
83
|
if (!response.ok)
|
|
84
84
|
throw new Error('Failed to call API');
|
|
85
85
|
return response.ok;
|
|
@@ -100,7 +100,7 @@ function findMatchedPage(pathname, basePath, visiblePages) {
|
|
|
100
100
|
function getPageTitleForPathname(pathname, config) {
|
|
101
101
|
const basePath = config.layout?.basePath ?? '/contact';
|
|
102
102
|
const { PageText: mergedPageText } = (0, translations_1.mergeTranslationOverrides)({
|
|
103
|
-
pages: config.translations
|
|
103
|
+
pages: config.translations?.pages,
|
|
104
104
|
});
|
|
105
105
|
const visiblePages = getVisiblePages(config.pages, mergedPageText);
|
|
106
106
|
return findMatchedPage(pathname, basePath, visiblePages)?.title;
|