scrabble-solver 2.15.9 → 2.15.10

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 (583) hide show
  1. package/.nx/workspace-data/file-map.json +1332 -1336
  2. package/.nx/workspace-data/lockfile.hash +1 -1
  3. package/.nx/workspace-data/nx_files.nxt +0 -0
  4. package/.nx/workspace-data/parsed-lock-file.json +204 -48
  5. package/.nx/workspace-data/project-graph.json +215 -49
  6. package/README.md +1 -1
  7. package/cypress/support/lib/actions.ts +2 -2
  8. package/cypress/support/lib/selectors.ts +9 -9
  9. package/cypress/tsconfig.json +2 -1
  10. package/cypress.config.ts +1 -0
  11. package/eslint.config.mjs +31 -8
  12. package/lerna.json +1 -1
  13. package/package.json +13 -11
  14. package/packages/configs/build/games/index.d.ts +1 -0
  15. package/packages/configs/build/games/index.js +1 -0
  16. package/packages/configs/build/games/kelimelik.d.ts +2 -1
  17. package/packages/configs/build/games/kelimelik.js +2 -1
  18. package/packages/configs/build/games/literaki.d.ts +2 -1
  19. package/packages/configs/build/games/literaki.js +2 -1
  20. package/packages/configs/build/games/scrabble.d.ts +2 -1
  21. package/packages/configs/build/games/scrabble.js +2 -1
  22. package/packages/configs/build/games/scrabbleDuel.d.ts +17 -0
  23. package/packages/configs/build/games/scrabbleDuel.js +50 -0
  24. package/packages/configs/build/games/superScrabble.d.ts +2 -1
  25. package/packages/configs/build/games/superScrabble.js +2 -1
  26. package/packages/configs/build/languages/english.d.ts +2 -0
  27. package/packages/configs/build/languages/english.js +65 -1
  28. package/packages/configs/package.json +3 -3
  29. package/packages/configs/src/games/index.ts +1 -0
  30. package/packages/configs/src/games/kelimelik.ts +2 -1
  31. package/packages/configs/src/games/literaki.ts +2 -1
  32. package/packages/configs/src/games/scrabble.ts +2 -1
  33. package/packages/configs/src/games/scrabbleDuel.ts +56 -0
  34. package/packages/configs/src/games/superScrabble.ts +2 -1
  35. package/packages/configs/src/languages/english.ts +67 -1
  36. package/packages/constants/package.json +1 -1
  37. package/packages/dictionaries/build/Dictionaries.d.ts +1 -2
  38. package/packages/dictionaries/build/Dictionaries.js +6 -5
  39. package/packages/dictionaries/build/index.d.ts +1 -1
  40. package/packages/dictionaries/build/index.js +2 -5
  41. package/packages/dictionaries/build/lib/DiskCache.d.ts +1 -2
  42. package/packages/dictionaries/build/lib/DiskCache.js +7 -6
  43. package/packages/dictionaries/build/lib/LayeredCache.d.ts +1 -2
  44. package/packages/dictionaries/build/lib/LayeredCache.js +7 -9
  45. package/packages/dictionaries/build/lib/MemoryCache.d.ts +1 -2
  46. package/packages/dictionaries/build/lib/MemoryCache.js +2 -1
  47. package/packages/dictionaries/build/lib/createAsyncProxy.d.ts +2 -2
  48. package/packages/dictionaries/build/lib/createAsyncProxy.js +2 -1
  49. package/packages/dictionaries/build/lib/createCacheTimestampComparator.d.ts +1 -2
  50. package/packages/dictionaries/build/lib/createCacheTimestampComparator.js +2 -1
  51. package/packages/dictionaries/build/lib/downloadDictionary.d.ts +1 -2
  52. package/packages/dictionaries/build/lib/downloadDictionary.js +5 -7
  53. package/packages/dictionaries/build/lib/getDictionaryFilepath.d.ts +1 -2
  54. package/packages/dictionaries/build/lib/getDictionaryFilepath.js +2 -1
  55. package/packages/dictionaries/build/lib/index.d.ts +7 -7
  56. package/packages/dictionaries/build/lib/index.js +7 -10
  57. package/packages/dictionaries/build/{types/Cache.d.ts → types.d.ts} +1 -2
  58. package/packages/dictionaries/package.json +4 -4
  59. package/packages/dictionaries/src/Dictionaries.ts +3 -4
  60. package/packages/dictionaries/src/index.ts +2 -1
  61. package/packages/dictionaries/src/lib/DiskCache.ts +2 -4
  62. package/packages/dictionaries/src/lib/LayeredCache.ts +4 -6
  63. package/packages/dictionaries/src/lib/MemoryCache.ts +2 -3
  64. package/packages/dictionaries/src/lib/createAsyncProxy.ts +1 -3
  65. package/packages/dictionaries/src/lib/createCacheTimestampComparator.ts +1 -3
  66. package/packages/dictionaries/src/lib/downloadDictionary.ts +2 -4
  67. package/packages/dictionaries/src/lib/getDictionaryFilepath.ts +1 -3
  68. package/packages/dictionaries/src/lib/index.ts +7 -7
  69. package/packages/dictionaries/src/{types/Cache.ts → types.ts} +1 -3
  70. package/packages/logger/build/index.d.ts +1 -1
  71. package/packages/logger/build/index.js +2 -5
  72. package/packages/logger/build/logger.d.ts +1 -2
  73. package/packages/logger/build/logger.js +2 -2
  74. package/packages/logger/package.json +1 -1
  75. package/packages/logger/src/index.ts +1 -1
  76. package/packages/logger/src/logger.ts +1 -3
  77. package/packages/scrabble-solver/.next/BUILD_ID +1 -1
  78. package/packages/scrabble-solver/.next/build-manifest.json +9 -9
  79. package/packages/scrabble-solver/.next/cache/.rscinfo +1 -1
  80. package/packages/scrabble-solver/.next/cache/.tsbuildinfo +1 -1
  81. package/packages/scrabble-solver/.next/cache/webpack/client-production/0.pack +0 -0
  82. package/packages/scrabble-solver/.next/cache/webpack/client-production/index.pack +0 -0
  83. package/packages/scrabble-solver/.next/cache/webpack/client-production/index.pack.old +0 -0
  84. package/packages/scrabble-solver/.next/cache/webpack/edge-server-production/0.pack +0 -0
  85. package/packages/scrabble-solver/.next/cache/webpack/edge-server-production/index.pack +0 -0
  86. package/packages/scrabble-solver/.next/cache/webpack/edge-server-production/index.pack.old +0 -0
  87. package/packages/scrabble-solver/.next/cache/webpack/server-production/0.pack +0 -0
  88. package/packages/scrabble-solver/.next/cache/webpack/server-production/index.pack +0 -0
  89. package/packages/scrabble-solver/.next/cache/webpack/server-production/index.pack.old +0 -0
  90. package/packages/scrabble-solver/.next/diagnostics/framework.json +1 -1
  91. package/packages/scrabble-solver/.next/next-minimal-server.js.nft.json +1 -1
  92. package/packages/scrabble-solver/.next/next-server.js.nft.json +1 -1
  93. package/packages/scrabble-solver/.next/prerender-manifest.json +4 -4
  94. package/packages/scrabble-solver/.next/required-server-files.json +1 -2
  95. package/packages/scrabble-solver/.next/routes-manifest.json +1 -1
  96. package/packages/scrabble-solver/.next/server/chunks/60.js +1 -1
  97. package/packages/scrabble-solver/.next/server/chunks/812.js +1 -1
  98. package/packages/scrabble-solver/.next/server/chunks/974.js +1 -1
  99. package/packages/scrabble-solver/.next/server/middleware-build-manifest.js +1 -1
  100. package/packages/scrabble-solver/.next/server/pages/404.html +1 -1
  101. package/packages/scrabble-solver/.next/server/pages/404.js.nft.json +1 -1
  102. package/packages/scrabble-solver/.next/server/pages/500.html +1 -1
  103. package/packages/scrabble-solver/.next/server/pages/_app.js.nft.json +1 -1
  104. package/packages/scrabble-solver/.next/server/pages/api/dictionary/[locale]/[word].js +2 -2
  105. package/packages/scrabble-solver/.next/server/pages/api/dictionary/[locale]/[word].js.nft.json +1 -1
  106. package/packages/scrabble-solver/.next/server/pages/api/dictionary/[locale].js +1 -1
  107. package/packages/scrabble-solver/.next/server/pages/api/dictionary/[locale].js.nft.json +1 -1
  108. package/packages/scrabble-solver/.next/server/pages/api/solve.js +1 -1
  109. package/packages/scrabble-solver/.next/server/pages/api/solve.js.nft.json +1 -1
  110. package/packages/scrabble-solver/.next/server/pages/api/verify.js +1 -1
  111. package/packages/scrabble-solver/.next/server/pages/api/verify.js.nft.json +1 -1
  112. package/packages/scrabble-solver/.next/server/pages/api/visit.js +1 -1
  113. package/packages/scrabble-solver/.next/server/pages/index.html +1 -1
  114. package/packages/scrabble-solver/.next/server/pages/index.js +1 -1
  115. package/packages/scrabble-solver/.next/server/pages/index.js.nft.json +1 -1
  116. package/packages/scrabble-solver/.next/server/pages/index.json +1 -1
  117. package/packages/scrabble-solver/.next/server/webpack-api-runtime.js +1 -1
  118. package/packages/scrabble-solver/.next/static/chunks/{main-b934e2c3dd3b55b5.js → main-016492249b3393e2.js} +1 -1
  119. package/packages/scrabble-solver/.next/static/chunks/pages/{404-7451dd58396eaa39.js → 404-590e2a3839c1d9e0.js} +1 -1
  120. package/packages/scrabble-solver/.next/static/chunks/pages/_app-ac93a74c390f2ab8.js +1 -0
  121. package/packages/scrabble-solver/.next/static/chunks/pages/index-e5f1caa581e6d3b8.js +1 -0
  122. package/packages/scrabble-solver/.next/static/{3MlxnccTCLyz9bgD30zY2 → ylO_ttKeJTuoqDYywao5A}/_buildManifest.js +1 -1
  123. package/packages/scrabble-solver/.next/trace +23 -23
  124. package/packages/scrabble-solver/next.config.js +3 -0
  125. package/packages/scrabble-solver/package.json +9 -9
  126. package/packages/scrabble-solver/public/service-worker.js +2 -2
  127. package/packages/scrabble-solver/public/service-worker.js.map +1 -1
  128. package/packages/scrabble-solver/src/api/getServerLoggingData.ts +1 -3
  129. package/packages/scrabble-solver/src/api/index.ts +5 -5
  130. package/packages/scrabble-solver/src/api/isBoardValid.ts +3 -5
  131. package/packages/scrabble-solver/src/api/isCellValid.ts +4 -6
  132. package/packages/scrabble-solver/src/api/isCharacterValid.ts +2 -3
  133. package/packages/scrabble-solver/src/api/isRowValid.ts +3 -5
  134. package/packages/scrabble-solver/src/components/Alert/Alert.tsx +1 -3
  135. package/packages/scrabble-solver/src/components/Alert/index.ts +1 -1
  136. package/packages/scrabble-solver/src/components/Badge/Badge.tsx +1 -3
  137. package/packages/scrabble-solver/src/components/Badge/index.ts +1 -1
  138. package/packages/scrabble-solver/src/components/Board/Board.tsx +2 -4
  139. package/packages/scrabble-solver/src/components/Board/BoardPure.tsx +2 -2
  140. package/packages/scrabble-solver/src/components/Board/components/Actions/Actions.tsx +3 -5
  141. package/packages/scrabble-solver/src/components/Board/components/Actions/index.ts +1 -1
  142. package/packages/scrabble-solver/src/components/Board/components/Cell/Cell.tsx +3 -5
  143. package/packages/scrabble-solver/src/components/Board/components/Cell/index.ts +1 -1
  144. package/packages/scrabble-solver/src/components/Board/components/InputPrompt/InputPrompt.tsx +3 -5
  145. package/packages/scrabble-solver/src/components/Board/components/InputPrompt/index.ts +1 -1
  146. package/packages/scrabble-solver/src/components/Board/components/ToggleDirectionButton/ToggleDirectionButton.tsx +2 -4
  147. package/packages/scrabble-solver/src/components/Board/components/ToggleDirectionButton/index.ts +1 -1
  148. package/packages/scrabble-solver/src/components/Board/components/index.ts +4 -4
  149. package/packages/scrabble-solver/src/components/Board/hooks/index.ts +6 -6
  150. package/packages/scrabble-solver/src/components/Board/hooks/useBackgroundImage.tsx +7 -9
  151. package/packages/scrabble-solver/src/components/Board/hooks/useBoardStyle.ts +7 -9
  152. package/packages/scrabble-solver/src/components/Board/hooks/useFloatingActions.ts +1 -3
  153. package/packages/scrabble-solver/src/components/Board/hooks/useFloatingFocus.ts +1 -3
  154. package/packages/scrabble-solver/src/components/Board/hooks/useFloatingInputPrompt.ts +1 -3
  155. package/packages/scrabble-solver/src/components/Board/hooks/useGrid.ts +2 -4
  156. package/packages/scrabble-solver/src/components/Board/index.ts +1 -1
  157. package/packages/scrabble-solver/src/components/Board/lib/getBonusColor.ts +1 -3
  158. package/packages/scrabble-solver/src/components/Board/lib/getPositionInGrid.ts +1 -3
  159. package/packages/scrabble-solver/src/components/Board/lib/index.ts +2 -2
  160. package/packages/scrabble-solver/src/components/Button/Button.tsx +3 -3
  161. package/packages/scrabble-solver/src/components/Button/Link.tsx +1 -3
  162. package/packages/scrabble-solver/src/components/Button/index.ts +1 -1
  163. package/packages/scrabble-solver/src/components/Dictionary/Dictionary.tsx +3 -5
  164. package/packages/scrabble-solver/src/components/Dictionary/index.ts +1 -1
  165. package/packages/scrabble-solver/src/components/DictionaryInput/DictionaryInput.tsx +1 -3
  166. package/packages/scrabble-solver/src/components/DictionaryInput/index.ts +1 -1
  167. package/packages/scrabble-solver/src/components/EmptyState/EmptyState.tsx +2 -4
  168. package/packages/scrabble-solver/src/components/EmptyState/index.ts +1 -1
  169. package/packages/scrabble-solver/src/components/IconButton/IconButton.tsx +3 -3
  170. package/packages/scrabble-solver/src/components/IconButton/Link.tsx +1 -3
  171. package/packages/scrabble-solver/src/components/IconButton/index.ts +1 -1
  172. package/packages/scrabble-solver/src/components/Key/Key.tsx +1 -3
  173. package/packages/scrabble-solver/src/components/Key/index.ts +1 -1
  174. package/packages/scrabble-solver/src/components/Keys/Arrows/Arrows.tsx +2 -4
  175. package/packages/scrabble-solver/src/components/Keys/Arrows/index.ts +1 -1
  176. package/packages/scrabble-solver/src/components/{keys.tsx → Keys/index.tsx} +3 -1
  177. package/packages/scrabble-solver/src/components/Loading/Loading.tsx +2 -4
  178. package/packages/scrabble-solver/src/components/Loading/index.ts +1 -1
  179. package/packages/scrabble-solver/src/components/Logo/Logo.tsx +1 -3
  180. package/packages/scrabble-solver/src/components/Logo/LogoBlueprint.tsx +2 -4
  181. package/packages/scrabble-solver/src/components/Logo/index.ts +1 -1
  182. package/packages/scrabble-solver/src/components/Modal/Modal.tsx +3 -3
  183. package/packages/scrabble-solver/src/components/Modal/components/Section/Section.tsx +1 -3
  184. package/packages/scrabble-solver/src/components/Modal/components/Section/index.ts +1 -1
  185. package/packages/scrabble-solver/src/components/Modal/components/index.ts +1 -1
  186. package/packages/scrabble-solver/src/components/Modal/index.ts +1 -1
  187. package/packages/scrabble-solver/src/components/NavButtons/NavButtons.tsx +3 -3
  188. package/packages/scrabble-solver/src/components/NavButtons/index.ts +1 -1
  189. package/packages/scrabble-solver/src/components/NotFound/NotFound.tsx +2 -4
  190. package/packages/scrabble-solver/src/components/NotFound/index.ts +1 -1
  191. package/packages/scrabble-solver/src/components/PlainTiles/PlainTiles.tsx +10 -4
  192. package/packages/scrabble-solver/src/components/PlainTiles/Tile.tsx +1 -3
  193. package/packages/scrabble-solver/src/components/PlainTiles/index.ts +1 -1
  194. package/packages/scrabble-solver/src/components/PlainTiles/lib/createPlainTile.ts +10 -6
  195. package/packages/scrabble-solver/src/components/PlainTiles/lib/createPlainTiles.ts +2 -4
  196. package/packages/scrabble-solver/src/components/PlainTiles/lib/getViewbox.ts +1 -3
  197. package/packages/scrabble-solver/src/components/PlainTiles/lib/getX.ts +1 -3
  198. package/packages/scrabble-solver/src/components/PlainTiles/lib/getY.ts +1 -3
  199. package/packages/scrabble-solver/src/components/PlainTiles/lib/index.ts +6 -6
  200. package/packages/scrabble-solver/src/components/PlainTiles/lib/randomize.ts +1 -3
  201. package/packages/scrabble-solver/src/components/Progress/Progress.tsx +1 -3
  202. package/packages/scrabble-solver/src/components/Progress/index.ts +1 -1
  203. package/packages/scrabble-solver/src/components/Rack/Rack.tsx +2 -4
  204. package/packages/scrabble-solver/src/components/Rack/components/InputPrompt/InputPrompt.tsx +2 -2
  205. package/packages/scrabble-solver/src/components/Rack/components/InputPrompt/index.ts +1 -1
  206. package/packages/scrabble-solver/src/components/Rack/components/RackTile/RackTile.tsx +4 -7
  207. package/packages/scrabble-solver/src/components/Rack/components/RackTile/index.ts +1 -1
  208. package/packages/scrabble-solver/src/components/Rack/components/index.ts +2 -2
  209. package/packages/scrabble-solver/src/components/Rack/index.ts +1 -1
  210. package/packages/scrabble-solver/src/components/Radio/Radio.tsx +1 -3
  211. package/packages/scrabble-solver/src/components/Radio/index.ts +1 -1
  212. package/packages/scrabble-solver/src/components/Results/Cell.tsx +9 -3
  213. package/packages/scrabble-solver/src/components/Results/Header.tsx +2 -4
  214. package/packages/scrabble-solver/src/components/Results/HeaderButton.tsx +1 -3
  215. package/packages/scrabble-solver/src/components/Results/Result.tsx +2 -4
  216. package/packages/scrabble-solver/src/components/Results/Results.tsx +7 -9
  217. package/packages/scrabble-solver/src/components/Results/SolveButton.tsx +2 -4
  218. package/packages/scrabble-solver/src/components/Results/index.ts +1 -1
  219. package/packages/scrabble-solver/src/components/ResultsInput/ResultsInput.tsx +1 -3
  220. package/packages/scrabble-solver/src/components/ResultsInput/index.ts +1 -1
  221. package/packages/scrabble-solver/src/components/SeoMessage/SeoMessage.tsx +4 -6
  222. package/packages/scrabble-solver/src/components/SeoMessage/index.ts +1 -1
  223. package/packages/scrabble-solver/src/components/Solver/Solver.tsx +8 -8
  224. package/packages/scrabble-solver/src/components/Solver/components/InsertButton/InsertButton.tsx +2 -4
  225. package/packages/scrabble-solver/src/components/Solver/components/InsertButton/index.ts +1 -1
  226. package/packages/scrabble-solver/src/components/Solver/components/ResultCandidatePicker/ResultCandidatePicker.tsx +4 -6
  227. package/packages/scrabble-solver/src/components/Solver/components/ResultCandidatePicker/index.ts +1 -1
  228. package/packages/scrabble-solver/src/components/Solver/components/index.ts +2 -2
  229. package/packages/scrabble-solver/src/components/Solver/index.ts +1 -1
  230. package/packages/scrabble-solver/src/components/Spinner/Spinner.tsx +1 -3
  231. package/packages/scrabble-solver/src/components/Spinner/index.ts +1 -1
  232. package/packages/scrabble-solver/src/components/Tile/Tile.tsx +2 -4
  233. package/packages/scrabble-solver/src/components/Tile/TilePure.tsx +2 -2
  234. package/packages/scrabble-solver/src/components/Tile/index.ts +1 -1
  235. package/packages/scrabble-solver/src/components/Tooltip/TooltipTrigger.tsx +5 -3
  236. package/packages/scrabble-solver/src/components/index.ts +24 -25
  237. package/packages/scrabble-solver/src/hooks/index.ts +13 -13
  238. package/packages/scrabble-solver/src/hooks/useAppLayout.ts +19 -15
  239. package/packages/scrabble-solver/src/hooks/useColumns.ts +2 -4
  240. package/packages/scrabble-solver/src/hooks/useDirection.ts +1 -3
  241. package/packages/scrabble-solver/src/hooks/useEffectOnce.ts +2 -4
  242. package/packages/scrabble-solver/src/hooks/useIsTouchDevice.ts +2 -4
  243. package/packages/scrabble-solver/src/hooks/useLanguage.ts +1 -3
  244. package/packages/scrabble-solver/src/hooks/useLatest.ts +1 -3
  245. package/packages/scrabble-solver/src/hooks/useLocalStorage.ts +1 -3
  246. package/packages/scrabble-solver/src/hooks/useMedia.ts +1 -3
  247. package/packages/scrabble-solver/src/hooks/useMediaQueries.ts +2 -4
  248. package/packages/scrabble-solver/src/hooks/useMediaQuery.ts +2 -4
  249. package/packages/scrabble-solver/src/hooks/useOnWindowResize.ts +1 -3
  250. package/packages/scrabble-solver/src/hooks/useViewportSize.ts +2 -4
  251. package/packages/scrabble-solver/src/i18n/i18n.ts +1 -3
  252. package/packages/scrabble-solver/src/i18n/index.ts +1 -1
  253. package/packages/scrabble-solver/src/lib/arrayEquals.ts +1 -3
  254. package/packages/scrabble-solver/src/lib/createArray.ts +1 -3
  255. package/packages/scrabble-solver/src/lib/createComparator.ts +3 -5
  256. package/packages/scrabble-solver/src/lib/createGridOf.ts +2 -4
  257. package/packages/scrabble-solver/src/lib/createKeyComparator.ts +6 -5
  258. package/packages/scrabble-solver/src/lib/createKeyboardNavigation.ts +2 -4
  259. package/packages/scrabble-solver/src/lib/createNullMovingComparator.test.ts +1 -1
  260. package/packages/scrabble-solver/src/lib/createNullMovingComparator.ts +1 -3
  261. package/packages/scrabble-solver/src/lib/createRegExp.ts +1 -3
  262. package/packages/scrabble-solver/src/lib/createStringComparator.ts +5 -3
  263. package/packages/scrabble-solver/src/lib/detectLocale.ts +1 -3
  264. package/packages/scrabble-solver/src/lib/extractCharacters.test.ts +1 -1
  265. package/packages/scrabble-solver/src/lib/extractCharacters.ts +1 -3
  266. package/packages/scrabble-solver/src/lib/extractCharactersByCase.test.ts +1 -1
  267. package/packages/scrabble-solver/src/lib/extractCharactersByCase.ts +2 -4
  268. package/packages/scrabble-solver/src/lib/extractInputValue.ts +1 -3
  269. package/packages/scrabble-solver/src/lib/findCell.ts +1 -3
  270. package/packages/scrabble-solver/src/lib/getCellSize.ts +3 -5
  271. package/packages/scrabble-solver/src/lib/getCoordinate.ts +1 -3
  272. package/packages/scrabble-solver/src/lib/getCoordinates.ts +2 -4
  273. package/packages/scrabble-solver/src/lib/getRemainingTiles.ts +8 -5
  274. package/packages/scrabble-solver/src/lib/getRemainingTilesCount.ts +1 -3
  275. package/packages/scrabble-solver/src/lib/getRemainingTilesGroups.ts +3 -5
  276. package/packages/scrabble-solver/src/lib/getTileSizes.ts +1 -3
  277. package/packages/scrabble-solver/src/lib/getTotalRemainingTilesCount.ts +1 -3
  278. package/packages/scrabble-solver/src/lib/groupResults.ts +3 -5
  279. package/packages/scrabble-solver/src/lib/guessLocale.ts +2 -4
  280. package/packages/scrabble-solver/src/lib/index.ts +39 -39
  281. package/packages/scrabble-solver/src/lib/inverseDirection.ts +1 -3
  282. package/packages/scrabble-solver/src/lib/isCtrl.ts +1 -3
  283. package/packages/scrabble-solver/src/lib/isMac.ts +3 -4
  284. package/packages/scrabble-solver/src/lib/isRegExp.ts +1 -3
  285. package/packages/scrabble-solver/src/lib/isStringArray.ts +1 -3
  286. package/packages/scrabble-solver/src/lib/isUpperCase.ts +1 -3
  287. package/packages/scrabble-solver/src/lib/memoize.ts +18 -20
  288. package/packages/scrabble-solver/src/lib/noop.ts +1 -3
  289. package/packages/scrabble-solver/src/lib/numberComparator.ts +1 -3
  290. package/packages/scrabble-solver/src/lib/resultMatchesCellFilter.ts +1 -3
  291. package/packages/scrabble-solver/src/lib/reverseComparator.ts +1 -3
  292. package/packages/scrabble-solver/src/lib/sortGroupedResults.ts +2 -4
  293. package/packages/scrabble-solver/src/lib/sortResults.ts +5 -7
  294. package/packages/scrabble-solver/src/lib/unorderedArraysEqual.ts +2 -4
  295. package/packages/scrabble-solver/src/lib/zipCharactersAndTiles.ts +1 -3
  296. package/packages/scrabble-solver/src/modals/DictionaryModal/DictionaryModal.tsx +2 -2
  297. package/packages/scrabble-solver/src/modals/DictionaryModal/index.ts +1 -1
  298. package/packages/scrabble-solver/src/modals/KeyMapModal/KeyMapModal.tsx +2 -2
  299. package/packages/scrabble-solver/src/modals/KeyMapModal/components/Mapping/Mapping.tsx +1 -3
  300. package/packages/scrabble-solver/src/modals/KeyMapModal/components/Mapping/index.ts +1 -1
  301. package/packages/scrabble-solver/src/modals/KeyMapModal/components/index.ts +1 -1
  302. package/packages/scrabble-solver/src/modals/KeyMapModal/index.ts +1 -1
  303. package/packages/scrabble-solver/src/modals/MenuModal/MenuModal.tsx +2 -2
  304. package/packages/scrabble-solver/src/modals/MenuModal/index.ts +1 -1
  305. package/packages/scrabble-solver/src/modals/RemainingTilesModal/RemainingTilesModal.tsx +2 -2
  306. package/packages/scrabble-solver/src/modals/RemainingTilesModal/components/Character/Character.tsx +1 -3
  307. package/packages/scrabble-solver/src/modals/RemainingTilesModal/components/Character/index.ts +1 -1
  308. package/packages/scrabble-solver/src/modals/RemainingTilesModal/components/index.ts +1 -1
  309. package/packages/scrabble-solver/src/modals/RemainingTilesModal/index.ts +1 -1
  310. package/packages/scrabble-solver/src/modals/ResultsModal/ResultsModal.tsx +2 -2
  311. package/packages/scrabble-solver/src/modals/ResultsModal/index.ts +1 -1
  312. package/packages/scrabble-solver/src/modals/SettingsModal/SettingsModal.tsx +2 -2
  313. package/packages/scrabble-solver/src/modals/SettingsModal/components/AutoGroupTilesSetting/AutoGroupTilesSetting.tsx +1 -3
  314. package/packages/scrabble-solver/src/modals/SettingsModal/components/AutoGroupTilesSetting/index.ts +1 -1
  315. package/packages/scrabble-solver/src/modals/SettingsModal/components/ConfigSetting/ConfigSetting.tsx +4 -10
  316. package/packages/scrabble-solver/src/modals/SettingsModal/components/ConfigSetting/index.ts +1 -1
  317. package/packages/scrabble-solver/src/modals/SettingsModal/components/ConfigSetting/lib.ts +19 -0
  318. package/packages/scrabble-solver/src/modals/SettingsModal/components/InputModeSetting/InputModeSetting.tsx +1 -3
  319. package/packages/scrabble-solver/src/modals/SettingsModal/components/InputModeSetting/index.ts +1 -1
  320. package/packages/scrabble-solver/src/modals/SettingsModal/components/LocaleSetting/LocaleSetting.tsx +1 -3
  321. package/packages/scrabble-solver/src/modals/SettingsModal/components/LocaleSetting/index.ts +1 -1
  322. package/packages/scrabble-solver/src/modals/SettingsModal/components/ShowCoordinatesSetting/ShowCoordinatesSetting.tsx +1 -3
  323. package/packages/scrabble-solver/src/modals/SettingsModal/components/ShowCoordinatesSetting/index.ts +1 -1
  324. package/packages/scrabble-solver/src/modals/SettingsModal/components/index.ts +5 -5
  325. package/packages/scrabble-solver/src/modals/SettingsModal/index.ts +1 -1
  326. package/packages/scrabble-solver/src/modals/WordsModal/WordsModal.tsx +2 -2
  327. package/packages/scrabble-solver/src/modals/WordsModal/index.ts +1 -1
  328. package/packages/scrabble-solver/src/modals/index.ts +7 -7
  329. package/packages/scrabble-solver/src/pages/_app.tsx +2 -1
  330. package/packages/scrabble-solver/src/pages/api/dictionary/[locale]/[word].ts +1 -1
  331. package/packages/scrabble-solver/src/pages/api/dictionary/[locale]/index.ts +1 -1
  332. package/packages/scrabble-solver/src/pages/api/solve.ts +6 -4
  333. package/packages/scrabble-solver/src/pages/api/verify.ts +6 -4
  334. package/packages/scrabble-solver/src/pages/api/visit.ts +2 -2
  335. package/packages/scrabble-solver/src/pages/index.tsx +7 -0
  336. package/packages/scrabble-solver/src/sdk/fetch.ts +1 -3
  337. package/packages/scrabble-solver/src/sdk/fetchJson.ts +2 -4
  338. package/packages/scrabble-solver/src/sdk/findWordDefinitions.ts +2 -4
  339. package/packages/scrabble-solver/src/sdk/getDictionary.ts +2 -4
  340. package/packages/scrabble-solver/src/sdk/index.ts +4 -4
  341. package/packages/scrabble-solver/src/sdk/solve.ts +2 -4
  342. package/packages/scrabble-solver/src/sdk/verify.ts +2 -4
  343. package/packages/scrabble-solver/src/sdk/visit.ts +1 -3
  344. package/packages/scrabble-solver/src/service-worker/average.ts +1 -3
  345. package/packages/scrabble-solver/src/service-worker/dictionaries/expirationManager.ts +1 -3
  346. package/packages/scrabble-solver/src/service-worker/dictionaries/getDictionary.ts +3 -5
  347. package/packages/scrabble-solver/src/service-worker/dictionaries/getDictionaryUrl.ts +1 -3
  348. package/packages/scrabble-solver/src/service-worker/dictionaries/index.ts +2 -2
  349. package/packages/scrabble-solver/src/service-worker/dictionaries/revalidateDictionary.ts +3 -5
  350. package/packages/scrabble-solver/src/service-worker/getTrie.ts +1 -3
  351. package/packages/scrabble-solver/src/service-worker/index.ts +4 -2
  352. package/packages/scrabble-solver/src/service-worker/routeSolveRequests.ts +17 -11
  353. package/packages/scrabble-solver/src/service-worker/routeVerifyRequests.ts +7 -5
  354. package/packages/scrabble-solver/src/serviceWorkerManager.ts +4 -4
  355. package/packages/scrabble-solver/src/state/index.ts +4 -4
  356. package/packages/scrabble-solver/src/state/localStorage.ts +10 -12
  357. package/packages/scrabble-solver/src/state/sagas.ts +4 -1
  358. package/packages/scrabble-solver/src/state/selectors.ts +2 -5
  359. package/packages/scrabble-solver/src/state/slices/boardInitialState.ts +6 -7
  360. package/packages/scrabble-solver/src/state/slices/boardSlice.ts +5 -7
  361. package/packages/scrabble-solver/src/state/slices/cellFilterInitialState.ts +1 -3
  362. package/packages/scrabble-solver/src/state/slices/cellFilterSlice.ts +2 -4
  363. package/packages/scrabble-solver/src/state/slices/dictionaryInitialState.ts +2 -4
  364. package/packages/scrabble-solver/src/state/slices/dictionarySlice.ts +2 -4
  365. package/packages/scrabble-solver/src/state/slices/index.ts +16 -16
  366. package/packages/scrabble-solver/src/state/slices/rackInitialState.ts +2 -4
  367. package/packages/scrabble-solver/src/state/slices/rackSlice.ts +2 -4
  368. package/packages/scrabble-solver/src/state/slices/resultsInitialState.ts +1 -3
  369. package/packages/scrabble-solver/src/state/slices/resultsSlice.ts +2 -4
  370. package/packages/scrabble-solver/src/state/slices/settingsInitialState.ts +2 -4
  371. package/packages/scrabble-solver/src/state/slices/settingsSlice.ts +2 -4
  372. package/packages/scrabble-solver/src/state/slices/solveInitialState.ts +3 -5
  373. package/packages/scrabble-solver/src/state/slices/solveSlice.ts +2 -4
  374. package/packages/scrabble-solver/src/state/slices/verifyInitialState.ts +2 -4
  375. package/packages/scrabble-solver/src/state/slices/verifySlice.ts +2 -4
  376. package/packages/scrabble-solver/src/state/store.ts +1 -3
  377. package/packages/scrabble-solver/src/state/useTranslate.ts +2 -4
  378. package/packages/scrabble-solver/src/state/useTypedSelector.ts +1 -3
  379. package/packages/scrabble-solver/src/types/api.ts +15 -0
  380. package/packages/scrabble-solver/src/types/index.ts +2 -0
  381. package/packages/scrabble-solver/tsconfig.json +1 -1
  382. package/packages/solver/build/areDigraphsValid.d.ts +1 -2
  383. package/packages/solver/build/areDigraphsValid.js +2 -1
  384. package/packages/solver/build/fillPattern.d.ts +1 -2
  385. package/packages/solver/build/fillPattern.js +2 -2
  386. package/packages/solver/build/generateEndIndices.d.ts +1 -2
  387. package/packages/solver/build/generateEndIndices.js +2 -1
  388. package/packages/solver/build/generateHorizontalPatterns.d.ts +1 -2
  389. package/packages/solver/build/generateHorizontalPatterns.js +7 -8
  390. package/packages/solver/build/generatePattern.d.ts +1 -2
  391. package/packages/solver/build/generatePattern.js +6 -8
  392. package/packages/solver/build/generatePatterns.d.ts +1 -2
  393. package/packages/solver/build/generatePatterns.js +6 -8
  394. package/packages/solver/build/generateStartIndices.d.ts +1 -2
  395. package/packages/solver/build/generateStartIndices.js +2 -1
  396. package/packages/solver/build/generateVectors.d.ts +2 -2
  397. package/packages/solver/build/generateVectors.js +2 -1
  398. package/packages/solver/build/generateVerticalPatterns.d.ts +1 -2
  399. package/packages/solver/build/generateVerticalPatterns.js +7 -8
  400. package/packages/solver/build/getCellsScore.d.ts +1 -2
  401. package/packages/solver/build/getCellsScore.js +2 -1
  402. package/packages/solver/build/getPatternHash.d.ts +1 -2
  403. package/packages/solver/build/getPatternHash.js +2 -1
  404. package/packages/solver/build/getPatternScore.d.ts +1 -2
  405. package/packages/solver/build/getPatternScore.js +4 -6
  406. package/packages/solver/build/getUniquePatterns.d.ts +1 -2
  407. package/packages/solver/build/getUniquePatterns.js +4 -6
  408. package/packages/solver/build/index.d.ts +14 -14
  409. package/packages/solver/build/index.js +14 -17
  410. package/packages/solver/build/solve.d.ts +1 -2
  411. package/packages/solver/build/solve.js +12 -14
  412. package/packages/solver/package.json +5 -5
  413. package/packages/solver/src/areDigraphsValid.ts +1 -3
  414. package/packages/solver/src/fillPattern.test.ts +1 -1
  415. package/packages/solver/src/fillPattern.ts +1 -3
  416. package/packages/solver/src/generateEndIndices.test.ts +1 -1
  417. package/packages/solver/src/generateEndIndices.ts +1 -3
  418. package/packages/solver/src/generateHorizontalPatterns.test.ts +3 -2
  419. package/packages/solver/src/generateHorizontalPatterns.ts +5 -6
  420. package/packages/solver/src/generatePattern.ts +3 -5
  421. package/packages/solver/src/generatePatterns.test.ts +2 -2
  422. package/packages/solver/src/generatePatterns.ts +3 -5
  423. package/packages/solver/src/generateStartIndices.test.ts +1 -1
  424. package/packages/solver/src/generateStartIndices.ts +1 -3
  425. package/packages/solver/src/generateVectors.test.ts +1 -1
  426. package/packages/solver/src/generateVectors.ts +1 -3
  427. package/packages/solver/src/generateVerticalPatterns.test.ts +3 -2
  428. package/packages/solver/src/generateVerticalPatterns.ts +5 -6
  429. package/packages/solver/src/getCellsScore.ts +1 -3
  430. package/packages/solver/src/getPatternHash.test.ts +1 -1
  431. package/packages/solver/src/getPatternHash.ts +1 -3
  432. package/packages/solver/src/getPatternScore.test.ts +1 -1
  433. package/packages/solver/src/getPatternScore.ts +2 -4
  434. package/packages/solver/src/getUniquePatterns.ts +2 -4
  435. package/packages/solver/src/index.ts +14 -14
  436. package/packages/solver/src/solve.test.ts +1 -1
  437. package/packages/solver/src/solve.ts +6 -8
  438. package/packages/types/build/Board.d.ts +5 -6
  439. package/packages/types/build/Board.js +17 -16
  440. package/packages/types/build/BoardJson.d.ts +2 -3
  441. package/packages/types/build/Bonus.d.ts +5 -6
  442. package/packages/types/build/Bonus.js +2 -1
  443. package/packages/types/build/BonusJson.d.ts +1 -2
  444. package/packages/types/build/BonusValue.d.ts +1 -2
  445. package/packages/types/build/Cell.d.ts +4 -5
  446. package/packages/types/build/Cell.js +13 -15
  447. package/packages/types/build/CellJson.d.ts +2 -3
  448. package/packages/types/build/CellJson.js +2 -5
  449. package/packages/types/build/CharacterBonus.d.ts +5 -6
  450. package/packages/types/build/CharacterBonus.js +4 -6
  451. package/packages/types/build/Collision.d.ts +2 -3
  452. package/packages/types/build/CollisionJson.d.ts +2 -3
  453. package/packages/types/build/Config.d.ts +12 -12
  454. package/packages/types/build/Config.js +14 -13
  455. package/packages/types/build/ConfigJson.d.ts +7 -7
  456. package/packages/types/build/Dictionary.d.ts +2 -3
  457. package/packages/types/build/FinalPattern.d.ts +2 -3
  458. package/packages/types/build/FinalPattern.js +4 -6
  459. package/packages/types/build/Game.d.ts +2 -2
  460. package/packages/types/build/Game.js +3 -3
  461. package/packages/types/build/HorizontalPattern.d.ts +2 -3
  462. package/packages/types/build/HorizontalPattern.js +5 -7
  463. package/packages/types/build/Locale.d.ts +1 -2
  464. package/packages/types/build/Locale.js +2 -3
  465. package/packages/types/build/Pattern.d.ts +5 -6
  466. package/packages/types/build/Pattern.js +2 -1
  467. package/packages/types/build/PatternJson.d.ts +2 -3
  468. package/packages/types/build/Result.d.ts +6 -6
  469. package/packages/types/build/Result.js +11 -13
  470. package/packages/types/build/ResultJson.d.ts +3 -4
  471. package/packages/types/build/ShowCoordinates.d.ts +1 -2
  472. package/packages/types/build/Tile.d.ts +3 -4
  473. package/packages/types/build/Tile.js +11 -10
  474. package/packages/types/build/TileConfig.d.ts +1 -2
  475. package/packages/types/build/TileJson.d.ts +1 -2
  476. package/packages/types/build/TileJson.js +2 -5
  477. package/packages/types/build/VerticalPattern.d.ts +2 -3
  478. package/packages/types/build/VerticalPattern.js +5 -7
  479. package/packages/types/build/WordBonus.d.ts +3 -4
  480. package/packages/types/build/WordBonus.js +4 -6
  481. package/packages/types/build/WordDefinition.d.ts +3 -4
  482. package/packages/types/build/WordDefinition.js +13 -12
  483. package/packages/types/build/WordDefinitionJson.d.ts +1 -2
  484. package/packages/types/build/index.d.ts +31 -31
  485. package/packages/types/build/index.js +20 -23
  486. package/packages/types/build/isError.d.ts +1 -2
  487. package/packages/types/build/isError.js +4 -6
  488. package/packages/types/build/isObject.d.ts +1 -2
  489. package/packages/types/build/isObject.js +2 -1
  490. package/packages/types/package.json +2 -2
  491. package/packages/types/src/Board.ts +14 -13
  492. package/packages/types/src/BoardJson.ts +2 -4
  493. package/packages/types/src/Bonus.ts +5 -7
  494. package/packages/types/src/BonusJson.ts +1 -3
  495. package/packages/types/src/BonusValue.ts +1 -3
  496. package/packages/types/src/Cell.ts +5 -7
  497. package/packages/types/src/CellJson.ts +3 -5
  498. package/packages/types/src/CharacterBonus.ts +5 -7
  499. package/packages/types/src/Collision.ts +2 -4
  500. package/packages/types/src/CollisionJson.ts +2 -4
  501. package/packages/types/src/Config.ts +20 -18
  502. package/packages/types/src/ConfigJson.ts +7 -8
  503. package/packages/types/src/Dictionary.ts +2 -4
  504. package/packages/types/src/FinalPattern.ts +2 -4
  505. package/packages/types/src/Game.ts +2 -3
  506. package/packages/types/src/HorizontalPattern.ts +2 -4
  507. package/packages/types/src/Locale.ts +1 -3
  508. package/packages/types/src/Pattern.ts +5 -7
  509. package/packages/types/src/PatternJson.ts +2 -4
  510. package/packages/types/src/Result.ts +6 -8
  511. package/packages/types/src/ResultJson.ts +3 -5
  512. package/packages/types/src/ShowCoordinates.ts +1 -3
  513. package/packages/types/src/Tile.ts +4 -6
  514. package/packages/types/src/TileConfig.ts +1 -3
  515. package/packages/types/src/TileJson.ts +2 -4
  516. package/packages/types/src/VerticalPattern.ts +2 -4
  517. package/packages/types/src/WordBonus.ts +3 -5
  518. package/packages/types/src/WordDefinition.ts +4 -6
  519. package/packages/types/src/WordDefinitionJson.ts +1 -3
  520. package/packages/types/src/index.ts +31 -31
  521. package/packages/types/src/isError.ts +2 -4
  522. package/packages/types/src/isObject.ts +1 -3
  523. package/packages/word-definitions/build/languages/turkish.js +1 -1
  524. package/packages/word-definitions/build/lib/index.d.ts +3 -3
  525. package/packages/word-definitions/build/lib/index.js +7 -17
  526. package/packages/word-definitions/build/lib/request.js +2 -1
  527. package/packages/word-definitions/package.json +2 -2
  528. package/packages/word-definitions/src/languages/turkish.ts +3 -3
  529. package/packages/word-definitions/src/lib/index.ts +3 -3
  530. package/packages/word-definitions/src/lib/request.ts +2 -1
  531. package/packages/word-definitions/src/parse.test.ts +1 -1
  532. package/packages/word-lists/build/languages/polish.js +1 -1
  533. package/packages/word-lists/build/lib/downloadFile.d.ts +1 -2
  534. package/packages/word-lists/build/lib/downloadFile.js +4 -3
  535. package/packages/word-lists/build/lib/downloadHtml.d.ts +1 -2
  536. package/packages/word-lists/build/lib/downloadHtml.js +2 -1
  537. package/packages/word-lists/build/lib/extractWords.d.ts +1 -2
  538. package/packages/word-lists/build/lib/extractWords.js +4 -6
  539. package/packages/word-lists/build/lib/findFirstWordIndex.d.ts +1 -2
  540. package/packages/word-lists/build/lib/findFirstWordIndex.js +2 -1
  541. package/packages/word-lists/build/lib/getHash.d.ts +1 -2
  542. package/packages/word-lists/build/lib/getHash.js +2 -1
  543. package/packages/word-lists/build/lib/getTempFilepath.d.ts +1 -2
  544. package/packages/word-lists/build/lib/getTempFilepath.js +4 -3
  545. package/packages/word-lists/build/lib/getTxtWordList.d.ts +1 -2
  546. package/packages/word-lists/build/lib/getTxtWordList.js +6 -5
  547. package/packages/word-lists/build/lib/index.d.ts +10 -10
  548. package/packages/word-lists/build/lib/index.js +10 -13
  549. package/packages/word-lists/build/lib/transliterateDiacritics.d.ts +1 -2
  550. package/packages/word-lists/build/lib/transliterateDiacritics.js +4 -6
  551. package/packages/word-lists/build/lib/unique.d.ts +1 -2
  552. package/packages/word-lists/build/lib/unique.js +2 -1
  553. package/packages/word-lists/build/lib/unzip.d.ts +1 -2
  554. package/packages/word-lists/build/lib/unzip.js +2 -1
  555. package/packages/word-lists/package.json +2 -2
  556. package/packages/word-lists/src/languages/polish.ts +1 -1
  557. package/packages/word-lists/src/lib/downloadFile.ts +2 -4
  558. package/packages/word-lists/src/lib/downloadHtml.ts +1 -3
  559. package/packages/word-lists/src/lib/extractWords.ts +2 -4
  560. package/packages/word-lists/src/lib/findFirstWordIndex.ts +1 -3
  561. package/packages/word-lists/src/lib/getHash.ts +1 -3
  562. package/packages/word-lists/src/lib/getTempFilepath.ts +2 -4
  563. package/packages/word-lists/src/lib/getTxtWordList.ts +3 -5
  564. package/packages/word-lists/src/lib/index.ts +10 -10
  565. package/packages/word-lists/src/lib/transliterateDiacritics.ts +2 -4
  566. package/packages/word-lists/src/lib/unique.ts +1 -3
  567. package/packages/word-lists/src/lib/unzip.ts +3 -5
  568. package/tsconfig.jest.json +1 -2
  569. package/tsconfig.json +2 -1
  570. package/.eslintrc.js +0 -559
  571. package/packages/dictionaries/build/types/index.d.ts +0 -1
  572. package/packages/dictionaries/build/types/index.js +0 -2
  573. package/packages/dictionaries/src/types/index.ts +0 -1
  574. package/packages/scrabble-solver/.next/cache/eslint/.cache_8dgz12 +0 -1
  575. package/packages/scrabble-solver/.next/static/chunks/pages/_app-735105409cfdb48f.js +0 -1
  576. package/packages/scrabble-solver/.next/static/chunks/pages/index-d492616d9bc42176.js +0 -1
  577. package/packages/scrabble-solver/src/components/Keys/index.ts +0 -1
  578. package/packages/scrabble-solver/tsconfig.jest.json +0 -7
  579. /package/packages/dictionaries/build/{constants/index.d.ts → constants.d.ts} +0 -0
  580. /package/packages/dictionaries/build/{constants/index.js → constants.js} +0 -0
  581. /package/packages/dictionaries/build/{types/Cache.js → types.js} +0 -0
  582. /package/packages/dictionaries/src/{constants/index.ts → constants.ts} +0 -0
  583. /package/packages/scrabble-solver/.next/static/{3MlxnccTCLyz9bgD30zY2 → ylO_ttKeJTuoqDYywao5A}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- export { default } from './EmptyState';
1
+ export { EmptyState } from './EmptyState';
@@ -4,7 +4,7 @@ import { ButtonHTMLAttributes, FunctionComponent, MouseEventHandler, SVGAttribut
4
4
  import { Tooltip } from '../Tooltip';
5
5
 
6
6
  import styles from './IconButton.module.scss';
7
- import Link from './Link';
7
+ import { Link } from './Link';
8
8
 
9
9
  interface Props extends ButtonHTMLAttributes<HTMLButtonElement> {
10
10
  'aria-label': string;
@@ -14,7 +14,7 @@ interface Props extends ButtonHTMLAttributes<HTMLButtonElement> {
14
14
  onClick: MouseEventHandler<HTMLButtonElement>;
15
15
  }
16
16
 
17
- const IconButton: FunctionComponent<Props> = ({ className, Icon, tooltip, ...props }) => {
17
+ const IconButtonBase: FunctionComponent<Props> = ({ className, Icon, tooltip, ...props }) => {
18
18
  return (
19
19
  <Tooltip tooltip={tooltip}>
20
20
  <button className={classNames(styles.iconButton, className)} type="button" {...props}>
@@ -26,6 +26,6 @@ const IconButton: FunctionComponent<Props> = ({ className, Icon, tooltip, ...pro
26
26
  );
27
27
  };
28
28
 
29
- export default Object.assign(IconButton, {
29
+ export const IconButton = Object.assign(IconButtonBase, {
30
30
  Link,
31
31
  });
@@ -13,7 +13,7 @@ interface Props extends AnchorHTMLAttributes<HTMLAnchorElement> {
13
13
  tooltip: string;
14
14
  }
15
15
 
16
- const Link: FunctionComponent<Props> = ({ className, Icon, tooltip, ...props }) => {
16
+ export const Link: FunctionComponent<Props> = ({ className, Icon, tooltip, ...props }) => {
17
17
  return (
18
18
  <Tooltip tooltip={tooltip}>
19
19
  <a className={classNames(styles.iconButton, className)} {...props}>
@@ -24,5 +24,3 @@ const Link: FunctionComponent<Props> = ({ className, Icon, tooltip, ...props })
24
24
  </Tooltip>
25
25
  );
26
26
  };
27
-
28
- export default Link;
@@ -1 +1 @@
1
- export { default } from './IconButton';
1
+ export { IconButton } from './IconButton';
@@ -8,8 +8,6 @@ interface Props {
8
8
  className?: string;
9
9
  }
10
10
 
11
- const Key: FunctionComponent<Props> = ({ children, className }) => (
11
+ export const Key: FunctionComponent<Props> = ({ children, className }) => (
12
12
  <kbd className={classNames(styles.key, className)}>{children}</kbd>
13
13
  );
14
-
15
- export default Key;
@@ -1 +1 @@
1
- export { default } from './Key';
1
+ export { Key } from './Key';
@@ -3,7 +3,7 @@ import { FunctionComponent } from 'react';
3
3
 
4
4
  import { ArrowDown, ArrowLeft, ArrowRight, ArrowUp } from 'icons';
5
5
 
6
- import Key from '../../Key';
6
+ import { Key } from '../../Key';
7
7
 
8
8
  import styles from './Arrows.module.scss';
9
9
 
@@ -11,7 +11,7 @@ interface Props {
11
11
  className?: string;
12
12
  }
13
13
 
14
- const Arrows: FunctionComponent<Props> = ({ className }) => (
14
+ export const Arrows: FunctionComponent<Props> = ({ className }) => (
15
15
  <div className={classNames(styles.arrows, className)}>
16
16
  <Key className={classNames(styles.arrow, styles.left)}>
17
17
  <ArrowLeft aria-hidden="true" role="img" />
@@ -27,5 +27,3 @@ const Arrows: FunctionComponent<Props> = ({ className }) => (
27
27
  </Key>
28
28
  </div>
29
29
  );
30
-
31
- export default Arrows;
@@ -1 +1 @@
1
- export { default } from './Arrows';
1
+ export { Arrows } from './Arrows';
@@ -3,7 +3,7 @@ import { FunctionComponent } from 'react';
3
3
  import { isMac } from 'lib';
4
4
  import { useTranslate } from 'state';
5
5
 
6
- import Key from './Key';
6
+ import { Key } from '../Key';
7
7
 
8
8
  interface Props {
9
9
  className?: string;
@@ -24,3 +24,5 @@ export const Space: FunctionComponent<Props> = ({ className }) => {
24
24
 
25
25
  return <Key className={className}>{` ${translate('common.space')} `}</Key>;
26
26
  };
27
+
28
+ export { Arrows } from './Arrows';
@@ -4,7 +4,7 @@ import { FunctionComponent, useMemo } from 'react';
4
4
  import { LOCALE_FEATURES } from 'i18n';
5
5
  import { selectLocale, useTranslate, useTypedSelector } from 'state';
6
6
 
7
- import PlainTiles from '../PlainTiles';
7
+ import { PlainTiles } from '../PlainTiles';
8
8
 
9
9
  import styles from './Loading.module.scss';
10
10
 
@@ -20,7 +20,7 @@ const prepareContent = (message: string): string[][] => {
20
20
  return [parts];
21
21
  };
22
22
 
23
- const Loading: FunctionComponent<Props> = ({ className, wave = true }) => {
23
+ export const Loading: FunctionComponent<Props> = ({ className, wave = true }) => {
24
24
  const translate = useTranslate();
25
25
  const locale = useTypedSelector(selectLocale);
26
26
  const { direction } = LOCALE_FEATURES[locale];
@@ -37,5 +37,3 @@ const Loading: FunctionComponent<Props> = ({ className, wave = true }) => {
37
37
  </div>
38
38
  );
39
39
  };
40
-
41
- export default Loading;
@@ -1 +1 @@
1
- export { default } from './Loading';
1
+ export { Loading } from './Loading';
@@ -8,12 +8,10 @@ interface Props {
8
8
  className?: string;
9
9
  }
10
10
 
11
- const Logo = forwardRef<HTMLImageElement, Props>((props, ref) => {
11
+ export const Logo = forwardRef<HTMLImageElement, Props>((props, ref) => {
12
12
  const { logoHeight, logoWidth } = useAppLayout();
13
13
 
14
14
  return (
15
15
  <Image {...props} alt="Scrabble Solver 2" height={logoHeight} priority ref={ref} src={LOGO_SRC} width={logoWidth} />
16
16
  );
17
17
  });
18
-
19
- export default Logo;
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { CSSProperties, FunctionComponent } from 'react';
9
9
 
10
- import PlainTiles from '../PlainTiles';
10
+ import { PlainTiles } from '../PlainTiles';
11
11
 
12
12
  interface Props {
13
13
  className?: string;
@@ -16,8 +16,6 @@ interface Props {
16
16
 
17
17
  const CONTENT = [['SCRABBLE'], ['SOLVER', '2']];
18
18
 
19
- const LogoBlueprint: FunctionComponent<Props> = ({ className, style }) => (
19
+ export const LogoBlueprint: FunctionComponent<Props> = ({ className, style }) => (
20
20
  <PlainTiles className={className} content={CONTENT} style={style} />
21
21
  );
22
-
23
- export default LogoBlueprint;
@@ -1 +1 @@
1
- export { default } from './Logo';
1
+ export { Logo } from './Logo';
@@ -6,7 +6,7 @@ import { CrossSquareFill } from 'icons';
6
6
  import { TRANSITION_DURATION_LONG } from 'parameters';
7
7
  import { useTranslate } from 'state';
8
8
 
9
- import IconButton from '../IconButton';
9
+ import { IconButton } from '../IconButton';
10
10
 
11
11
  import { Section } from './components';
12
12
  import styles from './Modal.module.scss';
@@ -20,7 +20,7 @@ export interface Props {
20
20
  onClose: () => void;
21
21
  }
22
22
 
23
- const Modal: FunctionComponent<Props> = ({ children, className, footer, isOpen, title, onClose }) => {
23
+ const ModalBase: FunctionComponent<Props> = ({ children, className, footer, isOpen, title, onClose }) => {
24
24
  const translate = useTranslate();
25
25
  const [shouldReturnFocusAfterClose, setShouldReturnFocusAfterClose] = useState(true);
26
26
 
@@ -83,6 +83,6 @@ const Modal: FunctionComponent<Props> = ({ children, className, footer, isOpen,
83
83
  );
84
84
  };
85
85
 
86
- export default Object.assign(Modal, {
86
+ export const Modal = Object.assign(ModalBase, {
87
87
  Section,
88
88
  });
@@ -10,11 +10,9 @@ interface Props {
10
10
  title: ReactNode;
11
11
  }
12
12
 
13
- const Section: FunctionComponent<Props> = ({ children, className, label, title }) => (
13
+ export const Section: FunctionComponent<Props> = ({ children, className, label, title }) => (
14
14
  <section aria-label={label} className={classNames(styles.section, className)}>
15
15
  <h2 className={styles.heading}>{title}</h2>
16
16
  <div>{children}</div>
17
17
  </section>
18
18
  );
19
-
20
- export default Section;
@@ -1 +1 @@
1
- export { default } from './Section';
1
+ export { Section } from './Section';
@@ -1 +1 @@
1
- export { default as Section } from './Section';
1
+ export { Section } from './Section';
@@ -1 +1 @@
1
- export { default } from './Modal';
1
+ export { Modal } from './Modal';
@@ -6,7 +6,7 @@ import { CardChecklist, Cog, Eraser, Github, KeyboardFill, List, Sack } from 'ic
6
6
  import { GITHUB_PROJECT_URL } from 'parameters';
7
7
  import { selectHasInvalidWords, selectHasOverusedTiles, useTranslate, useTypedSelector } from 'state';
8
8
 
9
- import IconButton from '../IconButton';
9
+ import { IconButton } from '../IconButton';
10
10
 
11
11
  import styles from './NavButtons.module.scss';
12
12
 
@@ -19,7 +19,7 @@ interface Props {
19
19
  onShowWords: () => void;
20
20
  }
21
21
 
22
- const NavButtons: FunctionComponent<Props> = ({
22
+ const NavButtonsBase: FunctionComponent<Props> = ({
23
23
  onClear,
24
24
  onShowKeyMap,
25
25
  onShowMenu,
@@ -136,4 +136,4 @@ const NavButtons: FunctionComponent<Props> = ({
136
136
  );
137
137
  };
138
138
 
139
- export default memo(NavButtons);
139
+ export const NavButtons = memo(NavButtonsBase);
@@ -1 +1 @@
1
- export { default } from './NavButtons';
1
+ export { NavButtons } from './NavButtons';
@@ -2,13 +2,13 @@ import { FunctionComponent } from 'react';
2
2
 
3
3
  import { DashCircleFill } from 'icons';
4
4
 
5
- import PlainTiles from '../PlainTiles';
5
+ import { PlainTiles } from '../PlainTiles';
6
6
 
7
7
  import styles from './NotFound.module.scss';
8
8
 
9
9
  const CONTENT = [['HTTP', '404']];
10
10
 
11
- const NotFound: FunctionComponent = () => (
11
+ export const NotFound: FunctionComponent = () => (
12
12
  <div className={styles.notFound}>
13
13
  <a className={styles.link} href="/">
14
14
  <DashCircleFill aria-hidden="true" className={styles.icon} role="img" />
@@ -16,5 +16,3 @@ const NotFound: FunctionComponent = () => (
16
16
  </a>
17
17
  </div>
18
18
  );
19
-
20
- export default NotFound;
@@ -1 +1 @@
1
- export { default } from './NotFound';
1
+ export { NotFound } from './NotFound';
@@ -3,7 +3,7 @@ import { CSSProperties, FunctionComponent, useMemo } from 'react';
3
3
 
4
4
  import { createPlainTiles, getViewbox } from './lib';
5
5
  import styles from './PlainTiles.module.scss';
6
- import Tile from './Tile';
6
+ import { Tile } from './Tile';
7
7
 
8
8
  interface Props {
9
9
  className?: string;
@@ -15,7 +15,15 @@ interface Props {
15
15
  wave?: boolean;
16
16
  }
17
17
 
18
- const PlainTiles: FunctionComponent<Props> = ({ className, color, content, dropShadow, showPoints, style, wave }) => {
18
+ export const PlainTiles: FunctionComponent<Props> = ({
19
+ className,
20
+ color,
21
+ content,
22
+ dropShadow,
23
+ showPoints,
24
+ style,
25
+ wave,
26
+ }) => {
19
27
  const tiles = useMemo(() => createPlainTiles({ color, content, showPoints }), [color, content, showPoints]);
20
28
 
21
29
  return (
@@ -44,5 +52,3 @@ const PlainTiles: FunctionComponent<Props> = ({ className, color, content, dropS
44
52
  </svg>
45
53
  );
46
54
  };
47
-
48
- export default PlainTiles;
@@ -11,7 +11,7 @@ interface Props {
11
11
  y: number;
12
12
  }
13
13
 
14
- const Tile: FunctionComponent<Props> = ({ character, className, color, points, size, transform, x, y }) => (
14
+ export const Tile: FunctionComponent<Props> = ({ character, className, color, points, size, transform, x, y }) => (
15
15
  <g className={className} fill="#222" transform={transform}>
16
16
  <rect fill={color} height={size} rx={size * 0.15} width={size} x={x} y={y} />
17
17
 
@@ -40,5 +40,3 @@ const Tile: FunctionComponent<Props> = ({ character, className, color, points, s
40
40
  )}
41
41
  </g>
42
42
  );
43
-
44
- export default Tile;
@@ -1 +1 @@
1
- export { default } from './PlainTiles';
1
+ export { PlainTiles } from './PlainTiles';
@@ -11,11 +11,17 @@ import {
11
11
 
12
12
  import { CreatePlainTileOptions, PlainTile } from '../types';
13
13
 
14
- import getX from './getX';
15
- import getY from './getY';
16
- import randomize from './randomize';
14
+ import { getX } from './getX';
15
+ import { getY } from './getY';
16
+ import { randomize } from './randomize';
17
17
 
18
- const createPlainTile = ({ cellIndex, character, color, rowIndex, showPoints }: CreatePlainTileOptions): PlainTile => {
18
+ export const createPlainTile = ({
19
+ cellIndex,
20
+ character,
21
+ color,
22
+ rowIndex,
23
+ showPoints,
24
+ }: CreatePlainTileOptions): PlainTile => {
19
25
  const configPoints = getConfig(Game.Literaki, Locale.EN_US).getCharacterPoints(character.toLowerCase());
20
26
  const points = showPoints ? configPoints : undefined;
21
27
  const defaultColor =
@@ -33,5 +39,3 @@ const createPlainTile = ({ cellIndex, character, color, rowIndex, showPoints }:
33
39
  y: randomize(getY(rowIndex), PLAIN_TILES_TILE_MAX_SCATTER),
34
40
  };
35
41
  };
36
-
37
- export default createPlainTile;
@@ -1,8 +1,8 @@
1
1
  import { CreatePlainTilesOptions, PlainTile } from '../types';
2
2
 
3
- import createPlainTile from './createPlainTile';
3
+ import { createPlainTile } from './createPlainTile';
4
4
 
5
- const createPlainTiles = ({ color, content, showPoints }: CreatePlainTilesOptions): PlainTile[] => {
5
+ export const createPlainTiles = ({ color, content, showPoints }: CreatePlainTilesOptions): PlainTile[] => {
6
6
  const rows = content.map((words, rowIndex) => {
7
7
  return words.map((word, wordIndex) => {
8
8
  const cellOffset = words.slice(0, wordIndex).reduce((result, { length }) => result + length + ' '.length, 0);
@@ -23,5 +23,3 @@ const createPlainTiles = ({ color, content, showPoints }: CreatePlainTilesOption
23
23
  const tiles = rows.flat(2);
24
24
  return tiles;
25
25
  };
26
-
27
- export default createPlainTiles;
@@ -1,6 +1,6 @@
1
1
  import { PLAIN_TILES_TILE_MARGIN, PLAIN_TILES_TILE_SIZE } from 'parameters';
2
2
 
3
- const getViewbox = (content: string[][]): string => {
3
+ export const getViewbox = (content: string[][]): string => {
4
4
  const longestRowLength = content.reduce((result, words) => {
5
5
  const wordsLength = words.reduce((sum, word) => sum + word.length, 0);
6
6
  const rowLength = wordsLength + Math.max(words.length - 1, 0);
@@ -15,5 +15,3 @@ const getViewbox = (content: string[][]): string => {
15
15
 
16
16
  return `0 0 ${width} ${height}`;
17
17
  };
18
-
19
- export default getViewbox;
@@ -1,7 +1,5 @@
1
1
  import { PLAIN_TILES_PADDING_HORIZONTAL, PLAIN_TILES_TILE_MARGIN, PLAIN_TILES_TILE_SIZE } from 'parameters';
2
2
 
3
- const getX = (index: number): number => {
3
+ export const getX = (index: number): number => {
4
4
  return PLAIN_TILES_PADDING_HORIZONTAL + index * (PLAIN_TILES_TILE_SIZE + PLAIN_TILES_TILE_MARGIN);
5
5
  };
6
-
7
- export default getX;
@@ -1,7 +1,5 @@
1
1
  import { PLAIN_TILES_PADDING_VERTICAL, PLAIN_TILES_TILE_MARGIN, PLAIN_TILES_TILE_SIZE } from 'parameters';
2
2
 
3
- const getY = (index: number): number => {
3
+ export const getY = (index: number): number => {
4
4
  return PLAIN_TILES_PADDING_VERTICAL + index * (PLAIN_TILES_TILE_SIZE + PLAIN_TILES_TILE_MARGIN);
5
5
  };
6
-
7
- export default getY;
@@ -1,6 +1,6 @@
1
- export { default as createPlainTile } from './createPlainTile';
2
- export { default as createPlainTiles } from './createPlainTiles';
3
- export { default as getViewbox } from './getViewbox';
4
- export { default as getX } from './getX';
5
- export { default as getY } from './getY';
6
- export { default as randomize } from './randomize';
1
+ export { createPlainTile } from './createPlainTile';
2
+ export { createPlainTiles } from './createPlainTiles';
3
+ export { getViewbox } from './getViewbox';
4
+ export { getX } from './getX';
5
+ export { getY } from './getY';
6
+ export { randomize } from './randomize';
@@ -1,3 +1 @@
1
- const randomize = (value: number, maxChange: number): number => value + maxChange * 2 * (0.5 - Math.random());
2
-
3
- export default randomize;
1
+ export const randomize = (value: number, maxChange: number): number => value + maxChange * 2 * (0.5 - Math.random());
@@ -17,7 +17,7 @@ const getGradient = (progress: number, color: string, background: string) => {
17
17
  return `linear-gradient(90deg, ${color} 0%, ${color} ${percent}%, ${background} ${percent}%, ${background} 100%)`;
18
18
  };
19
19
 
20
- const Progress: FunctionComponent<Props> = ({ className, max, min = 0, style, value, ...props }) => {
20
+ export const Progress: FunctionComponent<Props> = ({ className, max, min = 0, style, value, ...props }) => {
21
21
  const locale = useTypedSelector(selectLocale);
22
22
  const progress = value / (max - min);
23
23
  const percent = Math.round(100 * progress);
@@ -34,5 +34,3 @@ const Progress: FunctionComponent<Props> = ({ className, max, min = 0, style, va
34
34
  />
35
35
  );
36
36
  };
37
-
38
- export default Progress;
@@ -1 +1 @@
1
- export { default } from './Progress';
1
+ export { Progress } from './Progress';
@@ -45,7 +45,7 @@ interface Props {
45
45
  tileSize: number;
46
46
  }
47
47
 
48
- const Rack: FunctionComponent<Props> = ({ className, tileSize }) => {
48
+ export const Rack: FunctionComponent<Props> = ({ className, tileSize }) => {
49
49
  const dispatch = useDispatch();
50
50
  const config = useTypedSelector(selectConfig);
51
51
  const locale = useTypedSelector(selectLocale);
@@ -120,7 +120,7 @@ const Rack: FunctionComponent<Props> = ({ className, tileSize }) => {
120
120
  const handleFocus = useCallback(() => {
121
121
  setHasFocus(true);
122
122
  floatingInputPrompt.refs.setPositionReference(ref.current);
123
- const characters: string[] = rack.filter((character) => character !== null) as string[];
123
+ const characters = rack.filter((character) => character !== null);
124
124
  const uppercasedDigraphs = characters.map((character) => {
125
125
  return character.length > 1 ? character.toLocaleUpperCase(locale) : character;
126
126
  });
@@ -216,5 +216,3 @@ const Rack: FunctionComponent<Props> = ({ className, tileSize }) => {
216
216
  </>
217
217
  );
218
218
  };
219
-
220
- export default Rack;
@@ -25,7 +25,7 @@ interface Props {
25
25
  onSubmit: FormEventHandler<HTMLFormElement>;
26
26
  }
27
27
 
28
- const InputPrompt = forwardRef<HTMLFormElement, Props>(
28
+ const InputPromptBase = forwardRef<HTMLFormElement, Props>(
29
29
  ({ className, style, value, onBlur, onChange, onSubmit, ...props }, ref) => {
30
30
  const dispatch = useDispatch();
31
31
  const translate = useTranslate();
@@ -83,6 +83,6 @@ const InputPrompt = forwardRef<HTMLFormElement, Props>(
83
83
  },
84
84
  );
85
85
 
86
- export default Object.assign(InputPrompt, {
86
+ export const InputPrompt = Object.assign(InputPromptBase, {
87
87
  styles,
88
88
  });
@@ -1 +1 @@
1
- export { default } from './InputPrompt';
1
+ export { InputPrompt } from './InputPrompt';
@@ -8,7 +8,6 @@ import {
8
8
  FunctionComponent,
9
9
  KeyboardEventHandler,
10
10
  MouseEventHandler,
11
- MutableRefObject,
12
11
  RefObject,
13
12
  TouchEventHandler,
14
13
  useCallback,
@@ -28,12 +27,12 @@ import {
28
27
  useTypedSelector,
29
28
  } from 'state';
30
29
 
31
- import Tile from '../../../Tile';
30
+ import { Tile } from '../../../Tile';
32
31
 
33
32
  import styles from './RackTile.module.scss';
34
33
 
35
34
  interface Props {
36
- activeIndexRef: MutableRefObject<number | undefined>;
35
+ activeIndexRef: RefObject<number | undefined>;
37
36
  character: string | null;
38
37
  className?: string;
39
38
  index: number;
@@ -45,7 +44,7 @@ interface Props {
45
44
  onFocus: () => void;
46
45
  }
47
46
 
48
- const RackTile: FunctionComponent<Props> = ({
47
+ export const RackTile: FunctionComponent<Props> = ({
49
48
  activeIndexRef,
50
49
  character,
51
50
  className,
@@ -103,7 +102,7 @@ const RackTile: FunctionComponent<Props> = ({
103
102
  const twoTilesCharacter = config.getTwoCharacterTileByPrefix(event.key);
104
103
 
105
104
  if (twoTilesCharacter) {
106
- dispatch(rackSlice.actions.changeCharacter({ character: twoTilesCharacter!, index }));
105
+ dispatch(rackSlice.actions.changeCharacter({ character: twoTilesCharacter, index }));
107
106
  }
108
107
  }
109
108
 
@@ -160,5 +159,3 @@ const RackTile: FunctionComponent<Props> = ({
160
159
  />
161
160
  );
162
161
  };
163
-
164
- export default RackTile;
@@ -1 +1 @@
1
- export { default } from './RackTile';
1
+ export { RackTile } from './RackTile';
@@ -1,2 +1,2 @@
1
- export { default as InputPrompt } from './InputPrompt';
2
- export { default as RackTile } from './RackTile';
1
+ export { InputPrompt } from './InputPrompt';
2
+ export { RackTile } from './RackTile';
@@ -1 +1 @@
1
- export { default } from './Rack';
1
+ export { Rack } from './Rack';
@@ -13,7 +13,7 @@ interface Props {
13
13
  onChange: ChangeEventHandler<HTMLInputElement>;
14
14
  }
15
15
 
16
- const Radio: FunctionComponent<Props> = ({ checked, children, className, disabled, name, value, onChange }) => (
16
+ export const Radio: FunctionComponent<Props> = ({ checked, children, className, disabled, name, value, onChange }) => (
17
17
  <label
18
18
  className={classNames(styles.radio, className, {
19
19
  [styles.checked]: checked,
@@ -37,5 +37,3 @@ const Radio: FunctionComponent<Props> = ({ checked, children, className, disable
37
37
  <div className={styles.content}>{children}</div>
38
38
  </label>
39
39
  );
40
-
41
- export default Radio;
@@ -1 +1 @@
1
- export { default } from './Radio';
1
+ export { Radio } from './Radio';
@@ -18,7 +18,15 @@ interface Props {
18
18
  value: string | number;
19
19
  }
20
20
 
21
- const Cell: FunctionComponent<Props> = ({ children, className, dataTestId, style, translationKey, tooltip, value }) => {
21
+ export const Cell: FunctionComponent<Props> = ({
22
+ children,
23
+ className,
24
+ dataTestId,
25
+ style,
26
+ translationKey,
27
+ tooltip,
28
+ value,
29
+ }) => {
22
30
  const translate = useTranslate();
23
31
  const locale = useTypedSelector(selectLocale);
24
32
  const formattedValue = value.toLocaleString(locale);
@@ -31,5 +39,3 @@ const Cell: FunctionComponent<Props> = ({ children, className, dataTestId, style
31
39
  </Tooltip>
32
40
  );
33
41
  };
34
-
35
- export default Cell;
@@ -5,10 +5,10 @@ import { GeoAlt, OneTwoThree, Square, SquareA, SquareB, Squares, Words } from 'i
5
5
  import { RESULTS_COLUMN_WIDTH } from 'parameters';
6
6
  import { ResultColumnId } from 'types';
7
7
 
8
- import HeaderButton from './HeaderButton';
8
+ import { HeaderButton } from './HeaderButton';
9
9
  import styles from './Results.module.scss';
10
10
 
11
- const Results: FunctionComponent = () => {
11
+ export const Header: FunctionComponent = () => {
12
12
  const { resultWordWidth } = useAppLayout();
13
13
  const columns = useColumns();
14
14
 
@@ -95,5 +95,3 @@ const Results: FunctionComponent = () => {
95
95
  </div>
96
96
  );
97
97
  };
98
-
99
- export default Results;