Skip to content

Commit

Permalink
Merge pull request #1997 from navikt/npm-update
Browse files Browse the repository at this point in the history
Npm update
  • Loading branch information
anders-nom authored Aug 28, 2024
2 parents e5f7099 + a59fc0f commit 7350c65
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 83 deletions.
99 changes: 25 additions & 74 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,14 @@
"@navikt/ds-css": "6.13.0",
"@navikt/ds-react": "6.13.0",
"@navikt/ds-tokens": "6.13.0",
"@navikt/nav-dekoratoren-moduler": "3.0.0-beta.4",
"@navikt/nav-dekoratoren-moduler": "3.0.0-beta.9",
"@navikt/nav-office-reception-info": "1.0.7",
"@reduxjs/toolkit": "2.2.6",
"csp-header": "5.2.1",
"dayjs": "1.11.11",
"fuse.js": "6.6.2",
"html-react-parser": "5.1.10",
"js-cookie": "3.0.5",
"jsdom": "24.1.0",
"jsep": "1.3.8",
"lodash.debounce": "4.0.8",
"lru-cache": "10.4.0",
Expand Down Expand Up @@ -139,9 +138,6 @@
"last 1 safari version"
]
},
"browser": {
"jsdom": false
},
"lint-staged": {
"*.{ts,tsx}": [
"prettier --write",
Expand Down
5 changes: 2 additions & 3 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import React from 'react';
import Document, { DocumentContext, Head, Html, Main, NextScript } from 'next/document';
import { DocumentInitialProps } from 'next/dist/pages/_document';
import { DecoratorComponents } from '@navikt/nav-dekoratoren-moduler/ssr';
import { DecoratorComponentsReact } from '@navikt/nav-dekoratoren-moduler/ssr';
import { Language } from 'translations';
import { DocumentParameter } from 'components/_common/metatags/DocumentParameterMetatags';
import { getDecoratorComponents } from 'srcCommon/decorator-utils-serverside';

type DocumentProps = {
language: Language;
Decorator: DecoratorComponents;
Decorator: DecoratorComponentsReact;
isLegacyContentType: boolean;
};

Expand Down Expand Up @@ -60,7 +60,6 @@ class MyDocument extends Document<DocumentProps> {
<Head>
{Decorator && (
<>
<Decorator.Styles />
<Decorator.HeadAssets />
</>
)}
Expand Down
3 changes: 2 additions & 1 deletion src/utils/decorator-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ export const getDecoratorParams = (content: ContentProps): DecoratorParams => {
...(decoratorLanguage && { language: decoratorLanguage }),
breadcrumbs:
breadcrumbs?.map((crumb) => ({
handleInApp: true,
...crumb,
handleInApp: true,
analyticsTitle: crumb.title,
})) || [],
availableLanguages: getDecoratorLanguagesParam(
getContentLanguages(content),
Expand Down

0 comments on commit 7350c65

Please sign in to comment.