@scrabble-solver/scrabble-solver 2.10.5 → 2.10.7
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 +10 -10
- 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 +551 -447
- package/.next/server/chunks/290.js +3 -1
- package/.next/server/chunks/579.js +24 -16
- 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.nft.json +1 -1
- package/.next/server/pages/api/dictionary/[locale]/[word].js +18 -16
- package/.next/server/pages/index.html +2 -2
- package/.next/server/pages/index.js +18 -11
- package/.next/server/pages/index.js.nft.json +1 -1
- package/.next/server/pages/index.json +1 -1
- package/.next/server/pages-manifest.json +1 -1
- package/.next/static/6RggBFm8kHrh-k1-CG3um/_buildManifest.js +1 -0
- package/.next/static/chunks/509-6ad4482d4351452c.js +1 -0
- package/.next/static/chunks/pages/{404-7619583a9e7188b1.js → 404-67383848027ec49b.js} +1 -1
- package/.next/static/chunks/pages/_app-c58cfa832b76cc87.js +24 -0
- package/.next/static/chunks/pages/index-146039f501e49c08.js +1 -0
- package/.next/static/css/4482c4a0064d3807.css +1 -0
- package/.next/static/css/9d1013ec684361b9.css +1 -0
- package/.next/trace +55 -55
- package/package.json +14 -14
- package/src/components/Board/components/Cell/Button.tsx +1 -0
- package/src/components/Board/components/Cell/Cell.tsx +6 -0
- package/src/components/Board/components/Cell/CellPure.tsx +10 -1
- package/src/components/Button/Button.module.scss +2 -5
- package/src/components/Button/Button.tsx +1 -0
- package/src/components/Button/Link.tsx +1 -0
- package/src/components/{SquareButton/SquareButton.module.scss → IconButton/IconButton.module.scss} +2 -3
- 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/Logo/Logo.svg +44 -15
- package/src/components/Modal/Modal.tsx +3 -2
- package/src/components/NavButtons/NavButtons.tsx +37 -9
- package/src/components/Rack/RackTile.tsx +5 -0
- package/src/components/Results/HeaderButton.tsx +1 -0
- package/src/components/Results/Result.tsx +1 -0
- package/src/components/Results/Results.module.scss +0 -1
- package/src/components/Results/SolveButton.tsx +1 -0
- package/src/components/Solver/Solver.module.scss +11 -19
- package/src/components/Solver/Solver.tsx +18 -36
- package/src/components/Solver/components/EmptyState/EmptyState.module.scss +0 -2
- 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 +143 -0
- package/src/components/Solver/components/ResultCandidatePicker/ResultCandidatePicker.tsx +98 -0
- package/src/components/Solver/components/SolveButton/SolveButton.tsx +11 -1
- package/src/components/Solver/components/index.ts +2 -1
- package/src/components/Tile/Tile.tsx +3 -0
- package/src/components/Tile/TilePure.tsx +3 -0
- package/src/components/Tooltip/useTooltip.tsx +14 -2
- package/src/components/index.ts +1 -2
- package/src/i18n/de.json +5 -0
- package/src/i18n/en.json +5 -0
- package/src/i18n/es.json +5 -0
- package/src/i18n/fa.json +5 -0
- package/src/i18n/fr.json +5 -0
- package/src/i18n/pl.json +5 -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 +4 -0
- package/src/icons/ChevronRight.svg +4 -0
- package/src/icons/List.svg +1 -1
- package/src/icons/index.ts +2 -0
- package/src/modals/MenuModal/MenuModal.module.scss +2 -3
- package/src/modals/MenuModal/MenuModal.tsx +9 -3
- package/src/modals/RemainingTilesModal/components/Character/Character.tsx +1 -0
- package/src/modals/SettingsModal/components/AutoGroupTilesSetting/AutoGroupTilesSetting.tsx +2 -2
- package/src/modals/SettingsModal/components/ConfigSetting/ConfigSetting.tsx +2 -2
- package/src/modals/SettingsModal/components/LocaleSetting/LocaleSetting.tsx +2 -2
- package/src/pages/api/dictionary/[locale]/[word].ts +3 -1
- package/src/pages/index.tsx +10 -6
- package/src/state/sagas.ts +5 -2
- package/src/state/useTranslate.ts +5 -2
- package/src/styles/mixins.scss +6 -0
- package/src/types/index.ts +6 -1
- package/.next/static/WILX-RgqlLTd4ZoPs8C_E/_buildManifest.js +0 -1
- package/.next/static/chunks/144-6768fe9a92865ec8.js +0 -1
- package/.next/static/chunks/pages/_app-fa0661b072fc6af9.js +0 -24
- package/.next/static/chunks/pages/index-1a6bbb880f28606a.js +0 -1
- package/.next/static/css/d80ffccf2315791a.css +0 -1
- package/.next/static/css/e737d5d7fbed2434.css +0 -1
- package/src/components/ResultCandidatePicker/ResultCandidatePicker.module.scss +0 -76
- package/src/components/ResultCandidatePicker/ResultCandidatePicker.tsx +0 -38
- package/src/components/Solver/components/ApplyButton/ApplyButton.module.scss +0 -5
- package/src/components/Solver/components/ApplyButton/index.ts +0 -1
- package/src/components/SquareButton/index.ts +0 -1
- /package/.next/static/{WILX-RgqlLTd4ZoPs8C_E → 6RggBFm8kHrh-k1-CG3um}/_ssgManifest.js +0 -0
- /package/src/components/{ResultCandidatePicker → Solver/components/ResultCandidatePicker}/index.ts +0 -0
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import classNames from 'classnames';
|
|
2
|
-
import { FunctionComponent, HTMLProps } from 'react';
|
|
3
|
-
|
|
4
|
-
import { ChevronDown } from 'icons';
|
|
5
|
-
import { selectAreResultsOutdated, selectLocale, selectResultCandidate, useTypedSelector } from 'state';
|
|
6
|
-
|
|
7
|
-
import styles from './ResultCandidatePicker.module.scss';
|
|
8
|
-
|
|
9
|
-
interface Props extends HTMLProps<HTMLButtonElement> {
|
|
10
|
-
type?: 'button' | 'submit' | 'reset' | undefined;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const ResultCandidatePicker: FunctionComponent<Props> = ({ className, ...props }) => {
|
|
14
|
-
const locale = useTypedSelector(selectLocale);
|
|
15
|
-
const isOutdated = useTypedSelector(selectAreResultsOutdated);
|
|
16
|
-
const resultCandidate = useTypedSelector(selectResultCandidate);
|
|
17
|
-
|
|
18
|
-
if (!resultCandidate) {
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
return (
|
|
23
|
-
<button
|
|
24
|
-
className={classNames(styles.resultCandidatePicker, className)}
|
|
25
|
-
disabled={isOutdated}
|
|
26
|
-
type="button"
|
|
27
|
-
{...props}
|
|
28
|
-
>
|
|
29
|
-
<div className={styles.points}>{resultCandidate.points.toLocaleString(locale)}</div>
|
|
30
|
-
<div className={styles.word}>{resultCandidate.word}</div>
|
|
31
|
-
<div className={styles.iconContainer}>
|
|
32
|
-
<ChevronDown className={styles.icon} />
|
|
33
|
-
</div>
|
|
34
|
-
</button>
|
|
35
|
-
);
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export default ResultCandidatePicker;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './ApplyButton';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './SquareButton';
|
|
File without changes
|
/package/src/components/{ResultCandidatePicker → Solver/components/ResultCandidatePicker}/index.ts
RENAMED
|
File without changes
|