spell 0.8.7 → 0.8.9

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 (304) hide show
  1. package/README-epics.md +149 -49
  2. package/app/package.json +25 -1
  3. package/app/spaces/@spell/guides/SpellUI/SpellUI.spellml +486 -486
  4. package/app/spaces/@spell/sites/SpellApp/SpellApp.spellml +50 -124
  5. package/dist/app/app/pages/SiteBoardView.css +5 -5
  6. package/dist/app/app/pages/SiteBoardView.js +1 -1
  7. package/dist/app/app/pages/SiteEditorPage.js +6 -3
  8. package/dist/app/app/pages/SiteEdits.js +27 -10
  9. package/dist/app/app/pages/SiteWrites.js +11 -0
  10. package/dist/app/app/runner/spellRuntime.js +1 -0
  11. package/dist/cli/publish/PublishedPackage.d.ts +2 -1
  12. package/dist/cli/publish/PublishedPackage.js +6 -3
  13. package/dist/cli/publish/ScratchInstall.d.ts +14 -3
  14. package/dist/cli/publish/ScratchInstall.js +69 -8
  15. package/dist/epic/cli/EpicProgram.js +20 -5
  16. package/dist/epic/cli/epicGroups.js +7 -1
  17. package/dist/epic/command/BaseBranch.d.ts +35 -0
  18. package/dist/epic/command/BaseBranch.js +58 -0
  19. package/dist/epic/command/EpicCheckout.d.ts +1 -1
  20. package/dist/epic/command/EpicCheckout.js +4 -4
  21. package/dist/epic/command/EpicGuide.js +3 -2
  22. package/dist/epic/command/EpicTools.d.ts +5 -0
  23. package/dist/epic/command/EpicTools.js +14 -3
  24. package/dist/epic/command/MainMerge.d.ts +26 -15
  25. package/dist/epic/command/MainMerge.js +60 -16
  26. package/dist/epic/command/PullRequest.d.ts +45 -0
  27. package/dist/epic/command/PullRequest.js +100 -0
  28. package/dist/epic/command/RepoInit.d.ts +196 -39
  29. package/dist/epic/command/RepoInit.js +481 -60
  30. package/dist/epic/command/Requests.d.ts +1 -0
  31. package/dist/epic/command/Requests.js +7 -1
  32. package/dist/epic/command/SessionMoves.js +2 -1
  33. package/dist/epic/command/SkillsCheck.js +3 -2
  34. package/dist/epic/command/Stock.js +3 -1
  35. package/dist/epic/command/TurnEnd.d.ts +1 -1
  36. package/dist/epic/command/TurnEnd.js +4 -3
  37. package/dist/epic/command/Worktrees.d.ts +20 -3
  38. package/dist/epic/command/Worktrees.js +39 -7
  39. package/dist/epic/command/command.types.d.ts +3 -0
  40. package/dist/epic/components/__pack/epics.entry.js +43 -43
  41. package/dist/epic/components/__pack/epics.pack.js +36 -12794
  42. package/dist/epic/config/CodeHost.d.ts +96 -0
  43. package/dist/epic/config/CodeHost.js +89 -0
  44. package/dist/epic/config/EngineFiles.mjs +60 -0
  45. package/dist/epic/config/EpicConfig.d.ts +20 -3
  46. package/dist/epic/config/EpicConfig.js +25 -1
  47. package/dist/epic/config/EpicRepo.js +1 -1
  48. package/dist/epic/config/GitHub.d.ts +75 -3
  49. package/dist/epic/config/GitHub.js +106 -5
  50. package/dist/epic/config/GitLab.d.ts +138 -0
  51. package/dist/epic/config/GitLab.js +297 -0
  52. package/dist/epic/config/LayeredSettings.js +3 -2
  53. package/dist/epic/server/EpicServer.d.ts +1 -1
  54. package/dist/epic/server/EpicServer.js +26 -12
  55. package/dist/epic/tool/InboxPoller.mjs +2 -1
  56. package/dist/epic/tool/MigrateCommands.js +6 -8
  57. package/dist/epic/tool/PlanCommits.d.ts +7 -4
  58. package/dist/epic/tool/PlanCommits.js +7 -5
  59. package/dist/epic/tool/PlanDocCommands.js +3 -4
  60. package/dist/epic/tool/PlanDocFiles.d.ts +3 -1
  61. package/dist/epic/tool/PlanDocFiles.js +13 -5
  62. package/dist/epic/tool/ServedFolders.d.ts +1 -1
  63. package/dist/epic/tool/ServedFolders.js +4 -4
  64. package/dist/epic/tools/PageInboxes.js +3 -3
  65. package/dist/epic/tools/_assets/commands.entry.js +149 -68
  66. package/dist/epic/tools/_assets/commands.js +20 -2073
  67. package/dist/epic/tools/_assets/core-reference.entry.js +244 -124
  68. package/dist/epic/tools/_assets/core-reference.js +20 -2142
  69. package/dist/epic/tools/_assets/emoji/cldr/0.js +2 -2
  70. package/dist/epic/tools/_assets/emoji/cldr/a.js +2 -2
  71. package/dist/epic/tools/_assets/emoji/cldr/b.js +2 -2
  72. package/dist/epic/tools/_assets/emoji/cldr/c.js +2 -2
  73. package/dist/epic/tools/_assets/emoji/cldr/d.js +2 -2
  74. package/dist/epic/tools/_assets/emoji/cldr/e.js +2 -2
  75. package/dist/epic/tools/_assets/emoji/cldr/f.js +2 -2
  76. package/dist/epic/tools/_assets/emoji/cldr/g.js +2 -2
  77. package/dist/epic/tools/_assets/emoji/cldr/h.js +2 -2
  78. package/dist/epic/tools/_assets/emoji/cldr/i.js +2 -2
  79. package/dist/epic/tools/_assets/emoji/cldr/j.js +2 -2
  80. package/dist/epic/tools/_assets/emoji/cldr/k.js +2 -2
  81. package/dist/epic/tools/_assets/emoji/cldr/l.js +2 -2
  82. package/dist/epic/tools/_assets/emoji/cldr/m.js +2 -2
  83. package/dist/epic/tools/_assets/emoji/cldr/n.js +2 -2
  84. package/dist/epic/tools/_assets/emoji/cldr/o.js +2 -2
  85. package/dist/epic/tools/_assets/emoji/cldr/p.js +2 -2
  86. package/dist/epic/tools/_assets/emoji/cldr/r.js +2 -2
  87. package/dist/epic/tools/_assets/emoji/cldr/s.js +2 -2
  88. package/dist/epic/tools/_assets/emoji/cldr/t.js +2 -2
  89. package/dist/epic/tools/_assets/emoji/cldr/u.js +2 -2
  90. package/dist/epic/tools/_assets/emoji/cldr/v.js +2 -2
  91. package/dist/epic/tools/_assets/emoji/cldr/w.js +2 -2
  92. package/dist/epic/tools/_assets/emoji/cldr/x.js +2 -2
  93. package/dist/epic/tools/_assets/emoji/cldr/y.js +2 -2
  94. package/dist/epic/tools/_assets/emoji/cldr/z.js +2 -2
  95. package/dist/epic/tools/_assets/emoji/fomantic/0.js +2 -2
  96. package/dist/epic/tools/_assets/emoji/fomantic/a.js +2 -2
  97. package/dist/epic/tools/_assets/emoji/fomantic/b.js +2 -2
  98. package/dist/epic/tools/_assets/emoji/fomantic/c.js +2 -2
  99. package/dist/epic/tools/_assets/emoji/fomantic/d.js +2 -2
  100. package/dist/epic/tools/_assets/emoji/fomantic/e.js +2 -2
  101. package/dist/epic/tools/_assets/emoji/fomantic/f.js +2 -2
  102. package/dist/epic/tools/_assets/emoji/fomantic/g.js +2 -2
  103. package/dist/epic/tools/_assets/emoji/fomantic/h.js +2 -2
  104. package/dist/epic/tools/_assets/emoji/fomantic/i.js +2 -2
  105. package/dist/epic/tools/_assets/emoji/fomantic/j.js +2 -2
  106. package/dist/epic/tools/_assets/emoji/fomantic/k.js +2 -2
  107. package/dist/epic/tools/_assets/emoji/fomantic/l.js +2 -2
  108. package/dist/epic/tools/_assets/emoji/fomantic/m.js +2 -2
  109. package/dist/epic/tools/_assets/emoji/fomantic/n.js +2 -2
  110. package/dist/epic/tools/_assets/emoji/fomantic/o.js +2 -2
  111. package/dist/epic/tools/_assets/emoji/fomantic/p.js +2 -2
  112. package/dist/epic/tools/_assets/emoji/fomantic/q.js +2 -2
  113. package/dist/epic/tools/_assets/emoji/fomantic/r.js +2 -2
  114. package/dist/epic/tools/_assets/emoji/fomantic/s.js +2 -2
  115. package/dist/epic/tools/_assets/emoji/fomantic/t.js +2 -2
  116. package/dist/epic/tools/_assets/emoji/fomantic/u.js +2 -2
  117. package/dist/epic/tools/_assets/emoji/fomantic/v.js +2 -2
  118. package/dist/epic/tools/_assets/emoji/fomantic/w.js +2 -2
  119. package/dist/epic/tools/_assets/emoji/fomantic/x.js +2 -2
  120. package/dist/epic/tools/_assets/emoji/fomantic/y.js +2 -2
  121. package/dist/epic/tools/_assets/emoji/fomantic/z.js +2 -2
  122. package/dist/epic/tools/_assets/goals-live.js +318 -210
  123. package/dist/epic/tools/_assets/highlight.min.js +5764 -5269
  124. package/dist/epic/tools/_assets/lazy/code-engine.js +5 -1270
  125. package/dist/epic/tools/_assets/lazy/markdown-engine.js +67 -1513
  126. package/dist/epic/tools/_assets/lazy/markdown-sanitizer.js +3 -753
  127. package/dist/epic/tools/_assets/spell-comments.entry.js +282 -159
  128. package/dist/epic/tools/_assets/spell-comments.js +24 -3716
  129. package/dist/epic/tools/_assets/spell-doc-comments.js +1243 -816
  130. package/dist/epic/tools/_assets/spell-doc-helpers.js +298 -165
  131. package/dist/epic/tools/_assets/spell-doc-runtime.js +2760 -1415
  132. package/dist/epic/tools/_assets/spell-doc-toolbar.js +396 -227
  133. package/dist/epic/tools/_assets/spell-syntax.entry.js +505 -285
  134. package/dist/epic/tools/_assets/spell-syntax.js +22 -2916
  135. package/dist/epic/tools/_assets/spell-ui-sources.js +102 -60
  136. package/dist/epic/tools/_assets/spell-ui.entry.js +108 -40
  137. package/dist/epic/tools/_assets/spell-ui.js +3131 -46465
  138. package/dist/epic/tools/pages.d.ts +5 -6
  139. package/dist/epic/tools/pages.js +7 -6
  140. package/dist/epic/window.mjs +2 -3
  141. package/dist/parser/core/classes/View.d.ts +20 -0
  142. package/dist/parser/core/classes/View.js +91 -17
  143. package/dist/parser/core/core.declarations.json5 +18 -0
  144. package/dist/parser/core/core.scopes.js +5 -0
  145. package/dist/parser/core/sites.d.ts +10 -0
  146. package/dist/parser/core/sites.js +12 -0
  147. package/dist/parser/parser/tokenizer/Tokenizer.d.ts +9 -1
  148. package/dist/parser/parser/tokenizer/Tokenizer.js +43 -5
  149. package/dist/parser/parser/tokenizer/Tokens.d.ts +4 -0
  150. package/dist/parser/parser/tokenizer/Tokens.js +4 -0
  151. package/dist/parser/parser/tokenizer/tokenizer.types.d.ts +5 -0
  152. package/dist/parser/parser/tokenizer/tokenizer.types.js +2 -0
  153. package/dist/parser/py/core/spell_core/apps.py +2 -0
  154. package/dist/parser/spell/PARSING.md +21 -0
  155. package/dist/parser/spell/SpellParser.d.ts +2 -0
  156. package/dist/parser/spell/SpellParser.js +58 -3
  157. package/dist/parser/spell/SpellxTokenizer.js +2 -1
  158. package/dist/parser/spell/SpellxTwin.d.ts +4 -1
  159. package/dist/parser/spell/SpellxTwin.js +10 -3
  160. package/dist/parser/spell/builtinTypes.js +24 -1
  161. package/dist/parser/spell/ingest/PlaceIngest.js +3 -1
  162. package/dist/parser/spell/languages/Language.d.ts +11 -2
  163. package/dist/parser/spell/languages/en/words.js +3 -2
  164. package/dist/parser/spell/languages/es/words.js +7 -4
  165. package/dist/parser/spell/rules/Statement.js +1 -1
  166. package/dist/parser/spell/rules/classes/DrawSlot.js +6 -1
  167. package/dist/parser/spell/rules/sites/SitePage.d.ts +3 -3
  168. package/dist/parser/spell/rules/sites/SitePage.js +2 -2
  169. package/dist/parser/spell/rules/sites/sites.en.js +1 -1
  170. package/dist/parser/spell/rules/sites/sites.es.js +1 -1
  171. package/dist/parser/spell/rules/sites/sites.shared.d.ts +2 -2
  172. package/dist/parser/spell/spell.types.d.ts +7 -0
  173. package/dist/parser/spell/spellSyntax.es.json +6 -6
  174. package/dist/parser/spell/spellSyntax.json +6 -6
  175. package/dist/parser/spellx/SpellxView.js +2 -1
  176. package/dist/ui/components/ui-accordion/UIAccordion.d.ts +1 -0
  177. package/dist/ui/components/ui-ad/UIAd.d.ts +1 -0
  178. package/dist/ui/components/ui-breadcrumbs/UIBreadcrumb.d.ts +1 -0
  179. package/dist/ui/components/ui-breadcrumbs/UIBreadcrumbs.d.ts +1 -0
  180. package/dist/ui/components/ui-button/UIButton.d.ts +8 -3
  181. package/dist/ui/components/ui-button/UIButton.fallback.d.ts +8 -3
  182. package/dist/ui/components/ui-button/UIButtons.d.ts +1 -0
  183. package/dist/ui/components/ui-button/UIOr.d.ts +1 -0
  184. package/dist/ui/components/ui-calendar/UICalendar.d.ts +6 -0
  185. package/dist/ui/components/ui-calendar/UICalendar.fallback.d.ts +6 -0
  186. package/dist/ui/components/ui-card/UICards.d.ts +31 -0
  187. package/dist/ui/components/ui-checkbox/UICheckbox.d.ts +7 -0
  188. package/dist/ui/components/ui-checkbox/UICheckbox.fallback.d.ts +7 -0
  189. package/dist/ui/components/ui-comment/UIComment.d.ts +1 -0
  190. package/dist/ui/components/ui-comment/UIComments.d.ts +1 -0
  191. package/dist/ui/components/ui-components/UIComponents.d.ts +1 -0
  192. package/dist/ui/components/ui-dimmer/UIDimmer.d.ts +1 -0
  193. package/dist/ui/components/ui-divider/UIDivider.d.ts +2 -0
  194. package/dist/ui/components/ui-dropdown/UIDropdown.d.ts +6 -0
  195. package/dist/ui/components/ui-dropdown/UIDropdown.fallback.d.ts +6 -0
  196. package/dist/ui/components/ui-embed/UIEmbed.d.ts +1 -0
  197. package/dist/ui/components/ui-emoji/UIEmoji.d.ts +1 -0
  198. package/dist/ui/components/ui-feed/UIFeed.d.ts +1 -0
  199. package/dist/ui/components/ui-feed/UIFeedEvent.d.ts +1 -0
  200. package/dist/ui/components/ui-flag/UIFlag.d.ts +1 -0
  201. package/dist/ui/components/ui-flyout/UIFlyout.d.ts +1 -0
  202. package/dist/ui/components/ui-form/UIFields.d.ts +1 -0
  203. package/dist/ui/components/ui-form/UIRepeat.d.ts +1 -0
  204. package/dist/ui/components/ui-grid/UIColumn.d.ts +1 -0
  205. package/dist/ui/components/ui-grid/UIGrid.d.ts +1 -0
  206. package/dist/ui/components/ui-grid/UIRow.d.ts +1 -0
  207. package/dist/ui/components/ui-icon/UIIcon.d.ts +3 -2
  208. package/dist/ui/components/ui-icon/UIIcons.d.ts +1 -0
  209. package/dist/ui/components/ui-icon-picker/UIIconPicker.d.ts +6 -0
  210. package/dist/ui/components/ui-icon-picker/UIIconPicker.fallback.d.ts +6 -0
  211. package/dist/ui/components/ui-image/UIImages.d.ts +1 -0
  212. package/dist/ui/components/ui-include/UIInclude.d.ts +1 -0
  213. package/dist/ui/components/ui-input/UIInput.fallback.d.ts +9 -2
  214. package/dist/ui/components/ui-items/UIItems.d.ts +1 -0
  215. package/dist/ui/components/ui-keys/UIKeys.d.ts +1 -0
  216. package/dist/ui/components/ui-label/UILabel.d.ts +2 -0
  217. package/dist/ui/components/ui-label/UILabels.d.ts +1 -0
  218. package/dist/ui/components/ui-list/UIList.d.ts +2 -0
  219. package/dist/ui/components/ui-loader/UILoader.d.ts +1 -0
  220. package/dist/ui/components/ui-message/UIMessage.d.ts +2 -0
  221. package/dist/ui/components/ui-modal/UIModal.d.ts +1 -0
  222. package/dist/ui/components/ui-nag/UINag.d.ts +1 -0
  223. package/dist/ui/components/ui-page/UIPage.d.ts +15 -0
  224. package/dist/ui/components/ui-page/UIPage.es.d.ts +1 -0
  225. package/dist/ui/components/ui-parts/UIActions.d.ts +1 -0
  226. package/dist/ui/components/ui-parts/UIAuthor.d.ts +1 -0
  227. package/dist/ui/components/ui-parts/UIAvatar.d.ts +1 -0
  228. package/dist/ui/components/ui-parts/UIContent.d.ts +1 -0
  229. package/dist/ui/components/ui-parts/UIDate.d.ts +1 -0
  230. package/dist/ui/components/ui-parts/UIDescription.d.ts +1 -0
  231. package/dist/ui/components/ui-parts/UIDetail.d.ts +1 -0
  232. package/dist/ui/components/ui-parts/UIExtra.d.ts +1 -0
  233. package/dist/ui/components/ui-parts/UIHeader.d.ts +15 -3
  234. package/dist/ui/components/ui-parts/UIHeader.en.d.ts +5 -2
  235. package/dist/ui/components/ui-parts/UIHeader.en.js +6 -3
  236. package/dist/ui/components/ui-parts/UIHeader.js +45 -5
  237. package/dist/ui/components/ui-parts/UIMeta.d.ts +1 -0
  238. package/dist/ui/components/ui-parts/UIParts.css +18 -0
  239. package/dist/ui/components/ui-parts/UIParts.css.inline.js +1 -1
  240. package/dist/ui/components/ui-parts/UIParts.types.d.ts +15 -1
  241. package/dist/ui/components/ui-parts/UISummary.d.ts +1 -0
  242. package/dist/ui/components/ui-parts/UITitle.d.ts +1 -0
  243. package/dist/ui/components/ui-parts/UIValue.d.ts +1 -0
  244. package/dist/ui/components/ui-placeholder/UIPlaceholder.d.ts +1 -0
  245. package/dist/ui/components/ui-placeholder/UIPlaceholderHeader.d.ts +1 -0
  246. package/dist/ui/components/ui-placeholder/UIPlaceholderImage.d.ts +1 -0
  247. package/dist/ui/components/ui-placeholder/UIPlaceholderLine.d.ts +1 -0
  248. package/dist/ui/components/ui-placeholder/UIPlaceholderParagraph.d.ts +1 -0
  249. package/dist/ui/components/ui-progress/UIProgress.d.ts +2 -0
  250. package/dist/ui/components/ui-quote/UIQuote.d.ts +1 -0
  251. package/dist/ui/components/ui-rail/UIRail.d.ts +1 -0
  252. package/dist/ui/components/ui-rating/UIRating.d.ts +6 -0
  253. package/dist/ui/components/ui-rating/UIRating.fallback.d.ts +6 -0
  254. package/dist/ui/components/ui-reveal/UIReveal.d.ts +1 -0
  255. package/dist/ui/components/ui-search/UISearch.fallback.d.ts +13 -1
  256. package/dist/ui/components/ui-section/UISections.d.ts +1 -0
  257. package/dist/ui/components/ui-segment/UISegment.d.ts +2 -0
  258. package/dist/ui/components/ui-segment/UISegments.d.ts +1 -0
  259. package/dist/ui/components/ui-select/UISelect.d.ts +6 -0
  260. package/dist/ui/components/ui-select/UISelect.fallback.d.ts +6 -0
  261. package/dist/ui/components/ui-shape/UISide.d.ts +4 -0
  262. package/dist/ui/components/ui-sidebar/UIPushable.d.ts +1 -0
  263. package/dist/ui/components/ui-sidebar/UIPusher.d.ts +1 -0
  264. package/dist/ui/components/ui-sidebar/UISidebar.d.ts +1 -0
  265. package/dist/ui/components/ui-sides/UISides.d.ts +6 -0
  266. package/dist/ui/components/ui-sides/UISides.fallback.d.ts +6 -0
  267. package/dist/ui/components/ui-slider/UISlider.d.ts +7 -0
  268. package/dist/ui/components/ui-slider/UISlider.fallback.d.ts +7 -0
  269. package/dist/ui/components/ui-space/UISpace.d.ts +1 -0
  270. package/dist/ui/components/ui-statistic/UIStatistic.d.ts +1 -0
  271. package/dist/ui/components/ui-statistic/UIStatistics.d.ts +1 -0
  272. package/dist/ui/components/ui-step/UIStep.d.ts +1 -0
  273. package/dist/ui/components/ui-step/UISteps.d.ts +1 -0
  274. package/dist/ui/components/ui-table/UICell.d.ts +1 -0
  275. package/dist/ui/components/ui-terms/UITerm.d.ts +1 -0
  276. package/dist/ui/components/ui-terms/UITerms.d.ts +1 -0
  277. package/dist/ui/components/ui-theme-editor/UIColorChip.d.ts +1 -0
  278. package/dist/ui/components/ui-theme-editor/UIThemeToken.d.ts +1 -0
  279. package/dist/ui/components/ui-toast/UIToast.d.ts +1 -0
  280. package/dist/ui/components/ui-toc/UIToc.d.ts +1 -0
  281. package/dist/ui/components/ui-transition/UITransition.d.ts +1 -0
  282. package/dist/ui/components/ui-video/UIAudio.d.ts +1 -0
  283. package/dist/ui/components/ui-video/UIVideo.d.ts +1 -0
  284. package/dist/ui/components/ui-visibility/UIVisibility.d.ts +1 -0
  285. package/dist/ui/components/ui-zoom/UIZoom.d.ts +1 -0
  286. package/dist/ui/jsx.d.ts +4 -4
  287. package/dist/ui/vocabulary/defaults.generated.js +1 -1
  288. package/dist/util/spell/constants.js +1 -1
  289. package/epic/.claude-plugin/plugin.json +1 -1
  290. package/epic/.codex-plugin/plugin.json +1 -1
  291. package/epic/hooks/handoff.mjs +4 -3
  292. package/epic/hooks/worktree.mjs +22 -3
  293. package/epic/package.json +41 -2
  294. package/epic/skills/details/SKILL.md +2 -1
  295. package/epic/skills/epic/SKILL.md +7 -1
  296. package/epic/skills/epic/guide.md +3 -0
  297. package/epic/skills/isolate/SKILL.md +53 -20
  298. package/epic/src/AGENTS.md +11 -2
  299. package/epic/templates/durable.html +1 -1
  300. package/epic/vscode/package.json +1 -1
  301. package/epic/vscode/spell-epic.vsix +0 -0
  302. package/package.json +1 -1
  303. package/parser/package.json +1 -1
  304. package/ui/package.json +15 -2
@@ -19,6 +19,46 @@ var CHAIN_TAGS = {
19
19
  sino: "otherwise",
20
20
  "de lo contrario": "otherwise"
21
21
  };
22
+ var QUOTED_CONTENTS_TAGS = [
23
+ "header",
24
+ "ui-header",
25
+ "encabezado",
26
+ "es-encabezado",
27
+ "button",
28
+ "ui-button",
29
+ "boton",
30
+ "botón",
31
+ "es-boton",
32
+ "item",
33
+ "ui-item",
34
+ "elemento",
35
+ "es-elemento",
36
+ "label",
37
+ "ui-label",
38
+ "etiqueta",
39
+ "es-etiqueta",
40
+ "title",
41
+ "ui-title",
42
+ "titulo",
43
+ "título",
44
+ "es-titulo",
45
+ "link",
46
+ "ui-link",
47
+ "enlace",
48
+ "es-enlace",
49
+ "breadcrumb",
50
+ "ui-breadcrumb",
51
+ "ruta-seccion",
52
+ "ruta-sección",
53
+ "es-ruta-seccion",
54
+ "checkbox",
55
+ "ui-checkbox",
56
+ "casilla",
57
+ "es-casilla",
58
+ "radio",
59
+ "ui-radio",
60
+ "es-radio"
61
+ ];
22
62
  var SPELL_TOKENIZER_PROPS = {
23
63
  // Only support double-quotes as quote symbols (so we can do contractions with single quotes)
24
64
  // TODO: backtick as alternative quote, for embedding double quotes?
@@ -45,7 +85,16 @@ var SPELL_TOKENIZER_PROPS = {
45
85
  "ui-tree-node": "label",
46
86
  "nodo-arbol": "etiqueta",
47
87
  "nodo-árbol": "etiqueta",
48
- "es-nodo-arbol": "etiqueta"
88
+ "es-nodo-arbol": "etiqueta",
89
+ // what names a tab or a panel (epic `language` P38); Spanish's `panel`: `Language.quotedNameTags`
90
+ tab: "label",
91
+ "ui-tab": "label",
92
+ solapa: "etiqueta",
93
+ "es-solapa": "etiqueta",
94
+ panel: "label",
95
+ "ui-panel": "label",
96
+ "es-panel": "etiqueta",
97
+ ...Object.fromEntries(QUOTED_CONTENTS_TAGS.map((tag) => [tag, P.QUOTED_CONTENTS]))
49
98
  },
50
99
  // an if-chain inside markup, `<text><if it is done>✓</></text>` (epic `elemental-spell`, Owen 2026-10-25):
51
100
  // each branch's elements are hidden while it isn't the one (`SpellJSX`); every language's words, as its
@@ -74,7 +123,7 @@ var SpellParser = class _SpellParser extends P.Parser {
74
123
  return this.derived(
75
124
  "spellxTokenizer",
76
125
  () => new SP.SpellxTokenizer({
77
- ...SPELL_TOKENIZER_PROPS,
126
+ ...this.tokenizerProps,
78
127
  language: this.language ?? SP.Language.default,
79
128
  // a drawing's markup: `</>` closes any element there (Q40, P7)
80
129
  emptyEndTagCloses: true,
@@ -86,7 +135,13 @@ var SpellParser = class _SpellParser extends P.Parser {
86
135
  }
87
136
  /** Spell's own tokenizer, for code spell -- and inside a spellx file's tags (`SP.SpellxTokenizer.spell`). */
88
137
  get spellTokenizer() {
89
- return this.derived("tokenizer", () => new P.Tokenizer(SPELL_TOKENIZER_PROPS));
138
+ return this.derived("tokenizer", () => new P.Tokenizer(this.tokenizerProps));
139
+ }
140
+ /** What our tokenizers are made with: spell's, and what this parser's language reads its own way. */
141
+ get tokenizerProps() {
142
+ const own = this.language?.words.quotedNameTags;
143
+ if (!own) return SPELL_TOKENIZER_PROPS;
144
+ return { ...SPELL_TOKENIZER_PROPS, quotedNameTags: { ...SPELL_TOKENIZER_PROPS.quotedNameTags, ...own } };
90
145
  }
91
146
  addRule(rule, namesOrDefinition) {
92
147
  const definition = typeof namesOrDefinition === "object" && !Array.isArray(namesOrDefinition) ? namesOrDefinition : void 0;
@@ -398,7 +398,8 @@ var SpellxTokenizer = class extends P.Tokenizer {
398
398
  selfClosing: head.selfClosing
399
399
  };
400
400
  const hasDraw = tag.kind === "page" ? this.hasDrawOfItsOwn(text, head.end, end, indent) : void 0;
401
- if (!tag.selfClosing && SP.isPageDrawingItsBody(tag, hasDraw)) {
401
+ const hasThumbnail = tag.attributes.some((attribute) => attribute.name === "thumbnail");
402
+ if ((!tag.selfClosing || hasThumbnail) && SP.isPageDrawingItsBody(tag, hasDraw)) {
402
403
  tag.drawsBody = true;
403
404
  word = { ...word, drawsBody: true };
404
405
  }
@@ -65,8 +65,11 @@ export declare class SpellxTwin {
65
65
  * - Its `menu-bar=`, a line ending its body: `- its menu bar is "GameMenu"` (P10).
66
66
  * - Its bare `draggable`, `droppable`, `selectable`: `- it is draggable` ... lines too, the outline form's flags.
67
67
  * - A page's `locked`: `- its lock is "locked"` (epic `notebook` P1).
68
+ * - A page's or view's `thumbnail=`: `- its thumbnail is "..."` (epic `mockup` P16).
68
69
  */
69
70
  private template;
71
+ /** A page's or view's `thumbnail=`, as the line that says it: none on any other tag, or without one. */
72
+ private thumbnailLines;
70
73
  /** Is the tag `locked`, `<spell-page "x" locked>`? */
71
74
  private get isLocked();
72
75
  /**
@@ -80,7 +83,7 @@ export declare class SpellxTwin {
80
83
  * - Its sections draw as the docs pages' do, sticky and foldable (epic `notebook` P3, J1):
81
84
  * - each `##` heading and what follows it, a `<section>` the twin makes: see `markdownLines()`, `gatherSections()`
82
85
  * - each `<section label="...">` written at its top level, with the same look: see `withSectionLook()`
83
- * - `locked`: a line, `- its lock is "locked"`.
86
+ * - `locked`: a line, `- its lock is "locked"`; `thumbnail=`, `- its thumbnail is "..."`.
84
87
  * - Its own templates aren't in its block: the tokenizer lifted them out, to before it (`liftPageTemplates()`).
85
88
  */
86
89
  private drawnPage;
@@ -141,6 +141,7 @@ var SpellxTwin = class _SpellxTwin {
141
141
  * - Its `menu-bar=`, a line ending its body: `- its menu bar is "GameMenu"` (P10).
142
142
  * - Its bare `draggable`, `droppable`, `selectable`: `- it is draggable` ... lines too, the outline form's flags.
143
143
  * - A page's `locked`: `- its lock is "locked"` (epic `notebook` P1).
144
+ * - A page's or view's `thumbnail=`: `- its thumbnail is "..."` (epic `mockup` P16).
144
145
  */
145
146
  template() {
146
147
  const regrouped = this.block && (_SpellxTwin.withGroupsOpened(this.block) ?? _SpellxTwin.withStoriesAsBlocks(this.block));
@@ -153,7 +154,12 @@ var SpellxTwin = class _SpellxTwin {
153
154
  const menuBar = this.attribute("menu-bar") ? [[this.bullet(), ...this.expand(this.words.menuBar)]] : [];
154
155
  const flags = Object.entries(this.words.viewFlags).filter(([name]) => this.tag.attributes.some((attribute) => attribute.name === name)).map(([, line]) => [this.bullet(), ...this.expand(line)]);
155
156
  const locked = kind === "page" && this.isLocked ? [[this.bullet(), ...this.expand(this.words.pageLocked)]] : [];
156
- return this.lineAndBlock(this.expand(shape), [], [...menuBar, ...flags, ...locked]);
157
+ return this.lineAndBlock(this.expand(shape), [], [...menuBar, ...flags, ...locked, ...this.thumbnailLines()]);
158
+ }
159
+ /** A page's or view's `thumbnail=`, as the line that says it: none on any other tag, or without one. */
160
+ thumbnailLines() {
161
+ const isDrawable = this.tag.kind === "page" || this.tag.kind === "view";
162
+ return isDrawable && this.attribute("thumbnail") ? [[this.bullet(), ...this.expand(this.words.templateThumbnail)]] : [];
157
163
  }
158
164
  /** Is the tag `locked`, `<spell-page "x" locked>`? */
159
165
  get isLocked() {
@@ -170,7 +176,7 @@ var SpellxTwin = class _SpellxTwin {
170
176
  * - Its sections draw as the docs pages' do, sticky and foldable (epic `notebook` P3, J1):
171
177
  * - each `##` heading and what follows it, a `<section>` the twin makes: see `markdownLines()`, `gatherSections()`
172
178
  * - each `<section label="...">` written at its top level, with the same look: see `withSectionLook()`
173
- * - `locked`: a line, `- its lock is "locked"`.
179
+ * - `locked`: a line, `- its lock is "locked"`; `thumbnail=`, `- its thumbnail is "..."`.
174
180
  * - Its own templates aren't in its block: the tokenizer lifted them out, to before it (`liftPageTemplates()`).
175
181
  */
176
182
  drawnPage() {
@@ -216,6 +222,7 @@ var SpellxTwin = class _SpellxTwin {
216
222
  const lineOf = /* @__PURE__ */ __name((tokens) => new P.LineToken({ start: this.head.start, line: this.head.line, ch: this.head.ch, indent, tokens }), "lineOf");
217
223
  const items = [...members];
218
224
  if (this.isLocked) items.push(lineOf([this.bullet(), ...this.expand(this.words.pageLocked)]));
225
+ items.push(...this.thumbnailLines().map(lineOf));
219
226
  if (drawing.length) {
220
227
  items.push(lineOf([this.bullet(), ...this.expand(this.words.draw)]));
221
228
  _SpellxTwin.joinMarkup(drawing);
@@ -564,7 +571,7 @@ var SpellxTwin = class _SpellxTwin {
564
571
  this.attribute("tags") ? words.sitePageTags : "",
565
572
  // the state is a word of the line, not a text: `state="old"` is `, old`
566
573
  this.attribute("state") ? words.sitePageState.replace("{state}", this.attribute("state").text) : "",
567
- this.attribute("picture") ? words.sitePagePicture : "",
574
+ this.attribute("thumbnail") ? words.sitePageThumbnail : "",
568
575
  this.siteCardWords()
569
576
  ].join(" ")
570
577
  )
@@ -375,7 +375,24 @@ var BUILT_IN_TYPE_TABLE = [
375
375
  "```"
376
376
  ),
377
377
  rules: ["create_type", "draw_it"],
378
- members: []
378
+ slots: ["thumbnail"],
379
+ members: [
380
+ {
381
+ words: "thumbnail",
382
+ kind: "property",
383
+ datatype: "text",
384
+ stored: true,
385
+ declarable: true,
386
+ anyDatatype: true,
387
+ docstring: md(
388
+ "A picture of it, a file of its project: `snapshots/terms.jpg`.",
389
+ "- Drawn while it has no drawing of its own: writing one replaces it.",
390
+ "- A drawing can place it too: `draw its thumbnail`.",
391
+ "- A site's card shows it, unless the site's line names its own.",
392
+ '- Say it on its tag, `<spell-page "terms" thumbnail="snapshots/terms.jpg"/>`, or in its body, `- its thumbnail is "..."`.'
393
+ )
394
+ }
395
+ ]
379
396
  },
380
397
  {
381
398
  name: "page",
@@ -696,6 +713,12 @@ function loadBuiltInTypes(scope, words = SP.Language.default.words, { keepExisti
696
713
  if (!keepExisting || !type.variables.get(props.name, "LOCAL_ONLY")) type.variables.add(props);
697
714
  }, "addMember");
698
715
  if (entry.itemType) type.itemType = entry.itemType;
716
+ for (const slot of entry.slots ?? []) {
717
+ const said = (words.builtInMembers?.[slot] ?? []).map(builtInMemberName);
718
+ type.slots = [.../* @__PURE__ */ new Set([...type.slots ?? [], slot, ...said])];
719
+ if (said.length)
720
+ type.slotOutputs = { ...type.slotOutputs, ...Object.fromEntries(said.map((name) => [name, slot])) };
721
+ }
699
722
  for (const member of entry.members) {
700
723
  const local = words.builtInMembers?.[member.words];
701
724
  if (member.stored) {
@@ -723,7 +723,9 @@ function whatSpellCantSay({ about, collections, canDo }) {
723
723
  "What it can filter or sort: it wasn't tried, so `where` and `sorted by` load its rows and work here, up to the usual ceiling. If it can, add `- it filters by cuisine` or `- it sorts by title`."
724
724
  );
725
725
  if (/read only/.test(canDo.write))
726
- said.add("That it's read only: it isn't said for you, so a program's write compiles, and fails when it runs. If it is, add `- it is read only`.");
726
+ said.add(
727
+ "That it's read only: it isn't said for you, so a program's write compiles, and fails when it runs. If it is, add `- it is read only`."
728
+ );
727
729
  }
728
730
  return [...said];
729
731
  }
@@ -264,6 +264,11 @@ export type LanguageWords = {
264
264
  * - Its tokenizer reads a quoted name after it (`P.Tokenizer.quotedNameTags`).
265
265
  */
266
266
  exampleTag: string;
267
+ /**
268
+ * What a quoted word after a tag becomes, for a tag two languages spell alike (`P.Tokenizer.quotedNameTags`):
269
+ * Spanish's `<panel "Ajustes">` is `etiqueta="Ajustes"`, English's `<panel "Settings">` `label="Settings"`.
270
+ */
271
+ quotedNameTags?: Record<string, string>;
267
272
  /**
268
273
  * An app's widget defaults, a block of sample tags (epic `language` P29): `<ui-defaults>`, in every language --
269
274
  * see `ui_defaults`.
@@ -509,6 +514,10 @@ export type SpellxTwinWords = {
509
514
  * - Its value quoted: a built-in member written by hand has no list of values for a bare word to name.
510
515
  */
511
516
  pageLocked: string;
517
+ /**
518
+ * A page's or view's own `thumbnail=`: a line in its body, `its thumbnail is {quoted thumbnail}` (epic `mockup` P16).
519
+ */
520
+ templateThumbnail: string;
512
521
  /**
513
522
  * A section of a page that draws its body, as its drawing writes it (epic `notebook` P3, J1):
514
523
  * Spell UI's `<section>` in the language's words, sticky and foldable as the docs pages' sections are.
@@ -531,8 +540,8 @@ export type SpellxTwinWords = {
531
540
  sitePageTags: string;
532
541
  /** What a page's `state=` adds to its line. */
533
542
  sitePageState: string;
534
- /** What a page's `picture=` adds to its line. */
535
- sitePagePicture: string;
543
+ /** What a page's `thumbnail=` adds to its line. */
544
+ sitePageThumbnail: string;
536
545
  /** What a part's `row=` and `column=` add to its line: its place in its section of the site editor's board. */
537
546
  siteCardPlace: string;
538
547
  /** What a part's `color=` adds to its line. */
@@ -240,7 +240,7 @@ var englishWords = {
240
240
  state: "state",
241
241
  tab: "tab",
242
242
  tags: "tags",
243
- picture: "picture",
243
+ thumbnail: "thumbnail",
244
244
  row: "row",
245
245
  column: "column",
246
246
  color: "color"
@@ -296,6 +296,7 @@ var englishWords = {
296
296
  menuBar: "its menu bar is {quoted menu-bar}",
297
297
  group: "group {name}",
298
298
  pageLocked: 'its lock is "locked"',
299
+ templateThumbnail: "its thumbnail is {quoted thumbnail}",
299
300
  pageSection: {
300
301
  tag: "section",
301
302
  label: "label",
@@ -308,7 +309,7 @@ var englishWords = {
308
309
  sitePageTab: ", tab {quoted tab}",
309
310
  sitePageTags: ", tagged {quoted tags}",
310
311
  sitePageState: ", {state}",
311
- sitePagePicture: ", pictured in {quoted picture}",
312
+ sitePageThumbnail: ", thumbnail {quoted thumbnail}",
312
313
  siteCardPlace: ", in row {row} column {column}",
313
314
  siteCardColor: ", colored {color}",
314
315
  siteOverlay: "it has {a words} {words}",
@@ -110,6 +110,7 @@ var spanishWords = {
110
110
  appActions: { deshacer: "undo", rehacer: "redo" },
111
111
  // el ejemplo de una página, en un dibujo (`example_block`, épica `elemental-spell` P16)
112
112
  exampleTag: "ejemplo",
113
+ quotedNameTags: { panel: "etiqueta" },
113
114
  // an app\'s widget defaults, sample tags (`ui_defaults`, epic `language` P29): Spell UI\'s word, in every language
114
115
  defaultsTag: "ui-defaults",
115
116
  /** Spell's own old words, each an error naming its new one (epic `elemental-spell` P27): a view's parts are slots. */
@@ -265,8 +266,7 @@ var spanishWords = {
265
266
  pestaña: "tab",
266
267
  pestana: "tab",
267
268
  etiquetas: "tags",
268
- ilustración: "picture",
269
- ilustracion: "picture",
269
+ miniatura: "thumbnail",
270
270
  fila: "row",
271
271
  columna: "column",
272
272
  color: "color"
@@ -323,6 +323,7 @@ var spanishWords = {
323
323
  menuBar: "su barra de menú es {quoted menu-bar}",
324
324
  group: "grupo {name}",
325
325
  pageLocked: 'su candado es "bloqueado"',
326
+ templateThumbnail: "su miniatura es {quoted thumbnail}",
326
327
  // Spell UI's Spanish words for `<ui-section label sticky="stack" collapsible dividing level>`
327
328
  pageSection: {
328
329
  tag: "seccion",
@@ -336,7 +337,7 @@ var spanishWords = {
336
337
  sitePageTab: ", pestaña {quoted tab}",
337
338
  sitePageTags: ", etiquetada {quoted tags}",
338
339
  sitePageState: ", {state}",
339
- sitePagePicture: ", ilustrada en {quoted picture}",
340
+ sitePageThumbnail: ", miniatura {quoted thumbnail}",
340
341
  siteCardPlace: ", en la fila {row} columna {column}",
341
342
  siteCardColor: ", de color {color}",
342
343
  siteOverlay: "tiene {a words} {words}",
@@ -425,7 +426,9 @@ var spanishWords = {
425
426
  timestamp: ["marca de tiempo"],
426
427
  selection: ["selección", "seleccion"],
427
428
  // una página bloqueada: `su candado es bloqueado` (épica `notebook` P1)
428
- lock: ["candado"]
429
+ lock: ["candado"],
430
+ // la imagen de una página o vista sin contenido (épica `mockup` P16)
431
+ thumbnail: ["miniatura"]
429
432
  },
430
433
  builtInMemberValues: {
431
434
  // lo que vale el candado de una página (épica `notebook` I1)
@@ -163,7 +163,7 @@ var _SpellStatement = class _SpellStatement extends (_a = P.Sequence, _operandIn
163
163
  if (!member.declarable) {
164
164
  return _SpellStatement.refuse(match, language.parserMessage("cant-add-built-in-member", params));
165
165
  }
166
- if (datatype && datatype !== member.datatype) {
166
+ if (datatype && datatype !== member.datatype && !member.anyDatatype) {
167
167
  const message = language.parserMessage("cant-retype-built-in-member", {
168
168
  ...params,
169
169
  datatype: language.wordFor(datatype),
@@ -50,6 +50,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
50
50
  // src/spell/rules/classes/DrawSlot.ts
51
51
  import { proto } from "spell/util";
52
52
  import { P } from "../../../parser/index.js";
53
+ import { SP } from "../../index.js";
53
54
  import { Priority } from "../rules.types.js";
54
55
  import { Wording } from "../expressions/index.js";
55
56
  import { DrawIt } from "./index.js";
@@ -106,7 +107,11 @@ var _DrawSlot = class _DrawSlot extends (_a2 = SpellStatement, _alias_dec2 = [pr
106
107
  if (Wording.reads(scope, "draw_method", words, "draw_its_placeholder")) return void 0;
107
108
  const slot = DrawIt.slotName(`${match.groups.slot.value}`);
108
109
  const type = _DrawSlot.viewIn(scope);
109
- if (type && !type.hasSlot(slot) && type.getMember(`${match.groups.slot.value}`)) return void 0;
110
+ const member = type?.getMember(`${match.groups.slot.value}`);
111
+ if (type && !type.hasSlot(slot) && member) return void 0;
112
+ if (member instanceof P.ScopeVariable && member.datatype !== "text") {
113
+ if (SP.builtInStoredMember(type, `${match.groups.slot.value}`)?.member.anyDatatype) return void 0;
114
+ }
110
115
  match.data.slot = type?.slotOutput(slot) ?? slot;
111
116
  return match;
112
117
  }
@@ -4,8 +4,8 @@ import { type SitePageEntry } from "./sites.shared";
4
4
  /**
5
5
  * `site_page` rule: one of a site's pages, and its address (epic `mockup` P1).
6
6
  * - e.g. `- it has a film page at "/films/:film", named "Film"`, in a site's body
7
- * - e.g. `- it has a film page at "/films/:film", named "Film", old, pictured in "snapshots/film.png"`:
8
- * how far along it is, and a picture of it, a file of the project (epic `mockup` P13, T14)
7
+ * - e.g. `- it has a film page at "/films/:film", named "Film", old, thumbnail "snapshots/film.png"`:
8
+ * how far along it is, and a thumbnail of it, a file of the project (epic `mockup` P13, T14)
9
9
  * - e.g. `- it has a film page at "/films/:film", in row 2 column 3, colored blue`:
10
10
  * where its card sits in its section of the site editor's board, and its colour (epic `mockup` T31);
11
11
  * any part's line may end so
@@ -27,7 +27,7 @@ import { type SitePageEntry } from "./sites.shared";
27
27
  * - Only in a site's body; anywhere else, `it has a ...` is a property.
28
28
  * - Compiles to nothing by itself: `create_site` lists every page in its class, `static pages = [...]`.
29
29
  */
30
- export declare class SitePage extends SpellStatement<"type|part|address|title?|tab?|tags?|state?|picture?|row?|column?|color?|with_nested_statements?|body?", {
30
+ export declare class SitePage extends SpellStatement<"type|part|address|title?|tab?|tags?|state?|thumbnail?|row?|column?|color?|with_nested_statements?|body?", {
31
31
  entry?: SitePageEntry;
32
32
  }> {
33
33
  static priority: number;
@@ -98,7 +98,7 @@ var _SitePage = class _SitePage extends (_a = SpellStatement, _priority_dec = [p
98
98
  const tab = match.groups.tab ? textIn(match.groups.tab) : void 0;
99
99
  const tags = match.groups.tags ? tagsIn(textIn(match.groups.tags)) : void 0;
100
100
  const state = Wording.meaningOf(match.groups.state);
101
- const picture = match.groups.picture ? textIn(match.groups.picture) : void 0;
101
+ const thumbnail = match.groups.thumbnail ? textIn(match.groups.thumbnail) : void 0;
102
102
  const card = cardDetailsOf(match.groups);
103
103
  if (!card) return SpellStatement.refuse(match, cardPlaceMessage(language, match.groups));
104
104
  match.data.entry = {
@@ -109,7 +109,7 @@ var _SitePage = class _SitePage extends (_a = SpellStatement, _priority_dec = [p
109
109
  ...tab && { tab },
110
110
  ...tags?.length && { tags },
111
111
  ...state && { state },
112
- ...picture && { picture },
112
+ ...thumbnail && { thumbnail },
113
113
  ...card,
114
114
  ...params.length && { params }
115
115
  };
@@ -7,7 +7,7 @@ import { SitePage } from "./SitePage.js";
7
7
  import { ShowSitePart } from "./ShowSitePart.js";
8
8
  import { SiteAddressOf } from "./SiteAddressOf.js";
9
9
  import { SitePartWords } from "./SitePartWords.js";
10
- var PAGE_DETAILS = "(, named {title:text})? (, tab {tab:text})? (, tagged {tags:text})? (, {state:site_page_state})? (, pictured in {picture:text})?";
10
+ var PAGE_DETAILS = "(, named {title:text})? (, tab {tab:text})? (, tagged {tags:text})? (, {state:site_page_state})? (, thumbnail {thumbnail:text})?";
11
11
  var CARD_DETAILS = "(, in row {row:number} column {column:number})? (, (colored|coloured) {color:site_card_color})?";
12
12
  sites.addRule(Synonyms.specialize({ ruleName: "site_dialog" }), { syntax: "(dialog|modal)" });
13
13
  sites.addRule(Synonyms.specialize({ ruleName: "site_sidebar" }), { syntax: "(sidebar|flyout)" });
@@ -8,7 +8,7 @@ import { ShowSitePart } from "./ShowSitePart.js";
8
8
  import { SiteAddressOf } from "./SiteAddressOf.js";
9
9
  import { SitePartWords } from "./SitePartWords.js";
10
10
  var sitesEs = new SpellParser({ module: "sites" });
11
- var PAGE_DETAILS = "(, (llamada|llamado) {title:text})? (, pestaña {tab:text})? (, (etiquetada|etiquetado) {tags:text})? (, {state:site_page_state})? (, (ilustrada|ilustrado) en {picture:text})?";
11
+ var PAGE_DETAILS = "(, (llamada|llamado) {title:text})? (, pestaña {tab:text})? (, (etiquetada|etiquetado) {tags:text})? (, {state:site_page_state})? (, miniatura {thumbnail:text})?";
12
12
  var A = "(un|una)";
13
13
  sitesEs.addRule(Synonyms.specialize({ ruleName: "site_dialog" }), { syntax: "(diálogo|dialogo|modal)" });
14
14
  sitesEs.addRule(Synonyms.specialize({ ruleName: "site_sidebar" }), { syntax: "(panel|lateral)" });
@@ -20,8 +20,8 @@ export type SitePageEntry = {
20
20
  tags?: string[];
21
21
  /** how far along it is, if the line says: `old`, `new`, `mocked` or `built` (epic `mockup` P13, T14) */
22
22
  state?: string;
23
- /** a picture of it, if the line names one: a file of the project, `snapshots/films.png` */
24
- picture?: string;
23
+ /** a thumbnail of it, if the line names one: a file of the project, `snapshots/films.png` */
24
+ thumbnail?: string;
25
25
  /** which row of its section on the site editor's board its card is in, from 1, if the line says */
26
26
  row?: number;
27
27
  /** which column of its section, from 1 */
@@ -419,6 +419,8 @@ export type BuiltInType = {
419
419
  superType?: P.Datatype;
420
420
  /** What it holds, if it's a sort of list, e.g. `character` for `text` -- see `P.TypeScope.itemType`. */
421
421
  itemType?: P.Datatype;
422
+ /** Slots every type built on it can place, by the name they compile by: a view's `thumbnail`. */
423
+ slots?: string[];
422
424
  /** One-line summary, for the Type Explorer, e.g. `counts from 1`. */
423
425
  detail?: string;
424
426
  /** Its docs, as markdown. */
@@ -472,6 +474,11 @@ export type BuiltInMember = {
472
474
  * - Without it, no type may declare it, e.g. `id` -- see `SpellStatement.refuseBuiltInType()`.
473
475
  */
474
476
  declarable?: true;
477
+ /**
478
+ * A `declarable` member a type may declare with any datatype of its own:
479
+ * `its "thumbnail" is a thumbnail`, a view's own data, is fine for all a view's built-in `thumbnail` is text.
480
+ */
481
+ anyDatatype?: true;
475
482
  /** Built-in rules which spell it, by name, e.g. `list_shuffle` -- their syntax shows in the Type Explorer. */
476
483
  rules?: string[];
477
484
  /** Its docs, as markdown. */
@@ -4378,7 +4378,7 @@
4378
4378
  "ruleNames": ["draw_slot_of"],
4379
4379
  "internal": false,
4380
4380
  "file": "src/spell/rules/classes/DrawSlot.ts",
4381
- "line": 17,
4381
+ "line": 18,
4382
4382
  "purpose": "Draw ANOTHER thing's slot, in place of its usual drawing (epic `data` P19).",
4383
4383
  "syntaxes": [
4384
4384
  {
@@ -4392,7 +4392,7 @@
4392
4392
  "ruleNames": ["draw_slot"],
4393
4393
  "internal": false,
4394
4394
  "file": "src/spell/rules/classes/DrawSlot.ts",
4395
- "line": 73,
4395
+ "line": 74,
4396
4396
  "purpose": "PLACE one of a view's slots in its drawing (epic `elemental-spell` P5, Q55, Q56; P27).",
4397
4397
  "syntaxes": [
4398
4398
  {
@@ -8343,16 +8343,16 @@
8343
8343
  "purpose": "One of a site's pages, and its address (epic `mockup` P1).",
8344
8344
  "syntaxes": [
8345
8345
  {
8346
- "syntax": "{type:subject_it} tiene (un|una) {part:site_part_words} en {address:text} (, (llamada|llamado) {title:text})? (, pestaña {tab:text})? (, (etiquetada|etiquetado) {tags:text})? (, {state:site_page_state})? (, (ilustrada|ilustrado) en {picture:text})? (, en la fila {row:number} columna {column:number})? (, de color {color:site_card_color})? {with_nested_statements}?"
8346
+ "syntax": "{type:subject_it} tiene (un|una) {part:site_part_words} en {address:text} (, (llamada|llamado) {title:text})? (, pestaña {tab:text})? (, (etiquetada|etiquetado) {tags:text})? (, {state:site_page_state})? (, miniatura {thumbnail:text})? (, en la fila {row:number} columna {column:number})? (, de color {color:site_card_color})? {with_nested_statements}?"
8347
8347
  },
8348
8348
  {
8349
- "syntax": "{type:subject_implied} tiene (un|una) {part:site_part_words} en {address:text} (, (llamada|llamado) {title:text})? (, pestaña {tab:text})? (, (etiquetada|etiquetado) {tags:text})? (, {state:site_page_state})? (, (ilustrada|ilustrado) en {picture:text})? (, en la fila {row:number} columna {column:number})? (, de color {color:site_card_color})? {with_nested_statements}?"
8349
+ "syntax": "{type:subject_implied} tiene (un|una) {part:site_part_words} en {address:text} (, (llamada|llamado) {title:text})? (, pestaña {tab:text})? (, (etiquetada|etiquetado) {tags:text})? (, {state:site_page_state})? (, miniatura {thumbnail:text})? (, en la fila {row:number} columna {column:number})? (, de color {color:site_card_color})? {with_nested_statements}?"
8350
8350
  },
8351
8351
  {
8352
- "syntax": "{type:subject_it} tiene (un|una) {part:quoted_member} en {address:text} (, (llamada|llamado) {title:text})? (, pestaña {tab:text})? (, (etiquetada|etiquetado) {tags:text})? (, {state:site_page_state})? (, (ilustrada|ilustrado) en {picture:text})? (, en la fila {row:number} columna {column:number})? (, de color {color:site_card_color})? {with_nested_statements}?"
8352
+ "syntax": "{type:subject_it} tiene (un|una) {part:quoted_member} en {address:text} (, (llamada|llamado) {title:text})? (, pestaña {tab:text})? (, (etiquetada|etiquetado) {tags:text})? (, {state:site_page_state})? (, miniatura {thumbnail:text})? (, en la fila {row:number} columna {column:number})? (, de color {color:site_card_color})? {with_nested_statements}?"
8353
8353
  },
8354
8354
  {
8355
- "syntax": "{type:subject_implied} tiene (un|una) {part:quoted_member} en {address:text} (, (llamada|llamado) {title:text})? (, pestaña {tab:text})? (, (etiquetada|etiquetado) {tags:text})? (, {state:site_page_state})? (, (ilustrada|ilustrado) en {picture:text})? (, en la fila {row:number} columna {column:number})? (, de color {color:site_card_color})? {with_nested_statements}?"
8355
+ "syntax": "{type:subject_implied} tiene (un|una) {part:quoted_member} en {address:text} (, (llamada|llamado) {title:text})? (, pestaña {tab:text})? (, (etiquetada|etiquetado) {tags:text})? (, {state:site_page_state})? (, miniatura {thumbnail:text})? (, en la fila {row:number} columna {column:number})? (, de color {color:site_card_color})? {with_nested_statements}?"
8356
8356
  }
8357
8357
  ],
8358
8358
  "aliases": ["statement"]
@@ -4368,7 +4368,7 @@
4368
4368
  "ruleNames": ["draw_slot_of"],
4369
4369
  "internal": false,
4370
4370
  "file": "src/spell/rules/classes/DrawSlot.ts",
4371
- "line": 17,
4371
+ "line": 18,
4372
4372
  "purpose": "Draw ANOTHER thing's slot, in place of its usual drawing (epic `data` P19).",
4373
4373
  "syntaxes": [
4374
4374
  {
@@ -4385,7 +4385,7 @@
4385
4385
  "ruleNames": ["draw_slot"],
4386
4386
  "internal": false,
4387
4387
  "file": "src/spell/rules/classes/DrawSlot.ts",
4388
- "line": 73,
4388
+ "line": 74,
4389
4389
  "purpose": "PLACE one of a view's slots in its drawing (epic `elemental-spell` P5, Q55, Q56; P27).",
4390
4390
  "syntaxes": [
4391
4391
  {
@@ -8380,16 +8380,16 @@
8380
8380
  "purpose": "One of a site's pages, and its address (epic `mockup` P1).",
8381
8381
  "syntaxes": [
8382
8382
  {
8383
- "syntax": "{type:subject_it} has (a|an) {part:site_part_words} at {address:text} (, named {title:text})? (, tab {tab:text})? (, tagged {tags:text})? (, {state:site_page_state})? (, pictured in {picture:text})? (, in row {row:number} column {column:number})? (, (colored|coloured) {color:site_card_color})? {with_nested_statements}?"
8383
+ "syntax": "{type:subject_it} has (a|an) {part:site_part_words} at {address:text} (, named {title:text})? (, tab {tab:text})? (, tagged {tags:text})? (, {state:site_page_state})? (, thumbnail {thumbnail:text})? (, in row {row:number} column {column:number})? (, (colored|coloured) {color:site_card_color})? {with_nested_statements}?"
8384
8384
  },
8385
8385
  {
8386
- "syntax": "{type:subject_implied} has (a|an) {part:site_part_words} at {address:text} (, named {title:text})? (, tab {tab:text})? (, tagged {tags:text})? (, {state:site_page_state})? (, pictured in {picture:text})? (, in row {row:number} column {column:number})? (, (colored|coloured) {color:site_card_color})? {with_nested_statements}?"
8386
+ "syntax": "{type:subject_implied} has (a|an) {part:site_part_words} at {address:text} (, named {title:text})? (, tab {tab:text})? (, tagged {tags:text})? (, {state:site_page_state})? (, thumbnail {thumbnail:text})? (, in row {row:number} column {column:number})? (, (colored|coloured) {color:site_card_color})? {with_nested_statements}?"
8387
8387
  },
8388
8388
  {
8389
- "syntax": "{type:subject_it} has (a|an) {part:quoted_member} at {address:text} (, named {title:text})? (, tab {tab:text})? (, tagged {tags:text})? (, {state:site_page_state})? (, pictured in {picture:text})? (, in row {row:number} column {column:number})? (, (colored|coloured) {color:site_card_color})? {with_nested_statements}?"
8389
+ "syntax": "{type:subject_it} has (a|an) {part:quoted_member} at {address:text} (, named {title:text})? (, tab {tab:text})? (, tagged {tags:text})? (, {state:site_page_state})? (, thumbnail {thumbnail:text})? (, in row {row:number} column {column:number})? (, (colored|coloured) {color:site_card_color})? {with_nested_statements}?"
8390
8390
  },
8391
8391
  {
8392
- "syntax": "{type:subject_implied} has (a|an) {part:quoted_member} at {address:text} (, named {title:text})? (, tab {tab:text})? (, tagged {tags:text})? (, {state:site_page_state})? (, pictured in {picture:text})? (, in row {row:number} column {column:number})? (, (colored|coloured) {color:site_card_color})? {with_nested_statements}?"
8392
+ "syntax": "{type:subject_implied} has (a|an) {part:quoted_member} at {address:text} (, named {title:text})? (, tab {tab:text})? (, tagged {tags:text})? (, {state:site_page_state})? (, thumbnail {thumbnail:text})? (, in row {row:number} column {column:number})? (, (colored|coloured) {color:site_card_color})? {with_nested_statements}?"
8393
8393
  }
8394
8394
  ],
8395
8395
  "aliases": ["statement"]
@@ -376,7 +376,8 @@ var SpellxView = class _SpellxView {
376
376
  element(token) {
377
377
  const children = token.children ?? [];
378
378
  const unary = !!token.isUnaryTag;
379
- const headEnd = unary || !children.length ? token.end : children[0].start;
379
+ const afterHead = children[token.quotedContents?.length ?? 0];
380
+ const headEnd = unary || !afterHead ? token.end : afterHead.start;
380
381
  return {
381
382
  kind: "element",
382
383
  name: token.tagName,
@@ -43,6 +43,7 @@ import { accordionVocabulary } from "./UIAccordion.en";
43
43
  export declare class UIAccordion extends E.UIComponent<typeof accordionVocabulary> {
44
44
  static vocabulary: {
45
45
  readonly tag: "ui-accordion";
46
+ readonly icon: "bars";
46
47
  readonly topics: readonly ["containers", "navigation", "data display", "modules"];
47
48
  readonly aka: readonly ["collapse", "collapsible", "disclosure", "expander", "details", "faq"];
48
49
  readonly skeleton: "long line, long line, long line";
@@ -14,6 +14,7 @@ import { adVocabulary } from "./UIAd.en";
14
14
  export declare class UIAd extends E.UIComponent<typeof adVocabulary> {
15
15
  static vocabulary: {
16
16
  readonly tag: "ui-ad";
17
+ readonly icon: "bullhorn";
17
18
  readonly topics: readonly ["media", "layout", "views"];
18
19
  readonly aka: readonly ["advertisement", "banner ad", "ad slot"];
19
20
  readonly skeleton: "18 x 15";
@@ -20,6 +20,7 @@ import { breadcrumbVocabulary } from "./UIBreadcrumb.en";
20
20
  export declare class UIBreadcrumb extends E.UIComponent<typeof breadcrumbVocabulary> {
21
21
  static vocabulary: {
22
22
  readonly tag: "ui-breadcrumb";
23
+ readonly icon: "angle right";
23
24
  readonly topics: readonly ["navigation", "collections"];
24
25
  readonly aka: readonly ["crumb", "breadcrumb item"];
25
26
  readonly noun: "section";
@@ -24,6 +24,7 @@ import { breadcrumbsVocabulary } from "./UIBreadcrumbs.en";
24
24
  export declare class UIBreadcrumbs extends E.UIComponent<typeof breadcrumbsVocabulary> {
25
25
  static vocabulary: {
26
26
  readonly tag: "ui-breadcrumbs";
27
+ readonly icon: "angle double right";
27
28
  readonly topics: readonly ["navigation", "basic", "collections"];
28
29
  readonly aka: readonly ["crumbs", "path", "trail", "location"];
29
30
  readonly skeleton: "medium line";
@@ -39,6 +39,8 @@ import { ButtonFallback } from "./UIButton.fallback";
39
39
  export declare class UIButton extends E.UIComponent<typeof buttonVocabulary> {
40
40
  static vocabulary: {
41
41
  readonly tag: "ui-button";
42
+ readonly icon: "hand point up outline";
43
+ readonly snippet: "<ui-button>Click me</ui-button>";
42
44
  readonly formControl: true;
43
45
  readonly topics: readonly ["buttons", "basic", "controls", "forms", "elements"];
44
46
  readonly aka: readonly ["btn", "action", "submit", "link button"];
@@ -50,8 +52,9 @@ export declare class UIButton extends E.UIComponent<typeof buttonVocabulary> {
50
52
  readonly name: "size";
51
53
  readonly group: "appearance";
52
54
  readonly kind: "size";
55
+ readonly values: readonly ["mini", "tiny", "small", "medium", "large", "big", "huge", "massive", "poster"];
53
56
  readonly default: "medium";
54
- readonly description: "How big it is, from `mini` to `massive`. The default is `medium`.";
57
+ readonly description: string;
55
58
  }, {
56
59
  readonly name: "color";
57
60
  readonly group: "appearance";
@@ -65,8 +68,10 @@ export declare class UIButton extends E.UIComponent<typeof buttonVocabulary> {
65
68
  readonly name: "appearance";
66
69
  readonly group: "appearance";
67
70
  readonly kind: "multiple";
68
- readonly classes: {};
69
- readonly values: readonly ["basic", "tertiary", "circular"];
71
+ readonly values: readonly ["basic", "tertiary", "circular", "pill", "raised"];
72
+ readonly classes: {
73
+ readonly pill: "circular";
74
+ };
70
75
  readonly replaces: readonly [{
71
76
  readonly from: "basic";
72
77
  readonly value: "basic";