Skip to content

Commit a020d18

Browse files
authored
FE-54: Update misc packages (#7893)
1 parent d3ce18c commit a020d18

File tree

76 files changed

+4835
-5348
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+4835
-5348
lines changed

apps/hash-ai-worker-ts/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"@apps/hash-graph": "0.0.0-private",
4848
"@blockprotocol/graph": "0.4.0-canary.2",
4949
"@blockprotocol/type-system": "0.1.2-canary.1",
50-
"@google-cloud/storage": "7.16.0",
50+
"@google-cloud/storage": "7.17.2",
5151
"@google-cloud/vertexai": "1.10.0",
5252
"@local/advanced-types": "0.0.0-private",
5353
"@local/hash-backend-utils": "0.0.0-private",
@@ -63,14 +63,14 @@
6363
"@temporalio/workflow": "1.12.1",
6464
"ajv": "8.17.1",
6565
"ajv-formats": "3.0.1",
66-
"axios": "1.12.0",
66+
"axios": "1.12.2",
6767
"cache-manager": "5.7.6",
68-
"dedent": "0.7.0",
68+
"dedent": "1.7.0",
6969
"dotenv-flow": "3.3.0",
7070
"e2b": "0.13.1",
71-
"exponential-backoff": "3.1.2",
71+
"exponential-backoff": "3.1.3",
7272
"googleapis": "133.0.0",
73-
"gpt-tokenizer": "3.0.1",
73+
"gpt-tokenizer": "3.2.0",
7474
"is-docker": "3.0.0",
7575
"jsdom": "24.1.3",
7676
"llamaindex": "0.8.37",
@@ -87,7 +87,7 @@
8787
"puppeteer-extra-plugin-stealth": "2.11.2",
8888
"sanitize-html": "2.17.0",
8989
"tsconfig-paths-webpack-plugin": "4.2.0",
90-
"tsx": "4.20.3",
90+
"tsx": "4.20.6",
9191
"typescript": "5.9.3"
9292
},
9393
"devDependencies": {
@@ -97,16 +97,16 @@
9797
"@types/dotenv-flow": "3.3.3",
9898
"@types/jsdom": "21.1.7",
9999
"@types/lodash": "4.17.20",
100-
"@types/md5": "2.3.5",
100+
"@types/md5": "2.3.6",
101101
"@types/mime-types": "2.1.4",
102-
"@types/node": "22.16.5",
102+
"@types/node": "22.18.11",
103103
"@types/papaparse": "5.3.16",
104104
"@types/sanitize-html": "2.16.0",
105105
"@vitest/coverage-istanbul": "3.2.4",
106-
"eslint": "9.37.0",
106+
"eslint": "9.38.0",
107107
"rimraf": "6.0.1",
108108
"typescript": "5.9.3",
109109
"vitest": "3.2.4",
110-
"wait-on": "8.0.4"
110+
"wait-on": "9.0.1"
111111
}
112112
}

apps/hash-api/package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"@ory/client": "1.1.41",
5959
"@ory/hydra-client": "2.2.1",
6060
"@ory/kratos-client": "1.0.0",
61-
"@rudderstack/rudder-sdk-node": "2.1.6",
61+
"@rudderstack/rudder-sdk-node": "2.1.10",
6262
"@sentry/node": "9.44.0",
6363
"@snowplow/node-tracker": "3.24.6",
6464
"@temporalio/client": "1.12.1",
@@ -70,19 +70,19 @@
7070
"apollo-server-errors": "3.3.1",
7171
"apollo-server-express": "3.9.0",
7272
"app-root-path": "3.1.0",
73-
"axios": "1.12.0",
73+
"axios": "1.12.2",
7474
"body-parser": "1.20.3",
75-
"clipboardy": "2.3.0",
75+
"clipboardy": "5.0.0",
7676
"cors": "2.8.5",
7777
"cross-env": "7.0.3",
78-
"dedent": "0.7.0",
78+
"dedent": "1.7.0",
7979
"effect": "3.18.4",
80-
"exponential-backoff": "3.1.2",
80+
"exponential-backoff": "3.1.3",
8181
"express": "4.21.2",
8282
"express-handlebars": "7.1.3",
83-
"express-http-proxy": "2.1.1",
83+
"express-http-proxy": "2.1.2",
8484
"express-rate-limit": "7.5.1",
85-
"fractional-indexing": "2.1.0",
85+
"fractional-indexing": "3.2.0",
8686
"googleapis": "133.0.0",
8787
"graphql": "16.11.0",
8888
"graphql-parse-resolve-info": "4.14.1",
@@ -91,7 +91,7 @@
9191
"hot-shots": "8.5.2",
9292
"html-to-text": "8.2.1",
9393
"http-terminator": "3.2.0",
94-
"immer": "9.0.21",
94+
"immer": "10.1.3",
9595
"install": "0.13.0",
9696
"js-yaml": "4.1.0",
9797
"jsonpath": "1.1.1",
@@ -101,10 +101,10 @@
101101
"mime-types": "2.1.35",
102102
"nanoid": "3.3.11",
103103
"nodemailer": "6.10.1",
104-
"oembed-providers": "1.0.20250715",
104+
"oembed-providers": "1.0.20250926",
105105
"openai": "4.104.0",
106106
"ts-json-schema-generator": "1.5.1",
107-
"tsx": "4.20.3",
107+
"tsx": "4.20.6",
108108
"typescript": "5.9.3",
109109
"ws": "8.18.3"
110110
},
@@ -122,14 +122,14 @@
122122
"@types/jsonpath": "0.2.4",
123123
"@types/lodash": "4.17.20",
124124
"@types/mailchimp__mailchimp_marketing": "3.0.21",
125-
"@types/md5": "2.3.5",
125+
"@types/md5": "2.3.6",
126126
"@types/mime-types": "2.1.4",
127127
"@types/nodemailer": "6.4.17",
128128
"@vitest/coverage-istanbul": "3.2.4",
129-
"eslint": "9.37.0",
129+
"eslint": "9.38.0",
130130
"rimraf": "6.0.1",
131131
"typescript": "5.9.3",
132132
"vitest": "3.2.4",
133-
"wait-on": "8.0.4"
133+
"wait-on": "9.0.1"
134134
}
135135
}

apps/hash-api/src/graphql/resolvers/knowledge/block-collection/update-block-collection-actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { typedEntries } from "@local/advanced-types/typed-entries";
99
import type { AuthenticationContext } from "@local/hash-graph-sdk/authentication-context";
1010
import { mergePropertiesAndMetadata } from "@local/hash-graph-sdk/entity";
1111
import { ApolloError, UserInputError } from "apollo-server-errors";
12-
import produce from "immer";
12+
import { produce } from "immer";
1313

1414
import type { ImpureGraphContext } from "../../../../graph/context-types";
1515
import type { PropertyValue } from "../../../../graph/knowledge/primitive/entity";

apps/hash-frontend/package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
"@apollo/client": "3.10.5",
2222
"@blockprotocol/core": "0.1.4",
2323
"@blockprotocol/graph": "0.4.0-canary.2",
24-
"@blockprotocol/hook": "0.1.3",
25-
"@blockprotocol/service": "0.1.4",
24+
"@blockprotocol/hook": "0.1.8",
25+
"@blockprotocol/service": "0.1.5",
2626
"@blockprotocol/type-system": "0.1.2-canary.1",
2727
"@dnd-kit/core": "6.3.1",
2828
"@dnd-kit/sortable": "7.0.2",
@@ -44,6 +44,7 @@
4444
"@local/hash-graph-sdk": "0.0.0-private",
4545
"@local/hash-isomorphic-utils": "0.0.0-private",
4646
"@local/status": "0.0.0-private",
47+
"@mantine/hooks": "8.3.5",
4748
"@mui/icons-material": "5.18.0",
4849
"@mui/material": "5.18.0",
4950
"@mui/system": "5.18.0",
@@ -64,14 +65,14 @@
6465
"@tldraw/tlvalidate": "2.0.0-alpha.12",
6566
"@types/prismjs": "1.26.5",
6667
"@vercel/edge-config": "0.4.1",
67-
"axios": "1.12.0",
68+
"axios": "1.12.2",
6869
"buffer": "6.0.3",
69-
"clsx": "1.2.1",
70+
"clsx": "2.1.1",
7071
"date-fns": "4.1.0",
7172
"dotenv-flow": "3.3.0",
72-
"elkjs": "0.10.0",
73+
"elkjs": "0.11.0",
7374
"emoji-mart": "5.6.0",
74-
"fractional-indexing": "2.1.0",
75+
"fractional-indexing": "3.2.0",
7576
"framer-motion": "11.18.2",
7677
"graphology": "0.26.0",
7778
"graphology-layout": "0.6.1",
@@ -80,7 +81,7 @@
8081
"graphology-simple-path": "0.2.0",
8182
"graphql": "16.11.0",
8283
"iframe-resizer": "4.4.5",
83-
"immer": "9.0.21",
84+
"immer": "10.1.3",
8485
"jsonpath": "1.1.1",
8586
"lodash": "4.17.21",
8687
"marked": "4.3.0",
@@ -101,21 +102,20 @@
101102
"prosemirror-state": "1.4.3",
102103
"prosemirror-transform": "1.7.0",
103104
"prosemirror-view": "patch:prosemirror-view@npm%3A1.29.1#~/.yarn/patches/prosemirror-view-npm-1.29.1-ff37db4eea.patch",
104-
"react": "19.1.1",
105+
"react": "19.2.0",
105106
"react-beautiful-dnd": "13.1.1",
106-
"react-dom": "19.1.1",
107+
"react-dom": "19.2.0",
107108
"react-dropzone": "14.3.8",
108109
"react-full-screen": "1.1.1",
109-
"react-hook-form": "7.61.1",
110-
"react-markdown": "9.1.0",
110+
"react-hook-form": "7.65.0",
111+
"react-markdown": "10.1.0",
111112
"react-pdf": "9.2.1",
112113
"react-responsive-carousel": "3.2.23",
113114
"react-transition-group": "4.4.5",
114-
"react-virtuoso": "4.13.0",
115+
"react-virtuoso": "4.14.1",
115116
"react-window": "1.8.11",
116117
"reactflow": "11.11.4",
117118
"remark-gfm": "4.0.1",
118-
"rooks": "7.14.1",
119119
"safe-stable-stringify": "2.5.0",
120120
"setimmediate": "1.0.5",
121121
"sigma": "3.0.2",
@@ -132,7 +132,7 @@
132132
"@graphql-codegen/typescript-operations": "2.5.13",
133133
"@local/eslint": "0.0.0-private",
134134
"@local/tsconfig": "0.0.0-private",
135-
"@next/bundle-analyzer": "15.5.2",
135+
"@next/bundle-analyzer": "15.5.6",
136136
"@types/dotenv-flow": "3.3.3",
137137
"@types/gapi": "0.0.47",
138138
"@types/google.accounts": "0.0.17",
@@ -141,18 +141,18 @@
141141
"@types/jsonpath": "0.2.4",
142142
"@types/lodash": "4.17.20",
143143
"@types/papaparse": "5.3.16",
144-
"@types/react": "19.1.9",
144+
"@types/react": "19.2.2",
145145
"@types/react-beautiful-dnd": "13.1.8",
146-
"@types/react-dom": "19.1.7",
146+
"@types/react-dom": "19.2.2",
147147
"@types/react-window": "1.8.8",
148148
"@types/url-regex-safe": "1.0.2",
149149
"@welldone-software/why-did-you-render": "10.0.1",
150-
"eslint": "9.37.0",
150+
"eslint": "9.38.0",
151151
"graphology-types": "0.24.8",
152152
"rimraf": "6.0.1",
153-
"sass": "1.89.2",
153+
"sass": "1.93.2",
154154
"typescript": "5.9.3",
155-
"wait-on": "8.0.4",
156-
"webpack": "5.101.0"
155+
"wait-on": "9.0.1",
156+
"webpack": "5.102.1"
157157
}
158158
}

apps/hash-frontend/src/components/grid/utils/use-grid-tooltip.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import type { DataEditorRef } from "@glideapps/glide-data-grid";
2+
import { useWindowEvent } from "@mantine/hooks";
23
import type { PopoverPosition } from "@mui/material";
34
import { Box, Popper, Typography } from "@mui/material";
45
import type { VirtualElement } from "@popperjs/core";
56
import { isEqual } from "lodash";
67
import { usePopupState } from "material-ui-popup-state/hooks";
78
import type { RefObject } from "react";
89
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
9-
import { useWindowEventListener } from "rooks";
1010

1111
import type {
1212
GridTooltip,
@@ -34,7 +34,7 @@ export const useGridTooltip = (
3434
const tooltipRef = useRef<HTMLDivElement>(null);
3535

3636
// prevent tooltip from staying at the same position when user scrolls vertically
37-
useWindowEventListener(
37+
useWindowEvent(
3838
"scroll",
3939
() => {
4040
popupState.close();

apps/hash-frontend/src/components/hooks/use-default-state.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { useLocalStorage } from "@mantine/hooks";
12
import type { Dispatch, SetStateAction } from "react";
23
import { useCallback, useState } from "react";
3-
import { useLocalstorageState } from "rooks";
44

55
export const useDefaultState = <
66
T extends object | number | string | boolean | null | undefined,
@@ -46,13 +46,13 @@ export const useCachedDefaultState = <
4646
produceNextValue: (nextValue: T, currentValue: T) => T = (nextValue) =>
4747
nextValue,
4848
): [T, Dispatch<SetStateAction<T>>] => {
49-
const [{ prevDefault, currentValue }, setNextValue] = useLocalstorageState(
49+
const [{ prevDefault, currentValue }, setNextValue] = useLocalStorage({
5050
key,
51-
{
51+
defaultValue: {
5252
prevDefault: defaultValue,
5353
currentValue: defaultValue,
5454
},
55-
);
55+
});
5656

5757
if (prevDefault !== defaultValue) {
5858
setNextValue({
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { useEffect } from "react";
2+
3+
export function useDocumentEvent<K extends keyof DocumentEventMap>(
4+
type: K,
5+
listener: (this: Document, ev: DocumentEventMap[K]) => void,
6+
options?: boolean | AddEventListenerOptions,
7+
) {
8+
useEffect(() => {
9+
document.addEventListener(type, listener, options);
10+
return () => document.removeEventListener(type, listener, options);
11+
}, [type, listener, options]);
12+
}

apps/hash-frontend/src/pages/process.page/process-editor-wrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { AlertModal } from "@hashintel/design-system";
33
import type { PetriNetDefinitionObject } from "@hashintel/petrinaut";
44
import { defaultTokenTypes, Petrinaut } from "@hashintel/petrinaut";
55
import { Box, Stack } from "@mui/material";
6-
import produce from "immer";
6+
import { produce } from "immer";
77
import { useCallback, useMemo, useState } from "react";
88

99
import { ProcessEditBar } from "./process-editor-wrapper/process-edit-bar";

apps/hash-frontend/src/pages/shared/block-collection/block-collection.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import { useApolloClient } from "@apollo/client";
44
import type { EntityId, WebId } from "@blockprotocol/type-system";
55
import type { BlockCollectionContentItem } from "@local/hash-isomorphic-utils/entity";
66
import type { ProsemirrorManager } from "@local/hash-isomorphic-utils/prosemirror-manager";
7+
import { useLocalStorage } from "@mantine/hooks";
78
import type { BoxProps } from "@mui/material";
89
import { Box } from "@mui/material";
910
import type { EditorView } from "prosemirror-view";
1011
import type { FunctionComponent } from "react";
1112
import { useLayoutEffect, useRef } from "react";
12-
import { useLocalstorageState } from "rooks";
1313

1414
import { useUserBlocks } from "../../../blocks/user-blocks";
1515
import { useSnackbar } from "../../../components/hooks/use-snackbar";
@@ -48,9 +48,9 @@ export const BlockCollection: FunctionComponent<BlockCollectionProps> = ({
4848
const client = useApolloClient();
4949

5050
const [portals, renderPortal, clearPortals] = usePortals();
51-
const [debugging] = useLocalstorageState<
51+
const [debugging] = useLocalStorage<
5252
{ restartCollabButton?: boolean } | boolean
53-
>("hash.internal.debugging", false);
53+
>({ key: "hash.internal.debugging", defaultValue: false });
5454

5555
const prosemirrorSetup = useRef<null | {
5656
view: EditorView;

apps/hash-frontend/src/pages/shared/block-collection/block-config-menu/block-config-menu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { JsonObject, JsonValue } from "@blockprotocol/core";
22
import { TextField } from "@hashintel/design-system";
33
import type { BlockEntity } from "@local/hash-isomorphic-utils/entity";
44
import type { JsonSchema } from "@local/hash-isomorphic-utils/json-utils";
5+
import { useHotkeys } from "@mantine/hooks";
56
import {
67
Box,
78
Checkbox,
@@ -14,7 +15,6 @@ import type { PopupState } from "material-ui-popup-state/hooks";
1415
import { bindPopover } from "material-ui-popup-state/hooks";
1516
import type { ChangeEvent, ForwardedRef, FunctionComponent } from "react";
1617
import { useEffect, useRef, useState } from "react";
17-
import { useKey } from "rooks";
1818

1919
import { MenuItem } from "../../../../shared/ui";
2020

@@ -188,7 +188,7 @@ export const BlockConfigMenu: FunctionComponent<BlockConfigMenuProps> = ({
188188
popupState,
189189
updateConfig,
190190
}) => {
191-
useKey(["Escape"], closeMenu);
191+
useHotkeys([["Escape", closeMenu]]);
192192

193193
const configProperties = extractConfigPropertySchemas(blockSchema ?? {});
194194

0 commit comments

Comments
 (0)