Skip to content

Commit 2058f9d

Browse files
authored
Merge 8cc3644 into 745eab9
2 parents 745eab9 + 8cc3644 commit 2058f9d

File tree

6 files changed

+13
-10
lines changed

6 files changed

+13
-10
lines changed

Diff for: .changeset/config.json

+2-7
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,8 @@
88
"baseBranch": "main",
99
"updateInternalDependencies": "patch",
1010
"bumpVersionsWithWorkspaceProtocolOnly": false,
11-
"ignore": [
12-
"github-pages",
13-
"@configs/*",
14-
"coverage",
15-
"storybooks",
16-
"@guardian/react-crossword"
17-
],
11+
"useCalculatedVersion": true,
12+
"ignore": ["github-pages", "@configs/*", "coverage", "storybooks"],
1813
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
1914
"onlyUpdatePeerDependentsWhenOutOfRange": true
2015
}

Diff for: .changeset/react-crozzword-next.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@guardian/react-crossword': major
3+
---
4+
5+
to be completed...

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ The following packages live in `libs/@guardian/*` and are published to NPM:
2424
- [@guardian/libs](libs/@guardian/libs)
2525
- [@guardian/newsletter-types](libs/@guardian/newsletter-types)
2626
- [@guardian/prettier](libs/@guardian/prettier)
27+
- [@guardian/react-crossword](libs/@guardian/react-crossword)
2728
- [@guardian/source](libs/@guardian/source)
2829
- [@guardian/source-development-kitchen](libs/@guardian/source-development-kitchen)
2930
- [@guardian/tsconfig](libs/@guardian/tsconfig)

Diff for: libs/@guardian/react-crossword/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "@guardian/react-crossword",
3-
"version": "3.0.0-alpha.0",
4-
"private": true,
3+
"version": "2.0.2",
54
"license": "Apache-2.0",
65
"sideEffects": false,
76
"type": "module",

Diff for: libs/@guardian/react-crossword/src/components/Grid.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -293,13 +293,15 @@ export const Grid = () => {
293293
switch (inputType) {
294294
case 'deleteContentBackward':
295295
deleteLetter(guess ?? '');
296+
event.preventDefault();
296297
break;
297298

298299
case 'insertText':
299300
case 'insertCompositionText':
300301
if (data) {
301302
typeLetter(data.slice(-1));
302303
}
304+
event.preventDefault();
303305
break;
304306
}
305307
}

Diff for: libs/@guardian/react-crossword/src/context/Progress.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,9 @@ export const ProgressProvider = ({
9898
// To ensure the UI is kept up-to-date, we maintain a separate React state (`progress`) that mirrors
9999
// the localStorage state and forces the necessary re-renders.
100100
const [progress, setProgress] = useState(defaultValue);
101+
// Make local storage compatible with prev versions
101102
const [storedProgress, setStoredProgress, rest] =
102-
useLocalStorageState<Progress>(id, {
103+
useLocalStorageState<Progress>(`crosswords.` + id, {
103104
defaultValue,
104105
serializer,
105106
});

0 commit comments

Comments
 (0)