scrabble-solver 2.15.5 → 2.15.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nx/workspace-data/file-map.json +582 -537
- package/.nx/workspace-data/lockfile.hash +1 -1
- package/.nx/workspace-data/nx_files.nxt +0 -0
- package/.nx/workspace-data/parsed-lock-file.json +218 -217
- package/.nx/workspace-data/project-graph.json +197 -225
- package/cypress/e2e/bugs/363-dictionary-input-unique-words.ts +1 -1
- package/lerna.json +1 -1
- package/package.json +4 -4
- package/packages/configs/package.json +3 -3
- package/packages/constants/package.json +1 -1
- package/packages/dictionaries/package.json +4 -4
- package/packages/logger/package.json +2 -2
- package/packages/scrabble-solver/.next/BUILD_ID +1 -1
- package/packages/scrabble-solver/.next/build-manifest.json +9 -9
- package/packages/scrabble-solver/.next/cache/.rscinfo +1 -1
- package/packages/scrabble-solver/.next/cache/.tsbuildinfo +1 -1
- package/packages/scrabble-solver/.next/cache/eslint/.cache_8dgz12 +1 -1
- package/packages/scrabble-solver/.next/cache/webpack/client-production/0.pack +0 -0
- package/packages/scrabble-solver/.next/cache/webpack/client-production/index.pack +0 -0
- package/packages/scrabble-solver/.next/cache/webpack/client-production/index.pack.old +0 -0
- package/packages/scrabble-solver/.next/cache/webpack/edge-server-production/0.pack +0 -0
- package/packages/scrabble-solver/.next/cache/webpack/edge-server-production/index.pack +0 -0
- package/packages/scrabble-solver/.next/cache/webpack/edge-server-production/index.pack.old +0 -0
- package/packages/scrabble-solver/.next/cache/webpack/server-production/0.pack +0 -0
- package/packages/scrabble-solver/.next/cache/webpack/server-production/index.pack +0 -0
- package/packages/scrabble-solver/.next/cache/webpack/server-production/index.pack.old +0 -0
- package/packages/scrabble-solver/.next/diagnostics/framework.json +1 -1
- package/packages/scrabble-solver/.next/next-minimal-server.js.nft.json +1 -1
- package/packages/scrabble-solver/.next/next-server.js.nft.json +1 -1
- package/packages/scrabble-solver/.next/prerender-manifest.json +1 -1
- package/packages/scrabble-solver/.next/required-server-files.json +1 -1
- package/packages/scrabble-solver/.next/routes-manifest.json +1 -1
- package/packages/scrabble-solver/.next/server/chunks/{964.js → 292.js} +1 -1
- package/packages/scrabble-solver/.next/server/chunks/331.js +2 -2
- package/packages/scrabble-solver/.next/server/chunks/577.js +1 -1
- package/packages/scrabble-solver/.next/server/chunks/807.js +1 -0
- package/packages/scrabble-solver/.next/server/middleware-build-manifest.js +1 -1
- package/packages/scrabble-solver/.next/server/pages/404.html +1 -1
- package/packages/scrabble-solver/.next/server/pages/404.js.nft.json +1 -1
- package/packages/scrabble-solver/.next/server/pages/500.html +1 -1
- package/packages/scrabble-solver/.next/server/pages/_app.js +1 -1
- package/packages/scrabble-solver/.next/server/pages/_app.js.nft.json +1 -1
- package/packages/scrabble-solver/.next/server/pages/_document.js +1 -1
- package/packages/scrabble-solver/.next/server/pages/_error.js +1 -1
- package/packages/scrabble-solver/.next/server/pages/_error.js.nft.json +1 -1
- package/packages/scrabble-solver/.next/server/pages/api/dictionary/[locale]/[word].js +2 -2
- package/packages/scrabble-solver/.next/server/pages/api/dictionary/[locale]/[word].js.nft.json +1 -1
- package/packages/scrabble-solver/.next/server/pages/api/dictionary/[locale].js +1 -1
- package/packages/scrabble-solver/.next/server/pages/api/dictionary/[locale].js.nft.json +1 -1
- package/packages/scrabble-solver/.next/server/pages/api/solve.js +1 -1
- package/packages/scrabble-solver/.next/server/pages/api/solve.js.nft.json +1 -1
- package/packages/scrabble-solver/.next/server/pages/api/verify.js +1 -1
- package/packages/scrabble-solver/.next/server/pages/api/verify.js.nft.json +1 -1
- package/packages/scrabble-solver/.next/server/pages/api/visit.js +1 -1
- package/packages/scrabble-solver/.next/server/pages/index.html +1 -1
- package/packages/scrabble-solver/.next/server/pages/index.js +1 -1
- package/packages/scrabble-solver/.next/server/pages/index.js.nft.json +1 -1
- package/packages/scrabble-solver/.next/server/pages/index.json +1 -1
- package/packages/scrabble-solver/.next/static/chunks/main-8d63777bf8b90ccb.js +1 -0
- package/packages/scrabble-solver/.next/static/chunks/pages/_app-79ef8056607a21da.js +1 -0
- package/packages/scrabble-solver/.next/static/chunks/pages/{index-817f862d5980cebe.js → index-5866a12bfb8f00c4.js} +1 -1
- package/packages/scrabble-solver/.next/static/css/bc158181051cf066.css +2 -0
- package/packages/scrabble-solver/.next/static/{_5S9YxXzM3OLRGGJe0qQv → uekKIGQQUe4pM47TO6mBn}/_buildManifest.js +1 -1
- package/packages/scrabble-solver/.next/trace +23 -23
- package/packages/scrabble-solver/package.json +16 -16
- package/packages/scrabble-solver/public/service-worker.js +2 -2
- package/packages/scrabble-solver/public/service-worker.js.map +1 -1
- package/packages/scrabble-solver/src/components/Dictionary/Dictionary.module.scss +9 -1
- package/packages/scrabble-solver/src/components/Dictionary/Dictionary.tsx +3 -0
- package/packages/scrabble-solver/src/hooks/useAppLayout.ts +3 -0
- package/packages/solver/package.json +5 -5
- package/packages/types/package.json +2 -2
- package/packages/word-definitions/package.json +2 -2
- package/packages/word-lists/package.json +2 -2
- package/packages/scrabble-solver/.next/server/chunks/67.js +0 -1
- package/packages/scrabble-solver/.next/static/chunks/main-6e8e32bd2f4e331c.js +0 -1
- package/packages/scrabble-solver/.next/static/chunks/pages/_app-c960503f8645e1de.js +0 -1
- package/packages/scrabble-solver/.next/static/css/a7aa574f03b29f75.css +0 -2
- /package/packages/scrabble-solver/.next/static/{_5S9YxXzM3OLRGGJe0qQv → uekKIGQQUe4pM47TO6mBn}/_ssgManifest.js +0 -0
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
position: relative;
|
|
5
5
|
transition: var(--transition);
|
|
6
6
|
word-break: break-word;
|
|
7
|
-
overflow: hidden;
|
|
8
7
|
|
|
9
8
|
&.isAllowed {
|
|
10
9
|
background-color: var(--color--green--light);
|
|
@@ -13,6 +12,10 @@
|
|
|
13
12
|
&.isNotAllowed {
|
|
14
13
|
background-color: var(--color--red--light);
|
|
15
14
|
}
|
|
15
|
+
|
|
16
|
+
&:focus-within {
|
|
17
|
+
@include focus-effect;
|
|
18
|
+
}
|
|
16
19
|
}
|
|
17
20
|
|
|
18
21
|
.content {
|
|
@@ -20,6 +23,11 @@
|
|
|
20
23
|
|
|
21
24
|
height: 100%;
|
|
22
25
|
overflow-y: auto;
|
|
26
|
+
border-radius: inherit;
|
|
27
|
+
|
|
28
|
+
&:focus-visible {
|
|
29
|
+
outline: none;
|
|
30
|
+
}
|
|
23
31
|
}
|
|
24
32
|
|
|
25
33
|
.result {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import classNames from 'classnames';
|
|
2
2
|
import { FunctionComponent } from 'react';
|
|
3
3
|
|
|
4
|
+
import { useAppLayout } from 'hooks';
|
|
4
5
|
import { selectDictionary, selectDictionaryError, useTranslate, useTypedSelector } from 'state';
|
|
5
6
|
|
|
6
7
|
import EmptyState from '../EmptyState';
|
|
@@ -14,6 +15,7 @@ interface Props {
|
|
|
14
15
|
|
|
15
16
|
const Dictionary: FunctionComponent<Props> = ({ className }) => {
|
|
16
17
|
const translate = useTranslate();
|
|
18
|
+
const { dictionaryResultsHeight } = useAppLayout();
|
|
17
19
|
const { results, isLoading } = useTypedSelector(selectDictionary);
|
|
18
20
|
const error = useTypedSelector(selectDictionaryError);
|
|
19
21
|
const isLastAllowed = results.at(-1)?.isAllowed;
|
|
@@ -24,6 +26,7 @@ const Dictionary: FunctionComponent<Props> = ({ className }) => {
|
|
|
24
26
|
[styles.isAllowed]: isLastAllowed === true,
|
|
25
27
|
[styles.isNotAllowed]: isLastAllowed === false,
|
|
26
28
|
})}
|
|
29
|
+
style={{ height: dictionaryResultsHeight }}
|
|
27
30
|
>
|
|
28
31
|
<div className={styles.content}>
|
|
29
32
|
{typeof error !== 'undefined' && !isLoading && <EmptyState variant="error">{error.message}</EmptyState>}
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
RACK_TILE_SIZE_MAX,
|
|
18
18
|
RESULTS_COLUMN_WIDTH,
|
|
19
19
|
SOLVER_COLUMN_WIDTH,
|
|
20
|
+
TEXT_INPUT_HEIGHT,
|
|
20
21
|
} from 'parameters';
|
|
21
22
|
import { selectConfig, selectShowCoordinates, useTypedSelector } from 'state';
|
|
22
23
|
import { ResultColumnId } from 'types';
|
|
@@ -67,6 +68,7 @@ const useAppLayout = () => {
|
|
|
67
68
|
const maxControlsWidth = tileSize * config.rackSize + 2 * BORDER_WIDTH;
|
|
68
69
|
const showResultsInModal = isLessThanL;
|
|
69
70
|
const dictionaryHeight = showResultsInModal ? DICTIONARY_HEIGHT_MOBILE : DICTIONARY_HEIGHT;
|
|
71
|
+
const dictionaryResultsHeight = dictionaryHeight - TEXT_INPUT_HEIGHT - 2 * BORDER_WIDTH;
|
|
70
72
|
const modalWidth = isLessThanS ? viewportWidth : MODAL_WIDTH;
|
|
71
73
|
const resultsHeight = isLessThanL
|
|
72
74
|
? viewportHeight - dictionaryHeight - BUTTON_HEIGHT - MODAL_HEADER_HEIGHT - 5 * componentsSpacing
|
|
@@ -86,6 +88,7 @@ const useAppLayout = () => {
|
|
|
86
88
|
coordinatesFontSize: coordinatesSize * 0.6,
|
|
87
89
|
coordinatesSize,
|
|
88
90
|
dictionaryHeight,
|
|
91
|
+
dictionaryResultsHeight,
|
|
89
92
|
isModalFullWidth: isLessThanS,
|
|
90
93
|
logoHeight,
|
|
91
94
|
logoWidth: logoHeight * LOGO_ASPECT_RATIO,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scrabble-solver/solver",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.6",
|
|
4
4
|
"description": "Scrabble Solver 2 - Solver",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@kamilmielnik/trie": "^3.1.0",
|
|
27
|
-
"@scrabble-solver/types": "^2.15.
|
|
27
|
+
"@scrabble-solver/types": "^2.15.6"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@scrabble-solver/configs": "^2.15.
|
|
31
|
-
"@scrabble-solver/constants": "^2.15.
|
|
32
|
-
"@scrabble-solver/dictionaries": "^2.15.
|
|
30
|
+
"@scrabble-solver/configs": "^2.15.6",
|
|
31
|
+
"@scrabble-solver/constants": "^2.15.6",
|
|
32
|
+
"@scrabble-solver/dictionaries": "^2.15.6"
|
|
33
33
|
},
|
|
34
34
|
"gitHead": "1e2d1ad49a288d4a44196d8e3336740da132c637"
|
|
35
35
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scrabble-solver/types",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.6",
|
|
4
4
|
"description": "Scrabble Solver 2 - Types",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"clean": "rimraf build/"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@scrabble-solver/constants": "^2.15.
|
|
26
|
+
"@scrabble-solver/constants": "^2.15.6"
|
|
27
27
|
},
|
|
28
28
|
"gitHead": "1e2d1ad49a288d4a44196d8e3336740da132c637"
|
|
29
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scrabble-solver/word-definitions",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.6",
|
|
4
4
|
"description": "Scrabble Solver 2 - Word definitions",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"clean": "rimraf build/"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@scrabble-solver/types": "^2.15.
|
|
26
|
+
"@scrabble-solver/types": "^2.15.6",
|
|
27
27
|
"cheerio": "^1.0.0",
|
|
28
28
|
"follow-redirects": "^1.15.9",
|
|
29
29
|
"striptags": "^3.2.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scrabble-solver/word-lists",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.6",
|
|
4
4
|
"description": "Scrabble Solver 2 - Word lists",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"clean": "rimraf build/"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@scrabble-solver/types": "^2.15.
|
|
26
|
+
"@scrabble-solver/types": "^2.15.6",
|
|
27
27
|
"cheerio": "^1.0.0",
|
|
28
28
|
"follow-redirects": "^1.15.9",
|
|
29
29
|
"latinize": "^1.0.0",
|