richie-education 2.30.1-dev4 → 2.30.1-dev7
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Button } from '@openfun/cunningham-react';
|
|
1
2
|
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
|
2
3
|
import { CourseRun, CourseRunDisplayMode, PacedCourse } from 'types';
|
|
3
4
|
import useDateFormat from 'hooks/useDateFormat';
|
|
@@ -76,9 +77,9 @@ const OpenedSelfPacedCourseRun = ({
|
|
|
76
77
|
{findLmsBackend(courseRun.resource_link) ? (
|
|
77
78
|
<CourseRunEnrollment courseRun={courseRun} />
|
|
78
79
|
) : (
|
|
79
|
-
<
|
|
80
|
+
<Button className="course-run-enrollment__cta" href={courseRun.resource_link} fullWidth>
|
|
80
81
|
{StringHelper.capitalizeFirst(courseRun.state.call_to_action)}
|
|
81
|
-
</
|
|
82
|
+
</Button>
|
|
82
83
|
)}
|
|
83
84
|
</>
|
|
84
85
|
);
|
|
@@ -85,7 +85,7 @@ const SyllabusCourseRunsList = ({
|
|
|
85
85
|
</div>
|
|
86
86
|
)}
|
|
87
87
|
{openedRuns.length === 1 &&
|
|
88
|
-
(course.is_self_paced && openedRuns[0].state.priority
|
|
88
|
+
(course.is_self_paced && openedRuns[0].state.priority === Priority.ONGOING_OPEN ? (
|
|
89
89
|
<div className="course-detail__row course-detail__runs course-detail__runs--open">
|
|
90
90
|
<SyllabusCourseRunCompacted
|
|
91
91
|
courseRun={openedRuns[0]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "richie-education",
|
|
3
|
-
"version": "2.30.1-
|
|
3
|
+
"version": "2.30.1-dev7",
|
|
4
4
|
"description": "A CMS to build learning portals for Open Education",
|
|
5
5
|
"main": "sandbox/manage.py",
|
|
6
6
|
"scripts": {
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
"not dead"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@babel/core": "7.
|
|
41
|
+
"@babel/core": "7.26.0",
|
|
42
42
|
"@babel/plugin-syntax-dynamic-import": "7.8.3",
|
|
43
|
-
"@babel/plugin-transform-modules-commonjs": "7.25.
|
|
44
|
-
"@babel/preset-env": "7.
|
|
45
|
-
"@babel/preset-react": "7.25.
|
|
46
|
-
"@babel/preset-typescript": "7.
|
|
47
|
-
"@faker-js/faker": "9.0
|
|
48
|
-
"@formatjs/cli": "6.3.
|
|
49
|
-
"@formatjs/intl-relativetimeformat": "11.
|
|
43
|
+
"@babel/plugin-transform-modules-commonjs": "7.25.9",
|
|
44
|
+
"@babel/preset-env": "7.26.0",
|
|
45
|
+
"@babel/preset-react": "7.25.9",
|
|
46
|
+
"@babel/preset-typescript": "7.26.0",
|
|
47
|
+
"@faker-js/faker": "9.1.0",
|
|
48
|
+
"@formatjs/cli": "6.3.5",
|
|
49
|
+
"@formatjs/intl-relativetimeformat": "11.4.1",
|
|
50
50
|
"@hookform/resolvers": "3.9.0",
|
|
51
51
|
"@lyracom/embedded-form-glue": "1.4.2",
|
|
52
52
|
"@openfun/cunningham-react": "2.9.4",
|
|
@@ -60,29 +60,29 @@
|
|
|
60
60
|
"@storybook/react": "8.3.6",
|
|
61
61
|
"@storybook/react-webpack5": "8.3.6",
|
|
62
62
|
"@storybook/test": "8.3.6",
|
|
63
|
-
"@tanstack/query-core": "5.59.
|
|
64
|
-
"@tanstack/query-sync-storage-persister": "5.59.
|
|
65
|
-
"@tanstack/react-query": "5.59.
|
|
66
|
-
"@tanstack/react-query-devtools": "5.59.
|
|
67
|
-
"@tanstack/react-query-persist-client": "5.59.
|
|
63
|
+
"@tanstack/query-core": "5.59.16",
|
|
64
|
+
"@tanstack/query-sync-storage-persister": "5.59.16",
|
|
65
|
+
"@tanstack/react-query": "5.59.16",
|
|
66
|
+
"@tanstack/react-query-devtools": "5.59.16",
|
|
67
|
+
"@tanstack/react-query-persist-client": "5.59.16",
|
|
68
68
|
"@testing-library/dom": "10.4.0",
|
|
69
69
|
"@testing-library/jest-dom": "6.6.2",
|
|
70
70
|
"@testing-library/react": "16.0.1",
|
|
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",
|
|
74
|
-
"@types/jest": "29.5.
|
|
74
|
+
"@types/jest": "29.5.14",
|
|
75
75
|
"@types/js-cookie": "3.0.6",
|
|
76
76
|
"@types/lodash-es": "4.17.12",
|
|
77
77
|
"@types/node-fetch": "2.6.11",
|
|
78
78
|
"@types/query-string": "6.3.0",
|
|
79
|
-
"@types/react": "18.3.
|
|
79
|
+
"@types/react": "18.3.12",
|
|
80
80
|
"@types/react-autosuggest": "10.1.11",
|
|
81
81
|
"@types/react-dom": "18.3.1",
|
|
82
82
|
"@types/react-modal": "3.16.3",
|
|
83
83
|
"@types/uuid": "10.0.0",
|
|
84
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
85
|
-
"@typescript-eslint/parser": "8.
|
|
84
|
+
"@typescript-eslint/eslint-plugin": "8.11.0",
|
|
85
|
+
"@typescript-eslint/parser": "8.11.0",
|
|
86
86
|
"babel-jest": "29.7.0",
|
|
87
87
|
"babel-loader": "9.2.1",
|
|
88
88
|
"babel-plugin-react-intl": "8.2.25",
|
|
@@ -97,11 +97,11 @@
|
|
|
97
97
|
"eslint-config-prettier": "9.1.0",
|
|
98
98
|
"eslint-import-resolver-webpack": "0.13.9",
|
|
99
99
|
"eslint-plugin-compat": "6.0.1",
|
|
100
|
-
"eslint-plugin-formatjs": "5.1.
|
|
100
|
+
"eslint-plugin-formatjs": "5.1.5",
|
|
101
101
|
"eslint-plugin-import": "2.31.0",
|
|
102
|
-
"eslint-plugin-jsx-a11y": "6.10.
|
|
102
|
+
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
103
103
|
"eslint-plugin-prettier": "5.2.1",
|
|
104
|
-
"eslint-plugin-react": "7.37.
|
|
104
|
+
"eslint-plugin-react": "7.37.2",
|
|
105
105
|
"eslint-plugin-react-hooks": "5.0.0",
|
|
106
106
|
"eslint-plugin-storybook": "0.10.1",
|
|
107
107
|
"fetch-mock": "<10",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"js-cookie": "3.0.5",
|
|
116
116
|
"lodash-es": "4.17.21",
|
|
117
117
|
"mdn-polyfills": "5.20.0",
|
|
118
|
-
"msw": "2.
|
|
118
|
+
"msw": "2.5.2",
|
|
119
119
|
"node-fetch": ">2.6.6 <3",
|
|
120
120
|
"nodemon": "3.1.7",
|
|
121
121
|
"prettier": "3.3.3",
|
|
@@ -124,15 +124,15 @@
|
|
|
124
124
|
"react-autosuggest": "10.1.0",
|
|
125
125
|
"react-dom": "18.3.1",
|
|
126
126
|
"react-hook-form": "7.53.1",
|
|
127
|
-
"react-intl": "6.8.
|
|
127
|
+
"react-intl": "6.8.4",
|
|
128
128
|
"react-modal": "3.16.1",
|
|
129
129
|
"react-router-dom": "6.27.0",
|
|
130
|
-
"sass": "1.80.
|
|
130
|
+
"sass": "1.80.4",
|
|
131
131
|
"source-map-loader": "5.0.0",
|
|
132
132
|
"storybook": "8.3.6",
|
|
133
133
|
"tsconfig-paths-webpack-plugin": "4.1.0",
|
|
134
134
|
"typescript": "5.6.3",
|
|
135
|
-
"uuid": "
|
|
135
|
+
"uuid": "11.0.1",
|
|
136
136
|
"webpack": "5.95.0",
|
|
137
137
|
"webpack-cli": "5.1.4",
|
|
138
138
|
"whatwg-fetch": "3.6.20",
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
},
|
|
143
143
|
"resolutions": {
|
|
144
144
|
"@testing-library/dom": "10.4.0",
|
|
145
|
-
"@types/react": "18.3.
|
|
145
|
+
"@types/react": "18.3.12",
|
|
146
146
|
"@types/react-dom": "18.3.1"
|
|
147
147
|
},
|
|
148
148
|
"msw": {
|