rpg-engine 0.15.0 → 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 (486) hide show
  1. package/dist/campaign/index.d.ts +1 -1
  2. package/dist/campaign/index.js +1 -1
  3. package/dist/campaign/settings.d.ts +6 -0
  4. package/dist/campaign/settings.js +22 -1
  5. package/dist/cli/cli.js +1 -1
  6. package/dist/cli/command-line.js +1 -1
  7. package/dist/commands/advance.d.ts +1 -1
  8. package/dist/commands/advance.js +6 -6
  9. package/dist/commands/ask.js +7 -7
  10. package/dist/commands/change/amounts.d.ts +32 -0
  11. package/dist/commands/change/amounts.js +150 -0
  12. package/dist/commands/change/change.d.ts +4 -54
  13. package/dist/commands/change/change.js +19 -749
  14. package/dist/commands/change/damage.d.ts +30 -0
  15. package/dist/commands/change/damage.js +73 -2
  16. package/dist/commands/change/dice.d.ts +34 -0
  17. package/dist/commands/change/dice.js +59 -0
  18. package/dist/commands/change/fields.d.ts +37 -0
  19. package/dist/commands/change/fields.js +156 -0
  20. package/dist/commands/change/holder.d.ts +48 -0
  21. package/dist/commands/change/holder.js +162 -0
  22. package/dist/commands/change/recipe-pace.js +1 -1
  23. package/dist/commands/change/recipe.d.ts +58 -0
  24. package/dist/commands/change/recipe.js +179 -0
  25. package/dist/commands/choices.js +3 -3
  26. package/dist/commands/config/config.d.ts +15 -0
  27. package/dist/commands/config/config.js +355 -0
  28. package/dist/commands/config/custom-levels.d.ts +7 -0
  29. package/dist/commands/config/custom-levels.js +32 -0
  30. package/dist/commands/{config.d.ts → config/dashboard.d.ts} +2 -24
  31. package/dist/commands/config/dashboard.js +171 -0
  32. package/dist/commands/config/entries.d.ts +17 -0
  33. package/dist/commands/config/entries.js +76 -0
  34. package/dist/commands/config/news.d.ts +7 -0
  35. package/dist/commands/config/news.js +88 -0
  36. package/dist/commands/config/shown.d.ts +9 -0
  37. package/dist/commands/config/shown.js +80 -0
  38. package/dist/commands/config/words.d.ts +27 -0
  39. package/dist/commands/config/words.js +204 -0
  40. package/dist/commands/effect.js +9 -9
  41. package/dist/commands/find.js +1 -1
  42. package/dist/commands/image.js +6 -6
  43. package/dist/commands/import/import.d.ts +0 -2
  44. package/dist/commands/import/import.js +45 -44
  45. package/dist/commands/import/run.js +1 -1
  46. package/dist/commands/index.js +3 -3
  47. package/dist/commands/init.js +2 -2
  48. package/dist/commands/install.js +1 -1
  49. package/dist/commands/instructions.js +6 -6
  50. package/dist/commands/mode.d.ts +2 -2
  51. package/dist/commands/mode.js +8 -8
  52. package/dist/commands/mood.js +4 -4
  53. package/dist/commands/move.js +10 -10
  54. package/dist/commands/package/consent.d.ts +11 -0
  55. package/dist/commands/package/consent.js +52 -0
  56. package/dist/commands/package/here.d.ts +51 -0
  57. package/dist/commands/package/here.js +128 -0
  58. package/dist/commands/package/install.d.ts +10 -0
  59. package/dist/commands/package/install.js +337 -0
  60. package/dist/commands/package/package.d.ts +18 -0
  61. package/dist/commands/package/package.js +236 -0
  62. package/dist/commands/package/result.d.ts +90 -0
  63. package/dist/commands/package/result.js +1 -0
  64. package/dist/commands/package/uninstall.d.ts +6 -0
  65. package/dist/commands/package/uninstall.js +70 -0
  66. package/dist/commands/rename.js +3 -3
  67. package/dist/commands/reveal.js +5 -5
  68. package/dist/commands/roll/roll.js +11 -9
  69. package/dist/commands/roll/tables.js +1 -1
  70. package/dist/commands/rules.d.ts +2 -2
  71. package/dist/commands/rules.js +3 -3
  72. package/dist/commands/save.d.ts +1 -1
  73. package/dist/commands/save.js +2 -2
  74. package/dist/commands/scene/close.d.ts +18 -0
  75. package/dist/commands/scene/close.js +179 -0
  76. package/dist/commands/scene/members.d.ts +14 -0
  77. package/dist/commands/scene/members.js +32 -0
  78. package/dist/commands/scene/open.d.ts +6 -0
  79. package/dist/commands/scene/open.js +298 -0
  80. package/dist/commands/scene/result.d.ts +98 -0
  81. package/dist/commands/scene/result.js +2 -0
  82. package/dist/commands/{scene.d.ts → scene/scene.d.ts} +10 -36
  83. package/dist/commands/scene/scene.js +210 -0
  84. package/dist/commands/scene/turns.d.ts +18 -0
  85. package/dist/commands/scene/turns.js +229 -0
  86. package/dist/commands/shared/{adventures.d.ts → books/adventures.d.ts} +5 -3
  87. package/dist/commands/shared/{adventures.js → books/adventures.js} +23 -19
  88. package/dist/commands/shared/{library-reader.js → books/library-reader.js} +3 -3
  89. package/dist/commands/shared/{library.d.ts → books/library.d.ts} +2 -2
  90. package/dist/commands/shared/{library.js → books/library.js} +9 -9
  91. package/dist/commands/shared/{rules.d.ts → books/rules.d.ts} +2 -2
  92. package/dist/commands/shared/{rules.js → books/rules.js} +5 -5
  93. package/dist/commands/shared/{system-texts.d.ts → books/system-texts.d.ts} +2 -2
  94. package/dist/commands/shared/{system-texts.js → books/system-texts.js} +9 -8
  95. package/dist/commands/shared/{page-words.d.ts → books/words.d.ts} +2 -2
  96. package/dist/commands/shared/{page-words.js → books/words.js} +4 -4
  97. package/dist/commands/shared/{checks.d.ts → campaign/checks.d.ts} +3 -3
  98. package/dist/commands/shared/{checks.js → campaign/checks.js} +7 -7
  99. package/dist/commands/shared/{images.d.ts → campaign/images.d.ts} +3 -3
  100. package/dist/commands/shared/{images.js → campaign/images.js} +5 -5
  101. package/dist/commands/shared/{mode.d.ts → campaign/mode.d.ts} +4 -4
  102. package/dist/commands/shared/{mode.js → campaign/mode.js} +24 -13
  103. package/dist/commands/shared/{money.d.ts → campaign/money.d.ts} +3 -3
  104. package/dist/commands/shared/{money.js → campaign/money.js} +2 -2
  105. package/dist/commands/shared/{offers.d.ts → campaign/offers.d.ts} +3 -3
  106. package/dist/commands/shared/{offers.js → campaign/offers.js} +3 -3
  107. package/dist/commands/shared/{outside.d.ts → campaign/outside.d.ts} +3 -3
  108. package/dist/commands/shared/{outside.js → campaign/outside.js} +7 -7
  109. package/dist/commands/shared/{parts.d.ts → campaign/parts.d.ts} +3 -3
  110. package/dist/commands/shared/{parts.js → campaign/parts.js} +3 -3
  111. package/dist/commands/shared/{problems.d.ts → campaign/problems.d.ts} +3 -3
  112. package/dist/commands/shared/{problems.js → campaign/problems.js} +17 -17
  113. package/dist/commands/shared/{quests.d.ts → campaign/quests.d.ts} +4 -4
  114. package/dist/commands/shared/{quests.js → campaign/quests.js} +6 -6
  115. package/dist/commands/shared/{saves.d.ts → campaign/saves.d.ts} +4 -4
  116. package/dist/commands/shared/{saves.js → campaign/saves.js} +10 -10
  117. package/dist/commands/shared/{theme.d.ts → campaign/theme.d.ts} +3 -3
  118. package/dist/commands/shared/{theme.js → campaign/theme.js} +1 -1
  119. package/dist/commands/shared/{world.d.ts → campaign/world.d.ts} +5 -5
  120. package/dist/commands/shared/{world.js → campaign/world.js} +17 -14
  121. package/dist/commands/shared/{knowledge.d.ts → characters/knowledge.d.ts} +3 -3
  122. package/dist/commands/shared/{knowledge.js → characters/knowledge.js} +4 -4
  123. package/dist/commands/shared/{moods.d.ts → characters/moods.d.ts} +3 -3
  124. package/dist/commands/shared/{moods.js → characters/moods.js} +3 -3
  125. package/dist/commands/shared/characters/orders.d.ts +4 -0
  126. package/dist/commands/shared/characters/orders.js +10 -0
  127. package/dist/commands/shared/{thoughts.d.ts → characters/thoughts.d.ts} +2 -2
  128. package/dist/commands/shared/{thoughts.js → characters/thoughts.js} +3 -3
  129. package/dist/commands/shared/{voices.d.ts → characters/voices.d.ts} +1 -1
  130. package/dist/commands/shared/{voices.js → characters/voices.js} +2 -2
  131. package/dist/commands/shared/examples.js +2 -2
  132. package/dist/commands/shared/packages/catalog.js +2 -2
  133. package/dist/commands/shared/packages/code.d.ts +1 -1
  134. package/dist/commands/shared/packages/code.js +8 -8
  135. package/dist/commands/shared/packages/extensions.d.ts +1 -1
  136. package/dist/commands/shared/packages/extensions.js +1 -1
  137. package/dist/commands/shared/packages/hooks.d.ts +1 -1
  138. package/dist/commands/shared/packages/hooks.js +1 -1
  139. package/dist/commands/shared/packages/widgets.d.ts +3 -3
  140. package/dist/commands/shared/packages/widgets.js +3 -3
  141. package/dist/commands/shared/{environment.d.ts → places/environment.d.ts} +1 -1
  142. package/dist/commands/shared/{environment.js → places/environment.js} +4 -4
  143. package/dist/commands/shared/{grid-moves.d.ts → places/grid-moves.d.ts} +4 -4
  144. package/dist/commands/shared/{grid-moves.js → places/grid-moves.js} +8 -7
  145. package/dist/commands/shared/{grids.d.ts → places/grids.d.ts} +4 -4
  146. package/dist/commands/shared/{grids.js → places/grids.js} +6 -6
  147. package/dist/commands/shared/{journey.d.ts → places/journey.d.ts} +3 -3
  148. package/dist/commands/shared/{journey.js → places/journey.js} +6 -6
  149. package/dist/commands/shared/{moves.d.ts → places/moves.d.ts} +2 -2
  150. package/dist/commands/shared/{moves.js → places/moves.js} +4 -4
  151. package/dist/commands/shared/{positions.d.ts → places/positions.d.ts} +2 -2
  152. package/dist/commands/shared/{positions.js → places/positions.js} +4 -4
  153. package/dist/commands/shared/{roads.d.ts → places/roads.d.ts} +5 -5
  154. package/dist/commands/shared/{roads.js → places/roads.js} +6 -6
  155. package/dist/commands/shared/{effects.d.ts → scene/effects.d.ts} +7 -7
  156. package/dist/commands/shared/{effects.js → scene/effects.js} +10 -10
  157. package/dist/commands/shared/{loot.d.ts → scene/loot.d.ts} +2 -2
  158. package/dist/commands/shared/{loot.js → scene/loot.js} +3 -3
  159. package/dist/commands/shared/{master-rolls.d.ts → scene/master-rolls.d.ts} +2 -2
  160. package/dist/commands/shared/{master-rolls.js → scene/master-rolls.js} +5 -5
  161. package/dist/commands/shared/{reminders.d.ts → scene/reminders.d.ts} +4 -4
  162. package/dist/commands/shared/{reminders.js → scene/reminders.js} +4 -4
  163. package/dist/commands/shared/{scene.d.ts → scene/scene.d.ts} +3 -3
  164. package/dist/commands/shared/{scene.js → scene/scene.js} +7 -7
  165. package/dist/commands/shared/{bonds.d.ts → sheet/bonds.d.ts} +3 -3
  166. package/dist/commands/shared/{bonds.js → sheet/bonds.js} +2 -2
  167. package/dist/commands/shared/{page-counters.d.ts → sheet/counters.d.ts} +3 -3
  168. package/dist/commands/shared/{page-counters.js → sheet/counters.js} +5 -5
  169. package/dist/commands/shared/{effect-layer.d.ts → sheet/effect-layer.d.ts} +2 -2
  170. package/dist/commands/shared/{effect-layer.js → sheet/effect-layer.js} +9 -6
  171. package/dist/commands/shared/sheet/effect-values.d.ts +9 -0
  172. package/dist/commands/shared/sheet/effect-values.js +69 -0
  173. package/dist/commands/shared/{experience.d.ts → sheet/experience.d.ts} +3 -3
  174. package/dist/commands/shared/{experience.js → sheet/experience.js} +5 -5
  175. package/dist/commands/shared/sheet/formula-problems.d.ts +8 -0
  176. package/dist/commands/shared/sheet/formula-problems.js +140 -0
  177. package/dist/commands/shared/sheet/formula-scope.d.ts +32 -0
  178. package/dist/commands/shared/sheet/formula-scope.js +235 -0
  179. package/dist/commands/shared/{limits.d.ts → sheet/limits.d.ts} +3 -3
  180. package/dist/commands/shared/{limits.js → sheet/limits.js} +5 -4
  181. package/dist/commands/shared/{progression.d.ts → sheet/progression.d.ts} +2 -2
  182. package/dist/commands/shared/{progression.js → sheet/progression.js} +4 -4
  183. package/dist/commands/shared/{sheet.d.ts → sheet/sheet.d.ts} +5 -5
  184. package/dist/commands/shared/{sheet.js → sheet/sheet.js} +11 -7
  185. package/dist/commands/shared/{stacks.d.ts → sheet/stacks.d.ts} +2 -2
  186. package/dist/commands/shared/{stacks.js → sheet/stacks.js} +4 -4
  187. package/dist/commands/shared/sheet/system-fields.d.ts +21 -0
  188. package/dist/commands/shared/sheet/system-fields.js +45 -0
  189. package/dist/commands/shared/{thresholds.d.ts → sheet/thresholds.d.ts} +1 -1
  190. package/dist/commands/shared/{thresholds.js → sheet/thresholds.js} +4 -4
  191. package/dist/commands/shared/{turn-uses.d.ts → sheet/turn-uses.d.ts} +3 -3
  192. package/dist/commands/shared/{turn-uses.js → sheet/turn-uses.js} +4 -3
  193. package/dist/commands/shared/{worked-out.d.ts → sheet/worked-out.d.ts} +11 -46
  194. package/dist/commands/shared/sheet/worked-out.js +291 -0
  195. package/dist/commands/shared/sheet/worked-text.d.ts +14 -0
  196. package/dist/commands/shared/sheet/worked-text.js +55 -0
  197. package/dist/commands/shared/{advance.d.ts → time/advance.d.ts} +3 -3
  198. package/dist/commands/shared/{advance.js → time/advance.js} +11 -11
  199. package/dist/commands/shared/{dice-pool.d.ts → time/dice-pool.d.ts} +3 -3
  200. package/dist/commands/shared/{dice-pool.js → time/dice-pool.js} +11 -11
  201. package/dist/commands/shared/{events.d.ts → time/events.d.ts} +5 -5
  202. package/dist/commands/shared/{events.js → time/events.js} +10 -13
  203. package/dist/commands/shared/{recipes.d.ts → time/recipes.d.ts} +3 -3
  204. package/dist/commands/shared/{recipes.js → time/recipes.js} +6 -5
  205. package/dist/commands/shared/{time.d.ts → time/time.d.ts} +4 -4
  206. package/dist/commands/shared/{time.js → time/time.js} +6 -6
  207. package/dist/commands/shared/{upkeep.d.ts → time/upkeep.d.ts} +3 -3
  208. package/dist/commands/shared/{upkeep.js → time/upkeep.js} +14 -13
  209. package/dist/commands/show.d.ts +3 -0
  210. package/dist/commands/show.js +28 -9
  211. package/dist/commands/status.d.ts +2 -1
  212. package/dist/commands/status.js +28 -22
  213. package/dist/commands/thoughts.js +3 -3
  214. package/dist/commands/trade.js +8 -8
  215. package/dist/commands/translate.d.ts +1 -1
  216. package/dist/commands/translate.js +3 -3
  217. package/dist/commands/travel/open.d.ts +1 -1
  218. package/dist/commands/travel/open.js +2 -2
  219. package/dist/commands/travel/route.js +7 -6
  220. package/dist/commands/travel/travel.d.ts +1 -1
  221. package/dist/commands/travel/travel.js +8 -8
  222. package/dist/commands/validate.js +3 -3
  223. package/dist/commands/view/journal.d.ts +2 -2
  224. package/dist/commands/view/journal.js +2 -2
  225. package/dist/commands/view/map.d.ts +1 -1
  226. package/dist/commands/view/map.js +6 -6
  227. package/dist/commands/view/memory.d.ts +16 -0
  228. package/dist/commands/view/memory.js +90 -0
  229. package/dist/commands/view/page.d.ts +32 -0
  230. package/dist/commands/view/page.js +163 -0
  231. package/dist/commands/view/place.d.ts +7 -2
  232. package/dist/commands/view/place.js +30 -12
  233. package/dist/commands/view/result.d.ts +245 -0
  234. package/dist/commands/view/result.js +1 -0
  235. package/dist/commands/view/saves.d.ts +6 -0
  236. package/dist/commands/view/saves.js +53 -0
  237. package/dist/commands/view/story.d.ts +32 -0
  238. package/dist/commands/view/story.js +227 -0
  239. package/dist/commands/view/view.d.ts +26 -292
  240. package/dist/commands/view/view.js +26 -534
  241. package/dist/commands/view/world.d.ts +1 -1
  242. package/dist/commands/view/world.js +3 -3
  243. package/dist/commands/write/checks.d.ts +42 -0
  244. package/dist/commands/write/checks.js +291 -0
  245. package/dist/commands/write/here.d.ts +1 -1
  246. package/dist/commands/write/here.js +5 -5
  247. package/dist/commands/write/inheritance.d.ts +40 -0
  248. package/dist/commands/write/inheritance.js +189 -0
  249. package/dist/commands/write/input.d.ts +29 -0
  250. package/dist/commands/write/input.js +124 -0
  251. package/dist/commands/write/layer.d.ts +36 -0
  252. package/dist/commands/write/layer.js +48 -0
  253. package/dist/commands/write/notes.d.ts +22 -0
  254. package/dist/commands/write/notes.js +76 -0
  255. package/dist/commands/write/progression.d.ts +27 -0
  256. package/dist/commands/write/progression.js +175 -0
  257. package/dist/commands/write/write.d.ts +1 -0
  258. package/dist/commands/write/write.js +32 -816
  259. package/dist/core/files.d.ts +2 -0
  260. package/dist/core/files.js +7 -0
  261. package/dist/core/{package-declarations.d.ts → packages/declarations.d.ts} +1 -1
  262. package/dist/core/{package-declarations.js → packages/declarations.js} +1 -1
  263. package/dist/core/session-store.js +3 -3
  264. package/dist/core/store.d.ts +2 -2
  265. package/dist/core/store.js +18 -4
  266. package/dist/dashboard/acts/acts.js +1 -1
  267. package/dist/dashboard/acts/sending.js +110 -0
  268. package/dist/dashboard/acts/sheet.js +2 -2
  269. package/dist/dashboard/acts/strip.js +1 -1
  270. package/dist/dashboard/address.js +6 -0
  271. package/dist/dashboard/api.js +1 -1
  272. package/dist/dashboard/app.js +47 -171
  273. package/dist/dashboard/dice/roller.js +1 -1
  274. package/dist/dashboard/dice/sets.js +2 -2
  275. package/dist/dashboard/dice/stage.js +1 -1
  276. package/dist/dashboard/dice/tray.js +6 -6
  277. package/dist/dashboard/guide/ar.md +5 -3
  278. package/dist/dashboard/guide/cs.md +5 -3
  279. package/dist/dashboard/guide/da.md +5 -3
  280. package/dist/dashboard/guide/de.md +5 -3
  281. package/dist/dashboard/guide/el.md +5 -3
  282. package/dist/dashboard/guide/en.md +2 -0
  283. package/dist/dashboard/guide/es.md +4 -2
  284. package/dist/dashboard/guide/fi.md +5 -3
  285. package/dist/dashboard/guide/fr.md +4 -2
  286. package/dist/dashboard/guide/he.md +4 -2
  287. package/dist/dashboard/guide/hi.md +6 -4
  288. package/dist/dashboard/guide/hu.md +4 -2
  289. package/dist/dashboard/guide/is.md +5 -3
  290. package/dist/dashboard/guide/it.md +3 -1
  291. package/dist/dashboard/guide/ja.md +7 -5
  292. package/dist/dashboard/guide/ko.md +6 -4
  293. package/dist/dashboard/guide/nb.md +4 -2
  294. package/dist/dashboard/guide/nl.md +5 -3
  295. package/dist/dashboard/guide/pl.md +4 -2
  296. package/dist/dashboard/guide/pt.md +4 -2
  297. package/dist/dashboard/guide/ro.md +5 -3
  298. package/dist/dashboard/guide/ru.md +5 -3
  299. package/dist/dashboard/guide/sv.md +5 -3
  300. package/dist/dashboard/guide/tr.md +6 -4
  301. package/dist/dashboard/guide/uk.md +4 -2
  302. package/dist/dashboard/guide/zh.md +5 -3
  303. package/dist/dashboard/help/help.js +3 -3
  304. package/dist/dashboard/i18n/ar.json +4 -0
  305. package/dist/dashboard/i18n/cs.json +4 -0
  306. package/dist/dashboard/i18n/da.json +4 -0
  307. package/dist/dashboard/i18n/de.json +4 -0
  308. package/dist/dashboard/i18n/el.json +4 -0
  309. package/dist/dashboard/i18n/es.json +4 -0
  310. package/dist/dashboard/i18n/fi.json +4 -0
  311. package/dist/dashboard/i18n/fr.json +4 -0
  312. package/dist/dashboard/i18n/he.json +4 -0
  313. package/dist/dashboard/i18n/hi.json +4 -0
  314. package/dist/dashboard/i18n/hu.json +4 -0
  315. package/dist/dashboard/i18n/is.json +4 -0
  316. package/dist/dashboard/i18n/it.json +4 -0
  317. package/dist/dashboard/i18n/ja.json +5 -1
  318. package/dist/dashboard/i18n/ko.json +4 -0
  319. package/dist/dashboard/i18n/nb.json +4 -0
  320. package/dist/dashboard/i18n/nl.json +4 -0
  321. package/dist/dashboard/i18n/pl.json +4 -0
  322. package/dist/dashboard/i18n/pt.json +4 -0
  323. package/dist/dashboard/i18n/ro.json +4 -0
  324. package/dist/dashboard/i18n/ru.json +4 -0
  325. package/dist/dashboard/i18n/sv.json +4 -0
  326. package/dist/dashboard/i18n/tr.json +4 -0
  327. package/dist/dashboard/i18n/uk.json +4 -0
  328. package/dist/dashboard/i18n/zh.json +4 -0
  329. package/dist/dashboard/{journal.js → journal/journal.js} +16 -16
  330. package/dist/dashboard/{notes.js → journal/notes.js} +4 -4
  331. package/dist/dashboard/kit.js +3 -3
  332. package/dist/dashboard/packages/ask-card.js +3 -3
  333. package/dist/dashboard/packages/catalog.js +196 -0
  334. package/dist/dashboard/packages/engine.js +87 -0
  335. package/dist/dashboard/packages/installed.js +53 -0
  336. package/dist/dashboard/packages/library.js +97 -0
  337. package/dist/dashboard/packages/outcomes.js +45 -0
  338. package/dist/dashboard/packages/packages.js +20 -576
  339. package/dist/dashboard/packages/page-code.js +15 -2
  340. package/dist/dashboard/packages/{package-page.js → page.js} +12 -5
  341. package/dist/dashboard/packages/rows.js +84 -0
  342. package/dist/dashboard/packages/share.js +44 -0
  343. package/dist/dashboard/packages/widgets.js +3 -3
  344. package/dist/dashboard/{card.js → parts/card.js} +1 -1
  345. package/dist/dashboard/{faces.js → parts/faces.js} +5 -5
  346. package/dist/dashboard/{game-words.js → parts/game-words.js} +1 -1
  347. package/dist/dashboard/{icons.js → parts/icons.js} +1 -1
  348. package/dist/dashboard/{labels.js → parts/labels.js} +2 -1
  349. package/dist/dashboard/{map-symbols.js → parts/map-symbols.js} +1 -1
  350. package/dist/dashboard/{markdown.js → parts/markdown.js} +2 -2
  351. package/dist/dashboard/{mood.js → parts/mood.js} +1 -1
  352. package/dist/dashboard/{refusals.js → parts/refusals.js} +1 -1
  353. package/dist/dashboard/{status.js → parts/status.js} +4 -4
  354. package/dist/dashboard/{widgets.js → parts/widgets.js} +2 -2
  355. package/dist/dashboard/place/key.js +24 -0
  356. package/dist/dashboard/place/paper.js +67 -0
  357. package/dist/dashboard/place/{map-sheet.js → sheet.js} +2 -2
  358. package/dist/dashboard/place/things.js +129 -0
  359. package/dist/dashboard/place/tokens.js +93 -0
  360. package/dist/dashboard/place/view.js +124 -0
  361. package/dist/dashboard/{asked-dice.js → play/asked-dice.js} +3 -3
  362. package/dist/dashboard/{asked.js → play/asked.js} +10 -10
  363. package/dist/dashboard/{choices.js → play/choices.js} +9 -9
  364. package/dist/dashboard/{requested.js → play/requested.js} +1 -1
  365. package/dist/dashboard/{rolls.js → play/rolls.js} +9 -9
  366. package/dist/dashboard/{scene.js → play/scene.js} +14 -14
  367. package/dist/dashboard/{turns.js → play/turns.js} +12 -12
  368. package/dist/dashboard/{language-choice.js → settings/language-choice.js} +1 -1
  369. package/dist/dashboard/{languages.js → settings/languages.js} +1 -1
  370. package/dist/dashboard/{saves.js → settings/saves.js} +8 -8
  371. package/dist/dashboard/{settings.js → settings/settings.js} +17 -15
  372. package/dist/dashboard/{setup.js → settings/setup.js} +5 -5
  373. package/dist/dashboard/{party.js → sheet/party.js} +8 -8
  374. package/dist/dashboard/{person-panel.js → sheet/person-panel.js} +4 -4
  375. package/dist/dashboard/{sheet.js → sheet/sheet.js} +17 -17
  376. package/dist/dashboard/{story.js → sheet/story.js} +3 -3
  377. package/dist/dashboard/{columns.js → shell/columns.js} +1 -1
  378. package/dist/dashboard/{footer.js → shell/footer.js} +3 -3
  379. package/dist/dashboard/{master.js → shell/master.js} +2 -2
  380. package/dist/dashboard/{notices.js → shell/notices.js} +3 -3
  381. package/dist/dashboard/{pages.js → shell/pages.js} +5 -5
  382. package/dist/dashboard/shell/shown.js +37 -0
  383. package/dist/dashboard/{table.js → shell/table.js} +2 -2
  384. package/dist/dashboard/{tabs.js → shell/tabs.js} +2 -2
  385. package/dist/dashboard/{top.js → shell/top.js} +7 -7
  386. package/dist/dashboard/style.css +74 -3
  387. package/dist/dashboard/world/calendar.js +4 -4
  388. package/dist/dashboard/world/drawing.js +92 -0
  389. package/dist/dashboard/world/key.js +21 -0
  390. package/dist/dashboard/world/lore.js +5 -5
  391. package/dist/dashboard/world/map-card.js +186 -0
  392. package/dist/dashboard/world/place-card.js +39 -0
  393. package/dist/dashboard/world/places.js +29 -0
  394. package/dist/dashboard/world/world.js +9 -341
  395. package/dist/extensions/extension.d.ts +1 -1
  396. package/dist/extensions/extension.js +1 -1
  397. package/dist/images/images.js +12 -9
  398. package/dist/index.d.ts +1 -1
  399. package/dist/languages/index.d.ts +1 -1
  400. package/dist/languages/index.js +1 -1
  401. package/dist/packages/npm.js +1 -1
  402. package/dist/page.d.ts +2 -2
  403. package/dist/page.js +1 -1
  404. package/dist/pages/check.js +23 -1
  405. package/dist/pages/containers.d.ts +1 -1
  406. package/dist/pages/containers.js +1 -1
  407. package/dist/pages/index.d.ts +4 -2
  408. package/dist/pages/index.js +4 -2
  409. package/dist/pages/inheritance.d.ts +2 -2
  410. package/dist/pages/layers.d.ts +50 -0
  411. package/dist/pages/layers.js +97 -0
  412. package/dist/pages/rename-page.js +1 -1
  413. package/dist/pages/stacks/writes.js +48 -22
  414. package/dist/pages/standard-fields.d.ts +1 -1
  415. package/dist/pages/system-pages.d.ts +5 -3
  416. package/dist/pages/system-pages.js +16 -7
  417. package/dist/pages/world.d.ts +8 -1
  418. package/dist/pages/world.js +16 -4
  419. package/dist/pages/write-layer.d.ts +18 -0
  420. package/dist/pages/write-layer.js +108 -0
  421. package/dist/pages/write-page.d.ts +2 -2
  422. package/dist/pages/write-page.js +2 -2
  423. package/dist/rules/index.d.ts +1 -1
  424. package/dist/rules/index.js +1 -1
  425. package/dist/rules/search.d.ts +1 -1
  426. package/dist/rules/shown.d.ts +1 -1
  427. package/dist/server/dashboard/choices.js +3 -3
  428. package/dist/server/dashboard/files.js +5 -5
  429. package/dist/server/dashboard/index.d.ts +2 -2
  430. package/dist/server/dashboard/index.js +2 -2
  431. package/dist/server/dashboard/news.js +4 -3
  432. package/dist/server/dashboard/player.js +1 -1
  433. package/dist/server/dashboard/writes.js +9 -7
  434. package/dist/server/mcp.js +28 -13
  435. package/dist/systems/campaign-data.d.ts +15 -0
  436. package/dist/systems/campaign-data.js +85 -0
  437. package/dist/systems/{system-code.d.ts → code.d.ts} +1 -1
  438. package/dist/systems/{system-code.js → code.js} +2 -2
  439. package/dist/systems/game-system.d.ts +7 -61
  440. package/dist/systems/game-system.js +1 -984
  441. package/dist/systems/index.d.ts +6 -3
  442. package/dist/systems/index.js +6 -3
  443. package/dist/systems/installed.d.ts +31 -0
  444. package/dist/systems/installed.js +89 -0
  445. package/dist/systems/maps.d.ts +3 -0
  446. package/dist/systems/maps.js +9 -0
  447. package/dist/systems/read.d.ts +3 -0
  448. package/dist/systems/read.js +471 -0
  449. package/dist/systems/schema.d.ts +289 -0
  450. package/dist/systems/schema.js +243 -0
  451. package/dist/systems/settings.d.ts +19 -0
  452. package/dist/systems/settings.js +78 -0
  453. package/dist/systems/versions.d.ts +12 -0
  454. package/dist/systems/versions.js +52 -0
  455. package/dist/testing/index.js +1 -1
  456. package/instructions/import.md +1 -1
  457. package/instructions/play.md +1 -1
  458. package/package.json +1 -1
  459. package/dist/commands/config.js +0 -948
  460. package/dist/commands/package.d.ts +0 -143
  461. package/dist/commands/package.js +0 -785
  462. package/dist/commands/scene.js +0 -894
  463. package/dist/commands/shared/worked-out.js +0 -805
  464. package/dist/dashboard/place/map-view.js +0 -417
  465. /package/dist/commands/shared/{library-reader.d.ts → books/library-reader.d.ts} +0 -0
  466. /package/dist/core/{package-api.d.ts → packages/api.d.ts} +0 -0
  467. /package/dist/core/{package-api.js → packages/api.js} +0 -0
  468. /package/dist/dashboard/{coins.js → parts/coins.js} +0 -0
  469. /package/dist/dashboard/{glass.js → parts/glass.js} +0 -0
  470. /package/dist/dashboard/{layout.js → parts/layout.js} +0 -0
  471. /package/dist/dashboard/{mood-faces.js → parts/mood-faces.js} +0 -0
  472. /package/dist/dashboard/{free-rolls.js → play/free-rolls.js} +0 -0
  473. /package/dist/dashboard/{reactions.js → play/reactions.js} +0 -0
  474. /package/dist/dashboard/{prefs.js → shell/prefs.js} +0 -0
  475. /package/dist/dashboard/{system-style.js → shell/system-style.js} +0 -0
  476. /package/dist/dashboard/{theme.js → shell/theme.js} +0 -0
  477. /package/dist/languages/{language-pack.d.ts → pack.d.ts} +0 -0
  478. /package/dist/languages/{language-pack.js → pack.js} +0 -0
  479. /package/dist/pages/{page-file.d.ts → file.d.ts} +0 -0
  480. /package/dist/pages/{page-file.js → file.js} +0 -0
  481. /package/dist/pages/{page-types.d.ts → types.d.ts} +0 -0
  482. /package/dist/pages/{page-types.js → types.js} +0 -0
  483. /package/dist/rules/{rule-book.d.ts → book.d.ts} +0 -0
  484. /package/dist/rules/{rule-book.js → book.js} +0 -0
  485. /package/dist/systems/{system-folders.d.ts → folders.d.ts} +0 -0
  486. /package/dist/systems/{system-folders.js → folders.js} +0 -0
@@ -14,9 +14,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
14
14
  import { Component, createContext, render } from "preact";
15
15
  import { useContext, useEffect, useLayoutEffect, useRef, useState } from "preact/hooks";
16
16
  import { readWidgetData, runCommand } from "../api.js";
17
- import { fieldLabel } from "../labels.js";
17
+ import { fieldLabel } from "../parts/labels.js";
18
+ import { shownTheme } from "../shell/theme.js";
18
19
  import { isolated, numberText, pageDirection, pageLocale } from "../text.js";
19
- import { shownTheme } from "../theme.js";
20
20
  import { PeopleContext } from "./people.js";
21
21
  /** The pages of the dashboard a package's card stands in (D-511), after their own cards: as src/page.ts declares them to the packages. */
22
22
  export const cardPages = ["scene", "sheet", "world", "journal"];
@@ -88,6 +88,19 @@ export function cardsIn(loaded, page) {
88
88
  export function ownPageIn(loaded, page) {
89
89
  return loaded instanceof Error ? loaded : loaded?.pages?.[page];
90
90
  }
91
+ /**
92
+ * Whether an address of a package's page names one no package has: no package or page in it, a package the modules read have not, or its module come
93
+ * without that page. Never while the modules are not read or its module comes; a module that broke has its page, which says why.
94
+ */
95
+ export function ownPageMissing(page, modulesRead, module, loaded) {
96
+ if (page === undefined) {
97
+ return true;
98
+ }
99
+ if (module === undefined) {
100
+ return modulesRead;
101
+ }
102
+ return loaded !== undefined && ownPageIn(loaded, page) === undefined;
103
+ }
91
104
  /** Starts loading these page modules, so that a card of a roll finds its own there when it comes. */
92
105
  export function preloadModules(owners) {
93
106
  for (const owner of owners) {
@@ -3,8 +3,8 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "preact/jsx-ru
3
3
  // links to them in the package's row of Packages, by their titles.
4
4
  import { useContext, useEffect, useRef } from "preact/hooks";
5
5
  import { sectionAddress } from "../address.js";
6
- import { Icon } from "../icons.js";
7
- import { codeOfModule, ExtensionRoot, ModulesContext, ownPageIn, pagePropsOf, usePageModule, useWidgetData } from "./page-code.js";
6
+ import { Icon } from "../parts/icons.js";
7
+ import { codeOfModule, ExtensionRoot, ModulesContext, ownPageIn, ownPageMissing, pagePropsOf, usePageModule, useWidgetData } from "./page-code.js";
8
8
  import { Drawn, WidgetsContext } from "./widgets.js";
9
9
  // Whether the player moved in the page since it loaded: a package's page opened then takes the focus to its title.
10
10
  let moved = false;
@@ -14,10 +14,10 @@ if (typeof window !== "undefined") {
14
14
  }, { once: true });
15
15
  }
16
16
  /**
17
- * A package's page by its package and name, once its module came; the focus on its title as it opens. Nothing while its module comes or has no such page;
18
- * a module that did not load says so in the page, with its error and whose it is.
17
+ * A package's page by its package and name, once its module came; the focus on its title as it opens. Nothing while its module comes; a module that did not
18
+ * load says so in the page, with its error and whose it is. An address of a page no package has, once the modules are read, opens Packages in its place.
19
19
  */
20
- export function PackagePage({ name, page }) {
20
+ export function PackagePage({ name, page, modulesRead }) {
21
21
  const module = useContext(ModulesContext).find((one) => one.package === name);
22
22
  const owner = module === undefined ? undefined : codeOfModule(module);
23
23
  const loaded = usePageModule(owner);
@@ -25,6 +25,13 @@ export function PackagePage({ name, page }) {
25
25
  const found = page === undefined ? undefined : ownPageIn(loaded, page);
26
26
  const own = found instanceof Error ? undefined : found;
27
27
  const data = useWidgetData(module?.package ?? "", own?.widget, undefined, useContext(WidgetsContext));
28
+ const missing = ownPageMissing(page, modulesRead, module, loaded);
29
+ // In place of the address, so that Back never returns to it.
30
+ useEffect(() => {
31
+ if (missing) {
32
+ window.location.replace(sectionAddress("packages"));
33
+ }
34
+ }, [missing]);
28
35
  // Opened from the page, as by a tab or a menu, the focus goes to its title; loaded by its address, the focus stays at the page's start, as any page's,
29
36
  // and its title has no ring.
30
37
  useEffect(() => {
@@ -0,0 +1,84 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "preact/jsx-runtime";
2
+ import { useEffect, useRef } from "preact/hooks";
3
+ import { Icon } from "../parts/icons.js";
4
+ import { Command } from "../settings/settings.js";
5
+ import { pageLocale, t } from "../text.js";
6
+ /** A row of the page: the tile, the words, what can be done at the end; under them, the work going on and what happened. */
7
+ export function PackageRow({ tile, tone, name, badges, about, meta, needs, actions, focusable, row, fresh, children }) {
8
+ return (_jsxs("li", { class: fresh ? "package-row fresh" : "package-row", ...(focusable || fresh ? { tabIndex: -1 } : {}), ...(row === undefined ? {} : { "data-row": row }), children: [_jsx("span", { class: tone === undefined ? "package-tile" : `package-tile ${tone}`, "aria-hidden": "true", children: _jsx(Icon, { name: tile }) }), _jsxs("span", { class: "package-text", children: [_jsxs("span", { class: "package-name", children: [_jsx("strong", { class: "package-title", children: name }), badges] }), about !== undefined && about !== "" && _jsx("span", { class: "package-about", children: typeof about === "string" ? _jsx("bdi", { children: about }) : about }), meta !== undefined && meta !== false && _jsx("span", { class: "package-meta", children: meta }), needs] }), actions !== undefined && _jsx("span", { class: "package-actions", children: actions }), children] }));
9
+ }
10
+ /** Whose a package is: ours, a shield with its tick; someone else's with code, in red with the shield's mark and the word, never the colour alone. */
11
+ export function Trust({ verified, code, author }) {
12
+ if (verified) {
13
+ return (_jsxs("span", { class: "package-trust", children: [_jsx(Icon, { name: "verified" }), t("Verified")] }));
14
+ }
15
+ // Someone else's without code is only text and pictures: who wrote it is said with its facts.
16
+ if (!code && author !== undefined) {
17
+ return null;
18
+ }
19
+ return (_jsxs("span", { class: code ? "package-trust risky" : "package-trust", children: [_jsx(Icon, { name: "unverified" }), author === undefined ? t("Someone else's") : t("Someone else's · {author}", { author })] }));
20
+ }
21
+ /** A version here, and npm's newer one. */
22
+ export function VersionMeta({ version, newer }) {
23
+ return (_jsxs(_Fragment, { children: [version, version !== undefined && newer !== undefined && " · ", newer !== undefined && (_jsxs("span", { class: "package-update", children: [_jsx(Icon, { name: "update" }), t("new {version}", { version: newer })] }))] }));
24
+ }
25
+ /** Where the package's problems are reported, as its package.json says: after what its meta says before it, on a line of its own on a phone; nothing when it says nowhere. */
26
+ export function ReportLink({ issues, name, after }) {
27
+ if (issues === undefined) {
28
+ return null;
29
+ }
30
+ return (_jsxs(_Fragment, { children: [after && _jsx("span", { class: "package-report-gap", children: " · " }), _jsx("a", { class: "package-report", href: issues, target: "_blank", rel: "noreferrer", "aria-label": t("Report a problem with {name}", { name }), children: t("Report a problem") })] }));
31
+ }
32
+ /** Update, for a row npm has a newer version of. */
33
+ export function UpdateButton({ id, name, version, busy, onClick }) {
34
+ return (_jsxs("button", { type: "button", id: id, class: "button package-button accent", "aria-label": t("Update {name} to {version}", { name, version }), "aria-disabled": busy, onClick: () => !busy && onClick(), children: [_jsx(Icon, { name: "update" }), t("Update")] }));
35
+ }
36
+ /** The bin that takes a package off this computer, after asking. */
37
+ export function UninstallButton({ name, busy, onClick }) {
38
+ return (_jsx("button", { type: "button", class: "icon-button package-bin tip-left", "aria-label": t("Uninstall {name} from this computer…", { name }), "data-tip": t("Uninstall from this computer…"), "aria-disabled": busy, onClick: () => !busy && onClick(), children: _jsx(Icon, { name: "clear" }) }));
39
+ }
40
+ /** The work under way here: a bar and what is done, or the window where the player's yes is asked, which may hide behind the browser (D-478). */
41
+ export function WorkNote({ work, whose }) {
42
+ if (work === undefined) {
43
+ return null;
44
+ }
45
+ // Said in the tab other than its row's: with whose work it is.
46
+ const named = whose === undefined ? null : _jsx("span", { class: "package-whose", children: whose });
47
+ if (work.phase === "yes") {
48
+ return (_jsxs("div", { class: "package-window", role: "status", children: [_jsx(Icon, { name: "window" }), _jsxs("span", { children: [named, _jsx("strong", { children: t("Answer in the window of your computer.") }), " ", work.action === "library"
49
+ ? t("It asks whether RPG Engine may read the documents of that folder. Can't see it? It is behind the browser.")
50
+ : t("It asks whether code that RPG Engine did not publish may run here. Can't see it? It is behind the browser.")] })] }));
51
+ }
52
+ return (_jsxs("div", { class: "package-progress", role: "status", children: [_jsx("span", { class: "package-bar", "aria-hidden": "true" }), _jsxs("span", { children: [named, _jsx("strong", { children: workingText(work.action) }), " ", t("You can go to another page: it goes on by itself.")] })] }));
53
+ }
54
+ /** What happened, where it happened: the page's words, the engine's under them, and the terminal's command when no window opens here. */
55
+ export function SaidNote({ said, focus, onSee }) {
56
+ const note = useRef(null);
57
+ useEffect(() => {
58
+ if (focus && said !== undefined) {
59
+ note.current?.focus({ preventScroll: true });
60
+ note.current?.scrollIntoView({ block: "nearest" });
61
+ }
62
+ }, [said, focus]);
63
+ return said === undefined ? null : (_jsxs("div", { ref: note, class: said.problem ? "package-said problem" : "package-said", role: "status", ...(focus ? { tabIndex: -1 } : {}), children: [_jsx("p", { children: said.text }), said.why !== undefined && (_jsx("p", { class: "package-why", children: _jsx("bdi", { children: said.why }) })), said.command !== undefined && _jsx(Command, { text: said.command }), said.added !== undefined && onSee !== undefined && (_jsxs("button", { type: "button", class: "package-see", onClick: () => said.added !== undefined && onSee(said.added), children: [t("See it in Installed"), _jsx(Icon, { name: "fold" })] }))] }));
64
+ }
65
+ /** What happened to a row that went from its card: said at the card's foot, with the focus, which the row's button had. */
66
+ export function CardSaid({ said, at }) {
67
+ return said?.at === at ? _jsx(SaidNote, { said: said, focus: true }) : null;
68
+ }
69
+ /** The language this page is written in. */
70
+ export function pageLanguage() {
71
+ return pageLocale();
72
+ }
73
+ /** What the server is doing, in words. */
74
+ function workingText(action) {
75
+ const texts = {
76
+ add: t("Adding…"),
77
+ update: t("Updating…"),
78
+ remove: t("Taking it out of the campaign…"),
79
+ uninstall: t("Uninstalling…"),
80
+ library: t("Changing the library…"),
81
+ engine: t("Updating RPG Engine…"),
82
+ };
83
+ return texts[action];
84
+ }
@@ -0,0 +1,44 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
2
+ // The campaign shared as an adventure, from the Adventures card: who wrote it, its licence, and the link to download it.
3
+ import { useEffect, useRef, useState } from "preact/hooks";
4
+ import { exportCampaign } from "../api.js";
5
+ import { Icon } from "../parts/icons.js";
6
+ import { t } from "../text.js";
7
+ /**
8
+ * The campaign shared as an adventure (D-483), the last row of Adventures (D-486): Export… opens who wrote it and its licence, each optional, and whose it is
9
+ * to share; then the link to download it.
10
+ */
11
+ export function ShareCampaign() {
12
+ const [open, setOpen] = useState(false);
13
+ const [author, setAuthor] = useState("");
14
+ const [license, setLicense] = useState("");
15
+ const [exporting, setExporting] = useState(false);
16
+ const [made, setMade] = useState();
17
+ const ready = useRef(null);
18
+ const first = useRef(null);
19
+ useEffect(() => {
20
+ if (made !== undefined && "download" in made) {
21
+ ready.current?.focus();
22
+ }
23
+ }, [made]);
24
+ // The button stays where the focus is while the export goes: a second press waits for the first.
25
+ const share = async () => {
26
+ if (exporting) {
27
+ return;
28
+ }
29
+ setExporting(true);
30
+ setMade(undefined);
31
+ const credits = { ...(author.trim() === "" ? {} : { author: author.trim() }), ...(license.trim() === "" ? {} : { license: license.trim() }) };
32
+ setMade(await exportCampaign(credits));
33
+ setExporting(false);
34
+ };
35
+ return (_jsxs("div", { class: "package-export", children: [_jsx("span", { class: "package-tile plain", "aria-hidden": "true", children: _jsx(Icon, { name: "share" }) }), _jsxs("span", { class: "package-text", children: [_jsx("strong", { class: "package-title", id: "package-export-title", children: t("This campaign, as an adventure") }), _jsx("span", { class: "package-about", children: t("The world as it was at the start, without the player characters: a .zip to give to others.") })] }), _jsx("span", { class: "package-actions", children: _jsxs("button", { type: "button", class: "button package-button", "aria-expanded": open, "aria-controls": "package-credits", onClick: () => {
36
+ setOpen(!open);
37
+ if (!open) {
38
+ requestAnimationFrame(() => first.current?.focus());
39
+ }
40
+ }, children: [_jsx(Icon, { name: "share" }), t("Export…")] }) }), open && (_jsxs("form", { class: "package-credits", id: "package-credits", "aria-labelledby": "package-export-title", onSubmit: (event) => {
41
+ event.preventDefault();
42
+ void share();
43
+ }, children: [_jsxs("label", { children: [_jsx("span", { children: t("Author") }), _jsx("input", { ref: first, type: "text", value: author, maxLength: 200, placeholder: t("Optional"), autocomplete: "name", onInput: (event) => setAuthor(event.currentTarget.value) })] }), _jsxs("label", { children: [_jsx("span", { children: t("Licence") }), _jsx("input", { type: "text", value: license, maxLength: 200, list: "package-licences", placeholder: t("Optional"), "aria-describedby": "package-license-about", onInput: (event) => setLicense(event.currentTarget.value) })] }), _jsxs("datalist", { id: "package-licences", children: [_jsx("option", { value: "CC BY 4.0" }), _jsx("option", { value: "CC BY-SA 4.0" }), _jsx("option", { value: "CC0 1.0" })] }), _jsx("p", { class: "package-why", id: "package-license-about", children: t("Without a licence, all rights are reserved.") }), _jsxs("p", { class: "package-rights", children: [_jsx(Icon, { name: "licence" }), t("Share it only if you have the right to: a world taken from a book or from someone else's adventure is not yours to give.")] }), _jsxs("button", { type: "submit", class: "button package-button", "aria-disabled": exporting, children: [_jsx(Icon, { name: "share" }), exporting ? t("Exporting…") : t("Export")] }), made !== undefined && "download" in made && (_jsxs("p", { class: "package-said package-ready", role: "status", children: [_jsx("span", { children: `✓ ${t("{file} is ready.", { file: made.file })}` }), _jsxs("a", { ref: ready, class: "button gold package-button", href: made.download, download: made.file, children: [_jsx(Icon, { name: "download" }), t("Download")] })] })), made !== undefined && "error" in made && _jsx("p", { class: "package-said problem", role: "status", children: made.error })] }))] }));
44
+ }
@@ -4,9 +4,9 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "preact/jsx-ru
4
4
  import { createContext } from "preact";
5
5
  import { useContext, useEffect, useRef } from "preact/hooks";
6
6
  import { sectionAddress } from "../address.js";
7
- import { CardHead } from "../card.js";
8
- import { iconPath } from "../icons.js";
9
- import { sideOf, Token } from "../party.js";
7
+ import { CardHead } from "../parts/card.js";
8
+ import { iconPath } from "../parts/icons.js";
9
+ import { sideOf, Token } from "../sheet/party.js";
10
10
  import { isolated, numberText, pageDirection, pageLocale, t } from "../text.js";
11
11
  import { cardsIn, codeOfModule, ExtensionRoot, figureSize, ModulesContext, pagePropsOf, usePageModule, useWidgetData } from "./page-code.js";
12
12
  import { PeopleContext } from "./people.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
2
2
  import { useEffect, useState } from "preact/hooks";
3
- import { t } from "./text.js";
3
+ import { t } from "../text.js";
4
4
  // Up to this width the cards start closed.
5
5
  const narrow = "(max-width: 600px)";
6
6
  // The chevron: down while the card is closed, turned up once it is open.
@@ -3,13 +3,13 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "preact/jsx-ru
3
3
  // added, a dF as −, 0 or +, a rare face in its colour; then the number added. The plate shows them large, the rolls small. The coins of a toss as the coin
4
4
  // shows them, in the design, the metal or the dice's material the player chose, or the master's dice's (D-524 (1), D-526).
5
5
  import { useId } from "preact/hooks";
6
- import { coinPictures } from "./dice/coin-pictures.js";
7
- import { rareFace } from "./dice/models.js";
8
- import { coinDesignPref, coinLook, texturePath } from "./dice/sets.js";
6
+ import { coinPictures } from "../dice/coin-pictures.js";
7
+ import { rareFace } from "../dice/models.js";
8
+ import { coinDesignPref, coinLook, texturePath } from "../dice/sets.js";
9
+ import { readChoice } from "../shell/prefs.js";
10
+ import { t } from "../text.js";
9
11
  import { DieIcon } from "./icons.js";
10
12
  import { signed } from "./labels.js";
11
- import { readChoice } from "./prefs.js";
12
- import { t } from "./text.js";
13
13
  /** The coins of a toss in the page's language, in the order they fell: "heads, tails". */
14
14
  export function tossWords(toss) {
15
15
  return toss.map((side) => (side === "heads" ? t("heads") : t("tails"))).join(", ");
@@ -1,5 +1,5 @@
1
+ import { isolated, listText, pageLocale, systemWord, systemWordAnyCase, t } from "../text.js";
1
2
  import { fieldLabel, phraseLabel, strangerLabel } from "./labels.js";
2
- import { isolated, listText, pageLocale, systemWord, systemWordAnyCase, t } from "./text.js";
3
3
  /** A game date in the page's language: day 3, 06:00, or day 3; any other text as it is. */
4
4
  export function gameDateLabel(date) {
5
5
  const read = readDate(date);
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
2
2
  // The page's pictures (D-284): each die that is thrown, and the controls that have no words; lines on a grid of 24, in the colour of the text around them.
3
+ import { themedIcon } from "../shell/system-style.js";
3
4
  import { drawnDiceOf, drawnDie } from "./labels.js";
4
- import { themedIcon } from "./system-style.js";
5
5
  // The dice by their sides: the d% as two d10, one behind the other; the coin as 2.
6
6
  const diePaths = {
7
7
  2: "M12 3a9 9 0 1 0 0 18a9 9 0 1 0 0-18Z M12 7a5 5 0 1 0 0 10a5 5 0 1 0 0-10Z",
@@ -1,5 +1,5 @@
1
1
  // Labels from the names of the fields, in English (D-273): "hit-dice-d8" reads "hit dice d8", "str-save" "STR save"; names in the campaign's language come later.
2
- import { isolated, numberText, pageLocale, systemWord, t, timeText } from "./text.js";
2
+ import { isolated, numberText, pageLocale, systemWord, t, timeText } from "../text.js";
3
3
  // The dice the page has a picture of: the d% as 100, the coin as 2.
4
4
  const drawnDice = [2, 4, 6, 8, 10, 12, 20, 100];
5
5
  /** A field's name as a label: its words apart, in capitals the short names, as ac, hp, or str which the system names Strength; age stays a word. */
@@ -211,6 +211,7 @@ export function settingLabel(name) {
211
211
  effort: t("Master's thinking"),
212
212
  lines: t("Lines"),
213
213
  veils: t("Veils"),
214
+ orders: t("Standing orders"),
214
215
  language: t("Language"),
215
216
  companions: t("Companions"),
216
217
  preparation: t("Preparation"),
@@ -1,7 +1,7 @@
1
1
  // What the world map draws (D-318, POS-7): a symbol for each kind of place, in four sizes, and for each biome of a region a colour, from the style sheet, and a
2
2
  // mark; the same names as the engine's map/looks.ts, which a test checks. A kind or a biome the page does not know is drawn neutral. Drawn for
3
3
  // rpg-engine: lines on a grid of 24, a biome's marks around 0.
4
- import { t } from "./text.js";
4
+ import { t } from "../text.js";
5
5
  export const placeKinds = {
6
6
  city: { label: "City", size: 3, glyph: "M2 21V11h3V8.5h3V11h3V6.5h2V11h3V8.5h3V11h3v10Z M10 21v-3.5a2 2 0 0 1 4 0V21 M5 15h1 M18 15h1" },
7
7
  town: { label: "Town", size: 2, glyph: "M3 20V12l5-4 5 4v8 M13 20V9l4-4 4 4v11 M2 20h20 M6.5 20v-3h3v3 M16 13h2" },
@@ -3,8 +3,8 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "preact/jsx-ru
3
3
  // italics, links as their names, or as links where the page reading it says where they lead. Never HTML: every piece is text, so nothing in a page can run in
4
4
  // the dashboard.
5
5
  import { Fragment } from "preact";
6
- import { foldedText, listText, t } from "./text.js";
7
- import { linkedName } from "./world/known.js";
6
+ import { foldedText, listText, t } from "../text.js";
7
+ import { linkedName } from "../world/known.js";
8
8
  export function Markdown({ text, link, secretKnowers }) {
9
9
  return _jsx("div", { class: "markdown", children: blocks(text, link, true, secretKnowers).map((block, index) => _jsx(Fragment, { children: block }, index)) });
10
10
  }
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
2
+ import { t } from "../text.js";
2
3
  import { moodFaces } from "./mood-faces.js";
3
- import { t } from "./text.js";
4
4
  /** A mood's face, in lines on a grid of 24, cropped to the face. */
5
5
  export function MoodFace({ mood }) {
6
6
  const face = moodFaces[mood];
@@ -1,6 +1,6 @@
1
1
  // What the engine turned down, in the page's language (T-162): the server gives a refusal's code and values beside the engine's own words, which the master
2
2
  // reads; the page says each code it knows in its words, and the engine's for one it does not know. npm's reasons stay npm's.
3
- import { t } from "./text.js";
3
+ import { t } from "../text.js";
4
4
  /** A refusal in the page's words by its code and values; the engine's words for a code the page does not know, or `otherwise` without any. */
5
5
  export function refusalText(refused, otherwise) {
6
6
  const values = refused.values ?? {};
@@ -1,10 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
2
+ import { textOf } from "../packages/widgets.js";
3
+ import { saysState } from "../sheet/person-panel.js";
4
+ import { conditionsPref, useChoice } from "../shell/prefs.js";
5
+ import { t } from "../text.js";
2
6
  import { effectLabel } from "./game-words.js";
3
7
  import { statusIcons } from "./icons.js";
4
- import { textOf } from "./packages/widgets.js";
5
- import { saysState } from "./person-panel.js";
6
- import { conditionsPref, useChoice } from "./prefs.js";
7
- import { t } from "./text.js";
8
8
  /**
9
9
  * The state of someone of the party as the first widget on them that gives a word says it (D-514): its chip, the icon it shows or the widget's, its lead's
10
10
  * tone; none where no widget on them gives one.
@@ -1,12 +1,12 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
2
2
  // The widgets of a value (D-273, D-284): pips, a bar, a track centred on zero, a number's progress, chips or a list of sentences; each says its value in words
3
3
  // for a screen reader.
4
- import { ActName, usePlayerActs } from "./acts/names.js";
4
+ import { ActName, usePlayerActs } from "../acts/names.js";
5
+ import { numberText, t } from "../text.js";
5
6
  import { Coins } from "./coins.js";
6
7
  import { besideLabel, burnsLabel, effectEndLabel, effectLabel, effectName } from "./game-words.js";
7
8
  import { itemLabel, shownText } from "./labels.js";
8
9
  import { progressShare, trackPlaces, widgetOf } from "./layout.js";
9
- import { numberText, t } from "./text.js";
10
10
  // Below this share of its maximum a bar is low: hatched, not only red.
11
11
  const low = 0.25;
12
12
  // A list with an item of so many words is of sentences, as "advantage on saving throws against poison": lines, not chips.
@@ -0,0 +1,24 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "preact/jsx-runtime";
2
+ import { pageDirection, t } from "../text.js";
3
+ import { groundKinds } from "./map.js";
4
+ import { Corner, Ground } from "./paper.js";
5
+ import { Thing } from "./things.js";
6
+ /** The map's key: the veil of the player's turn, named with more than one player character, the things of the legend, where the squares lead. */
7
+ export function MapKey({ map, reach, self }) {
8
+ return (_jsxs("ul", { class: "lm-key", "aria-label": t("Legend"), children: [reach && (_jsxs("li", { children: [_jsxs("svg", { class: `lm-swatch lm-look-${map.ground}`, viewBox: "0 0 40 40", "aria-hidden": "true", children: [_jsx("rect", { class: "lm-floor-fill", width: 40, height: 40 }), _jsx("g", { class: "lm-out", children: _jsx("rect", { width: 40, height: 40 }) })] }), _jsx("span", { class: "lm-key-name", children: self === undefined ? t("out of your move this turn") : t("out of {name}'s move this turn", { name: self }) })] })), map.legend.filter((feature) => !["floor", "ground"].includes(feature.kind)).map((feature) => (_jsxs("li", { children: [_jsx(Swatch, { feature: feature, ground: map.ground }), _jsx("span", { class: "lm-key-name", children: featureName(feature) }), feature.blocks && !["wall", "rock"].includes(feature.kind) && _jsx("span", { class: "lm-key-note", children: t("blocks") }), feature.difficult && _jsx("span", { class: "lm-key-note", children: t("difficult") })] }, feature.symbol))), map.exits.map((exit) => (_jsxs("li", { class: "lm-key-exit", children: [_jsx("span", { class: "lm-key-square", children: exit.square }), _jsx("span", { children: `${pageDirection() === "rtl" ? "←" : "→"} ${exit.to ?? t("somewhere")}` })] }, exit.square)))] }));
9
+ }
10
+ /** A symbol of the map by its name: those every map has (GRD-1), a wall, the floor, a door, in the page's language; the others as the master named them. */
11
+ export function featureName(feature) {
12
+ const builtIn = { wall: t("wall"), floor: t("floor"), door: t("door") };
13
+ return feature.name === feature.kind ? builtIn[feature.kind] ?? feature.name : feature.name;
14
+ }
15
+ /** A thing of the legend drawn small, as on the map, for the key. */
16
+ function Swatch({ feature, ground }) {
17
+ return (_jsxs("svg", { class: `lm-swatch lm-look-${ground}`, viewBox: "0 0 40 40", "aria-hidden": "true", children: [_jsx("rect", { class: "lm-paper", width: 40, height: 40 }), ["wall", "rock", "window"].includes(feature.kind)
18
+ ? _jsx("rect", { class: `lm-wall ${feature.kind}`, width: 40, height: 40 })
19
+ : (_jsxs(_Fragment, { children: [_jsx("rect", { class: "lm-floor-fill", width: 40, height: 40 }), ["door", "open-door", "secret-door", "opening"].includes(feature.kind)
20
+ ? (_jsxs(_Fragment, { children: [_jsx("path", { class: "lm-outline", d: "M0 0V40M40 0V40" }), feature.kind !== "opening" && _jsx("rect", { class: feature.kind === "secret-door" ? "lm-door-leaf secret" : "lm-door-leaf", x: 14, y: 2, width: 12, height: 36 })] }))
21
+ : groundKinds.includes(feature.kind)
22
+ ? _jsx(Ground, { kind: feature.kind, x: 0, y: 0, side: 40, seed: { column: 0, row: 0 } })
23
+ : _jsx(Thing, { kind: feature.kind, symbol: feature.symbol, x: 0, y: 0, w: 40, h: 40, cells: [[0, 0]] }), feature.difficult && _jsx(Corner, { x: 0, y: 0, side: 40 })] }))] }));
24
+ }
@@ -0,0 +1,67 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "preact/jsx-runtime";
2
+ import { isSolid, kindAt, squareName } from "./map.js";
3
+ // How wide a square is drawn, in pixels.
4
+ export const size = 40;
5
+ /** The patterns and filters of the map: Dyson's hatching in bundles, the grounds' textures, the ink's tremble, the washes, the soft edge. */
6
+ export function Patterns() {
7
+ let seed = 11;
8
+ const random = () => {
9
+ seed = (seed * 16807) % 2147483647;
10
+ return seed / 2147483647;
11
+ };
12
+ const bundles = Array.from({ length: 36 }, (_, index) => ({ x: (index % 6) * 16 + 8 + (random() - 0.5) * 5, y: Math.floor(index / 6) * 16 + 8 + (random() - 0.5) * 5, turn: Math.round(random() * 180), lengths: [0, 1, 2, 3].map(() => 6 + random() * 2.5) }));
13
+ return (_jsxs(_Fragment, { children: [_jsx("pattern", { id: "lm-hatch", width: 96, height: 96, patternUnits: "userSpaceOnUse", children: bundles.map((bundle, index) => (_jsx("g", { transform: `translate(${bundle.x.toFixed(1)} ${bundle.y.toFixed(1)}) rotate(${bundle.turn})`, children: [-3.6, -1.2, 1.2, 3.6].map((offset, line) => _jsx("line", { class: "lm-hatch-line", x1: -bundle.lengths[line], y1: offset, x2: bundle.lengths[line], y2: offset }, line)) }, index))) }), _jsxs("pattern", { id: "lm-cobbles", width: 20, height: 20, patternUnits: "userSpaceOnUse", children: [_jsx("rect", { class: "lm-paving", width: 20, height: 20 }), [[1, 1, 8], [10, 1, 9], [1, 11, 5], [7, 11, 7], [15, 11, 4]].map(([x, y, w], index) => _jsx("rect", { class: "lm-cobble", x: x, y: y, width: w, height: 8, rx: 2.5 }, index))] }), _jsxs("pattern", { id: "lm-grass", width: 46, height: 46, patternUnits: "userSpaceOnUse", children: [_jsx("rect", { class: "lm-meadow", width: 46, height: 46 }), [[8, 12], [30, 6], [20, 30], [40, 36], [4, 40]].map(([x, y], index) => _jsx("path", { class: "lm-tuft", d: `M${x - 3} ${y}l1.5 -4M${x} ${y}v-5M${x + 3} ${y}l-1.5 -4` }, index))] }), _jsxs("pattern", { id: "lm-speckle", width: 30, height: 30, patternUnits: "userSpaceOnUse", children: [_jsx("rect", { class: "lm-rockfloor", width: 30, height: 30 }), [[5, 7, 1.1], [19, 4, 0.8], [12, 18, 1.3], [26, 22, 0.9], [4, 26, 0.7], [22, 13, 0.6]].map(([x, y, r], index) => _jsx("circle", { class: "lm-dot", cx: x, cy: y, r: r }, index))] }), _jsxs("filter", { id: "lm-ink", x: "-5%", y: "-5%", width: "110%", height: "110%", children: [_jsx("feTurbulence", { type: "fractalNoise", baseFrequency: "0.05", numOctaves: 2, seed: 7 }), _jsx("feDisplacementMap", { in: "SourceGraphic", scale: 2.6 })] }), _jsxs("filter", { id: "lm-wash", x: "-20%", y: "-20%", width: "140%", height: "140%", children: [_jsx("feTurbulence", { type: "fractalNoise", baseFrequency: "0.09", numOctaves: 2, seed: 3, result: "noise" }), _jsx("feDisplacementMap", { in: "SourceGraphic", in2: "noise", scale: 9, result: "moved" }), _jsx("feGaussianBlur", { in: "moved", stdDeviation: 1.6 })] }), _jsx("filter", { id: "lm-blur", x: "-10%", y: "-10%", width: "120%", height: "120%", children: _jsx("feGaussianBlur", { stdDeviation: 4 }) }), _jsx("filter", { id: "lm-soft", x: "-20%", y: "-20%", width: "140%", height: "140%", children: _jsx("feGaussianBlur", { stdDeviation: size * 0.45 }) })] }));
14
+ }
15
+ /** The mark of difficult ground: a fold in the square's corner, so that colour is never the only sign (D-325). */
16
+ export function Corner({ x, y, side }) {
17
+ return _jsx("path", { class: "lm-corner", d: `M${x + 1} ${y + 1}h${side * 0.3}l${-side * 0.3} ${side * 0.3}z` });
18
+ }
19
+ /** Ground drawn on its square, under the things: water, rubble, mud, brush, open ground, a road. */
20
+ export function Ground({ kind, x, y, side, seed }) {
21
+ const turn = (seed.column * 7 + seed.row * 13) % 5;
22
+ const at = (share) => share * side / 40;
23
+ let marks = null;
24
+ if (kind.endsWith("water")) {
25
+ marks = _jsx("path", { class: "lm-wave", d: `M${x + at(8)} ${y + at(14 + turn)}q4 -4 8 0t8 0M${x + at(18)} ${y + at(28 - turn)}q4 -4 8 0t8 0` });
26
+ }
27
+ else if (kind === "rubble") {
28
+ marks = [[10, 12, 4], [24, 9, 3], [30, 24, 5], [14, 28, 3.5], [22, 19, 2.5]].map(([px, py, r], index) => _jsx("path", { class: "lm-pebble", d: pebble(x + at((px + turn * 3) % 34 + 3), y + at(py), at(r)) }, index));
29
+ }
30
+ else if (kind === "brush" || kind === "ground") {
31
+ marks = (kind === "brush" ? [[10, 14], [26, 10], [18, 28], [31, 27]] : [[12, 16], [28, 30]]).map(([px, py], index) => (_jsx("path", { class: "lm-tuft", d: `M${x + at(px) - 4} ${y + at(py)}l2 -5M${x + at(px)} ${y + at(py)}v-6M${x + at(px) + 4} ${y + at(py)}l-2 -5` }, index)));
32
+ }
33
+ else if (kind === "road") {
34
+ marks = _jsx("path", { class: "lm-rut", d: `M${x} ${y + side * 0.3}h${side}M${x} ${y + side * 0.7}h${side}M${x + side * 0.3} ${y}v${side}M${x + side * 0.7} ${y}v${side}` });
35
+ }
36
+ else if (kind === "mud") {
37
+ marks = _jsx("path", { class: "lm-wave", d: `M${x + at(8)} ${y + at(16)}q3 3 6 0t6 0M${x + at(18)} ${y + at(28)}q3 3 6 0t6 0` });
38
+ }
39
+ return (_jsxs("g", { class: `lm-ground-${kind}`, children: [_jsx("rect", { class: "lm-ground-fill", x: x, y: y, width: side, height: side, filter: "url(#lm-wash)" }), marks] }));
40
+ }
41
+ /** A door: its leaf across the gap in the wall, along the wall it is in; open, swung; secret and found, dashed. */
42
+ export function Door({ kind, name, square, map, x, y }) {
43
+ const closed = (column, row) => isSolid(map, { column, row }) || kindAt(map, { column, row }) === "building";
44
+ const across = closed(square.column - 1, square.row) && closed(square.column + 1, square.row);
45
+ const leaf = across ? { x: x + 2, y: y + size * 0.38, width: size - 4, height: size * 0.24 } : { x: x + size * 0.38, y: y + 2, width: size * 0.24, height: size - 4 };
46
+ return (_jsxs("g", { class: `lm-door ${kind}`, children: [_jsx("title", { children: `${name}, ${squareName(square)}` }), kind === "open-door"
47
+ ? (_jsx("path", { class: "lm-door-swing", d: across ? `M${x + 2} ${y + size / 2}A${size - 4} ${size - 4} 0 0 1 ${x + size - 2} ${y - size / 2 + 4}` : `M${x + size / 2} ${y + 2}A${size - 4} ${size - 4} 0 0 0 ${x + size + size / 2 - 4} ${y + size - 2}` }))
48
+ : _jsx("rect", { ...leaf, class: kind === "secret-door" ? "lm-door-leaf secret" : "lm-door-leaf" })] }));
49
+ }
50
+ /** Where a square leads: on the map's edge an arrow out of it and the place's name, as the world goes on there; inside, the name over the door. */
51
+ export function Exit({ side, to, x, y, letters }) {
52
+ if (side === "inside") {
53
+ return to === undefined ? null : _jsx("text", { class: "lm-exit-name inside", x: x, y: y - size / 2 - 8, "text-anchor": "middle", children: to });
54
+ }
55
+ const [dx, dy] = side === "bottom" ? [0, 1] : side === "top" ? [0, -1] : side === "left" ? [-1, 0] : [1, 0];
56
+ // Past the squares' names on the top and the left.
57
+ const skip = side === "top" || side === "left" ? 22 : 0;
58
+ const [sx, sy] = [x + dx * (size * 0.5 + skip), y + dy * (size * 0.5 + skip)];
59
+ const [ex, ey] = [sx + dx * 16, sy + dy * 16];
60
+ return (_jsxs("g", { class: "lm-exit", children: [_jsx("path", { d: `M${sx} ${sy}L${ex} ${ey}M${ex - dy * 5 - dx * 5} ${ey - dx * 5 - dy * 5}L${ex} ${ey}L${ex + dy * 5 - dx * 5} ${ey + dx * 5 - dy * 5}` }), to !== undefined && (dx === 0
61
+ ? _jsx("text", { class: "lm-exit-name", x: ex, y: ey + dy * 15, "text-anchor": "middle", "dominant-baseline": "middle", "font-size": letters, children: to })
62
+ : _jsx("text", { class: "lm-exit-name", x: ex + dx * 12, y: ey, "text-anchor": "middle", "dominant-baseline": "middle", "font-size": letters, transform: `rotate(${dx < 0 ? -90 : 90} ${ex + dx * 12} ${ey})`, children: to }))] }));
63
+ }
64
+ /** A pebble of rubble. */
65
+ function pebble(x, y, r) {
66
+ return `M${x - r} ${y}l${r * 0.6} ${-r * 0.9}l${r} ${r * 0.2}l${r * 0.4} ${r}l${-r * 0.9} ${r * 0.6}z`;
67
+ }
@@ -2,10 +2,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
2
2
  // Where the player's character goes when the master asks (D-332, ASK-11): the map of the place over the whole page, its squares at least 44 px, those the
3
3
  // character can still reach in gold; a square touched is chosen, then sent. A square can also be written, such as E4, from the keyboard.
4
4
  import { useEffect, useRef, useState } from "preact/hooks";
5
- import { Icon } from "../icons.js";
5
+ import { Icon } from "../parts/icons.js";
6
6
  import { t } from "../text.js";
7
- import { PlaceMap } from "./map-view.js";
8
7
  import { isStandable, squareName, squareOf } from "./map.js";
8
+ import { PlaceMap } from "./view.js";
9
9
  export function MapSheet({ map, place, question, onPick, onClose }) {
10
10
  const [selected, setSelected] = useState();
11
11
  const [typed, setTyped] = useState("");