@scrabble-solver/scrabble-solver 2.10.6 → 2.10.8
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/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +7 -13
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/eslint/.cache_8dgz12 +1 -1
- package/.next/cache/next-server.js.nft.json +1 -1
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/edge-server-production/0.pack +0 -0
- package/.next/cache/webpack/edge-server-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.json +1 -1
- package/.next/routes-manifest.json +1 -1
- package/.next/server/chunks/176.js +4597 -568
- package/.next/server/chunks/290.js +3 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/pages/404.html +2 -2
- package/.next/server/pages/404.js.nft.json +1 -1
- package/.next/server/pages/500.html +2 -2
- package/.next/server/pages/_app.js +296 -13
- package/.next/server/pages/_app.js.nft.json +1 -1
- package/.next/server/pages/_document.js.nft.json +1 -1
- package/.next/server/pages/api/dictionary/[locale]/[word].js +18 -16
- package/.next/server/pages/api/solve.js +17 -0
- package/.next/server/pages/index.html +1 -9
- package/.next/server/pages/index.js +26 -12
- package/.next/server/pages/index.js.nft.json +1 -1
- package/.next/server/pages/index.json +1 -1
- package/.next/server/pages-manifest.json +2 -2
- package/.next/static/Cs23uxWG6AxS72F2yrjHu/_buildManifest.js +1 -0
- package/.next/static/chunks/pages/{404-ff35a4cf7f1ec85a.js → 404-8cab6d62fe4ead73.js} +1 -1
- package/.next/static/chunks/pages/_app-dcbbb823dc93a031.js +28 -0
- package/.next/static/chunks/pages/index-df1ff01aa82d2d4d.js +1 -0
- package/.next/static/css/bf2e969b88c4e3dd.css +2 -0
- package/.next/static/css/d1cc6b79b211b7b8.css +1 -0
- package/.next/trace +55 -55
- package/package.json +10 -9
- package/src/components/Badge/Badge.module.scss +1 -1
- package/src/components/Board/components/Cell/Cell.module.scss +32 -64
- package/src/components/Board/components/Cell/Cell.tsx +6 -0
- package/src/components/Board/components/Cell/CellPure.tsx +24 -22
- package/src/components/Button/Button.module.scss +2 -2
- package/src/components/Button/Button.tsx +1 -0
- package/src/components/Button/Link.tsx +1 -0
- package/src/components/Checkbox/Checkbox.tsx +1 -4
- package/src/components/Dictionary/Dictionary.tsx +28 -30
- package/src/components/DictionaryInput/DictionaryInput.tsx +3 -0
- package/src/components/{SquareButton/SquareButton.module.scss → IconButton/IconButton.module.scss} +1 -1
- package/src/components/{SquareButton/SquareButton.tsx → IconButton/IconButton.tsx} +7 -6
- package/src/components/{SquareButton → IconButton}/Link.tsx +3 -2
- package/src/components/IconButton/index.ts +1 -0
- package/src/components/Key/Key.module.scss +1 -1
- package/src/components/Logo/Logo.svg +44 -15
- package/src/components/LogoSplashScreen/LogoSplashScreen.module.scss +1 -1
- package/src/components/Modal/Modal.module.scss +4 -2
- package/src/components/Modal/Modal.tsx +3 -2
- package/src/components/NavButtons/NavButtons.tsx +37 -9
- package/src/components/Rack/Rack.module.scss +4 -0
- package/src/components/Rack/RackTile.tsx +5 -0
- package/src/components/Radio/Radio.tsx +1 -4
- package/src/components/Results/HeaderButton.tsx +1 -0
- package/src/components/Results/Result.tsx +1 -0
- package/src/components/Results/Results.module.scss +2 -3
- package/src/components/Results/SolveButton.tsx +1 -0
- package/src/components/SeoMessage/SeoMessage.tsx +19 -0
- package/src/components/SeoMessage/index.ts +1 -0
- package/src/components/Solver/Solver.module.scss +4 -0
- package/src/components/Solver/Solver.tsx +26 -8
- package/src/components/Solver/components/EmptyState/EmptyState.module.scss +1 -3
- package/src/components/Solver/components/InsertButton/InsertButton.module.scss +15 -0
- package/src/components/Solver/components/{ApplyButton/ApplyButton.tsx → InsertButton/InsertButton.tsx} +10 -6
- package/src/components/Solver/components/InsertButton/index.ts +1 -0
- package/src/components/Solver/components/ResultCandidatePicker/ResultCandidatePicker.module.scss +37 -7
- package/src/components/Solver/components/ResultCandidatePicker/ResultCandidatePicker.tsx +41 -17
- package/src/components/Solver/components/SolveButton/SolveButton.tsx +11 -1
- package/src/components/Solver/components/index.ts +1 -2
- package/src/components/Tile/Tile.module.scss +49 -11
- package/src/components/Tile/Tile.tsx +26 -8
- package/src/components/Tile/TilePure.tsx +29 -19
- package/src/components/Tooltip/Tooltip.module.scss +7 -7
- package/src/components/Tooltip/useTooltip.tsx +14 -2
- package/src/components/index.ts +2 -1
- package/src/i18n/de.json +6 -0
- package/src/i18n/en.json +6 -0
- package/src/i18n/es.json +6 -0
- package/src/i18n/fa.json +6 -0
- package/src/i18n/fr.json +6 -0
- package/src/i18n/pl.json +6 -0
- package/src/icons/ArrowDown.svg +1 -1
- package/src/icons/ArrowLeft.svg +1 -1
- package/src/icons/ArrowRight.svg +1 -1
- package/src/icons/ArrowUp.svg +1 -1
- package/src/icons/ChevronDown.svg +1 -1
- package/src/icons/ChevronLeft.svg +1 -1
- package/src/icons/ChevronRight.svg +1 -1
- package/src/icons/Flag.svg +2 -2
- package/src/icons/FlagFill.svg +4 -0
- package/src/icons/List.svg +1 -1
- package/src/icons/Square.svg +4 -0
- package/src/icons/SquareFill.svg +4 -0
- package/src/icons/index.ts +3 -0
- package/src/modals/MenuModal/MenuModal.tsx +9 -3
- package/src/modals/RemainingTilesModal/components/Character/Character.module.scss +1 -1
- package/src/modals/RemainingTilesModal/components/Character/Character.tsx +1 -0
- package/src/modals/ResultsModal/ResultsModal.module.scss +1 -1
- package/src/modals/SettingsModal/components/AutoGroupTilesSetting/AutoGroupTilesSetting.tsx +0 -1
- package/src/modals/SettingsModal/components/ConfigSetting/ConfigSetting.tsx +0 -1
- package/src/modals/SettingsModal/components/LocaleSetting/LocaleSetting.module.scss +14 -24
- package/src/modals/SettingsModal/components/LocaleSetting/LocaleSetting.tsx +0 -1
- package/src/pages/_app.tsx +9 -5
- package/src/pages/api/dictionary/[locale]/[word].ts +3 -1
- package/src/pages/index.module.scss +1 -2
- package/src/pages/index.tsx +6 -0
- package/src/parameters/index.ts +10 -0
- package/src/state/sagas.ts +5 -2
- package/src/state/slices/boardSlice.ts +5 -5
- package/src/state/useTranslate.ts +5 -2
- package/src/styles/mixins.scss +4 -2
- package/src/styles/variables.scss +39 -32
- package/src/types/index.ts +7 -1
- package/.next/server/chunks/579.js +0 -3917
- package/.next/static/chunks/490-d29992f1c264d70e.js +0 -5
- package/.next/static/chunks/791-93aa8b8c22e488ac.js +0 -1
- package/.next/static/chunks/pages/_app-fa0661b072fc6af9.js +0 -24
- package/.next/static/chunks/pages/index-ded620fd5df96be0.js +0 -1
- package/.next/static/css/4482c4a0064d3807.css +0 -1
- package/.next/static/css/78e42ad01f580f64.css +0 -1
- package/.next/static/css/a943dd97164732d4.css +0 -1
- package/.next/static/iL0av55MV28b0MXfhKKt2/_buildManifest.js +0 -1
- package/src/components/Board/components/Cell/Button.tsx +0 -31
- package/src/components/Solver/components/ApplyButton/ApplyButton.module.scss +0 -5
- package/src/components/Solver/components/ApplyButton/index.ts +0 -1
- package/src/components/Solver/components/MobileControls/MobileControls.tsx +0 -62
- package/src/components/Solver/components/MobileControls/index.ts +0 -1
- package/src/components/SquareButton/index.ts +0 -1
- /package/.next/static/{iL0av55MV28b0MXfhKKt2 → Cs23uxWG6AxS72F2yrjHu}/_ssgManifest.js +0 -0
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent, HTMLProps } from 'react';
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
selectAreResultsOutdated,
|
|
5
|
-
selectResultCandidate,
|
|
6
|
-
selectSolveError,
|
|
7
|
-
selectSortedResults,
|
|
8
|
-
useTranslate,
|
|
9
|
-
useTypedSelector,
|
|
10
|
-
} from 'state';
|
|
11
|
-
|
|
12
|
-
import EmptyState from '../EmptyState';
|
|
13
|
-
import ResultCandidatePicker from '../ResultCandidatePicker';
|
|
14
|
-
|
|
15
|
-
interface Props extends HTMLProps<HTMLDivElement> {
|
|
16
|
-
onShowResults: () => void;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// eslint-disable-next-line max-statements
|
|
20
|
-
const MobileControls: FunctionComponent<Props> = ({ onShowResults, ...props }) => {
|
|
21
|
-
const translate = useTranslate();
|
|
22
|
-
const resultCandidate = useTypedSelector(selectResultCandidate);
|
|
23
|
-
const isOutdated = useTypedSelector(selectAreResultsOutdated);
|
|
24
|
-
const allResults = useTypedSelector(selectSortedResults);
|
|
25
|
-
const error = useTypedSelector(selectSolveError);
|
|
26
|
-
|
|
27
|
-
return (
|
|
28
|
-
<div {...props}>
|
|
29
|
-
{typeof error !== 'undefined' && (
|
|
30
|
-
<EmptyState variant="error" onClick={onShowResults}>
|
|
31
|
-
{error.message}
|
|
32
|
-
</EmptyState>
|
|
33
|
-
)}
|
|
34
|
-
|
|
35
|
-
{typeof error === 'undefined' && typeof allResults === 'undefined' && (
|
|
36
|
-
<EmptyState variant="info" onClick={onShowResults}>
|
|
37
|
-
{translate('results.empty-state.uninitialized')}
|
|
38
|
-
</EmptyState>
|
|
39
|
-
)}
|
|
40
|
-
|
|
41
|
-
{typeof error === 'undefined' && typeof allResults !== 'undefined' && (
|
|
42
|
-
<>
|
|
43
|
-
{(isOutdated || !resultCandidate) && (
|
|
44
|
-
<EmptyState variant="info" onClick={onShowResults}>
|
|
45
|
-
{translate('results.empty-state.outdated')}
|
|
46
|
-
</EmptyState>
|
|
47
|
-
)}
|
|
48
|
-
|
|
49
|
-
{!isOutdated && allResults.length === 0 && (
|
|
50
|
-
<EmptyState variant="warning" onClick={onShowResults}>
|
|
51
|
-
{translate('results.empty-state.no-results')}
|
|
52
|
-
</EmptyState>
|
|
53
|
-
)}
|
|
54
|
-
|
|
55
|
-
{!isOutdated && allResults.length > 0 && resultCandidate && <ResultCandidatePicker onClick={onShowResults} />}
|
|
56
|
-
</>
|
|
57
|
-
)}
|
|
58
|
-
</div>
|
|
59
|
-
);
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
export default MobileControls;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './MobileControls';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './SquareButton';
|
|
File without changes
|