diff --git a/.nais/dev.yaml b/.nais/dev.yaml index f55c0b1f..75f41e3a 100644 --- a/.nais/dev.yaml +++ b/.nais/dev.yaml @@ -11,7 +11,8 @@ amplitude: apiKey: 9845ded64c69cd068651cd0d968e0796 saf: cluster: dev-fss - ingress: https://safselvbetjening-q1.dev-fss-pub.nais.io + ingress: safselvbetjening-q1.dev-fss-pub.nais.io + url: https://safselvbetjening-q1.dev-fss-pub.nais.io scope: safselvbetjening-q1 soknadsdialog: ingress: https://arbeid.dev.nav.no/dagpenger/dialog/ diff --git a/.nais/nais.yaml b/.nais/nais.yaml index bf27cf22..b01d95e3 100644 --- a/.nais/nais.yaml +++ b/.nais/nais.yaml @@ -45,7 +45,7 @@ spec: - name: AMPLITUDE_API_KEY value: {{amplitude.apiKey}} - name: SAF_SELVBETJENING_INGRESS - value: {{saf.ingress}} + value: {{saf.url}} - name: SAF_SELVBETJENING_CLUSTER value: {{saf.cluster}} - name: SAF_SELVBETJENING_SCOPE diff --git a/.nais/prod.yaml b/.nais/prod.yaml index 94c7fa93..5d6fb31b 100644 --- a/.nais/prod.yaml +++ b/.nais/prod.yaml @@ -11,7 +11,8 @@ amplitude: apiKey: 913768927b84cde5eac0d0d18c737561 saf: cluster: prod-fss - ingress: https://safselvbetjening.prod-fss-pub.nais.io + ingress: safselvbetjening.prod-fss-pub.nais.io + url: https://safselvbetjening.prod-fss-pub.nais.io scope: safselvbetjening soknadsdialog: ingress: https://www.nav.no/dagpenger/dialog/ diff --git a/package-lock.json b/package-lock.json index 6b9531fa..960a43e4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,50 +9,50 @@ "version": "0.1.0", "hasInstallScript": true, "dependencies": { - "@navikt/dp-auth": "^0.3.0", + "@navikt/dp-auth": "^0.3.3", "@navikt/ds-css": "^2.0.11", "@navikt/ds-icons": "^2.0.11", "@navikt/ds-react": "^2.0.11", "@navikt/nav-dekoratoren-moduler": "^1.8.1", - "@navikt/next-logger": "^1.18.0", + "@navikt/next-logger": "^1.19.0", "@portabletext/react": "^1.0.6", - "@portabletext/types": "^2.0.0", + "@portabletext/types": "^2.0.5", "@sanity/block-content-to-react": "^3.0.0", "@sanity/client": "^2.8.0", "@sentry/nextjs": "^6.19.7", - "@types/amplitude-js": "^8.0.0", - "amplitude-js": "^8.3.1", + "@types/amplitude-js": "^8.16.2", + "amplitude-js": "^8.21.9", "classnames": "^2.3.2", - "date-fns": "^2.29.3", + "date-fns": "^2.30.0", "graphql": "^15.5.1", "graphql-request": "^3.4.0", "next": "^12.1.6", "next-compose-plugins": "^2.2.1", "next-intl": "^2.9.1", "next-transpile-modules": "^8.0.0", - "pdfobject": "^2.2.5", - "pino": "^8.11.0", - "prom-client": "^14.1.0", - "prop-types": "^15.7.2", + "pdfobject": "^2.2.12", + "pino": "^8.14.2", + "prom-client": "^14.2.0", + "prop-types": "^15.8.1", "react": "^18.2.0", "react-dom": "^18.2.0", - "swr": "^2.0.1", + "swr": "^2.2.0", "unleash-client": "^3.16.0", "uuid": "^8.3.2" }, "devDependencies": { - "@axe-core/react": "^4.2.2", - "@faker-js/faker": "^7.6.0", + "@axe-core/react": "^4.7.3", + "@faker-js/faker": "^8.0.2", "@graphql-codegen/cli": "^2.16.5", "@graphql-codegen/typescript": "^2.8.0", "@testing-library/dom": "^8.19.1", - "@testing-library/jest-dom": "^5.16.5", + "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.20", - "@types/jest-axe": "^3.5.1", + "@types/jest-axe": "^3.5.5", "@types/node": "^16.4.10", - "@types/react": "^18.0.26", + "@types/react": "^18.2.18", "@typescript-eslint/eslint-plugin": "^4.28.1", "@typescript-eslint/parser": "^4.28.1", "eslint": "^7.29.0", @@ -70,10 +70,10 @@ "jsdom": "^16.6.0", "lint-staged": "^11.0.0", "msw": "^0.49.2", - "node-mocks-http": "^1.10.1", - "pino-pretty": "^10.0.0", + "node-mocks-http": "^1.12.2", + "pino-pretty": "^10.2.0", "prettier": "^2.3.2", - "pretty-quick": "^3.1.1", + "pretty-quick": "^3.1.3", "typescript": "^4.3.5" }, "engines": { @@ -87,39 +87,49 @@ "integrity": "sha512-+u76oB43nOHrF4DDWRLWDCtci7f3QJoEBigemIdIeTi1ODqjx6Tad9NCVnPRwewWlKkVab5PlK8DCtPTyX7S8g==", "dev": true }, + "node_modules/@amplitude/analytics-connector": { + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/@amplitude/analytics-connector/-/analytics-connector-1.4.8.tgz", + "integrity": "sha512-dFW7c7Wb6Ng7vbmzwbaXZSpqfBx37ukamJV9ErFYYS8vGZK/Hkbt3M7fZHBI4WFU6CCwakr2ZXPme11uGPYWkQ==" + }, "node_modules/@amplitude/types": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@amplitude/types/-/types-1.8.0.tgz", - "integrity": "sha512-Jomb5ypMM4fuS+4LThY33mbiLdNgDa3KAypH7bRmTqGnXKd3h2olM0HkHrQtAAbl2tln/hd9IPiSKjRVqoQ3fQ==", + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/@amplitude/types/-/types-1.10.2.tgz", + "integrity": "sha512-I8qenRI7uU6wKNb9LiZrAosSHVoNHziXouKY81CrqxH9xhVTEIJFXeuCV0hbtBr0Al/8ejnGjQRx+S2SvU/pPg==", "engines": { "node": ">=10" } }, "node_modules/@amplitude/ua-parser-js": { - "version": "0.7.24", - "resolved": "https://registry.npmjs.org/@amplitude/ua-parser-js/-/ua-parser-js-0.7.24.tgz", - "integrity": "sha512-VbQuJymJ20WEw0HtI2np7EdC3NJGUWi8+Xdbc7uk8WfMIF308T0howpzkQ3JFMN7ejnrcSM/OyNGveeE3TP3TA==", + "version": "0.7.33", + "resolved": "https://registry.npmjs.org/@amplitude/ua-parser-js/-/ua-parser-js-0.7.33.tgz", + "integrity": "sha512-wKEtVR4vXuPT9cVEIJkYWnlF++Gx3BdLatPBM+SZ1ztVIvnhdGBZR/mn9x/PzyrMcRlZmyi6L56I2J3doVBnjA==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/ua-parser-js" + }, + { + "type": "paypal", + "url": "https://paypal.me/faisalman" + } + ], "engines": { "node": "*" } }, "node_modules/@amplitude/utils": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@amplitude/utils/-/utils-1.8.0.tgz", - "integrity": "sha512-Hl9U2jc8Xp/2/c3QcCQ2ulKzYrdd6DISSHp6Un7v/lW9GdCXwk8aZU8B0MEvmBaAkvMnzJqJsIKqfVOU9iT0Gg==", + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/@amplitude/utils/-/utils-1.10.2.tgz", + "integrity": "sha512-tVsHXu61jITEtRjB7NugQ5cVDd4QDzne8T3ifmZye7TiJeUfVRvqe44gDtf55A+7VqhDhyEIIXTA1iVcDGqlEw==", "dependencies": { - "@amplitude/types": "^1.8.0", - "tslib": "^1.9.3" + "@amplitude/types": "^1.10.2", + "tslib": "^2.0.0" }, "engines": { "node": ">=10" } }, - "node_modules/@amplitude/utils/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, "node_modules/@ardatan/sync-fetch": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/@ardatan/sync-fetch/-/sync-fetch-0.0.1.tgz", @@ -133,12 +143,12 @@ } }, "node_modules/@axe-core/react": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@axe-core/react/-/react-4.2.2.tgz", - "integrity": "sha512-qmh/1DGFrN9G7NqTNARA4aT1k37mUfyb5syWkEQN7iqo77VoO2GCsvVyfLystr8uwJYYihW17+Lgl0UTiz8q2Q==", + "version": "4.7.3", + "resolved": "https://registry.npmjs.org/@axe-core/react/-/react-4.7.3.tgz", + "integrity": "sha512-dN2ZqUdaWJNmxEuedJKkAZBBQWs1qj/Aeby2x8ZKMhhcDBGkcT42MRlaOMWTvPG/YosP6RaGi160eFFZ3TiUMg==", "dev": true, "dependencies": { - "axe-core": "^4.2.3", + "axe-core": "^4.7.0", "requestidlecallback": "^0.3.0" } }, @@ -1056,11 +1066,11 @@ } }, "node_modules/@babel/runtime": { - "version": "7.15.3", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.15.3.tgz", - "integrity": "sha512-OvwMLqNXkCXSz1kSm58sEsNuhqOx/fKpnUnKnFB5v8uDda5bLNEHNgKPvhDN6IU0LDcnHQ90LlJ0Q6jnyBSIBA==", + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.6.tgz", + "integrity": "sha512-wDb5pWm4WDdF6LFUde3Jl8WzPA+3ZbxYqkC6xAXuD3irdEHN1k0NfTRrJD8ZD378SJ61miMLCqIOXYhd8x+AJQ==", "dependencies": { - "regenerator-runtime": "^0.13.4" + "regenerator-runtime": "^0.13.11" }, "engines": { "node": ">=6.9.0" @@ -1226,13 +1236,19 @@ } }, "node_modules/@faker-js/faker": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/@faker-js/faker/-/faker-7.6.0.tgz", - "integrity": "sha512-XK6BTq1NDMo9Xqw/YkYyGjSsg44fbNwYRx7QK2CuoQgyy+f1rrTDHoExVM5PsyXCtfl2vs2vVJ0MN0yN6LppRw==", + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@faker-js/faker/-/faker-8.0.2.tgz", + "integrity": "sha512-Uo3pGspElQW91PCvKSIAXoEgAUlRnH29sX2/p89kg7sP1m2PzCufHINd0FhTXQf6DYGiUlVncdSPa2F9wxed2A==", "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/fakerjs" + } + ], "engines": { - "node": ">=14.0.0", - "npm": ">=6.0.0" + "node": "^14.17.0 || ^16.13.0 || >=18.0.0", + "npm": ">=6.14.13" } }, "node_modules/@floating-ui/core": { @@ -3327,9 +3343,9 @@ } }, "node_modules/@navikt/dp-auth": { - "version": "0.3.0", - "resolved": "https://npm.pkg.github.com/download/@navikt/dp-auth/0.3.0/51040849cdd47b6143d261fc40ca4ee6589cd41e", - "integrity": "sha512-0cGo9FXl8FD360xDnNc6OK9YimmkN5rVZUEO/1ZZ76KxUeh693uKIILBkNp/Ercjvlf5yU3fOeony/eTTy6ICw==", + "version": "0.3.3", + "resolved": "https://npm.pkg.github.com/download/@navikt/dp-auth/0.3.3/a82bc885f5b001acc94d41bc0138fe44d695689f", + "integrity": "sha512-bjyMxKA2NL+/VNxQzSCCwJG58BX6BrbfUUXnHFjfqFTahHCByhyhToSnXo7ngLfJ22VpHtycJjTW/lbJ4e9paw==", "license": "MIT", "dependencies": { "jose": "^4.9.1", @@ -3339,7 +3355,7 @@ "react": "^18.2.0" }, "peerDependencies": { - "next": "^12.0.0" + "next": "^12.0.0 || ^13.0.0" } }, "node_modules/@navikt/ds-css": { @@ -3863,6 +3879,18 @@ "react": "^16.8 || ^17.0 || ^18.0" } }, + "node_modules/@navikt/ds-react/node_modules/date-fns": { + "version": "2.29.3", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.29.3.tgz", + "integrity": "sha512-dDCnyH2WnnKusqvZZ6+jA1O51Ibt8ZMRNkDZdyAyK4YfbDwa/cEmuztzG5pk6hqlp9aSBPYcjOlktquahGwGeA==", + "engines": { + "node": ">=0.11" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/date-fns" + } + }, "node_modules/@navikt/ds-react/node_modules/react-day-picker": { "version": "8.3.4", "resolved": "https://registry.npmjs.org/react-day-picker/-/react-day-picker-8.3.4.tgz", @@ -4041,9 +4069,9 @@ } }, "node_modules/@navikt/next-logger": { - "version": "1.18.0", - "resolved": "https://npm.pkg.github.com/download/@navikt/next-logger/1.18.0/ab8fe1c0ca5773104825c5ae8ba24c04c572bc2c", - "integrity": "sha512-SlMvleNU+yIaBLm/lsQJA8nhWmocTN+knc4Oaip6gwK5XFo8Etf655iKH/agF4bqQ8CNAaoiJ1wCCQNzOS9dHw==", + "version": "1.19.0", + "resolved": "https://npm.pkg.github.com/download/@navikt/next-logger/1.19.0/4d5b48fe77dedbb63b03b49f9e8b70a0a2580fcd", + "integrity": "sha512-4VD9YLooT8A0Z5z1fHHg1slZH0El0AvzTo2oqwolbCRcICieJxz4hx/Lz4dln3717H1AoQ9Z43up1GZwD8VIZg==", "peerDependencies": { "next": "12 || 13", "pino": "8" @@ -4396,9 +4424,9 @@ } }, "node_modules/@portabletext/types": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@portabletext/types/-/types-2.0.0.tgz", - "integrity": "sha512-AjbCPt9x9U0XFwLuVnIxweBrDAlKKcPJRVkpckjMk77VKEQoYvX2dITf5QtQf1TlLIx8zHJFtMcLmiqDJiGuLg==", + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@portabletext/types/-/types-2.0.5.tgz", + "integrity": "sha512-AceKp/Y6UIzvUe/T675oPKlO2Dnt1BVIiUpwhcplPzLeYqaYaWYvb7ricVyWj7j0rukYRgBRQdrTBvgo9E1D+g==", "engines": { "node": "^14.13.1 || >=16.0.0 || >=18.0.0" } @@ -4895,9 +4923,9 @@ } }, "node_modules/@testing-library/jest-dom": { - "version": "5.16.5", - "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-5.16.5.tgz", - "integrity": "sha512-N5ixQ2qKpi5OLYfwQmUb/5mSV9LneAcaUfp32pn4yCnpb8r/Yz0pXFPck21dIicKmi+ta5WRAknkZCfA8refMA==", + "version": "5.17.0", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-5.17.0.tgz", + "integrity": "sha512-ynmNeT7asXyH3aSVv4vvX4Rb+0qjOhdNHnO/3vuZNqPmhDpV/+rCSGwQ7bLcmU2cJ4dvoheIO85LQj0IbJHEtg==", "dev": true, "dependencies": { "@adobe/css-tools": "^4.0.1", @@ -5059,9 +5087,9 @@ "dev": true }, "node_modules/@types/amplitude-js": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/@types/amplitude-js/-/amplitude-js-8.0.1.tgz", - "integrity": "sha512-JrVJ/G8bXEz/b12xKOsSWbQ4C4i4AlPalQprJBCXhUG0loWtPNfV/8Uj53mL0OHa3hfI5javocIsgF33k6cOVQ==" + "version": "8.16.2", + "resolved": "https://registry.npmjs.org/@types/amplitude-js/-/amplitude-js-8.16.2.tgz", + "integrity": "sha512-a+tb/CEQOlrHRvEvAuYNOcoUy1POERANnAhfKgiTmsy0eACj3eukGP0ucA9t115QOPzVUhbnUfZqtyHp99IZyA==" }, "node_modules/@types/aria-query": { "version": "4.2.2", @@ -5169,9 +5197,9 @@ } }, "node_modules/@types/jest-axe": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/@types/jest-axe/-/jest-axe-3.5.2.tgz", - "integrity": "sha512-5esefQ7hTfZ7i5H2ra8n4oiHeI0Uo7ZUI+71R4qosm+ZLabmlHj6sf20KPcM8bgz9xJV4oUwzA+koE/1lkupQQ==", + "version": "3.5.5", + "resolved": "https://registry.npmjs.org/@types/jest-axe/-/jest-axe-3.5.5.tgz", + "integrity": "sha512-b8WDIdoeKtr/JDJ2+QjFXMuS8UhfdMA6+15Z5KjjIie3jQrSXD9KZWMSQxc0nPtx7L9rIFKdiDpQk+m7s4a/8w==", "dev": true, "dependencies": { "@types/jest": "*", @@ -5372,9 +5400,9 @@ "integrity": "sha512-rZ5drC/jWjrArrS8BR6SIr4cWpW09RNTYt9AMZo3Jwwif+iacXAqgVjm0B0Bv/S1jhDXKHqRVNCbACkJ89RAnQ==" }, "node_modules/@types/react": { - "version": "18.0.26", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.0.26.tgz", - "integrity": "sha512-hCR3PJQsAIXyxhTNSiDFY//LhnMZWpNNr5etoCqx/iUfGc5gXWtQR2Phl908jVR6uPXacojQWTg4qRpkxTuGug==", + "version": "18.2.18", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.18.tgz", + "integrity": "sha512-da4NTSeBv/P34xoZPhtcLkmZuJ+oYaCxHmyHzwaDQo9RQPBeXV+06gEk2FpqEcsX9XrnNLvRpVh6bdavDSjtiQ==", "dependencies": { "@types/prop-types": "*", "@types/scheduler": "*", @@ -5772,14 +5800,16 @@ } }, "node_modules/amplitude-js": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/amplitude-js/-/amplitude-js-8.4.0.tgz", - "integrity": "sha512-XGF1MGovAq2JrEN2P7ax2lN3qoyQ1pFNAfx/p8pvfdBpo8UP3QCmy3QMeONJ+YPrWaq+KgcPWDTNnJL6Pg3abA==", + "version": "8.21.9", + "resolved": "https://registry.npmjs.org/amplitude-js/-/amplitude-js-8.21.9.tgz", + "integrity": "sha512-d0jJH00wbXu7sxKtVwkdSXtVffjqdUrxuACKlnzP7jU5qt9wriXXMgHifdH5Oq+buKmyF8wKL9S02gAykysURA==", "dependencies": { - "@amplitude/ua-parser-js": "0.7.24", - "@amplitude/utils": "^1.0.5", - "blueimp-md5": "^2.10.0", - "query-string": "5" + "@amplitude/analytics-connector": "^1.4.6", + "@amplitude/ua-parser-js": "0.7.33", + "@amplitude/utils": "^1.10.2", + "@babel/runtime": "^7.21.0", + "blueimp-md5": "^2.19.0", + "query-string": "8.1.0" } }, "node_modules/ansi-colors": { @@ -6032,9 +6062,9 @@ } }, "node_modules/axe-core": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.3.2.tgz", - "integrity": "sha512-5LMaDRWm8ZFPAEdzTYmgjjEdj1YnQcpfrVajO/sn/LhbpGp0Y0H64c2hLZI1gRMxfA+w1S71Uc/nHaOXgcCvGg==", + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.7.2.tgz", + "integrity": "sha512-zIURGIS1E1Q4pcrMjp+nnEh+16G56eG/MUllJH8yEvw7asDo7Ac9uhC9KIH5jzpITueEZolfYglnCGIuSBz39g==", "dev": true, "engines": { "node": ">=4" @@ -6316,9 +6346,9 @@ } }, "node_modules/blueimp-md5": { - "version": "2.18.0", - "resolved": "https://registry.npmjs.org/blueimp-md5/-/blueimp-md5-2.18.0.tgz", - "integrity": "sha512-vE52okJvzsVWhcgUHOv+69OG3Mdg151xyn41aVQN/5W5S+S43qZhxECtYLAEHMSFWX6Mv5IZrzj3T5+JqXfj5Q==" + "version": "2.19.0", + "resolved": "https://registry.npmjs.org/blueimp-md5/-/blueimp-md5-2.19.0.tgz", + "integrity": "sha512-DRQrD6gJyy8FbiE4s+bDoXS9hiW3Vbx5uCdwvcCf3zLHL+Iv7LtGHLpr+GZV8rHG8tK766FGYBwRbu8pELTt+w==" }, "node_modules/brace-expansion": { "version": "1.1.11", @@ -6884,6 +6914,38 @@ "upper-case": "^2.0.2" } }, + "node_modules/content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "dev": true, + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-disposition/node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, "node_modules/convert-source-map": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", @@ -7048,9 +7110,12 @@ "dev": true }, "node_modules/date-fns": { - "version": "2.29.3", - "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.29.3.tgz", - "integrity": "sha512-dDCnyH2WnnKusqvZZ6+jA1O51Ibt8ZMRNkDZdyAyK4YfbDwa/cEmuztzG5pk6hqlp9aSBPYcjOlktquahGwGeA==", + "version": "2.30.0", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz", + "integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==", + "dependencies": { + "@babel/runtime": "^7.21.0" + }, "engines": { "node": ">=0.11" }, @@ -7105,11 +7170,11 @@ "integrity": "sha512-V0pfhfr8suzyPGOx3nmq4aHqabehUZn6Ch9kyFpV79TGDTWFmHqUqXdabR7QHqxzrYolF4+tVmJhUG4OURg5dQ==" }, "node_modules/decode-uri-component": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", - "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==", + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.4.1.tgz", + "integrity": "sha512-+8VxcR21HhTy8nOt6jf20w0c9CADrw1O8d+VZ/YzzCt4bJ3uBjw+D1q2osAB8RnpwwaeYBxy0HyKQxD5JBMuuQ==", "engines": { - "node": ">=0.10" + "node": ">=14.16" } }, "node_modules/decompress-response": { @@ -8796,6 +8861,17 @@ "node": ">=8" } }, + "node_modules/filter-obj": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/filter-obj/-/filter-obj-5.1.0.tgz", + "integrity": "sha512-qWeTREPoT7I0bifpPUXtxkZJ1XJzxWtfoWWkdVGqa+eCr3SHW/Ocp89o8vLvbUuQnadybJpjOKu4V+RwO6sGng==", + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/find-up": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", @@ -13730,12 +13806,13 @@ "dev": true }, "node_modules/node-mocks-http": { - "version": "1.10.1", - "resolved": "https://registry.npmjs.org/node-mocks-http/-/node-mocks-http-1.10.1.tgz", - "integrity": "sha512-/Nz83kiJ3z+vGqxmlDyv8+L1CJno+gH23DzG3oPH9dBSfMYa5IFVwPgZpXCB2kdiiIu/HoDpZ2BuLqQs7qjFLQ==", + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/node-mocks-http/-/node-mocks-http-1.12.2.tgz", + "integrity": "sha512-xhWwC0dh35R9rf0j3bRZXuISXdHxxtMx0ywZQBwjrg3yl7KpRETzogfeCamUIjltpn0Fxvs/ZhGJul1vPLrdJQ==", "dev": true, "dependencies": { "accepts": "^1.3.7", + "content-disposition": "^0.5.3", "depd": "^1.1.0", "fresh": "^0.5.2", "merge-descriptors": "^1.0.1", @@ -14384,9 +14461,9 @@ } }, "node_modules/pdfobject": { - "version": "2.2.6", - "resolved": "https://registry.npmjs.org/pdfobject/-/pdfobject-2.2.6.tgz", - "integrity": "sha512-3B8re2yWzBcI9Xa+QcRptw0ag5NQYyVHVxP1yEWW7aCm6ujvZa8z7/06uz/zZqsI2TDLzsED3yS4JEMwQdCGEg==" + "version": "2.2.12", + "resolved": "https://registry.npmjs.org/pdfobject/-/pdfobject-2.2.12.tgz", + "integrity": "sha512-D0oyD/sj8j82AMaJhoyMaY1aD5TkbpU3FbJC6w9/cpJlZRpYHqAkutXw1Ca/FKjYPZmTAu58uGIfgOEaDlbY8A==" }, "node_modules/picocolors": { "version": "1.0.0", @@ -14415,9 +14492,9 @@ } }, "node_modules/pino": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/pino/-/pino-8.11.0.tgz", - "integrity": "sha512-Z2eKSvlrl2rH8p5eveNUnTdd4AjJk8tAsLkHYZQKGHP4WTh2Gi1cOSOs3eWPqaj+niS3gj4UkoreoaWgF3ZWYg==", + "version": "8.14.2", + "resolved": "https://registry.npmjs.org/pino/-/pino-8.14.2.tgz", + "integrity": "sha512-zKu9aWeSWTy1JgvxIpZveJKKsAr4+6uNMZ0Vf0KRwzl/UNZA3XjHiIl/0WwqLMkDwuHuDkT5xAgPA2jpKq4whA==", "dependencies": { "atomic-sleep": "^1.0.0", "fast-redact": "^3.1.1", @@ -14482,9 +14559,9 @@ } }, "node_modules/pino-pretty": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/pino-pretty/-/pino-pretty-10.0.0.tgz", - "integrity": "sha512-zKFjYXBzLaLTEAN1ayKpHXtL5UeRQC7R3lvhKe7fWs7hIVEjKGG/qIXwQt9HmeUp71ogUd/YcW+LmMwRp4KT6Q==", + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/pino-pretty/-/pino-pretty-10.2.0.tgz", + "integrity": "sha512-tRvpyEmGtc2D+Lr3FulIZ+R1baggQ4S3xD2Ar93KixFEDx6SEAUP3W5aYuEw1C73d6ROrNcB2IXLteW8itlwhA==", "dev": true, "dependencies": { "colorette": "^2.0.7", @@ -14801,9 +14878,9 @@ "dev": true }, "node_modules/pretty-quick": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/pretty-quick/-/pretty-quick-3.1.1.tgz", - "integrity": "sha512-ZYLGiMoV2jcaas3vTJrLvKAYsxDoXQBUn8OSTxkl67Fyov9lyXivJTl0+2WVh+y6EovGcw7Lm5ThYpH+Sh3XxQ==", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/pretty-quick/-/pretty-quick-3.1.3.tgz", + "integrity": "sha512-kOCi2FJabvuh1as9enxYmrnBC6tVMoVOenMaBqRfsvBHB0cbpYHjdQEpSglpASDFEXVwplpcGR4CLEaisYAFcA==", "dev": true, "dependencies": { "chalk": "^3.0.0", @@ -14994,9 +15071,9 @@ } }, "node_modules/prom-client": { - "version": "14.1.0", - "resolved": "https://registry.npmjs.org/prom-client/-/prom-client-14.1.0.tgz", - "integrity": "sha512-iFWCchQmi4170omLpFXbzz62SQTmPhtBL35v0qGEVRHKcqIeiexaoYeP0vfZTujxEq3tA87iqOdRbC9svS1B9A==", + "version": "14.2.0", + "resolved": "https://registry.npmjs.org/prom-client/-/prom-client-14.2.0.tgz", + "integrity": "sha512-sF308EhTenb/pDRPakm+WgiN+VdM/T1RaHj1x+MvAuT8UiQP8JmOEbxVqtkbfR4LrvOg5n7ic01kRBDGXjYikA==", "dependencies": { "tdigest": "^0.1.1" }, @@ -15044,13 +15121,13 @@ } }, "node_modules/prop-types": { - "version": "15.7.2", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz", - "integrity": "sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==", + "version": "15.8.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", + "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", "dependencies": { "loose-envify": "^1.4.0", "object-assign": "^4.1.1", - "react-is": "^16.8.1" + "react-is": "^16.13.1" } }, "node_modules/proxy-from-env": { @@ -15092,16 +15169,19 @@ } }, "node_modules/query-string": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/query-string/-/query-string-5.1.1.tgz", - "integrity": "sha512-gjWOsm2SoGlgLEdAGt7a6slVOk9mGiXmPFMqrEhLQ68rhQuBnpfs3+EmlvqKyxnCo9/PPlF+9MtY02S1aFg+Jw==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/query-string/-/query-string-8.1.0.tgz", + "integrity": "sha512-BFQeWxJOZxZGix7y+SByG3F36dA0AbTy9o6pSmKFcFz7DAj0re9Frkty3saBn3nHo3D0oZJ/+rx3r8H8r8Jbpw==", "dependencies": { - "decode-uri-component": "^0.2.0", - "object-assign": "^4.1.0", - "strict-uri-encode": "^1.0.0" + "decode-uri-component": "^0.4.1", + "filter-obj": "^5.1.0", + "split-on-first": "^3.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/querystringify": { @@ -15343,9 +15423,9 @@ } }, "node_modules/regenerator-runtime": { - "version": "0.13.9", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", - "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==" + "version": "0.13.11", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", + "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==" }, "node_modules/regexp.prototype.flags": { "version": "1.4.3", @@ -15949,6 +16029,17 @@ "resolved": "https://registry.npmjs.org/speedometer/-/speedometer-1.0.0.tgz", "integrity": "sha1-zWccsGdSwivKM3Di8zREC+T8YuI=" }, + "node_modules/split-on-first": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/split-on-first/-/split-on-first-3.0.0.tgz", + "integrity": "sha512-qxQJTx2ryR0Dw0ITYyekNQWpz6f8dGd7vffGNflQQ3Iqj9NJ6qiZ7ELpZsJ/QBhIVAiDfXdag3+Gp8RvWa62AA==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/split2": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", @@ -16022,14 +16113,6 @@ "events": "^3.3.0" } }, - "node_modules/strict-uri-encode": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz", - "integrity": "sha1-J5siXfHVgrH1TmWt3UNS4Y+qBxM=", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/string_decoder": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", @@ -16292,15 +16375,12 @@ } }, "node_modules/swr": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/swr/-/swr-2.0.1.tgz", - "integrity": "sha512-6z4FpS9dKAay7axedlStsPahEw25nuMlVh4GHkuPpGptbmEEP8v/+kr0GkAE/7ErUs25U2VFOnZQz3AWfkmXdw==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/swr/-/swr-2.2.0.tgz", + "integrity": "sha512-AjqHOv2lAhkuUdIiBu9xbuettzAzWXmCEcLONNKJRba87WAefz8Ca9d6ds/SzrPc235n1IxWYdhJ2zF3MNUaoQ==", "dependencies": { "use-sync-external-store": "^1.2.0" }, - "engines": { - "pnpm": "7" - }, "peerDependencies": { "react": "^16.11.0 || ^17.0.0 || ^18.0.0" } @@ -17524,30 +17604,28 @@ "integrity": "sha512-+u76oB43nOHrF4DDWRLWDCtci7f3QJoEBigemIdIeTi1ODqjx6Tad9NCVnPRwewWlKkVab5PlK8DCtPTyX7S8g==", "dev": true }, + "@amplitude/analytics-connector": { + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/@amplitude/analytics-connector/-/analytics-connector-1.4.8.tgz", + "integrity": "sha512-dFW7c7Wb6Ng7vbmzwbaXZSpqfBx37ukamJV9ErFYYS8vGZK/Hkbt3M7fZHBI4WFU6CCwakr2ZXPme11uGPYWkQ==" + }, "@amplitude/types": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@amplitude/types/-/types-1.8.0.tgz", - "integrity": "sha512-Jomb5ypMM4fuS+4LThY33mbiLdNgDa3KAypH7bRmTqGnXKd3h2olM0HkHrQtAAbl2tln/hd9IPiSKjRVqoQ3fQ==" + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/@amplitude/types/-/types-1.10.2.tgz", + "integrity": "sha512-I8qenRI7uU6wKNb9LiZrAosSHVoNHziXouKY81CrqxH9xhVTEIJFXeuCV0hbtBr0Al/8ejnGjQRx+S2SvU/pPg==" }, "@amplitude/ua-parser-js": { - "version": "0.7.24", - "resolved": "https://registry.npmjs.org/@amplitude/ua-parser-js/-/ua-parser-js-0.7.24.tgz", - "integrity": "sha512-VbQuJymJ20WEw0HtI2np7EdC3NJGUWi8+Xdbc7uk8WfMIF308T0howpzkQ3JFMN7ejnrcSM/OyNGveeE3TP3TA==" + "version": "0.7.33", + "resolved": "https://registry.npmjs.org/@amplitude/ua-parser-js/-/ua-parser-js-0.7.33.tgz", + "integrity": "sha512-wKEtVR4vXuPT9cVEIJkYWnlF++Gx3BdLatPBM+SZ1ztVIvnhdGBZR/mn9x/PzyrMcRlZmyi6L56I2J3doVBnjA==" }, "@amplitude/utils": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@amplitude/utils/-/utils-1.8.0.tgz", - "integrity": "sha512-Hl9U2jc8Xp/2/c3QcCQ2ulKzYrdd6DISSHp6Un7v/lW9GdCXwk8aZU8B0MEvmBaAkvMnzJqJsIKqfVOU9iT0Gg==", + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/@amplitude/utils/-/utils-1.10.2.tgz", + "integrity": "sha512-tVsHXu61jITEtRjB7NugQ5cVDd4QDzne8T3ifmZye7TiJeUfVRvqe44gDtf55A+7VqhDhyEIIXTA1iVcDGqlEw==", "requires": { - "@amplitude/types": "^1.8.0", - "tslib": "^1.9.3" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - } + "@amplitude/types": "^1.10.2", + "tslib": "^2.0.0" } }, "@ardatan/sync-fetch": { @@ -17560,12 +17638,12 @@ } }, "@axe-core/react": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@axe-core/react/-/react-4.2.2.tgz", - "integrity": "sha512-qmh/1DGFrN9G7NqTNARA4aT1k37mUfyb5syWkEQN7iqo77VoO2GCsvVyfLystr8uwJYYihW17+Lgl0UTiz8q2Q==", + "version": "4.7.3", + "resolved": "https://registry.npmjs.org/@axe-core/react/-/react-4.7.3.tgz", + "integrity": "sha512-dN2ZqUdaWJNmxEuedJKkAZBBQWs1qj/Aeby2x8ZKMhhcDBGkcT42MRlaOMWTvPG/YosP6RaGi160eFFZ3TiUMg==", "dev": true, "requires": { - "axe-core": "^4.2.3", + "axe-core": "^4.7.0", "requestidlecallback": "^0.3.0" } }, @@ -18202,11 +18280,11 @@ } }, "@babel/runtime": { - "version": "7.15.3", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.15.3.tgz", - "integrity": "sha512-OvwMLqNXkCXSz1kSm58sEsNuhqOx/fKpnUnKnFB5v8uDda5bLNEHNgKPvhDN6IU0LDcnHQ90LlJ0Q6jnyBSIBA==", + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.6.tgz", + "integrity": "sha512-wDb5pWm4WDdF6LFUde3Jl8WzPA+3ZbxYqkC6xAXuD3irdEHN1k0NfTRrJD8ZD378SJ61miMLCqIOXYhd8x+AJQ==", "requires": { - "regenerator-runtime": "^0.13.4" + "regenerator-runtime": "^0.13.11" } }, "@babel/runtime-corejs3": { @@ -18340,9 +18418,9 @@ } }, "@faker-js/faker": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/@faker-js/faker/-/faker-7.6.0.tgz", - "integrity": "sha512-XK6BTq1NDMo9Xqw/YkYyGjSsg44fbNwYRx7QK2CuoQgyy+f1rrTDHoExVM5PsyXCtfl2vs2vVJ0MN0yN6LppRw==", + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@faker-js/faker/-/faker-8.0.2.tgz", + "integrity": "sha512-Uo3pGspElQW91PCvKSIAXoEgAUlRnH29sX2/p89kg7sP1m2PzCufHINd0FhTXQf6DYGiUlVncdSPa2F9wxed2A==", "dev": true }, "@floating-ui/core": { @@ -20043,9 +20121,9 @@ } }, "@navikt/dp-auth": { - "version": "0.3.0", - "resolved": "https://npm.pkg.github.com/download/@navikt/dp-auth/0.3.0/51040849cdd47b6143d261fc40ca4ee6589cd41e", - "integrity": "sha512-0cGo9FXl8FD360xDnNc6OK9YimmkN5rVZUEO/1ZZ76KxUeh693uKIILBkNp/Ercjvlf5yU3fOeony/eTTy6ICw==", + "version": "0.3.3", + "resolved": "https://npm.pkg.github.com/download/@navikt/dp-auth/0.3.3/a82bc885f5b001acc94d41bc0138fe44d695689f", + "integrity": "sha512-bjyMxKA2NL+/VNxQzSCCwJG58BX6BrbfUUXnHFjfqFTahHCByhyhToSnXo7ngLfJ22VpHtycJjTW/lbJ4e9paw==", "requires": { "jose": "^4.9.1", "lodash": "^4.17.21", @@ -20465,6 +20543,11 @@ } } }, + "date-fns": { + "version": "2.29.3", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.29.3.tgz", + "integrity": "sha512-dDCnyH2WnnKusqvZZ6+jA1O51Ibt8ZMRNkDZdyAyK4YfbDwa/cEmuztzG5pk6hqlp9aSBPYcjOlktquahGwGeA==" + }, "react-day-picker": { "version": "8.3.4", "resolved": "https://registry.npmjs.org/react-day-picker/-/react-day-picker-8.3.4.tgz", @@ -20597,9 +20680,9 @@ } }, "@navikt/next-logger": { - "version": "1.18.0", - "resolved": "https://npm.pkg.github.com/download/@navikt/next-logger/1.18.0/ab8fe1c0ca5773104825c5ae8ba24c04c572bc2c", - "integrity": "sha512-SlMvleNU+yIaBLm/lsQJA8nhWmocTN+knc4Oaip6gwK5XFo8Etf655iKH/agF4bqQ8CNAaoiJ1wCCQNzOS9dHw==", + "version": "1.19.0", + "resolved": "https://npm.pkg.github.com/download/@navikt/next-logger/1.19.0/4d5b48fe77dedbb63b03b49f9e8b70a0a2580fcd", + "integrity": "sha512-4VD9YLooT8A0Z5z1fHHg1slZH0El0AvzTo2oqwolbCRcICieJxz4hx/Lz4dln3717H1AoQ9Z43up1GZwD8VIZg==", "requires": {} }, "@next/env": { @@ -20810,9 +20893,9 @@ } }, "@portabletext/types": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@portabletext/types/-/types-2.0.0.tgz", - "integrity": "sha512-AjbCPt9x9U0XFwLuVnIxweBrDAlKKcPJRVkpckjMk77VKEQoYvX2dITf5QtQf1TlLIx8zHJFtMcLmiqDJiGuLg==" + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@portabletext/types/-/types-2.0.5.tgz", + "integrity": "sha512-AceKp/Y6UIzvUe/T675oPKlO2Dnt1BVIiUpwhcplPzLeYqaYaWYvb7ricVyWj7j0rukYRgBRQdrTBvgo9E1D+g==" }, "@radix-ui/primitive": { "version": "1.0.0", @@ -21240,9 +21323,9 @@ } }, "@testing-library/jest-dom": { - "version": "5.16.5", - "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-5.16.5.tgz", - "integrity": "sha512-N5ixQ2qKpi5OLYfwQmUb/5mSV9LneAcaUfp32pn4yCnpb8r/Yz0pXFPck21dIicKmi+ta5WRAknkZCfA8refMA==", + "version": "5.17.0", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-5.17.0.tgz", + "integrity": "sha512-ynmNeT7asXyH3aSVv4vvX4Rb+0qjOhdNHnO/3vuZNqPmhDpV/+rCSGwQ7bLcmU2cJ4dvoheIO85LQj0IbJHEtg==", "dev": true, "requires": { "@adobe/css-tools": "^4.0.1", @@ -21366,9 +21449,9 @@ "dev": true }, "@types/amplitude-js": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/@types/amplitude-js/-/amplitude-js-8.0.1.tgz", - "integrity": "sha512-JrVJ/G8bXEz/b12xKOsSWbQ4C4i4AlPalQprJBCXhUG0loWtPNfV/8Uj53mL0OHa3hfI5javocIsgF33k6cOVQ==" + "version": "8.16.2", + "resolved": "https://registry.npmjs.org/@types/amplitude-js/-/amplitude-js-8.16.2.tgz", + "integrity": "sha512-a+tb/CEQOlrHRvEvAuYNOcoUy1POERANnAhfKgiTmsy0eACj3eukGP0ucA9t115QOPzVUhbnUfZqtyHp99IZyA==" }, "@types/aria-query": { "version": "4.2.2", @@ -21567,9 +21650,9 @@ } }, "@types/jest-axe": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/@types/jest-axe/-/jest-axe-3.5.2.tgz", - "integrity": "sha512-5esefQ7hTfZ7i5H2ra8n4oiHeI0Uo7ZUI+71R4qosm+ZLabmlHj6sf20KPcM8bgz9xJV4oUwzA+koE/1lkupQQ==", + "version": "3.5.5", + "resolved": "https://registry.npmjs.org/@types/jest-axe/-/jest-axe-3.5.5.tgz", + "integrity": "sha512-b8WDIdoeKtr/JDJ2+QjFXMuS8UhfdMA6+15Z5KjjIie3jQrSXD9KZWMSQxc0nPtx7L9rIFKdiDpQk+m7s4a/8w==", "dev": true, "requires": { "@types/jest": "*", @@ -21653,9 +21736,9 @@ "integrity": "sha512-rZ5drC/jWjrArrS8BR6SIr4cWpW09RNTYt9AMZo3Jwwif+iacXAqgVjm0B0Bv/S1jhDXKHqRVNCbACkJ89RAnQ==" }, "@types/react": { - "version": "18.0.26", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.0.26.tgz", - "integrity": "sha512-hCR3PJQsAIXyxhTNSiDFY//LhnMZWpNNr5etoCqx/iUfGc5gXWtQR2Phl908jVR6uPXacojQWTg4qRpkxTuGug==", + "version": "18.2.18", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.18.tgz", + "integrity": "sha512-da4NTSeBv/P34xoZPhtcLkmZuJ+oYaCxHmyHzwaDQo9RQPBeXV+06gEk2FpqEcsX9XrnNLvRpVh6bdavDSjtiQ==", "requires": { "@types/prop-types": "*", "@types/scheduler": "*", @@ -21937,14 +22020,16 @@ } }, "amplitude-js": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/amplitude-js/-/amplitude-js-8.4.0.tgz", - "integrity": "sha512-XGF1MGovAq2JrEN2P7ax2lN3qoyQ1pFNAfx/p8pvfdBpo8UP3QCmy3QMeONJ+YPrWaq+KgcPWDTNnJL6Pg3abA==", + "version": "8.21.9", + "resolved": "https://registry.npmjs.org/amplitude-js/-/amplitude-js-8.21.9.tgz", + "integrity": "sha512-d0jJH00wbXu7sxKtVwkdSXtVffjqdUrxuACKlnzP7jU5qt9wriXXMgHifdH5Oq+buKmyF8wKL9S02gAykysURA==", "requires": { - "@amplitude/ua-parser-js": "0.7.24", - "@amplitude/utils": "^1.0.5", - "blueimp-md5": "^2.10.0", - "query-string": "5" + "@amplitude/analytics-connector": "^1.4.6", + "@amplitude/ua-parser-js": "0.7.33", + "@amplitude/utils": "^1.10.2", + "@babel/runtime": "^7.21.0", + "blueimp-md5": "^2.19.0", + "query-string": "8.1.0" } }, "ansi-colors": { @@ -22128,9 +22213,9 @@ "dev": true }, "axe-core": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.3.2.tgz", - "integrity": "sha512-5LMaDRWm8ZFPAEdzTYmgjjEdj1YnQcpfrVajO/sn/LhbpGp0Y0H64c2hLZI1gRMxfA+w1S71Uc/nHaOXgcCvGg==", + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.7.2.tgz", + "integrity": "sha512-zIURGIS1E1Q4pcrMjp+nnEh+16G56eG/MUllJH8yEvw7asDo7Ac9uhC9KIH5jzpITueEZolfYglnCGIuSBz39g==", "dev": true }, "axobject-query": { @@ -22348,9 +22433,9 @@ } }, "blueimp-md5": { - "version": "2.18.0", - "resolved": "https://registry.npmjs.org/blueimp-md5/-/blueimp-md5-2.18.0.tgz", - "integrity": "sha512-vE52okJvzsVWhcgUHOv+69OG3Mdg151xyn41aVQN/5W5S+S43qZhxECtYLAEHMSFWX6Mv5IZrzj3T5+JqXfj5Q==" + "version": "2.19.0", + "resolved": "https://registry.npmjs.org/blueimp-md5/-/blueimp-md5-2.19.0.tgz", + "integrity": "sha512-DRQrD6gJyy8FbiE4s+bDoXS9hiW3Vbx5uCdwvcCf3zLHL+Iv7LtGHLpr+GZV8rHG8tK766FGYBwRbu8pELTt+w==" }, "brace-expansion": { "version": "1.1.11", @@ -22788,6 +22873,23 @@ "upper-case": "^2.0.2" } }, + "content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "dev": true, + "requires": { + "safe-buffer": "5.2.1" + }, + "dependencies": { + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true + } + } + }, "convert-source-map": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", @@ -22928,9 +23030,12 @@ "dev": true }, "date-fns": { - "version": "2.29.3", - "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.29.3.tgz", - "integrity": "sha512-dDCnyH2WnnKusqvZZ6+jA1O51Ibt8ZMRNkDZdyAyK4YfbDwa/cEmuztzG5pk6hqlp9aSBPYcjOlktquahGwGeA==" + "version": "2.30.0", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz", + "integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==", + "requires": { + "@babel/runtime": "^7.21.0" + } }, "dateformat": { "version": "4.6.3", @@ -22964,9 +23069,9 @@ "integrity": "sha512-V0pfhfr8suzyPGOx3nmq4aHqabehUZn6Ch9kyFpV79TGDTWFmHqUqXdabR7QHqxzrYolF4+tVmJhUG4OURg5dQ==" }, "decode-uri-component": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", - "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==" + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.4.1.tgz", + "integrity": "sha512-+8VxcR21HhTy8nOt6jf20w0c9CADrw1O8d+VZ/YzzCt4bJ3uBjw+D1q2osAB8RnpwwaeYBxy0HyKQxD5JBMuuQ==" }, "decompress-response": { "version": "3.3.0", @@ -24254,6 +24359,11 @@ "to-regex-range": "^5.0.1" } }, + "filter-obj": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/filter-obj/-/filter-obj-5.1.0.tgz", + "integrity": "sha512-qWeTREPoT7I0bifpPUXtxkZJ1XJzxWtfoWWkdVGqa+eCr3SHW/Ocp89o8vLvbUuQnadybJpjOKu4V+RwO6sGng==" + }, "find-up": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", @@ -27936,12 +28046,13 @@ "dev": true }, "node-mocks-http": { - "version": "1.10.1", - "resolved": "https://registry.npmjs.org/node-mocks-http/-/node-mocks-http-1.10.1.tgz", - "integrity": "sha512-/Nz83kiJ3z+vGqxmlDyv8+L1CJno+gH23DzG3oPH9dBSfMYa5IFVwPgZpXCB2kdiiIu/HoDpZ2BuLqQs7qjFLQ==", + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/node-mocks-http/-/node-mocks-http-1.12.2.tgz", + "integrity": "sha512-xhWwC0dh35R9rf0j3bRZXuISXdHxxtMx0ywZQBwjrg3yl7KpRETzogfeCamUIjltpn0Fxvs/ZhGJul1vPLrdJQ==", "dev": true, "requires": { "accepts": "^1.3.7", + "content-disposition": "^0.5.3", "depd": "^1.1.0", "fresh": "^0.5.2", "merge-descriptors": "^1.0.1", @@ -28425,9 +28536,9 @@ "dev": true }, "pdfobject": { - "version": "2.2.6", - "resolved": "https://registry.npmjs.org/pdfobject/-/pdfobject-2.2.6.tgz", - "integrity": "sha512-3B8re2yWzBcI9Xa+QcRptw0ag5NQYyVHVxP1yEWW7aCm6ujvZa8z7/06uz/zZqsI2TDLzsED3yS4JEMwQdCGEg==" + "version": "2.2.12", + "resolved": "https://registry.npmjs.org/pdfobject/-/pdfobject-2.2.12.tgz", + "integrity": "sha512-D0oyD/sj8j82AMaJhoyMaY1aD5TkbpU3FbJC6w9/cpJlZRpYHqAkutXw1Ca/FKjYPZmTAu58uGIfgOEaDlbY8A==" }, "picocolors": { "version": "1.0.0", @@ -28447,9 +28558,9 @@ "dev": true }, "pino": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/pino/-/pino-8.11.0.tgz", - "integrity": "sha512-Z2eKSvlrl2rH8p5eveNUnTdd4AjJk8tAsLkHYZQKGHP4WTh2Gi1cOSOs3eWPqaj+niS3gj4UkoreoaWgF3ZWYg==", + "version": "8.14.2", + "resolved": "https://registry.npmjs.org/pino/-/pino-8.14.2.tgz", + "integrity": "sha512-zKu9aWeSWTy1JgvxIpZveJKKsAr4+6uNMZ0Vf0KRwzl/UNZA3XjHiIl/0WwqLMkDwuHuDkT5xAgPA2jpKq4whA==", "requires": { "atomic-sleep": "^1.0.0", "fast-redact": "^3.1.1", @@ -28496,9 +28607,9 @@ } }, "pino-pretty": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/pino-pretty/-/pino-pretty-10.0.0.tgz", - "integrity": "sha512-zKFjYXBzLaLTEAN1ayKpHXtL5UeRQC7R3lvhKe7fWs7hIVEjKGG/qIXwQt9HmeUp71ogUd/YcW+LmMwRp4KT6Q==", + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/pino-pretty/-/pino-pretty-10.2.0.tgz", + "integrity": "sha512-tRvpyEmGtc2D+Lr3FulIZ+R1baggQ4S3xD2Ar93KixFEDx6SEAUP3W5aYuEw1C73d6ROrNcB2IXLteW8itlwhA==", "dev": true, "requires": { "colorette": "^2.0.7", @@ -28736,9 +28847,9 @@ } }, "pretty-quick": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/pretty-quick/-/pretty-quick-3.1.1.tgz", - "integrity": "sha512-ZYLGiMoV2jcaas3vTJrLvKAYsxDoXQBUn8OSTxkl67Fyov9lyXivJTl0+2WVh+y6EovGcw7Lm5ThYpH+Sh3XxQ==", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/pretty-quick/-/pretty-quick-3.1.3.tgz", + "integrity": "sha512-kOCi2FJabvuh1as9enxYmrnBC6tVMoVOenMaBqRfsvBHB0cbpYHjdQEpSglpASDFEXVwplpcGR4CLEaisYAFcA==", "dev": true, "requires": { "chalk": "^3.0.0", @@ -28874,9 +28985,9 @@ } }, "prom-client": { - "version": "14.1.0", - "resolved": "https://registry.npmjs.org/prom-client/-/prom-client-14.1.0.tgz", - "integrity": "sha512-iFWCchQmi4170omLpFXbzz62SQTmPhtBL35v0qGEVRHKcqIeiexaoYeP0vfZTujxEq3tA87iqOdRbC9svS1B9A==", + "version": "14.2.0", + "resolved": "https://registry.npmjs.org/prom-client/-/prom-client-14.2.0.tgz", + "integrity": "sha512-sF308EhTenb/pDRPakm+WgiN+VdM/T1RaHj1x+MvAuT8UiQP8JmOEbxVqtkbfR4LrvOg5n7ic01kRBDGXjYikA==", "requires": { "tdigest": "^0.1.1" } @@ -28915,13 +29026,13 @@ } }, "prop-types": { - "version": "15.7.2", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz", - "integrity": "sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==", + "version": "15.8.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", + "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", "requires": { "loose-envify": "^1.4.0", "object-assign": "^4.1.1", - "react-is": "^16.8.1" + "react-is": "^16.13.1" } }, "proxy-from-env": { @@ -28960,13 +29071,13 @@ "dev": true }, "query-string": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/query-string/-/query-string-5.1.1.tgz", - "integrity": "sha512-gjWOsm2SoGlgLEdAGt7a6slVOk9mGiXmPFMqrEhLQ68rhQuBnpfs3+EmlvqKyxnCo9/PPlF+9MtY02S1aFg+Jw==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/query-string/-/query-string-8.1.0.tgz", + "integrity": "sha512-BFQeWxJOZxZGix7y+SByG3F36dA0AbTy9o6pSmKFcFz7DAj0re9Frkty3saBn3nHo3D0oZJ/+rx3r8H8r8Jbpw==", "requires": { - "decode-uri-component": "^0.2.0", - "object-assign": "^4.1.0", - "strict-uri-encode": "^1.0.0" + "decode-uri-component": "^0.4.1", + "filter-obj": "^5.1.0", + "split-on-first": "^3.0.0" } }, "querystringify": { @@ -29157,9 +29268,9 @@ } }, "regenerator-runtime": { - "version": "0.13.9", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", - "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==" + "version": "0.13.11", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", + "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==" }, "regexp.prototype.flags": { "version": "1.4.3", @@ -29632,6 +29743,11 @@ "resolved": "https://registry.npmjs.org/speedometer/-/speedometer-1.0.0.tgz", "integrity": "sha1-zWccsGdSwivKM3Di8zREC+T8YuI=" }, + "split-on-first": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/split-on-first/-/split-on-first-3.0.0.tgz", + "integrity": "sha512-qxQJTx2ryR0Dw0ITYyekNQWpz6f8dGd7vffGNflQQ3Iqj9NJ6qiZ7ELpZsJ/QBhIVAiDfXdag3+Gp8RvWa62AA==" + }, "split2": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", @@ -29692,11 +29808,6 @@ "events": "^3.3.0" } }, - "strict-uri-encode": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz", - "integrity": "sha1-J5siXfHVgrH1TmWt3UNS4Y+qBxM=" - }, "string_decoder": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", @@ -29887,9 +29998,9 @@ } }, "swr": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/swr/-/swr-2.0.1.tgz", - "integrity": "sha512-6z4FpS9dKAay7axedlStsPahEw25nuMlVh4GHkuPpGptbmEEP8v/+kr0GkAE/7ErUs25U2VFOnZQz3AWfkmXdw==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/swr/-/swr-2.2.0.tgz", + "integrity": "sha512-AjqHOv2lAhkuUdIiBu9xbuettzAzWXmCEcLONNKJRba87WAefz8Ca9d6ds/SzrPc235n1IxWYdhJ2zF3MNUaoQ==", "requires": { "use-sync-external-store": "^1.2.0" } diff --git a/package.json b/package.json index 2db8be76..2a0f1963 100644 --- a/package.json +++ b/package.json @@ -17,50 +17,50 @@ "npm": ">=7.0.0" }, "dependencies": { - "@navikt/dp-auth": "^0.3.0", + "@navikt/dp-auth": "^0.3.3", "@navikt/ds-css": "^2.0.11", "@navikt/ds-icons": "^2.0.11", "@navikt/ds-react": "^2.0.11", "@navikt/nav-dekoratoren-moduler": "^1.8.1", - "@navikt/next-logger": "^1.18.0", + "@navikt/next-logger": "^1.19.0", "@portabletext/react": "^1.0.6", - "@portabletext/types": "^2.0.0", + "@portabletext/types": "^2.0.5", "@sanity/block-content-to-react": "^3.0.0", "@sanity/client": "^2.8.0", "@sentry/nextjs": "^6.19.7", - "@types/amplitude-js": "^8.0.0", - "amplitude-js": "^8.3.1", + "@types/amplitude-js": "^8.16.2", + "amplitude-js": "^8.21.9", "classnames": "^2.3.2", - "date-fns": "^2.29.3", + "date-fns": "^2.30.0", "graphql": "^15.5.1", "graphql-request": "^3.4.0", "next": "^12.1.6", "next-compose-plugins": "^2.2.1", "next-intl": "^2.9.1", "next-transpile-modules": "^8.0.0", - "pdfobject": "^2.2.5", - "pino": "^8.11.0", - "prom-client": "^14.1.0", - "prop-types": "^15.7.2", + "pdfobject": "^2.2.12", + "pino": "^8.14.2", + "prom-client": "^14.2.0", + "prop-types": "^15.8.1", "react": "^18.2.0", "react-dom": "^18.2.0", - "swr": "^2.0.1", + "swr": "^2.2.0", "unleash-client": "^3.16.0", "uuid": "^8.3.2" }, "devDependencies": { - "@axe-core/react": "^4.2.2", - "@faker-js/faker": "^7.6.0", + "@axe-core/react": "^4.7.3", + "@faker-js/faker": "^8.0.2", "@graphql-codegen/cli": "^2.16.5", "@graphql-codegen/typescript": "^2.8.0", "@testing-library/dom": "^8.19.1", - "@testing-library/jest-dom": "^5.16.5", + "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.20", - "@types/jest-axe": "^3.5.1", + "@types/jest-axe": "^3.5.5", "@types/node": "^16.4.10", - "@types/react": "^18.0.26", + "@types/react": "^18.2.18", "@typescript-eslint/eslint-plugin": "^4.28.1", "@typescript-eslint/parser": "^4.28.1", "eslint": "^7.29.0", @@ -78,10 +78,10 @@ "jsdom": "^16.6.0", "lint-staged": "^11.0.0", "msw": "^0.49.2", - "node-mocks-http": "^1.10.1", - "pino-pretty": "^10.0.0", + "node-mocks-http": "^1.12.2", + "pino-pretty": "^10.2.0", "prettier": "^2.3.2", - "pretty-quick": "^3.1.1", + "pretty-quick": "^3.1.3", "typescript": "^4.3.5" }, "lint-staged": { diff --git a/src/__mocks__/handlers/frontend/dokumenter.ts b/src/__mocks__/handlers/frontend/dokumenter.ts index a240fec3..48141b0e 100644 --- a/src/__mocks__/handlers/frontend/dokumenter.ts +++ b/src/__mocks__/handlers/frontend/dokumenter.ts @@ -5,22 +5,22 @@ import { AvsenderMottakerIdType, Journalposttype } from "../../../saf"; export const dokumentListeResolver = (req, res, ctx) => { const journalposter: Journalpost[] = [...Array(12)].map((_, ji) => { - const journalpostId = faker.datatype.number().toString(); + const journalpostId = faker.string.uuid(); const antallDokumenter = ji === 4 ? 1 : 3; return { - journalpostId, + journalpostId: journalpostId, tittel: ji === 0 ? "" : faker.lorem.sentence(), journalposttype: Journalposttype.U, dato: faker.date.past().toISOString(), brukerErAvsenderMottaker: ji === 2 ? true : false, avsender: null, mottaker: { - id: ji === 2 ? syntheticUserFnr : faker.datatype.uuid(), + id: ji === 2 ? syntheticUserFnr : faker.string.uuid(), type: AvsenderMottakerIdType.Fnr, }, tema: "DAG", dokumenter: [...Array(antallDokumenter)].map((_, i) => { - const id = faker.datatype.uuid(); + const id = faker.string.uuid(); const type = i == 0 ? "Hoved" : "Vedlegg"; const skjulDokument = (ji === 3 && i === 0) || (ji === 2 && i === 1); return { diff --git a/src/__mocks__/handlers/frontend/soknader.ts b/src/__mocks__/handlers/frontend/soknader.ts index a8984157..4ef89e64 100644 --- a/src/__mocks__/handlers/frontend/soknader.ts +++ b/src/__mocks__/handlers/frontend/soknader.ts @@ -10,6 +10,8 @@ export default function soknaderResolver(req, res, ctx) { kanal: "Digital", datoInnsendt: new Date().toISOString(), vedlegg: [], + erNySøknadsdialog: true, + endreLenke: "", }, { tittel: "Søknad om dagpenger", @@ -19,6 +21,8 @@ export default function soknaderResolver(req, res, ctx) { kanal: "Digital", datoInnsendt: new Date().toISOString(), vedlegg: [], + erNySøknadsdialog: true, + endreLenke: "", }, { tittel: "Søknad om dagpenger", @@ -28,6 +32,8 @@ export default function soknaderResolver(req, res, ctx) { kanal: "Digital", datoInnsendt: new Date().toISOString(), vedlegg: [], + erNySøknadsdialog: true, + endreLenke: "", }, ]; return res(ctx.delay(), ctx.json(mockSoknader)); diff --git a/src/lib/amplitude.ts b/src/lib/amplitude.ts index 620482be..ed8975bb 100644 --- a/src/lib/amplitude.ts +++ b/src/lib/amplitude.ts @@ -1,12 +1,10 @@ import getConfig from "next/config"; -import { AmplitudeClient, Config, LogReturn } from "amplitude-js"; +import amplitude, { AmplitudeClient, Config, LogReturn } from "amplitude-js"; import { logger } from "@navikt/next-logger"; let loggInstance: AmplitudeClient; if (typeof window !== "undefined") { - const amplitude = require("amplitude-js"); - const getApiKey = () => { const { publicRuntimeConfig } = getConfig(); return process.env.AMPLITUDE_API_KEY || publicRuntimeConfig.amplitudeKey; diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 1d0e9d3d..37661e40 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -93,7 +93,7 @@ export default function Status({ {getAppText("meta.tittel")}
- 0} /> + 0} />