rpg-engine 0.14.1 → 0.16.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 (493) hide show
  1. package/dist/campaign/index.d.ts +1 -1
  2. package/dist/campaign/index.js +1 -1
  3. package/dist/campaign/last-choices.js +1 -1
  4. package/dist/campaign/settings.d.ts +25 -5
  5. package/dist/campaign/settings.js +38 -9
  6. package/dist/cli/cli.js +1 -1
  7. package/dist/cli/command-line.js +1 -1
  8. package/dist/commands/advance.d.ts +1 -1
  9. package/dist/commands/advance.js +6 -6
  10. package/dist/commands/ask.js +7 -7
  11. package/dist/commands/change/amounts.d.ts +32 -0
  12. package/dist/commands/change/amounts.js +150 -0
  13. package/dist/commands/change/change.d.ts +4 -54
  14. package/dist/commands/change/change.js +19 -749
  15. package/dist/commands/change/damage.d.ts +30 -0
  16. package/dist/commands/change/damage.js +73 -2
  17. package/dist/commands/change/dice.d.ts +34 -0
  18. package/dist/commands/change/dice.js +59 -0
  19. package/dist/commands/change/fields.d.ts +37 -0
  20. package/dist/commands/change/fields.js +156 -0
  21. package/dist/commands/change/holder.d.ts +48 -0
  22. package/dist/commands/change/holder.js +162 -0
  23. package/dist/commands/change/recipe-pace.js +1 -1
  24. package/dist/commands/change/recipe.d.ts +58 -0
  25. package/dist/commands/change/recipe.js +179 -0
  26. package/dist/commands/choices.js +3 -3
  27. package/dist/commands/config/config.d.ts +15 -0
  28. package/dist/commands/config/config.js +355 -0
  29. package/dist/commands/config/custom-levels.d.ts +7 -0
  30. package/dist/commands/config/custom-levels.js +32 -0
  31. package/dist/commands/{config.d.ts → config/dashboard.d.ts} +4 -26
  32. package/dist/commands/config/dashboard.js +171 -0
  33. package/dist/commands/config/entries.d.ts +17 -0
  34. package/dist/commands/config/entries.js +76 -0
  35. package/dist/commands/config/news.d.ts +7 -0
  36. package/dist/commands/config/news.js +88 -0
  37. package/dist/commands/config/shown.d.ts +9 -0
  38. package/dist/commands/config/shown.js +80 -0
  39. package/dist/commands/config/words.d.ts +27 -0
  40. package/dist/commands/config/words.js +204 -0
  41. package/dist/commands/effect.js +9 -9
  42. package/dist/commands/find.d.ts +4 -4
  43. package/dist/commands/find.js +1 -1
  44. package/dist/commands/image.js +6 -6
  45. package/dist/commands/import/import.d.ts +0 -2
  46. package/dist/commands/import/import.js +45 -44
  47. package/dist/commands/import/run.js +1 -1
  48. package/dist/commands/index.js +3 -3
  49. package/dist/commands/init.js +2 -2
  50. package/dist/commands/install.js +1 -1
  51. package/dist/commands/instructions.js +17 -6
  52. package/dist/commands/mode.d.ts +2 -2
  53. package/dist/commands/mode.js +17 -9
  54. package/dist/commands/mood.js +4 -4
  55. package/dist/commands/move.js +10 -10
  56. package/dist/commands/package/consent.d.ts +11 -0
  57. package/dist/commands/package/consent.js +52 -0
  58. package/dist/commands/package/here.d.ts +51 -0
  59. package/dist/commands/package/here.js +128 -0
  60. package/dist/commands/package/install.d.ts +10 -0
  61. package/dist/commands/package/install.js +337 -0
  62. package/dist/commands/package/package.d.ts +18 -0
  63. package/dist/commands/package/package.js +236 -0
  64. package/dist/commands/package/result.d.ts +90 -0
  65. package/dist/commands/package/result.js +1 -0
  66. package/dist/commands/package/uninstall.d.ts +6 -0
  67. package/dist/commands/package/uninstall.js +70 -0
  68. package/dist/commands/rename.js +3 -3
  69. package/dist/commands/reveal.js +5 -5
  70. package/dist/commands/roll/roll.js +11 -9
  71. package/dist/commands/roll/tables.js +1 -1
  72. package/dist/commands/rules.d.ts +2 -2
  73. package/dist/commands/rules.js +3 -3
  74. package/dist/commands/save.d.ts +1 -1
  75. package/dist/commands/save.js +2 -2
  76. package/dist/commands/scene/close.d.ts +18 -0
  77. package/dist/commands/scene/close.js +179 -0
  78. package/dist/commands/scene/members.d.ts +14 -0
  79. package/dist/commands/scene/members.js +32 -0
  80. package/dist/commands/scene/open.d.ts +6 -0
  81. package/dist/commands/scene/open.js +298 -0
  82. package/dist/commands/scene/result.d.ts +98 -0
  83. package/dist/commands/scene/result.js +2 -0
  84. package/dist/commands/{scene.d.ts → scene/scene.d.ts} +10 -36
  85. package/dist/commands/scene/scene.js +210 -0
  86. package/dist/commands/scene/turns.d.ts +18 -0
  87. package/dist/commands/scene/turns.js +229 -0
  88. package/dist/commands/shared/{adventures.d.ts → books/adventures.d.ts} +5 -3
  89. package/dist/commands/shared/{adventures.js → books/adventures.js} +23 -19
  90. package/dist/commands/shared/{library-reader.js → books/library-reader.js} +3 -3
  91. package/dist/commands/shared/{library.d.ts → books/library.d.ts} +2 -2
  92. package/dist/commands/shared/{library.js → books/library.js} +9 -9
  93. package/dist/commands/shared/{rules.d.ts → books/rules.d.ts} +2 -2
  94. package/dist/commands/shared/{rules.js → books/rules.js} +5 -5
  95. package/dist/commands/shared/{system-texts.d.ts → books/system-texts.d.ts} +2 -2
  96. package/dist/commands/shared/{system-texts.js → books/system-texts.js} +9 -8
  97. package/dist/commands/shared/{page-words.d.ts → books/words.d.ts} +2 -2
  98. package/dist/commands/shared/{page-words.js → books/words.js} +4 -4
  99. package/dist/commands/shared/{checks.d.ts → campaign/checks.d.ts} +3 -3
  100. package/dist/commands/shared/{checks.js → campaign/checks.js} +7 -7
  101. package/dist/commands/shared/{images.d.ts → campaign/images.d.ts} +3 -3
  102. package/dist/commands/shared/{images.js → campaign/images.js} +5 -5
  103. package/dist/commands/shared/{mode.d.ts → campaign/mode.d.ts} +4 -4
  104. package/dist/commands/shared/{mode.js → campaign/mode.js} +28 -13
  105. package/dist/commands/shared/{money.d.ts → campaign/money.d.ts} +3 -3
  106. package/dist/commands/shared/{money.js → campaign/money.js} +2 -2
  107. package/dist/commands/shared/{offers.d.ts → campaign/offers.d.ts} +3 -3
  108. package/dist/commands/shared/{offers.js → campaign/offers.js} +3 -3
  109. package/dist/commands/shared/{outside.d.ts → campaign/outside.d.ts} +3 -3
  110. package/dist/commands/shared/{outside.js → campaign/outside.js} +7 -7
  111. package/dist/commands/shared/{parts.d.ts → campaign/parts.d.ts} +10 -3
  112. package/dist/commands/shared/{parts.js → campaign/parts.js} +26 -3
  113. package/dist/commands/shared/{problems.d.ts → campaign/problems.d.ts} +3 -3
  114. package/dist/commands/shared/{problems.js → campaign/problems.js} +17 -17
  115. package/dist/commands/shared/{quests.d.ts → campaign/quests.d.ts} +4 -4
  116. package/dist/commands/shared/{quests.js → campaign/quests.js} +6 -6
  117. package/dist/commands/shared/{saves.d.ts → campaign/saves.d.ts} +4 -4
  118. package/dist/commands/shared/{saves.js → campaign/saves.js} +10 -10
  119. package/dist/commands/shared/{theme.d.ts → campaign/theme.d.ts} +3 -3
  120. package/dist/commands/shared/{theme.js → campaign/theme.js} +1 -1
  121. package/dist/commands/shared/{world.d.ts → campaign/world.d.ts} +5 -5
  122. package/dist/commands/shared/{world.js → campaign/world.js} +17 -14
  123. package/dist/commands/shared/{knowledge.d.ts → characters/knowledge.d.ts} +3 -3
  124. package/dist/commands/shared/{knowledge.js → characters/knowledge.js} +4 -4
  125. package/dist/commands/shared/{moods.d.ts → characters/moods.d.ts} +3 -3
  126. package/dist/commands/shared/{moods.js → characters/moods.js} +3 -3
  127. package/dist/commands/shared/characters/orders.d.ts +4 -0
  128. package/dist/commands/shared/characters/orders.js +10 -0
  129. package/dist/commands/shared/{thoughts.d.ts → characters/thoughts.d.ts} +2 -2
  130. package/dist/commands/shared/{thoughts.js → characters/thoughts.js} +3 -3
  131. package/dist/commands/shared/{voices.d.ts → characters/voices.d.ts} +1 -1
  132. package/dist/commands/shared/{voices.js → characters/voices.js} +2 -2
  133. package/dist/commands/shared/examples.js +2 -2
  134. package/dist/commands/shared/packages/catalog.js +2 -2
  135. package/dist/commands/shared/packages/code.d.ts +1 -1
  136. package/dist/commands/shared/packages/code.js +8 -8
  137. package/dist/commands/shared/packages/extensions.d.ts +1 -1
  138. package/dist/commands/shared/packages/extensions.js +1 -1
  139. package/dist/commands/shared/packages/hooks.d.ts +1 -1
  140. package/dist/commands/shared/packages/hooks.js +1 -1
  141. package/dist/commands/shared/packages/widgets.d.ts +3 -3
  142. package/dist/commands/shared/packages/widgets.js +3 -3
  143. package/dist/commands/shared/{environment.d.ts → places/environment.d.ts} +1 -1
  144. package/dist/commands/shared/{environment.js → places/environment.js} +4 -4
  145. package/dist/commands/shared/{grid-moves.d.ts → places/grid-moves.d.ts} +4 -4
  146. package/dist/commands/shared/{grid-moves.js → places/grid-moves.js} +8 -7
  147. package/dist/commands/shared/{grids.d.ts → places/grids.d.ts} +4 -4
  148. package/dist/commands/shared/{grids.js → places/grids.js} +6 -6
  149. package/dist/commands/shared/{journey.d.ts → places/journey.d.ts} +3 -3
  150. package/dist/commands/shared/{journey.js → places/journey.js} +6 -6
  151. package/dist/commands/shared/{moves.d.ts → places/moves.d.ts} +2 -2
  152. package/dist/commands/shared/{moves.js → places/moves.js} +4 -4
  153. package/dist/commands/shared/{positions.d.ts → places/positions.d.ts} +2 -2
  154. package/dist/commands/shared/{positions.js → places/positions.js} +4 -4
  155. package/dist/commands/shared/{roads.d.ts → places/roads.d.ts} +5 -5
  156. package/dist/commands/shared/{roads.js → places/roads.js} +6 -6
  157. package/dist/commands/shared/{effects.d.ts → scene/effects.d.ts} +7 -7
  158. package/dist/commands/shared/{effects.js → scene/effects.js} +10 -10
  159. package/dist/commands/shared/{loot.d.ts → scene/loot.d.ts} +2 -2
  160. package/dist/commands/shared/{loot.js → scene/loot.js} +3 -3
  161. package/dist/commands/shared/{master-rolls.d.ts → scene/master-rolls.d.ts} +2 -2
  162. package/dist/commands/shared/{master-rolls.js → scene/master-rolls.js} +5 -5
  163. package/dist/commands/shared/{reminders.d.ts → scene/reminders.d.ts} +4 -4
  164. package/dist/commands/shared/{reminders.js → scene/reminders.js} +4 -4
  165. package/dist/commands/shared/{scene.d.ts → scene/scene.d.ts} +3 -3
  166. package/dist/commands/shared/{scene.js → scene/scene.js} +7 -7
  167. package/dist/commands/shared/{bonds.d.ts → sheet/bonds.d.ts} +3 -3
  168. package/dist/commands/shared/{bonds.js → sheet/bonds.js} +2 -2
  169. package/dist/commands/shared/{page-counters.d.ts → sheet/counters.d.ts} +3 -3
  170. package/dist/commands/shared/{page-counters.js → sheet/counters.js} +5 -5
  171. package/dist/commands/shared/{effect-layer.d.ts → sheet/effect-layer.d.ts} +2 -2
  172. package/dist/commands/shared/{effect-layer.js → sheet/effect-layer.js} +9 -6
  173. package/dist/commands/shared/sheet/effect-values.d.ts +9 -0
  174. package/dist/commands/shared/sheet/effect-values.js +69 -0
  175. package/dist/commands/shared/{experience.d.ts → sheet/experience.d.ts} +3 -3
  176. package/dist/commands/shared/{experience.js → sheet/experience.js} +5 -5
  177. package/dist/commands/shared/sheet/formula-problems.d.ts +8 -0
  178. package/dist/commands/shared/sheet/formula-problems.js +140 -0
  179. package/dist/commands/shared/sheet/formula-scope.d.ts +32 -0
  180. package/dist/commands/shared/sheet/formula-scope.js +235 -0
  181. package/dist/commands/shared/{limits.d.ts → sheet/limits.d.ts} +3 -3
  182. package/dist/commands/shared/{limits.js → sheet/limits.js} +5 -4
  183. package/dist/commands/shared/{progression.d.ts → sheet/progression.d.ts} +2 -2
  184. package/dist/commands/shared/{progression.js → sheet/progression.js} +4 -4
  185. package/dist/commands/shared/{sheet.d.ts → sheet/sheet.d.ts} +5 -5
  186. package/dist/commands/shared/{sheet.js → sheet/sheet.js} +11 -7
  187. package/dist/commands/shared/{stacks.d.ts → sheet/stacks.d.ts} +2 -2
  188. package/dist/commands/shared/{stacks.js → sheet/stacks.js} +4 -4
  189. package/dist/commands/shared/sheet/system-fields.d.ts +21 -0
  190. package/dist/commands/shared/sheet/system-fields.js +45 -0
  191. package/dist/commands/shared/{thresholds.d.ts → sheet/thresholds.d.ts} +1 -1
  192. package/dist/commands/shared/{thresholds.js → sheet/thresholds.js} +4 -4
  193. package/dist/commands/shared/{turn-uses.d.ts → sheet/turn-uses.d.ts} +3 -3
  194. package/dist/commands/shared/{turn-uses.js → sheet/turn-uses.js} +4 -3
  195. package/dist/commands/shared/{worked-out.d.ts → sheet/worked-out.d.ts} +11 -46
  196. package/dist/commands/shared/sheet/worked-out.js +291 -0
  197. package/dist/commands/shared/sheet/worked-text.d.ts +14 -0
  198. package/dist/commands/shared/sheet/worked-text.js +55 -0
  199. package/dist/commands/shared/{advance.d.ts → time/advance.d.ts} +3 -3
  200. package/dist/commands/shared/{advance.js → time/advance.js} +11 -11
  201. package/dist/commands/shared/{dice-pool.d.ts → time/dice-pool.d.ts} +3 -3
  202. package/dist/commands/shared/{dice-pool.js → time/dice-pool.js} +11 -11
  203. package/dist/commands/shared/{events.d.ts → time/events.d.ts} +5 -5
  204. package/dist/commands/shared/{events.js → time/events.js} +10 -13
  205. package/dist/commands/shared/{recipes.d.ts → time/recipes.d.ts} +3 -3
  206. package/dist/commands/shared/{recipes.js → time/recipes.js} +6 -5
  207. package/dist/commands/shared/{time.d.ts → time/time.d.ts} +4 -4
  208. package/dist/commands/shared/{time.js → time/time.js} +6 -6
  209. package/dist/commands/shared/{upkeep.d.ts → time/upkeep.d.ts} +3 -3
  210. package/dist/commands/shared/{upkeep.js → time/upkeep.js} +14 -13
  211. package/dist/commands/show.d.ts +4 -1
  212. package/dist/commands/show.js +28 -9
  213. package/dist/commands/status.d.ts +2 -1
  214. package/dist/commands/status.js +34 -23
  215. package/dist/commands/thoughts.js +3 -3
  216. package/dist/commands/trade.js +8 -8
  217. package/dist/commands/translate.d.ts +1 -1
  218. package/dist/commands/translate.js +3 -3
  219. package/dist/commands/travel/open.d.ts +1 -1
  220. package/dist/commands/travel/open.js +2 -2
  221. package/dist/commands/travel/route.js +7 -6
  222. package/dist/commands/travel/travel.d.ts +1 -1
  223. package/dist/commands/travel/travel.js +8 -8
  224. package/dist/commands/validate.js +3 -3
  225. package/dist/commands/view/journal.d.ts +2 -2
  226. package/dist/commands/view/journal.js +2 -2
  227. package/dist/commands/view/map.d.ts +1 -1
  228. package/dist/commands/view/map.js +6 -6
  229. package/dist/commands/view/memory.d.ts +16 -0
  230. package/dist/commands/view/memory.js +90 -0
  231. package/dist/commands/view/page.d.ts +32 -0
  232. package/dist/commands/view/page.js +163 -0
  233. package/dist/commands/view/place.d.ts +7 -2
  234. package/dist/commands/view/place.js +30 -12
  235. package/dist/commands/view/result.d.ts +245 -0
  236. package/dist/commands/view/result.js +1 -0
  237. package/dist/commands/view/saves.d.ts +6 -0
  238. package/dist/commands/view/saves.js +53 -0
  239. package/dist/commands/view/story.d.ts +32 -0
  240. package/dist/commands/view/story.js +227 -0
  241. package/dist/commands/view/view.d.ts +26 -292
  242. package/dist/commands/view/view.js +26 -534
  243. package/dist/commands/view/world.d.ts +1 -1
  244. package/dist/commands/view/world.js +3 -3
  245. package/dist/commands/write/checks.d.ts +42 -0
  246. package/dist/commands/write/checks.js +291 -0
  247. package/dist/commands/write/here.d.ts +1 -1
  248. package/dist/commands/write/here.js +5 -5
  249. package/dist/commands/write/inheritance.d.ts +40 -0
  250. package/dist/commands/write/inheritance.js +189 -0
  251. package/dist/commands/write/input.d.ts +29 -0
  252. package/dist/commands/write/input.js +124 -0
  253. package/dist/commands/write/layer.d.ts +36 -0
  254. package/dist/commands/write/layer.js +48 -0
  255. package/dist/commands/write/notes.d.ts +22 -0
  256. package/dist/commands/write/notes.js +76 -0
  257. package/dist/commands/write/progression.d.ts +27 -0
  258. package/dist/commands/write/progression.js +175 -0
  259. package/dist/commands/write/write.d.ts +2 -1
  260. package/dist/commands/write/write.js +33 -817
  261. package/dist/core/files.d.ts +2 -0
  262. package/dist/core/files.js +7 -0
  263. package/dist/core/{package-declarations.d.ts → packages/declarations.d.ts} +1 -1
  264. package/dist/core/{package-declarations.js → packages/declarations.js} +1 -1
  265. package/dist/core/session-store.js +3 -3
  266. package/dist/core/store.d.ts +2 -2
  267. package/dist/core/store.js +18 -4
  268. package/dist/dashboard/acts/acts.js +1 -1
  269. package/dist/dashboard/acts/sending.js +110 -0
  270. package/dist/dashboard/acts/sheet.js +2 -2
  271. package/dist/dashboard/acts/strip.js +1 -1
  272. package/dist/dashboard/address.js +6 -0
  273. package/dist/dashboard/api.js +1 -1
  274. package/dist/dashboard/app.js +47 -171
  275. package/dist/dashboard/dice/roller.js +1 -1
  276. package/dist/dashboard/dice/sets.js +2 -2
  277. package/dist/dashboard/dice/stage.js +1 -1
  278. package/dist/dashboard/dice/tray.js +6 -6
  279. package/dist/dashboard/guide/ar.md +9 -4
  280. package/dist/dashboard/guide/cs.md +10 -5
  281. package/dist/dashboard/guide/da.md +9 -4
  282. package/dist/dashboard/guide/de.md +9 -4
  283. package/dist/dashboard/guide/el.md +10 -5
  284. package/dist/dashboard/guide/en.md +7 -2
  285. package/dist/dashboard/guide/es.md +9 -4
  286. package/dist/dashboard/guide/fi.md +9 -4
  287. package/dist/dashboard/guide/fr.md +9 -4
  288. package/dist/dashboard/guide/he.md +9 -4
  289. package/dist/dashboard/guide/hi.md +10 -5
  290. package/dist/dashboard/guide/hu.md +10 -5
  291. package/dist/dashboard/guide/is.md +9 -4
  292. package/dist/dashboard/guide/it.md +9 -4
  293. package/dist/dashboard/guide/ja.md +12 -7
  294. package/dist/dashboard/guide/ko.md +11 -6
  295. package/dist/dashboard/guide/nb.md +9 -4
  296. package/dist/dashboard/guide/nl.md +10 -5
  297. package/dist/dashboard/guide/pl.md +9 -4
  298. package/dist/dashboard/guide/pt.md +9 -4
  299. package/dist/dashboard/guide/ro.md +9 -4
  300. package/dist/dashboard/guide/ru.md +9 -4
  301. package/dist/dashboard/guide/sv.md +9 -4
  302. package/dist/dashboard/guide/tr.md +11 -6
  303. package/dist/dashboard/guide/uk.md +9 -4
  304. package/dist/dashboard/guide/zh.md +9 -4
  305. package/dist/dashboard/help/help.js +3 -3
  306. package/dist/dashboard/i18n/ar.json +20 -0
  307. package/dist/dashboard/i18n/cs.json +20 -0
  308. package/dist/dashboard/i18n/da.json +20 -0
  309. package/dist/dashboard/i18n/de.json +20 -0
  310. package/dist/dashboard/i18n/el.json +20 -0
  311. package/dist/dashboard/i18n/es.json +20 -0
  312. package/dist/dashboard/i18n/fi.json +20 -0
  313. package/dist/dashboard/i18n/fr.json +20 -0
  314. package/dist/dashboard/i18n/he.json +20 -0
  315. package/dist/dashboard/i18n/hi.json +20 -0
  316. package/dist/dashboard/i18n/hu.json +20 -0
  317. package/dist/dashboard/i18n/is.json +20 -0
  318. package/dist/dashboard/i18n/it.json +20 -0
  319. package/dist/dashboard/i18n/ja.json +21 -1
  320. package/dist/dashboard/i18n/ko.json +20 -0
  321. package/dist/dashboard/i18n/nb.json +20 -0
  322. package/dist/dashboard/i18n/nl.json +20 -0
  323. package/dist/dashboard/i18n/pl.json +20 -0
  324. package/dist/dashboard/i18n/pt.json +20 -0
  325. package/dist/dashboard/i18n/ro.json +20 -0
  326. package/dist/dashboard/i18n/ru.json +20 -0
  327. package/dist/dashboard/i18n/sv.json +20 -0
  328. package/dist/dashboard/i18n/tr.json +20 -0
  329. package/dist/dashboard/i18n/uk.json +20 -0
  330. package/dist/dashboard/i18n/zh.json +20 -0
  331. package/dist/dashboard/{journal.js → journal/journal.js} +16 -16
  332. package/dist/dashboard/{notes.js → journal/notes.js} +4 -4
  333. package/dist/dashboard/kit.js +3 -3
  334. package/dist/dashboard/packages/ask-card.js +3 -3
  335. package/dist/dashboard/packages/catalog.js +196 -0
  336. package/dist/dashboard/packages/engine.js +87 -0
  337. package/dist/dashboard/packages/installed.js +53 -0
  338. package/dist/dashboard/packages/library.js +97 -0
  339. package/dist/dashboard/packages/outcomes.js +45 -0
  340. package/dist/dashboard/packages/packages.js +20 -576
  341. package/dist/dashboard/packages/page-code.js +15 -2
  342. package/dist/dashboard/packages/{package-page.js → page.js} +12 -5
  343. package/dist/dashboard/packages/rows.js +84 -0
  344. package/dist/dashboard/packages/share.js +44 -0
  345. package/dist/dashboard/packages/widgets.js +3 -3
  346. package/dist/dashboard/{card.js → parts/card.js} +1 -1
  347. package/dist/dashboard/{faces.js → parts/faces.js} +5 -5
  348. package/dist/dashboard/{game-words.js → parts/game-words.js} +1 -1
  349. package/dist/dashboard/{icons.js → parts/icons.js} +1 -1
  350. package/dist/dashboard/{labels.js → parts/labels.js} +8 -1
  351. package/dist/dashboard/{map-symbols.js → parts/map-symbols.js} +1 -1
  352. package/dist/dashboard/{markdown.js → parts/markdown.js} +2 -2
  353. package/dist/dashboard/{mood.js → parts/mood.js} +1 -1
  354. package/dist/dashboard/{refusals.js → parts/refusals.js} +1 -1
  355. package/dist/dashboard/{status.js → parts/status.js} +4 -4
  356. package/dist/dashboard/{widgets.js → parts/widgets.js} +2 -2
  357. package/dist/dashboard/place/key.js +24 -0
  358. package/dist/dashboard/place/paper.js +67 -0
  359. package/dist/dashboard/place/{map-sheet.js → sheet.js} +2 -2
  360. package/dist/dashboard/place/things.js +129 -0
  361. package/dist/dashboard/place/tokens.js +93 -0
  362. package/dist/dashboard/place/view.js +124 -0
  363. package/dist/dashboard/{asked-dice.js → play/asked-dice.js} +3 -3
  364. package/dist/dashboard/{asked.js → play/asked.js} +10 -10
  365. package/dist/dashboard/{choices.js → play/choices.js} +9 -9
  366. package/dist/dashboard/{requested.js → play/requested.js} +1 -1
  367. package/dist/dashboard/{rolls.js → play/rolls.js} +9 -9
  368. package/dist/dashboard/{scene.js → play/scene.js} +14 -14
  369. package/dist/dashboard/{turns.js → play/turns.js} +12 -12
  370. package/dist/dashboard/{language-choice.js → settings/language-choice.js} +1 -1
  371. package/dist/dashboard/{languages.js → settings/languages.js} +1 -1
  372. package/dist/dashboard/{saves.js → settings/saves.js} +8 -8
  373. package/dist/dashboard/{settings.js → settings/settings.js} +17 -15
  374. package/dist/dashboard/{setup.js → settings/setup.js} +6 -6
  375. package/dist/dashboard/{party.js → sheet/party.js} +8 -8
  376. package/dist/dashboard/{person-panel.js → sheet/person-panel.js} +4 -4
  377. package/dist/dashboard/{sheet.js → sheet/sheet.js} +17 -17
  378. package/dist/dashboard/{story.js → sheet/story.js} +3 -3
  379. package/dist/dashboard/{columns.js → shell/columns.js} +1 -1
  380. package/dist/dashboard/{footer.js → shell/footer.js} +3 -3
  381. package/dist/dashboard/{master.js → shell/master.js} +2 -2
  382. package/dist/dashboard/{notices.js → shell/notices.js} +3 -3
  383. package/dist/dashboard/{pages.js → shell/pages.js} +5 -5
  384. package/dist/dashboard/shell/shown.js +37 -0
  385. package/dist/dashboard/{table.js → shell/table.js} +2 -2
  386. package/dist/dashboard/{tabs.js → shell/tabs.js} +2 -2
  387. package/dist/dashboard/{top.js → shell/top.js} +7 -7
  388. package/dist/dashboard/style.css +90 -9
  389. package/dist/dashboard/world/calendar.js +4 -4
  390. package/dist/dashboard/world/drawing.js +92 -0
  391. package/dist/dashboard/world/key.js +21 -0
  392. package/dist/dashboard/world/lore.js +5 -5
  393. package/dist/dashboard/world/map-card.js +186 -0
  394. package/dist/dashboard/world/place-card.js +39 -0
  395. package/dist/dashboard/world/places.js +29 -0
  396. package/dist/dashboard/world/world.js +9 -341
  397. package/dist/extensions/extension.d.ts +1 -1
  398. package/dist/extensions/extension.js +1 -1
  399. package/dist/images/images.js +12 -9
  400. package/dist/index.d.ts +1 -1
  401. package/dist/languages/index.d.ts +1 -1
  402. package/dist/languages/index.js +1 -1
  403. package/dist/library/books.js +2 -0
  404. package/dist/packages/npm.js +1 -1
  405. package/dist/page.d.ts +2 -2
  406. package/dist/page.js +1 -1
  407. package/dist/pages/check.js +23 -1
  408. package/dist/pages/containers.d.ts +1 -1
  409. package/dist/pages/containers.js +1 -1
  410. package/dist/pages/index.d.ts +4 -2
  411. package/dist/pages/index.js +4 -2
  412. package/dist/pages/inheritance.d.ts +2 -2
  413. package/dist/pages/layers.d.ts +50 -0
  414. package/dist/pages/layers.js +97 -0
  415. package/dist/pages/rename-page.js +1 -1
  416. package/dist/pages/stacks/writes.js +48 -22
  417. package/dist/pages/standard-fields.d.ts +1 -1
  418. package/dist/pages/system-pages.d.ts +5 -3
  419. package/dist/pages/system-pages.js +16 -7
  420. package/dist/pages/world.d.ts +8 -1
  421. package/dist/pages/world.js +16 -4
  422. package/dist/pages/write-layer.d.ts +18 -0
  423. package/dist/pages/write-layer.js +108 -0
  424. package/dist/pages/write-page.d.ts +2 -2
  425. package/dist/pages/write-page.js +2 -2
  426. package/dist/rules/index.d.ts +1 -1
  427. package/dist/rules/index.js +1 -1
  428. package/dist/rules/search.d.ts +1 -1
  429. package/dist/rules/shown.d.ts +1 -1
  430. package/dist/server/dashboard/choices.js +3 -3
  431. package/dist/server/dashboard/files.js +5 -5
  432. package/dist/server/dashboard/index.d.ts +2 -2
  433. package/dist/server/dashboard/index.js +2 -2
  434. package/dist/server/dashboard/news.js +4 -3
  435. package/dist/server/dashboard/player.js +1 -1
  436. package/dist/server/dashboard/writes.js +10 -8
  437. package/dist/server/mcp.js +28 -13
  438. package/dist/systems/campaign-data.d.ts +15 -0
  439. package/dist/systems/campaign-data.js +85 -0
  440. package/dist/systems/{system-code.d.ts → code.d.ts} +1 -1
  441. package/dist/systems/{system-code.js → code.js} +2 -2
  442. package/dist/systems/game-system.d.ts +7 -61
  443. package/dist/systems/game-system.js +1 -984
  444. package/dist/systems/index.d.ts +6 -3
  445. package/dist/systems/index.js +6 -3
  446. package/dist/systems/installed.d.ts +31 -0
  447. package/dist/systems/installed.js +89 -0
  448. package/dist/systems/maps.d.ts +3 -0
  449. package/dist/systems/maps.js +9 -0
  450. package/dist/systems/read.d.ts +3 -0
  451. package/dist/systems/read.js +471 -0
  452. package/dist/systems/schema.d.ts +289 -0
  453. package/dist/systems/schema.js +243 -0
  454. package/dist/systems/settings.d.ts +19 -0
  455. package/dist/systems/settings.js +78 -0
  456. package/dist/systems/versions.d.ts +12 -0
  457. package/dist/systems/versions.js +52 -0
  458. package/dist/testing/index.js +1 -1
  459. package/instructions/import.md +1 -1
  460. package/instructions/length-a-few-sessions.md +1 -0
  461. package/instructions/length-one-evening.md +1 -0
  462. package/instructions/play.md +1 -1
  463. package/instructions/session-zero.md +1 -1
  464. package/instructions/setup.md +1 -1
  465. package/package.json +1 -1
  466. package/dist/commands/config.js +0 -917
  467. package/dist/commands/package.d.ts +0 -143
  468. package/dist/commands/package.js +0 -785
  469. package/dist/commands/scene.js +0 -894
  470. package/dist/commands/shared/worked-out.js +0 -805
  471. package/dist/dashboard/place/map-view.js +0 -417
  472. /package/dist/commands/shared/{library-reader.d.ts → books/library-reader.d.ts} +0 -0
  473. /package/dist/core/{package-api.d.ts → packages/api.d.ts} +0 -0
  474. /package/dist/core/{package-api.js → packages/api.js} +0 -0
  475. /package/dist/dashboard/{coins.js → parts/coins.js} +0 -0
  476. /package/dist/dashboard/{glass.js → parts/glass.js} +0 -0
  477. /package/dist/dashboard/{layout.js → parts/layout.js} +0 -0
  478. /package/dist/dashboard/{mood-faces.js → parts/mood-faces.js} +0 -0
  479. /package/dist/dashboard/{free-rolls.js → play/free-rolls.js} +0 -0
  480. /package/dist/dashboard/{reactions.js → play/reactions.js} +0 -0
  481. /package/dist/dashboard/{prefs.js → shell/prefs.js} +0 -0
  482. /package/dist/dashboard/{system-style.js → shell/system-style.js} +0 -0
  483. /package/dist/dashboard/{theme.js → shell/theme.js} +0 -0
  484. /package/dist/languages/{language-pack.d.ts → pack.d.ts} +0 -0
  485. /package/dist/languages/{language-pack.js → pack.js} +0 -0
  486. /package/dist/pages/{page-file.d.ts → file.d.ts} +0 -0
  487. /package/dist/pages/{page-file.js → file.js} +0 -0
  488. /package/dist/pages/{page-types.d.ts → types.d.ts} +0 -0
  489. /package/dist/pages/{page-types.js → types.js} +0 -0
  490. /package/dist/rules/{rule-book.d.ts → book.d.ts} +0 -0
  491. /package/dist/rules/{rule-book.js → book.js} +0 -0
  492. /package/dist/systems/{system-folders.d.ts → folders.d.ts} +0 -0
  493. /package/dist/systems/{system-folders.js → folders.js} +0 -0
@@ -1,13 +1,13 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "preact/jsx-runtime";
2
2
  import { useEffect, useRef, useState } from "preact/hooks";
3
- import { sectionAddress } from "./address.js";
4
- import { changeSaves, readSaves } from "./api.js";
5
- import { gameDateLabel } from "./game-words.js";
6
- import { Icon } from "./icons.js";
7
- import { phraseLabel, realTimeLabel, valueLabel } from "./labels.js";
8
- import { placeKinds } from "./map-symbols.js";
9
- import { PageHead } from "./pages.js";
10
- import { t } from "./text.js";
3
+ import { sectionAddress } from "../address.js";
4
+ import { changeSaves, readSaves } from "../api.js";
5
+ import { gameDateLabel } from "../parts/game-words.js";
6
+ import { Icon } from "../parts/icons.js";
7
+ import { phraseLabel, realTimeLabel, valueLabel } from "../parts/labels.js";
8
+ import { placeKinds } from "../parts/map-symbols.js";
9
+ import { PageHead } from "../shell/pages.js";
10
+ import { t } from "../text.js";
11
11
  /** The Saves section; with `several` player characters, checkpoint goes back when all die, or when one does and the table chooses it (D-480 (2)). */
12
12
  export function SavesView({ version, campaign, several = false }) {
13
13
  const [saves, setSaves] = useState();
@@ -1,19 +1,19 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
2
2
  import { useContext, useEffect, useRef, useState } from "preact/hooks";
3
- import { sectionLabel } from "./address.js";
4
- import { changeSetting, readSettings } from "./api.js";
5
- import { coinDesignPref, coinDesigns, coinLook, coinMetals, coinPref, diceEdgesPref, diceLook, diceSetPref, diceSets, texturePath } from "./dice/sets.js";
6
- import { CoinFace } from "./faces.js";
7
- import { DieSwatch, Icon } from "./icons.js";
8
- import { customLabel, itemLabel, leveledItemLabel, phraseLabel, rateParts, settingLabel, valueLabel } from "./labels.js";
3
+ import { sectionLabel } from "../address.js";
4
+ import { changeSetting, readSettings } from "../api.js";
5
+ import { coinDesignPref, coinDesigns, coinLook, coinMetals, coinPref, diceEdgesPref, diceLook, diceSetPref, diceSets, texturePath } from "../dice/sets.js";
6
+ import { WidgetsContext } from "../packages/widgets.js";
7
+ import { CoinFace } from "../parts/faces.js";
8
+ import { DieSwatch, Icon } from "../parts/icons.js";
9
+ import { customLabel, itemLabel, leveledItemLabel, phraseLabel, rateParts, settingLabel, valueLabel } from "../parts/labels.js";
10
+ import { PageHead } from "../shell/pages.js";
11
+ import { byHandPref, conditionsPref, readChoice, soundPref, tokenSymbolsPref, useChoice, usePref, usePrefChange, writeChoice } from "../shell/prefs.js";
12
+ import { applyGameStyle, gameStyle, systemStylePref } from "../shell/system-style.js";
13
+ import { pickTheme, shownTheme } from "../shell/theme.js";
14
+ import { arrowStep, t } from "../text.js";
9
15
  import { LanguageChoice, languageLine } from "./language-choice.js";
10
- import { WidgetsContext } from "./packages/widgets.js";
11
- import { PageHead } from "./pages.js";
12
- import { byHandPref, conditionsPref, readChoice, soundPref, tokenSymbolsPref, useChoice, usePref, usePrefChange, writeChoice } from "./prefs.js";
13
16
  import { Confirm } from "./saves.js";
14
- import { applyGameStyle, gameStyle, systemStylePref } from "./system-style.js";
15
- import { arrowStep, t } from "./text.js";
16
- import { pickTheme, shownTheme } from "./theme.js";
17
17
  // The groups of the campaign's settings, in order; a setting the game system adds goes with the dice, as whether the master's rolls are shown (D-287). How the
18
18
  // master plays holds who voices the characters (D-490) and how much the master thinks (D-462) too.
19
19
  const groups = [
@@ -22,6 +22,7 @@ const groups = [
22
22
  { names: ["prose", "story", "author", "style", "voices", "effort"] },
23
23
  { names: ["dice", "master-rolls", "units"], system: true },
24
24
  { names: ["lines", "veils"] },
25
+ { names: ["orders"] },
25
26
  { names: ["pictures", "language"] },
26
27
  ];
27
28
  /** The Settings section; with `several` player characters, what a value means says so where it speaks of one character (D-480 (2)). */
@@ -129,7 +130,7 @@ function SettingRow({ setting, off, several = false, parts, onChange }) {
129
130
  ? (_jsx(Segmented, { label: id, described: described, options: choices.map((choice) => ({ value: choice.value, label: label(choice) })), value: value, onPick: choose }))
130
131
  : setting.name === "language"
131
132
  ? _jsx(LanguageChoice, { value: value, labelledBy: id, describedBy: `${id}-about`, onPick: (code) => choose(code, false) })
132
- : setting.most !== undefined
133
+ : setting.most !== undefined && setting.items === undefined
133
134
  ? _jsx(TextSetting, { setting: setting, label: id, onChange: send })
134
135
  : _jsx(ListSetting, { setting: setting, label: id, onChange: send }), _jsxs("div", { class: "setting-after", children: [off !== undefined && _jsx("p", { class: "setting-off", id: `${id}-off`, children: off }), chosen !== undefined && means !== undefined && !rules && (_jsxs("p", { class: "setting-means", id: `${id}-means`, children: [_jsxs("strong", { children: [label(chosen), ":"] }), " ", means] })), setting.name === "language" && value !== undefined && _jsx("p", { class: "setting-means", children: languageLine(value) }), unset && _jsx("p", { class: "setting-unset", children: choices === undefined ? t("Not answered yet: add them here, or the master asks you.") : t("Not chosen yet: choose here, or the master asks you.") }), setting.note !== undefined && _jsx(SettingNote, { note: setting.note }), _jsx("p", { class: said.now?.problem ? "setting-said problem" : "setting-said", role: "status", children: said.now?.text })] }), value === customValue && parts?.entries !== undefined && _jsx(LeveledParts, { setting: parts, labelledBy: id, onChange: onChange }), asking !== undefined && (_jsxs(Confirm, { title: t("Play by {rules}?", { rules: choiceLabel(setting.name, setting.choices?.find((choice) => choice.value === asking) ?? { value: asking }, false) }), onClose: keep, children: [_jsx("p", { children: t("The game follows these rules from the master's next move: the sheets are worked out with them, and the master reads them.") }), _jsx("p", { class: "confirm-note", children: t("What is already in play stays as it is, and you can go back whenever you want.") }), _jsxs("div", { class: "confirm-buttons", children: [_jsx("button", { type: "button", class: "button", autoFocus: true, onClick: keep, children: t("Cancel") }), _jsx("button", { type: "button", class: "button gold", onClick: () => {
135
136
  setAsking(undefined);
@@ -249,7 +250,7 @@ function ListSetting({ setting, label, onChange }) {
249
250
  onChange({ setting: setting.name, add: item.trim() });
250
251
  setItem("");
251
252
  }
252
- }, children: [_jsx("input", { type: "text", value: item, maxLength: 200, placeholder: exampleOf(setting.name) ?? t("Add…"), "aria-label": t("Add to {setting}", { setting: settingLabel(setting.name) }), onInput: (event) => setItem(event.currentTarget.value) }), _jsx("button", { type: "submit", class: "button", disabled: item.trim() === "", children: t("Add") })] })] }));
253
+ }, children: [_jsx("input", { type: "text", value: item, maxLength: setting.most ?? 200, placeholder: exampleOf(setting.name) ?? t("Add…"), "aria-label": t("Add to {setting}", { setting: settingLabel(setting.name) }), onInput: (event) => setItem(event.currentTarget.value) }), _jsx("button", { type: "submit", class: "button", disabled: item.trim() === "", children: t("Add") })] })] }));
253
254
  }
254
255
  /**
255
256
  * The player's own words, as the author the master writes like (D-395): sent with Enter or Save, back as they were with Escape, cleared with Clear or by
@@ -540,13 +541,14 @@ function Segmented({ label, described, options, value, onPick }) {
540
541
  }
541
542
  /** A group of the campaign's settings by its place, in the page's language. */
542
543
  function groupTitle(index) {
543
- return [t("The game"), t("Learning the game"), t("The master's style"), t("Dice and measures"), t("Limits"), t("Pictures and language")][index] ?? "";
544
+ return [t("The game"), t("Learning the game"), t("The master's style"), t("Dice and measures"), t("Limits"), t("Your companions"), t("Pictures and language")][index] ?? "";
544
545
  }
545
546
  /** What a list's field suggests, as an example. */
546
547
  function exampleOf(name) {
547
548
  const examples = {
548
549
  lines: t("Add, e.g. spiders"),
549
550
  veils: t("Add, e.g. torture"),
551
+ orders: t("Add, e.g. leave one alive"),
550
552
  learned: t("Add what you know, e.g. Initiative"),
551
553
  author: t("An author's name"),
552
554
  style: t("e.g. third person, past tense; more dialogue"),
@@ -3,11 +3,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
3
3
  // name to change, the three steps, and one question at a time, its choices large with what each means and the one the game suggests, as Settings has them; a
4
4
  // choice can be left to the master. The master hears each choice at their next call (D-341), and the premise and the world stay in the chat.
5
5
  import { useEffect, useRef, useState } from "preact/hooks";
6
- import { changeSetting, readSetup, sendSetupWord } from "./api.js";
7
- import { Icon } from "./icons.js";
8
- import { phraseLabel, settingLabel, valueLabel } from "./labels.js";
9
- import { Master } from "./master.js";
10
- import { arrowStep, t } from "./text.js";
6
+ import { changeSetting, readSetup, sendSetupWord } from "../api.js";
7
+ import { Icon } from "../parts/icons.js";
8
+ import { phraseLabel, settingLabel, valueLabel } from "../parts/labels.js";
9
+ import { Master } from "../shell/master.js";
10
+ import { arrowStep, t } from "../text.js";
11
11
  // The steps of a campaign before play (MOD-1).
12
12
  const steps = ["setup", "session zero", "play"];
13
13
  // The lists of the setup, answered with items or with none: limits are the player's alone, never left to the master.
@@ -52,7 +52,7 @@ export function SetupView({ setup }) {
52
52
  go(at + 1);
53
53
  }
54
54
  };
55
- return (_jsxs("section", { class: "setup", "aria-labelledby": "setup-title", children: [_jsx("div", { class: "setup-host", children: _jsx(Master, { mood: "happy" }) }), _jsx(CampaignName, { name: setup.name }), _jsx("h1", { id: "setup-title", class: "visually-hidden", children: t("Setting up {campaign}", { campaign: setup.name }) }), _jsx("ol", { class: "setup-steps", "aria-label": t("Steps"), children: steps.map((one, index) => (_jsxs("li", { class: index < step ? "done" : index === step ? "now" : undefined, "aria-current": index === step ? "step" : undefined, children: [_jsx("span", { class: "setup-step-dot", "aria-hidden": "true", children: index < step ? "✓" : index + 1 }), stepName(one)] }, one))) }), said !== undefined && _jsx("p", { class: "setup-problem", role: "alert", children: said }), !done && question !== undefined && (_jsx(Question, { question: question, count: t("{value} of {max}", { value: at + 1, max: questions.length }), left: left.has(question.name), focus: moved, onBack: at > 0 ? () => go(at - 1) : undefined, onNext: () => go(at + 1), onLeave: () => void leave(question.name), onProblem: setSaid }, question.name)), done && _jsx(Ready, { setup: setup, left: left, focus: moved, onGo: go, onProblem: setSaid }), _jsx("ol", { class: "setup-dots", "aria-label": t("Questions"), children: questions.map((one, index) => (_jsx("li", { children: _jsx("button", { type: "button", class: [answered(one) ? "answered" : left.has(one.name) ? "left" : "", index === at ? "here" : ""].filter((name) => name !== "").join(" "), "aria-label": answered(one) ? t("{setting}: answered", { setting: settingLabel(one.name) }) : left.has(one.name) ? t("{setting}: left to the master", { setting: settingLabel(one.name) }) : settingLabel(one.name), "aria-current": index === at ? "step" : undefined, onClick: () => go(index) }) }, one.name))) }), _jsx("p", { class: "setup-chat", children: t("You can also tell the master in the chat: they hear what you choose here.") })] }));
55
+ return (_jsxs("section", { class: "setup", "aria-labelledby": "setup-title", children: [_jsx("div", { class: "setup-host", children: _jsx(Master, { mood: "happy" }) }), _jsx(CampaignName, { name: setup.name }), _jsx("h1", { id: "setup-title", class: "visually-hidden", children: t("Setting up {campaign}", { campaign: setup.name }) }), _jsx("ol", { class: "setup-steps", "aria-label": t("Steps"), children: steps.map((one, index) => (_jsxs("li", { class: index < step ? "done" : index === step ? "now" : undefined, "aria-current": index === step ? "step" : undefined, children: [_jsx("span", { class: "setup-step-dot", "aria-hidden": "true", children: index < step ? "✓" : index + 1 }), stepName(one)] }, one))) }), said !== undefined && _jsx("p", { class: "setup-problem", role: "alert", children: said }), !done && question !== undefined && (_jsx(Question, { question: question, count: t("{value} of {max}", { value: at + 1, max: questions.length }), left: left.has(question.name), focus: moved, onBack: at > 0 ? () => go(at - 1) : undefined, onNext: () => go(at + 1), onLeave: () => void leave(question.name), onProblem: setSaid }, question.name)), done && _jsx(Ready, { setup: setup, left: left, focus: moved, onGo: go, onProblem: setSaid }), _jsx("ol", { class: "setup-dots", "aria-label": t("Questions"), style: { "--count": String(questions.length) }, children: questions.map((one, index) => (_jsx("li", { children: _jsx("button", { type: "button", class: [answered(one) ? "answered" : left.has(one.name) ? "left" : "", index === at ? "here" : ""].filter((name) => name !== "").join(" "), "aria-label": answered(one) ? t("{setting}: answered", { setting: settingLabel(one.name) }) : left.has(one.name) ? t("{setting}: left to the master", { setting: settingLabel(one.name) }) : settingLabel(one.name), "aria-current": index === at ? "step" : undefined, onClick: () => go(index) }) }, one.name))) }), _jsx("p", { class: "setup-chat", children: t("You can also tell the master in the chat: they hear what you choose here.") })] }));
56
56
  }
57
57
  /**
58
58
  * One question as its card shows it: what it is, its choices large with what each means and the one the game suggests, or a list's items; back, next, or left
@@ -2,15 +2,15 @@ import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
2
2
  // The party's strip (D-276): a link to each one's sheet, with their token and the pip of their state (D-419), their name, the first counter of their line and
3
3
  // their effects; the dead go last.
4
4
  import { useContext } from "preact/hooks";
5
- import { Icon } from "./icons.js";
6
- import { fieldLabel, initials, nameHue } from "./labels.js";
7
- import { stripCounter } from "./layout.js";
8
- import { WidgetsContext } from "./packages/widgets.js";
5
+ import { WidgetsContext } from "../packages/widgets.js";
6
+ import { Icon } from "../parts/icons.js";
7
+ import { fieldLabel, initials, nameHue } from "../parts/labels.js";
8
+ import { stripCounter } from "../parts/layout.js";
9
+ import { besideWord, downTint, memberStatus, StatusPip, statusWords } from "../parts/status.js";
10
+ import { Bar, Effects } from "../parts/widgets.js";
11
+ import { tokenSymbolsPref, usePref } from "../shell/prefs.js";
12
+ import { t } from "../text.js";
9
13
  import { personShown, PersonStrip } from "./person-panel.js";
10
- import { tokenSymbolsPref, usePref } from "./prefs.js";
11
- import { besideWord, downTint, memberStatus, StatusPip, statusWords } from "./status.js";
12
- import { t } from "./text.js";
13
- import { Bar, Effects } from "./widgets.js";
14
14
  /** The address of someone's sheet, which the AI can give the player too (D-276). */
15
15
  export function sheetAddress(name) {
16
16
  return `#/party/${encodeURIComponent(name)}`;
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "preact/jsx-runtime";
2
- import { statusIcons } from "./icons.js";
3
- import { usePageModule } from "./packages/page-code.js";
4
- import { Figure, textOf, Value } from "./packages/widgets.js";
5
- import { numberText, t } from "./text.js";
2
+ import { usePageModule } from "../packages/page-code.js";
3
+ import { Figure, textOf, Value } from "../packages/widgets.js";
4
+ import { statusIcons } from "../parts/icons.js";
5
+ import { numberText, t } from "../text.js";
6
6
  /** The widgets on someone of the party that say their state (a `chip`) and draw it, in their order: each the panel of A (D-516). */
7
7
  export function personShown(widgets, name) {
8
8
  return onPerson(widgets, name).filter((shown) => saysState(shown) && shown.shows.parts?.some((part) => "track" in part || "lead" in part) === true);
@@ -1,25 +1,25 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "preact/jsx-runtime";
2
2
  import { useContext, useEffect, useId, useRef, useState } from "preact/hooks";
3
- import { itemVerbs } from "./acts/acts.js";
4
- import { ActName, usePlayerActs } from "./acts/names.js";
5
- import { readExplanations } from "./api.js";
6
- import { CardHeader, useOpen } from "./card.js";
7
- import { ChoicesNotice } from "./choices.js";
8
- import { FixedColumns } from "./columns.js";
9
- import { besideLabel, memberPlaceLabel } from "./game-words.js";
10
- import { cardIcons, DieIcon, Icon } from "./icons.js";
11
- import { fieldLabel, groupLabels, itemLabel, phraseLabel, readableIds, rollLabel, shownNotation, shownText } from "./labels.js";
12
- import { arrangedGroups, groupLayout, orderedValues, widgetOf } from "./layout.js";
13
- import { knowersOf, Markdown, plainLine } from "./markdown.js";
14
- import { MoodFace, moodLabel } from "./mood.js";
15
- import { WidgetCards, WidgetsContext } from "./packages/widgets.js";
3
+ import { itemVerbs } from "../acts/acts.js";
4
+ import { ActName, usePlayerActs } from "../acts/names.js";
5
+ import { readExplanations } from "../api.js";
6
+ import { WidgetCards, WidgetsContext } from "../packages/widgets.js";
7
+ import { CardHeader, useOpen } from "../parts/card.js";
8
+ import { besideLabel, memberPlaceLabel } from "../parts/game-words.js";
9
+ import { cardIcons, DieIcon, Icon } from "../parts/icons.js";
10
+ import { fieldLabel, groupLabels, itemLabel, phraseLabel, readableIds, rollLabel, shownNotation, shownText } from "../parts/labels.js";
11
+ import { arrangedGroups, groupLayout, orderedValues, widgetOf } from "../parts/layout.js";
12
+ import { knowersOf, Markdown, plainLine } from "../parts/markdown.js";
13
+ import { MoodFace, moodLabel } from "../parts/mood.js";
14
+ import { besideWord, memberStatus } from "../parts/status.js";
15
+ import { Effects, ProgressBar, ValueDrawing } from "../parts/widgets.js";
16
+ import { ChoicesNotice } from "../play/choices.js";
17
+ import { requestedRow, useRequested } from "../play/requested.js";
18
+ import { FixedColumns } from "../shell/columns.js";
19
+ import { arrowStep, listText, systemWord, t } from "../text.js";
16
20
  import { MemberToken } from "./party.js";
17
21
  import { PersonBoxes, personBoxes, personFields, PersonPanel, personShown } from "./person-panel.js";
18
- import { requestedRow, useRequested } from "./requested.js";
19
- import { besideWord, memberStatus } from "./status.js";
20
22
  import { StoryBox } from "./story.js";
21
- import { arrowStep, listText, systemWord, t } from "./text.js";
22
- import { Effects, ProgressBar, ValueDrawing } from "./widgets.js";
23
23
  // The cards of the page's text, after the system's groups, the whole width: the player character's story in the player's words, then the rest of the text.
24
24
  const descriptionCard = "Description";
25
25
  const backstoryCard = "Backstory";
@@ -2,9 +2,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
2
2
  // The player character's story in the player's words (D-373, D-386): a proposal from the sheet's Description, which the master hears quoted and writes in the
3
3
  // page in their own words, with the player's yes; until then the box says it was sent.
4
4
  import { useEffect, useId, useRef, useState } from "preact/hooks";
5
- import { readStory, sendStory } from "./api.js";
6
- import { Icon } from "./icons.js";
7
- import { t } from "./text.js";
5
+ import { readStory, sendStory } from "../api.js";
6
+ import { Icon } from "../parts/icons.js";
7
+ import { t } from "../text.js";
8
8
  export function StoryBox({ story, who }) {
9
9
  const [editing, setEditing] = useState(false);
10
10
  const [draft, setDraft] = useState(story);
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "preact/jsx-runtime";
2
2
  import { useLayoutEffect, useRef, useState } from "preact/hooks";
3
- import { columnsByHeight } from "./layout.js";
3
+ import { columnsByHeight } from "../parts/layout.js";
4
4
  // The narrowest a column gets, and the room between two, in pixels: the page's one room, --gap in the style sheet.
5
5
  const columnWidth = 300;
6
6
  const columnGap = 16;
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
2
2
  // The page's foot, under a line across the whole page as the head's: our copyright, the code on GitHub and the package on npm, a heart to support the project,
3
3
  // and the game system with the credit its source asks for (PLAN, phase 2).
4
- import { Icon } from "./icons.js";
5
- import { systemNameLabel, systemTitleLabel } from "./labels.js";
6
- import { t } from "./text.js";
4
+ import { Icon } from "../parts/icons.js";
5
+ import { systemNameLabel, systemTitleLabel } from "../parts/labels.js";
6
+ import { t } from "../text.js";
7
7
  /** Where the project lives, and how to support it. */
8
8
  export const footLinks = {
9
9
  author: "https://stefanocaronia.it",
@@ -2,8 +2,8 @@ import { jsx as _jsx } from "preact/jsx-runtime";
2
2
  // The master's avatar, the robot (D-274): its picture inline, so that the page can move it. It shows the master's mood (D-305), a moment's face for a little while
3
3
  // when one comes, its eyes closed while the master is away; unless the player asked for less motion, it blinks now and then and breathes.
4
4
  import { useEffect, useRef, useState } from "preact/hooks";
5
- import { moodLabel } from "./mood.js";
6
- import { t } from "./text.js";
5
+ import { moodLabel } from "../parts/mood.js";
6
+ import { t } from "../text.js";
7
7
  // A blink lasts this long, every few seconds: the eyes close and open again, each in the style sheet's --quick.
8
8
  const blinkLength = 200;
9
9
  const blinkEvery = { least: 3500, most: 7000 };
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "preact/jsx-runtime";
2
- import { Icon } from "./icons.js";
3
- import { languageName } from "./languages.js";
4
- import { pageLocale, pageTranslation, t } from "./text.js";
2
+ import { Icon } from "../parts/icons.js";
3
+ import { languageName } from "../settings/languages.js";
4
+ import { pageLocale, pageTranslation, t } from "../text.js";
5
5
  export function Notices({ notices }) {
6
6
  return notices.length === 0 ? null : (_jsx("div", { class: "notices", children: notices.map((notice) => {
7
7
  // The role on the words alone, always the same node: a count beside them is read where it is, never heard at each step.
@@ -1,10 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
2
- import { sectionLabel } from "./address.js";
3
- import { CardHeader } from "./card.js";
2
+ import { sectionLabel } from "../address.js";
3
+ import { CardHeader } from "../parts/card.js";
4
+ import { Icon, iconPath } from "../parts/icons.js";
5
+ import { systemNameLabel, systemTitleLabel } from "../parts/labels.js";
6
+ import { t } from "../text.js";
4
7
  import { footLinks } from "./footer.js";
5
- import { Icon, iconPath } from "./icons.js";
6
- import { systemNameLabel, systemTitleLabel } from "./labels.js";
7
- import { t } from "./text.js";
8
8
  /** A page's head, out of Party and Scene: its section's icon and its title, both in the accent (D-409). */
9
9
  export function PageHead({ section, id, title }) {
10
10
  return (_jsxs("div", { class: "page-head", children: [_jsx("span", { class: "page-mark", children: _jsx(Icon, { name: section }) }), _jsx("h2", { id: id, children: title ?? sectionLabel(section) })] }));
@@ -0,0 +1,37 @@
1
+ import { hasTurns } from "../play/turns.js";
2
+ /** The page as read now; while a card's dice fly, with the sheet and the fight as they were, what the roll changed kept until they land (D-461). */
3
+ export function withHeld(before, next, hold) {
4
+ if (!hold) {
5
+ return { ...next, pending: undefined };
6
+ }
7
+ const steady = (shown) => ({
8
+ party: shown.party,
9
+ chosen: shown.chosen,
10
+ headline: shown.headline,
11
+ sheet: shown.sheet,
12
+ cards: shown.cards,
13
+ text: shown.text,
14
+ knownBy: shown.knownBy,
15
+ story: shown.story,
16
+ openScene: shown.openScene,
17
+ pack: shown.pack,
18
+ });
19
+ return { ...next, ...steady(before), pending: steady(next) };
20
+ }
21
+ /** The player character of the party by their name; undefined for anyone else, or none. */
22
+ export function playerNamed(party, name) {
23
+ return name === undefined ? undefined : party.find((member) => member.role === "pc" && member.name === name);
24
+ }
25
+ /**
26
+ * Whose sheet the page reads when the address names no one (D-480 (7)): in the Party section the player character the master asks, then whose turn it is;
27
+ * elsewhere whose turn it is first, for the card at hand in a fight; else the one in the foreground, else the first.
28
+ */
29
+ export function calledOf(party, section, asked, scene, foreground) {
30
+ const asking = playerNamed(party, asked?.who);
31
+ const acting = hasTurns(scene) ? playerNamed(party, scene.turn) : undefined;
32
+ return (section === "party" ? asking ?? acting : acting ?? asking) ?? playerNamed(party, foreground) ?? party[0];
33
+ }
34
+ /** The turn of a scene that goes by them, as the round and who acts; empty outside turns. */
35
+ export function turnKey(scene) {
36
+ return hasTurns(scene) ? `${scene.title} ${scene.since ?? ""} ${scene.round ?? ""} ${scene.turn ?? ""}` : "";
37
+ }
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "preact/jsx-runtime";
2
2
  import { useEffect, useRef, useState } from "preact/hooks";
3
- import { cardIcons, Icon, iconPath } from "./icons.js";
4
- import { t } from "./text.js";
3
+ import { cardIcons, Icon, iconPath } from "../parts/icons.js";
4
+ import { t } from "../text.js";
5
5
  // The gap between the table and the window's foot; how many rolls the list shows before it scrolls inside. Where the browser remembers that the player folded
6
6
  // the table, as it did the rolls.
7
7
  const windowMargin = 12;
@@ -1,7 +1,7 @@
1
1
  import { jsxs as _jsxs, jsx as _jsx } from "preact/jsx-runtime";
2
2
  import { useEffect, useRef } from "preact/hooks";
3
- import { sectionAddress } from "./address.js";
4
- import { arrowStep } from "./text.js";
3
+ import { sectionAddress } from "../address.js";
4
+ import { arrowStep } from "../text.js";
5
5
  /** A section's tabs: their keys in order, the first one's address the section's own, and their names in the page's language; onChoose hears each choice. */
6
6
  export function PageTabs({ section, tabs, chosen, label, onChoose }) {
7
7
  const row = useRef(null);
@@ -6,14 +6,14 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "preact/jsx-ru
6
6
  // while the chat is away (D-305). On a phone the sections at the bottom, the rest in the menu (D-309).
7
7
  import { Fragment } from "preact";
8
8
  import { useEffect, useLayoutEffect, useRef, useState } from "preact/hooks";
9
- import { menuPages, packagePages, sectionAddress, sectionLabel, sections } from "./address.js";
10
- import { calendarDayLabel, gameDateLabel } from "./game-words.js";
11
- import { Icon } from "./icons.js";
9
+ import { menuPages, packagePages, sectionAddress, sectionLabel, sections } from "../address.js";
10
+ import { ownKey } from "../packages/page-code.js";
11
+ import { Drawn, WidgetChips } from "../packages/widgets.js";
12
+ import { calendarDayLabel, gameDateLabel } from "../parts/game-words.js";
13
+ import { Icon } from "../parts/icons.js";
14
+ import { listText, t } from "../text.js";
12
15
  import { Master } from "./master.js";
13
- import { ownKey } from "./packages/page-code.js";
14
- import { Drawn, WidgetChips } from "./packages/widgets.js";
15
16
  import { usePrefChange } from "./prefs.js";
16
- import { listText, t } from "./text.js";
17
17
  import { pickTheme, shownTheme } from "./theme.js";
18
18
  // What the row of the sections leaves between a link and the next, between the sections and the pages after them, and for the menu's button.
19
19
  const linkGap = 2;
@@ -30,7 +30,7 @@ export function Top(top) {
30
30
  setPoke({ id: String(Date.now()), mood: pokedMoods[Date.now() % pokedMoods.length] ?? "happy" });
31
31
  };
32
32
  const title = top.campaign ?? top.product;
33
- return (_jsxs(_Fragment, { children: [_jsxs("div", { ref: room, class: "top-room", children: [_jsx("span", { class: "top-mark far", "aria-hidden": "true" }), _jsx("span", { class: "top-mark near", "aria-hidden": "true" })] }), _jsxs("header", { ref: header, class: compact ? "top compact" : "top", children: [_jsx(MasterHome, { top: top, poke: poke, onHome: home }), _jsxs("div", { class: "titles", children: [_jsx("h1", { dir: "auto", children: _jsx("a", { class: "title-home", dir: "auto", href: sectionAddress("party"), onClick: home, children: title }) }), top.campaign !== undefined && (_jsxs("p", { class: "product", children: [top.product, top.system && _jsx("span", { class: "system-chip", children: top.system })] })), top.campaign !== undefined && top.now !== undefined && _jsx("p", { class: "product-time", children: gameDateLabel(top.now) })] }), _jsx(StatusChips, { now: top.now, calendar: top.calendar, live: top.live }), _jsx(Navigation, { current: top.section, fight: top.fight, yourTurn: top.yourTurn, turnName: top.turnName, ownPages: top.ownPages ?? [], ownShown: top.ownShown, choices: top.choices }), top.path !== undefined && top.path.length > 0 && _jsx(PlacePath, { path: top.path })] }), _jsx(ThemeCorner, {})] }));
33
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { ref: room, class: "top-room", children: [_jsx("span", { class: "top-mark far", "aria-hidden": "true" }), _jsx("span", { class: "top-mark near", "aria-hidden": "true" })] }), _jsxs("header", { ref: header, class: compact ? "top compact" : "top", children: [_jsx(MasterHome, { top: top, poke: poke, onHome: home }), _jsxs("div", { class: "titles", children: [_jsx("h1", { dir: "auto", children: _jsx("a", { class: "title-home", dir: "auto", href: sectionAddress("party"), title: title, onClick: home, children: title }) }), top.campaign !== undefined && (_jsxs("p", { class: "product", children: [top.product, top.system && _jsx("span", { class: "system-chip", children: top.system })] })), top.campaign !== undefined && top.now !== undefined && _jsx("p", { class: "product-time", children: gameDateLabel(top.now) })] }), _jsx(StatusChips, { now: top.now, calendar: top.calendar, live: top.live }), _jsx(Navigation, { current: top.section, fight: top.fight, yourTurn: top.yourTurn, turnName: top.turnName, ownPages: top.ownPages ?? [], ownShown: top.ownShown, choices: top.choices }), top.path !== undefined && top.path.length > 0 && _jsx(PlacePath, { path: top.path })] }), _jsx(ThemeCorner, {})] }));
34
34
  }
35
35
  /**
36
36
  * The sections, each a link to its address (D-276, D-309), the one shown marked, then the packages' pages that are tabs (D-512); then the saves, Help, the
@@ -343,6 +343,25 @@
343
343
  translate: 0 50% !important;
344
344
  }
345
345
 
346
+ /* On a phone a hidden tip takes no room, as one wider than the window would widen the page with the text zoomed; shown, it wraps in the window. */
347
+ @media (max-width: 600px) {
348
+ [data-tip]:not(:focus-visible)::before {
349
+ display: none !important;
350
+ }
351
+
352
+ [data-tip]::before {
353
+ width: max-content !important;
354
+ max-width: calc(100vw - 32px) !important;
355
+ white-space: pre-line !important;
356
+ }
357
+ }
358
+
359
+ @media (max-width: 600px) and (hover: hover) {
360
+ [data-tip]:hover::before {
361
+ display: block !important;
362
+ }
363
+ }
364
+
346
365
  /* The title takes the focus for a screen reader to read it; no ring, as it is no control. */
347
366
  .reader-head h3:focus {
348
367
  outline: none !important;
@@ -421,7 +440,8 @@
421
440
  /* The texture stays with the window, the light above scrolls away with the page's top, as without a theme. */
422
441
  background-attachment: scroll, fixed, fixed, scroll;
423
442
  color: var(--ink);
424
- font: 15px/1.4 var(--font);
443
+ /* 15px at the browser's own size, and larger with the reader's: what is set in rem and in em grows together. */
444
+ font: 0.9375rem/1.4 var(--font);
425
445
  }
426
446
 
427
447
  /* The serif is the story's voice alone: the campaign's name, and the master's question (D-282); the name in the game's titles' face, when it gives one. */
@@ -650,6 +670,15 @@
650
670
  white-space: nowrap;
651
671
  }
652
672
 
673
+ /* On a phone a title that does not fit, as one long word with the text zoomed, wraps and breaks rather than widen the page. */
674
+ @media (max-width: 600px) {
675
+ summary :is(h3, .rolls-title),
676
+ .table-card > summary h2 {
677
+ white-space: normal;
678
+ overflow-wrap: anywhere;
679
+ }
680
+ }
681
+
653
682
  /* A card of the table: no padding of its own, so its header runs to its edges, and its list touches the header's rule. */
654
683
  .table-card > summary {
655
684
  margin: 0;
@@ -7965,6 +7994,7 @@
7965
7994
  /* Where fingers touch, every control as tall as a finger. */
7966
7995
  @media (pointer: coarse) {
7967
7996
  .segmented button {
7997
+ min-width: var(--target);
7968
7998
  min-height: var(--target);
7969
7999
  }
7970
8000
 
@@ -8005,6 +8035,11 @@
8005
8035
  width: 100%;
8006
8036
  }
8007
8037
 
8038
+ /* The field gives way to Add, with the text zoomed too: its own width would widen the page. */
8039
+ .setting-list form input {
8040
+ width: 0;
8041
+ }
8042
+
8008
8043
  /* On a phone the values share the row. */
8009
8044
  .segmented {
8010
8045
  display: flex;
@@ -9927,6 +9962,12 @@
9927
9962
  .sheet-body {
9928
9963
  display: block;
9929
9964
  }
9965
+
9966
+ /* The name and what is said of them stay inside the band, with the text zoomed too. */
9967
+ .identity .who {
9968
+ min-width: 0;
9969
+ overflow-wrap: anywhere;
9970
+ }
9930
9971
  }
9931
9972
 
9932
9973
  /* A thing in a list of bonds, as attuned: two rings after its name, in the accent. */
@@ -10263,15 +10304,20 @@
10263
10304
  border-color: color-mix(in srgb, var(--gold) 60%, var(--rule));
10264
10305
  }
10265
10306
 
10266
- /* Each dot is drawn at 12 pixels in a target of 24; where the player is, a wider pill. */
10307
+ /* Each dot is drawn at 12 pixels in a target of 24; where the player is, a wider pill. The dots wrap as words do, balanced: when one row is too narrow
10308
+ for them, two even rows, never one dot alone. */
10267
10309
  .setup-dots {
10268
- display: flex;
10269
- flex-wrap: wrap;
10270
- justify-content: center;
10271
- gap: 0;
10310
+ justify-self: stretch;
10272
10311
  margin: 0;
10273
10312
  padding: 0;
10274
10313
  list-style: none;
10314
+ text-align: center;
10315
+ text-wrap: balance;
10316
+ }
10317
+
10318
+ .setup-dots > li {
10319
+ display: inline-block;
10320
+ vertical-align: top;
10275
10321
  }
10276
10322
 
10277
10323
  .setup-dots button {
@@ -10328,12 +10374,18 @@
10328
10374
  }
10329
10375
 
10330
10376
  @media (pointer: coarse) {
10377
+ /* Touch targets as large as one row of questions allows, never under 24px; the list spans the column, so the share is of a known width. */
10378
+ .setup-dots > li {
10379
+ width: clamp(24px, calc(100% / var(--count, 12)), 30px);
10380
+ }
10381
+
10331
10382
  .setup-dots button {
10332
- width: 30px;
10383
+ width: 100%;
10333
10384
  height: 30px;
10334
10385
  }
10335
10386
 
10336
- .setup-list input {
10387
+ .setup-list input,
10388
+ .setup-chip {
10337
10389
  min-height: var(--target);
10338
10390
  }
10339
10391
  }
@@ -10537,6 +10589,11 @@
10537
10589
  .help-index {
10538
10590
  display: none;
10539
10591
  }
10592
+
10593
+ /* An address in a line breaks where it must, with the text zoomed too; in a table and a block of code it stays whole, as they scroll. */
10594
+ .guide :not(pre, td) > code {
10595
+ overflow-wrap: anywhere;
10596
+ }
10540
10597
  }
10541
10598
  }
10542
10599
  /* About. */
@@ -11840,8 +11897,12 @@
11840
11897
  white-space: nowrap;
11841
11898
  }
11842
11899
 
11843
- /* On a phone the notice says whose turn alone: the round is on the Scene. */
11900
+ /* On a phone the notice says whose turn alone: the round is on the Scene; Go to the scene goes under it when the row cannot hold both. */
11844
11901
  @media (max-width: 600px) {
11902
+ .turn-notice {
11903
+ flex-wrap: wrap;
11904
+ }
11905
+
11845
11906
  .turn-notice-round {
11846
11907
  display: none;
11847
11908
  }
@@ -14281,6 +14342,21 @@
14281
14342
  }
14282
14343
  }
14283
14344
 
14345
+ /* On touch the switch, and on a phone the link on its own line, are as tall as a finger needs. */
14346
+ @media (max-width: 600px) and (pointer: coarse) {
14347
+ .package-report {
14348
+ display: flex;
14349
+ align-items: center;
14350
+ min-height: var(--target);
14351
+ }
14352
+ }
14353
+
14354
+ @media (pointer: coarse) {
14355
+ .package-use {
14356
+ min-height: var(--target);
14357
+ }
14358
+ }
14359
+
14284
14360
  /* Where a package is already, the system in use, an adventure in the story: words, never a button. */
14285
14361
  .package-here,
14286
14362
  .package-lock {
@@ -15384,6 +15460,11 @@
15384
15460
  .choice-chosen .icon-button {
15385
15461
  width: var(--target);
15386
15462
  }
15463
+
15464
+ .choice-read {
15465
+ width: var(--target);
15466
+ height: var(--target);
15467
+ }
15387
15468
  }
15388
15469
 
15389
15470
  /* On a phone the notice's words take the room; the chevron says where it leads. */
@@ -5,10 +5,10 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "preact/jsx-ru
5
5
  // calendar start, the days of the story in the same rows, by their number.
6
6
  import { useEffect, useRef, useState } from "preact/hooks";
7
7
  import { sectionAddress } from "../address.js";
8
- import { CardHead, useMedia } from "../card.js";
9
- import { calendarDayLabel, calendarMonthLabel, gameDateLabel, seasonLabel } from "../game-words.js";
10
- import { Icon, iconPath } from "../icons.js";
11
- import { Deadline } from "../journal.js";
8
+ import { Deadline } from "../journal/journal.js";
9
+ import { CardHead, useMedia } from "../parts/card.js";
10
+ import { calendarDayLabel, calendarMonthLabel, gameDateLabel, seasonLabel } from "../parts/game-words.js";
11
+ import { Icon, iconPath } from "../parts/icons.js";
12
12
  import { arrowStep, capitalized, isolated, listText, t } from "../text.js";
13
13
  import { calendarDateOf, dayMarks, monthAt, monthOffsetOf, storyDays } from "./days.js";
14
14
  export function CalendarTab({ calendar }) {