richie-education 3.4.0 → 3.4.1-dev3
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/.storybook/main.js
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { dirname, join } from "path";
|
|
2
|
+
import { createRequire } from "module";
|
|
3
|
+
import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin';
|
|
2
4
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
const require = createRequire(import.meta.url);
|
|
6
|
+
|
|
7
|
+
function getAbsolutePath(value) {
|
|
8
|
+
return dirname(require.resolve(join(value, "package.json")));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
stories: ['../stories/**/*.stories.@(js|jsx|ts|tsx)', '../js/**/*.stories.@(js|jsx|ts|tsx)'],
|
|
6
13
|
addons: [
|
|
7
14
|
getAbsolutePath('@storybook/addon-links'),
|
|
8
|
-
getAbsolutePath('@storybook/addon-essentials'),
|
|
9
|
-
getAbsolutePath('@storybook/addon-interactions'),
|
|
10
15
|
getAbsolutePath('@storybook/addon-webpack5-compiler-babel'),
|
|
11
16
|
],
|
|
12
17
|
framework: {
|
|
@@ -23,9 +28,7 @@ module.exports = {
|
|
|
23
28
|
from: '../../richie/apps/core/static',
|
|
24
29
|
to: '/static',
|
|
25
30
|
}, '../../richie/apps/core/templates/richie'],
|
|
26
|
-
webpackFinal: async (config, {
|
|
27
|
-
configType,
|
|
28
|
-
}) => {
|
|
31
|
+
webpackFinal: async (config, { configType }) => {
|
|
29
32
|
config.resolve.plugins = [new TsconfigPathsPlugin()];
|
|
30
33
|
return config;
|
|
31
34
|
},
|
|
@@ -33,7 +36,3 @@ module.exports = {
|
|
|
33
36
|
autodocs: false,
|
|
34
37
|
},
|
|
35
38
|
};
|
|
36
|
-
|
|
37
|
-
function getAbsolutePath(value) {
|
|
38
|
-
return dirname(require.resolve(join(value, "package.json")));
|
|
39
|
-
}
|
|
@@ -101,18 +101,19 @@ const Slider = ({ slides, title }: SliderProps) => {
|
|
|
101
101
|
return (
|
|
102
102
|
<div
|
|
103
103
|
className="slider"
|
|
104
|
-
ref={emblaRef}
|
|
105
104
|
aria-roledescription="carousel"
|
|
106
105
|
aria-label={title}
|
|
107
106
|
role="button"
|
|
108
107
|
tabIndex={0}
|
|
109
108
|
onKeyDown={handleKeyDown}
|
|
110
109
|
>
|
|
111
|
-
<
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
110
|
+
<div ref={emblaRef}>
|
|
111
|
+
<Slideshow
|
|
112
|
+
slides={slides}
|
|
113
|
+
onNextSlide={() => emblaApi?.scrollNext()}
|
|
114
|
+
onPreviousSlide={() => emblaApi?.scrollPrev()}
|
|
115
|
+
/>
|
|
116
|
+
</div>
|
|
116
117
|
<SlidePanel
|
|
117
118
|
slides={slides}
|
|
118
119
|
activeSlideIndex={activeSlideIndex}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "richie-education",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.1-dev3",
|
|
4
4
|
"description": "A CMS to build learning portals for Open Education",
|
|
5
5
|
"main": "sandbox/manage.py",
|
|
6
6
|
"scripts": {
|
|
@@ -57,13 +57,9 @@
|
|
|
57
57
|
"@openfun/cunningham-tokens": "3.0.0",
|
|
58
58
|
"@sentry/browser": "10.40.0",
|
|
59
59
|
"@sentry/types": "10.40.0",
|
|
60
|
-
"@storybook/addon-actions": "9.0.8",
|
|
61
|
-
"@storybook/addon-essentials": "8.6.17",
|
|
62
|
-
"@storybook/addon-interactions": "8.6.17",
|
|
63
60
|
"@storybook/addon-links": "10.2.13",
|
|
64
61
|
"@storybook/react": "10.2.13",
|
|
65
62
|
"@storybook/react-webpack5": "10.2.13",
|
|
66
|
-
"@storybook/test": "8.6.17",
|
|
67
63
|
"@tanstack/query-core": "5.90.20",
|
|
68
64
|
"@tanstack/query-sync-storage-persister": "5.90.23",
|
|
69
65
|
"@tanstack/react-query": "5.90.21",
|
|
@@ -136,7 +132,7 @@
|
|
|
136
132
|
"react-router": "7.12.0",
|
|
137
133
|
"sass": "1.97.3",
|
|
138
134
|
"source-map-loader": "5.0.0",
|
|
139
|
-
"storybook": "
|
|
135
|
+
"storybook": "10.2.13",
|
|
140
136
|
"tsconfig-paths-webpack-plugin": "4.2.0",
|
|
141
137
|
"typescript": "5.9.3",
|
|
142
138
|
"uuid": "13.0.0",
|
|
@@ -162,7 +158,6 @@
|
|
|
162
158
|
"yarn": "1.22.22"
|
|
163
159
|
},
|
|
164
160
|
"devDependencies": {
|
|
165
|
-
"@storybook/addon-mdx-gfm": "8.6.17",
|
|
166
161
|
"@storybook/addon-webpack5-compiler-babel": "4.0.0"
|
|
167
162
|
}
|
|
168
163
|
}
|