@oaknational/oak-components 3.11.0 → 3.12.0

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/README.md CHANGED
@@ -43,7 +43,6 @@ export default function RootLayout({ children }) {
43
43
 
44
44
  To enable SSR of styles and avoid a flicker of unstyled content you'll need to configure your Next.js app to support [styled-components](https://nextjs.org/docs/app/building-your-application/styling/css-in-js#styled-components)
45
45
 
46
-
47
46
  ## Development
48
47
 
49
48
  1. Copy the example env config `cp .env.example .env`
@@ -83,6 +82,13 @@ Sometimes it isn't enough to develop entirely inside Storybook and it might be n
83
82
  - 🚨 if you're an Oak engineer developing in OWA there is a convenience script and you should use `pnpm run remove-local-components` instead
84
83
  as it will automatically re-install the library from NPM.
85
84
 
85
+ ## Testing Stories
86
+
87
+ To check that all stories render successfully, you can use [@storybook/test-runner](https://storybook.js.org/docs/writing-tests/integrations/test-runner). These tests will also run against the deployed preview on PRs. To run locally:
88
+
89
+ 1. Ensure browsers are installed once: `pnpm exec playwright install`
90
+ 2. Run tests with `pnpm run test:storybook`
91
+
86
92
  ## Organisational structure
87
93
 
88
94
  ⚠️ When creating a new component and in doubt of which category or folder it should belong to, discuss in #oak-components Slack channel.
@@ -1037,6 +1037,8 @@ var icons = {
1037
1037
  "media-clips": "v1774884267/icons/media-clips_nw3zpt.svg",
1038
1038
  retake: "v1775141914/icons/retake-icon_xgqxzv.svg",
1039
1039
  globe: "v1776851811/icons/globe.svg",
1040
+ "video-2": "v1787662089/icons/video-2.svg",
1041
+ audio: "v1787662158/icons/audio.svg",
1040
1042
  };
1041
1043
  var backgrounds = {
1042
1044
  "confetti-pink": "v1734522868/pupil-journey/confetti-pink.svg",
@@ -783,6 +783,8 @@ declare const icons: {
783
783
  readonly "media-clips": "v1774884267/icons/media-clips_nw3zpt.svg";
784
784
  readonly retake: "v1775141914/icons/retake-icon_xgqxzv.svg";
785
785
  readonly globe: "v1776851811/icons/globe.svg";
786
+ readonly "video-2": "v1787662089/icons/video-2.svg";
787
+ readonly audio: "v1787662158/icons/audio.svg";
786
788
  };
787
789
  type IconName = keyof typeof icons;
788
790
 
@@ -188,6 +188,8 @@ var icons = {
188
188
  "media-clips": "v1774884267/icons/media-clips_nw3zpt.svg",
189
189
  retake: "v1775141914/icons/retake-icon_xgqxzv.svg",
190
190
  globe: "v1776851811/icons/globe.svg",
191
+ "video-2": "v1787662089/icons/video-2.svg",
192
+ audio: "v1787662158/icons/audio.svg",
191
193
  };
192
194
  var backgrounds = {
193
195
  "confetti-pink": "v1734522868/pupil-journey/confetti-pink.svg",
@@ -783,6 +783,8 @@ declare const icons: {
783
783
  readonly "media-clips": "v1774884267/icons/media-clips_nw3zpt.svg";
784
784
  readonly retake: "v1775141914/icons/retake-icon_xgqxzv.svg";
785
785
  readonly globe: "v1776851811/icons/globe.svg";
786
+ readonly "video-2": "v1787662089/icons/video-2.svg";
787
+ readonly audio: "v1787662158/icons/audio.svg";
786
788
  };
787
789
  type IconName = keyof typeof icons;
788
790
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oaknational/oak-components",
3
- "version": "3.11.0",
3
+ "version": "3.12.0",
4
4
  "licence": "MIT",
5
5
  "packageManager": "pnpm@11.2.0",
6
6
  "description": "Shared components for Oak applications",
@@ -27,6 +27,7 @@
27
27
  "test": "jest --watch --collectCoverage=false",
28
28
  "test:snapshot": "jest --collectCoverage=false --updateSnapshot",
29
29
  "test:ci": "jest",
30
+ "test:storybook": "test-storybook",
30
31
  "check-types": "tsc",
31
32
  "format": "prettier '**/*.{j,t}{s,sx}' --write",
32
33
  "format:precommit": "prettier '**/*.{j,t}{s,sx}' --write",
@@ -85,6 +86,7 @@
85
86
  "@storybook/addon-onboarding": "9.1.20",
86
87
  "@storybook/addon-themes": "9.1.20",
87
88
  "@storybook/nextjs": "9.1.20",
89
+ "@storybook/test-runner": "^0.24.4",
88
90
  "@testing-library/jest-dom": "^6.9.1",
89
91
  "@testing-library/react": "^16.3.2",
90
92
  "@testing-library/user-event": "^14.6.1",
@@ -121,6 +123,7 @@
121
123
  "jest-util": "^30.3.0",
122
124
  "jscodeshift": "^17.3.0",
123
125
  "knip": "^6.4.1",
126
+ "playwright": "^1.61.1",
124
127
  "prettier": "^3.8.3",
125
128
  "react": "^18.2.0",
126
129
  "react-compiler-runtime": "^1.0.0",