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.
@@ -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 TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
4
- module.exports = {
5
- stories: ['../stories/**/*.mdx', '../stories/**/*.stories.@(js|jsx|ts|tsx)', '../js/**/*.stories.@(js|jsx|ts|tsx)'],
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
- <Slideshow
112
- slides={slides}
113
- onNextSlide={() => emblaApi?.scrollNext()}
114
- onPreviousSlide={() => emblaApi?.scrollPrev()}
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.0",
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": "8.6.17",
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
  }
@@ -101,7 +101,7 @@ $r-slider-content-line-clamp: 4 !default;
101
101
  .slider__panel {
102
102
  @include make-container();
103
103
  @include make-container-max-widths();
104
-
104
+ cursor: default;
105
105
  display: flex;
106
106
  flex-direction: column-reverse;
107
107
  }
@@ -56,6 +56,7 @@ $course-glimpse-content-padding-sides: 0.7rem !default;
56
56
  @include sv-flex(1, 0, calc(100% - #{$r-course-glimpse-gutter * 2}));
57
57
 
58
58
  position: relative;
59
+ isolation: isolate;
59
60
  margin: $r-course-glimpse-gutter;
60
61
 
61
62
  min-width: 16rem;