Compare commits

...
Author SHA1 Message Date
Ken ccbaa18df9 Standalone-nextjs build (#1851) 2023-03-09 16:46:02 +01:00
Ken 853f2ae760 💄 Endret OG-bilde for ikonside 2023-03-09 12:32:24 +01:00
Ken 411bb36c32 🚸 Nedlasting av ikonpakke åpner ikke lengre ny tab 2023-03-09 11:53:12 +01:00
29 changed files with 170 additions and 48 deletions

No files matched your search

+2
View File
@@ -1,5 +1,7 @@
# @navikt/aksel-icons
## 2.7.3
## 2.7.2
## 2.7.1
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@navikt/aksel-icons",
"version": "2.7.2",
"version": "2.7.3",
"author": "Aksel | NAV",
"homepage": "https://aksel.nav.no/ikoner",
"repository": {
+2
View File
@@ -1,5 +1,7 @@
# @navikt/ds-codemod
## 2.7.3
## 2.7.2
## 2.7.1
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@navikt/ds-codemod",
"version": "2.7.2",
"version": "2.7.3",
"description": "Aksel codemods for NAVs designsystem",
"author": "Aksel | NAV designsystem team",
"license": "MIT",
+2 -2
View File
@@ -39,8 +39,8 @@
"build-pict": "svgr --silent --index-template index-template.js --out-dir src/pictograms pictograms"
},
"dependencies": {
"@navikt/ds-icons": "^2.7.2",
"@navikt/ds-react": "^2.7.2",
"@navikt/ds-icons": "^2.7.3",
"@navikt/ds-react": "^2.7.3",
"clsx": "^1.1.1"
},
"devDependencies": {
+2
View File
@@ -1,5 +1,7 @@
# @navikt/ds-css
## 2.7.3
## 2.7.2
## 2.7.1
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@navikt/ds-css",
"version": "2.7.2",
"version": "2.7.3",
"description": "CSS for NAV Designsystem",
"author": "Aksel | NAV designsystem team",
"keywords": [
@@ -20,7 +20,7 @@
"watch": "postcss --watch --use postcss-import -o dist/index.css index.css"
},
"devDependencies": {
"@navikt/ds-tokens": "^2.7.2",
"@navikt/ds-tokens": "^2.7.3",
"normalize.css": "^8.0.1",
"postcss": "^8.4.0",
"postcss-cli": "^9.0.0",
+7
View File
@@ -1,5 +1,12 @@
# @navikt/ds-react
## 2.7.3
### Patch Changes
- Updated dependencies []:
- @navikt/ds-icons@2.7.3
## 2.7.2
### Patch Changes
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@navikt/ds-react",
"version": "2.7.2",
"version": "2.7.3",
"description": "Aksel react-components for NAV designsystem",
"author": "Aksel | NAV designsystem team",
"license": "MIT",
@@ -37,7 +37,7 @@
},
"dependencies": {
"@floating-ui/react": "0.17.0",
"@navikt/ds-icons": "^2.7.2",
"@navikt/ds-icons": "^2.7.3",
"@radix-ui/react-tabs": "1.0.0",
"@radix-ui/react-toggle-group": "1.0.0",
"clsx": "^1.2.1",
+2
View File
@@ -1,5 +1,7 @@
# @navikt/ds-tailwind
## 2.7.3
## 2.7.2
## 2.7.1
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@navikt/ds-tailwind",
"version": "2.7.2",
"version": "2.7.3",
"description": "Tailwind config based on @navikt/ds-tokens",
"author": "Aksel | NAV designsystem team",
"keywords": [
@@ -22,7 +22,7 @@
"directory": "@navikt/core/tailwind"
},
"devDependencies": {
"@navikt/ds-tokens": "^2.7.2",
"@navikt/ds-tokens": "^2.7.3",
"@types/jest": "^29.0.0",
"color": "4.2.3",
"jest": "^29.0.0",
+2
View File
@@ -1,5 +1,7 @@
# @navikt/ds-tokens
## 2.7.3
## 2.7.2
## 2.7.1
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@navikt/ds-tokens",
"version": "2.7.2",
"version": "2.7.3",
"description": "Design-tokens for NAV designsystem",
"author": "Aksel | NAV designsystem team",
"keywords": [
+2
View File
@@ -1,5 +1,7 @@
# @navikt/ds-icons
## 2.7.3
## 2.7.2
## 2.7.1
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@navikt/ds-icons",
"version": "2.7.2",
"version": "2.7.3",
"description": "Aksel icons for NAV",
"author": "Aksel | NAV designsystem team",
"repository": {
+2
View File
@@ -1,5 +1,7 @@
# @navikt/ds-css-internal
## 2.7.3
## 2.7.2
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@navikt/ds-css-internal",
"version": "2.7.2",
"version": "2.7.3",
"description": "CSS for NAV internal Designsystem-components",
"author": "Aksel | NAV designsystem team",
"keywords": [
+10
View File
@@ -1,5 +1,15 @@
# @navikt/ds-react-internal
## 2.7.3
### Patch Changes
- :fire: Fjernet unødvendig logging
- Updated dependencies []:
- @navikt/ds-react@2.7.3
- @navikt/ds-icons@2.7.3
## 2.7.2
### Patch Changes
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@navikt/ds-react-internal",
"version": "2.7.2",
"version": "2.7.3",
"description": "Aksel react components for internal UIs in NAV",
"author": "Aksel | NAV designsystem team",
"license": "MIT",
@@ -35,8 +35,8 @@
"watch": "tsc --watch -p tsconfig.esm.json"
},
"dependencies": {
"@navikt/ds-icons": "^2.7.2",
"@navikt/ds-react": "^2.7.2",
"@navikt/ds-icons": "^2.7.3",
"@navikt/ds-react": "^2.7.3",
"clsx": "^1.1.1",
"copy-to-clipboard": "^3.3.1"
},
@@ -51,7 +51,6 @@ export const TimelineRow = forwardRef<HTMLOListElement, TimelineRowProps>(
const firstFocusable = periods.find(
(p) => !!p.children || !!p.onSelectPeriod
);
console.log(rest);
return (
<>
+2 -8
View File
@@ -4,13 +4,7 @@ RUN apk add --no-cache libc6-compat
ENV NODE_ENV production
WORKDIR /app
COPY aksel.nav.no/website/package.json .
COPY aksel.nav.no/website/.next/ .next/
COPY aksel.nav.no/website/public/ public
COPY aksel.nav.no/website/.env .
COPY aksel.nav.no/website/next.config.js .
COPY node_modules/ node_modules/
COPY @navikt/ @navikt/
COPY aksel.nav.no/website/.next/standalone ./
EXPOSE 3000
CMD yarn start
CMD cd aksel.nav.no/website && node server.js
+9 -9
View File
@@ -15,15 +15,15 @@
"website"
],
"dependencies": {
"@navikt/aksel-icons": "^2.7.2",
"@navikt/ds-codemod": "^2.7.2",
"@navikt/ds-css": "^2.7.2",
"@navikt/ds-css-internal": "^2.7.2",
"@navikt/ds-icons": "^2.7.2",
"@navikt/ds-react": "^2.7.2",
"@navikt/ds-react-internal": "^2.7.2",
"@navikt/ds-tailwind": "^2.7.2",
"@navikt/ds-tokens": "^2.7.2"
"@navikt/aksel-icons": "^2.7.3",
"@navikt/ds-codemod": "^2.7.3",
"@navikt/ds-css": "^2.7.3",
"@navikt/ds-css-internal": "^2.7.3",
"@navikt/ds-icons": "^2.7.3",
"@navikt/ds-react": "^2.7.3",
"@navikt/ds-react-internal": "^2.7.3",
"@navikt/ds-tailwind": "^2.7.3",
"@navikt/ds-tokens": "^2.7.3"
},
"devDependencies": {
"prettier-plugin-tailwindcss": "^0.2.3"
@@ -46,8 +46,6 @@ export const TitleLinks = () => (
format: "zip",
});
}}
target="_blank"
rel="noreferrer noopener"
>
<DownloadIcon className="text-2xl" aria-hidden /> Last ned ikonpakke
</DsLink>
@@ -20,7 +20,7 @@ export enum AmplitudeEvents {
export const initAmplitude = () => {
if (amplitude && !(typeof window === "undefined")) {
amplitude.getInstance().init("default", "", {
amplitude.getInstance().init("1a9a84a5e557ac9635a250bc27d75030", "", {
apiEndpoint: "amplitude.nav.no/collect-auto",
saveEvents: false,
includeUtm: true,
+5
View File
@@ -1,5 +1,6 @@
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable no-undef */
const path = require("path");
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
@@ -110,6 +111,10 @@ const config = () =>
domains: ["cdn.sanity.io", "raw.githubusercontent.com"],
dangerouslyAllowSVG: true,
},
output: "standalone",
experimental: {
outputFileTracingRoot: path.join(__dirname, "../../"),
},
});
if (process.env.NODE_ENV === "production") {
+5 -3
View File
@@ -6,8 +6,9 @@
"author": "Aksel | NAV designsystem team",
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start",
"build": "next build && yarn cp:assets",
"start": "cd .next/standalone/aksel.nav.no/website && node server.js",
"cp:assets": "cross-env cp -R public .next/standalone/aksel.nav.no/website/ && cross-env cp -R .next/static .next/standalone/aksel.nav.no/website/.next/static",
"e2e": "yarn build && NEXT_PUBLIC_TEST=true yarn start-server-and-test start http://localhost:3000 playwright",
"e2e:full": "yarn build && ts-node ./e2e/genUrls.ts && NEXT_PUBLIC_TEST=true FULL_TEST=true yarn start-server-and-test start http://localhost:3000 playwright",
"e2e:ci": "NEXT_PUBLIC_TEST=true yarn start-server-and-test start http://localhost:3000 playwright",
@@ -16,7 +17,7 @@
"update:tokens": "ts-node --project tsconfig.tsnode.json ./scripts/update-tokens",
"update:eksempler": "ts-node --project tsconfig.tsnode.json ./scripts/examples/update-sanity",
"update:sanity": "yarn update:tokens && yarn update:props && yarn update:eksempler",
"analyze": "cross-env ANALYZE=true next build",
"analyze": "cross-env ANALYZE=true yarn build",
"test": "jest",
"playwright": "playwright test",
"test:watch": "jest --watch",
@@ -55,6 +56,7 @@
"sanity-plugin-asset-source-unsplash": "^1.0.6",
"sanity-plugin-iframe-pane": "^2.2.0",
"sanity-plugin-media": "^2.0.5",
"sharp": "0.31.3",
"sitemap": "^7.0.0",
"styled-components": "^5.2",
"swr": "^1.1.2",
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 MiB

After

Width:  |  Height:  |  Size: 294 KiB

+2 -2
View File
@@ -10,8 +10,8 @@
"preview": "vite preview"
},
"dependencies": {
"@navikt/ds-css": "2.7.2",
"@navikt/ds-react": "2.7.2",
"@navikt/ds-css": "2.7.3",
"@navikt/ds-react": "2.7.3",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
+99 -6
View File
@@ -9443,7 +9443,7 @@ __metadata:
languageName: node
linkType: hard
"color@npm:4.2.3":
"color@npm:4.2.3, color@npm:^4.2.3":
version: 4.2.3
resolution: "color@npm:4.2.3"
dependencies:
@@ -10744,6 +10744,13 @@ __metadata:
languageName: node
linkType: hard
"detect-libc@npm:^2.0.0, detect-libc@npm:^2.0.1":
version: 2.0.1
resolution: "detect-libc@npm:2.0.1"
checksum: ccb05fcabbb555beb544d48080179c18523a343face9ee4e1a86605a8715b4169f94d663c21a03c310ac824592f2ba9a5270218819bb411ad7be578a527593d7
languageName: node
linkType: hard
"detect-newline@npm:^3.0.0":
version: 3.1.0
resolution: "detect-newline@npm:3.1.0"
@@ -12328,6 +12335,13 @@ __metadata:
languageName: node
linkType: hard
"expand-template@npm:^2.0.3":
version: 2.0.3
resolution: "expand-template@npm:2.0.3"
checksum: 588c19847216421ed92befb521767b7018dc88f88b0576df98cb242f20961425e96a92cbece525ef28cc5becceae5d544ae0f5b9b5e2aa05acb13716ca5b3099
languageName: node
linkType: hard
"expand-tilde@npm:^1.2.2":
version: 1.2.2
resolution: "expand-tilde@npm:1.2.2"
@@ -13480,6 +13494,13 @@ __metadata:
languageName: node
linkType: hard
"github-from-package@npm:0.0.0":
version: 0.0.0
resolution: "github-from-package@npm:0.0.0"
checksum: 14e448192a35c1e42efee94c9d01a10f42fe790375891a24b25261246ce9336ab9df5d274585aedd4568f7922246c2a78b8a8cd2571bfe99c693a9718e7dd0e3
languageName: node
linkType: hard
"github-slugger@npm:^1.0.0":
version: 1.5.0
resolution: "github-slugger@npm:1.5.0"
@@ -17392,6 +17413,13 @@ __metadata:
languageName: node
linkType: hard
"minimist@npm:^1.2.3":
version: 1.2.8
resolution: "minimist@npm:1.2.8"
checksum: 75a6d645fb122dad29c06a7597bddea977258957ed88d7a6df59b5cd3fe4a527e253e9bbf2e783e4b73657f9098b96a5fe96ab8a113655d4109108577ecf85b0
languageName: node
linkType: hard
"minipass-collect@npm:^1.0.2":
version: 1.0.2
resolution: "minipass-collect@npm:1.0.2"
@@ -17540,7 +17568,7 @@ __metadata:
languageName: node
linkType: hard
"mkdirp-classic@npm:^0.5.2":
"mkdirp-classic@npm:^0.5.2, mkdirp-classic@npm:^0.5.3":
version: 0.5.3
resolution: "mkdirp-classic@npm:0.5.3"
checksum: 3f4e088208270bbcc148d53b73e9a5bd9eef05ad2cbf3b3d0ff8795278d50dd1d11a8ef1875ff5aea3fa888931f95bfcb2ad5b7c1061cfefd6284d199e6776ac
@@ -17725,6 +17753,13 @@ __metadata:
languageName: node
linkType: hard
"napi-build-utils@npm:^1.0.1":
version: 1.0.2
resolution: "napi-build-utils@npm:1.0.2"
checksum: 06c14271ee966e108d55ae109f340976a9556c8603e888037145d6522726aebe89dd0c861b4b83947feaf6d39e79e08817559e8693deedc2c94e82c5cbd090c7
languageName: node
linkType: hard
"natural-compare-lite@npm:^1.4.0":
version: 1.4.0
resolution: "natural-compare-lite@npm:1.4.0"
@@ -17854,6 +17889,24 @@ __metadata:
languageName: node
linkType: hard
"node-abi@npm:^3.3.0":
version: 3.33.0
resolution: "node-abi@npm:3.33.0"
dependencies:
semver: ^7.3.5
checksum: 59e5e00d9a15225087b6dd55b7d4f99686a6d64a8bdbe2c9aa98f4f74554873a7225d3dc975fa32718e7695eed8abcfeaae58b03db118a01392f6d25b0469b52
languageName: node
linkType: hard
"node-addon-api@npm:^5.0.0":
version: 5.1.0
resolution: "node-addon-api@npm:5.1.0"
dependencies:
node-gyp: latest
checksum: 2508bd2d2981945406243a7bd31362fc7af8b70b8b4d65f869c61731800058fb818cc2fd36c8eac714ddd0e568cc85becf5e165cebbdf7b5024d5151bbc75ea1
languageName: node
linkType: hard
"node-dir@npm:^0.1.10, node-dir@npm:^0.1.17":
version: 0.1.17
resolution: "node-dir@npm:0.1.17"
@@ -19651,6 +19704,28 @@ __metadata:
languageName: node
linkType: hard
"prebuild-install@npm:^7.1.1":
version: 7.1.1
resolution: "prebuild-install@npm:7.1.1"
dependencies:
detect-libc: ^2.0.0
expand-template: ^2.0.3
github-from-package: 0.0.0
minimist: ^1.2.3
mkdirp-classic: ^0.5.3
napi-build-utils: ^1.0.1
node-abi: ^3.3.0
pump: ^3.0.0
rc: ^1.2.7
simple-get: ^4.0.0
tar-fs: ^2.0.0
tunnel-agent: ^0.6.0
bin:
prebuild-install: bin.js
checksum: dbf96d0146b6b5827fc8f67f72074d2e19c69628b9a7a0a17d0fad1bf37e9f06922896972e074197fc00a52eae912993e6ef5a0d471652f561df5cb516f3f467
languageName: node
linkType: hard
"preferred-pm@npm:^3.0.0":
version: 3.0.3
resolution: "preferred-pm@npm:3.0.3"
@@ -20202,7 +20277,7 @@ __metadata:
languageName: node
linkType: hard
"rc@npm:^1.0.1, rc@npm:^1.1.6":
"rc@npm:^1.0.1, rc@npm:^1.1.6, rc@npm:^1.2.7":
version: 1.2.8
resolution: "rc@npm:1.2.8"
dependencies:
@@ -21825,7 +21900,7 @@ __metadata:
languageName: node
linkType: hard
"semver@npm:7.x, semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.3.7":
"semver@npm:7.x, semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.3.8":
version: 7.3.8
resolution: "semver@npm:7.3.8"
dependencies:
@@ -21976,6 +22051,23 @@ __metadata:
languageName: node
linkType: hard
"sharp@npm:0.31.3":
version: 0.31.3
resolution: "sharp@npm:0.31.3"
dependencies:
color: ^4.2.3
detect-libc: ^2.0.1
node-addon-api: ^5.0.0
node-gyp: latest
prebuild-install: ^7.1.1
semver: ^7.3.8
simple-get: ^4.0.1
tar-fs: ^2.1.1
tunnel-agent: ^0.6.0
checksum: 29fd1dfbc616c6389f53f366cec342b4353d9f2a37e98952ca273db38dca57dfa0f336322d6d763f0fae876042ead22fd86ffe26d70c32ade2458d421db60d04
languageName: node
linkType: hard
"shebang-command@npm:^1.2.0":
version: 1.2.0
resolution: "shebang-command@npm:1.2.0"
@@ -22062,7 +22154,7 @@ __metadata:
languageName: node
linkType: hard
"simple-get@npm:^4.0.1":
"simple-get@npm:^4.0.0, simple-get@npm:^4.0.1":
version: 4.0.1
resolution: "simple-get@npm:4.0.1"
dependencies:
@@ -23284,7 +23376,7 @@ __metadata:
languageName: node
linkType: hard
"tar-fs@npm:^2.1.1":
"tar-fs@npm:^2.0.0, tar-fs@npm:^2.1.1":
version: 2.1.1
resolution: "tar-fs@npm:2.1.1"
dependencies:
@@ -24868,6 +24960,7 @@ __metadata:
sanity-plugin-asset-source-unsplash: ^1.0.6
sanity-plugin-iframe-pane: ^2.2.0
sanity-plugin-media: ^2.0.5
sharp: 0.31.3
sitemap: ^7.0.0
start-server-and-test: ^1.14.0
styled-components: ^5.2