@ministryofjustice/frontend-types 1.0.0-alpha.2 → 1.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change log
2
2
 
3
+ ## 1.0.0
4
+
5
+ Updated the GOV.UK frontend types file to allow the `ConfigurableComponent` config field to be a `NestedObject`.
6
+ Added an example/test for the MoJ `FilterToggleButton`.
7
+ Also pinned npm to 11.11.1 for unit tests in GitHub actions as the latest Node 22 had issues getting the latest npm.
8
+
3
9
  ## 1.0.0-alpha.2
4
10
 
5
11
  Updating types for GOV.UK frontend 6.1.0 (scripts were unchanged).
package/dist/index.d.ts CHANGED
@@ -104,7 +104,7 @@ declare module 'govuk-frontend' {
104
104
  /** @since 5.8.0 */
105
105
  export abstract class ConfigurableComponent<
106
106
  RootElement extends HTMLElement = HTMLElement,
107
- Config = Record<string, string | boolean | number>,
107
+ Config = ObjectNested,
108
108
  > extends Component<RootElement> {
109
109
  // technically types of `schema` and `defaults` should be strongly tied to `Config`,
110
110
  // but static properties cannot refer to generic parameters
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ministryofjustice/frontend-types",
3
- "version": "1.0.0-alpha.2",
3
+ "version": "1.0.0",
4
4
  "description": "",
5
5
  "author": "hmpps-developers",
6
6
  "license": "MIT",