@scrabble-solver/scrabble-solver 2.13.2 → 2.13.4

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.
Files changed (87) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +16 -16
  3. package/.next/cache/.tsbuildinfo +1 -1
  4. package/.next/cache/eslint/.cache_8dgz12 +1 -1
  5. package/.next/cache/webpack/client-production/0.pack +0 -0
  6. package/.next/cache/webpack/client-production/index.pack +0 -0
  7. package/.next/cache/webpack/edge-server-production/0.pack +0 -0
  8. package/.next/cache/webpack/edge-server-production/index.pack +0 -0
  9. package/.next/cache/webpack/server-production/0.pack +0 -0
  10. package/.next/cache/webpack/server-production/index.pack +0 -0
  11. package/.next/next-minimal-server.js.nft.json +1 -0
  12. package/.next/next-server.js.nft.json +1 -1
  13. package/.next/prerender-manifest.js +1 -0
  14. package/.next/prerender-manifest.json +1 -1
  15. package/.next/required-server-files.json +1 -1
  16. package/.next/routes-manifest.json +1 -1
  17. package/.next/server/InjectManifest.js.nft.json +1 -1
  18. package/.next/server/chunks/28.js +1 -0
  19. package/.next/server/chunks/331.js +6 -0
  20. package/.next/server/chunks/577.js +1 -0
  21. package/.next/server/chunks/911.js +1 -1083
  22. package/.next/server/chunks/977.js +1 -0
  23. package/.next/server/functions-config-manifest.json +1 -0
  24. package/.next/server/middleware-build-manifest.js +1 -1
  25. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  26. package/.next/server/next-font-manifest.js +1 -1
  27. package/.next/server/next-font-manifest.json +1 -6
  28. package/.next/server/pages/404.html +1 -1
  29. package/.next/server/pages/404.js.nft.json +1 -1
  30. package/.next/server/pages/500.html +1 -1
  31. package/.next/server/pages/_app.js +1 -380
  32. package/.next/server/pages/_app.js.nft.json +1 -1
  33. package/.next/server/pages/_document.js +1 -212
  34. package/.next/server/pages/_document.js.nft.json +1 -1
  35. package/.next/server/pages/_error.js +1 -166
  36. package/.next/server/pages/_error.js.nft.json +1 -1
  37. package/.next/server/pages/api/dictionary/[locale]/[word].js +2 -836
  38. package/.next/server/pages/api/dictionary/[locale]/[word].js.nft.json +1 -1
  39. package/.next/server/pages/api/dictionary/[locale].js +1 -192
  40. package/.next/server/pages/api/dictionary/[locale].js.nft.json +1 -1
  41. package/.next/server/pages/api/solve.js +1 -1121
  42. package/.next/server/pages/api/solve.js.nft.json +1 -1
  43. package/.next/server/pages/api/verify.js +1 -213
  44. package/.next/server/pages/api/verify.js.nft.json +1 -1
  45. package/.next/server/pages/api/visit.js +1 -131
  46. package/.next/server/pages/api/visit.js.nft.json +1 -1
  47. package/.next/server/pages/index.html +1 -1
  48. package/.next/server/pages/index.js +1 -2088
  49. package/.next/server/pages/index.js.nft.json +1 -1
  50. package/.next/server/pages/index.json +1 -1
  51. package/.next/server/pages-manifest.json +1 -12
  52. package/.next/server/webpack-api-runtime.js +1 -172
  53. package/.next/server/webpack-runtime.js +1 -229
  54. package/.next/static/chunks/framework-1728d40275bc359a.js +49 -0
  55. package/.next/static/chunks/main-5fb7abbfc135de15.js +1 -0
  56. package/.next/static/chunks/pages/404-b6e238bb4117d451.js +1 -0
  57. package/.next/static/chunks/pages/_app-b95404c40a0092e6.js +17 -0
  58. package/.next/static/chunks/pages/_error-db043fa3544f8809.js +1 -0
  59. package/.next/static/chunks/pages/index-59d569ef79bc2580.js +1 -0
  60. package/.next/static/css/8fa2fb99b90e109e.css +1 -0
  61. package/.next/static/css/c80ebc6fd13311f1.css +2 -0
  62. package/.next/static/jyVoCYlAT5PMzOeavr5AX/_buildManifest.js +1 -0
  63. package/.next/trace +44 -51
  64. package/package.json +31 -32
  65. package/src/state/slices/boardSlice.ts +4 -4
  66. package/src/state/store.ts +1 -1
  67. package/.next/cache/next-server.js.nft.json +0 -1
  68. package/.next/server/chunks/210.js +0 -109
  69. package/.next/server/chunks/277.js +0 -11942
  70. package/.next/server/chunks/44.js +0 -1838
  71. package/.next/server/chunks/50.js +0 -12119
  72. package/.next/server/chunks/636.js +0 -286
  73. package/.next/server/chunks/675.js +0 -572
  74. package/.next/server/chunks/859.js +0 -835
  75. package/.next/server/chunks/865.js +0 -20424
  76. package/.next/server/chunks/907.js +0 -42530
  77. package/.next/server/chunks/987.js +0 -91
  78. package/.next/static/16S6EJJ0_LRmtRPwnUIw5/_buildManifest.js +0 -1
  79. package/.next/static/chunks/framework-2c29dc3cd933590b.js +0 -49
  80. package/.next/static/chunks/main-4dcb7f9b52833aba.js +0 -1
  81. package/.next/static/chunks/pages/404-b4b5ce15153d4825.js +0 -1
  82. package/.next/static/chunks/pages/_app-122dc8ecfa0220d5.js +0 -32
  83. package/.next/static/chunks/pages/_error-54de1933a164a1ff.js +0 -1
  84. package/.next/static/chunks/pages/index-f56eaa969a831c70.js +0 -1
  85. package/.next/static/css/4e8b47fe382a8a8f.css +0 -2
  86. package/.next/static/css/cfae5256f1689f57.css +0 -1
  87. /package/.next/static/{16S6EJJ0_LRmtRPwnUIw5 → jyVoCYlAT5PMzOeavr5AX}/_ssgManifest.js +0 -0
@@ -1,109 +0,0 @@
1
- "use strict";
2
- exports.id = 210;
3
- exports.ids = [210];
4
- exports.modules = {
5
-
6
- /***/ 31210:
7
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8
-
9
-
10
- // EXPORTS
11
- __webpack_require__.d(__webpack_exports__, {
12
- "Z": () => (/* binding */ api_isBoardValid)
13
- });
14
-
15
- // EXTERNAL MODULE: ./src/api/isCharacterValid.ts
16
- var isCharacterValid = __webpack_require__(38246);
17
- ;// CONCATENATED MODULE: ./src/api/isCellValid.ts
18
-
19
- const isCellValid = (cell, config)=>{
20
- const { isEmpty , tile , x , y } = cell;
21
- if (x < 0 || x >= config.boardWidth) {
22
- return false;
23
- }
24
- if (y < 0 || y >= config.boardHeight) {
25
- return false;
26
- }
27
- if (isEmpty && tile !== null) {
28
- return false;
29
- }
30
- if (tile !== null && !(0,isCharacterValid/* default */.Z)(tile.character)) {
31
- return false;
32
- }
33
- return true;
34
- };
35
- /* harmony default export */ const api_isCellValid = (isCellValid);
36
-
37
- ;// CONCATENATED MODULE: ./src/api/isRowValid.ts
38
-
39
- const isRowValid = (row, config)=>{
40
- if (row.length !== config.boardWidth) {
41
- return false;
42
- }
43
- for (const cell of row){
44
- if (!api_isCellValid(cell, config)) {
45
- return false;
46
- }
47
- }
48
- return true;
49
- };
50
- /* harmony default export */ const api_isRowValid = (isRowValid);
51
-
52
- ;// CONCATENATED MODULE: ./src/api/isBoardValid.ts
53
-
54
- const isBoardValid = (board, config)=>{
55
- if (board.length !== config.boardHeight) {
56
- return false;
57
- }
58
- for (const row of board){
59
- if (!api_isRowValid(row, config)) {
60
- return false;
61
- }
62
- }
63
- return areTwoCharacterTilesValid(board, config);
64
- };
65
- const areTwoCharacterTilesValid = (board, config)=>{
66
- const cells = board.flat().filter((cell)=>cell && cell.tile && config.isTwoCharacterTilePrefix(cell.tile.character));
67
- for (const cell of cells){
68
- for (const characters of config.twoCharacterTiles){
69
- const canCheckDown = cell.y + 1 < board.length;
70
- const canCheckRight = cell.x + 1 < board[0].length;
71
- const cellDown = board[cell.y + 1][cell.x];
72
- const cellRight = board[cell.y][cell.x + 1];
73
- const collidesDown = canCheckDown && cellDown.tile && cellDown.tile.character === characters[1];
74
- const collidesRight = canCheckRight && cellRight.tile && cellRight.tile.character === characters[1];
75
- const collides = collidesDown || collidesRight;
76
- if (cell.tile && characters.startsWith(cell.tile.character) && collides) {
77
- return false;
78
- }
79
- }
80
- }
81
- return true;
82
- };
83
- /* harmony default export */ const api_isBoardValid = (isBoardValid);
84
-
85
-
86
- /***/ }),
87
-
88
- /***/ 38246:
89
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
90
-
91
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
92
- /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
93
- /* harmony export */ });
94
- const TWO_TILE_CHARACTER_LENGTH = 2;
95
- const MAX_CHARACTER_LENGTH = TWO_TILE_CHARACTER_LENGTH;
96
- const isCharacterValid = (character)=>{
97
- /*
98
- * We could be strict here and check whether config.hasCharacter(character) || character === BLANK
99
- * but since this case won't really affect/break solving, we don't need to worry about it.
100
- * It's better to display an empty state than error state in UI, so this is a sanity check only.
101
- */ return character.length !== 0 && character.length <= MAX_CHARACTER_LENGTH;
102
- };
103
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isCharacterValid);
104
-
105
-
106
- /***/ })
107
-
108
- };
109
- ;