richie-education 2.33.1-dev9 → 2.34.1-dev2

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 (60) hide show
  1. package/i18n/locales/ar-SA.json +48 -8
  2. package/i18n/locales/es-ES.json +48 -8
  3. package/i18n/locales/fa-IR.json +48 -8
  4. package/i18n/locales/fr-CA.json +48 -8
  5. package/i18n/locales/fr-FR.json +48 -8
  6. package/i18n/locales/ko-KR.json +48 -8
  7. package/i18n/locales/pt-PT.json +55 -15
  8. package/i18n/locales/ru-RU.json +48 -8
  9. package/i18n/locales/vi-VN.json +48 -8
  10. package/js/api/joanie.ts +5 -0
  11. package/js/api/lms/dummy.ts +12 -10
  12. package/js/components/AddressesManagement/index.spec.tsx +1 -1
  13. package/js/components/AddressesManagement/index.tsx +123 -129
  14. package/js/components/ContractFrame/AbstractContractFrame.tsx +1 -1
  15. package/js/components/Icon/index.stories.tsx +1 -1
  16. package/js/components/PaymentInterfaces/PayplugLightbox.tsx +1 -1
  17. package/js/components/PaymentScheduleGrid/_styles.scss +6 -5
  18. package/js/components/PaymentScheduleGrid/index.tsx +16 -0
  19. package/js/components/SaleTunnel/SaleTunnelSavePaymentMethod/index.tsx +2 -2
  20. package/js/components/SearchInput/index.spec.tsx +6 -5
  21. package/js/components/SearchInput/index.tsx +9 -1
  22. package/js/hooks/useCreditCards/index.spec.tsx +83 -0
  23. package/js/hooks/useCreditCards/index.ts +53 -1
  24. package/js/hooks/useCreditCardsManagement.tsx +1 -10
  25. package/js/hooks/useLearnerCoursesSearch/index.tsx +2 -2
  26. package/js/pages/DashboardCourses/index.spec.tsx +51 -7
  27. package/js/pages/DashboardCreditCardsManagement/DashboardCreditCardBox.tsx +3 -5
  28. package/js/pages/DashboardCreditCardsManagement/_styles.scss +11 -3
  29. package/js/pages/DashboardCreditCardsManagement/index.spec.tsx +46 -25
  30. package/js/pages/DashboardCreditCardsManagement/index.tsx +21 -37
  31. package/js/pages/TeacherDashboardContractsLayout/hooks/useCheckContractArchiveExists/index.spec.tsx +4 -2
  32. package/js/pages/TeacherDashboardContractsLayout/hooks/useCheckContractArchiveExists/index.tsx +1 -1
  33. package/js/pages/TeacherDashboardOrganizationCourseLoader/index.spec.tsx +8 -5
  34. package/js/translations/ar-SA.json +1 -1
  35. package/js/translations/es-ES.json +1 -1
  36. package/js/translations/fa-IR.json +1 -1
  37. package/js/translations/fr-CA.json +1 -1
  38. package/js/translations/fr-FR.json +1 -1
  39. package/js/translations/ko-KR.json +1 -1
  40. package/js/translations/pt-PT.json +1 -1
  41. package/js/translations/ru-RU.json +1 -1
  42. package/js/translations/vi-VN.json +1 -1
  43. package/js/types/Joanie.ts +13 -1
  44. package/js/utils/OrderHelper/index.ts +9 -0
  45. package/js/utils/errors/HttpError.ts +1 -0
  46. package/js/utils/test/wrappers/types.ts +2 -2
  47. package/js/widgets/Dashboard/components/DashboardItem/Enrollment/ProductCertificateFooter/index.spec.tsx +7 -1
  48. package/js/widgets/Dashboard/components/DashboardItem/Order/DashboardItemOrderContract.useUnionResource.cache.spec.tsx +14 -2
  49. package/js/widgets/Dashboard/components/DashboardItem/Order/Installment/index.tsx +3 -2
  50. package/js/widgets/Dashboard/components/DashboardItem/Order/OrderPaymentDetailsModal/index.tsx +12 -5
  51. package/js/widgets/Dashboard/components/DashboardItem/Order/OrderPaymentRetryModal/index.tsx +1 -1
  52. package/js/widgets/Dashboard/components/DashboardItem/Order/OrderStateLearnerMessage/index.tsx +5 -0
  53. package/js/widgets/Dashboard/components/DashboardItem/Order/OrderStateMessage/index.tsx +10 -8
  54. package/js/widgets/Dashboard/components/DashboardItem/Order/OrderStateTeacherMessage/index.tsx +5 -0
  55. package/js/widgets/Dashboard/components/SearchBar/index.spec.tsx +1 -1
  56. package/js/widgets/Dashboard/components/SearchResultsCount/index.spec.tsx +1 -1
  57. package/js/widgets/Dashboard/index.spec.tsx +7 -1
  58. package/js/widgets/SyllabusCourseRunsList/components/CourseRunEnrollment/index.tsx +1 -5
  59. package/package.json +41 -39
  60. package/scss/vendors/css/cunningham-tokens.css +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "richie-education",
3
- "version": "2.33.1-dev9",
3
+ "version": "2.34.1-dev2",
4
4
  "description": "A CMS to build learning portals for Open Education",
5
5
  "main": "sandbox/manage.py",
6
6
  "scripts": {
@@ -40,34 +40,34 @@
40
40
  "dependencies": {
41
41
  "@babel/core": "7.26.0",
42
42
  "@babel/plugin-syntax-dynamic-import": "7.8.3",
43
- "@babel/plugin-transform-modules-commonjs": "7.25.9",
43
+ "@babel/plugin-transform-modules-commonjs": "7.26.3",
44
44
  "@babel/preset-env": "7.26.0",
45
- "@babel/preset-react": "7.25.9",
45
+ "@babel/preset-react": "7.26.3",
46
46
  "@babel/preset-typescript": "7.26.0",
47
- "@faker-js/faker": "9.2.0",
48
- "@formatjs/cli": "6.3.11",
49
- "@formatjs/intl-relativetimeformat": "11.4.5",
47
+ "@faker-js/faker": "9.3.0",
48
+ "@formatjs/cli": "6.3.14",
49
+ "@formatjs/intl-relativetimeformat": "11.4.8",
50
50
  "@hookform/resolvers": "3.9.1",
51
51
  "@lyracom/embedded-form-glue": "1.4.2",
52
- "@openfun/cunningham-react": "2.9.4",
53
- "@openfun/cunningham-tokens": "2.1.1",
52
+ "@openfun/cunningham-react": "3.0.0",
53
+ "@openfun/cunningham-tokens": "2.2.0",
54
54
  "@sentry/browser": "8.42.0",
55
55
  "@sentry/types": "8.42.0",
56
- "@storybook/addon-actions": "8.4.6",
57
- "@storybook/addon-essentials": "8.4.6",
58
- "@storybook/addon-interactions": "8.4.6",
59
- "@storybook/addon-links": "8.4.6",
60
- "@storybook/react": "8.4.6",
61
- "@storybook/react-webpack5": "8.4.6",
62
- "@storybook/test": "8.4.6",
63
- "@tanstack/query-core": "5.62.1",
64
- "@tanstack/query-sync-storage-persister": "5.62.1",
65
- "@tanstack/react-query": "5.62.1",
66
- "@tanstack/react-query-devtools": "5.62.1",
67
- "@tanstack/react-query-persist-client": "5.62.1",
56
+ "@storybook/addon-actions": "8.4.7",
57
+ "@storybook/addon-essentials": "8.4.7",
58
+ "@storybook/addon-interactions": "8.4.7",
59
+ "@storybook/addon-links": "8.4.7",
60
+ "@storybook/react": "8.4.7",
61
+ "@storybook/react-webpack5": "8.4.7",
62
+ "@storybook/test": "8.4.7",
63
+ "@tanstack/query-core": "5.62.3",
64
+ "@tanstack/query-sync-storage-persister": "5.62.3",
65
+ "@tanstack/react-query": "5.62.3",
66
+ "@tanstack/react-query-devtools": "5.62.3",
67
+ "@tanstack/react-query-persist-client": "5.62.3",
68
68
  "@testing-library/dom": "10.4.0",
69
69
  "@testing-library/jest-dom": "6.6.3",
70
- "@testing-library/react": "16.0.1",
70
+ "@testing-library/react": "16.1.0",
71
71
  "@testing-library/user-event": "14.5.2",
72
72
  "@types/fetch-mock": "7.3.8",
73
73
  "@types/iframe-resizer": "3.5.13",
@@ -76,9 +76,9 @@
76
76
  "@types/lodash-es": "4.17.12",
77
77
  "@types/node-fetch": "2.6.12",
78
78
  "@types/query-string": "6.3.0",
79
- "@types/react": "18.3.12",
79
+ "@types/react": "19.0.1",
80
80
  "@types/react-autosuggest": "10.1.11",
81
- "@types/react-dom": "18.3.1",
81
+ "@types/react-dom": "19.0.1",
82
82
  "@types/react-modal": "3.16.3",
83
83
  "@typescript-eslint/eslint-plugin": "8.17.0",
84
84
  "@typescript-eslint/parser": "8.17.0",
@@ -96,12 +96,12 @@
96
96
  "eslint-config-prettier": "9.1.0",
97
97
  "eslint-import-resolver-webpack": "0.13.9",
98
98
  "eslint-plugin-compat": "6.0.1",
99
- "eslint-plugin-formatjs": "5.2.5",
99
+ "eslint-plugin-formatjs": "5.2.8",
100
100
  "eslint-plugin-import": "2.31.0",
101
101
  "eslint-plugin-jsx-a11y": "6.10.2",
102
102
  "eslint-plugin-prettier": "5.2.1",
103
103
  "eslint-plugin-react": "7.37.2",
104
- "eslint-plugin-react-hooks": "5.0.0",
104
+ "eslint-plugin-react-hooks": "5.1.0",
105
105
  "eslint-plugin-storybook": "0.11.1",
106
106
  "fetch-mock": "<10",
107
107
  "file-loader": "6.2.0",
@@ -114,35 +114,37 @@
114
114
  "js-cookie": "3.0.5",
115
115
  "lodash-es": "4.17.21",
116
116
  "mdn-polyfills": "5.20.0",
117
- "msw": "2.6.6",
117
+ "msw": "2.6.8",
118
118
  "node-fetch": ">2.6.6 <3",
119
119
  "nodemon": "3.1.7",
120
- "prettier": "3.4.1",
120
+ "prettier": "3.4.2",
121
121
  "query-string": "9.1.1",
122
- "react": "18.3.1",
122
+ "react": "19.0.0",
123
123
  "react-autosuggest": "10.1.0",
124
- "react-dom": "18.3.1",
125
- "react-hook-form": "7.53.2",
126
- "react-intl": "7.0.1",
124
+ "react-dom": "19.0.0",
125
+ "react-hook-form": "7.54.0",
126
+ "react-intl": "7.0.4",
127
127
  "react-modal": "3.16.1",
128
- "react-router": "7.0.1",
129
- "sass": "1.81.0",
128
+ "react-router": "7.0.2",
129
+ "sass": "1.82.0",
130
130
  "source-map-loader": "5.0.0",
131
- "storybook": "8.4.6",
131
+ "storybook": "8.4.7",
132
132
  "tsconfig-paths-webpack-plugin": "4.2.0",
133
133
  "typescript": "5.7.2",
134
134
  "uuid": "11.0.3",
135
- "webpack": "5.96.1",
135
+ "webpack": "5.97.1",
136
136
  "webpack-cli": "5.1.4",
137
137
  "whatwg-fetch": "3.6.20",
138
138
  "xhr-mock": "2.5.1",
139
139
  "yargs": "17.7.2",
140
- "yup": "1.4.0"
140
+ "yup": "1.5.0"
141
141
  },
142
142
  "resolutions": {
143
143
  "@testing-library/dom": "10.4.0",
144
- "@types/react": "18.3.12",
145
- "@types/react-dom": "18.3.1"
144
+ "@types/react": "19.0.1",
145
+ "@types/react-dom": "19.0.1",
146
+ "react": "19.0.0",
147
+ "react-dom": "19.0.0"
146
148
  },
147
149
  "msw": {
148
150
  "workerDirectory": "../richie/static/richie/js"
@@ -152,7 +154,7 @@
152
154
  "yarn": "1.22.22"
153
155
  },
154
156
  "devDependencies": {
155
- "@storybook/addon-mdx-gfm": "8.4.6",
157
+ "@storybook/addon-mdx-gfm": "8.4.7",
156
158
  "@storybook/addon-webpack5-compiler-babel": "3.0.3"
157
159
  }
158
160
  }
@@ -132,6 +132,7 @@
132
132
  --c--theme--breakpoints--lg: 992px;
133
133
  --c--theme--breakpoints--xl: 1200px;
134
134
  --c--theme--breakpoints--xxl: 1400px;
135
+ --c--components--tabs--border-bottom-color: var(--c--theme--colors--greyscale-300);
135
136
  --c--components--button--font-family: Montserrat;
136
137
  --c--components--dashboardlistavatar--saturation: 30;
137
138
  --c--components--dashboardlistavatar--lightness: 55;