Skip to content

Commit 145324a

Browse files
author
Fergus Bisset
committed
feat(Header): add SSR-safe auto-initialization to HeaderServer
- Add inline <script> tag to HeaderServer for self-initialization - Script uses document.currentScript.previousElementSibling to find header - Dynamic import of headerBehaviour module for overflow handling - No 'use client' directive needed - pure server component - Progressive enhancement: header functional without JS, enhanced with JS - Wraps header and script in React Fragment for proper JSX structure Related: Removed BehavioursLoader (requires 'use client') Related: Created InitBehaviours using Next.js Script component
1 parent 8833bd1 commit 145324a

File tree

782 files changed

+1488
-151943
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

782 files changed

+1488
-151943
lines changed

.npmrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Project-specific npm configuration
2+
# GitHub Packages registry configuration
3+
registry=https://npm.pkg.github.com/
4+
@fergusbisset:registry=https://npm.pkg.github.com/
5+
6+
# Note: 'always-auth' is deprecated in npm 10+
7+
# Authentication is now handled via .npmrc auth tokens
8+
# If you need authentication, add: //npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
9+

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ nhs-fdp-design-system/
146146

147147
Validation gates after SPC changes
148148

149-
- Build: `npm run build:parity`
149+
- Build: `npm run build:parity` (or `npm run build:quiet` for cleaner output)
150150
- Tests (components): `npm run test:components` (expect one known non‑SPC failure in AriaTabsDataGrid)
151151
- SSR tests: `npm run test:ssr-components`
152152
- Lint & types: `npm run lint` and `npm run typecheck`
@@ -220,6 +220,12 @@ npm run storybook
220220
### Available Scripts
221221

222222
```bash
223+
# Build
224+
npm run build # Full production build (alias for build:parity)
225+
npm run build:parity # Complete build with all verification steps
226+
npm run build:quiet # Clean build output (filters npm warnings)
227+
npm run build:fast # Quick dev build (skips some verification)
228+
223229
# Design tokens
224230
npm run build:tokens # Build design tokens (smart rebuild)
225231

config/vite.behaviours.config.ts

Lines changed: 0 additions & 27 deletions
This file was deleted.

dist/ScrollTrigger-7ivQEezo.js

Lines changed: 0 additions & 1088 deletions
This file was deleted.

dist/ScrollTrigger-7ivQEezo.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/behaviours/buttonBehaviour.js

Lines changed: 0 additions & 78 deletions
This file was deleted.

0 commit comments

Comments
 (0)