richie-education 2.25.0-b2.dev128 → 2.25.0-b2.dev130
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/cunningham.cjs +4 -0
- package/js/utils/StringHelper/index.ts +19 -0
- package/js/utils/cunningham-tokens.ts +202 -0
- package/js/widgets/Dashboard/components/DashboardAvatar/index.tsx +3 -0
- package/js/widgets/Dashboard/components/DashboardListAvatar/index.stories.tsx +134 -0
- package/js/widgets/Dashboard/components/DashboardListAvatar/index.tsx +13 -2
- package/package.json +35 -35
- package/scss/vendors/cunningham-tokens.scss +4 -0
package/cunningham.cjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Maybe, Nullable } from 'types/utils';
|
|
2
|
+
import { tokens } from 'utils/cunningham-tokens';
|
|
2
3
|
|
|
3
4
|
export class StringHelper {
|
|
4
5
|
static isString(input: any): boolean {
|
|
@@ -19,4 +20,22 @@ export class StringHelper {
|
|
|
19
20
|
.join('')
|
|
20
21
|
.toUpperCase();
|
|
21
22
|
}
|
|
23
|
+
|
|
24
|
+
static toColor(
|
|
25
|
+
string: string,
|
|
26
|
+
saturation = tokens.themes.default.components.dashboardListAvatar.saturation,
|
|
27
|
+
lightness = tokens.themes.default.components.dashboardListAvatar.lightness,
|
|
28
|
+
): string {
|
|
29
|
+
let hash = 0;
|
|
30
|
+
for (let i = 0; i < string.length; i++) {
|
|
31
|
+
// eslint-disable-next-line no-bitwise
|
|
32
|
+
hash = string.charCodeAt(i) + ((hash << 5) - hash);
|
|
33
|
+
// eslint-disable-next-line no-bitwise
|
|
34
|
+
hash &= hash;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const hue = hash % 360;
|
|
38
|
+
|
|
39
|
+
return `hsl(${hue}, ${saturation}%, ${lightness}%)`;
|
|
40
|
+
}
|
|
22
41
|
}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
export const tokens = {
|
|
2
|
+
themes: {
|
|
3
|
+
default: {
|
|
4
|
+
theme: {
|
|
5
|
+
colors: {
|
|
6
|
+
'secondary-text': '#555F6B',
|
|
7
|
+
'secondary-100': '#eff8ff',
|
|
8
|
+
'secondary-200': '#eaf3fd',
|
|
9
|
+
'secondary-300': '#e2ebf5',
|
|
10
|
+
'secondary-400': '#c0c9d3',
|
|
11
|
+
'secondary-500': '#a3abb4',
|
|
12
|
+
'secondary-600': '#79818a',
|
|
13
|
+
'secondary-700': '#656c75',
|
|
14
|
+
'secondary-800': '#454d55',
|
|
15
|
+
'secondary-900': '#242b32',
|
|
16
|
+
'info-text': '#FFFFFF',
|
|
17
|
+
'info-100': '#EBF2FC',
|
|
18
|
+
'info-200': '#8CB5EA',
|
|
19
|
+
'info-300': '#5894E1',
|
|
20
|
+
'info-400': '#377FDB',
|
|
21
|
+
'info-500': '#055FD2',
|
|
22
|
+
'info-600': '#0556BF',
|
|
23
|
+
'info-700': '#044395',
|
|
24
|
+
'info-800': '#033474',
|
|
25
|
+
'info-900': '#022858',
|
|
26
|
+
'greyscale-100': '#FAFAFB',
|
|
27
|
+
'greyscale-200': '#F3F4F4',
|
|
28
|
+
'greyscale-300': '#E7E8EA',
|
|
29
|
+
'greyscale-400': '#C2C6CA',
|
|
30
|
+
'greyscale-500': '#9EA3AA',
|
|
31
|
+
'greyscale-600': '#79818A',
|
|
32
|
+
'greyscale-700': '#555F6B',
|
|
33
|
+
'greyscale-800': '#303C4B',
|
|
34
|
+
'greyscale-900': '#0C1A2B',
|
|
35
|
+
'greyscale-000': '#FFFFFF',
|
|
36
|
+
'primary-100': '#ffcad1',
|
|
37
|
+
'primary-200': '#f19597',
|
|
38
|
+
'primary-300': '#e86a6f',
|
|
39
|
+
'primary-400': '#f2444b',
|
|
40
|
+
'primary-500': '#f72c30',
|
|
41
|
+
'primary-600': '#e81f2f',
|
|
42
|
+
'primary-700': '#d60f29',
|
|
43
|
+
'primary-800': '#c90022',
|
|
44
|
+
'primary-900': '#bb0014',
|
|
45
|
+
'success-100': '#EFFCD3',
|
|
46
|
+
'success-200': '#DBFAA9',
|
|
47
|
+
'success-300': '#BEF27C',
|
|
48
|
+
'success-400': '#A0E659',
|
|
49
|
+
'success-500': '#76D628',
|
|
50
|
+
'success-600': '#5AB81D',
|
|
51
|
+
'success-700': '#419A14',
|
|
52
|
+
'success-800': '#2C7C0C',
|
|
53
|
+
'success-900': '#1D6607',
|
|
54
|
+
'warning-100': '#FFF8CD',
|
|
55
|
+
'warning-200': '#FFEF9B',
|
|
56
|
+
'warning-300': '#FFE469',
|
|
57
|
+
'warning-400': '#FFDA43',
|
|
58
|
+
'warning-500': '#FFC805',
|
|
59
|
+
'warning-600': '#DBA603',
|
|
60
|
+
'warning-700': '#B78702',
|
|
61
|
+
'warning-800': '#936901',
|
|
62
|
+
'warning-900': '#7A5400',
|
|
63
|
+
'danger-100': '#F4B0B0',
|
|
64
|
+
'danger-200': '#EE8A8A',
|
|
65
|
+
'danger-300': '#E65454',
|
|
66
|
+
'danger-400': '#E13333',
|
|
67
|
+
'danger-500': '#DA0000',
|
|
68
|
+
'danger-600': '#C60000',
|
|
69
|
+
'danger-700': '#9B0000',
|
|
70
|
+
'danger-800': '#780000',
|
|
71
|
+
'danger-900': '#5C0000',
|
|
72
|
+
'primary-text': '#FFFFFF',
|
|
73
|
+
'success-text': '#FFFFFF',
|
|
74
|
+
'warning-text': '#FFFFFF',
|
|
75
|
+
'danger-text': '#FFFFFF',
|
|
76
|
+
black: '#090909',
|
|
77
|
+
'dark-grey': '#232323',
|
|
78
|
+
charcoal: '#29303b',
|
|
79
|
+
'slate-grey': '#686868',
|
|
80
|
+
'battleship-grey': '#686f7a',
|
|
81
|
+
'light-grey': '#d2d2d2',
|
|
82
|
+
silver: '#d5dbe0',
|
|
83
|
+
azure2: '#eceff1',
|
|
84
|
+
smoke: '#fdfdfd',
|
|
85
|
+
white: '#ffffff',
|
|
86
|
+
denim: '#0067b7',
|
|
87
|
+
firebrick6: '#f72c30',
|
|
88
|
+
'purplish-grey': '#726c74',
|
|
89
|
+
grey32: '#525151',
|
|
90
|
+
grey59: '#969696',
|
|
91
|
+
grey87: '#dfdfdf',
|
|
92
|
+
indianred3: '#df484b',
|
|
93
|
+
midnightblue: '#141b2c',
|
|
94
|
+
mantis: '#76ce68',
|
|
95
|
+
},
|
|
96
|
+
font: {
|
|
97
|
+
sizes: {
|
|
98
|
+
h1: '1.75rem',
|
|
99
|
+
h2: '1.375rem',
|
|
100
|
+
h3: '1.125rem',
|
|
101
|
+
h4: '0.8125rem',
|
|
102
|
+
h5: '0.625rem',
|
|
103
|
+
h6: '0.5rem',
|
|
104
|
+
l: '1rem',
|
|
105
|
+
m: '0.8125rem',
|
|
106
|
+
s: '0.6875rem',
|
|
107
|
+
},
|
|
108
|
+
weights: {
|
|
109
|
+
thin: 200,
|
|
110
|
+
light: 300,
|
|
111
|
+
regular: 400,
|
|
112
|
+
medium: 500,
|
|
113
|
+
bold: 600,
|
|
114
|
+
extrabold: 700,
|
|
115
|
+
black: 800,
|
|
116
|
+
},
|
|
117
|
+
families: { base: 'Hind', accent: 'Montserrat' },
|
|
118
|
+
letterSpacings: {
|
|
119
|
+
h1: 'normal',
|
|
120
|
+
h2: 'normal',
|
|
121
|
+
h3: 'normal',
|
|
122
|
+
h4: 'normal',
|
|
123
|
+
h5: '1px',
|
|
124
|
+
h6: 'normal',
|
|
125
|
+
l: 'normal',
|
|
126
|
+
m: 'normal',
|
|
127
|
+
s: 'normal',
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
spacings: { xl: '4rem', l: '3rem', b: '1.625rem', s: '1rem', t: '0.5rem', st: '0.25rem' },
|
|
131
|
+
transitions: {
|
|
132
|
+
'ease-in': 'cubic-bezier(0.32, 0, 0.67, 0)',
|
|
133
|
+
'ease-out': 'cubic-bezier(0.33, 1, 0.68, 1)',
|
|
134
|
+
'ease-in-out': 'cubic-bezier(0.65, 0, 0.35, 1)',
|
|
135
|
+
duration: '250ms',
|
|
136
|
+
},
|
|
137
|
+
breakpoints: { xs: 0, sm: '576px', md: '768px', lg: '992px', xl: '1200px', xxl: '1400px' },
|
|
138
|
+
},
|
|
139
|
+
components: {
|
|
140
|
+
button: { 'font-family': 'Montserrat' },
|
|
141
|
+
dashboardListAvatar: {
|
|
142
|
+
// hsl saturation range: 0, 100
|
|
143
|
+
saturation: 30,
|
|
144
|
+
// hsl lightness range: 0, 100
|
|
145
|
+
lightness: 55,
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
dark: {
|
|
150
|
+
theme: {
|
|
151
|
+
colors: {
|
|
152
|
+
'greyscale-100': '#182536',
|
|
153
|
+
'greyscale-200': '#303C4B',
|
|
154
|
+
'greyscale-300': '#555F6B',
|
|
155
|
+
'greyscale-400': '#79818A',
|
|
156
|
+
'greyscale-500': '#9EA3AA',
|
|
157
|
+
'greyscale-600': '#C2C6CA',
|
|
158
|
+
'greyscale-700': '#E7E8EA',
|
|
159
|
+
'greyscale-800': '#F3F4F4',
|
|
160
|
+
'greyscale-900': '#FAFAFB',
|
|
161
|
+
'greyscale-000': '#0C1A2B',
|
|
162
|
+
'primary-100': '#3B4C62',
|
|
163
|
+
'primary-200': '#4D6481',
|
|
164
|
+
'primary-300': '#6381A6',
|
|
165
|
+
'primary-400': '#7FA5D5',
|
|
166
|
+
'primary-500': '#8CB5EA',
|
|
167
|
+
'primary-600': '#A3C4EE',
|
|
168
|
+
'primary-700': '#C3D8F4',
|
|
169
|
+
'primary-800': '#DDE9F8',
|
|
170
|
+
'primary-900': '#F4F8FD',
|
|
171
|
+
'success-100': '#EEF8D7',
|
|
172
|
+
'success-200': '#D9F1B2',
|
|
173
|
+
'success-300': '#BDE985',
|
|
174
|
+
'success-400': '#A0E25D',
|
|
175
|
+
'success-500': '#76D628',
|
|
176
|
+
'success-600': '#5BB520',
|
|
177
|
+
'success-700': '#43941A',
|
|
178
|
+
'success-800': '#307414',
|
|
179
|
+
'success-900': '#225D10',
|
|
180
|
+
'warning-100': '#F7F3D5',
|
|
181
|
+
'warning-200': '#F0E5AA',
|
|
182
|
+
'warning-300': '#E8D680',
|
|
183
|
+
'warning-400': '#E3C95F',
|
|
184
|
+
'warning-500': '#D9B32B',
|
|
185
|
+
'warning-600': '#BD9721',
|
|
186
|
+
'warning-700': '#9D7B1C',
|
|
187
|
+
'warning-800': '#7E6016',
|
|
188
|
+
'warning-900': '#684D12',
|
|
189
|
+
'danger-100': '#F8D0D0',
|
|
190
|
+
'danger-200': '#F09898',
|
|
191
|
+
'danger-300': '#F09898',
|
|
192
|
+
'danger-400': '#ED8585',
|
|
193
|
+
'danger-500': '#E96666',
|
|
194
|
+
'danger-600': '#DD6666',
|
|
195
|
+
'danger-700': '#C36666',
|
|
196
|
+
'danger-800': '#AE6666',
|
|
197
|
+
'danger-900': '#9D6666',
|
|
198
|
+
},
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
};
|
|
@@ -12,11 +12,13 @@ export interface DashboardAvatarProps {
|
|
|
12
12
|
title: string;
|
|
13
13
|
image?: Nullable<JoanieFile>;
|
|
14
14
|
variant?: DashboardAvatarVariantEnum;
|
|
15
|
+
backgroundColor?: string;
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
export const DashboardAvatar = ({
|
|
18
19
|
title,
|
|
19
20
|
image,
|
|
21
|
+
backgroundColor,
|
|
20
22
|
variant = DashboardAvatarVariantEnum.DEFAULT,
|
|
21
23
|
}: DashboardAvatarProps) => {
|
|
22
24
|
return (
|
|
@@ -25,6 +27,7 @@ export const DashboardAvatar = ({
|
|
|
25
27
|
className={c('dashboard__avatar', {
|
|
26
28
|
'dashboard__avatar--square': variant === DashboardAvatarVariantEnum.SQUARE,
|
|
27
29
|
})}
|
|
30
|
+
style={{ backgroundColor }}
|
|
28
31
|
>
|
|
29
32
|
{image ? (
|
|
30
33
|
<img
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
|
+
import { tokens } from 'utils/cunningham-tokens';
|
|
4
|
+
import DashboardListAvatar from '.';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
component: DashboardListAvatar,
|
|
8
|
+
} as Meta<typeof DashboardListAvatar>;
|
|
9
|
+
|
|
10
|
+
type Story = StoryObj<typeof DashboardListAvatar>;
|
|
11
|
+
|
|
12
|
+
const names = [
|
|
13
|
+
'Misty Lesch',
|
|
14
|
+
'Jo Schoen',
|
|
15
|
+
'Ida Goyette',
|
|
16
|
+
'Robin Carroll',
|
|
17
|
+
'Dr. Natalie Kutch',
|
|
18
|
+
'Warren Schiller',
|
|
19
|
+
'Mr. Delbert Rogahn',
|
|
20
|
+
'Neal Kshlerin',
|
|
21
|
+
'Virginia Kuhlman',
|
|
22
|
+
'Robert Baumbach',
|
|
23
|
+
'Kenneth Okuneva',
|
|
24
|
+
'Joe Raynor',
|
|
25
|
+
'Edmond Hegmann',
|
|
26
|
+
'Jaime Huels',
|
|
27
|
+
'Marcos Schaden',
|
|
28
|
+
'Antoinette Dietrich',
|
|
29
|
+
'Lynn Jast',
|
|
30
|
+
'Mrs. Edith Schamberger',
|
|
31
|
+
'Dr. Leo Huels',
|
|
32
|
+
'Lena Wilkinson',
|
|
33
|
+
'Corey Schmidt',
|
|
34
|
+
'Constance Wyman',
|
|
35
|
+
'Stacy Nolan-Rempel',
|
|
36
|
+
'Jo Rowe',
|
|
37
|
+
'Mike Swift',
|
|
38
|
+
'Yvonne Kutch V',
|
|
39
|
+
'Norma Bahringer-Wiegand I',
|
|
40
|
+
'Randy Berge-Goldner',
|
|
41
|
+
'Gayle Denesik',
|
|
42
|
+
'Kristina Stracke',
|
|
43
|
+
'Kenneth Greenholt',
|
|
44
|
+
'Margarita Bergstrom',
|
|
45
|
+
'Kim Herman DDS',
|
|
46
|
+
'Beatrice Rodriguez',
|
|
47
|
+
'Lori Balistreri',
|
|
48
|
+
'Priscilla Dietrich-Frami',
|
|
49
|
+
'Mr. Laurence Welch',
|
|
50
|
+
'Harold Pollich',
|
|
51
|
+
'Percy Grimes',
|
|
52
|
+
'Colin Ryan',
|
|
53
|
+
'Maxine Bogisich I',
|
|
54
|
+
'Vernon Hamill',
|
|
55
|
+
'Ms. Eva Gusikowski',
|
|
56
|
+
'Mrs. Phyllis Swaniawski',
|
|
57
|
+
'Bobbie Kilback',
|
|
58
|
+
'Dr. Roberto Bayer',
|
|
59
|
+
'Pam Waters-Ankunding',
|
|
60
|
+
'Gabriel White DVM',
|
|
61
|
+
'Danny Little',
|
|
62
|
+
'Leonard Ratke',
|
|
63
|
+
'Jeremy Nicolas',
|
|
64
|
+
'Ora Macejkovic PhD',
|
|
65
|
+
'Jacquelyn Kuhlman',
|
|
66
|
+
'Hattie Satterfield',
|
|
67
|
+
'Tricia Heaney-Jacobson',
|
|
68
|
+
'Mamie Smitham',
|
|
69
|
+
'Cedric Collins',
|
|
70
|
+
'Myrtle Oberbrunner IV',
|
|
71
|
+
'Olga Bernier Sr.',
|
|
72
|
+
'Isaac Reichel-Zieme MD',
|
|
73
|
+
];
|
|
74
|
+
|
|
75
|
+
const DashboardListAvatarList = ({ title, children }: PropsWithChildren<{ title: string }>) => {
|
|
76
|
+
return (
|
|
77
|
+
<div>
|
|
78
|
+
<h2 style={{ marginBottom: '1em' }}>{title}</h2>
|
|
79
|
+
<div
|
|
80
|
+
style={{
|
|
81
|
+
display: 'grid',
|
|
82
|
+
gap: '1rem',
|
|
83
|
+
gridTemplateColumns: 'repeat(15, minmax(max-content, 1fr))',
|
|
84
|
+
}}
|
|
85
|
+
>
|
|
86
|
+
{children}
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
);
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export const Default: Story = {
|
|
93
|
+
render: () => {
|
|
94
|
+
const colorSettingList = [
|
|
95
|
+
{
|
|
96
|
+
title: `Current: saturation ${tokens.themes.default.components.dashboardListAvatar.saturation}, lightness: ${tokens.themes.default.components.dashboardListAvatar.lightness}`,
|
|
97
|
+
saturation: tokens.themes.default.components.dashboardListAvatar.saturation,
|
|
98
|
+
lightness: tokens.themes.default.components.dashboardListAvatar.lightness,
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
title: 'saturation 50, lightness: 55',
|
|
102
|
+
saturation: 50,
|
|
103
|
+
lightness: 55,
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
title: 'saturation 40, lightness: 55',
|
|
107
|
+
saturation: 40,
|
|
108
|
+
lightness: 55,
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
title: 'saturation 35, lightness: 55',
|
|
112
|
+
saturation: 35,
|
|
113
|
+
lightness: 55,
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
title: 'saturation 30, lightness: 55',
|
|
117
|
+
saturation: 30,
|
|
118
|
+
lightness: 55,
|
|
119
|
+
},
|
|
120
|
+
];
|
|
121
|
+
|
|
122
|
+
return (
|
|
123
|
+
<div style={{ display: 'flex', flexDirection: 'column', gap: '2em' }}>
|
|
124
|
+
{colorSettingList.map(({ title, ...colorSetting }) => (
|
|
125
|
+
<DashboardListAvatarList title={title}>
|
|
126
|
+
{names.map((name) => (
|
|
127
|
+
<DashboardListAvatar title={name} {...colorSetting} />
|
|
128
|
+
))}
|
|
129
|
+
</DashboardListAvatarList>
|
|
130
|
+
))}
|
|
131
|
+
</div>
|
|
132
|
+
);
|
|
133
|
+
},
|
|
134
|
+
};
|
|
@@ -1,9 +1,20 @@
|
|
|
1
|
+
import { StringHelper } from 'utils/StringHelper';
|
|
1
2
|
import { DashboardAvatar, DashboardAvatarProps } from '../DashboardAvatar';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
interface DashboardListAvatarProps extends DashboardAvatarProps {
|
|
5
|
+
saturation?: number;
|
|
6
|
+
lightness?: number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const DashboardListAvatar = ({
|
|
10
|
+
saturation,
|
|
11
|
+
lightness,
|
|
12
|
+
...avatarProps
|
|
13
|
+
}: DashboardListAvatarProps) => {
|
|
14
|
+
const backgroundColor = StringHelper.toColor(avatarProps.title, saturation, lightness);
|
|
4
15
|
return (
|
|
5
16
|
<div className="dashboard-list-avatar__container">
|
|
6
|
-
<DashboardAvatar {...
|
|
17
|
+
<DashboardAvatar {...avatarProps} backgroundColor={backgroundColor} />
|
|
7
18
|
</div>
|
|
8
19
|
);
|
|
9
20
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "richie-education",
|
|
3
|
-
"version": "2.25.0-b2.
|
|
3
|
+
"version": "2.25.0-b2.dev130",
|
|
4
4
|
"description": "A CMS to build learning portals for Open Education",
|
|
5
5
|
"main": "sandbox/manage.py",
|
|
6
6
|
"scripts": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"watch-ts": "yarn build-ts --watch",
|
|
18
18
|
"storybook": "storybook dev -p 6006",
|
|
19
19
|
"build-storybook": "storybook build",
|
|
20
|
-
"build-theme": "cunningham -g scss -o scss/vendors && cunningham -g css -o scss/vendors/css"
|
|
20
|
+
"build-theme": "cunningham -g scss -o scss/vendors && cunningham -g css -o scss/vendors/css -g ts -o js/utils/"
|
|
21
21
|
},
|
|
22
22
|
"repository": {
|
|
23
23
|
"type": "git",
|
|
@@ -38,31 +38,31 @@
|
|
|
38
38
|
"not dead"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@babel/core": "7.
|
|
41
|
+
"@babel/core": "7.24.0",
|
|
42
42
|
"@babel/plugin-syntax-dynamic-import": "7.8.3",
|
|
43
43
|
"@babel/plugin-transform-modules-commonjs": "7.23.3",
|
|
44
|
-
"@babel/preset-env": "7.
|
|
44
|
+
"@babel/preset-env": "7.24.0",
|
|
45
45
|
"@babel/preset-react": "7.23.3",
|
|
46
46
|
"@babel/preset-typescript": "7.23.3",
|
|
47
47
|
"@faker-js/faker": "8.4.1",
|
|
48
48
|
"@formatjs/cli": "6.2.7",
|
|
49
49
|
"@formatjs/intl-relativetimeformat": "11.2.12",
|
|
50
50
|
"@hookform/resolvers": "3.3.4",
|
|
51
|
-
"@openfun/cunningham-react": "2.
|
|
52
|
-
"@openfun/cunningham-tokens": "2.1.
|
|
53
|
-
"@sentry/browser": "7.
|
|
54
|
-
"@sentry/types": "7.
|
|
55
|
-
"@storybook/addon-actions": "7.6.
|
|
56
|
-
"@storybook/addon-essentials": "7.6.
|
|
57
|
-
"@storybook/addon-interactions": "7.6.
|
|
58
|
-
"@storybook/addon-links": "7.6.
|
|
59
|
-
"@storybook/react": "7.6.
|
|
60
|
-
"@storybook/react-webpack5": "7.6.
|
|
51
|
+
"@openfun/cunningham-react": "2.6.0",
|
|
52
|
+
"@openfun/cunningham-tokens": "2.1.1",
|
|
53
|
+
"@sentry/browser": "7.105.0",
|
|
54
|
+
"@sentry/types": "7.105.0",
|
|
55
|
+
"@storybook/addon-actions": "7.6.17",
|
|
56
|
+
"@storybook/addon-essentials": "7.6.17",
|
|
57
|
+
"@storybook/addon-interactions": "7.6.17",
|
|
58
|
+
"@storybook/addon-links": "7.6.17",
|
|
59
|
+
"@storybook/react": "7.6.17",
|
|
60
|
+
"@storybook/react-webpack5": "7.6.17",
|
|
61
61
|
"@storybook/testing-library": "0.2.2",
|
|
62
|
-
"@tanstack/query-core": "5.
|
|
63
|
-
"@tanstack/query-sync-storage-persister": "5.
|
|
64
|
-
"@tanstack/react-query": "5.
|
|
65
|
-
"@tanstack/react-query-persist-client": "5.
|
|
62
|
+
"@tanstack/query-core": "5.24.8",
|
|
63
|
+
"@tanstack/query-sync-storage-persister": "5.24.8",
|
|
64
|
+
"@tanstack/react-query": "5.24.8",
|
|
65
|
+
"@tanstack/react-query-persist-client": "5.24.8",
|
|
66
66
|
"@testing-library/dom": "9.3.4",
|
|
67
67
|
"@testing-library/jest-dom": "6.4.2",
|
|
68
68
|
"@testing-library/react": "14.2.1",
|
|
@@ -74,13 +74,13 @@
|
|
|
74
74
|
"@types/lodash-es": "4.17.12",
|
|
75
75
|
"@types/node-fetch": "2.6.11",
|
|
76
76
|
"@types/query-string": "6.3.0",
|
|
77
|
-
"@types/react": "18.2.
|
|
77
|
+
"@types/react": "18.2.61",
|
|
78
78
|
"@types/react-autosuggest": "10.1.11",
|
|
79
79
|
"@types/react-dom": "18.2.19",
|
|
80
80
|
"@types/react-modal": "3.16.3",
|
|
81
81
|
"@types/uuid": "9.0.8",
|
|
82
|
-
"@typescript-eslint/eslint-plugin": "7.0
|
|
83
|
-
"@typescript-eslint/parser": "7.0
|
|
82
|
+
"@typescript-eslint/eslint-plugin": "7.1.0",
|
|
83
|
+
"@typescript-eslint/parser": "7.1.0",
|
|
84
84
|
"babel-jest": "29.7.0",
|
|
85
85
|
"babel-loader": "9.1.3",
|
|
86
86
|
"babel-plugin-react-intl": "8.2.25",
|
|
@@ -88,10 +88,10 @@
|
|
|
88
88
|
"classnames": "2.5.1",
|
|
89
89
|
"cljs-merge": "1.1.1",
|
|
90
90
|
"core-js": "3.36.0",
|
|
91
|
-
"downshift": "8.
|
|
92
|
-
"eslint": "8.
|
|
91
|
+
"downshift": "8.4.0",
|
|
92
|
+
"eslint": "8.57.0",
|
|
93
93
|
"eslint-config-airbnb": "19.0.4",
|
|
94
|
-
"eslint-config-airbnb-typescript": "
|
|
94
|
+
"eslint-config-airbnb-typescript": "18.0.0",
|
|
95
95
|
"eslint-config-prettier": "9.1.0",
|
|
96
96
|
"eslint-import-resolver-webpack": "0.13.8",
|
|
97
97
|
"eslint-plugin-compat": "4.2.0",
|
|
@@ -99,13 +99,13 @@
|
|
|
99
99
|
"eslint-plugin-import": "2.29.1",
|
|
100
100
|
"eslint-plugin-jsx-a11y": "6.8.0",
|
|
101
101
|
"eslint-plugin-prettier": "5.1.3",
|
|
102
|
-
"eslint-plugin-react": "7.
|
|
102
|
+
"eslint-plugin-react": "7.34.0",
|
|
103
103
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
104
104
|
"eslint-plugin-storybook": "0.8.0",
|
|
105
105
|
"fetch-mock": "9.11.0",
|
|
106
106
|
"file-loader": "6.2.0",
|
|
107
107
|
"glob": "10.3.10",
|
|
108
|
-
"i18n-iso-countries": "7.10.
|
|
108
|
+
"i18n-iso-countries": "7.10.1",
|
|
109
109
|
"iframe-resizer": "4.3.9",
|
|
110
110
|
"intl-pluralrules": "2.0.1",
|
|
111
111
|
"jest": "29.7.0",
|
|
@@ -113,25 +113,25 @@
|
|
|
113
113
|
"js-cookie": "3.0.5",
|
|
114
114
|
"lodash-es": "4.17.21",
|
|
115
115
|
"mdn-polyfills": "5.20.0",
|
|
116
|
-
"msw": "2.2.
|
|
116
|
+
"msw": "2.2.2",
|
|
117
117
|
"node-fetch": ">2.6.6 <3",
|
|
118
|
-
"nodemon": "3.0
|
|
118
|
+
"nodemon": "3.1.0",
|
|
119
119
|
"prettier": "3.2.5",
|
|
120
|
-
"query-string": "
|
|
120
|
+
"query-string": "9.0.0",
|
|
121
121
|
"react": "18.2.0",
|
|
122
122
|
"react-autosuggest": "10.1.0",
|
|
123
123
|
"react-dom": "18.2.0",
|
|
124
|
-
"react-hook-form": "7.
|
|
124
|
+
"react-hook-form": "7.51.0",
|
|
125
125
|
"react-intl": "6.6.2",
|
|
126
126
|
"react-modal": "3.16.1",
|
|
127
|
-
"react-router-dom": "6.22.
|
|
128
|
-
"sass": "1.71.
|
|
127
|
+
"react-router-dom": "6.22.2",
|
|
128
|
+
"sass": "1.71.1",
|
|
129
129
|
"source-map-loader": "5.0.0",
|
|
130
|
-
"storybook": "7.6.
|
|
130
|
+
"storybook": "7.6.17",
|
|
131
131
|
"tsconfig-paths-webpack-plugin": "4.1.0",
|
|
132
132
|
"typescript": "5.3.3",
|
|
133
133
|
"uuid": "9.0.1",
|
|
134
|
-
"webpack": "5.90.
|
|
134
|
+
"webpack": "5.90.3",
|
|
135
135
|
"webpack-cli": "5.1.4",
|
|
136
136
|
"whatwg-fetch": "3.6.20",
|
|
137
137
|
"xhr-mock": "2.5.1",
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
},
|
|
141
141
|
"resolutions": {
|
|
142
142
|
"@testing-library/dom": "9.3.4",
|
|
143
|
-
"@types/react": "18.2.
|
|
143
|
+
"@types/react": "18.2.61",
|
|
144
144
|
"@types/react-dom": "18.2.19"
|
|
145
145
|
},
|
|
146
146
|
"msw": {
|