richie-education 2.30.1-dev7 → 2.31.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 (57) hide show
  1. package/i18n/locales/ar-SA.json +32 -0
  2. package/i18n/locales/es-ES.json +32 -0
  3. package/i18n/locales/fa-IR.json +32 -0
  4. package/i18n/locales/fr-CA.json +32 -0
  5. package/i18n/locales/fr-FR.json +32 -0
  6. package/i18n/locales/ko-KR.json +32 -0
  7. package/i18n/locales/pt-PT.json +125 -93
  8. package/i18n/locales/ru-RU.json +32 -0
  9. package/i18n/locales/vi-VN.json +32 -0
  10. package/jest.config.js +1 -1
  11. package/js/api/lms/openedx-fonzie.spec.ts +1 -1
  12. package/js/api/lms/openedx-hawthorn.spec.ts +1 -1
  13. package/js/components/CourseGlimpse/utils.ts +3 -3
  14. package/js/components/CourseGlimpseList/utils.ts +2 -2
  15. package/js/components/PaymentInterfaces/types.ts +1 -0
  16. package/js/components/PurchaseButton/index.spec.tsx +20 -2
  17. package/js/components/PurchaseButton/index.tsx +3 -0
  18. package/js/components/SaleTunnel/AddressSelector/index.spec.tsx +2 -0
  19. package/js/components/SaleTunnel/GenericSaleTunnel.tsx +6 -1
  20. package/js/components/SaleTunnel/SaleTunnelInformation/index.tsx +2 -0
  21. package/js/components/SaleTunnel/SubscriptionButton/_styles.scss +8 -0
  22. package/js/components/SaleTunnel/SubscriptionButton/index.tsx +17 -2
  23. package/js/components/SaleTunnel/WithdrawRightCheckbox/index.tsx +105 -0
  24. package/js/components/SaleTunnel/index.credential.spec.tsx +2 -2
  25. package/js/components/SaleTunnel/index.full-process.spec.tsx +22 -2
  26. package/js/components/SaleTunnel/index.spec.tsx +83 -6
  27. package/js/components/SaleTunnel/index.stories.tsx +1 -0
  28. package/js/components/SaleTunnel/index.tsx +1 -1
  29. package/js/components/TeacherDashboardCourseList/index.tsx +2 -2
  30. package/js/contexts/SessionContext/index.spec.tsx +2 -2
  31. package/js/hooks/useCourseProductUnion/index.ts +2 -1
  32. package/js/hooks/useTeacherCoursesSearch/index.tsx +2 -2
  33. package/js/translations/ar-SA.json +1 -1
  34. package/js/translations/es-ES.json +1 -1
  35. package/js/translations/fa-IR.json +1 -1
  36. package/js/translations/fr-CA.json +1 -1
  37. package/js/translations/fr-FR.json +1 -1
  38. package/js/translations/ko-KR.json +1 -1
  39. package/js/translations/pt-PT.json +1 -1
  40. package/js/translations/ru-RU.json +1 -1
  41. package/js/translations/vi-VN.json +1 -1
  42. package/js/types/Joanie.ts +9 -4
  43. package/js/utils/test/factories/factories.spec.ts +1 -1
  44. package/js/utils/test/factories/joanie.ts +8 -5
  45. package/js/utils/test/factories/openEdx.tsx +1 -1
  46. package/js/utils/test/factories/richie.ts +1 -1
  47. package/js/widgets/Dashboard/components/DashboardItem/Enrollment/DashboardItemEnrollment.tsx +2 -1
  48. package/js/widgets/Dashboard/components/DashboardItem/Enrollment/ProductCertificateFooter/index.spec.tsx +29 -5
  49. package/js/widgets/Dashboard/components/DashboardItem/Enrollment/ProductCertificateFooter/index.tsx +7 -1
  50. package/js/widgets/Dashboard/components/DashboardItem/Order/Installment/index.tsx +1 -0
  51. package/js/widgets/SyllabusCourseRunsList/components/CourseProductItem/CourseProductItemFooter/index.tsx +2 -0
  52. package/package.json +4 -4
  53. package/scss/colors/_theme.scss +4 -0
  54. package/scss/components/_index.scss +1 -0
  55. package/scss/components/templates/richie/_multiple-columns.scss +8 -5
  56. package/scss/components/templates/richie/simpletext/_simpletext.scss +43 -0
  57. package/webpack.config.js +1 -1
@@ -1355,6 +1355,34 @@
1355
1355
  "description": "Message explaining the subscription process with a training agreement to sign and a payment method to set.",
1356
1356
  "message": "To enroll in the training, you will first be invited to sign the training agreement and then to define a payment method."
1357
1357
  },
1358
+ "components.SaleTunnel.WithdrawRightCheckbox.certificate.waiveCheckboxHelperClause1": {
1359
+ "description": "First clause item for the waiver checkbox.",
1360
+ "message": "I acknowledge that I have expressly requested my registration for the examination before the expiration date of the withdrawal period."
1361
+ },
1362
+ "components.SaleTunnel.WithdrawRightCheckbox.certificate.waiveCheckboxHelperClause2": {
1363
+ "description": "Second clause item for the waiver checkbox.",
1364
+ "message": "I expressly waive my right of withdrawal in order to register for the examination before the expiration of the withdrawal period."
1365
+ },
1366
+ "components.SaleTunnel.WithdrawRightCheckbox.certificate.waiverLabel": {
1367
+ "description": "Text to explain why the user has to waive to its withdrawal right.",
1368
+ "message": "If the examination period begins before the end of the 14-day withdrawal period mentioned in Article L221-18 of the French Consumer Code, you must check the box below to proceed with your registration."
1369
+ },
1370
+ "components.SaleTunnel.WithdrawRightCheckbox.credential.waiveCheckboxHelperClause1": {
1371
+ "description": "First clause item for the waiver checkbox.",
1372
+ "message": "I acknowledge that I have expressly requested to begin the training before the expiration date of the withdrawal period."
1373
+ },
1374
+ "components.SaleTunnel.WithdrawRightCheckbox.credential.waiveCheckboxHelperClause2": {
1375
+ "description": "Second clause item for the waiver checkbox.",
1376
+ "message": "I expressly waive my right of withdrawal in order to begin the training before the expiration of the withdrawal period."
1377
+ },
1378
+ "components.SaleTunnel.WithdrawRightCheckbox.credential.waiverLabel": {
1379
+ "description": "Text to explain why the user has to waive to its withdrawal right.",
1380
+ "message": "The training program you wish to enroll in begins before the end of the 14-day withdrawal period mentioned in Article L221-18 of the French Consumer Code. You must check the box below to proceed with your registration."
1381
+ },
1382
+ "components.SaleTunnel.WithdrawRightCheckbox.waiveCheckboxLabel": {
1383
+ "description": "Label of the checkbox to waive the withdrawal right.",
1384
+ "message": "By checking this box:"
1385
+ },
1358
1386
  "components.SaleTunnel.callToActionDescription": {
1359
1387
  "description": "Additional description announced by screen readers when focusing the call to action buying button",
1360
1388
  "message": "Purchase {product}"
@@ -1535,6 +1563,10 @@
1535
1563
  "description": "Error message shown when order creation request failed because there is no remaining available seat for the product.",
1536
1564
  "message": "There are no more places available for this product."
1537
1565
  },
1566
+ "components.SubscriptionButton.errorWithdrawalRight": {
1567
+ "description": "Error message shown when the user must waive its withdrawal right but doesn't.",
1568
+ "message": "You must waive your withdrawal right."
1569
+ },
1538
1570
  "components.SubscriptionButton.orderCreationInProgress": {
1539
1571
  "description": "Label for screen reader when an order creation is in progress.",
1540
1572
  "message": "Order creation in progress"
@@ -1355,6 +1355,34 @@
1355
1355
  "description": "Message explaining the subscription process with a training agreement to sign and a payment method to set.",
1356
1356
  "message": "To enroll in the training, you will first be invited to sign the training agreement and then to define a payment method."
1357
1357
  },
1358
+ "components.SaleTunnel.WithdrawRightCheckbox.certificate.waiveCheckboxHelperClause1": {
1359
+ "description": "First clause item for the waiver checkbox.",
1360
+ "message": "I acknowledge that I have expressly requested my registration for the examination before the expiration date of the withdrawal period."
1361
+ },
1362
+ "components.SaleTunnel.WithdrawRightCheckbox.certificate.waiveCheckboxHelperClause2": {
1363
+ "description": "Second clause item for the waiver checkbox.",
1364
+ "message": "I expressly waive my right of withdrawal in order to register for the examination before the expiration of the withdrawal period."
1365
+ },
1366
+ "components.SaleTunnel.WithdrawRightCheckbox.certificate.waiverLabel": {
1367
+ "description": "Text to explain why the user has to waive to its withdrawal right.",
1368
+ "message": "If the examination period begins before the end of the 14-day withdrawal period mentioned in Article L221-18 of the French Consumer Code, you must check the box below to proceed with your registration."
1369
+ },
1370
+ "components.SaleTunnel.WithdrawRightCheckbox.credential.waiveCheckboxHelperClause1": {
1371
+ "description": "First clause item for the waiver checkbox.",
1372
+ "message": "I acknowledge that I have expressly requested to begin the training before the expiration date of the withdrawal period."
1373
+ },
1374
+ "components.SaleTunnel.WithdrawRightCheckbox.credential.waiveCheckboxHelperClause2": {
1375
+ "description": "Second clause item for the waiver checkbox.",
1376
+ "message": "I expressly waive my right of withdrawal in order to begin the training before the expiration of the withdrawal period."
1377
+ },
1378
+ "components.SaleTunnel.WithdrawRightCheckbox.credential.waiverLabel": {
1379
+ "description": "Text to explain why the user has to waive to its withdrawal right.",
1380
+ "message": "The training program you wish to enroll in begins before the end of the 14-day withdrawal period mentioned in Article L221-18 of the French Consumer Code. You must check the box below to proceed with your registration."
1381
+ },
1382
+ "components.SaleTunnel.WithdrawRightCheckbox.waiveCheckboxLabel": {
1383
+ "description": "Label of the checkbox to waive the withdrawal right.",
1384
+ "message": "By checking this box:"
1385
+ },
1358
1386
  "components.SaleTunnel.callToActionDescription": {
1359
1387
  "description": "Additional description announced by screen readers when focusing the call to action buying button",
1360
1388
  "message": "Purchase {product}"
@@ -1535,6 +1563,10 @@
1535
1563
  "description": "Error message shown when order creation request failed because there is no remaining available seat for the product.",
1536
1564
  "message": "There are no more places available for this product."
1537
1565
  },
1566
+ "components.SubscriptionButton.errorWithdrawalRight": {
1567
+ "description": "Error message shown when the user must waive its withdrawal right but doesn't.",
1568
+ "message": "You must waive your withdrawal right."
1569
+ },
1538
1570
  "components.SubscriptionButton.orderCreationInProgress": {
1539
1571
  "description": "Label for screen reader when an order creation is in progress.",
1540
1572
  "message": "Order creation in progress"
@@ -1355,6 +1355,34 @@
1355
1355
  "description": "Message explaining the subscription process with a training agreement to sign and a payment method to set.",
1356
1356
  "message": "To enroll in the training, you will first be invited to sign the training agreement and then to define a payment method."
1357
1357
  },
1358
+ "components.SaleTunnel.WithdrawRightCheckbox.certificate.waiveCheckboxHelperClause1": {
1359
+ "description": "First clause item for the waiver checkbox.",
1360
+ "message": "I acknowledge that I have expressly requested my registration for the examination before the expiration date of the withdrawal period."
1361
+ },
1362
+ "components.SaleTunnel.WithdrawRightCheckbox.certificate.waiveCheckboxHelperClause2": {
1363
+ "description": "Second clause item for the waiver checkbox.",
1364
+ "message": "I expressly waive my right of withdrawal in order to register for the examination before the expiration of the withdrawal period."
1365
+ },
1366
+ "components.SaleTunnel.WithdrawRightCheckbox.certificate.waiverLabel": {
1367
+ "description": "Text to explain why the user has to waive to its withdrawal right.",
1368
+ "message": "If the examination period begins before the end of the 14-day withdrawal period mentioned in Article L221-18 of the French Consumer Code, you must check the box below to proceed with your registration."
1369
+ },
1370
+ "components.SaleTunnel.WithdrawRightCheckbox.credential.waiveCheckboxHelperClause1": {
1371
+ "description": "First clause item for the waiver checkbox.",
1372
+ "message": "I acknowledge that I have expressly requested to begin the training before the expiration date of the withdrawal period."
1373
+ },
1374
+ "components.SaleTunnel.WithdrawRightCheckbox.credential.waiveCheckboxHelperClause2": {
1375
+ "description": "Second clause item for the waiver checkbox.",
1376
+ "message": "I expressly waive my right of withdrawal in order to begin the training before the expiration of the withdrawal period."
1377
+ },
1378
+ "components.SaleTunnel.WithdrawRightCheckbox.credential.waiverLabel": {
1379
+ "description": "Text to explain why the user has to waive to its withdrawal right.",
1380
+ "message": "The training program you wish to enroll in begins before the end of the 14-day withdrawal period mentioned in Article L221-18 of the French Consumer Code. You must check the box below to proceed with your registration."
1381
+ },
1382
+ "components.SaleTunnel.WithdrawRightCheckbox.waiveCheckboxLabel": {
1383
+ "description": "Label of the checkbox to waive the withdrawal right.",
1384
+ "message": "By checking this box:"
1385
+ },
1358
1386
  "components.SaleTunnel.callToActionDescription": {
1359
1387
  "description": "Additional description announced by screen readers when focusing the call to action buying button",
1360
1388
  "message": "Purchase {product}"
@@ -1535,6 +1563,10 @@
1535
1563
  "description": "Error message shown when order creation request failed because there is no remaining available seat for the product.",
1536
1564
  "message": "There are no more places available for this product."
1537
1565
  },
1566
+ "components.SubscriptionButton.errorWithdrawalRight": {
1567
+ "description": "Error message shown when the user must waive its withdrawal right but doesn't.",
1568
+ "message": "You must waive your withdrawal right."
1569
+ },
1538
1570
  "components.SubscriptionButton.orderCreationInProgress": {
1539
1571
  "description": "Label for screen reader when an order creation is in progress.",
1540
1572
  "message": "Order creation in progress"
@@ -1355,6 +1355,34 @@
1355
1355
  "description": "Message explaining the subscription process with a training agreement to sign and a payment method to set.",
1356
1356
  "message": "To enroll in the training, you will first be invited to sign the training agreement and then to define a payment method."
1357
1357
  },
1358
+ "components.SaleTunnel.WithdrawRightCheckbox.certificate.waiveCheckboxHelperClause1": {
1359
+ "description": "First clause item for the waiver checkbox.",
1360
+ "message": "I acknowledge that I have expressly requested my registration for the examination before the expiration date of the withdrawal period."
1361
+ },
1362
+ "components.SaleTunnel.WithdrawRightCheckbox.certificate.waiveCheckboxHelperClause2": {
1363
+ "description": "Second clause item for the waiver checkbox.",
1364
+ "message": "I expressly waive my right of withdrawal in order to register for the examination before the expiration of the withdrawal period."
1365
+ },
1366
+ "components.SaleTunnel.WithdrawRightCheckbox.certificate.waiverLabel": {
1367
+ "description": "Text to explain why the user has to waive to its withdrawal right.",
1368
+ "message": "If the examination period begins before the end of the 14-day withdrawal period mentioned in Article L221-18 of the French Consumer Code, you must check the box below to proceed with your registration."
1369
+ },
1370
+ "components.SaleTunnel.WithdrawRightCheckbox.credential.waiveCheckboxHelperClause1": {
1371
+ "description": "First clause item for the waiver checkbox.",
1372
+ "message": "I acknowledge that I have expressly requested to begin the training before the expiration date of the withdrawal period."
1373
+ },
1374
+ "components.SaleTunnel.WithdrawRightCheckbox.credential.waiveCheckboxHelperClause2": {
1375
+ "description": "Second clause item for the waiver checkbox.",
1376
+ "message": "I expressly waive my right of withdrawal in order to begin the training before the expiration of the withdrawal period."
1377
+ },
1378
+ "components.SaleTunnel.WithdrawRightCheckbox.credential.waiverLabel": {
1379
+ "description": "Text to explain why the user has to waive to its withdrawal right.",
1380
+ "message": "The training program you wish to enroll in begins before the end of the 14-day withdrawal period mentioned in Article L221-18 of the French Consumer Code. You must check the box below to proceed with your registration."
1381
+ },
1382
+ "components.SaleTunnel.WithdrawRightCheckbox.waiveCheckboxLabel": {
1383
+ "description": "Label of the checkbox to waive the withdrawal right.",
1384
+ "message": "By checking this box:"
1385
+ },
1358
1386
  "components.SaleTunnel.callToActionDescription": {
1359
1387
  "description": "Additional description announced by screen readers when focusing the call to action buying button",
1360
1388
  "message": "Acheter {product}"
@@ -1535,6 +1563,10 @@
1535
1563
  "description": "Error message shown when order creation request failed because there is no remaining available seat for the product.",
1536
1564
  "message": "There are no more places available for this product."
1537
1565
  },
1566
+ "components.SubscriptionButton.errorWithdrawalRight": {
1567
+ "description": "Error message shown when the user must waive its withdrawal right but doesn't.",
1568
+ "message": "You must waive your withdrawal right."
1569
+ },
1538
1570
  "components.SubscriptionButton.orderCreationInProgress": {
1539
1571
  "description": "Label for screen reader when an order creation is in progress.",
1540
1572
  "message": "Order creation in progress"
@@ -1355,6 +1355,34 @@
1355
1355
  "description": "Message explaining the subscription process with a training agreement to sign and a payment method to set.",
1356
1356
  "message": "Pour vous inscrire, vous serez d'abord invité à signer le contrat de formation, puis à définir un moyen de paiement."
1357
1357
  },
1358
+ "components.SaleTunnel.WithdrawRightCheckbox.certificate.waiveCheckboxHelperClause1": {
1359
+ "description": "First clause item for the waiver checkbox.",
1360
+ "message": "Je reconnais avoir expressément demandé mon inscription à l’examen avant la date d’expiration du délai de rétractation."
1361
+ },
1362
+ "components.SaleTunnel.WithdrawRightCheckbox.certificate.waiveCheckboxHelperClause2": {
1363
+ "description": "Second clause item for the waiver checkbox.",
1364
+ "message": "Je renonce expressément à l’exercice de mon droit de rétractation afin de pouvoir m'inscrire à l’examen avant l’expiration du délai de rétractation."
1365
+ },
1366
+ "components.SaleTunnel.WithdrawRightCheckbox.certificate.waiverLabel": {
1367
+ "description": "Text to explain why the user has to waive to its withdrawal right.",
1368
+ "message": "Si la période d’examen commence avant la fin du délai de rétractation de 14 jours mentionné à l’article L221-18 du code de la consommation, vous devez cocher la case ci-dessous pour poursuivre votre inscription."
1369
+ },
1370
+ "components.SaleTunnel.WithdrawRightCheckbox.credential.waiveCheckboxHelperClause1": {
1371
+ "description": "First clause item for the waiver checkbox.",
1372
+ "message": "Je reconnais avoir expressément demandé vouloir commencer la formation avant la date d’expiration du délai de rétractation."
1373
+ },
1374
+ "components.SaleTunnel.WithdrawRightCheckbox.credential.waiveCheckboxHelperClause2": {
1375
+ "description": "Second clause item for the waiver checkbox.",
1376
+ "message": "Je renonce expressément à l’exercice de mon droit de rétractation afin de pouvoir commencer la formation avant l’expiration du délai de rétractation."
1377
+ },
1378
+ "components.SaleTunnel.WithdrawRightCheckbox.credential.waiverLabel": {
1379
+ "description": "Text to explain why the user has to waive to its withdrawal right.",
1380
+ "message": "La formation à laquelle vous voulez vous inscrire commence avant la fin du délai de rétractation de 14 jours mentionné à l’article L221-18 du code de la consommation. Vous devez cocher la case ci-dessous pour poursuivre votre inscription."
1381
+ },
1382
+ "components.SaleTunnel.WithdrawRightCheckbox.waiveCheckboxLabel": {
1383
+ "description": "Label of the checkbox to waive the withdrawal right.",
1384
+ "message": "En cochant cette case : "
1385
+ },
1358
1386
  "components.SaleTunnel.callToActionDescription": {
1359
1387
  "description": "Additional description announced by screen readers when focusing the call to action buying button",
1360
1388
  "message": "Acheter {product}"
@@ -1535,6 +1563,10 @@
1535
1563
  "description": "Error message shown when order creation request failed because there is no remaining available seat for the product.",
1536
1564
  "message": "Il n'y a pas plus de places disponibles."
1537
1565
  },
1566
+ "components.SubscriptionButton.errorWithdrawalRight": {
1567
+ "description": "Error message shown when the user must waive its withdrawal right but doesn't.",
1568
+ "message": "Vous devez renoncer à votre droit de rétraction."
1569
+ },
1538
1570
  "components.SubscriptionButton.orderCreationInProgress": {
1539
1571
  "description": "Label for screen reader when an order creation is in progress.",
1540
1572
  "message": "Création de la commande en cours"
@@ -1355,6 +1355,34 @@
1355
1355
  "description": "Message explaining the subscription process with a training agreement to sign and a payment method to set.",
1356
1356
  "message": "To enroll in the training, you will first be invited to sign the training agreement and then to define a payment method."
1357
1357
  },
1358
+ "components.SaleTunnel.WithdrawRightCheckbox.certificate.waiveCheckboxHelperClause1": {
1359
+ "description": "First clause item for the waiver checkbox.",
1360
+ "message": "I acknowledge that I have expressly requested my registration for the examination before the expiration date of the withdrawal period."
1361
+ },
1362
+ "components.SaleTunnel.WithdrawRightCheckbox.certificate.waiveCheckboxHelperClause2": {
1363
+ "description": "Second clause item for the waiver checkbox.",
1364
+ "message": "I expressly waive my right of withdrawal in order to register for the examination before the expiration of the withdrawal period."
1365
+ },
1366
+ "components.SaleTunnel.WithdrawRightCheckbox.certificate.waiverLabel": {
1367
+ "description": "Text to explain why the user has to waive to its withdrawal right.",
1368
+ "message": "If the examination period begins before the end of the 14-day withdrawal period mentioned in Article L221-18 of the French Consumer Code, you must check the box below to proceed with your registration."
1369
+ },
1370
+ "components.SaleTunnel.WithdrawRightCheckbox.credential.waiveCheckboxHelperClause1": {
1371
+ "description": "First clause item for the waiver checkbox.",
1372
+ "message": "I acknowledge that I have expressly requested to begin the training before the expiration date of the withdrawal period."
1373
+ },
1374
+ "components.SaleTunnel.WithdrawRightCheckbox.credential.waiveCheckboxHelperClause2": {
1375
+ "description": "Second clause item for the waiver checkbox.",
1376
+ "message": "I expressly waive my right of withdrawal in order to begin the training before the expiration of the withdrawal period."
1377
+ },
1378
+ "components.SaleTunnel.WithdrawRightCheckbox.credential.waiverLabel": {
1379
+ "description": "Text to explain why the user has to waive to its withdrawal right.",
1380
+ "message": "The training program you wish to enroll in begins before the end of the 14-day withdrawal period mentioned in Article L221-18 of the French Consumer Code. You must check the box below to proceed with your registration."
1381
+ },
1382
+ "components.SaleTunnel.WithdrawRightCheckbox.waiveCheckboxLabel": {
1383
+ "description": "Label of the checkbox to waive the withdrawal right.",
1384
+ "message": "By checking this box:"
1385
+ },
1358
1386
  "components.SaleTunnel.callToActionDescription": {
1359
1387
  "description": "Additional description announced by screen readers when focusing the call to action buying button",
1360
1388
  "message": "Purchase {product}"
@@ -1535,6 +1563,10 @@
1535
1563
  "description": "Error message shown when order creation request failed because there is no remaining available seat for the product.",
1536
1564
  "message": "There are no more places available for this product."
1537
1565
  },
1566
+ "components.SubscriptionButton.errorWithdrawalRight": {
1567
+ "description": "Error message shown when the user must waive its withdrawal right but doesn't.",
1568
+ "message": "You must waive your withdrawal right."
1569
+ },
1538
1570
  "components.SubscriptionButton.orderCreationInProgress": {
1539
1571
  "description": "Label for screen reader when an order creation is in progress.",
1540
1572
  "message": "Order creation in progress"