diff --git a/.changeset/classic-eds-dark-mapping.md b/.changeset/classic-eds-dark-mapping.md new file mode 100644 index 000000000..ebc43ccc2 --- /dev/null +++ b/.changeset/classic-eds-dark-mapping.md @@ -0,0 +1,7 @@ +--- +"@equinor/fusion-react-styles": minor +--- + +Make stable EDS 2.x components follow dark mode. The root `ThemeProvider` maps the classic `--eds_*` colour properties that `@equinor/eds-core-react` 2.x reads to the scheme-aware `--eds-color-*` variables of `@equinor/eds-tokens` 2.3.2, under `[data-color-scheme="dark"]` (and the system dark preference on a root without `data-color-scheme="light"`) only, so light mode keeps the classic colours. The scrim uses a translucent mix of `--eds-color-bg-backdrop`. `Tooltip` and `Snackbar` get a dark, near-opaque `--eds-color-bg-neutral-canvas` background and light text. + +New exports for hosts with their own global styles: `classicColourVariables`, `classicScrimColour`, `classicOverlayColour`, `classicOverlayColours`, `classicOverlayTextStyles`, `classicColourDeclarations()` and `classicColourSchemeStyles()`. diff --git a/.changeset/dark-mode-component-colours.md b/.changeset/dark-mode-component-colours.md new file mode 100644 index 000000000..84a19bfd9 --- /dev/null +++ b/.changeset/dark-mode-component-colours.md @@ -0,0 +1,14 @@ +--- +"@equinor/fusion-react-tabs": major +"@equinor/fusion-react-stepper": major +"@equinor/fusion-react-errorboundary": major +"@equinor/fusion-react-ag-grid-utils": major +"@equinor/fusion-react-filter": major +"@equinor/fusion-react-hanging-garden": major +--- + +Use EDS colour-scheme-aware CSS variables (`var(--eds-color-…)`, and `var(--eds-elevation-low)` for the hanging-garden popover shadow) instead of static colours from the `@equinor/eds-tokens` JavaScript `tokens` object or hard-coded values. Components now follow `data-color-scheme` (light/dark). Spacing and typography sizes still come from `tokens`. The hanging-garden canvas (PIXI) colours remain static. + +**Breaking:** Hosts must load `@equinor/eds-tokens/css/variables` directly or through `ThemeProvider` from `@equinor/fusion-react-styles`. Without the stylesheet, the migrated styles no longer have fallback colours. + +Ref: equinor/fusion-core-tasks#2755 diff --git a/.changeset/dark-mode-react-styles.md b/.changeset/dark-mode-react-styles.md new file mode 100644 index 000000000..71afe8d6d --- /dev/null +++ b/.changeset/dark-mode-react-styles.md @@ -0,0 +1,9 @@ +--- +"@equinor/fusion-react-styles": minor +--- + +Add an optional `colorScheme` prop (`'light' | 'dark' | 'system'`) to `ThemeProvider` and export the `ColorScheme` type. Without the prop, the provider no longer forces light mode and the subtree inherits `data-color-scheme` from its ancestors (for example ``). With `system`, the provider follows `prefers-color-scheme` and updates when it changes. + +Apply shared dark canvas, panel and raised surface colours through the existing EDS CSS roles. React and Web Component providers keep those roles in nested dark scopes and restore stock EDS colours in explicit light scopes. + +Ref: equinor/fusion-core-tasks#2755 diff --git a/.changeset/dark-mode-styles-nested-scheme.md b/.changeset/dark-mode-styles-nested-scheme.md new file mode 100644 index 000000000..5700dd06d --- /dev/null +++ b/.changeset/dark-mode-styles-nested-scheme.md @@ -0,0 +1,5 @@ +--- +'@equinor/fusion-react-styles': patch +--- + +`EdsTokens` re-declares the EDS semantic colour aliases on every `[data-color-scheme]` element, so a dark subtree below a light root (for example a dark `` with portaled content under a light ``) resolves dark values instead of inheriting light ones. diff --git a/.changeset/dark-mode-web-theme.md b/.changeset/dark-mode-web-theme.md new file mode 100644 index 000000000..15c01e720 --- /dev/null +++ b/.changeset/dark-mode-web-theme.md @@ -0,0 +1,7 @@ +--- +"@equinor/fusion-web-theme": minor +--- + +Follow the EDS colour scheme instead of forcing light mode: the `color-scheme: only light` declaration is removed. Most colour properties now resolve to an EDS 2.x `--eds-color-*` CSS variable (from `@equinor/eds-tokens/css/variables`) without a literal fallback, so the host must load the EDS colour variables. Infographic, logo and overlay colours stay static. Typography colours resolve to EDS 2.x text variables in the same way. The new `colorSchemeVariables` export documents the colour mapping. + +Ref: equinor/fusion-core-tasks#2755 diff --git a/.changeset/fusion-wc-person-major-dependants.md b/.changeset/fusion-wc-person-major-dependants.md new file mode 100644 index 000000000..d943c4b5e --- /dev/null +++ b/.changeset/fusion-wc-person-major-dependants.md @@ -0,0 +1,10 @@ +--- +"@equinor/fusion-react-ag-grid-person-cell": major +"@equinor/fusion-react-components": major +--- + +Follow `@equinor/fusion-react-person` 3 onto `@equinor/fusion-wc-person` 4, so the person cell and the re-exported person components use the colour-scheme-aware person elements. Both resolve the same `fusion-wc-person` copy as `@equinor/fusion-react-person`, so the custom elements are registered once. + +**Breaking:** `@equinor/fusion-wc-person` 4 has no fallback colours, so the host must load the `@equinor/eds-tokens` 2.x CSS variables (`@equinor/eds-tokens/css/variables`), for example through `ThemeProvider` from `@equinor/fusion-react-styles`. + +Ref: equinor/fusion-core-tasks#2755 diff --git a/.changeset/mdc-colour-overrides.md b/.changeset/mdc-colour-overrides.md new file mode 100644 index 000000000..cdc8b3d32 --- /dev/null +++ b/.changeset/mdc-colour-overrides.md @@ -0,0 +1,12 @@ +--- +"@equinor/fusion-web-theme": minor +"@equinor/fusion-react-styles": patch +"@equinor/fusion-react-searchable-dropdown": patch +"@equinor/fusion-react-context-selector": patch +--- + +Theme the Material (MWC) internals of `fwc-select`, `fwc-searchable-dropdown` and the context selector with EDS colour variables, so they follow light and dark mode. + +- `@equinor/fusion-web-theme` exports `mdcColorSchemeVariables` and `mdcColorVariables`, which map the `--mdc-theme-text-*`, `--mdc-select-*` and `--mdc-checkbox-*` properties to `--eds-color-*` variables. +- `ThemeProvider` from `@equinor/fusion-react-styles` declares them on `:root`, on every `[data-color-scheme]` element and on `fwc-theme`, which covers `fwc-select` app-wide. +- `Dropdown` and `SearchableDropdown` add them to `fwc-searchable-dropdown`, so the list text, section titles, icons and check boxes are themed outside a `ThemeProvider` too. The context selector inherits this. diff --git a/.changeset/side-sheet-indicator-colour.md b/.changeset/side-sheet-indicator-colour.md new file mode 100644 index 000000000..7aeabbb05 --- /dev/null +++ b/.changeset/side-sheet-indicator-colour.md @@ -0,0 +1,11 @@ +--- +"@equinor/fusion-react-side-sheet": major +--- + +Use EDS colour-scheme-aware CSS variables instead of static `tokens` colours, so the side sheet follows `data-color-scheme` (light/dark). + +**Breaking:** Hosts must load `@equinor/eds-tokens/css/variables` directly or through `ThemeProvider` from `@equinor/fusion-react-styles`. Without the stylesheet, the sheet background and default indicator no longer have fallback colours. + +The `Indicator` now also accepts a CSS variable (`var(--…)`) as `color`, through the new exported `IndicatorColor` and `CSSVariableString` types, and defaults to `var(--eds-color-bg-danger-fill-emphasis-default)`. + +Ref: equinor/fusion-core-tasks#2755 diff --git a/.changeset/unreleased-fusion-wc-majors.md b/.changeset/unreleased-fusion-wc-majors.md new file mode 100644 index 000000000..eeaba1da5 --- /dev/null +++ b/.changeset/unreleased-fusion-wc-majors.md @@ -0,0 +1,21 @@ +--- +"@equinor/fusion-react-styles": major +"@equinor/fusion-react-person": major +"@equinor/fusion-react-markdown": major +"@equinor/fusion-react-skeleton": major +"@equinor/fusion-react-layout": major +"@equinor/fusion-react-context-selector": major +"@equinor/fusion-react-searchable-dropdown": major +"@equinor/fusion-react-textarea": major +"@equinor/fusion-react-list": major +"@equinor/fusion-react-filter": major +--- + +Depend on the colour-scheme-aware major versions of the Fusion web components, so they follow light and dark mode. + +- `@equinor/fusion-wc-theme` 2: `` no longer forces light mode and follows the document `data-color-scheme`. +- `@equinor/fusion-wc-avatar` 4, `-chip` 2, `-list` 2, `-markdown` 2, `-page` 1, `-people` 3, `-person` 4, `-searchable-dropdown` 5, `-skeleton` 3 and `-textarea` 2 use EDS CSS colour variables without fallbacks. + +**Breaking:** the web components no longer carry fallback colours, so the host must load the `@equinor/eds-tokens` 2.x CSS variables (`@equinor/eds-tokens/css/variables`). `ThemeProvider` from `@equinor/fusion-react-styles` does this. Without it, the components render without colours. `ThemeProvider` and `` also stop forcing light mode and follow the document colour scheme; set `data-color-scheme="light"` on ``, or `colorScheme="light"` on `ThemeProvider`, to keep the previous look. + +Ref: equinor/fusion-core-tasks#2755 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 20f0cb9c9..20e55fd96 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -43,24 +43,18 @@ bun run build bun run start ``` -### Temporary light-only Storybook - -Storybook's preview document follows the EDS +### Colour scheme (light / dark / system) + +Use the **Colour scheme** toolbar item to switch the preview between System, Light and Dark. +The decorator in `storybook/.storybook/preview.tsx` always sets an explicit `light` or `dark` +`data-color-scheme` on the preview ``, the way the Fusion portal passes the scheme down. +For System it resolves `prefers-color-scheme` with `matchMedia` and updates the attribute when +the OS setting changes, as the portal does. +`ThemeProvider` inherits it, and content portaled to `body` follows it too. The body uses the EDS +neutral canvas background and text colours from `preview-head.html`. +Follow the EDS [colour scheme detection](https://eds.equinor.com/docs/foundation/colour/getting_started#colour-scheme-detection) -guidance: `preview-head.html` declares ``, -which the HTML parser merges onto the preview document's root element before -any styles load. EDS then resolves its light CSS variables and applies -`color-scheme: light`, so EDS colours and native controls stay light on initial -load and when the OS/browser preference changes, including docs canvases and -content portaled to `body`. -Only the preview, where components use EDS CSS variables, is affected; the -Storybook manager UI is left unchanged. - -This is a temporary Storybook-only policy for -[equinor/fusion-core-tasks#2120](https://github.com/equinor/fusion-core-tasks/issues/2120), -not dark-mode support or a change to reusable `ThemeProvider` defaults. -Explicit nested color-scheme examples remain free to override the inherited -scheme. Remove the preview head override when Storybook supports automatic theming. +guidance. Run the regression checks with: @@ -68,17 +62,26 @@ Run the regression checks with: bun run --cwd storybook test ``` -The checks verify the preview head markup and render an EDS CSS variable in -headless Chromium with a dark `prefers-color-scheme`, asserting it resolves to -the EDS light token value. Install the browser once with -`bun run --cwd storybook test:setup`. - -For browser verification, load Storybook with both light and dark -`prefers-color-scheme` preferences, then switch each preference live without -reloading. Check an ordinary story, its Docs canvas, and body-portaled -content. The preview root must keep `data-color-scheme="light"`, -EDS colors must remain light, and preview native controls must resolve to -`color-scheme: light`. +The checks verify that `preview-head.html` does not force a scheme. They also render an +EDS CSS colour variable and the classic (EDS 2.x) colour mapping in headless Chromium for Light, +Dark and System (with light and dark `prefers-color-scheme`) and assert each matches the explicit +scheme. They also unit test how System resolves and follows OS changes. Install the browser once +with `bun run --cwd storybook test:setup`. + +For browser verification, check an ordinary story, its Docs canvas and body-portaled content +(Tooltip, Menu, Popover, Dialog, Scrim) in each toolbar scheme, and switch the OS preference +while System is selected. + +### Colours + +Style components with EDS CSS custom properties (`var(--eds-color-…)`), not the JavaScript +`tokens` object from `@equinor/eds-tokens`, whose colours are static light values. Do not +hard-code colours or add literal fallbacks inside `var()`. + +Use the stable `@equinor/eds-core-react` 2.x components. They read classic `--eds_*` colour +properties, which the root `ThemeProvider` from `@equinor/fusion-react-styles` maps to EDS colour +variables in dark mode only (see `classicColourDeclarations` in its README). Do not wrap or restyle +them per component for dark mode. ## Development diff --git a/bun.lock b/bun.lock index 67bedf810..e1600a270 100644 --- a/bun.lock +++ b/bun.lock @@ -81,7 +81,7 @@ "@equinor/fusion-react-styles": "workspace:*", "@equinor/fusion-react-utils": "workspace:*", "@equinor/fusion-wc-icon": "^2.4.4", - "@equinor/fusion-wc-searchable-dropdown": "^4.1.5", + "@equinor/fusion-wc-searchable-dropdown": "^5.0.0", }, "devDependencies": { "@types/react": "^19.3.0", @@ -137,7 +137,7 @@ "dependencies": { "@equinor/eds-tokens": "^2.3.2", "@equinor/fusion-react-utils": "workspace:*", - "@equinor/fusion-wc-chip": "^1.3.5", + "@equinor/fusion-wc-chip": "^2.0.0", "rxjs": "^7.8.1", "styled-components": "^6.6.0", "typesafe-actions": "^5.1.0", @@ -186,7 +186,7 @@ "dependencies": { "@equinor/fusion-react-utils": "workspace:*", "@equinor/fusion-wc-layout": "^0.2.1", - "@equinor/fusion-wc-page": "^0.2.1", + "@equinor/fusion-wc-page": "^1.0.0", }, "devDependencies": { "@types/react": "^19.3.0", @@ -201,7 +201,7 @@ "version": "1.0.8", "dependencies": { "@equinor/fusion-react-utils": "workspace:*", - "@equinor/fusion-wc-list": "^1.2.5", + "@equinor/fusion-wc-list": "^2.0.0", }, "devDependencies": { "@types/react": "^19.3.0", @@ -216,7 +216,7 @@ "version": "1.0.9", "dependencies": { "@equinor/fusion-react-utils": "workspace:*", - "@equinor/fusion-wc-markdown": "^1.6.5", + "@equinor/fusion-wc-markdown": "^2.0.0", }, "devDependencies": { "@types/react": "^19.3.0", @@ -231,8 +231,8 @@ "version": "2.0.17", "dependencies": { "@equinor/fusion-react-utils": "workspace:*", - "@equinor/fusion-wc-people": "^2.2.6", - "@equinor/fusion-wc-person": "^3.5.7", + "@equinor/fusion-wc-people": "^3.0.0", + "@equinor/fusion-wc-person": "^4.0.0", }, "devDependencies": { "@types/react": "^19.3.0", @@ -263,7 +263,8 @@ "dependencies": { "@equinor/fusion-react-utils": "workspace:*", "@equinor/fusion-wc-icon": "^2.4.4", - "@equinor/fusion-wc-searchable-dropdown": "^4.1.5", + "@equinor/fusion-wc-searchable-dropdown": "^5.0.0", + "@equinor/fusion-web-theme": "workspace:*", }, "devDependencies": { "@types/react": "^19.3.0", @@ -304,7 +305,7 @@ "version": "1.0.8", "dependencies": { "@equinor/fusion-react-utils": "workspace:*", - "@equinor/fusion-wc-skeleton": "^2.2.5", + "@equinor/fusion-wc-skeleton": "^3.0.0", }, "devDependencies": { "@types/react": "^19.3.0", @@ -339,7 +340,7 @@ "version": "2.1.11", "dependencies": { "@equinor/eds-tokens": "^2.3.2", - "@equinor/fusion-wc-theme": "^1.2.6", + "@equinor/fusion-wc-theme": "^2.0.0", "@equinor/fusion-web-theme": "workspace:^", "clsx": "^2.1.0", "hoist-non-react-statics": "^3.3.2", @@ -358,6 +359,7 @@ "@types/node": "^26.6.6", "@types/react": "^19.3.0", "@vitest/coverage-v8": "^5.1.0", + "jsdom": "^31.0.1", "react": "^19.3.1", "styled-components": "^6.6.0", "vitest": "^5.1.0", @@ -397,7 +399,7 @@ "version": "1.0.7", "dependencies": { "@equinor/fusion-react-utils": "workspace:*", - "@equinor/fusion-wc-textarea": "^1.2.4", + "@equinor/fusion-wc-textarea": "^2.0.0", }, "devDependencies": { "@types/react": "^19.3.0", @@ -482,7 +484,7 @@ "@babel/preset-react": "^8.0.1", "@babel/preset-typescript": "^8.0.7", "@equinor/fusion-observable": "^9.2.6", - "@equinor/fusion-wc-avatar": "^3.3.5", + "@equinor/fusion-wc-avatar": "^4.0.0", "@equinor/fusion-wc-icon": "^2.4.4", "@faker-js/faker": "^10.6.0", "@storybook/builder-vite": "^10.6.7", @@ -881,19 +883,19 @@ "@equinor/fusion-react-utils": ["@equinor/fusion-react-utils@workspace:packages/utils"], - "@equinor/fusion-wc-avatar": ["@equinor/fusion-wc-avatar@3.3.5", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-wc-picture": "^3.2.4", "@equinor/fusion-wc-ripple": "^1.2.4", "@equinor/fusion-web-theme": "^0.1.12", "lit": "3.3.3" } }, "sha512-CWaryF+ljLeRvqcq0AOe8Iv4HI23rC7lZ8ikkKYkebhgxW1g19CQ6DBw/xze0prMIlol0/IWiI4Wl8NobhKN6A=="], + "@equinor/fusion-wc-avatar": ["@equinor/fusion-wc-avatar@4.0.0", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-wc-picture": "^4.0.0", "@equinor/fusion-wc-ripple": "^1.2.5", "lit": "3.3.3" } }, "sha512-Dt+e8j3FHo10YuX0UxAcigfmrePQRWvCNMpIwaKkdXMOeeKetaJFYHOLEQ2daIjKcSfKlbREL4xXV8GFM/rVAQ=="], - "@equinor/fusion-wc-button": ["@equinor/fusion-wc-button@2.5.5", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-wc-icon": "^2.4.4", "@equinor/fusion-web-theme": "^0.1.12", "@material/mwc-button": "^0.27.0", "@material/mwc-icon-button": "^0.27.0", "@material/mwc-icon-button-toggle": "^0.27.0", "lit": "3.3.3" } }, "sha512-g9IWPo/FVxlndMm2alVbJlQeMehVDTATPi0HfNVy5dDdJZO7PY2a2jilPs/yNOf3TEmzyTObTmEFz9b3ZhvlVQ=="], + "@equinor/fusion-wc-button": ["@equinor/fusion-wc-button@3.0.0", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-wc-icon": "^2.4.4", "@equinor/fusion-web-theme": "^0.1.12", "@material/mwc-button": "^0.27.0", "@material/mwc-icon-button": "^0.27.0", "@material/mwc-icon-button-toggle": "^0.27.0", "lit": "3.3.3" } }, "sha512-8oLE4L2SR5WqvVZVJKg0EoA5rC5HkU4MPN22XuFJmqt/YxXG5WRLCpFrpy6eXsEkk0GI6foOXOguaGInlr7ERg=="], - "@equinor/fusion-wc-checkbox": ["@equinor/fusion-wc-checkbox@1.2.5", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-web-theme": "^0.1.12", "@material/mwc-checkbox": "^0.27.0", "lit": "3.3.3" } }, "sha512-ArFMIiyLIT8CoIeTZHiPqJqdyz51MFo8Gh7OpaICJxNAC+EzN70YGMmlPDZ79BEWCiN0bazljKA2JmVHMka9Ug=="], + "@equinor/fusion-wc-checkbox": ["@equinor/fusion-wc-checkbox@2.0.0", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@material/mwc-checkbox": "^0.27.0", "lit": "3.3.3" } }, "sha512-wVZ7DylDzanax9Gm0Rn9sYzKwo5aRNlBAZv4PmDWd6CTBZQWv7VjD3cWN8rpeDog8apJq05UfDBkEbMMkhEtfQ=="], - "@equinor/fusion-wc-chip": ["@equinor/fusion-wc-chip@1.3.5", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-wc-icon": "^2.4.4", "@equinor/fusion-wc-ripple": "^1.2.4", "@equinor/fusion-web-theme": "^0.1.12", "lit": "3.3.3" } }, "sha512-1lS3Nha+lxw17Z5NhkysgvIOI6Gy8vqG6TpkPKS8BgcH8O2OTN0vjzWxq9u7itRD1t8jeScIGu9GN29dBLG2TA=="], + "@equinor/fusion-wc-chip": ["@equinor/fusion-wc-chip@2.0.0", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-wc-icon": "^2.4.4", "@equinor/fusion-wc-ripple": "^1.2.5", "lit": "3.3.3" } }, "sha512-EiLmExhK2WiPLr62j0vUkjPHymDCdFeEjfDl69Y/5cSYEAL8sBjZ3FRyQblcvsl0CSzmH0B/ErpoGCnOgYkJIA=="], "@equinor/fusion-wc-core": ["@equinor/fusion-wc-core@2.0.3", "", {}, "sha512-o52mbfI8ck1bJMfC+y3Hf4eyS7dJv1i/8C/bSv9cMRDRz6CgiKxrTzQhXSAFCDwm8tSQ3zQyB8EPKivyTx4KFA=="], "@equinor/fusion-wc-date": ["@equinor/fusion-wc-date@1.2.5", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-web-theme": "^0.1.12", "date-fns": "^4.4.0", "lit": "3.3.3" } }, "sha512-zzcvKwYgT19BRUXAJ/UvRObanElsb00amtPaKjSwiv4NEDPo4HtAmvnyOqlol5OlqtoXAeXaEjzJnio2o4xo6w=="], - "@equinor/fusion-wc-divider": ["@equinor/fusion-wc-divider@1.2.5", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-web-theme": "^0.1.12", "lit": "3.3.3" } }, "sha512-i6IUeFW5aK0PH/UHb4Eyg9HhUMGaF9bX12BWMakf1hUPzXiK/ghgTwmS5bk+sWhf7kWogTgWZCQsRYni3HRuWw=="], + "@equinor/fusion-wc-divider": ["@equinor/fusion-wc-divider@2.0.0", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-web-theme": "^0.1.12", "lit": "3.3.3" } }, "sha512-WsLtJ1echJTfbArBjgQ0o692ytLapG0FA22ec7iqybpGhjHALNPhlLQFIkdGKyXB9WJyW7oRrerUWt2qDftxog=="], "@equinor/fusion-wc-formfield": ["@equinor/fusion-wc-formfield@1.2.5", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-web-theme": "^0.1.12", "@material/mwc-formfield": "^0.27.0", "lit": "3.3.3" } }, "sha512-lcgxxLqq0z28/ecRxQwmwOMzgOKSGcRsg16zyS4nRP6ET6e57yfGxo0Asr9BBybKVuH2iKvOu7CcybN26dvjng=="], @@ -901,33 +903,33 @@ "@equinor/fusion-wc-layout": ["@equinor/fusion-wc-layout@0.2.1", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-web-theme": "^0.1.12", "lit": "3.3.3" } }, "sha512-Pb0HI3j0K4X6OiA7wRi6umbctL43scdOb7wpaSxjE/vIVX5H0GiH3Gsn8jo/DsNbAe/u8DhwqCKLac8M74mCcQ=="], - "@equinor/fusion-wc-list": ["@equinor/fusion-wc-list@1.2.5", "", { "dependencies": { "@equinor/fusion-wc-checkbox": "^1.2.5", "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-wc-divider": "^1.2.5", "@equinor/fusion-wc-icon": "^2.4.4", "@equinor/fusion-wc-radio": "^1.2.5", "@equinor/fusion-web-theme": "^0.1.12", "@material/mwc-list": "^0.27.0", "lit": "3.3.3" } }, "sha512-sqV9F76KUl4nOAez5q1vT0kZ1l/YT6vPJor4Ln7AZBuyhUnFin6BoALQJtKq864cF/nyG0hmThTCX5M/Cju6cA=="], + "@equinor/fusion-wc-list": ["@equinor/fusion-wc-list@2.0.0", "", { "dependencies": { "@equinor/fusion-wc-checkbox": "^2.0.0", "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-wc-divider": "^2.0.0", "@equinor/fusion-wc-icon": "^2.4.4", "@equinor/fusion-wc-radio": "^2.0.0", "@equinor/fusion-web-theme": "^0.1.12", "@material/mwc-list": "^0.27.0", "lit": "3.3.3" } }, "sha512-Xz7bTe0hmlzMULkZRysI24jHL3aSPaD3vqDO/6RKgGV37fpphiWh/AyZyxrEFGKgrNQckPeRKESoWpsnsYi7FA=="], - "@equinor/fusion-wc-markdown": ["@equinor/fusion-wc-markdown@1.6.5", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-wc-icon": "^2.4.4", "@equinor/fusion-web-theme": "^0.1.12", "lit": "3.3.3", "marked": "^18.1.1", "prismjs": "^1.29.0", "prosemirror-commands": "^1.7.2", "prosemirror-history": "^1.5.1", "prosemirror-inputrules": "^1.5.1", "prosemirror-keymap": "^1.2.3", "prosemirror-markdown": "^1.13.8", "prosemirror-model": "^1.25.12", "prosemirror-schema-basic": "^1.2.5", "prosemirror-schema-list": "^1.5.1", "prosemirror-state": "^1.4.4", "prosemirror-transform": "^1.12.2", "prosemirror-view": "^1.42.6" } }, "sha512-H7G2Ds9zvE7jj8FMb0amGfUrsvfjyWX3lqFwxw1+AWN5rrZHxAXU3D6cgsryohY3yETWUFoQzxqu4mRC9uGFJw=="], + "@equinor/fusion-wc-markdown": ["@equinor/fusion-wc-markdown@2.0.0", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-wc-icon": "^2.4.4", "lit": "3.3.3", "marked": "^18.2.0", "prismjs": "^1.29.0", "prosemirror-commands": "^1.7.2", "prosemirror-history": "^1.5.1", "prosemirror-inputrules": "^1.5.1", "prosemirror-keymap": "^1.2.3", "prosemirror-markdown": "^1.13.9", "prosemirror-model": "^1.25.13", "prosemirror-schema-basic": "^1.2.5", "prosemirror-schema-list": "^1.6.0", "prosemirror-state": "^1.4.4", "prosemirror-transform": "^1.12.5", "prosemirror-view": "^1.42.9" } }, "sha512-3lwLM1g7OLpyFLh4nNCUp1MBoqDY/ENTCq1xrLRoIlssXF4cCMlA6FMuADs7XgpvxKemoY2jIU/iKNqz1XJiQA=="], - "@equinor/fusion-wc-page": ["@equinor/fusion-wc-page@0.2.1", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-web-theme": "^0.1.12", "lit": "3.3.3" } }, "sha512-KQkhQ9DPF56mjOcjgz1Td5Yx9lDeZvB+Dl5DXDBUBsEgDs9hNklAvtZuIDS3fi0HXIo6sT+8zTKeOLk/Pczr7g=="], + "@equinor/fusion-wc-page": ["@equinor/fusion-wc-page@1.0.0", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-web-theme": "^0.1.12", "lit": "3.3.3" } }, "sha512-njK5Nb9d/Iur9J7JYH5mUqs1xK1yj2W+ns+aZRz6HjXmUfTJfZq2SSQlT1KJzSJpEAHRgWc2msLZZ/PLg7n5Zw=="], - "@equinor/fusion-wc-people": ["@equinor/fusion-wc-people@2.2.6", "", { "dependencies": { "@equinor/fusion-wc-button": "^2.5.5", "@equinor/fusion-wc-checkbox": "^1.2.5", "@equinor/fusion-wc-chip": "^1.3.5", "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-wc-formfield": "^1.2.5", "@equinor/fusion-wc-icon": "^2.4.4", "@equinor/fusion-wc-person": "^3.5.7", "@equinor/fusion-wc-progress-indicator": "^1.2.5", "@equinor/fusion-wc-skeleton": "^2.2.5", "@equinor/fusion-web-theme": "^0.1.12", "@lit/context": "^1.1.6", "@lit/task": "^1.0.3", "lit": "3.3.3" } }, "sha512-OuI1Wj+lv4lThDmpOShDRlMEN7HzFFkjXOjA71UK9ihSKRE/r/YUfTJGIHHQndFk78M/GJa/cu6nG3rEbig41w=="], + "@equinor/fusion-wc-people": ["@equinor/fusion-wc-people@3.0.0", "", { "dependencies": { "@equinor/fusion-wc-button": "^3.0.0", "@equinor/fusion-wc-checkbox": "^2.0.0", "@equinor/fusion-wc-chip": "^2.0.0", "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-wc-formfield": "^1.2.5", "@equinor/fusion-wc-icon": "^2.4.4", "@equinor/fusion-wc-person": "^4.0.0", "@equinor/fusion-wc-progress-indicator": "^2.0.0", "@equinor/fusion-wc-skeleton": "^3.0.0", "@equinor/fusion-web-theme": "^0.1.12", "@lit/context": "^1.1.6", "@lit/task": "^1.0.3", "lit": "3.3.3" } }, "sha512-1RIpPUVPuoyiTFPHeylA8NxKlk6JUcUdfj1aDufUWMrSW6h7y567GZePm3zkNGx9cLvZkWCMLmoU6GQw1o2f7A=="], - "@equinor/fusion-wc-person": ["@equinor/fusion-wc-person@3.5.7", "", { "dependencies": { "@equinor/fusion-wc-button": "^2.5.5", "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-wc-icon": "^2.4.4", "@equinor/fusion-wc-list": "^1.2.5", "@equinor/fusion-wc-searchable-dropdown": "^4.1.5", "@equinor/fusion-wc-skeleton": "^2.2.5", "@equinor/fusion-wc-textinput": "^1.2.5", "@equinor/fusion-web-theme": "^0.1.12", "@floating-ui/dom": "^1.8.0", "@lit-labs/observers": "^2.1.0", "@lit/task": "^1.0.3", "lit": "3.3.3" } }, "sha512-CXaT92bXYUHpyd4GaRKTnFoHEmIsBJDzw4a9nFRcJtgGARH5lV6uxz4Fhjhu+u9sVLb5ofPiN82xpwEmS1ow/A=="], + "@equinor/fusion-wc-person": ["@equinor/fusion-wc-person@4.0.0", "", { "dependencies": { "@equinor/fusion-wc-button": "^3.0.0", "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-wc-icon": "^2.4.4", "@equinor/fusion-wc-list": "^2.0.0", "@equinor/fusion-wc-searchable-dropdown": "^5.0.0", "@equinor/fusion-wc-skeleton": "^3.0.0", "@equinor/fusion-wc-textinput": "^2.0.0", "@equinor/fusion-web-theme": "^0.1.12", "@floating-ui/dom": "^1.8.0", "@lit-labs/observers": "^2.1.0", "@lit/task": "^1.0.3", "lit": "3.3.3" } }, "sha512-8XK4jmcWu0iufLwcBHIdb2t7jOH7bu9TPTL49D/OLcqthsSkR/zUSYIW6LcTOac728xn5Wju3mKMrN6ZGD5awA=="], - "@equinor/fusion-wc-picture": ["@equinor/fusion-wc-picture@3.2.4", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "lit": "3.3.3" } }, "sha512-JCxoDS31ZMHbL88PDJKZ/HGNl4ZLhgy5vvwJ7ed8ZnzBF0nwCws8LCSNzW3PCH/rAddiXBk3amio4xuvor019A=="], + "@equinor/fusion-wc-picture": ["@equinor/fusion-wc-picture@4.0.0", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "lit": "3.3.3" } }, "sha512-7AGTrYogZsqb55FGbHqJjDEZG12sdWGjghqn2DoO9y1+qpoBBSDgohOojzriKPmnTFDS19fFN+TDcZBP3NvgDQ=="], - "@equinor/fusion-wc-progress-indicator": ["@equinor/fusion-wc-progress-indicator@1.2.5", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-web-theme": "^0.1.12", "lit": "3.3.3" } }, "sha512-ryxIg36jDadWJV0Hc+yOoYxZNNZttg7DVGY6AYr0+B2KLT8loihX0pIzxRIwnVzDJoWhc1pPDXygkQvLF70aIg=="], + "@equinor/fusion-wc-progress-indicator": ["@equinor/fusion-wc-progress-indicator@2.0.0", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-web-theme": "^0.1.12", "lit": "3.3.3" } }, "sha512-OrWVnkBoZD4bsf6vytD0ZweKTP/KYkQxgf6iglTNCAynph7gRfNgX9BNuWAJid2VrNjwGBzuebKLhdAuN5yM5A=="], - "@equinor/fusion-wc-radio": ["@equinor/fusion-wc-radio@1.2.5", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-web-theme": "^0.1.12", "@material/mwc-radio": "^0.27.0", "lit": "3.3.3" } }, "sha512-op7CXHE4fXi8VAvKlIejmIBWWjuGRgiSRrwjdFqVwitj4HHgovmPclZbbv8gFBMdXtgsvBisOjDxAB8MDwH2mw=="], + "@equinor/fusion-wc-radio": ["@equinor/fusion-wc-radio@2.0.0", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@material/mwc-radio": "^0.27.0", "lit": "3.3.3" } }, "sha512-05R9k9cBX61WdQsuONq8YDbkeQydQQRWym60Sr4P6lPPWUV7UgWoXwgpGoAqAUDxc1hzhq1BjLxxBWMIe7caPA=="], "@equinor/fusion-wc-ripple": ["@equinor/fusion-wc-ripple@1.2.4", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@material/mwc-ripple": "^0.27.0", "lit": "3.3.3" } }, "sha512-Ie3SG5MmmkHO8RcgQ39cfCtLDqsNBeNHTqJwi8yfiNZJqU9kq2IzXp+tqxbQJaM4fz08xI1okfMX7IUlzWo6Hg=="], - "@equinor/fusion-wc-searchable-dropdown": ["@equinor/fusion-wc-searchable-dropdown@4.1.5", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-wc-divider": "^1.2.5", "@equinor/fusion-wc-icon": "^2.4.4", "@equinor/fusion-wc-list": "^1.2.5", "@equinor/fusion-wc-textinput": "^1.2.5", "@equinor/fusion-web-theme": "^0.1.12", "@lit-labs/task": "^3.1.0", "@types/uuid": "^11.0.0", "lit": "3.3.3", "uuid": "^14.0.3" } }, "sha512-OZ5GTJd9U5qNbBloOoE3i1EiERV0K3bgAcm9CFG/yPWfMBg3+YuOLdb2FDACpJn+dmdDZlR0fEuGBh1MqYY8vQ=="], + "@equinor/fusion-wc-searchable-dropdown": ["@equinor/fusion-wc-searchable-dropdown@5.0.0", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-wc-divider": "^2.0.0", "@equinor/fusion-wc-icon": "^2.4.4", "@equinor/fusion-wc-list": "^2.0.0", "@equinor/fusion-wc-textinput": "^2.0.0", "@lit-labs/task": "^3.1.0", "@types/uuid": "^11.0.0", "lit": "3.3.3", "uuid": "^14.0.3" } }, "sha512-6qZXuodC059ct+t6M0gdd5YBL6Vab6guXf/7fjsd8rClq9LKAepbfayX9/OO/k80JYbhZeQni9IQNtx/C+1EpA=="], - "@equinor/fusion-wc-skeleton": ["@equinor/fusion-wc-skeleton@2.2.5", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-web-theme": "^0.1.12", "lit": "3.3.3" } }, "sha512-qJKwXBh8QMVmLChx6E9NgrndOr8Rk7OvSh3PjVKR7GKC+ndiqVXVLTYvl4vdFAzGvnEVdamcEFiGcn+GNeOomg=="], + "@equinor/fusion-wc-skeleton": ["@equinor/fusion-wc-skeleton@3.0.0", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "lit": "3.3.3" } }, "sha512-O49pRXlh9rFyF2xxAKG/LiomxNjge5vbvpyTc8ycXr0FadgGTL3Ih5x77VXLTSK9xPnT4lKuw95TfGKGYErNWA=="], - "@equinor/fusion-wc-textarea": ["@equinor/fusion-wc-textarea@1.2.4", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-wc-textinput": "^1.2.4", "@material/mwc-textarea": "^0.27.0", "lit": "3.3.3" } }, "sha512-wEsWBwlvGxxEGXBkHVkvHM1OcW0JuFaZjixX3FrHMVYKHjZeM3iyNb7UUJi0CxHZgFqCh2mUyKWVETS/qWjeyw=="], + "@equinor/fusion-wc-textarea": ["@equinor/fusion-wc-textarea@2.0.0", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-wc-textinput": "^2.0.0", "@material/mwc-textarea": "^0.27.0", "lit": "3.3.3" } }, "sha512-T1OxF+25f6y/87wexSWntpzOpHM/GVxEQKDTEg3vjTxUcF1XN+05YWWBJJFTyMEVkXVqhqyX2AQtT4m+xx371A=="], - "@equinor/fusion-wc-textinput": ["@equinor/fusion-wc-textinput@1.2.5", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-wc-icon": "^2.4.4", "@equinor/fusion-web-theme": "^0.1.12", "@material/mwc-textfield": "^0.27.0", "lit": "3.3.3" } }, "sha512-r/0Fn+4j+fn/XV5x+np6xK9J7xEyf00BAZRs5q4gtyOzWVU/Qa3wMWiMW6hAnMuYcm5H6/agOU1BjetUrTLBQw=="], + "@equinor/fusion-wc-textinput": ["@equinor/fusion-wc-textinput@2.0.0", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-wc-icon": "^2.4.4", "@material/mwc-textfield": "^0.27.0", "lit": "3.3.3" } }, "sha512-vCIAoRJ9O157VPjbRUBgi/fIRhI1/i8U7fDxw5DGQC7iiZK7rfaj3HlWHgvYRrGHC4AKd7X+OzgvKl4mHHIUPw=="], - "@equinor/fusion-wc-theme": ["@equinor/fusion-wc-theme@1.2.6", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-web-theme": "^0.1.12", "@material/theme": "^14.0.0", "lit": "3.3.3" } }, "sha512-MIem4+ct3EF/TwwukG0ZirYmuJyaLn4J8fZpnz8FSSJtPAlj8vH+zdk+AAAheZh03AOmypuD6x01hdfkc36qcQ=="], + "@equinor/fusion-wc-theme": ["@equinor/fusion-wc-theme@2.0.0", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-web-theme": "^0.1.12", "@material/theme": "^14.0.0", "lit": "3.3.3" } }, "sha512-ElKSCF5gRjWKOcZ099F4LJB48e4LEXX/lw71v1XjxKdb0QJaFBM8971CntSVnDHA7J6712Fqr3plwY2prmkMJw=="], "@equinor/fusion-web-theme": ["@equinor/fusion-web-theme@workspace:packages/theme"], @@ -983,6 +985,8 @@ "@esbuild/win32-x64": ["@esbuild/win32-x64@0.28.1", "", { "os": "win32", "cpu": "x64" }, "sha512-bm4Mowrv+GXMlpWX++EcXw/iLyd1o3+bJkC2DkWXYVvgZCqD/bSj9ctZeAMC3cIxgjRVR2Dufaiu4YPxr5gW1A=="], + "@exodus/bytes": ["@exodus/bytes@1.16.0", "", { "peerDependencies": { "@noble/hashes": "^1.8.0 || ^2.0.0" }, "optionalPeers": ["@noble/hashes"] }, "sha512-IcpW84uEn3N7ETtNZMlxKhfl6Pec8rUNGOTBtWbK1FKhJxIFAptZyVrvVRVBimAJxJCgc3PxepxkdWWG4DVzfA=="], + "@faker-js/faker": ["@faker-js/faker@10.6.0", "", {}, "sha512-3RQHgEtvL1Frl/d1cSreo7qhJ3Gk1OdNUai/CtZ8G+wYeRQnJih3s9xJ9/kgYekPQRdwgh0HXRPqMlzWGwivIQ=="], "@floating-ui/core": ["@floating-ui/core@1.8.0", "", { "dependencies": { "@floating-ui/utils": "^0.2.12" } }, "sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ=="], @@ -1593,6 +1597,10 @@ "baseline-browser-mapping": ["baseline-browser-mapping@2.11.5", "", { "bin": { "baseline-browser-mapping": "dist/cli.cjs" } }, "sha512-xJo6a6YZnwZfnyGmQKWMbVOcii7XRibjOskRh+WJ9UHQoX16xrQrcIgAMQOzfvs8XiLMx6ih/fsLPF73iY2D1A=="], + "bcp-47": ["bcp-47@2.1.2", "", { "dependencies": { "is-alphabetical": "^2.0.0", "is-alphanumerical": "^2.0.0", "is-decimal": "^2.0.0" } }, "sha512-wsv86UuNFuPnVieKLyECTT+CP1WSAHeoIg5P3xu2kA9Z+7fVPoKt7dxzSeEhtJel0AI+NW3fIW3KtTKQKUCngg=="], + + "bcp-47-match": ["bcp-47-match@2.0.3", "", {}, "sha512-JtTezzbAibu8G0R9op9zb3vcWZd9JF6M0xOYGPn0fNCd7wOpRB1mU2mH9T8gaBGbAAyIIVgB2G7xG0GP98zMAQ=="], + "brace-expansion": ["brace-expansion@5.0.12", "", { "dependencies": { "balanced-match": "^4.0.2" } }, "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ=="], "browserslist": ["browserslist@4.28.7", "", { "dependencies": { "baseline-browser-mapping": "^2.10.44", "caniuse-lite": "^1.0.30001806", "electron-to-chromium": "^1.5.393", "node-releases": "^2.0.51", "update-browserslist-db": "^1.2.3" }, "bin": { "browserslist": "cli.js" } }, "sha512-JxV13hNrFxqjOc8alRbq9dK1MM79NEXYpma2B2J4wAtpWS5zIEIKqWPGCl7N4o7Uc7B7itylh7SuDujATRyyTw=="], @@ -1647,10 +1655,14 @@ "csstype": ["csstype@3.2.3", "", {}, "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ=="], + "data-urls": ["data-urls@8.0.0", "", { "dependencies": { "whatwg-mimetype": "^5.0.0", "whatwg-url": "^17.1.2" } }, "sha512-JQUCCK+/CAGbGGx618PlFZMXH81Jtj7t73CHv9dd/zVWvxgGT2zLFRjnKb+Ng46GIwcy+f7f88qd4duqllK+WQ=="], + "date-fns": ["date-fns@4.4.0", "", {}, "sha512-+1UMbeh68lH1SegH83CGWwpb6OHHbpSgr3+s5Eww5M4CAgswBpoWS0AjTOfEJ33HiYKz1hdj/KTFprzXHmq/6w=="], "debug": ["debug@4.4.3", "", { "dependencies": { "ms": "^2.1.3" }, "peerDependencies": { "supports-color": "*" }, "optionalPeers": ["supports-color"] }, "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA=="], + "decimal.js": ["decimal.js@10.6.0", "", {}, "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg=="], + "decode-named-character-reference": ["decode-named-character-reference@1.3.0", "", { "dependencies": { "character-entities": "^2.0.0" } }, "sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q=="], "deep-eql": ["deep-eql@5.0.2", "", {}, "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q=="], @@ -1683,7 +1695,7 @@ "empathic": ["empathic@2.0.1", "", {}, "sha512-YGRs8knHhKHVShLkFET/rWAU8kmHbOV5LwN938RHI0pljAJ1Gf6SzXsSmRaEzcXTtOOmVqJ5+WtQPL5uigY50Q=="], - "entities": ["entities@4.5.0", "", {}, "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw=="], + "entities": ["entities@9.0.0", "", {}, "sha512-oJFNDJg3kTPwAD1cNn2+WmUq4wFoo09npc3Ydf1D7ED4smRiWrsKnaLxykrTWgyGEcusc87P5dxlAleol9kpkg=="], "env-paths": ["env-paths@2.2.1", "", {}, "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A=="], @@ -1779,6 +1791,8 @@ "hoist-non-react-statics": ["hoist-non-react-statics@3.3.2", "", { "dependencies": { "react-is": "^16.7.0" } }, "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw=="], + "html-encoding-sniffer": ["html-encoding-sniffer@7.0.0", "", { "dependencies": { "@exodus/bytes": "^1.15.1" } }, "sha512-UikN5yr7xsCDAq87Or5or0PAlD3HJJOKVzM05az588WnpDJ4Ux7a2A53Qi6gofGg2/EtvF/H4hCi/TXfCW4Y6w=="], + "human-id": ["human-id@4.2.0", "", { "bin": { "human-id": "dist/cli.js" } }, "sha512-K3GbkIWqyvvlpfhBPlbEvD97TtqBpAYA4kt+cn2lD2x2HuohzZCibcA2nOlnJT6exqvJLggoB5nv2dNf192nEA=="], "hyphenate-style-name": ["hyphenate-style-name@1.1.0", "", {}, "sha512-WDC/ui2VVRrz3jOVi+XtjqkDjiVjTtFaAGiW37k6b+ohyQ5wYDOGkvCZa8+H0nx3gyvv0+BST9xuOgIyGQ00gw=="], @@ -1793,10 +1807,16 @@ "ini": ["ini@6.0.0", "", {}, "sha512-IBTdIkzZNOpqm7q3dRqJvMaldXjDHWkEDfrwGEQTs5eaQMWV+djAhR+wahyNNMAa+qpbDUhBMVt4ZKNwpPm7xQ=="], + "is-alphabetical": ["is-alphabetical@2.0.1", "", {}, "sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ=="], + + "is-alphanumerical": ["is-alphanumerical@2.0.1", "", { "dependencies": { "is-alphabetical": "^2.0.0", "is-decimal": "^2.0.0" } }, "sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw=="], + "is-arrayish": ["is-arrayish@0.2.1", "", {}, "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg=="], "is-core-module": ["is-core-module@2.16.2", "", { "dependencies": { "hasown": "^2.0.3" } }, "sha512-evOr8xfXKxE6qSR0hSXL2r3sd7ALj8+7jQEUvPYcm5sgZFdJ+AYzT6yNmJenvIYQBgIGwfwz08sL8zoL7yq2BA=="], + "is-decimal": ["is-decimal@2.0.1", "", {}, "sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A=="], + "is-docker": ["is-docker@3.0.0", "", { "bin": { "is-docker": "cli.js" } }, "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ=="], "is-in-browser": ["is-in-browser@1.1.3", "", {}, "sha512-FeXIBgG/CPGd/WUxuEyvgGTEfwiG9Z4EKGxjNMRqviiIIfsmgrpnHLffEDdwUHqNva1VEW91o3xBT/m8Elgl9g=="], @@ -1805,6 +1825,8 @@ "is-plain-obj": ["is-plain-obj@4.1.0", "", {}, "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg=="], + "is-potential-custom-element-name": ["is-potential-custom-element-name@1.0.1", "", {}, "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ=="], + "is-wsl": ["is-wsl@3.1.1", "", { "dependencies": { "is-inside-container": "^1.0.0" } }, "sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw=="], "isarray": ["isarray@0.0.1", "", {}, "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ=="], @@ -1819,6 +1841,8 @@ "js-yaml": ["js-yaml@4.3.2", "", { "dependencies": { "argparse": "^2.0.1" }, "bin": { "js-yaml": "bin/js-yaml.js" } }, "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA=="], + "jsdom": ["jsdom@31.0.1", "", { "dependencies": { "@exodus/bytes": "^1.16.0", "bcp-47": "^2.1.2", "bcp-47-match": "^2.0.3", "data-urls": "^8.0.0", "decimal.js": "^10.6.0", "html-encoding-sniffer": "^7.0.0", "is-potential-custom-element-name": "^1.0.1", "lru-cache": "^11.5.3", "parse5": "^8.1.0", "parse5-parser-stream": "^8.1.0", "saxes": "^6.0.0", "tough-cookie": "^6.0.2", "undici": "^8.12.3", "w3c-xmlserializer": "^6.0.0", "webidl-conversions": "^8.0.1", "whatwg-mimetype": "^5.0.0", "whatwg-url": "^17.3.0", "xml-name-validator": "^5.0.0" }, "peerDependencies": { "@napi-rs/canvas": "^1.0.13" }, "optionalPeers": ["@napi-rs/canvas"] }, "sha512-CbhJL8ZQg3eKswxSZth4QO9tW0jPIhmR0vtSXQSbKSfWbwIT6hoRc17wdHIVTQ43KI0mdV5iTJr3281IDgVZ5g=="], + "jsesc": ["jsesc@3.1.0", "", { "bin": { "jsesc": "bin/jsesc" } }, "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA=="], "json-parse-even-better-errors": ["json-parse-even-better-errors@2.3.1", "", {}, "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w=="], @@ -1897,7 +1921,7 @@ "loupe": ["loupe@3.2.1", "", {}, "sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ=="], - "lru-cache": ["lru-cache@11.5.2", "", {}, "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g=="], + "lru-cache": ["lru-cache@11.5.4", "", {}, "sha512-B8nJCTi8JuSaDBg0tBdnImV6j5O2CXaqKfdj24ZTCFbyivN8KZ2Z+RL3aHjwJAfLutD9cNnObG4SIgW4gMufiw=="], "lz-string": ["lz-string@1.5.0", "", { "bin": { "lz-string": "bin/bin.js" } }, "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ=="], @@ -1911,7 +1935,7 @@ "markdown-table": ["markdown-table@3.0.4", "", {}, "sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw=="], - "marked": ["marked@18.1.1", "", { "bin": { "marked": "bin/marked.js" } }, "sha512-zEGgrtUG8crk+TrMacJSVABU4DYDDkS8uqgU3ohrn/2fW9C2AEfUrO3m6IhpIpQpl7YcVpiXXC9cSMWDANT3dg=="], + "marked": ["marked@18.4.0", "", { "bin": { "marked": "bin/marked.js" } }, "sha512-evbvoaiBPFO2lk2kSkIbrwjPMuX/HjKyefPdZbtwccsJWY91xlLF/SzB5hRsAOwStztmKC09i+IGsUcTYMt//A=="], "math-intrinsics": ["math-intrinsics@1.1.0", "", {}, "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g=="], @@ -2045,6 +2069,10 @@ "parse-uri": ["parse-uri@1.0.16", "", {}, "sha512-WMX9ygt2zzbtd3UlChi8S2Uj/dZa0N9QaotTkyRD7v06c50dor4qEWrM5ZvHiiaZYpXal4otRS9hynwwX0DVoA=="], + "parse5": ["parse5@8.1.1", "", { "dependencies": { "entities": "^9.0.0" } }, "sha512-EcR/6WDcU7b2N3vQSxKALCk9lXGtUMQxXio008OEMBE0kavu/7JLfBEeFPzi43nMqVDSbEn3QCK+BMCc9zO//w=="], + + "parse5-parser-stream": ["parse5-parser-stream@8.1.1", "", { "dependencies": { "parse5": "^8.1.1" } }, "sha512-hMcVbbUJcQmP8rURWUdYrT1flRiBiBVjq/RYGguJpDUgIXSqdYKlE0CxthmdMWoSlBAuL5bUBa73g0pttSy7Hw=="], + "path-exists": ["path-exists@4.0.0", "", {}, "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w=="], "path-parse": ["path-parse@1.0.7", "", {}, "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw=="], @@ -2089,17 +2117,17 @@ "prosemirror-markdown": ["prosemirror-markdown@1.13.9", "", { "dependencies": { "@types/markdown-it": "^14.0.0", "markdown-it": "^14.0.0", "prosemirror-model": "^1.25.0" } }, "sha512-qAI3I9YdtjWHjTCBErc08ivr24KSrUjcTh5dYncCxFM+JS02kT0iHeWYjO35xeTPwt5t8rhFrelewXhXz16WZQ=="], - "prosemirror-model": ["prosemirror-model@1.25.12", "", { "dependencies": { "orderedmap": "^2.0.0" } }, "sha512-Ue2gTmXMa7EhpLNhC7J+h4+ykD8ha12K6rrZFFKKJHBForfIStw5gJ6Zrf1mqqAa9NmpmEB4wp9bKmA4eUVjWg=="], + "prosemirror-model": ["prosemirror-model@1.25.13", "", { "dependencies": { "orderedmap": "^2.0.0" } }, "sha512-MlDMWGjYXaYOeCiO17jcybntCOzPnN+97U0809ke2QsgPtxW3n5/sD6ZKyJONUgMw1iP93ohZTjeKjnRJ7L6kQ=="], "prosemirror-schema-basic": ["prosemirror-schema-basic@1.2.5", "", { "dependencies": { "prosemirror-model": "^1.25.0" } }, "sha512-McBWhfgOfThyu3Nltbs8SOUbM4t/h0pxteibaaHd1QR4S+F1t0u7M1ETaCE6/cveFoF+2fowTIBNkJOyeZQjNg=="], - "prosemirror-schema-list": ["prosemirror-schema-list@1.5.1", "", { "dependencies": { "prosemirror-model": "^1.0.0", "prosemirror-state": "^1.0.0", "prosemirror-transform": "^1.7.3" } }, "sha512-927lFx/uwyQaGwJxLWCZRkjXG0p48KpMj6ueoYiu4JX05GGuGcgzAy62dfiV8eFZftgyBUvLx76RsMe20fJl+Q=="], + "prosemirror-schema-list": ["prosemirror-schema-list@1.6.1", "", { "dependencies": { "prosemirror-model": "^1.0.0", "prosemirror-state": "^1.0.0", "prosemirror-transform": "^1.7.3" } }, "sha512-QiL/QjgCWr+3Mhukm48E5d3XCC8lVEIanixGkXbWKUyxCUGy4ntVffFapmMwQ4vxhZw+8i7117W2N6FSyqyWfA=="], "prosemirror-state": ["prosemirror-state@1.4.4", "", { "dependencies": { "prosemirror-model": "^1.0.0", "prosemirror-transform": "^1.0.0", "prosemirror-view": "^1.27.0" } }, "sha512-6jiYHH2CIGbCfnxdHbXZ12gySFY/fz/ulZE333G6bPqIZ4F+TXo9ifiR86nAHpWnfoNjOb3o5ESi7J8Uz1jXHw=="], - "prosemirror-transform": ["prosemirror-transform@1.12.3", "", { "dependencies": { "prosemirror-model": "^1.21.0" } }, "sha512-EsN+GKYjw8KZ1UpQWkbsGIyzG51nYloEFwqiZ2h/yNL+ni8rRV6Ch0W25GcunalidW1eLHEvGvsWvWn4sINNAA=="], + "prosemirror-transform": ["prosemirror-transform@1.12.7", "", { "dependencies": { "prosemirror-model": "^1.21.0" } }, "sha512-/e87cbxcM5WJOJrL1IrM9gJqO3EK8LdQoPvs+r4ss1lRO5t5QeqkU0SlmDvcitCSDUbm8s/MxbBB6ds4pY6Xlg=="], - "prosemirror-view": ["prosemirror-view@1.42.7", "", { "dependencies": { "prosemirror-model": "^1.25.12", "prosemirror-state": "^1.0.0", "prosemirror-transform": "^1.1.0" } }, "sha512-aTIAUN4zdD+VS7gsv9Po9Sty81B6yl6D3HggCosry9DLYTmVo4omjcqICDIOPnPJmskRUsqLInxBjaH7I+BQ4Q=="], + "prosemirror-view": ["prosemirror-view@1.44.0", "", { "dependencies": { "prosemirror-model": "^1.25.12", "prosemirror-state": "^1.0.0", "prosemirror-transform": "^1.1.0" } }, "sha512-Ga7889C0DYI1AI0zzgXBNVElPRLh6B2+K87XLjza90Bm/02XyEGXUr0gnla+Oefv7krvo3VIUDwM+YHKU9xGxg=="], "psl": ["psl@1.15.0", "", { "dependencies": { "punycode": "^2.3.1" } }, "sha512-JZd3gMVBAVQkSs6HdNZo9Sdo0LNcQeMNP3CozBJb3JYC/QUYZTnKxP+f8oWRX4rHP5EurWxqAHTSwUCjlNKa1w=="], @@ -2179,6 +2207,8 @@ "rxjs": ["rxjs@7.8.2", "", { "dependencies": { "tslib": "^2.1.0" } }, "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA=="], + "saxes": ["saxes@6.0.0", "", { "dependencies": { "xmlchars": "^2.2.0" } }, "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA=="], + "scheduler": ["scheduler@0.28.0", "", {}, "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw=="], "semver": ["semver@7.8.5", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA=="], @@ -2245,9 +2275,13 @@ "tinyspy": ["tinyspy@4.0.4", "", {}, "sha512-azl+t0z7pw/z958Gy9svOTuzqIk6xq+NSheJzn5MMWtWTFywIacg2wUlzKFGtt3cthx0r2SxMK0yzJOR0IES7Q=="], - "tough-cookie": ["tough-cookie@4.1.4", "", { "dependencies": { "psl": "^1.1.33", "punycode": "^2.1.1", "universalify": "^0.2.0", "url-parse": "^1.5.3" } }, "sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag=="], + "tldts": ["tldts@7.6.4", "", { "dependencies": { "tldts-core": "^7.6.4" }, "bin": { "tldts": "bin/cli.js" } }, "sha512-wp+ZdvQyov404xynNcjbXoJyeGM28W/aCwMmry/rJ+Y0SsObukJYkWwuxWGbNpIjeqMaEbNUtXPNtPPfI5cTFA=="], - "tr46": ["tr46@0.0.3", "", {}, "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="], + "tldts-core": ["tldts-core@7.6.4", "", {}, "sha512-QywQ9lgQyZMuc3NVlqmuxHOhlwirSdvgD/vDLvX8dZYcYgy1cdri5rY/TXDHcF4J3VBSdJLcJNIJI6zGJ7jE+w=="], + + "tough-cookie": ["tough-cookie@6.1.0", "", { "dependencies": { "tldts": "^7.0.5" } }, "sha512-FTxc8u8Kl2tz0Lat1u8ksvcy8bwHRyEMawwTWybo51JqaC6O7SvfuhAKg+Ld6VqyIe2QRJBzY9HA7y2WyFRT2w=="], + + "tr46": ["tr46@7.0.0", "", { "dependencies": { "punycode": "^2.3.1" } }, "sha512-BcDSDW+SIGWVOns1Zm6Yg91q9AEj7eaID0QDY9oIqJD1A8dscNwMcl9Sms2DeuWCNov1X0/oXanHGYQBSLwZsg=="], "trough": ["trough@2.2.0", "", {}, "sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw=="], @@ -2267,6 +2301,8 @@ "uc.micro": ["uc.micro@2.1.0", "", {}, "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A=="], + "undici": ["undici@8.14.0", "", {}, "sha512-MqM6wqORYo0jb1WFUwFKZTFWFz6VeBMPj9op5Hq+RvlrQjISQCyLEfx5+/iqOLWC/LL1HliJ5t0NP1BgYpXeVQ=="], + "undici-types": ["undici-types@8.9.0", "", {}, "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg=="], "unicode-canonical-property-names-ecmascript": ["unicode-canonical-property-names-ecmascript@2.0.1", "", {}, "sha512-dA8WbNeb2a6oQzAQ55YlT5vQAWGV9WXOsi3SskE3bcCdM0P4SDd+24zS/OCacdRq5BkdsRj9q3Pg6YyQoxIGqg=="], @@ -2319,11 +2355,15 @@ "w3c-keyname": ["w3c-keyname@2.2.8", "", {}, "sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ=="], - "webidl-conversions": ["webidl-conversions@3.0.1", "", {}, "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="], + "w3c-xmlserializer": ["w3c-xmlserializer@6.0.0", "", { "dependencies": { "xml-name-validator": "^5.0.0" } }, "sha512-4Nsy8K5Tr6SPDH9jhKJOHf7ChDrc1zufZTVSF7x72hwuEXBqxqk9G6cK+K2NRUtB3iELRJqjXb4JPDMBjMTl2Q=="], + + "webidl-conversions": ["webidl-conversions@8.0.1", "", {}, "sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ=="], "webpack-virtual-modules": ["webpack-virtual-modules@0.6.2", "", {}, "sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ=="], - "whatwg-url": ["whatwg-url@5.0.0", "", { "dependencies": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" } }, "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw=="], + "whatwg-mimetype": ["whatwg-mimetype@5.0.0", "", {}, "sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw=="], + + "whatwg-url": ["whatwg-url@17.3.0", "", { "dependencies": { "@exodus/bytes": "^1.16.0", "tr46": "^7.0.0", "webidl-conversions": "^8.0.1" } }, "sha512-KwOAJrpf+GTgBvcBQJcP38sMF0DsQKdwtG+TxM2pW44P6E5k0hDbWrDmyuJDIF0Uef0aQq0ZoJs+5oI+k8ddhg=="], "why-is-node-running": ["why-is-node-running@3.2.1", "", { "bin": { "why-is-node-running": "cli.js" } }, "sha512-Tb2FUhB4vUsGQlfSquQLYkApkuPAFQXGFzxWKHHumVz2dK+X1RUm/HnID4+TfIGYJ1kTcwOaCk/buYCEJr6YjQ=="], @@ -2333,6 +2373,10 @@ "wsl-utils": ["wsl-utils@0.1.0", "", { "dependencies": { "is-wsl": "^3.1.0" } }, "sha512-h3Fbisa2nKGPxCpm89Hk33lBLsnaGBvctQopaBSOW/uIs6FTe1ATyAnKFJrzVs9vpGdsTe73WF3V4lIsk4Gacw=="], + "xml-name-validator": ["xml-name-validator@5.0.0", "", {}, "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg=="], + + "xmlchars": ["xmlchars@2.2.0", "", {}, "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw=="], + "y18n": ["y18n@5.0.8", "", {}, "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA=="], "yallist": ["yallist@3.1.1", "", {}, "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g=="], @@ -2427,9 +2471,11 @@ "@equinor/fusion/uuid": ["uuid@8.3.2", "", { "bin": { "uuid": "dist/bin/uuid" } }, "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg=="], - "@equinor/fusion-wc-icon/@equinor/eds-icons": ["@equinor/eds-icons@1.5.1", "", {}, "sha512-5/pi0vsXHKVDIFG+BOufOqtAS8wD5J0qTqcucUvnIvo4vpUHWJbMpP80fyAQ9S8ZAu+9auBEq4NY1ZBcqjZq8w=="], + "@equinor/fusion-wc-avatar/@equinor/fusion-wc-ripple": ["@equinor/fusion-wc-ripple@1.2.5", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@material/mwc-ripple": "^0.27.0", "lit": "3.3.3" } }, "sha512-h/3DpSvEmcQJpisSF980/5D8waAbPxe5YNRRBZXefWcAdYcfjK6e/o1n172mguC/jf7orcSw20xZ8quTvXRWYw=="], - "@equinor/fusion-wc-textarea/@equinor/fusion-wc-textinput": ["@equinor/fusion-wc-textinput@1.2.4", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@equinor/fusion-wc-icon": "^2.4.4", "@equinor/fusion-web-theme": "^0.1.10", "@material/mwc-textfield": "^0.27.0", "lit": "3.3.3" } }, "sha512-jPry3+5vg9QzR+xTJC52xtyWYRUK0qv/eddU3KKOiYBAqu1mb2xfcDbFChpdsZkVqsd9Twa8PPGrtfuYdThFKg=="], + "@equinor/fusion-wc-chip/@equinor/fusion-wc-ripple": ["@equinor/fusion-wc-ripple@1.2.5", "", { "dependencies": { "@equinor/fusion-wc-core": "^2.0.3", "@material/mwc-ripple": "^0.27.0", "lit": "3.3.3" } }, "sha512-h/3DpSvEmcQJpisSF980/5D8waAbPxe5YNRRBZXefWcAdYcfjK6e/o1n172mguC/jf7orcSw20xZ8quTvXRWYw=="], + + "@equinor/fusion-wc-icon/@equinor/eds-icons": ["@equinor/eds-icons@1.5.1", "", {}, "sha512-5/pi0vsXHKVDIFG+BOufOqtAS8wD5J0qTqcucUvnIvo4vpUHWJbMpP80fyAQ9S8ZAu+9auBEq4NY1ZBcqjZq8w=="], "@equinor/fusion-web-theme/@equinor/eds-tokens": ["@equinor/eds-tokens@0.9.2", "", {}, "sha512-pDIFei0vsfN3GN12NKWqxskAkYBQd6+Dzjga2liuY81LfnlJs5g9NblamU9WY5w5YdVE5Z8FNjsMKDLs2JIWcw=="], @@ -2595,6 +2641,8 @@ "downshift/react-is": ["react-is@18.3.1", "", {}, "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg=="], + "fetch-cookie/tough-cookie": ["tough-cookie@4.1.4", "", { "dependencies": { "psl": "^1.1.33", "punycode": "^2.1.1", "universalify": "^0.2.0", "url-parse": "^1.5.3" } }, "sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag=="], + "fs-extra/universalify": ["universalify@2.0.1", "", {}, "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw=="], "hoist-non-react-statics/react-is": ["react-is@16.13.1", "", {}, "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="], @@ -2609,12 +2657,18 @@ "magicast/@babel/types": ["@babel/types@7.29.7", "", { "dependencies": { "@babel/helper-string-parser": "^7.29.7", "@babel/helper-validator-identifier": "^7.29.7" } }, "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA=="], + "markdown-it/entities": ["entities@4.5.0", "", {}, "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw=="], + "mdast-util-find-and-replace/escape-string-regexp": ["escape-string-regexp@5.0.0", "", {}, "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw=="], + "node-fetch/whatwg-url": ["whatwg-url@5.0.0", "", { "dependencies": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" } }, "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw=="], + "odata-query/tslib": ["tslib@1.14.1", "", {}, "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="], "parse-json/@babel/code-frame": ["@babel/code-frame@7.29.7", "", { "dependencies": { "@babel/helper-validator-identifier": "^7.29.7", "js-tokens": "^4.0.0", "picocolors": "^1.1.1" } }, "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw=="], + "path-scurry/lru-cache": ["lru-cache@11.5.2", "", {}, "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g=="], + "pretty-format/react-is": ["react-is@17.0.2", "", {}, "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w=="], "prop-types/react-is": ["react-is@16.13.1", "", {}, "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="], @@ -2623,11 +2677,19 @@ "prosemirror-commands/prosemirror-transform": ["prosemirror-transform@1.12.0", "", { "dependencies": { "prosemirror-model": "^1.21.0" } }, "sha512-GxboyN4AMIsoHNtz5uf2r2Ru551i5hWeCMD6E2Ib4Eogqoub0NflniaBPVQ4MrGE5yZ8JV9tUHg9qcZTTrcN4w=="], + "prosemirror-history/prosemirror-transform": ["prosemirror-transform@1.12.3", "", { "dependencies": { "prosemirror-model": "^1.21.0" } }, "sha512-EsN+GKYjw8KZ1UpQWkbsGIyzG51nYloEFwqiZ2h/yNL+ni8rRV6Ch0W25GcunalidW1eLHEvGvsWvWn4sINNAA=="], + + "prosemirror-history/prosemirror-view": ["prosemirror-view@1.42.7", "", { "dependencies": { "prosemirror-model": "^1.25.12", "prosemirror-state": "^1.0.0", "prosemirror-transform": "^1.1.0" } }, "sha512-aTIAUN4zdD+VS7gsv9Po9Sty81B6yl6D3HggCosry9DLYTmVo4omjcqICDIOPnPJmskRUsqLInxBjaH7I+BQ4Q=="], + "prosemirror-inputrules/prosemirror-transform": ["prosemirror-transform@1.12.0", "", { "dependencies": { "prosemirror-model": "^1.21.0" } }, "sha512-GxboyN4AMIsoHNtz5uf2r2Ru551i5hWeCMD6E2Ib4Eogqoub0NflniaBPVQ4MrGE5yZ8JV9tUHg9qcZTTrcN4w=="], - "prosemirror-schema-list/prosemirror-model": ["prosemirror-model@1.25.11", "", { "dependencies": { "orderedmap": "^2.0.0" } }, "sha512-QWg9RhnpLlogAmp3p96uEFrE5txQpFynd4vhBAELkwgOCWQs/X0yCzB3/hrHqiPwf91RG5KyWq6553zs9JqIOQ=="], + "prosemirror-markdown/prosemirror-model": ["prosemirror-model@1.25.12", "", { "dependencies": { "orderedmap": "^2.0.0" } }, "sha512-Ue2gTmXMa7EhpLNhC7J+h4+ykD8ha12K6rrZFFKKJHBForfIStw5gJ6Zrf1mqqAa9NmpmEB4wp9bKmA4eUVjWg=="], + + "prosemirror-schema-basic/prosemirror-model": ["prosemirror-model@1.25.12", "", { "dependencies": { "orderedmap": "^2.0.0" } }, "sha512-Ue2gTmXMa7EhpLNhC7J+h4+ykD8ha12K6rrZFFKKJHBForfIStw5gJ6Zrf1mqqAa9NmpmEB4wp9bKmA4eUVjWg=="], - "prosemirror-schema-list/prosemirror-transform": ["prosemirror-transform@1.12.0", "", { "dependencies": { "prosemirror-model": "^1.21.0" } }, "sha512-GxboyN4AMIsoHNtz5uf2r2Ru551i5hWeCMD6E2Ib4Eogqoub0NflniaBPVQ4MrGE5yZ8JV9tUHg9qcZTTrcN4w=="], + "prosemirror-schema-list/prosemirror-model": ["prosemirror-model@1.25.12", "", { "dependencies": { "orderedmap": "^2.0.0" } }, "sha512-Ue2gTmXMa7EhpLNhC7J+h4+ykD8ha12K6rrZFFKKJHBForfIStw5gJ6Zrf1mqqAa9NmpmEB4wp9bKmA4eUVjWg=="], + + "prosemirror-schema-list/prosemirror-transform": ["prosemirror-transform@1.12.3", "", { "dependencies": { "prosemirror-model": "^1.21.0" } }, "sha512-EsN+GKYjw8KZ1UpQWkbsGIyzG51nYloEFwqiZ2h/yNL+ni8rRV6Ch0W25GcunalidW1eLHEvGvsWvWn4sINNAA=="], "prosemirror-state/prosemirror-model": ["prosemirror-model@1.25.11", "", { "dependencies": { "orderedmap": "^2.0.0" } }, "sha512-QWg9RhnpLlogAmp3p96uEFrE5txQpFynd4vhBAELkwgOCWQs/X0yCzB3/hrHqiPwf91RG5KyWq6553zs9JqIOQ=="], @@ -2635,6 +2697,12 @@ "prosemirror-state/prosemirror-view": ["prosemirror-view@1.42.3", "", { "dependencies": { "prosemirror-model": "^1.25.8", "prosemirror-state": "^1.0.0", "prosemirror-transform": "^1.1.0" } }, "sha512-oTN7EtH+CpwxU9NrwEYWd0UZ4JUx7l048l5A2Xppm4p/60isZYLnth9QVQmC3VRIvdrIWCxwZSd+Uz791G31/w=="], + "prosemirror-transform/prosemirror-model": ["prosemirror-model@1.25.12", "", { "dependencies": { "orderedmap": "^2.0.0" } }, "sha512-Ue2gTmXMa7EhpLNhC7J+h4+ykD8ha12K6rrZFFKKJHBForfIStw5gJ6Zrf1mqqAa9NmpmEB4wp9bKmA4eUVjWg=="], + + "prosemirror-view/prosemirror-model": ["prosemirror-model@1.25.12", "", { "dependencies": { "orderedmap": "^2.0.0" } }, "sha512-Ue2gTmXMa7EhpLNhC7J+h4+ykD8ha12K6rrZFFKKJHBForfIStw5gJ6Zrf1mqqAa9NmpmEB4wp9bKmA4eUVjWg=="], + + "prosemirror-view/prosemirror-transform": ["prosemirror-transform@1.12.3", "", { "dependencies": { "prosemirror-model": "^1.21.0" } }, "sha512-EsN+GKYjw8KZ1UpQWkbsGIyzG51nYloEFwqiZ2h/yNL+ni8rRV6Ch0W25GcunalidW1eLHEvGvsWvWn4sINNAA=="], + "react-aria/@react-types/shared": ["@react-types/shared@3.37.0", "", { "peerDependencies": { "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" } }, "sha512-VNlZuifu4tHdxWPfHvoMfKsHA9kVTCGkduv5vKVTdinm8wHFJNhyVB5RzIMiRFj0q3RKoCbP68u2zaoBSiFueg=="], "react-aria/react-stately": ["react-stately@3.51.0", "", { "dependencies": { "@internationalized/date": "^3.12.4", "@internationalized/number": "^3.6.9", "@internationalized/string": "^3.2.10", "@react-types/shared": "^3.37.0", "@swc/helpers": "^0.5.0", "use-sync-external-store": "^1.6.0" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" } }, "sha512-YJcmkAXu2XOQP97hO/qz/cC3qv9kni3oVhwBlxWr358BHePJUpY15XwL3YSRMKxYt4EkslPqAz11JRirMfANGw=="], @@ -2695,6 +2763,8 @@ "@babel/helper-define-polyfill-provider/@babel/helper-compilation-targets/@babel/compat-data": ["@babel/compat-data@8.0.0", "", {}, "sha512-DOjnob/cXOUgDOozCDeq/aK2p5y8dUIVdf6tNhEV1HQRd6I8aQ4f4fbtHRVEvb6lP3BGomrKHiS8ICAASSVQSw=="], + "@babel/helper-define-polyfill-provider/@babel/helper-compilation-targets/lru-cache": ["lru-cache@11.5.2", "", {}, "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g=="], + "@babel/helper-member-expression-to-functions/@babel/traverse/@babel/code-frame": ["@babel/code-frame@8.0.0", "", { "dependencies": { "@babel/helper-validator-identifier": "^8.0.0", "js-tokens": "^10.0.0" } }, "sha512-dYYg153EyN2Ekbqw2zAsbd6/JR+9N2SEoC7YV2GyyqMM7x9bLDTjBD6XBhSMLH0wtIVyJj03jWNriQhaN+eoCw=="], "@babel/helper-member-expression-to-functions/@babel/traverse/@babel/generator": ["@babel/generator@8.0.0", "", { "dependencies": { "@babel/parser": "^8.0.0", "@babel/types": "^8.0.0", "@jridgewell/gen-mapping": "^0.3.12", "@jridgewell/trace-mapping": "^0.3.28", "@types/jsesc": "^2.5.0", "jsesc": "^3.0.2" } }, "sha512-NT9NrVwJsbSV6Y2FSstWa71EETOnzrjkL5/wX3D2mYHtKM+qvqB1DvR4D0Setb/gDBsHzRICifwEWMO8CnTF6g=="], @@ -2827,8 +2897,12 @@ "@babel/plugin-transform-function-name/@babel/helper-compilation-targets/@babel/compat-data": ["@babel/compat-data@8.0.0", "", {}, "sha512-DOjnob/cXOUgDOozCDeq/aK2p5y8dUIVdf6tNhEV1HQRd6I8aQ4f4fbtHRVEvb6lP3BGomrKHiS8ICAASSVQSw=="], + "@babel/plugin-transform-function-name/@babel/helper-compilation-targets/lru-cache": ["lru-cache@11.5.2", "", {}, "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g=="], + "@babel/plugin-transform-object-rest-spread/@babel/helper-compilation-targets/@babel/compat-data": ["@babel/compat-data@8.0.0", "", {}, "sha512-DOjnob/cXOUgDOozCDeq/aK2p5y8dUIVdf6tNhEV1HQRd6I8aQ4f4fbtHRVEvb6lP3BGomrKHiS8ICAASSVQSw=="], + "@babel/plugin-transform-object-rest-spread/@babel/helper-compilation-targets/lru-cache": ["lru-cache@11.5.2", "", {}, "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g=="], + "@babel/plugin-transform-private-property-in-object/@babel/helper-create-class-features-plugin/@babel/helper-member-expression-to-functions": ["@babel/helper-member-expression-to-functions@8.0.5", "", { "dependencies": { "@babel/traverse": "^8.0.5", "@babel/types": "^8.0.5" } }, "sha512-GLe05QD98BkNFTkjaqeqF9QSRoHLKrrB4tpoplyQuuPrQJ72rtmkM4wvqJLX/sjZPqkbK5MUYSsuUTqdJoOVjA=="], "@babel/plugin-transform-private-property-in-object/@babel/helper-create-class-features-plugin/@babel/traverse": ["@babel/traverse@8.0.7", "", { "dependencies": { "@babel/code-frame": "^8.0.6", "@babel/generator": "^8.0.6", "@babel/helper-globals": "^8.0.6", "@babel/parser": "^8.0.7", "@babel/template": "^8.0.0", "@babel/types": "^8.0.6", "obug": "^3.0.0" } }, "sha512-bVV0brinsTWgc6ptSIoQo3GbITtl0VZAqEUJbHHcyfDPEu+q/fEvlYEa+6H85HoK8IdksKBFtKJbJFZ6Kff+zg=="], @@ -2849,8 +2923,6 @@ "@emotion/babel-plugin/@babel/helper-module-imports/@babel/types": ["@babel/types@7.29.7", "", { "dependencies": { "@babel/helper-string-parser": "^7.29.7", "@babel/helper-validator-identifier": "^7.29.7" } }, "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA=="], - "@equinor/fusion-wc-textarea/@equinor/fusion-wc-textinput/@equinor/fusion-web-theme": ["@equinor/fusion-web-theme@0.1.10", "", { "dependencies": { "@equinor/eds-tokens": "0.9.2", "csstype": "^3.1.3" } }, "sha512-/Yzfie73UvMoBMo35gmeHO+5nTty5EyemomcB5ZbEDyHFNIodgCL1JGm2KfrIwqez9w9CTneHjnJWvwhu9TM+w=="], - "@jridgewell/remapping/@jridgewell/gen-mapping/@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.5", "", {}, "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og=="], "@material/mwc-base/lit/@lit/reactive-element": ["@lit/reactive-element@1.6.3", "", { "dependencies": { "@lit-labs/ssr-dom-shim": "^1.0.0" } }, "sha512-QuTgnG52Poic7uM1AN5yJ09QMe0O28e10XzSvWDz02TJiiKee4stsiownEIadWm8nYzyDAyT+gKzUoZmiWQtsQ=="], @@ -2993,10 +3065,18 @@ "magicast/@babel/types/@babel/helper-validator-identifier": ["@babel/helper-validator-identifier@7.29.7", "", {}, "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg=="], + "node-fetch/whatwg-url/tr46": ["tr46@0.0.3", "", {}, "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="], + + "node-fetch/whatwg-url/webidl-conversions": ["webidl-conversions@3.0.1", "", {}, "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="], + "parse-json/@babel/code-frame/@babel/helper-validator-identifier": ["@babel/helper-validator-identifier@7.29.7", "", {}, "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg=="], "parse-json/@babel/code-frame/js-tokens": ["js-tokens@4.0.0", "", {}, "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="], + "prosemirror-history/prosemirror-transform/prosemirror-model": ["prosemirror-model@1.25.12", "", { "dependencies": { "orderedmap": "^2.0.0" } }, "sha512-Ue2gTmXMa7EhpLNhC7J+h4+ykD8ha12K6rrZFFKKJHBForfIStw5gJ6Zrf1mqqAa9NmpmEB4wp9bKmA4eUVjWg=="], + + "prosemirror-history/prosemirror-view/prosemirror-model": ["prosemirror-model@1.25.12", "", { "dependencies": { "orderedmap": "^2.0.0" } }, "sha512-Ue2gTmXMa7EhpLNhC7J+h4+ykD8ha12K6rrZFFKKJHBForfIStw5gJ6Zrf1mqqAa9NmpmEB4wp9bKmA4eUVjWg=="], + "prosemirror-inputrules/prosemirror-transform/prosemirror-model": ["prosemirror-model@1.25.11", "", { "dependencies": { "orderedmap": "^2.0.0" } }, "sha512-QWg9RhnpLlogAmp3p96uEFrE5txQpFynd4vhBAELkwgOCWQs/X0yCzB3/hrHqiPwf91RG5KyWq6553zs9JqIOQ=="], "prosemirror-state/prosemirror-view/prosemirror-model": ["prosemirror-model@1.25.12", "", { "dependencies": { "orderedmap": "^2.0.0" } }, "sha512-Ue2gTmXMa7EhpLNhC7J+h4+ykD8ha12K6rrZFFKKJHBForfIStw5gJ6Zrf1mqqAa9NmpmEB4wp9bKmA4eUVjWg=="], @@ -3121,8 +3201,6 @@ "@emotion/babel-plugin/@babel/helper-module-imports/@babel/types/@babel/helper-validator-identifier": ["@babel/helper-validator-identifier@7.29.7", "", {}, "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg=="], - "@equinor/fusion-wc-textarea/@equinor/fusion-wc-textinput/@equinor/fusion-web-theme/@equinor/eds-tokens": ["@equinor/eds-tokens@0.9.2", "", {}, "sha512-pDIFei0vsfN3GN12NKWqxskAkYBQd6+Dzjga2liuY81LfnlJs5g9NblamU9WY5w5YdVE5Z8FNjsMKDLs2JIWcw=="], - "react-docgen/@babel/core/@babel/code-frame/@babel/helper-validator-identifier": ["@babel/helper-validator-identifier@7.29.7", "", {}, "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg=="], "react-docgen/@babel/core/@babel/code-frame/js-tokens": ["js-tokens@4.0.0", "", {}, "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="], diff --git a/packages/ag-grid-utils/src/changeHandlerUtils/StatusIcon.tsx b/packages/ag-grid-utils/src/changeHandlerUtils/StatusIcon.tsx index 91cb91565..fc9a5a9dc 100644 --- a/packages/ag-grid-utils/src/changeHandlerUtils/StatusIcon.tsx +++ b/packages/ag-grid-utils/src/changeHandlerUtils/StatusIcon.tsx @@ -2,8 +2,6 @@ import type { FC } from 'react'; import { AGGridDataStatus } from './constants'; -import { tokens } from '@equinor/eds-tokens'; - import { Icon } from '@equinor/eds-core-react'; import { check, check_circle_outlined, new_label } from '@equinor/eds-icons'; Icon.add({ check, check_circle_outlined, new_label }); @@ -18,13 +16,11 @@ type StatusIconProps = { readonly status?: AGGridDataStatus }; export const StatusIcon: FC = ({ status }) => { switch (status) { case AGGridDataStatus.NEW: - return ; + return ; case AGGridDataStatus.PATCHED: - return ( - - ); + return ; case AGGridDataStatus.FETCHED: - return ; + return ; } return null; }; diff --git a/packages/context-selector/package.json b/packages/context-selector/package.json index a5922c267..c21f94a78 100644 --- a/packages/context-selector/package.json +++ b/packages/context-selector/package.json @@ -42,7 +42,7 @@ "@equinor/fusion-react-styles": "workspace:*", "@equinor/fusion-react-utils": "workspace:*", "@equinor/fusion-wc-icon": "^2.4.4", - "@equinor/fusion-wc-searchable-dropdown": "^4.1.5" + "@equinor/fusion-wc-searchable-dropdown": "^5.0.0" }, "devDependencies": { "@types/react": "^19.3.0", diff --git a/packages/errorboundary/src/legacy/Fallback.tsx b/packages/errorboundary/src/legacy/Fallback.tsx index 9997d7436..c23ac906f 100644 --- a/packages/errorboundary/src/legacy/Fallback.tsx +++ b/packages/errorboundary/src/legacy/Fallback.tsx @@ -19,7 +19,7 @@ const Styled = { stacktrace: styled.pre` overflow: auto; max-width: 100%; - color: ${tokens.colors.interactive.danger__resting.hex}; + color: var(--eds-color-text-danger-subtle); font-size: 0.8em; line-height: 1em; margin: 0; @@ -68,10 +68,7 @@ export const Fallback = (props: FallbackProps): ReactElement => {
{props.icon ?? } {title ?? generateTitle(errorType, resourceName)} - + {message ?? error.message} diff --git a/packages/filter/package.json b/packages/filter/package.json index a1eea5b54..4794e7357 100644 --- a/packages/filter/package.json +++ b/packages/filter/package.json @@ -44,7 +44,7 @@ "dependencies": { "@equinor/eds-tokens": "^2.3.2", "@equinor/fusion-react-utils": "workspace:*", - "@equinor/fusion-wc-chip": "^1.3.5", + "@equinor/fusion-wc-chip": "^2.0.0", "rxjs": "^7.8.1", "styled-components": "^6.6.0", "typesafe-actions": "^5.1.0" diff --git a/packages/filter/src/components/filter/FilterOptionHeader.tsx b/packages/filter/src/components/filter/FilterOptionHeader.tsx index 3e9178209..4528533d6 100644 --- a/packages/filter/src/components/filter/FilterOptionHeader.tsx +++ b/packages/filter/src/components/filter/FilterOptionHeader.tsx @@ -22,7 +22,7 @@ const Styled = { align-items: center; `, Header: styled.header<{ $showSearch?: boolean }>` - color: ${tokens.typography.table.cell_header.color}; + color: var(--eds-color-text-neutral-strong); font-family: ${tokens.typography.table.cell_header.fontFamily}; font-size: ${tokens.typography.table.cell_header.fontSize}; font-weight: ${tokens.typography.table.cell_header.fontWeight}; @@ -33,7 +33,7 @@ const Styled = { Counter: styled.span<{ $noCount?: boolean }>` display: ${({ $noCount }) => ($noCount ? 'none' : 'inline-flex')}; gap: 1px; - color: ${tokens.typography.input.helper.color}; + color: var(--eds-color-text-neutral-strong); font-family: ${tokens.typography.input.helper.fontFamily}; font-size: ${tokens.typography.input.helper.fontSize}; font-weight: ${tokens.typography.input.helper.fontWeight}; diff --git a/packages/filter/src/components/filter/checkbox/CheckboxFilter.style.ts b/packages/filter/src/components/filter/checkbox/CheckboxFilter.style.ts index e677e05ed..0c29bea16 100644 --- a/packages/filter/src/components/filter/checkbox/CheckboxFilter.style.ts +++ b/packages/filter/src/components/filter/checkbox/CheckboxFilter.style.ts @@ -13,7 +13,7 @@ export const Styled = { overflow-y: auto; `, Title: styled.span` - color: ${tokens.typography.heading.h3.color}; + color: var(--eds-color-text-neutral-strong); font-family: ${tokens.typography.heading.h3.fontFamily}; font-size: ${tokens.typography.heading.h3.fontSize}; font-weight: ${tokens.typography.heading.h3.fontWeight}; diff --git a/packages/filter/src/components/filter/checkbox/CheckboxFilterOption.style.ts b/packages/filter/src/components/filter/checkbox/CheckboxFilterOption.style.ts index b55263d06..e0eaa10ae 100644 --- a/packages/filter/src/components/filter/checkbox/CheckboxFilterOption.style.ts +++ b/packages/filter/src/components/filter/checkbox/CheckboxFilterOption.style.ts @@ -12,7 +12,7 @@ export const Styled = { transition: 125ms background-color ease-out; &:hover { - background-color: ${tokens.colors.interactive.primary__hover_alt.rgba}; + background-color: var(--eds-color-bg-accent-fill-muted-default); } ${({ $inactive }) => @@ -29,7 +29,7 @@ export const Styled = { `} `, Counter: styled.span` - color: ${tokens.typography.input.label.color}; + color: var(--eds-color-text-neutral-strong); font-family: ${tokens.typography.input.label.fontFamily}; font-size: ${tokens.typography.input.label.fontSize}; font-weight: ${tokens.typography.input.label.fontWeight}; diff --git a/packages/filter/src/components/panel/FilterPanel.tsx b/packages/filter/src/components/panel/FilterPanel.tsx index ebb5e6aef..e088f6b6a 100644 --- a/packages/filter/src/components/panel/FilterPanel.tsx +++ b/packages/filter/src/components/panel/FilterPanel.tsx @@ -20,7 +20,7 @@ const Styled = { flex-flow: column; gap: var(--filter-panel-spacing); padding: var(--filter-panel-spacing); - border: 1px solid ${tokens.colors.interactive.disabled__border.rgba}; + border: 1px solid var(--eds-color-border-disabled); border-radius: 0.5rem; & > * { padding: 0 var(--filter-panel-spacing); @@ -32,7 +32,7 @@ const Styled = { overflow-y: hidden; padding-bottom: calc(var(--filter-panel-spacing)); margin-bottom: calc(var(--filter-panel-spacing) * -1); - background-color: ${tokens.colors.ui.background__light.rgba}; + background-color: var(--eds-color-bg-neutral-canvas); `, }; diff --git a/packages/hanging-garden/src/components/PopoverContainer/Arrow.tsx b/packages/hanging-garden/src/components/PopoverContainer/Arrow.tsx index b259b2477..4f7eab63c 100644 --- a/packages/hanging-garden/src/components/PopoverContainer/Arrow.tsx +++ b/packages/hanging-garden/src/components/PopoverContainer/Arrow.tsx @@ -27,12 +27,14 @@ const Arrow = (): ReactElement => { > ); diff --git a/packages/hanging-garden/src/components/PopoverContainer/index.tsx b/packages/hanging-garden/src/components/PopoverContainer/index.tsx index df1b1778e..93f1ea73e 100644 --- a/packages/hanging-garden/src/components/PopoverContainer/index.tsx +++ b/packages/hanging-garden/src/components/PopoverContainer/index.tsx @@ -9,10 +9,10 @@ const useStyles = makeStyles(() => createStyles({ root: { padding: '16px', - backgroundColor: 'white', + backgroundColor: 'var(--eds-color-bg-neutral-surface)', borderRadius: '4px', position: 'absolute', - boxShadow: '0px 1px 3px rgba(0, 0, 0, 0.2), 0px 2px 2px rgba(0, 0, 0, 0.12), 0px 0px 2px rgba(0, 0, 0, 0.14)', + boxShadow: 'var(--eds-elevation-low)', transform: 'translateX(-50%)', marginTop: '8px', }, diff --git a/packages/layout/package.json b/packages/layout/package.json index f3a8f31a1..cb1481626 100644 --- a/packages/layout/package.json +++ b/packages/layout/package.json @@ -59,7 +59,7 @@ "dependencies": { "@equinor/fusion-react-utils": "workspace:*", "@equinor/fusion-wc-layout": "^0.2.1", - "@equinor/fusion-wc-page": "^0.2.1" + "@equinor/fusion-wc-page": "^1.0.0" }, "devDependencies": { "@types/react": "^19.3.0", diff --git a/packages/list/package.json b/packages/list/package.json index 13dcd26d5..5d6007db3 100644 --- a/packages/list/package.json +++ b/packages/list/package.json @@ -36,7 +36,7 @@ }, "dependencies": { "@equinor/fusion-react-utils": "workspace:*", - "@equinor/fusion-wc-list": "^1.2.5" + "@equinor/fusion-wc-list": "^2.0.0" }, "devDependencies": { "@types/react": "^19.3.0", diff --git a/packages/markdown/package.json b/packages/markdown/package.json index a81e8dd37..425679531 100644 --- a/packages/markdown/package.json +++ b/packages/markdown/package.json @@ -39,7 +39,7 @@ }, "dependencies": { "@equinor/fusion-react-utils": "workspace:*", - "@equinor/fusion-wc-markdown": "^1.6.5" + "@equinor/fusion-wc-markdown": "^2.0.0" }, "devDependencies": { "@types/react": "^19.3.0", diff --git a/packages/person/package.json b/packages/person/package.json index ec4af8a7b..94d434e38 100644 --- a/packages/person/package.json +++ b/packages/person/package.json @@ -45,8 +45,8 @@ }, "dependencies": { "@equinor/fusion-react-utils": "workspace:*", - "@equinor/fusion-wc-people": "^2.2.6", - "@equinor/fusion-wc-person": "^3.5.7" + "@equinor/fusion-wc-people": "^3.0.0", + "@equinor/fusion-wc-person": "^4.0.0" }, "devDependencies": { "@types/react": "^19.3.0", diff --git a/packages/searchable-dropdown/package.json b/packages/searchable-dropdown/package.json index 01d2e3634..10a5104f2 100644 --- a/packages/searchable-dropdown/package.json +++ b/packages/searchable-dropdown/package.json @@ -39,7 +39,8 @@ "dependencies": { "@equinor/fusion-react-utils": "workspace:*", "@equinor/fusion-wc-icon": "^2.4.4", - "@equinor/fusion-wc-searchable-dropdown": "^4.1.5" + "@equinor/fusion-wc-searchable-dropdown": "^5.0.0", + "@equinor/fusion-web-theme": "workspace:*" }, "devDependencies": { "@types/react": "^19.3.0", diff --git a/packages/searchable-dropdown/src/Dropdown.tsx b/packages/searchable-dropdown/src/Dropdown.tsx index 06e52a635..02478faa9 100644 --- a/packages/searchable-dropdown/src/Dropdown.tsx +++ b/packages/searchable-dropdown/src/Dropdown.tsx @@ -6,6 +6,9 @@ import { type SearchableDropdownProps, type SearchableDropdownSelectEvent as HTMLSearchableDropdownSelectEvent, } from '@equinor/fusion-wc-searchable-dropdown'; +import { applyColourOverrides } from './colour-overrides'; + +applyColourOverrides(); export type { SearchableDropdownResult, diff --git a/packages/searchable-dropdown/src/colour-overrides.ts b/packages/searchable-dropdown/src/colour-overrides.ts new file mode 100644 index 000000000..076672050 --- /dev/null +++ b/packages/searchable-dropdown/src/colour-overrides.ts @@ -0,0 +1,19 @@ +import { mdcColorVariables } from '@equinor/fusion-web-theme'; + +const styleId = 'fusion-react-searchable-dropdown-colours'; + +/** + * Maps the MWC colour properties read inside `fwc-searchable-dropdown` (list text, icons, + * check boxes) to EDS colour variables, so the dropdown follows the light and dark colour + * schemes even when it is rendered outside a Fusion `ThemeProvider`. + */ +export const colourOverrides = `fwc-searchable-dropdown{${mdcColorVariables.join(';')}}`; + +/** Adds {@link colourOverrides} to the document once. */ +export const applyColourOverrides = (): void => { + if (typeof document === 'undefined' || document.getElementById(styleId)) return; + const style = document.createElement('style'); + style.id = styleId; + style.textContent = colourOverrides; + document.head.append(style); +}; diff --git a/packages/searchable-dropdown/tsconfig.json b/packages/searchable-dropdown/tsconfig.json index 90071ae26..47ef10022 100644 --- a/packages/searchable-dropdown/tsconfig.json +++ b/packages/searchable-dropdown/tsconfig.json @@ -6,5 +6,5 @@ }, "include": ["src/**/*.ts", "src/**/*.tsx"], "exclude": ["node_modules"], - "references": [{ "path": "../utils" }] + "references": [{ "path": "../utils" }, { "path": "../theme" }] } diff --git a/packages/side-sheet/README.md b/packages/side-sheet/README.md index ab2700ff7..a7c63ed5a 100644 --- a/packages/side-sheet/README.md +++ b/packages/side-sheet/README.md @@ -15,13 +15,13 @@ npm install @equinor/fusion-react-side-sheet ## Children -| Name | Props | Description | -| ----------- | ------------------ | ----------------------------------------------- | -| `Title` | title | Required child for displaying side sheet title. | -| `SubTile` | subTitle | ... | -| `Actions` | sideSheetRef | ... | -| `Indicator` | color | ... | -| `Content` | ReactChildElements | ... | +| Name | Props | Description | +| ----------- | ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Title` | title | Required child for displaying side sheet title. | +| `SubTile` | subTitle | ... | +| `Actions` | sideSheetRef | ... | +| `Indicator` | color | Colour bar next to the title. Accepts an EDS CSS custom property such as `var(--eds-color-bg-accent-fill-emphasis-default)` (preferred, follows the colour scheme) or a hex string. | +| `Content` | ReactChildElements | ... | ## Properties/Attributes diff --git a/packages/side-sheet/src/components/Indicator.tsx b/packages/side-sheet/src/components/Indicator.tsx index d59fb0c76..d04700597 100644 --- a/packages/side-sheet/src/components/Indicator.tsx +++ b/packages/side-sheet/src/components/Indicator.tsx @@ -1,15 +1,21 @@ import styled from 'styled-components'; -const StyledIndicator = styled.span<{ color?: HEXString }>` - background-color: ${({ color }) => color || 'red'}; +const StyledIndicator = styled.span<{ color?: IndicatorColor }>` + background-color: ${({ color }) => color || 'var(--eds-color-bg-danger-fill-emphasis-default)'}; height: 3rem; width: 8px; margin-right: 1rem; border-radius: 2px; `; -export const Indicator = ({ color }: { readonly color?: HEXString }) => { +/** + * Indicator colour. Prefer an EDS CSS custom property such as + * `var(--eds-color-bg-accent-fill-emphasis-default)` so the colour follows the colour scheme. + */ +export const Indicator = ({ color }: { readonly color?: IndicatorColor }) => { return ; }; export type HEXString = `#${string}`; +export type CSSVariableString = `var(--${string})`; +export type IndicatorColor = HEXString | CSSVariableString; diff --git a/packages/side-sheet/src/components/SideSheet.tsx b/packages/side-sheet/src/components/SideSheet.tsx index 4917c3f25..dad9e102b 100644 --- a/packages/side-sheet/src/components/SideSheet.tsx +++ b/packages/side-sheet/src/components/SideSheet.tsx @@ -8,12 +8,11 @@ import { import { Button, Icon, Tooltip } from '@equinor/eds-core-react'; import { close as closeIcon } from '@equinor/eds-icons'; -import { tokens } from '@equinor/eds-tokens'; import { type PropsWithChildren, useRef } from 'react'; import { Actions } from './Actions'; import { Content } from './Content'; import { FullscreenIcon } from './icon/FullscreenIcon'; -import { type HEXString, Indicator } from './Indicator'; +import { type IndicatorColor, Indicator } from './Indicator'; import { SubTitle } from './SubTitle'; import { Title } from './Title'; @@ -31,7 +30,7 @@ const StyledFlexColumn = styled(StyledFlexBox)` `; const StyledContainerWrapper = styled(StyledFlexColumn)` - background: ${tokens.colors.ui.background__default.hex}; + background: var(--eds-color-bg-neutral-surface); height: 100%; `; @@ -55,7 +54,7 @@ type PortalSideSheet = SideSheetProps & { }; type SideSheetComponents = { - indicator?: ReactElement>; + indicator?: ReactElement>; title?: ReactElement>; subTitle?: ReactElement>; actions?: ReactElement>>; diff --git a/packages/side-sheet/src/index.ts b/packages/side-sheet/src/index.ts index 6f9d29112..9e43117ac 100644 --- a/packages/side-sheet/src/index.ts +++ b/packages/side-sheet/src/index.ts @@ -1,2 +1,2 @@ export { SideSheet, default } from './components/SideSheet'; -export type { HEXString } from './components/Indicator'; +export type { CSSVariableString, HEXString, IndicatorColor } from './components/Indicator'; diff --git a/packages/skeleton/package.json b/packages/skeleton/package.json index 6b8f298c6..47cea1b07 100644 --- a/packages/skeleton/package.json +++ b/packages/skeleton/package.json @@ -36,7 +36,7 @@ }, "dependencies": { "@equinor/fusion-react-utils": "workspace:*", - "@equinor/fusion-wc-skeleton": "^2.2.5" + "@equinor/fusion-wc-skeleton": "^3.0.0" }, "devDependencies": { "@types/react": "^19.3.0", diff --git a/packages/stepper/src/Step.tsx b/packages/stepper/src/Step.tsx index e541793c3..e332cb7ff 100644 --- a/packages/stepper/src/Step.tsx +++ b/packages/stepper/src/Step.tsx @@ -42,11 +42,11 @@ const Styled = { width: calc(100% - var(--badge-size) - calc(var(--spacing) * 2)); left: 50%; height: 1px; - background-color: ${tokens.colors.interactive.disabled__border.hex}; + background-color: var(--eds-color-border-disabled); order: -1; } &:focus-visible { - outline: 2px dashed ${tokens.colors.interactive.primary__resting.hex}; + outline: 2px dashed var(--eds-color-border-accent-strong); outline-offset: 2px; } ${({ $vertical, $horizontalTitle }) => @@ -83,15 +83,15 @@ const Styled = { $done && css` &:not(:last-child):after { - background-color: ${tokens.colors.interactive.primary__resting.hex}; + background-color: var(--eds-color-bg-accent-fill-emphasis-default); } `} ${({ $disabled }) => $disabled && css` pointer-events: none; - color: ${tokens.colors.interactive.disabled__text.hex}; - --line-color: ${tokens.colors.interactive.disabled__border.hex}; + color: var(--eds-color-text-disabled); + --line-color: var(--eds-color-border-disabled); `} `, Content: styled.div` @@ -181,11 +181,7 @@ export const Step = ({ group="paragraph" variant="body_short" color={ - isCurrent - ? 'primary' - : disabled - ? 'disabled' - : tokens.colors.text.static_icons__default.hex + isCurrent ? 'primary' : disabled ? 'disabled' : 'var(--eds-color-text-neutral-strong)' } > {title} @@ -194,11 +190,7 @@ export const Step = ({ group="paragraph" variant="caption" color={ - isCurrent - ? 'primary' - : disabled - ? 'disabled' - : tokens.colors.text.static_icons__tertiary.hex + isCurrent ? 'primary' : disabled ? 'disabled' : 'var(--eds-color-text-neutral-subtle)' } > {description} diff --git a/packages/stepper/src/StepBadge.tsx b/packages/stepper/src/StepBadge.tsx index df10500e5..b57791687 100644 --- a/packages/stepper/src/StepBadge.tsx +++ b/packages/stepper/src/StepBadge.tsx @@ -15,19 +15,19 @@ const Styled = { switch (true) { case $active: return css` - border: 1px solid ${tokens.colors.interactive.primary__resting.hex}; - background-color: ${tokens.colors.interactive.primary__resting.hex}; - color: ${tokens.colors.text.static_icons__primary_white.hex}; + border: 1px solid var(--eds-color-bg-accent-fill-emphasis-default); + background-color: var(--eds-color-bg-accent-fill-emphasis-default); + color: var(--eds-color-text-accent-strong-on-emphasis); `; case $done: return css` - border: 1px solid ${tokens.colors.interactive.primary__resting.hex}; - color: ${tokens.colors.interactive.primary__resting.hex}; + border: 1px solid var(--eds-color-border-accent-strong); + color: var(--eds-color-text-accent-subtle); `; default: return css` - border: 1px solid ${tokens.colors.interactive.disabled__border.hex}; - color: ${tokens.colors.text.static_icons__default.hex}; + border: 1px solid var(--eds-color-border-disabled); + color: var(--eds-color-text-neutral-strong); `; } }} diff --git a/packages/stepper/src/StepperContent.tsx b/packages/stepper/src/StepperContent.tsx index acab02bb0..ef83befd3 100644 --- a/packages/stepper/src/StepperContent.tsx +++ b/packages/stepper/src/StepperContent.tsx @@ -14,7 +14,7 @@ const Styled = { --spacing-vertical: 5px; --spacing-between-vartical-steps: ${tokens.spacings.comfortable.x_large}; --spacing-between-horizontal-steps: ${tokens.spacings.comfortable.medium}; - --stepper-divider: 1px solid ${tokens.colors.interactive.disabled__border.hex}; + --stepper-divider: 1px solid var(--eds-color-border-disabled); display: flex; flex-direction: ${(props) => (props.$vertical ? 'row' : 'column')}; height: 100%; diff --git a/packages/styles/README.md b/packages/styles/README.md index 18905b337..129664dea 100644 --- a/packages/styles/README.md +++ b/packages/styles/README.md @@ -275,6 +275,7 @@ Provides theme context to child components. Supports nested themes and theme com **Props:** - `theme`: Theme object or function `(outerTheme) => theme` +- `colorScheme` (optional): `'light' | 'dark' | 'system'`, see [Colour scheme](#colour-scheme-light--dark--system) - `children`: React nodes **Example:** @@ -302,6 +303,76 @@ function App() { } ``` +#### Colour scheme (light / dark / system) + +The outermost `ThemeProvider` injects the EDS 2.x colour variables +(`@equinor/eds-tokens/css/variables`). They switch with `data-color-scheme`, and theme +colours from `@equinor/fusion-web-theme` resolve to them. + +- **Omitted (default):** the provider sets no attribute, and the subtree inherits the scheme + from its ancestors. Portals should always set an explicit `data-color-scheme="light"` or + `"dark"` on ``, resolving System with `matchMedia`. +- **`light` / `dark`:** sets `data-color-scheme` on the `fwc-theme` wrapper to force that + scheme for the subtree. +- **`system`:** resolves `prefers-color-scheme` with `matchMedia`, sets `light` or `dark` on + the wrapper and updates when the setting changes. The EDS CSS only applies its media + query at the document root, so a subtree needs the explicit value. + +```tsx + + +; +``` + +Content rendered outside the provider (for example popovers portaled to `document.body`) +only follows the scheme set on `` or ``. Set the scheme there when using such +components. + +Use EDS CSS custom properties such as `var(--eds-color-text-neutral-strong)` for new colour +styles, not the JavaScript `tokens` object from `@equinor/eds-tokens`, whose values are +static light-mode colours. + +The shared dark palette uses `--eds-color-bg-neutral-canvas` for page backgrounds, +`--eds-color-bg-neutral-surface` for panels and headers, and `--eds-color-bg-floating` +for raised cards. Use `--eds-color-text-neutral-strong` for primary text. The dark +`--eds-color-text-link` and `--eds-color-border-focus` roles also stay readable against +the raised surface. These roles +follow the theme across nested React and Web Component providers. Explicit light scopes +keep the stock EDS palette. + +#### Classic EDS components in dark mode + +The root `ThemeProvider` (through `EdsTokens`) maps the legacy `--eds_*` properties that stable +`@equinor/eds-core-react` 2.x components read (`var(--eds_*, )`) to the scheme-aware +`--eds-color-*` variables of `@equinor/eds-tokens` 2.3.2, so classic components, including +portalled ones such as `Tooltip`, `Menu`, `Popover`, `Dialog` and `Scrim`, follow dark mode. +The mapping applies only where the tokens select dark: `[data-color-scheme="dark"]`, or a root +without `data-color-scheme="light"` when the system prefers dark. Light mode keeps the classic +colours, and a nested `[data-color-scheme="light"]` resets the mapping. + +Hosts that render their own global styles should use `classicColourSchemeStyles()` after the EDS +stylesheet. It handles the OS preference, native controls, and resets for nested light scopes: + +```ts +import { classicColourSchemeStyles } from '@equinor/fusion-react-styles'; + +const globalCss = classicColourSchemeStyles(); +``` + +For hosts that need to compose their own rules, the individual exports are: + +- `classicColourVariables`: legacy property name → EDS colour variable name. +- `classicScrimColour`: the EDS backdrop colour at 60% opacity. +- `classicOverlayColour`: a dark, near-opaque `Tooltip` and `Snackbar` background + (`--eds-color-bg-neutral-canvas` at 90%). +- `classicOverlayColours`: the scrim and overlay legacy properties with the values above. +- `classicOverlayTextStyles`: rules that give `Tooltip` and `Snackbar` light text in dark mode. + The shared white-text property is dark in dark mode because contained buttons use it on light + fills. Render these rules globally, not under a dark selector; light mode is unaffected. +- `classicColourDeclarations()`: the shared dark surface roles and legacy mappings. Put + these declarations after the EDS variables under your dark selector only. If you support nested + light scopes, reset the legacy mappings at those boundaries. + ### `useTheme()` Hook to access the current theme from `ThemeProvider` context. diff --git a/packages/styles/package.json b/packages/styles/package.json index 3eaf50336..50a25dae5 100644 --- a/packages/styles/package.json +++ b/packages/styles/package.json @@ -40,7 +40,7 @@ }, "dependencies": { "@equinor/eds-tokens": "^2.3.2", - "@equinor/fusion-wc-theme": "^1.2.6", + "@equinor/fusion-wc-theme": "^2.0.0", "@equinor/fusion-web-theme": "workspace:^", "clsx": "^2.1.0", "hoist-non-react-statics": "^3.3.2", @@ -59,6 +59,7 @@ "@types/node": "^26.6.6", "@types/react": "^19.3.0", "@vitest/coverage-v8": "^5.1.0", + "jsdom": "^31.0.1", "react": "^19.3.1", "styled-components": "^6.6.0", "vitest": "^5.1.0" diff --git a/packages/styles/src/EdsTokens.tsx b/packages/styles/src/EdsTokens.tsx index d5182e169..1c5183e63 100644 --- a/packages/styles/src/EdsTokens.tsx +++ b/packages/styles/src/EdsTokens.tsx @@ -1,9 +1,28 @@ import { createGlobalStyle } from 'styled-components'; +import { mdcColorVariables } from '@equinor/fusion-web-theme'; // @ts-expect-error: EDS does not provide types for this import edsVariables from '@equinor/eds-tokens/css/variables.css?raw'; +import { classicColourSchemeStyles } from './classic-colours'; +import { colourSchemeAliasDeclarations } from './color-scheme-aliases'; +const colourSchemeAliases = colourSchemeAliasDeclarations(edsVariables); + +// Declared on every scheme boundary because a custom property resolves its `var()` where it is +// declared; inheriting a value resolved at `:root` would ignore a nested `data-color-scheme`. export const EdsTokens = createGlobalStyle` ${edsVariables} + + /* EDS only declares its semantic aliases at the light root; resolve them on every scheme boundary. */ + [data-color-scheme] { + ${colourSchemeAliases.join(';')}; + } + + :root, [data-color-scheme], fwc-theme { + ${mdcColorVariables.join(';')}; + } + + /* Classic EDS 2.x components follow dark mode; light mode keeps their classic colours. */ + ${classicColourSchemeStyles()} `; export default EdsTokens; diff --git a/packages/styles/src/ThemeProvider.tsx b/packages/styles/src/ThemeProvider.tsx index c0e07c0d6..1361edf64 100644 --- a/packages/styles/src/ThemeProvider.tsx +++ b/packages/styles/src/ThemeProvider.tsx @@ -1,5 +1,4 @@ -import { useContext, useMemo, type ReactNode } from 'react'; -import type { ReactElement } from 'react'; +import { useContext, useMemo, type ReactElement, type ReactNode } from 'react'; import { styles as defaultTheme } from '@equinor/fusion-web-theme'; import { ThemeContext } from './utils/contexts'; import type { FusionTheme } from './theme'; @@ -10,11 +9,21 @@ import type ThemeElement from '@equinor/fusion-wc-theme'; declare module 'react' { namespace JSX { interface IntrinsicElements { - 'fwc-theme': React.DetailedHTMLProps, ThemeElement>; + 'fwc-theme': React.DetailedHTMLProps, ThemeElement> & { + 'color-scheme'?: ColorScheme; + }; } } } +/** + * Colour scheme applied by {@link ThemeProvider}. + * + * - `light` / `dark` force the EDS colour scheme for the provider subtree. + * - `system` follows the user's `prefers-color-scheme` setting. + */ +export type ColorScheme = 'light' | 'dark' | 'system'; + /** * Props for the ThemeProvider component * @@ -25,6 +34,14 @@ export interface ThemeProviderProps { children?: ReactNode; /** Theme object or function that receives outer theme and returns new theme */ theme?: T | Partial | ((outerTheme: T | null) => T); + /** + * Colour scheme for this subtree, resolved by the `fwc-theme` wrapper. + * + * When omitted, no attribute is set and the subtree inherits the scheme from its + * ancestors (for example `data-color-scheme` on `` set by the portal), or follows + * `prefers-color-scheme` when no ancestor sets one. + */ + colorScheme?: ColorScheme; } /** @@ -49,6 +66,13 @@ export interface ThemeProviderProps { * * @example * ```tsx + * // Force dark mode, or follow the operating system setting + * + * + * ``` + * + * @example + * ```tsx * // Nested theme with function * * ({ ...outer, custom: true })}> @@ -77,7 +101,7 @@ export interface ThemeProviderProps { export function ThemeProvider( props: ThemeProviderProps, ): ReactElement { - const { children, theme: localTheme } = props; + const { children, theme: localTheme, colorScheme } = props; // Get theme from parent ThemeProvider (if nested) const outerTheme = useContext(ThemeContext) as T | null; @@ -101,7 +125,7 @@ export function ThemeProvider( {outerTheme === null && } {/* Wrap children in fwc-theme web component for theme application */} - {children} + {children} ); } diff --git a/packages/styles/src/__tests__/ThemeProvider.test.tsx b/packages/styles/src/__tests__/ThemeProvider.test.tsx index 43861c01e..e151524e1 100644 --- a/packages/styles/src/__tests__/ThemeProvider.test.tsx +++ b/packages/styles/src/__tests__/ThemeProvider.test.tsx @@ -10,8 +10,8 @@ * Components can access theme via useTheme hook or useTheme in makeStyles. */ -import { describe, it, expect } from 'vitest'; -import { render, screen, renderHook } from '@testing-library/react'; +import { describe, it, expect, vi } from 'vitest'; +import { act, render, screen, renderHook } from '@testing-library/react'; import { useContext } from 'react'; import { StyleSheetManager } from 'styled-components'; import { ThemeProvider, useTheme } from '../ThemeProvider'; @@ -310,3 +310,76 @@ describe('EdsTokens - CSS Variables Rendering', () => { expect(container.querySelector('[data-testid="child"]')).not.toBeNull(); }); }); + +describe('ThemeProvider - colour scheme', () => { + const getThemeElement = (container: HTMLElement) => { + const element = container.querySelector('fwc-theme'); + if (!element) throw new Error('fwc-theme not rendered'); + return element; + }; + + const mockSystemScheme = (dark: boolean) => { + const listeners = new Set<() => void>(); + const media = { + matches: dark, + addEventListener: (_: string, listener: () => void) => listeners.add(listener), + removeEventListener: (_: string, listener: () => void) => listeners.delete(listener), + }; + const original = window.matchMedia; + window.matchMedia = vi.fn(() => media) as unknown as typeof window.matchMedia; + return { + setDark: (value: boolean) => { + media.matches = value; + for (const listener of listeners) listener(); + }, + restore: () => { + window.matchMedia = original; + }, + }; + }; + + it('does not set a colour scheme when colorScheme is omitted, so it inherits', async () => { + const { container } = render(content); + const element = getThemeElement(container); + await element.updateComplete; + expect(element.hasAttribute('data-color-scheme')).toBe(false); + }); + + it.each(['light', 'dark'] as const)('sets data-color-scheme="%s"', async (scheme) => { + const { container } = render(content); + const element = getThemeElement(container); + await element.updateComplete; + expect(element.getAttribute('data-color-scheme')).toBe(scheme); + expect(element.getAttribute('color-scheme')).toBe(scheme); + }); + + it('removes its scheme override after switching between forced schemes', async () => { + const { container, rerender } = render(x); + const element = getThemeElement(container); + await element.updateComplete; + expect(element.getAttribute('data-color-scheme')).toBe('dark'); + + rerender(x); + await element.updateComplete; + expect(element.getAttribute('data-color-scheme')).toBe('light'); + + rerender(x); + await element.updateComplete; + expect(element.hasAttribute('color-scheme')).toBe(false); + expect(element.hasAttribute('data-color-scheme')).toBe(false); + }); + + it('follows prefers-color-scheme for "system"', async () => { + const system = mockSystemScheme(true); + try { + const { container } = render(x); + const element = getThemeElement(container); + await element.updateComplete; + expect(element.getAttribute('data-color-scheme')).toBe('dark'); + act(() => system.setDark(false)); + expect(element.getAttribute('data-color-scheme')).toBe('light'); + } finally { + system.restore(); + } + }); +}); diff --git a/packages/styles/src/__tests__/classic-colours.test.tsx b/packages/styles/src/__tests__/classic-colours.test.tsx new file mode 100644 index 000000000..9bcec37ec --- /dev/null +++ b/packages/styles/src/__tests__/classic-colours.test.tsx @@ -0,0 +1,100 @@ +import { readFileSync } from 'node:fs'; +import { createRequire } from 'node:module'; +import { tokens } from '@equinor/eds-tokens'; +import { describe, expect, it } from 'vitest'; +import { + classicColourDeclarations, + classicColourSchemeStyles, + classicColourVariables, + classicOverlayColour, + classicOverlayColours, + classicOverlayTextStyles, + classicScrimColour, +} from '../index'; + +const require = createRequire(import.meta.url); +const edsCss = readFileSync(require.resolve('@equinor/eds-tokens/css/variables.css'), 'utf8'); + +/** Every `--eds_*` property the classic `@equinor/eds-tokens` JS values read. */ +const classicProperties = [ + ...new Set([...JSON.stringify(tokens).matchAll(/var\((--eds_[a-z0-9_]+)/g)].map(([, n]) => n)), +]; + +const deliberatelyUnmapped = + /^--eds_(infographic_|logo__|interactive__pressed_overlay_|ui_background__semitransparent$)/; + +describe('classic EDS colour mapping', () => { + it('maps every classic colour property except brand palettes and pressed overlays', () => { + const mapped = new Set([ + ...Object.keys(classicColourVariables), + ...Object.keys(classicOverlayColours), + ]); + const missing = classicProperties.filter( + (name) => !mapped.has(name) && !deliberatelyUnmapped.test(name), + ); + expect(classicProperties.length).toBeGreaterThan(100); + expect(missing).toEqual([]); + for (const name of mapped) expect(classicProperties).toContain(name); + }); + + it('only targets EDS colour variables defined by @equinor/eds-tokens', () => { + const targets = [ + ...Object.values(classicColourVariables), + ...Object.values(classicOverlayColours).flatMap((value) => + [...value.matchAll(/var\((--eds-[a-z0-9-]+)\)/g)].map(([, n]) => n), + ), + ]; + for (const target of targets) { + expect(target).toMatch(/^--eds-color-/); + expect(edsCss).toContain(`${target}:`); + } + }); + + it('declares EDS variables only, without literal colours or fallbacks', () => { + for (const line of classicColourDeclarations().split('\n')) { + const [property, value] = line.split(': '); + expect(property).toMatch(/^--eds[_-][a-z0-9_-]+$/); + expect(value).toMatch( + /^(var\(--eds-color-[a-z0-9-]+\)|color-mix\(in srgb, var\(--eds-color-[a-z0-9-]+\) \d+%, var\(--eds-color-[a-z0-9-]+\)\)|color\(from var\(--eds-color-[a-z0-9-]+\) srgb r g b \/ 0\.\d+\));$/, + ); + for (const [, token] of value.matchAll(/var\((--eds-color-[a-z0-9-]+)\)/g)) { + expect(edsCss).toContain(`${token}:`); + } + } + }); + + it('keeps the classic scrim translucent and the overlay dark', () => { + expect(classicScrimColour).toBe('color(from var(--eds-color-bg-backdrop) srgb r g b / 0.6)'); + expect(classicOverlayColour).toBe( + 'color(from var(--eds-color-bg-neutral-canvas) srgb r g b / 0.9)', + ); + expect(classicOverlayColours).toEqual({ + '--eds_ui_background__scrim': classicScrimColour, + '--eds_ui_background__overlay': classicOverlayColour, + }); + expect(classicColourDeclarations()).not.toContain('var(--eds-color-bg-backdrop);'); + }); + + it('gives overlay components light text from a dark-only property', () => { + const css = classicOverlayTextStyles.replace(/\s/g, ''); + expect(css).toBe( + '[role="tooltip"],[role="alert"][popover],[popover]>[role="alert"]{--eds_text__static_icons__primary_white:var(--eds_text__static_icons__default);}', + ); + // The referenced property is mapped in dark mode only, so light mode keeps the classic white. + expect(classicColourVariables['--eds_text__static_icons__default']).toBe( + '--eds-color-text-neutral-strong', + ); + expect(classicColourSchemeStyles().replace(/\s/g, '')).toContain(css); + }); + + it('applies the mapping in dark mode only and resets it in nested light mode', () => { + const css = classicColourSchemeStyles().replace(/\s/g, ''); + const declarations = classicColourDeclarations().replace(/\s/g, ''); + expect(css).toContain(`[data-color-scheme="dark"]{${declarations}}`); + expect(css).toContain( + `@media(prefers-color-scheme:dark){:root:not([data-color-scheme="light"]){color-scheme:dark;${declarations}}}`, + ); + expect(css).toContain('[data-color-scheme="light"]{--eds_text__static_icons__default:initial;'); + expect(css).not.toMatch(/(^|})(:root|html)[,{]/); + }); +}); diff --git a/packages/styles/src/__tests__/color-scheme-aliases.test.tsx b/packages/styles/src/__tests__/color-scheme-aliases.test.tsx new file mode 100644 index 000000000..183d283a3 --- /dev/null +++ b/packages/styles/src/__tests__/color-scheme-aliases.test.tsx @@ -0,0 +1,69 @@ +import { afterEach, describe, expect, it } from 'vitest'; +import { render } from '@testing-library/react'; +import { StyleSheetManager } from 'styled-components'; +// @ts-expect-error: EDS does not provide types for this +import edsVariables from '@equinor/eds-tokens/css/variables.css?raw'; +import { colourSchemeAliasDeclarations } from '../color-scheme-aliases'; +import { ThemeProvider } from '../ThemeProvider'; + +describe('colourSchemeAliasDeclarations', () => { + it('accepts test runners that stub the raw CSS import', () => { + expect(colourSchemeAliasDeclarations({})).toEqual([]); + expect(colourSchemeAliasDeclarations(undefined)).toEqual([]); + }); + + it('extracts the EDS semantic aliases declared at the light root', () => { + const aliases = colourSchemeAliasDeclarations(edsVariables); + expect(aliases).toContain('--eds-color-bg-neutral-surface: var(--eds-color-neutral-2)'); + expect(aliases).toContain('--eds-color-text-neutral-strong: var(--eds-color-neutral-13)'); + // palette values are scheme-specific and must stay with EDS's own `[data-color-scheme]` blocks + expect(aliases.every((alias) => /: var\(--eds-color-[\w-]+\)$/.test(alias))).toBe(true); + }); + + it('ignores declarations outside the light root blocks', () => { + const source = [ + ':root, [data-color-scheme="light"] {', + ' --eds-color-bg-floating: initial;', + ' --eds-color-bg-neutral-surface: var(--eds-color-neutral-2);', + '}', + '[data-color-scheme="dark"] {', + ' --eds-color-bg-neutral-canvas: var(--eds-color-neutral-1);', + '}', + '[data-color-appearance="accent"] {', + ' --eds-color-bg-fill-muted-default: var(--eds-color-accent-3);', + '}', + ].join('\n'); + expect(colourSchemeAliasDeclarations(source)).toEqual([ + '--eds-color-bg-neutral-surface: var(--eds-color-neutral-2)', + ]); + }); +}); + +describe('EdsTokens - nested colour scheme', () => { + afterEach(() => { + document.documentElement.removeAttribute('data-color-scheme'); + document.body.removeAttribute('data-color-scheme'); + }); + + it('re-declares semantic aliases on a dark body below a light root', () => { + // portaled content renders in ; with a light it must not inherit light aliases + document.documentElement.setAttribute('data-color-scheme', 'light'); + document.body.setAttribute('data-color-scheme', 'dark'); + render( + + +
+ + , + ); + + const declared = Array.from(document.styleSheets) + .flatMap((sheet) => Array.from(sheet.cssRules)) + .filter((rule): rule is CSSStyleRule => 'selectorText' in rule) + .filter((rule) => document.body.matches(rule.selectorText)) + .map((rule) => rule.style.getPropertyValue('--eds-color-bg-neutral-surface').trim()) + .filter(Boolean); + + expect(declared).toContain('var(--eds-color-neutral-2)'); + }); +}); diff --git a/packages/styles/src/classic-colours.ts b/packages/styles/src/classic-colours.ts new file mode 100644 index 000000000..20208e1d2 --- /dev/null +++ b/packages/styles/src/classic-colours.ts @@ -0,0 +1,200 @@ +/** Legacy typography colour properties (`--eds____color`) used by classic EDS. */ +const typographyColourProperties = [ + 'heading__h1_bold', + 'heading__h1', + 'heading__h2', + 'heading__h3', + 'heading__h4', + 'heading__h5', + 'heading__h6', + 'input__helper', + 'input__label', + 'input__text', + 'input__text_monospaced', + 'navigation__breadcrumb', + 'navigation__breadcrumb_hover', + 'navigation__button', + 'navigation__drawer_active', + 'navigation__drawer_inactive', + 'navigation__label', + 'navigation__menu_tabs', + 'navigation__menu_title', + 'navigation__menu_title_hover', + 'paragraph__body_long_bold', + 'paragraph__body_long_bold_italic', + 'paragraph__body_long', + 'paragraph__body_long_italic', + 'paragraph__body_long_link', + 'paragraph__body_short_bold', + 'paragraph__body_short_bold_italic', + 'paragraph__body_short', + 'paragraph__body_short_italic', + 'paragraph__body_short_link', + 'paragraph__caption', + 'paragraph__ingress', + 'paragraph__meta', + 'paragraph__overline', + 'table__cell_header', + 'table__cell_numeric_monospaced', + 'table__cell_text_bold', + 'table__cell_text', + 'table__cell_text_link', + 'ui__accordion_header', + 'ui__chart', + 'ui__chip__badge', + 'ui__snackbar', + 'ui__tooltip', +]; + +/** + * Maps the legacy custom properties that classic EDS 2.x components read their colours from + * (the `@equinor/eds-tokens` JS values, `var(--eds_*, )`) to EDS CSS colour + * variables from `@equinor/eds-tokens/css/variables` (2.3.2), which switch with the colour + * scheme. + * + * EDS publishes no official legacy-to-semantic mapping, so these pairs are approximations, + * aligned with the mapping in `@equinor/fusion-web-theme`. Infographic and logo colours (brand + * palette), the pressed overlays and `ui_background__semitransparent` are left unmapped. The + * scrim and overlay need a translucent value, so they are in {@link classicOverlayColours}. + */ +export const classicColourVariables: Readonly> = { + '--eds_text__static_icons__default': '--eds-color-text-neutral-strong', + '--eds_text__static_icons__secondary': '--eds-color-text-neutral-subtle', + '--eds_text__static_icons__tertiary': '--eds-color-text-neutral-subtle', + '--eds_text__static_icons__primary_white': '--eds-color-text-accent-strong-on-emphasis', + '--eds_ui_background__default': '--eds-color-bg-neutral-surface', + '--eds_ui_background__light': '--eds-color-bg-neutral-canvas', + '--eds_ui_background__medium': '--eds-color-bg-neutral-fill-muted-default', + '--eds_ui_background__info': '--eds-color-bg-info-fill-muted-default', + '--eds_ui_background__warning': '--eds-color-bg-warning-fill-muted-default', + '--eds_ui_background__danger': '--eds-color-bg-danger-fill-muted-default', + '--eds_interactive_primary__selected_highlight': '--eds-color-bg-accent-fill-muted-default', + '--eds_interactive_primary__selected_hover': '--eds-color-bg-accent-fill-muted-hover', + '--eds_interactive_primary__resting': '--eds-color-bg-accent-fill-emphasis-default', + '--eds_interactive_primary__hover': '--eds-color-bg-accent-fill-emphasis-hover', + '--eds_interactive_primary__hover_alt': '--eds-color-bg-accent-fill-muted-default', + '--eds_interactive_secondary__highlight': '--eds-color-bg-info-fill-muted-default', + '--eds_interactive_secondary__resting': '--eds-color-bg-neutral-fill-emphasis-default', + '--eds_interactive_secondary__link_hover': '--eds-color-bg-neutral-fill-emphasis-hover', + '--eds_interactive_danger__highlight': '--eds-color-bg-danger-fill-muted-default', + '--eds_interactive_danger__resting': '--eds-color-bg-danger-fill-emphasis-default', + '--eds_interactive_danger__hover': '--eds-color-bg-danger-fill-emphasis-hover', + '--eds_interactive_danger__text': '--eds-color-text-danger-subtle', + '--eds_interactive_warning__highlight': '--eds-color-bg-warning-fill-muted-default', + '--eds_interactive_warning__resting': '--eds-color-bg-warning-fill-emphasis-default', + '--eds_interactive_warning__hover': '--eds-color-bg-warning-fill-emphasis-hover', + '--eds_interactive_warning__text': '--eds-color-text-warning-subtle', + '--eds_interactive_success__highlight': '--eds-color-bg-success-fill-muted-default', + '--eds_interactive_success__resting': '--eds-color-bg-success-fill-emphasis-default', + '--eds_interactive_success__hover': '--eds-color-bg-success-fill-emphasis-hover', + '--eds_interactive_success__text': '--eds-color-text-success-subtle', + '--eds_interactive_table__cell__fill_resting': '--eds-color-bg-neutral-surface', + '--eds_interactive_table__cell__fill_hover': '--eds-color-bg-neutral-fill-muted-default', + '--eds_interactive_table__cell__fill_activated': '--eds-color-bg-accent-fill-muted-default', + '--eds_interactive_table__header__fill_activated': '--eds-color-bg-neutral-fill-muted-default', + '--eds_interactive_table__header__fill_hover': '--eds-color-bg-neutral-fill-muted-hover', + '--eds_interactive_table__header__fill_resting': '--eds-color-bg-neutral-canvas', + '--eds_interactive__disabled__text': '--eds-color-text-disabled', + '--eds_interactive__text_highlight': '--eds-color-bg-info-fill-muted-default', + '--eds_interactive__focus': '--eds-color-border-focus', + '--eds_interactive__disabled__border': '--eds-color-border-disabled', + '--eds_interactive__disabled__fill': '--eds-color-bg-disabled', + '--eds_interactive__link_on_interactive_colors': '--eds-color-text-accent-strong-on-emphasis', + '--eds_interactive__icon_on_interactive_colors': '--eds-color-text-accent-strong-on-emphasis', + '--eds_interactive__link_in_snackbars': '--eds-color-text-link', + ...Object.fromEntries( + typographyColourProperties.map((name) => [ + `--eds_${name}_color`, + name.endsWith('_link') ? '--eds-color-text-link' : '--eds-color-text-neutral-strong', + ]), + ), +}; + +/** + * Translucent scrim colour derived from `--eds-color-bg-backdrop`, which is opaque. The classic + * scrim is translucent, so the page behind it stays visible. + */ +export const classicScrimColour = 'color(from var(--eds-color-bg-backdrop) srgb r g b / 0.6)'; + +/** + * Dark, near-opaque background for classic `Tooltip` and `Snackbar`, derived from the darkest + * canvas. The classic overlay is translucent and uses light text. + */ +export const classicOverlayColour = + 'color(from var(--eds-color-bg-neutral-canvas) srgb r g b / 0.9)'; + +/** Legacy scrim and overlay properties, declared as CSS values rather than variable names. */ +export const classicOverlayColours: Readonly> = { + '--eds_ui_background__scrim': classicScrimColour, + '--eds_ui_background__overlay': classicOverlayColour, +}; + +/** + * Light text for classic components on the overlay background (`Tooltip` and `Snackbar`). + * + * `--eds_text__static_icons__primary_white` maps to the on-emphasis text colour, which is dark in + * dark mode because contained buttons and `SideBar` use it on light emphasis fills. Inside the + * overlay components, including the alert inside the Snackbar's popover, it points at + * `--eds_text__static_icons__default` instead. That property is only defined in dark mode, + * so in light mode the reference is invalid and components keep their classic white fallback. + * The popover selector matches the classic Snackbar's markup, but also matches custom alerts with + * the same structure; contained buttons inside those alerts inherit the overlay text override. + */ +export const classicOverlayTextStyles = ` +[role="tooltip"], [role="alert"][popover], [popover] > [role="alert"] { + --eds_text__static_icons__primary_white: var(--eds_text__static_icons__default); +} +`; + +// fwc-theme resolves the canvas and surface aliases from the neutral primitives again at its host. +const darkSurfaceDeclarations = ` +--eds-color-neutral-1: color-mix(in srgb, var(--eds-color-info-8) 19%, var(--eds-color-info-15)); +--eds-color-neutral-2: color-mix(in srgb, var(--eds-color-info-3) 35%, var(--eds-color-info-2)); +--eds-color-bg-neutral-canvas: var(--eds-color-neutral-1); +--eds-color-bg-neutral-surface: var(--eds-color-neutral-2); +--eds-color-bg-floating: color-mix(in srgb, var(--eds-color-info-10) 10%, var(--eds-color-info-14)); +--eds-color-text-link: var(--eds-color-info-9); +--eds-color-border-focus: var(--eds-color-info-8);`.trim(); + +/** + * Returns the Fusion dark surface roles and classic EDS mappings, including + * {@link classicColourVariables} and {@link classicOverlayColours}. Place these declarations + * after the EDS variables under the host's dark colour-scheme selector only. + */ +export const classicColourDeclarations = (): string => + [ + darkSurfaceDeclarations, + ...Object.entries(classicColourVariables).map( + ([legacy, variable]) => `${legacy}: var(${variable});`, + ), + ...Object.entries(classicOverlayColours).map(([legacy, value]) => `${legacy}: ${value};`), + ].join('\n'); + +/** + * Applies {@link classicColourDeclarations} wherever `@equinor/eds-tokens` 2.3.2 selects dark: + * `[data-color-scheme="dark"]`, and a root without `data-color-scheme="light"` when the system + * prefers dark. A nested `[data-color-scheme="light"]` resets the legacy properties to `initial`, + * so classic components there use their light fallbacks instead of inherited dark values. The EDS + * stylesheet supplies the stock surface roles at light boundaries. This also includes + * {@link classicOverlayTextStyles}. + */ +export const classicColourSchemeStyles = (): string => { + const declarations = classicColourDeclarations(); + const resets = [...Object.keys(classicColourVariables), ...Object.keys(classicOverlayColours)] + .map((legacy) => `${legacy}: initial;`) + .join('\n'); + return ` +[data-color-scheme="dark"] { +${declarations} +} +@media (prefers-color-scheme: dark) { + :root:not([data-color-scheme="light"]) { +color-scheme: dark; +${declarations} + } +} +[data-color-scheme="light"] { +${resets} +} +${classicOverlayTextStyles}`; +}; diff --git a/packages/styles/src/color-scheme-aliases.ts b/packages/styles/src/color-scheme-aliases.ts new file mode 100644 index 000000000..cbcbda12f --- /dev/null +++ b/packages/styles/src/color-scheme-aliases.ts @@ -0,0 +1,29 @@ +const RULE = /([^{}]+)\{([^{}]*)\}/g; +const LIGHT_ROOT = ':root,[data-color-scheme=light]'; +const ALIAS = /^(--eds-color-[\w-]+)\s*:\s*(var\(--eds-color-[\w-]+\))$/; + +/** + * Extracts the EDS semantic colour aliases (for example + * `--eds-color-bg-neutral-surface: var(--eds-color-neutral-2)`) from the + * `@equinor/eds-tokens` 2.x `css/variables.css` source. + * + * EDS declares these aliases only on `:root, [data-color-scheme="light"]`, while + * `[data-color-scheme="dark"]` only re-declares the palette. A dark subtree below a light root, + * such as a dark `` under a light ``, would otherwise inherit aliases already + * resolved to light values. + * + * @param source - The raw `@equinor/eds-tokens/css/variables.css` text, formatted or minified. + * @returns The alias declarations, without trailing semicolons, or an empty list for a stubbed import. + */ +export const colourSchemeAliasDeclarations = (source: unknown): string[] => { + if (typeof source !== 'string') return []; + const declarations: string[] = []; + for (const [, selector, body] of source.matchAll(RULE)) { + if (selector.replace(/\s|["']/g, '') !== LIGHT_ROOT) continue; + for (const declaration of body.split(';')) { + const match = declaration.trim().match(ALIAS); + if (match) declarations.push(`${match[1]}: ${match[2]}`); + } + } + return declarations; +}; diff --git a/packages/styles/src/index.ts b/packages/styles/src/index.ts index fb7fd74d1..383be9e26 100644 --- a/packages/styles/src/index.ts +++ b/packages/styles/src/index.ts @@ -10,6 +10,15 @@ export { default as clsx } from 'clsx'; export { StylesProvider } from './StyleProvider'; export type { StylesProviderProps } from './StyleProvider'; export { ThemeProvider, useTheme } from './ThemeProvider'; -export type { ThemeProviderProps } from './ThemeProvider'; +export { + classicColourDeclarations, + classicColourSchemeStyles, + classicColourVariables, + classicOverlayColour, + classicOverlayColours, + classicOverlayTextStyles, + classicScrimColour, +} from './classic-colours'; +export type { ColorScheme, ThemeProviderProps } from './ThemeProvider'; export type { StyleRules, StyleCSSProperties, Styles } from './types'; diff --git a/packages/styles/vitest.config.ts b/packages/styles/vitest.config.ts index 2fa1b0eab..388622b26 100644 --- a/packages/styles/vitest.config.ts +++ b/packages/styles/vitest.config.ts @@ -2,11 +2,19 @@ import { defineConfig } from 'vitest/config'; import { name, version } from './package.json'; export default defineConfig({ + resolve: { + // jsdom tests resolve the Node build, which never injects ${previewHead}` + + '' + + '
' + + `
` + + `
` + + `
` + + `
` + + '
' + + '
', + ); + const background = (selector: string) => + page.$eval(selector, (el) => getComputedStyle(el).backgroundColor); + return { + body: await background('body'), + canvas: await background('#canvas'), + nativeScheme: await page.$eval('body', (el) => getComputedStyle(el).colorScheme), + mapped: await background('#mapped'), + scrim: await background('#scrim'), + lightScrim: await background('#light-scrim'), + nested: await background('#nested'), + surface: await background('#surface'), + }; + } finally { + await page.close(); + } + }; + + test.each([ + ['system', 'light', 'light'], + ['system', 'dark', 'dark'], + ['light', 'dark', 'light'], + ['dark', 'light', 'dark'], + ] as const)('%s with prefers-color-scheme: %s renders %s', async (scheme, prefers, result) => { + const light = await render('light', 'light'); + const dark = await render('dark', 'dark'); + expect(light.canvas).not.toBe(dark.canvas); + // Classic components keep their light values in light mode and follow the mapping in dark. + expect(light.mapped).toBe(light.surface); + expect(dark.mapped).toBe(dark.surface); + expect(dark.nested).toBe(light.mapped); + expect(light.scrim).toBe(light.lightScrim); + expect(dark.lightScrim).toBe(light.lightScrim); + expect(dark.scrim).toMatch(/\/ 0\.6\)$/); + expect(light.body).toBe(light.canvas); + expect(dark.body).toBe(dark.canvas); + expect(dark.body).not.toBe(dark.surface); + expect(light.body).not.toBe(dark.body); + expect(await render(scheme, prefers)).toEqual(result === 'light' ? light : dark); + }); + + test.each(['light', 'dark'] as const)('uses the %s native scheme without an explicit setting', async (scheme) => { + const system = await render(undefined, scheme); + expect(system.nativeScheme).toBe(scheme); + expect(system).toEqual(await render(scheme, scheme)); + }); + + test('keeps canvas, panel and raised surfaces through real nested fwc-theme hosts', async () => { + const styleRequire = createRequire(new URL('../../packages/styles/package.json', import.meta.url)); + const themeBundle = resolve(styleRequire.resolve('@equinor/fusion-wc-theme'), '../../dist/index.js'); + const page = await browser.newPage({ colorScheme: 'dark' }); + try { + await page.route('**/*', (route) => route.abort()); + await page.setContent( + ` + + + + + + + `, + ); + await page.addScriptTag({ path: themeBundle, type: 'module' }); + await page.evaluate(() => customElements.whenDefined('fwc-theme').then(() => undefined)); + await expect.poll(() => page.getAttribute('#dark', 'data-color-scheme')).toBe('dark'); + await expect.poll(() => page.getAttribute('#light', 'data-color-scheme')).toBe('light'); + const readSurfaces = () => + page.evaluate(() => { + const surfaces = (root: Element) => { + const swatch = document.createElement('div'); + root.append(swatch); + const colours = ['bg-neutral-canvas', 'bg-neutral-surface', 'bg-floating'].map( + (role) => { + swatch.style.backgroundColor = `var(--eds-color-${role})`; + return getComputedStyle(swatch).backgroundColor; + }, + ); + swatch.remove(); + return colours; + }; + return { + root: surfaces(document.documentElement), + system: surfaces(document.querySelector('#system')!), + light: surfaces(document.querySelector('#light')!), + dark: surfaces(document.querySelector('#dark')!), + inherited: surfaces(document.querySelector('#inherited')!), + }; + }); + const dark = await readSurfaces(); + expect(new Set(dark.system).size).toBe(3); + expect(dark.system).toEqual(dark.root); + expect(dark.inherited).toEqual(dark.dark); + expect(dark.dark).toEqual(dark.root); + expect(dark.light).not.toEqual(dark.dark); + await page.emulateMedia({ colorScheme: 'light' }); + const light = await readSurfaces(); + expect(light.system).toEqual(dark.light); + expect(light.light).toEqual(dark.light); + expect(light.dark).toEqual(dark.dark); + expect(light.inherited).toEqual(dark.dark); + } finally { + await page.close(); + } + }); +}); + +describe('classic white text stays readable on its background', () => { + let browser: Browser; + beforeAll(async () => { + browser = await chromium.launch(); + }); + afterAll(async () => { + await browser?.close(); + }); + + // Same colour declarations as the classic Tooltip and contained Button. + const overlay = `background-color: ${classicOverlay}; color: ${classicWhite}`; + const button = `background-color: ${classicPrimary}; color: ${classicWhite}`; + + /** Returns the WCAG contrast of each element's text against its background over the page. */ + const contrasts = async (scheme: 'light' | 'dark') => { + const sheet = new ServerStyleSheet(); + const page = await browser.newPage(); + try { + const snackbar = renderToStaticMarkup( + sheet.collectStyles(createElement(Snackbar, { open: true }, 'Snackbar')), + ); + await page.route('**/*', (route) => route.abort()); + await page.setContent( + `` + + `${sheet.getStyleTags()}${previewHead}` + + `` + + snackbar + + `` + + `
` + + '
' + + '
' + + '
' + + '' + + '
' + + '', + ); + await page.locator('[popover]').evaluate((popover: HTMLElement) => popover.showPopover()); + return await page.evaluate(() => { + const context = document.createElement('canvas').getContext('2d', { + willReadFrequently: true, + }) as CanvasRenderingContext2D; + // Composites the colours over each other and returns the resulting relative luminance. + const luminance = (...colours: string[]) => { + context.clearRect(0, 0, 1, 1); + for (const colour of colours) { + context.fillStyle = colour; + context.fillRect(0, 0, 1, 1); + } + const [r, g, b] = [...context.getImageData(0, 0, 1, 1).data].map((value) => { + const channel = value / 255; + return channel <= 0.03928 ? channel / 12.92 : ((channel + 0.055) / 1.055) ** 2.4; + }); + return 0.2126 * r + 0.7152 * g + 0.0722 * b; + }; + const page = getComputedStyle(document.body).backgroundColor; + const ratio = (a: number, b: number) => (Math.max(a, b) + 0.05) / (Math.min(a, b) + 0.05); + const link = luminance(getComputedStyle(document.getElementById('link')!).color); + const focus = luminance(getComputedStyle(document.getElementById('focus')!).color); + const snackbarAlert = document.querySelector('[role="alert"]'); + if (!snackbarAlert) throw new Error('EDS Snackbar did not render an alert'); + return Object.fromEntries( + ['tooltip', 'snackbar', 'button', 'nested', 'canvas', 'panel', 'raised'].map((id) => { + const element = id === 'snackbar' ? snackbarAlert : document.getElementById(id)!; + const style = getComputedStyle(element); + const background = luminance(page, style.backgroundColor); + const text = luminance(page, style.backgroundColor, style.color); + return [id, { + contrast: ratio(text, background), + lightText: text > background, + linkContrast: ratio(link, background), + focusContrast: ratio(focus, background), + }]; + }), + ); + }); + } finally { + sheet.seal(); + await page.close(); + } + }; + + test.each(['light', 'dark'] as const)('%s', async (scheme) => { + const result = await contrasts(scheme); + for (const { contrast } of Object.values(result)) expect(contrast).toBeGreaterThanOrEqual(4.5); + // Tooltips and snackbars are dark surfaces with light text in both schemes. + expect(result.tooltip.lightText).toBe(true); + expect(result.snackbar.lightText).toBe(true); + expect(result.nested.lightText).toBe(true); + if (scheme === 'dark') { + for (const role of ['canvas', 'panel', 'raised']) { + expect(result[role].linkContrast).toBeGreaterThanOrEqual(4.5); + expect(result[role].focusContrast).toBeGreaterThanOrEqual(3); + } + } + }); +}); diff --git a/storybook/.storybook/color-scheme.ts b/storybook/.storybook/color-scheme.ts new file mode 100644 index 000000000..0fee1fbc6 --- /dev/null +++ b/storybook/.storybook/color-scheme.ts @@ -0,0 +1,36 @@ +/** Colour scheme options offered in the Storybook toolbar. */ +export type StorybookColorScheme = 'light' | 'dark' | 'system'; + +const DARK_QUERY = '(prefers-color-scheme: dark)'; + +/** + * Value for `data-color-scheme` on ``. + * + * The Fusion portal always passes an explicit `data-color-scheme`, so `system` is resolved from + * `prefers-color-scheme` instead of removing the attribute, as the portal does. + */ +export const resolveColorScheme = ( + scheme: StorybookColorScheme, + prefersDark: boolean, +): 'light' | 'dark' => (scheme === 'system' ? (prefersDark ? 'dark' : 'light') : scheme); + +/** + * Writes the resolved scheme to `root` and, while `system` is selected, follows OS changes. + * + * Setting it on the document root mirrors how the Fusion portal passes the scheme down, so + * stories exercise inheritance, including content portaled to `document.body`. + * + * @returns cleanup that stops following OS changes + */ +export const applyColorScheme = ( + root: HTMLElement, + scheme: StorybookColorScheme, + matchMedia: (query: string) => MediaQueryList = window.matchMedia.bind(window), +): (() => void) => { + const query = matchMedia(DARK_QUERY); + const update = () => root.setAttribute('data-color-scheme', resolveColorScheme(scheme, query.matches)); + update(); + if (scheme !== 'system') return () => {}; + query.addEventListener('change', update); + return () => query.removeEventListener('change', update); +}; diff --git a/storybook/.storybook/light-mode.test.ts b/storybook/.storybook/light-mode.test.ts deleted file mode 100644 index 41b633926..000000000 --- a/storybook/.storybook/light-mode.test.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { readFileSync } from 'node:fs'; -import { createRequire } from 'node:module'; -import { pathToFileURL } from 'node:url'; -import { type Browser, chromium } from 'playwright'; -import { expect, test } from 'vitest'; - -const require = createRequire(import.meta.url); -const previewHead = readFileSync(new URL('./preview-head.html', import.meta.url), 'utf8'); -const markup = previewHead.replace(//g, ''); -const edsVariablesPath = require.resolve('@equinor/eds-tokens/css/variables'); -const edsVariables = readFileSync(edsVariablesPath, 'utf8'); -// The token JSON files are not reachable through the package's export map from Node. -const readEdsTokens = (scheme: 'light' | 'dark'): Record => - JSON.parse( - readFileSync( - new URL(`../json/color/color-scheme/flat/${scheme}-semantic.json`, pathToFileURL(edsVariablesPath)), - 'utf8', - ), - ); -const lightTokens = readEdsTokens('light'); -const darkTokens = readEdsTokens('dark'); - -test('preview selects the EDS light colour scheme on ', () => { - const htmlTags = markup.match(/]*>/g) ?? []; - expect(htmlTags).toEqual(['']); - expect(markup).not.toMatch(/|color-scheme:|prefers-color-scheme/); -}); - -/** Render an EDS colour variable in a dark-preferring page, as Storybook's preview iframe would. */ -const renderEdsColor = async (browser: Browser, head: string, variable: string) => { - const page = await browser.newPage({ colorScheme: 'dark' }); - try { - // Keep the test offline; only the inlined EDS variables matter for colours. - await page.route('**/*', (route) => route.abort()); - await page.setContent( - `${head}` + - `
`, - ); - return await page.$eval('#probe', (el) => getComputedStyle(el).backgroundColor); - } finally { - await page.close(); - } -}; - -const toRgb = (hex: string) => { - const [r, g, b] = (hex.match(/[0-9a-f]{2}/gi) ?? []).map((part) => Number.parseInt(part, 16)); - return `rgb(${r}, ${g}, ${b})`; -}; - -test('EDS CSS variables render their light values when the browser prefers dark', async () => { - const light = toRgb(lightTokens['bg-neutral-canvas']); - const dark = toRgb(darkTokens['bg-neutral-canvas']); - expect(light).not.toBe(dark); - - const browser = await chromium.launch(); - try { - expect(await renderEdsColor(browser, '', '--eds-color-bg-canvas')).toBe(dark); - expect(await renderEdsColor(browser, previewHead, '--eds-color-bg-canvas')).toBe(light); - } finally { - await browser.close(); - } -}); diff --git a/storybook/.storybook/preview-head.html b/storybook/.storybook/preview-head.html index 2e4f18872..081d95580 100644 --- a/storybook/.storybook/preview-head.html +++ b/storybook/.storybook/preview-head.html @@ -1,4 +1,7 @@ - - + + diff --git a/storybook/.storybook/preview.tsx b/storybook/.storybook/preview.tsx index 573f83793..f9a286e44 100644 --- a/storybook/.storybook/preview.tsx +++ b/storybook/.storybook/preview.tsx @@ -1,6 +1,8 @@ import { type Preview } from '@storybook/react-vite'; +import { useEffect } from 'storybook/preview-api'; -import {Theme} from '../src/components/Theme' +import { Theme } from '../src/components/Theme'; +import { applyColorScheme, type StorybookColorScheme } from './color-scheme'; const _customElementsDefine = window.customElements.define; window.customElements.define = (name, cl, conf) => { @@ -13,6 +15,24 @@ window.customElements.define = (name, cl, conf) => { }; const preview: Preview = { + globalTypes: { + colorScheme: { + description: 'EDS colour scheme (resolved data-color-scheme on )', + toolbar: { + title: 'Colour scheme', + icon: 'contrast', + items: [ + { value: 'system', title: 'System' }, + { value: 'light', title: 'Light' }, + { value: 'dark', title: 'Dark' }, + ], + dynamicTitle: true, + }, + }, + }, + initialGlobals: { + colorScheme: 'system', + }, parameters: { controls: { matchers: { @@ -31,11 +51,18 @@ const preview: Preview = { }, decorators: [ - (Story) => ( - - - - ), + (Story, context) => { + const colorScheme = (context.globals.colorScheme ?? 'system') as StorybookColorScheme; + // Applied during render so the first paint uses the selected scheme; the effect keeps + // `system` in sync with OS changes. + applyColorScheme(document.documentElement, colorScheme)(); + useEffect(() => applyColorScheme(document.documentElement, colorScheme), [colorScheme]); + return ( + + + + ); + }, ], tags: ['autodocs'], }; diff --git a/storybook/package.json b/storybook/package.json index af9651ee2..6b8001d59 100644 --- a/storybook/package.json +++ b/storybook/package.json @@ -63,7 +63,7 @@ "@babel/preset-react": "^8.0.1", "@babel/preset-typescript": "^8.0.7", "@equinor/fusion-observable": "^9.2.6", - "@equinor/fusion-wc-avatar": "^3.3.5", + "@equinor/fusion-wc-avatar": "^4.0.0", "@equinor/fusion-wc-icon": "^2.4.4", "@faker-js/faker": "^10.6.0", "@storybook/builder-vite": "^10.6.7", diff --git a/storybook/src/stories/sidesheet/side-sheet.stories.tsx b/storybook/src/stories/sidesheet/side-sheet.stories.tsx index 5a1444a6c..a891d2e4e 100644 --- a/storybook/src/stories/sidesheet/side-sheet.stories.tsx +++ b/storybook/src/stories/sidesheet/side-sheet.stories.tsx @@ -50,7 +50,7 @@ export const basic: Story = { <> , , - , + ,