Skip to content

Commit 7e0bd89

Browse files
committed
Oppgrader pakker i decorator
1 parent 7dc3e09 commit 7e0bd89

File tree

4 files changed

+83
-89
lines changed

4 files changed

+83
-89
lines changed

bun.lock

+8-12
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"@navikt/ds-react": "^7.14.3",
1010
"@navikt/ds-tailwind": "^7.14.3",
1111
"@navikt/ds-tokens": "^7.14.3",
12-
"@navikt/navspa": "^6.2.0",
12+
"@navikt/navspa": "^7.0.0",
1313
"@tanstack/query-core": "^5.66.4",
1414
"classnames": "^2.5.1",
1515
"use-sync-external-store": "^1.4.0",
@@ -19,8 +19,8 @@
1919
"@eslint/js": "^9.21.0",
2020
"@tailwindcss/vite": "^4.0.9",
2121
"@types/bun": "^1.2.1",
22-
"@types/react": "^18.3.12",
23-
"@types/react-dom": "^18.3.1",
22+
"@types/react": "^19.0.8",
23+
"@types/react-dom": "^19.0.3",
2424
"@vitejs/plugin-react": "^4.3.4",
2525
"concurrently": "^9.1.2",
2626
"eslint": "^9.19.0",
@@ -30,8 +30,8 @@
3030
"eslint-plugin-react-refresh": "^0.4.19",
3131
"msw": "^2.7.0",
3232
"prettier": "^3.5.2",
33-
"react": "^18.3.1",
34-
"react-dom": "^18.3.1",
33+
"react": "^19.0.0",
34+
"react-dom": "^19.0.0",
3535
"tailwindcss": "^4.0.9",
3636
"typescript": "^5.7.3",
3737
"typescript-eslint": "^8.25.0",
@@ -206,7 +206,7 @@
206206

207207
"@navikt/ds-tokens": ["@navikt/[email protected]", "https://npm.pkg.github.com/download/@navikt/ds-tokens/7.14.3/d128b01d9ad7a696f24391a8769d4cfaa6f1d838", {}, "sha512-6tZZ/xPoxohkboNzbgJmemGcBt5yl89v4RkuOsOyfO2mTb1aEv8uQw3kZLtlzm7CaZ95F/lTLbF0IpDgalMW0A=="],
208208

209-
"@navikt/navspa": ["@navikt/navspa@6.2.0", "https://npm.pkg.github.com/download/@navikt/navspa/6.2.0/fedd207df70dff922a729cef18a28112274202c6", { "dependencies": { "loadjs": "^4.3.0" }, "peerDependencies": { "react": ">=16.6.0 || 17 || 18", "react-dom": ">=16.6.0 || 17 || 18" } }, "sha512-ix3lqWZWIhIAlmFL883hbmD9kjWk9qeijEGXiQOxPzanpWZ4EeeZhEsXng+MftDurJk04y3Q9i/1x0V7l34O9w=="],
209+
"@navikt/navspa": ["@navikt/navspa@7.0.0", "https://npm.pkg.github.com/download/@navikt/navspa/7.0.0/1dd787b54c65709657f96d0f9a62f2f864d0f29d", { "dependencies": { "loadjs": "^4.3.0" }, "peerDependencies": { "react": ">=19.0.0", "react-dom": ">=19.0.0" } }, "sha512-ZyXEr0hweUOY92LA1QJjiSHZQSAMjb3rGpYn6WV44uj8e0lunD4sJ60hbZDny8tX6YjVVcLA7IvgXeAQ6w+gxA=="],
210210

211211
"@nodelib/fs.scandir": ["@nodelib/[email protected]", "", { "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" } }, "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g=="],
212212

@@ -306,11 +306,9 @@
306306

307307
"@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~6.19.2" } }, "sha512-y+NPi1rFzDs1NdQHHToqeiX2TIS79SWEAw9GYhkkx8bD0ChpfqC+n2j5OXOCpzfojBEBt6DnEnnG9MY0zk1XLg=="],
308308

309-
"@types/prop-types": ["@types/[email protected]", "", {}, "sha512-hCZTSvwbzWGvhqxp/RqVqwU999pBf2vp7hzIjiYOsl8wqOmUxkQ6ddw1cV3l8811+kdUFus/q4d1Y3E3SyEifA=="],
309+
"@types/react": ["@types/[email protected]", "", { "dependencies": { "csstype": "^3.0.2" } }, "sha512-JuRQ9KXLEjaUNjTWpzuR231Z2WpIwczOkBEIvbHNCzQefFIT0L8IqE6NV6ULLyC1SI/i234JnDoMkfg+RjQj2g=="],
310310

311-
"@types/react": ["@types/[email protected]", "", { "dependencies": { "@types/prop-types": "*", "csstype": "^3.0.2" } }, "sha512-D2wOSq/d6Agt28q7rSI3jhU7G6aiuzljDGZ2hTZHIkrTLUI+AF3WMeKkEZ9nN2fkBAlcktT6vcZjDFiIhMYEQw=="],
312-
313-
"@types/react-dom": ["@types/[email protected]", "", { "dependencies": { "@types/react": "*" } }, "sha512-qW1Mfv8taImTthu4KoXgDfLuk4bydU6Q/TkADnDWWHwi4NX4BR+LWfTp2sVmTqRrsHvyDDTelgelxJ+SsejKKQ=="],
311+
"@types/react-dom": ["@types/[email protected]", "", { "peerDependencies": { "@types/react": "^19.0.0" } }, "sha512-4fSQ8vWFkg+TGhePfUzVmat3eC14TXYSsiiDSLI0dVLsrm9gZFABjPy/Qu6TKgl1tq1Bu1yDsuQgY3A3DOjCcg=="],
314312

315313
"@types/statuses": ["@types/[email protected]", "", {}, "sha512-jmIUGWrAiwu3dZpxntxieC+1n/5c3mjrImkmOSQ2NC5uP6cYO4aAZDdSmRcI5C1oiTmqlZGHC+/NmJrKogbP5A=="],
316314

@@ -808,8 +806,6 @@
808806

809807
"@types/babel__traverse/@babel/types": ["@babel/[email protected]", "", { "dependencies": { "@babel/helper-string-parser": "^7.24.8", "@babel/helper-validator-identifier": "^7.24.7", "to-fast-properties": "^2.0.0" } }, "sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw=="],
810808

811-
"@types/react-dom/@types/react": ["@types/[email protected]", "", { "dependencies": { "@types/prop-types": "*", "csstype": "^3.0.2" } }, "sha512-r6QZ069rFTjrEYgFdOck1gK7FLVsgJE7tTz0pQBczlBNUhBNk0MQH4UbnFSwjpQLMkLzgqvBBa+qGpLje16eTQ=="],
812-
813809
"@typescript-eslint/typescript-estree/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "^2.0.1" } }, "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow=="],
814810

815811
"@typescript-eslint/typescript-estree/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A=="],

package.json

+73-75
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,75 @@
11
{
2-
"name": "internarbeidsflate-decorator-v3",
3-
"private": true,
4-
"version": "0.0.0",
5-
"types": "./dist/index.d.ts",
6-
"type": "module",
7-
"exports": {
8-
".": {
9-
"import": {
10-
"types": "./dist/index.d.ts",
11-
"default": "./dist/internarbeidsflate-decorator-v3.es.js"
12-
},
13-
"require": {
14-
"types": "./dist/index.d.ts",
15-
"default": "./dist/internarbeidsflate-decorator-v3.umd.js"
16-
}
17-
}
18-
},
19-
"scripts": {
20-
"dev-server": "bun run --watch dev-server/index.ts",
21-
"dev": "vite",
22-
"dev:fullscreen": "VITE_DECORATOR_MODE=fullscreen vite",
23-
"build": "vite build",
24-
"build:watch": "vite build --watch",
25-
"build-and-preview": "vite build && vite preview",
26-
"preview": "vite preview",
27-
"build:preview": "vite build --config preview.vite.config.ts",
28-
"test": "vitest",
29-
"lint": "eslint",
30-
"format": "prettier . --write"
31-
},
32-
"devDependencies": {
33-
"@eslint/js": "^9.21.0",
34-
"@tailwindcss/vite": "^4.0.9",
35-
"@types/bun": "^1.2.1",
36-
"@types/react": "^18.3.12",
37-
"@types/react-dom": "^18.3.1",
38-
"@vitejs/plugin-react": "^4.3.4",
39-
"concurrently": "^9.1.2",
40-
"eslint": "^9.19.0",
41-
"eslint-config-prettier": "^10.0.2",
42-
"eslint-plugin-prettier": "^5.2.3",
43-
"eslint-plugin-react-hooks": "^5.1.0",
44-
"eslint-plugin-react-refresh": "^0.4.19",
45-
"msw": "^2.7.0",
46-
"prettier": "^3.5.2",
47-
"react": "^18.3.1",
48-
"react-dom": "^18.3.1",
49-
"tailwindcss": "^4.0.9",
50-
"typescript": "^5.7.3",
51-
"typescript-eslint": "^8.25.0",
52-
"vite": "^6.0.11",
53-
"vitest": "^3.0.7",
54-
"vitest-websocket-mock": "^0.4.0"
55-
},
56-
"peerDependencies": {
57-
"react": "^18.2.0",
58-
"react-dom": "^18.2.0"
59-
},
60-
"dependencies": {
61-
"@navikt/aksel-icons": "^7.14.3",
62-
"@navikt/ds-css": "^7.14.3",
63-
"@navikt/ds-react": "^7.14.3",
64-
"@navikt/ds-tailwind": "^7.14.3",
65-
"@navikt/ds-tokens": "^7.14.3",
66-
"@navikt/navspa": "^6.2.0",
67-
"@tanstack/query-core": "^5.66.4",
68-
"classnames": "^2.5.1",
69-
"use-sync-external-store": "^1.4.0",
70-
"zustand": "^5.0.3"
71-
},
72-
"msw": {
73-
"workerDirectory": [
74-
"public"
75-
]
76-
}
2+
"name": "internarbeidsflate-decorator-v3",
3+
"private": true,
4+
"version": "0.0.0",
5+
"types": "./dist/index.d.ts",
6+
"type": "module",
7+
"exports": {
8+
".": {
9+
"import": {
10+
"types": "./dist/index.d.ts",
11+
"default": "./dist/internarbeidsflate-decorator-v3.es.js"
12+
},
13+
"require": {
14+
"types": "./dist/index.d.ts",
15+
"default": "./dist/internarbeidsflate-decorator-v3.umd.js"
16+
}
17+
}
18+
},
19+
"scripts": {
20+
"dev-server": "bun run --watch dev-server/index.ts",
21+
"dev": "vite",
22+
"dev:fullscreen": "VITE_DECORATOR_MODE=fullscreen vite",
23+
"build": "vite build",
24+
"build:watch": "vite build --watch",
25+
"build-and-preview": "vite build && vite preview",
26+
"preview": "vite preview",
27+
"build:preview": "vite build --config preview.vite.config.ts",
28+
"test": "vitest",
29+
"lint": "eslint",
30+
"format": "prettier . --write"
31+
},
32+
"devDependencies": {
33+
"@eslint/js": "^9.21.0",
34+
"@tailwindcss/vite": "^4.0.9",
35+
"@types/bun": "^1.2.1",
36+
"@types/react": "^19.0.8",
37+
"@types/react-dom": "^19.0.3",
38+
"@vitejs/plugin-react": "^4.3.4",
39+
"concurrently": "^9.1.2",
40+
"eslint": "^9.19.0",
41+
"eslint-config-prettier": "^10.0.2",
42+
"eslint-plugin-prettier": "^5.2.3",
43+
"eslint-plugin-react-hooks": "^5.1.0",
44+
"eslint-plugin-react-refresh": "^0.4.19",
45+
"msw": "^2.7.0",
46+
"prettier": "^3.5.2",
47+
"react": "^19.0.0",
48+
"react-dom": "^19.0.0",
49+
"tailwindcss": "^4.0.9",
50+
"typescript": "^5.7.3",
51+
"typescript-eslint": "^8.25.0",
52+
"vite": "^6.0.11",
53+
"vitest": "^3.0.7",
54+
"vitest-websocket-mock": "^0.4.0"
55+
},
56+
"peerDependencies": {
57+
"react": "^18.2.0",
58+
"react-dom": "^18.2.0"
59+
},
60+
"dependencies": {
61+
"@navikt/aksel-icons": "^7.14.3",
62+
"@navikt/ds-css": "^7.14.3",
63+
"@navikt/ds-react": "^7.14.3",
64+
"@navikt/ds-tailwind": "^7.14.3",
65+
"@navikt/ds-tokens": "^7.14.3",
66+
"@navikt/navspa": "^7.0.0",
67+
"@tanstack/query-core": "^5.66.4",
68+
"classnames": "^2.5.1",
69+
"use-sync-external-store": "^1.4.0",
70+
"zustand": "^5.0.3"
71+
},
72+
"msw": {
73+
"workerDirectory": ["public"]
74+
}
7775
}

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"resolveJsonModule": true,
1313
"isolatedModules": true,
1414
"emitDeclarationOnly": true,
15-
"jsx": "react",
15+
"jsx": "react-jsx",
1616
"strict": true,
1717
"noUnusedLocals": true,
1818
"noUnusedParameters": true,

vite.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default defineConfig({
1010
rollupOptions: {
1111
input: 'src/index.ts',
1212
preserveEntrySignatures: 'exports-only',
13-
// external: ["react", "react-dom"],
13+
//external: ['react', 'react-dom'],
1414
output: {
1515
entryFileNames: 'bundle.js',
1616
// format: "iife",

0 commit comments

Comments
 (0)