Skip to content

Commit

Permalink
Pakkeoppdateringer -
Browse files Browse the repository at this point in the history
@types/react og @types/react-dom 19
  • Loading branch information
frodehansen2 committed Dec 11, 2024
1 parent a8ddb32 commit f7e04cf
Showing 45 changed files with 276 additions and 352 deletions.
2 changes: 1 addition & 1 deletion apps/dine-pleiepenger/package.json
Original file line number Diff line number Diff line change
@@ -61,7 +61,7 @@
"@storybook/nextjs": "8.4.7",
"@storybook/react": "8.4.7",
"@storybook/test": "8.4.7",
"@types/react": "18.3.16",
"@types/react": "19.0.1",
"classnames": "2.5.1",
"dayjs": "1.11.13",
"eslint": "9.16.0",
Original file line number Diff line number Diff line change
@@ -65,8 +65,8 @@
"@testing-library/dom": "10.4.0",
"@testing-library/react": "16.1.0",
"@types/object-hash": "3.0.6",
"@types/react": "18.3.16",
"@types/react-dom": "18.3.5",
"@types/react": "19.0.1",
"@types/react-dom": "19.0.2",
"@types/react-router-dom": "5.3.3",
"babel-polyfill": "6.26.0",
"compression": "1.7.5",
4 changes: 2 additions & 2 deletions apps/endringsmelding-pleiepenger/package.json
Original file line number Diff line number Diff line change
@@ -66,9 +66,9 @@
"@types/intl": "1.2.2",
"@types/js-cookie": "3.0.6",
"@types/object-hash": "3.0.6",
"@types/react": "18.3.16",
"@types/react": "19.0.1",
"@types/react-document-title": "2.0.10",
"@types/react-dom": "18.3.5",
"@types/react-dom": "19.0.2",
"@types/react-router-dom": "5.3.3",
"@vitejs/plugin-react": "4.3.4",
"axe-core": "4.10.2",
4 changes: 2 additions & 2 deletions apps/omsorgsdager-aleneomsorg-dialog/package.json
Original file line number Diff line number Diff line change
@@ -62,8 +62,8 @@
"@sif/eslint-config": "*",
"@testing-library/dom": "10.4.0",
"@types/object-hash": "3.0.6",
"@types/react": "18.3.16",
"@types/react-dom": "18.3.5",
"@types/react": "19.0.1",
"@types/react-dom": "19.0.2",
"@types/react-router-dom": "5.3.3",
"@vitejs/plugin-react": "4.3.4",
"babel-polyfill": "6.26.0",
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ import { TypedFormikFormContext } from '../typed-formik-form/TypedFormikForm';

interface Props {
heading?: string;
summaryRef?: RefObject<HTMLDivElement>;
summaryRef?: RefObject<HTMLDivElement | null>;
wrapper?: (errorSummary: JSX.Element) => JSX.Element;
}

Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ import React, { RefObject } from 'react';

export interface Props extends Pick<ErrorSummaryProps, 'heading' | 'headingTag'> {
errors: ValidationSummaryError[];
summaryRef?: RefObject<HTMLDivElement>;
summaryRef?: RefObject<HTMLDivElement | null>;
}

export interface ValidationSummaryError {
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ const useEffectOnce = (callback?: () => void) => {

function FormikValuesObserver<FormValues>({ onChange, delay = 100 }: Props<FormValues>) {
const { values } = useFormikContext<FormValues>();
const prefValuesRef = useRef<any>();
const prefValuesRef = useRef<any>(null);
const [mounted, setMounted] = useState(false);

const emitChanged = debounce((values: FormValues) => {
6 changes: 3 additions & 3 deletions apps/omsorgsdager-kalkulator/package.json
Original file line number Diff line number Diff line change
@@ -39,9 +39,9 @@
"devDependencies": {
"@axe-core/playwright": "4.10.1",
"@playwright/test": "1.49.1",
"@types/node": "22.10.1",
"@types/react": "18.3.16",
"@types/react-dom": "18.3.5",
"@types/node": "22.10.2",
"@types/react": "19.0.1",
"@types/react-dom": "19.0.2",
"@types/uuid": "10.0.0",
"config": "*",
"eslint": "9.16.0",
6 changes: 3 additions & 3 deletions apps/omsorgspengerutbetaling-arbeidstaker-soknad/package.json
Original file line number Diff line number Diff line change
@@ -58,10 +58,10 @@
"@storybook/react-vite": "8.4.7",
"@storybook/test": "8.4.7",
"@testing-library/dom": "10.4.0",
"@types/node": "22.10.1",
"@types/node": "22.10.2",
"@types/object-hash": "3.0.6",
"@types/react": "18.3.16",
"@types/react-dom": "18.3.5",
"@types/react": "19.0.1",
"@types/react-dom": "19.0.2",
"@types/react-router-dom": "5.3.3",
"@vitejs/plugin-react": "4.3.4",
"babel-polyfill": "6.26.0",
6 changes: 3 additions & 3 deletions apps/omsorgspengerutbetaling-soknad/package.json
Original file line number Diff line number Diff line change
@@ -54,10 +54,10 @@
"@storybook/test": "8.4.7",
"@testing-library/dom": "10.4.0",
"@testing-library/react": "16.1.0",
"@types/node": "22.10.1",
"@types/node": "22.10.2",
"@types/object-hash": "3.0.6",
"@types/react": "18.3.16",
"@types/react-dom": "18.3.5",
"@types/react": "19.0.1",
"@types/react-dom": "19.0.2",
"@types/react-router-dom": "5.3.3",
"@vitejs/plugin-react": "4.3.4",
"babel-polyfill": "6.26.0",
4 changes: 2 additions & 2 deletions apps/omsorgspengesoknad/package.json
Original file line number Diff line number Diff line change
@@ -58,8 +58,8 @@
"@testing-library/dom": "10.4.0",
"@testing-library/react": "16.1.0",
"@types/object-hash": "3.0.6",
"@types/react": "18.3.16",
"@types/react-dom": "18.3.5",
"@types/react": "19.0.1",
"@types/react-dom": "19.0.2",
"@types/react-router-dom": "5.3.3",
"@vitejs/plugin-react": "4.3.4",
"axe-core": "4.10.2",
6 changes: 3 additions & 3 deletions apps/opplaringspenger-soknad/package.json
Original file line number Diff line number Diff line change
@@ -65,10 +65,10 @@
"@storybook/test": "8.4.7",
"@testing-library/dom": "10.4.0",
"@testing-library/react": "16.1.0",
"@types/node": "22.10.1",
"@types/node": "22.10.2",
"@types/object-hash": "3.0.6",
"@types/react": "18.3.16",
"@types/react-dom": "18.3.5",
"@types/react": "19.0.1",
"@types/react-dom": "19.0.2",
"@types/react-router-dom": "5.3.3",
"@vitejs/plugin-react": "4.3.4",
"babel-polyfill": "6.26.0",
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ import { useEffect, useLayoutEffect, useState } from 'react';
import debounce from 'lodash.debounce';

export const useElementDimensions = (
ref: React.RefObject<HTMLElement>,
ref: React.RefObject<HTMLElement | null>,
listenToResize: boolean,
debounceTimeout?: number,
) => {
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ const isWidthInRange = (width: number | undefined, range: Range) => {
};

export const useElementWidthIsWithinRange = (
ref: React.RefObject<HTMLElement>,
ref: React.RefObject<HTMLElement | null>,
range: Range,
debounceTimeout?: number,
) => {
4 changes: 2 additions & 2 deletions apps/pleiepenger-i-livets-sluttfase-soknad/package.json
Original file line number Diff line number Diff line change
@@ -62,8 +62,8 @@
"@testing-library/dom": "10.4.0",
"@testing-library/react": "16.1.0",
"@types/object-hash": "3.0.6",
"@types/react": "18.3.16",
"@types/react-dom": "18.3.5",
"@types/react": "19.0.1",
"@types/react-dom": "19.0.2",
"@types/react-router-dom": "5.3.3",
"babel-polyfill": "6.26.0",
"compression": "1.7.5",
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ import { debounce } from '@navikt/ds-react';
import { useEffect, useLayoutEffect, useState } from 'react';

export const useElementDimensions = (
ref: React.RefObject<HTMLElement>,
ref: React.RefObject<HTMLElement | null>,
listenToResize: boolean,
debounceTimeout?: number,
) => {
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ const isWidthInRange = (width: number | undefined, range: Range) => {
};

export const useElementWidthIsWithinRange = (
ref: React.RefObject<HTMLElement>,
ref: React.RefObject<HTMLElement | null>,
range: Range,
debounceTimeout?: number,
) => {
4 changes: 2 additions & 2 deletions apps/pleiepenger-sykt-barn/package.json
Original file line number Diff line number Diff line change
@@ -62,8 +62,8 @@
"@testing-library/react": "16.1.0",
"@testing-library/user-event": "14.5.2",
"@types/lodash.groupby": "4.6.9",
"@types/react": "18.3.16",
"@types/react-dom": "18.3.5",
"@types/react": "19.0.1",
"@types/react-dom": "19.0.2",
"@types/react-router-dom": "5.3.3",
"@vitejs/plugin-react": "4.3.4",
"axe-core": "4.10.2",
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ import { debounce } from '@navikt/ds-react';
import { useEffect, useLayoutEffect, useState } from 'react';

export const useElementDimensions = (
ref: React.RefObject<HTMLElement>,
ref: React.RefObject<HTMLElement | null>,
listenToResize: boolean,
debounceTimeout?: number,
) => {
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ const isWidthInRange = (width: number | undefined, range: Range) => {
};

export const useElementWidthIsWithinRange = (
ref: React.RefObject<HTMLElement>,
ref: React.RefObject<HTMLElement | null>,
range: Range,
debounceTimeout?: number,
) => {
6 changes: 3 additions & 3 deletions apps/sif-demo-app/package.json
Original file line number Diff line number Diff line change
@@ -41,9 +41,9 @@
"@eslint/eslintrc": "3.2.0",
"@eslint/js": "9.16.0",
"@navikt/nav-dekoratoren-moduler": "3.1.1",
"@types/node": "22.10.1",
"@types/react": "18.3.16",
"@types/react-dom": "18.3.5",
"@types/node": "22.10.2",
"@types/react": "19.0.1",
"@types/react-dom": "19.0.2",
"@typescript-eslint/parser": "8.18.0",
"@vitejs/plugin-react": "4.3.4",
"autoprefixer": "10.4.20",
4 changes: 2 additions & 2 deletions apps/sif-ettersending/package.json
Original file line number Diff line number Diff line change
@@ -47,8 +47,8 @@
"@playwright/test": "1.49.1",
"@sif/eslint-config": "*",
"@testing-library/dom": "10.4.0",
"@types/react": "18.3.16",
"@types/react-dom": "18.3.5",
"@types/react": "19.0.1",
"@types/react-dom": "19.0.2",
"@types/react-router-dom": "5.3.3",
"@types/uuid": "10.0.0",
"@vitejs/plugin-react": "4.3.4",
6 changes: 3 additions & 3 deletions apps/ungdomsytelse-deltaker/package.json
Original file line number Diff line number Diff line change
@@ -55,9 +55,9 @@
"@storybook/react": "8.4.7",
"@storybook/react-vite": "8.4.7",
"@storybook/test": "8.4.7",
"@types/node": "22.10.1",
"@types/react": "18.3.16",
"@types/react-dom": "18.3.5",
"@types/node": "22.10.2",
"@types/react": "19.0.1",
"@types/react-dom": "19.0.2",
"@typescript-eslint/parser": "8.18.0",
"@vitejs/plugin-react": "4.3.4",
"autoprefixer": "10.4.20",
6 changes: 3 additions & 3 deletions apps/ungdomsytelse-veileder/package.json
Original file line number Diff line number Diff line change
@@ -44,9 +44,9 @@
"@eslint/eslintrc": "3.2.0",
"@eslint/js": "9.16.0",
"@navikt/nav-dekoratoren-moduler": "3.1.1",
"@types/node": "22.10.1",
"@types/react": "18.3.16",
"@types/react-dom": "18.3.5",
"@types/node": "22.10.2",
"@types/react": "19.0.1",
"@types/react-dom": "19.0.2",
"@typescript-eslint/parser": "8.18.0",
"@vitejs/plugin-react": "4.3.4",
"autoprefixer": "10.4.20",
6 changes: 3 additions & 3 deletions packages/appstatus-react-ds/package.json
Original file line number Diff line number Diff line change
@@ -16,9 +16,9 @@
"@navikt/ds-css": "7.8.0",
"@navikt/ds-react": "7.8.0",
"@sif/eslint-config": "*",
"@types/node": "22.10.1",
"@types/react": "18.3.16",
"@types/react-dom": "18.3.5",
"@types/node": "22.10.2",
"@types/react": "19.0.1",
"@types/react-dom": "19.0.2",
"config": "*",
"copyfiles": "2.4.1",
"postcss": "8.4.49",
Original file line number Diff line number Diff line change
@@ -57,7 +57,7 @@ function useGetApplicationStatus(applicationKey: string, sanityConfig: SanityCon
const [isLoading, setIsLoading] = useState<boolean>(true);
const [error, setError] = useState<SanityError>();

const subscription = useRef<any>();
const subscription = useRef<any>(null);

async function fetch(key: string, config: SanityConfig) {
setIsLoading(true);
2 changes: 1 addition & 1 deletion packages/appstatus-react-ds/src/hooks/useGetTeamStatus.ts
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@ function useGetTeamStatus(teamKey: string | undefined, sanityConfig: SanityConfi
const [liveUpdate, setLiveUpdate] = useState<boolean>();
const [error, setError] = useState<SanityError | undefined>();

const subscription = useRef<any>();
const subscription = useRef<any>(null);

async function fetch(key: string, config: SanityConfig) {
const query = getTeamStatusQuery(key);
8 changes: 4 additions & 4 deletions packages/appstatus-sanity-config/package.json
Original file line number Diff line number Diff line change
@@ -16,15 +16,15 @@
"sanity"
],
"dependencies": {
"@sanity/vision": "3.67.0",
"@sanity/vision": "3.67.1",
"react": "19.0.0",
"react-dom": "19.0.0",
"sanity": "3.67.0",
"sanity": "3.67.1",
"styled-components": "6.1.13"
},
"devDependencies": {
"@sanity/eslint-config-studio": "4.0.0",
"@types/react": "18.3.16",
"@sanity/eslint-config-studio": "5.0.0",
"@types/react": "19.0.1",
"dayjs": "1.11.13",
"eslint": "9.16.0",
"prettier": "3.4.2",
4 changes: 2 additions & 2 deletions packages/sif-common-amplitude/package.json
Original file line number Diff line number Diff line change
@@ -15,8 +15,8 @@
},
"devDependencies": {
"@sif/eslint-config": "*",
"@types/node": "22.10.1",
"@types/react": "18.3.16",
"@types/node": "22.10.2",
"@types/react": "19.0.1",
"config": "*",
"constate": "3.3.2",
"gh-pages": "6.2.0",
2 changes: 1 addition & 1 deletion packages/sif-common-api/package.json
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@
"@storybook/node-logger": "8.4.7",
"@storybook/react": "8.4.7",
"@storybook/testing-library": "0.2.2",
"@types/react": "18.3.16",
"@types/react": "19.0.1",
"copyfiles": "2.4.1",
"date-fns": "3.6.0",
"dayjs": "1.11.13",
6 changes: 3 additions & 3 deletions packages/sif-common-core-ds/package.json
Original file line number Diff line number Diff line change
@@ -42,9 +42,9 @@
"@storybook/react": "8.4.7",
"@storybook/react-vite": "8.4.7",
"@storybook/testing-library": "0.2.2",
"@types/node": "22.10.1",
"@types/react": "18.3.16",
"@types/react-dom": "18.3.5",
"@types/node": "22.10.2",
"@types/react": "19.0.1",
"@types/react-dom": "19.0.2",
"@vitejs/plugin-react": "4.3.4",
"axios": "1.7.9",
"config": "*",
6 changes: 3 additions & 3 deletions packages/sif-common-formik-ds/package.json
Original file line number Diff line number Diff line change
@@ -42,9 +42,9 @@
"@storybook/test-runner": "0.20.1",
"@storybook/testing-library": "0.2.2",
"@types/jest": "29.5.14",
"@types/node": "22.10.1",
"@types/react": "18.3.16",
"@types/react-dom": "18.3.5",
"@types/node": "22.10.2",
"@types/react": "19.0.1",
"@types/react-dom": "19.0.2",
"@types/uuid": "10.0.0",
"@vitejs/plugin-react": "4.3.4",
"config": "*",
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useEffect, useRef } from 'react';

export function usePrevious<T>(value: T) {
const ref = useRef<T>();
const ref = useRef<T>(null);
useEffect(() => {
ref.current = value;
});
Original file line number Diff line number Diff line change
@@ -40,7 +40,7 @@ function FormikTimeInput<FieldName, ErrorType>({
...restProps
}: FormikTimeInputProps<FieldName, ErrorType>) {
const context = React.useContext(TypedFormikFormContext);
const ref = useRef<any>();
const ref = useRef<any>(null);
const FieldComponent = useFastField ? FastField : Field;

const skjemagruppeClassName = classNames(
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ import { TypedFormikFormContext } from '../typed-formik-form/TypedFormikForm';

interface Props {
heading?: string;
summaryRef?: RefObject<HTMLDivElement>;
summaryRef?: RefObject<HTMLDivElement | null>;
wrapper?: (errorSummary: JSX.Element) => JSX.Element;
}

Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ import React, { RefObject } from 'react';

export interface Props extends Pick<ErrorSummaryProps, 'heading' | 'headingTag'> {
errors: ValidationSummaryError[];
summaryRef?: RefObject<HTMLDivElement>;
summaryRef?: RefObject<HTMLDivElement | null>;
}

export interface ValidationSummaryError {
Loading

0 comments on commit f7e04cf

Please sign in to comment.