@johnmorrisdotca/kumimoji 1.0.1

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 (78) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/CONTRIBUTING.md +38 -0
  3. package/LICENSE +21 -0
  4. package/NOTICE.md +38 -0
  5. package/README.md +233 -0
  6. package/dist/check.d.ts +19 -0
  7. package/dist/check.js +70 -0
  8. package/dist/computer.types.d.ts +23 -0
  9. package/dist/computer.types.js +1 -0
  10. package/dist/computerPlay.d.ts +17 -0
  11. package/dist/computerPlay.js +203 -0
  12. package/dist/computerTurn.d.ts +31 -0
  13. package/dist/computerTurn.js +94 -0
  14. package/dist/generate.d.ts +29 -0
  15. package/dist/generate.js +278 -0
  16. package/dist/grid.d.ts +97 -0
  17. package/dist/grid.js +208 -0
  18. package/dist/help.d.ts +20 -0
  19. package/dist/help.js +57 -0
  20. package/dist/index.d.ts +44 -0
  21. package/dist/index.js +44 -0
  22. package/dist/judge.d.ts +13 -0
  23. package/dist/judge.js +19 -0
  24. package/dist/kana.d.ts +25 -0
  25. package/dist/kana.js +38 -0
  26. package/dist/kumimoji.types.d.ts +49 -0
  27. package/dist/kumimoji.types.js +1 -0
  28. package/dist/party.d.ts +91 -0
  29. package/dist/party.js +172 -0
  30. package/dist/party.types.d.ts +86 -0
  31. package/dist/party.types.js +1 -0
  32. package/dist/partyKept.d.ts +17 -0
  33. package/dist/partyKept.js +149 -0
  34. package/dist/partySeats.d.ts +53 -0
  35. package/dist/partySeats.js +119 -0
  36. package/dist/partyTurns.d.ts +75 -0
  37. package/dist/partyTurns.js +153 -0
  38. package/dist/placement.d.ts +26 -0
  39. package/dist/placement.js +87 -0
  40. package/dist/play.d.ts +76 -0
  41. package/dist/play.js +165 -0
  42. package/dist/random.d.ts +11 -0
  43. package/dist/random.js +25 -0
  44. package/dist/react.d.ts +32 -0
  45. package/dist/react.js +53 -0
  46. package/dist/showcase.d.ts +51 -0
  47. package/dist/showcase.js +59 -0
  48. package/dist/tableView.d.ts +92 -0
  49. package/dist/tableView.js +127 -0
  50. package/dist/tileFace.d.ts +25 -0
  51. package/dist/tileFace.js +39 -0
  52. package/dist/tileFamily.d.ts +11 -0
  53. package/dist/tileFamily.js +23 -0
  54. package/dist/tileWords.d.ts +70 -0
  55. package/dist/tileWords.js +164 -0
  56. package/dist/tileWordsModule.d.ts +4 -0
  57. package/dist/tileWordsModule.js +13 -0
  58. package/dist/tiles.constants.d.ts +108 -0
  59. package/dist/tiles.constants.js +132 -0
  60. package/dist/turn.d.ts +62 -0
  61. package/dist/turn.js +96 -0
  62. package/dist/ui/board.d.ts +29 -0
  63. package/dist/ui/board.js +37 -0
  64. package/dist/ui/mount.d.ts +36 -0
  65. package/dist/ui/mount.js +257 -0
  66. package/dist/ui/style.d.ts +6 -0
  67. package/dist/ui/style.js +40 -0
  68. package/dist/ui.d.ts +8 -0
  69. package/dist/ui.js +8 -0
  70. package/dist/wilds.d.ts +27 -0
  71. package/dist/wilds.js +111 -0
  72. package/dist/words.d.ts +6 -0
  73. package/dist/words.en.data.d.ts +23 -0
  74. package/dist/words.en.data.js +610 -0
  75. package/dist/words.ja.data.d.ts +29 -0
  76. package/dist/words.ja.data.js +29 -0
  77. package/dist/words.js +6 -0
  78. package/package.json +90 -0
package/dist/words.js ADDED
@@ -0,0 +1,6 @@
1
+ /**
2
+ * The word lists where there is no browser: a server checking a finished
3
+ * game, a test, a script. Importing this entry is what lets `loadTileWords`
4
+ * answer there, reading the lists from this package's own files.
5
+ */
6
+ export { loadTileWordsFromModule } from "./tileWordsModule.js";
package/package.json ADDED
@@ -0,0 +1,90 @@
1
+ {
2
+ "name": "@johnmorrisdotca/kumimoji",
3
+ "version": "1.0.1",
4
+ "description": "Kumimoji 組み文字: the race to build a crossword from a bag of letter tiles, in English or Japanese, alone or at a table of two to eight. Seeded deals, word checking, wild tiles, trades, a computer player, a plain-DOM table and React views.",
5
+ "license": "MIT",
6
+ "author": "John Morris <john@johnmorris.ca>",
7
+ "homepage": "https://johnmorrisdotca.github.io/kumimoji/",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/johnmorrisdotca/kumimoji.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/johnmorrisdotca/kumimoji/issues"
14
+ },
15
+ "type": "module",
16
+ "sideEffects": [
17
+ "./dist/words.js",
18
+ "./dist/tileWordsModule.js"
19
+ ],
20
+ "engines": {
21
+ "node": ">=20"
22
+ },
23
+ "keywords": [
24
+ "word-game",
25
+ "crossword",
26
+ "tiles",
27
+ "anagram",
28
+ "japanese",
29
+ "kana",
30
+ "game-engine",
31
+ "seeded",
32
+ "react"
33
+ ],
34
+ "exports": {
35
+ ".": {
36
+ "types": "./dist/index.d.ts",
37
+ "default": "./dist/index.js"
38
+ },
39
+ "./words": {
40
+ "types": "./dist/words.d.ts",
41
+ "default": "./dist/words.js"
42
+ },
43
+ "./ui": {
44
+ "types": "./dist/ui.d.ts",
45
+ "default": "./dist/ui.js"
46
+ },
47
+ "./react": {
48
+ "types": "./dist/react.d.ts",
49
+ "default": "./dist/react.js"
50
+ }
51
+ },
52
+ "files": [
53
+ "dist",
54
+ "README.md",
55
+ "LICENSE",
56
+ "NOTICE.md",
57
+ "CHANGELOG.md",
58
+ "CONTRIBUTING.md"
59
+ ],
60
+ "scripts": {
61
+ "build": "tsc -p tsconfig.json",
62
+ "test": "vitest run",
63
+ "lint": "eslint .",
64
+ "typecheck": "tsc -p tsconfig.json --noEmit",
65
+ "check": "pnpm run lint && pnpm run typecheck && pnpm test",
66
+ "site": "pnpm run build && node scripts/site.mjs",
67
+ "prepublishOnly": "pnpm run check && pnpm run build"
68
+ },
69
+ "devDependencies": {
70
+ "@eslint/js": "^9.0.0",
71
+ "@types/node": "^24.0.0",
72
+ "@types/react": "^19.0.0",
73
+ "eslint": "^9.0.0",
74
+ "eslint-plugin-react-hooks": "^5.0.0",
75
+ "globals": "^16.0.0",
76
+ "react": "^19.0.0",
77
+ "typescript": "^5.9.0",
78
+ "typescript-eslint": "^8.0.0",
79
+ "vitest": "^5.0.0"
80
+ },
81
+ "peerDependencies": {
82
+ "react": ">=18"
83
+ },
84
+ "peerDependenciesMeta": {
85
+ "react": {
86
+ "optional": true
87
+ }
88
+ },
89
+ "packageManager": "pnpm@10.11.0"
90
+ }