You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update package configuration for NHSDigital npm public registry
Package changes:
- Renamed package to @nhsdigital/nhs-fdp-design-system
- Updated version to 1.0.0 for fresh public release
- Changed author to "FDP Product Design Team"
- Changed license to MIT
- Added repository, bugs, homepage URLs pointing to NHSDigital/fdp-react-design-system
- Updated publishConfig to use npm public registry
- Added keywords for discoverability
- Updated publish scripts to use --access public
Updated all references across codebase:
- 50+ files updated from @fergusbisset/nhs-fdp-design-system to @nhsdigital/nhs-fdp-design-system
- Documentation, imports, comments all updated
exportdefaultfunction RootLayout({ children }: { children:React.ReactNode }) {
22
22
return (
@@ -34,7 +34,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
34
34
}
35
35
```
36
36
37
-
Alternative (legacy): If you can’t use the component, create your own client-only wrapper that imports '@fergusbisset/nhs-fdp-design-system/behaviours'. Note: avoid manual script tags (e.g. adding a src directly) – this is brittle in Next.js and won’t help SSR inline dynamic imports.
37
+
Alternative (legacy): If you can’t use the component, create your own client-only wrapper that imports '@nhsdigital/nhs-fdp-design-system/behaviours'. Note: avoid manual script tags (e.g. adding a src directly) – this is brittle in Next.js and won’t help SSR inline dynamic imports.
38
38
39
39
## How to Verify It's Working
40
40
@@ -64,7 +64,7 @@ So behaviours **automatically initialize** there. But in your Next.js app, nothi
64
64
65
65
## What the Behaviours Do
66
66
67
-
When you import `@fergusbisset/nhs-fdp-design-system/behaviours`, it:
67
+
When you import `@nhsdigital/nhs-fdp-design-system/behaviours`, it:
68
68
69
69
1.**Auto-initializes** on DOM ready (code at bottom of `behaviours/index.ts`)
70
70
2.**Finds all headers** on the page (`.nhsuk-header`)
@@ -80,9 +80,9 @@ Without this, you just get the static SSR markup with no interactivity.
80
80
81
81
```tsx
82
82
// app/layout.tsx
83
-
import'@fergusbisset/nhs-fdp-design-system/behaviours'// ← The magic line
0 commit comments