@scrabble-solver/scrabble-solver 2.15.24 → 2.16.0-alpha.0

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 (95) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +9 -9
  3. package/.next/cache/.previewinfo +1 -1
  4. package/.next/cache/.rscinfo +1 -1
  5. package/.next/cache/.tsbuildinfo +1 -1
  6. package/.next/cache/webpack/client-production/0.pack +0 -0
  7. package/.next/cache/webpack/client-production/index.pack +0 -0
  8. package/.next/cache/webpack/client-production/index.pack.old +0 -0
  9. package/.next/cache/webpack/edge-server-production/index.pack +0 -0
  10. package/.next/cache/webpack/edge-server-production/index.pack.old +0 -0
  11. package/.next/cache/webpack/server-production/0.pack +0 -0
  12. package/.next/cache/webpack/server-production/index.pack +0 -0
  13. package/.next/cache/webpack/server-production/index.pack.old +0 -0
  14. package/.next/diagnostics/framework.json +1 -1
  15. package/.next/prerender-manifest.json +4 -4
  16. package/.next/required-server-files.js +2 -1
  17. package/.next/required-server-files.json +2 -1
  18. package/.next/routes-manifest.json +1 -1
  19. package/.next/server/chunks/30.js +1 -1
  20. package/.next/server/chunks/712.js +1 -1
  21. package/.next/server/middleware-build-manifest.js +1 -1
  22. package/.next/server/pages/404.html +1 -1
  23. package/.next/server/pages/500.html +1 -1
  24. package/.next/server/pages/_app.js.nft.json +1 -1
  25. package/.next/server/pages/_error.js.nft.json +1 -1
  26. package/.next/server/pages/api/dictionary/[locale]/[word].js.nft.json +1 -1
  27. package/.next/server/pages/api/dictionary/[locale].js.nft.json +1 -1
  28. package/.next/server/pages/api/solve.js +1 -1
  29. package/.next/server/pages/api/solve.js.nft.json +1 -1
  30. package/.next/server/pages/api/verify.js.nft.json +1 -1
  31. package/.next/server/pages/api/visit.js.nft.json +1 -1
  32. package/.next/server/pages/index.html +1 -1
  33. package/.next/server/pages/index.js.nft.json +1 -1
  34. package/.next/server/pages/index.json +1 -1
  35. package/.next/server/pages/not-found.html +1 -1
  36. package/.next/server/webpack-api-runtime.js +1 -1
  37. package/.next/static/{f_g0t0jBAscXxDrNYOuV0 → HFiEUpdZIGYd_XKb5mCLZ}/_buildManifest.js +1 -1
  38. package/.next/static/chunks/{main-ca07941c8a544c9a.js → main-65a5015b46ca9827.js} +1 -1
  39. package/.next/static/chunks/pages/{_app-369e5cb907606ad4.js → _app-9c9aaea7b6881765.js} +4 -4
  40. package/.next/static/chunks/pages/{index-08b3b0a754095919.js → index-e9ea63e97865edcf.js} +1 -1
  41. package/.next/static/css/{500cdc9a24075d91.css → 78726ae7cf7a5497.css} +1 -1
  42. package/.next/trace +21 -21
  43. package/.next/trace-build +1 -1
  44. package/README.md +3 -3
  45. package/next.config.js +1 -0
  46. package/package.json +12 -11
  47. package/src/@types/scss.d.ts +5 -0
  48. package/src/components/Board/Board.module.scss +2 -2
  49. package/src/components/Board/components/Actions/Actions.module.scss +1 -1
  50. package/src/components/Board/components/Cell/Cell.module.scss +26 -6
  51. package/src/components/Board/components/InputPrompt/InputPrompt.module.scss +1 -1
  52. package/src/components/Button/Button.module.scss +1 -1
  53. package/src/components/Dictionary/Dictionary.module.scss +1 -1
  54. package/src/components/DictionaryInput/DictionaryInput.module.scss +1 -1
  55. package/src/components/IconButton/IconButton.module.scss +1 -1
  56. package/src/components/Loading/Loading.module.scss +1 -1
  57. package/src/components/Modal/Modal.module.scss +1 -1
  58. package/src/components/Modal/Modal.tsx +0 -1
  59. package/src/components/NotFound/NotFound.module.scss +1 -1
  60. package/src/components/PlainTiles/PlainTiles.module.scss +1 -1
  61. package/src/components/Rack/Rack.module.scss +11 -6
  62. package/src/components/Rack/components/InputPrompt/InputPrompt.module.scss +1 -1
  63. package/src/components/Rack/components/RackTile/RackTile.module.scss +1 -1
  64. package/src/components/Radio/Radio.module.scss +1 -1
  65. package/src/components/Results/Results.module.scss +1 -1
  66. package/src/components/ResultsInput/ResultsInput.module.scss +1 -1
  67. package/src/components/Solver/Solver.module.scss +1 -1
  68. package/src/components/Solver/components/InsertButton/InsertButton.module.scss +1 -1
  69. package/src/components/Solver/components/ResultCandidatePicker/ResultCandidatePicker.module.scss +1 -1
  70. package/src/components/Spinner/Spinner.module.scss +1 -1
  71. package/src/components/Tile/Tile.module.scss +1 -1
  72. package/src/hooks/useLocalStorage.ts +4 -52
  73. package/src/hooks/useMedia.ts +0 -1
  74. package/src/lib/isMac.ts +1 -1
  75. package/src/modals/MenuModal/MenuModal.module.scss +1 -1
  76. package/src/modals/RemainingTilesModal/components/Character/Character.module.scss +1 -1
  77. package/src/modals/ResultsModal/ResultsModal.module.scss +1 -1
  78. package/src/modals/SettingsModal/components/LocaleSetting/LocaleSetting.module.scss +1 -1
  79. package/src/pages/_app.tsx +0 -1
  80. package/src/parameters/index.ts +48 -47
  81. package/src/sdk/fetchJson.ts +3 -7
  82. package/src/service-worker/index.ts +0 -1
  83. package/src/service-worker/routeSolveRequests.ts +18 -12
  84. package/src/state/board/slice.ts +6 -4
  85. package/src/state/localStorage.ts +42 -52
  86. package/src/state/sagas.ts +1 -2
  87. package/src/state/settings/initialState.ts +7 -7
  88. package/src/styles/_tokens.scss +59 -0
  89. package/src/styles/global.scss +3 -3
  90. package/src/styles/mixins.scss +13 -12
  91. package/src/styles/variables.module.scss +53 -0
  92. package/src/styles/variables.scss +44 -41
  93. package/tsconfig.json +0 -1
  94. package/tsconfig.tsbuildinfo +1 -1
  95. /package/.next/static/{f_g0t0jBAscXxDrNYOuV0 → HFiEUpdZIGYd_XKb5mCLZ}/_ssgManifest.js +0 -0
@@ -1,13 +1,14 @@
1
- @import 'styles/mixins';
1
+ @use 'styles/mixins' as *;
2
+ @use 'styles/tokens' as *;
2
3
 
3
4
  $easeOutSine: cubic-bezier(0.61, 1, 0.88, 1);
4
5
 
5
6
  :root {
6
7
  --border: var(--border--width) solid var(--border--color);
7
- --border--color: #cdcdcd;
8
- --border--color--light: #d9d9d9;
9
- --border--radius: 5px;
10
- --border--width: 1px;
8
+ --border--color: #{$border-color};
9
+ --border--color--light: #{$border-color-light};
10
+ --border--radius: #{$border-radius};
11
+ --border--width: #{$border-width};
11
12
 
12
13
  --box-shadow: 0 0 var(--box-shadow--blur) var(--box-shadow--spread) var(--box-shadow--color);
13
14
  --box-shadow--blur: 8px;
@@ -21,24 +22,24 @@ $easeOutSine: cubic-bezier(0.61, 1, 0.88, 1);
21
22
  --box-shadow--raised--subtle: inset -1px -1px 1px 0 var(--box-shadow--color--raised);
22
23
 
23
24
  --color--white: #ffffff;
24
- --color--blue: #c7d8f9;
25
- --color--blue--light: #dde4f6;
26
- --color--green: #bae3ba;
27
- --color--green--light: #d6ebd6;
28
- --color--red: #f7c2aa;
29
- --color--red--light: #fbe0d4;
30
- --color--violet: #78387f;
31
- --color--violet--light: #b284b8;
32
- --color--yellow: #efe3ae;
33
- --color--yellow--light: #f7f1d6;
25
+ --color--blue: #{$color-blue};
26
+ --color--blue--light: #{$color-blue-light};
27
+ --color--green: #{$color-green};
28
+ --color--green--light: #{$color-green-light};
29
+ --color--red: #{$color-red};
30
+ --color--red--light: #{$color-red-light};
31
+ --color--violet: #{$color-violet};
32
+ --color--violet--light: #{$color-violet-light};
33
+ --color--yellow: #{$color-yellow};
34
+ --color--yellow--light: #{$color-yellow-light};
34
35
 
35
36
  --color--focus: #{rgba(#268fff, 0.5)};
36
- --color--inactive: #cdcdcd;
37
- --color--background: #f4f4f4;
37
+ --color--inactive: #{$color-inactive};
38
+ --color--background: #{$color-background};
38
39
  --color--background--element: var(--color--white);
39
40
  --color--background--overlay: rgba(255, 255, 255, 0.65);
40
- --color--foreground: #222;
41
- --color--foreground--secondary: #444;
41
+ --color--foreground: #{$color-foreground};
42
+ --color--foreground--secondary: #{$color-foreground-secondary};
42
43
  --color--mark: #ffff00;
43
44
  --color--error: hsl(0, 92%, 62%);
44
45
  --color--error--opposite: var(--color--white);
@@ -53,12 +54,14 @@ $easeOutSine: cubic-bezier(0.61, 1, 0.88, 1);
53
54
  --color--bonus--character--2: var(--color--green--light);
54
55
  --color--bonus--character--3: var(--color--blue--light);
55
56
  --color--bonus--character--5: var(--color--red--light);
56
- --color--bonus--character-multiplier--2: #b8d5ed;
57
- --color--bonus--character-multiplier--3: #86aed1;
57
+ --color--bonus--character-multiplier--2: #{$color-bonus-character-multiplier-2};
58
+ --color--bonus--character-multiplier--3: #{$color-bonus-character-multiplier-3};
59
+ --color--bonus--character-multiplier--4: #{$color-bonus-character-multiplier-4};
58
60
  --color--bonus--start: var(--color--violet--light);
59
- --color--bonus--word-multiplier--2: #fbc997;
60
- --color--bonus--word-multiplier--3: #f19393;
61
- --color--tooltip--background: #444;
61
+ --color--bonus--word-multiplier--2: #{$color-bonus-word-multiplier-2};
62
+ --color--bonus--word-multiplier--3: #{$color-bonus-word-multiplier-3};
63
+ --color--bonus--word-multiplier--4: #{$color-bonus-word-multiplier-4};
64
+ --color--tooltip--background: #{$color-foreground-secondary};
62
65
  --color--tooltip--foreground: var(--color--white);
63
66
 
64
67
  --font--family: system-ui, sans-serif;
@@ -73,12 +76,12 @@ $easeOutSine: cubic-bezier(0.61, 1, 0.88, 1);
73
76
 
74
77
  --opacity--disabled: 0.3;
75
78
 
76
- --spacing--xs: 2px;
77
- --spacing--s: 5px;
78
- --spacing--m: 10px;
79
- --spacing--l: 20px;
80
- --spacing--xl: 40px;
81
- --spacing--xxl: 80px;
79
+ --spacing--xs: #{$spacing-xs};
80
+ --spacing--s: #{$spacing-s};
81
+ --spacing--m: #{$spacing-m};
82
+ --spacing--l: #{$spacing-l};
83
+ --spacing--xl: #{$spacing-xl};
84
+ --spacing--xxl: #{$spacing-xxl};
82
85
 
83
86
  --scrollbar--size: 5px;
84
87
  --scrollbar--thumb--color: var(--border--color);
@@ -87,8 +90,8 @@ $easeOutSine: cubic-bezier(0.61, 1, 0.88, 1);
87
90
 
88
91
  --transition: all var(--transition--duration) var(--transition--easing);
89
92
  --transition--long: all var(--transition--duration--long) var(--transition--easing);
90
- --transition--duration: 100ms;
91
- --transition--duration--long: 250ms;
93
+ --transition--duration: #{$transition-duration};
94
+ --transition--duration--long: #{$transition-duration-long};
92
95
  --transition--easing: #{$easeOutSine};
93
96
 
94
97
  --z-index--focus-effect: 1;
@@ -97,25 +100,25 @@ $easeOutSine: cubic-bezier(0.61, 1, 0.88, 1);
97
100
  --z-index--close-button: 101;
98
101
  --z-index--tooltip: 102;
99
102
 
100
- --button--icon--size: 24px;
101
- --dictionary--height: 260px;
102
- --dictionary--height--mobile: 110px;
103
+ --button--icon--size: #{$button-icon-size};
104
+ --dictionary--height: #{$dictionary-height};
105
+ --dictionary--height--mobile: #{$dictionary-height-mobile};
103
106
  --key--height: 36px;
104
107
  --key--icon--size: 16px;
105
- --logo--height: 60px;
106
- --modal--width: 370px;
108
+ --logo--height: #{$logo-height};
109
+ --modal--width: #{$modal-width};
107
110
  --nav--height: calc(var(--logo--height) + var(--nav--padding));
108
111
  --nav--padding: var(--spacing--l);
109
112
  --results--icon--size: 18px;
110
- --results--item--height: 40px;
111
- --solver-column--width: 580px;
113
+ --results--item--height: #{$results-item-height};
114
+ --solver-column--width: #{$solver-column-width};
112
115
  --square-button--size: 32px;
113
- --text-input--height: 40px;
116
+ --text-input--height: #{$text-input-height};
114
117
  --tooltip--max-width: 500px;
115
118
 
116
119
  @include media('<l') {
117
120
  --dictionary--height: var(--dictionary--height--mobile);
118
- --logo--height: 48px;
121
+ --logo--height: #{$logo-height-small};
119
122
  }
120
123
 
121
124
  @include media('<s') {
package/tsconfig.json CHANGED
@@ -3,7 +3,6 @@
3
3
 
4
4
  "compilerOptions": {
5
5
  "allowJs": true,
6
- "baseUrl": ".",
7
6
  "declaration": false,
8
7
  "isolatedModules": true,
9
8
  "jsx": "preserve",