scrabble-solver 2.13.8 → 2.13.9
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/.eslintignore +4 -1
- package/.nx/cache/nx_files.nxt +0 -0
- package/.nx/workspace-data/file-map.json +1282 -1278
- package/.nx/workspace-data/lockfile.hash +1 -1
- package/LICENSE +1 -1
- package/README.md +24 -8
- package/jest.setup.js +1 -1
- package/lerna.json +1 -1
- package/package.json +3 -2
- package/packages/configs/build/languages/english.js +1 -0
- package/packages/configs/package.json +3 -3
- package/packages/configs/src/languages/english.ts +2 -0
- package/packages/constants/package.json +1 -1
- package/packages/dictionaries/package-lock.json +2 -2
- package/packages/dictionaries/package.json +4 -4
- package/packages/logger/package-lock.json +2 -2
- package/packages/logger/package.json +1 -1
- package/packages/scrabble-solver/.next/BUILD_ID +1 -1
- package/packages/scrabble-solver/.next/build-manifest.json +6 -6
- 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/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/server-production/0.pack +0 -0
- package/packages/scrabble-solver/.next/cache/webpack/server-production/index.pack +0 -0
- package/packages/scrabble-solver/.next/prerender-manifest.js +1 -1
- package/packages/scrabble-solver/.next/prerender-manifest.json +1 -1
- package/packages/scrabble-solver/.next/routes-manifest.json +1 -1
- package/packages/scrabble-solver/.next/server/chunks/807.js +1 -1
- 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/500.html +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.json +1 -1
- package/packages/scrabble-solver/.next/static/chunks/pages/{404-63b972b24be99c62.js → 404-01653a877b233143.js} +1 -1
- package/packages/scrabble-solver/.next/static/chunks/pages/_app-735b5863675c1b5d.js +17 -0
- package/packages/scrabble-solver/.next/static/chunks/pages/{index-7b73be2915cc7099.js → index-36c448d585a58425.js} +1 -1
- package/packages/scrabble-solver/.next/static/css/841a5b5f0b2fb131.css +2 -0
- package/packages/scrabble-solver/.next/static/{7zESQYo9UAqNh9LV0b7Sd → eLvYNd4B2hzSgBZ_PuZcQ}/_buildManifest.js +1 -1
- package/packages/scrabble-solver/.next/trace +44 -44
- package/packages/scrabble-solver/package-lock.json +2 -2
- package/packages/scrabble-solver/package.json +8 -8
- package/packages/scrabble-solver/public/service-worker.js +1 -1
- package/packages/scrabble-solver/public/service-worker.js.map +1 -1
- package/packages/scrabble-solver/src/components/Board/Board.tsx +3 -3
- package/packages/scrabble-solver/src/components/Board/BoardPure.tsx +27 -19
- package/packages/scrabble-solver/src/components/Board/components/Actions/Actions.tsx +8 -12
- package/packages/scrabble-solver/src/components/Board/components/Actions/lib.ts +30 -0
- package/packages/scrabble-solver/src/components/Board/hooks/useBackgroundImage.tsx +3 -24
- package/packages/scrabble-solver/src/components/Radio/Radio.module.scss +2 -1
- package/packages/scrabble-solver/src/components/Tile/Tile.module.scss +0 -2
- package/packages/scrabble-solver/src/components/Tile/Tile.tsx +1 -15
- package/packages/scrabble-solver/src/components/Tooltip/Tooltip.module.scss +1 -0
- package/packages/scrabble-solver/src/hooks/useAppLayout.ts +0 -1
- package/packages/scrabble-solver/src/i18n/languages/english.json +2 -1
- package/packages/scrabble-solver/src/i18n/languages/french.json +2 -1
- package/packages/scrabble-solver/src/i18n/languages/german.json +2 -1
- package/packages/scrabble-solver/src/i18n/languages/persian.json +2 -1
- package/packages/scrabble-solver/src/i18n/languages/polish.json +2 -1
- package/packages/scrabble-solver/src/i18n/languages/romanian.json +2 -1
- package/packages/scrabble-solver/src/i18n/languages/spanish.json +2 -1
- package/packages/scrabble-solver/src/icons/Ban.svg +4 -0
- package/packages/scrabble-solver/src/icons/index.ts +1 -0
- package/packages/scrabble-solver/src/lib/groupResults.ts +4 -7
- package/packages/scrabble-solver/src/lib/index.ts +1 -0
- package/packages/scrabble-solver/src/lib/resultMatchesCellFilter.ts +23 -0
- package/packages/scrabble-solver/src/parameters/index.ts +0 -9
- package/packages/scrabble-solver/src/state/sagas.ts +4 -4
- package/packages/scrabble-solver/src/state/selectors.ts +5 -8
- package/packages/scrabble-solver/src/state/slices/cellFilterInitialState.ts +2 -2
- package/packages/scrabble-solver/src/state/slices/cellFilterSlice.ts +29 -4
- package/packages/scrabble-solver/src/types/index.ts +10 -1
- package/packages/solver/package-lock.json +2 -2
- package/packages/solver/package.json +5 -5
- package/packages/types/package.json +2 -2
- package/packages/word-definitions/package-lock.json +2 -2
- package/packages/word-definitions/package.json +2 -2
- package/packages/word-lists/package-lock.json +2 -2
- package/packages/word-lists/package.json +2 -2
- package/.eslintrc.prettier-only.js +0 -9
- package/packages/scrabble-solver/.next/static/chunks/pages/_app-a2848b7efa6bb6b0.js +0 -17
- package/packages/scrabble-solver/.next/static/css/b37850c8d5270d91.css +0 -2
- package/scrabble-solver.sublime-project +0 -10
- /package/packages/scrabble-solver/.next/static/{7zESQYo9UAqNh9LV0b7Sd → eLvYNd4B2hzSgBZ_PuZcQ}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
11029787078342480152
|
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -17,6 +17,10 @@
|
|
|
17
17
|
Available at <a href="https://scrabble-solver.org">https://scrabble-solver.org</a> in 8 languages.
|
|
18
18
|
</p>
|
|
19
19
|
|
|
20
|
+
<p>
|
|
21
|
+
Run it on your machine: <code>npx scrabble-solver@latest</code>
|
|
22
|
+
</p>
|
|
23
|
+
|
|
20
24
|
<p>
|
|
21
25
|
<img height="32" src="https://raw.githubusercontent.com/twitter/twemoji/master/assets/svg/1f1ec-1f1e7.svg" alt="Flag of United Kingdom" title="English (GB)" />
|
|
22
26
|
<img height="32" src="https://raw.githubusercontent.com/twitter/twemoji/master/assets/svg/1f1fa-1f1f8.svg" alt="Flag of United States" title="English (US)" />
|
|
@@ -53,8 +57,9 @@
|
|
|
53
57
|
4. [Develop](#develop)
|
|
54
58
|
1. [Setup](#setup)
|
|
55
59
|
2. [Run app dev server](#run-app-dev-server)
|
|
56
|
-
3. [Rebuild
|
|
57
|
-
4. [
|
|
60
|
+
3. [Rebuild the entire project](#rebuild-the-entire-project)
|
|
61
|
+
4. [Rebuild a single package](#rebuild-a-single-package)
|
|
62
|
+
5. [Add a new language](#add-a-new-language)
|
|
58
63
|
5. [Tech stack](#tech-stack)
|
|
59
64
|
6. [Related projects](#related-projects)
|
|
60
65
|
7. [Media](#media)
|
|
@@ -80,6 +85,10 @@ You can run Scrabble Solver on your machine - all you need is [Node.js](https://
|
|
|
80
85
|
npx scrabble-solver@latest
|
|
81
86
|
```
|
|
82
87
|
|
|
88
|
+
Give it a while to install and download dictionaries. When it's done it will automatically open http://localhost:3333/ in your browser.
|
|
89
|
+
|
|
90
|
+
Hit <kbd>Ctrl</kbd> + <kbd>C</kbd> in your terminal to exit the app.
|
|
91
|
+
|
|
83
92
|
## Uninstall
|
|
84
93
|
|
|
85
94
|
Dictionaries and logs are stored in `$HOME/.scrabble-solver`.
|
|
@@ -91,8 +100,12 @@ rm -rf $HOME/.scrabble-solver
|
|
|
91
100
|
|
|
92
101
|
## Develop
|
|
93
102
|
|
|
103
|
+
These steps are required only if you want to make changes to the source code.
|
|
104
|
+
|
|
94
105
|
### Setup
|
|
95
106
|
|
|
107
|
+
One-time project setup.
|
|
108
|
+
|
|
96
109
|
```Shell
|
|
97
110
|
git clone https://github.com/kamilmielnik/scrabble-solver.git
|
|
98
111
|
cd scrabble-solver
|
|
@@ -102,21 +115,24 @@ npm run build
|
|
|
102
115
|
|
|
103
116
|
### Run app dev server
|
|
104
117
|
|
|
118
|
+
The following command will serve the app at http://localhost:3000/.
|
|
119
|
+
|
|
105
120
|
```Shell
|
|
106
|
-
npm run dev
|
|
121
|
+
npm run dev
|
|
107
122
|
```
|
|
108
123
|
|
|
109
|
-
|
|
124
|
+
Note: hot code reload works only for the [`scrabble-solver`](https://github.com/kamilmielnik/scrabble-solver/tree/master/packages/scrabble-solver) package. If you make changes to any other package, you will need to rebuild it ([see below](#rebuild-a-single-package)).
|
|
125
|
+
|
|
126
|
+
### Rebuild the entire project
|
|
110
127
|
|
|
111
128
|
```Shell
|
|
112
|
-
|
|
113
|
-
npm run dev
|
|
129
|
+
npm run build
|
|
114
130
|
```
|
|
115
131
|
|
|
116
|
-
Note: hot code reload works only for the [`scrabble-solver`](https://github.com/kamilmielnik/scrabble-solver/tree/master/packages/scrabble-solver) package.
|
|
117
|
-
|
|
118
132
|
### Rebuild a single package
|
|
119
133
|
|
|
134
|
+
For convenience, here's a list of commands to rebuild every package individually.
|
|
135
|
+
|
|
120
136
|
```Shell
|
|
121
137
|
npm run build -w @scrabble-solver/configs
|
|
122
138
|
npm run build -w @scrabble-solver/constants
|
package/jest.setup.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const POLISH_DICTIONARY_AVERAGE_DOWNLOAD_DURATION = 90 * 1000;
|
|
2
2
|
|
|
3
|
-
// Dictionaries used in
|
|
3
|
+
// Dictionaries used in tests are downloaded on demand (if not cached)
|
|
4
4
|
// and on average it takes 90 seconds to get the Polish dictionary downloaded.
|
|
5
5
|
// Doubling that amount should be safe enough.
|
|
6
6
|
jest.setTimeout(2 * POLISH_DICTIONARY_AVERAGE_DOWNLOAD_DURATION);
|
package/lerna.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scrabble-solver",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.9",
|
|
4
4
|
"description": "Scrabble Solver 2 - Free, open-source, and cross-platform analysis tool for Scrabble, Super Scrabble & Literaki. Quickly find top scoring words using given letters and board state. Available in English, French, German, Polish & Spanish.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Scrabble",
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "npm run build -w packages",
|
|
38
38
|
"clean": "npm run clean -w packages && rimraf node_modules/",
|
|
39
|
+
"dev": "npm run dev -w @scrabble-solver/scrabble-solver",
|
|
39
40
|
"lint": "eslint packages/*",
|
|
40
41
|
"lint:fix": "npm run lint -- --fix",
|
|
41
42
|
"prettier": "prettier --check './**/*.{js,ts,tsx,scss}'",
|
|
@@ -80,7 +81,7 @@
|
|
|
80
81
|
"packages/scrabble-solver"
|
|
81
82
|
],
|
|
82
83
|
"dependencies": {
|
|
83
|
-
"@scrabble-solver/scrabble-solver": "^2.13.
|
|
84
|
+
"@scrabble-solver/scrabble-solver": "^2.13.9",
|
|
84
85
|
"npm-run-all": "^4.1.5",
|
|
85
86
|
"open-cli": "^8.0.0"
|
|
86
87
|
},
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/* eslint-disable max-lines */
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
4
|
exports.englishUsLiteraki = exports.englishUsSuperScrabble = exports.englishUsScrabble = exports.englishGbLiteraki = exports.englishGbSuperScrabble = exports.englishGbScrabble = void 0;
|
|
4
5
|
const types_1 = require("@scrabble-solver/types");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scrabble-solver/configs",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.9",
|
|
4
4
|
"description": "Scrabble Solver 2 - Configs",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"clean": "rimraf build/"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@scrabble-solver/constants": "^2.13.
|
|
27
|
-
"@scrabble-solver/types": "^2.13.
|
|
26
|
+
"@scrabble-solver/constants": "^2.13.9",
|
|
27
|
+
"@scrabble-solver/types": "^2.13.9"
|
|
28
28
|
},
|
|
29
29
|
"gitHead": "1e2d1ad49a288d4a44196d8e3336740da132c637"
|
|
30
30
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scrabble-solver/dictionaries",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.9",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@scrabble-solver/dictionaries",
|
|
9
|
-
"version": "2.13.
|
|
9
|
+
"version": "2.13.9",
|
|
10
10
|
"license": "CC-BY-NC-ND-4.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@kamilmielnik/trie": "^3.0.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scrabble-solver/dictionaries",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.9",
|
|
4
4
|
"description": "Scrabble Solver 2 - Dictionaries",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@kamilmielnik/trie": "^3.0.0",
|
|
33
|
-
"@scrabble-solver/logger": "^2.13.
|
|
34
|
-
"@scrabble-solver/types": "^2.13.
|
|
35
|
-
"@scrabble-solver/word-lists": "^2.13.
|
|
33
|
+
"@scrabble-solver/logger": "^2.13.9",
|
|
34
|
+
"@scrabble-solver/types": "^2.13.9",
|
|
35
|
+
"@scrabble-solver/word-lists": "^2.13.9"
|
|
36
36
|
},
|
|
37
37
|
"gitHead": "1e2d1ad49a288d4a44196d8e3336740da132c637"
|
|
38
38
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scrabble-solver/logger",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.9",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@scrabble-solver/logger",
|
|
9
|
-
"version": "2.13.
|
|
9
|
+
"version": "2.13.9",
|
|
10
10
|
"license": "CC-BY-NC-ND-4.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"winston": "^3.13.0"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
eLvYNd4B2hzSgBZ_PuZcQ
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"devFiles": [],
|
|
6
6
|
"ampDevFiles": [],
|
|
7
7
|
"lowPriorityFiles": [
|
|
8
|
-
"static/
|
|
9
|
-
"static/
|
|
8
|
+
"static/eLvYNd4B2hzSgBZ_PuZcQ/_buildManifest.js",
|
|
9
|
+
"static/eLvYNd4B2hzSgBZ_PuZcQ/_ssgManifest.js"
|
|
10
10
|
],
|
|
11
11
|
"rootMainFiles": [],
|
|
12
12
|
"pages": {
|
|
@@ -15,20 +15,20 @@
|
|
|
15
15
|
"static/chunks/framework-c623a49d0bf89652.js",
|
|
16
16
|
"static/chunks/main-b5b360c6afb66b05.js",
|
|
17
17
|
"static/css/6682db14f926d4c7.css",
|
|
18
|
-
"static/chunks/pages/index-
|
|
18
|
+
"static/chunks/pages/index-36c448d585a58425.js"
|
|
19
19
|
],
|
|
20
20
|
"/404": [
|
|
21
21
|
"static/chunks/webpack-6ef43a8d4a395f49.js",
|
|
22
22
|
"static/chunks/framework-c623a49d0bf89652.js",
|
|
23
23
|
"static/chunks/main-b5b360c6afb66b05.js",
|
|
24
|
-
"static/chunks/pages/404-
|
|
24
|
+
"static/chunks/pages/404-01653a877b233143.js"
|
|
25
25
|
],
|
|
26
26
|
"/_app": [
|
|
27
27
|
"static/chunks/webpack-6ef43a8d4a395f49.js",
|
|
28
28
|
"static/chunks/framework-c623a49d0bf89652.js",
|
|
29
29
|
"static/chunks/main-b5b360c6afb66b05.js",
|
|
30
|
-
"static/css/
|
|
31
|
-
"static/chunks/pages/_app-
|
|
30
|
+
"static/css/841a5b5f0b2fb131.css",
|
|
31
|
+
"static/chunks/pages/_app-735b5863675c1b5d.js"
|
|
32
32
|
],
|
|
33
33
|
"/_error": [
|
|
34
34
|
"static/chunks/webpack-6ef43a8d4a395f49.js",
|