codeforlife 2.8.1 → 2.8.3

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [2.8.3](https://github.com/ocadotechnology/codeforlife-package-javascript/compare/v2.8.2...v2.8.3) (2025-08-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * type ([3e3d47d](https://github.com/ocadotechnology/codeforlife-package-javascript/commit/3e3d47dd039a7d97e29101a81cce7fb19f4cc1e2))
7
+
8
+ ## [2.8.2](https://github.com/ocadotechnology/codeforlife-package-javascript/compare/v2.8.1...v2.8.2) (2025-08-22)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * type ([5b2ecb0](https://github.com/ocadotechnology/codeforlife-package-javascript/commit/5b2ecb031d34ec10eefec588b3ca2c2a3c82604b))
14
+
1
15
  ## [2.8.1](https://github.com/ocadotechnology/codeforlife-package-javascript/compare/v2.8.0...v2.8.1) (2025-08-22)
2
16
 
3
17
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "codeforlife",
3
3
  "description": "Common frontend code",
4
4
  "private": false,
5
- "version": "2.8.1",
5
+ "version": "2.8.3",
6
6
  "type": "module",
7
7
  "scripts": {
8
8
  "scripts": "../scripts/frontend"
@@ -6,7 +6,9 @@ import {
6
6
  type ListProps,
7
7
  } from "@mui/material"
8
8
 
9
- type ListItemElement = ReactElement<typeof ListItem | typeof ListItemText>
9
+ type ListItemElement =
10
+ | ReactElement<typeof ListItem | typeof ListItemText>
11
+ | string
10
12
 
11
13
  export interface ItemizedListProps {
12
14
  styleType:
@@ -57,7 +57,10 @@ type BaseFormProps<Values> = Omit<FormikConfig<Values>, "children"> & {
57
57
  children: ReactNode | ((props: _FormikProps<Values>) => ReactNode)
58
58
  scrollIntoViewOptions?: ScrollIntoViewOptions
59
59
  nonFieldErrorsProps?: Omit<NonFieldErrorsProps, "children">
60
- fieldRefs?: Array<{ name: string; inputRef: RefObject<HTMLInputElement> }>
60
+ fieldRefs?: Array<{
61
+ name: string
62
+ inputRef: RefObject<HTMLInputElement | null>
63
+ }>
61
64
  }
62
65
 
63
66
  const BaseForm = <Values extends FormValues>({