@resumekit/react 0.0.0-stage → 0.2.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 (667) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +74 -2
  3. package/dist/PagedSheet.d.ts +63 -0
  4. package/dist/PagedSheet.d.ts.map +1 -0
  5. package/dist/PagedSheet.js +584 -0
  6. package/dist/TemplateDocument.d.ts +33 -0
  7. package/dist/TemplateDocument.d.ts.map +1 -0
  8. package/dist/TemplateDocument.js +33 -0
  9. package/dist/autosave-context.d.ts +37 -0
  10. package/dist/autosave-context.d.ts.map +1 -0
  11. package/dist/autosave-context.js +24 -0
  12. package/dist/collections/AuthoredItems.d.ts +9 -0
  13. package/dist/collections/AuthoredItems.d.ts.map +1 -0
  14. package/dist/collections/AuthoredItems.js +116 -0
  15. package/dist/collections/Collection.d.ts +48 -0
  16. package/dist/collections/Collection.d.ts.map +1 -0
  17. package/dist/collections/Collection.js +24 -0
  18. package/dist/collections/CollectionItems.d.ts +94 -0
  19. package/dist/collections/CollectionItems.d.ts.map +1 -0
  20. package/dist/collections/CollectionItems.js +91 -0
  21. package/dist/collections/EntryOverlay.d.ts +38 -0
  22. package/dist/collections/EntryOverlay.d.ts.map +1 -0
  23. package/dist/collections/EntryOverlay.js +51 -0
  24. package/dist/collections/SortableItems.d.ts +52 -0
  25. package/dist/collections/SortableItems.d.ts.map +1 -0
  26. package/dist/collections/SortableItems.js +80 -0
  27. package/dist/collections/authoring-context.d.ts +69 -0
  28. package/dist/collections/authoring-context.d.ts.map +1 -0
  29. package/dist/collections/authoring-context.js +36 -0
  30. package/dist/collections/collection.css +462 -0
  31. package/dist/collections/entry-text.d.ts +23 -0
  32. package/dist/collections/entry-text.d.ts.map +1 -0
  33. package/dist/collections/entry-text.js +35 -0
  34. package/dist/collections/icons.d.ts +53 -0
  35. package/dist/collections/icons.d.ts.map +1 -0
  36. package/dist/collections/icons.js +56 -0
  37. package/dist/collections/library/LibraryAction.d.ts +24 -0
  38. package/dist/collections/library/LibraryAction.d.ts.map +1 -0
  39. package/dist/collections/library/LibraryAction.js +122 -0
  40. package/dist/collections/library/LibraryPicker.d.ts +42 -0
  41. package/dist/collections/library/LibraryPicker.d.ts.map +1 -0
  42. package/dist/collections/library/LibraryPicker.js +94 -0
  43. package/dist/collections/library/library.css +435 -0
  44. package/dist/collections/overlay-context.d.ts +34 -0
  45. package/dist/collections/overlay-context.d.ts.map +1 -0
  46. package/dist/collections/overlay-context.js +13 -0
  47. package/dist/collections/preload.d.ts +19 -0
  48. package/dist/collections/preload.d.ts.map +1 -0
  49. package/dist/collections/preload.js +23 -0
  50. package/dist/collections/selection-context.d.ts +25 -0
  51. package/dist/collections/selection-context.d.ts.map +1 -0
  52. package/dist/collections/selection-context.js +49 -0
  53. package/dist/collections/useCollection.d.ts +58 -0
  54. package/dist/collections/useCollection.d.ts.map +1 -0
  55. package/dist/collections/useCollection.js +90 -0
  56. package/dist/collections/useCustomEntries.d.ts +18 -0
  57. package/dist/collections/useCustomEntries.d.ts.map +1 -0
  58. package/dist/collections/useCustomEntries.js +56 -0
  59. package/dist/collections/useSectionCollection.d.ts +48 -0
  60. package/dist/collections/useSectionCollection.d.ts.map +1 -0
  61. package/dist/collections/useSectionCollection.js +169 -0
  62. package/dist/document.css +186 -0
  63. package/dist/export-bundle/bundle.css +2 -0
  64. package/dist/export-bundle/bundle.js +67 -0
  65. package/dist/fields/date-issues-context.d.ts +20 -0
  66. package/dist/fields/date-issues-context.d.ts.map +1 -0
  67. package/dist/fields/date-issues-context.js +68 -0
  68. package/dist/fields/field-registry.d.ts +163 -0
  69. package/dist/fields/field-registry.d.ts.map +1 -0
  70. package/dist/fields/field-registry.js +175 -0
  71. package/dist/fonts/README.md +207 -0
  72. package/dist/fonts/arimo-400.woff2 +0 -0
  73. package/dist/fonts/arimo-400i.woff2 +0 -0
  74. package/dist/fonts/arimo-700.woff2 +0 -0
  75. package/dist/fonts/arimo-700i.woff2 +0 -0
  76. package/dist/fonts/bitter-400.woff2 +0 -0
  77. package/dist/fonts/bitter-400i.woff2 +0 -0
  78. package/dist/fonts/bitter-700.woff2 +0 -0
  79. package/dist/fonts/bitter-700i.woff2 +0 -0
  80. package/dist/fonts/cabin-700.woff2 +0 -0
  81. package/dist/fonts/carlito-400.woff2 +0 -0
  82. package/dist/fonts/carlito-400i.woff2 +0 -0
  83. package/dist/fonts/carlito-700.woff2 +0 -0
  84. package/dist/fonts/carlito-700i.woff2 +0 -0
  85. package/dist/fonts/clearsans-400.woff2 +0 -0
  86. package/dist/fonts/clearsans-400i.woff2 +0 -0
  87. package/dist/fonts/cochineal-400.woff2 +0 -0
  88. package/dist/fonts/cochineal-400i.woff2 +0 -0
  89. package/dist/fonts/cochineal-700.woff2 +0 -0
  90. package/dist/fonts/ebgaramond-400.woff2 +0 -0
  91. package/dist/fonts/ebgaramond-400i.woff2 +0 -0
  92. package/dist/fonts/ebgaramond-700.woff2 +0 -0
  93. package/dist/fonts/ebgaramond-700i.woff2 +0 -0
  94. package/dist/fonts/fonts.css +622 -0
  95. package/dist/fonts/gelasio-400.woff2 +0 -0
  96. package/dist/fonts/gelasio-400i.woff2 +0 -0
  97. package/dist/fonts/gelasio-700.woff2 +0 -0
  98. package/dist/fonts/gelasio-700i.woff2 +0 -0
  99. package/dist/fonts/heros-400.woff2 +0 -0
  100. package/dist/fonts/heros-400i.woff2 +0 -0
  101. package/dist/fonts/heros-700.woff2 +0 -0
  102. package/dist/fonts/heros-700i.woff2 +0 -0
  103. package/dist/fonts/inconsolata-400.woff2 +0 -0
  104. package/dist/fonts/lato-100.woff2 +0 -0
  105. package/dist/fonts/lato-300.woff2 +0 -0
  106. package/dist/fonts/lato-300i.woff2 +0 -0
  107. package/dist/fonts/lato-400.woff2 +0 -0
  108. package/dist/fonts/lato-400i.woff2 +0 -0
  109. package/dist/fonts/lato-700.woff2 +0 -0
  110. package/dist/fonts/lato-700i.woff2 +0 -0
  111. package/dist/fonts/licenses/arimo-OFL.txt +93 -0
  112. package/dist/fonts/licenses/bitter-OFL.txt +94 -0
  113. package/dist/fonts/licenses/cabin-OFL.txt +93 -0
  114. package/dist/fonts/licenses/carlito-OFL.txt +94 -0
  115. package/dist/fonts/licenses/clearsans-APACHE-2.0.txt +205 -0
  116. package/dist/fonts/licenses/cochineal-OFL.txt +96 -0
  117. package/dist/fonts/licenses/ebgaramond-OFL.txt +93 -0
  118. package/dist/fonts/licenses/gelasio-OFL.txt +93 -0
  119. package/dist/fonts/licenses/heros-GUST-FONT-LICENSE.txt +30 -0
  120. package/dist/fonts/licenses/inconsolata-OFL.txt +93 -0
  121. package/dist/fonts/licenses/latinmodern-GUST-FONT-LICENSE.txt +35 -0
  122. package/dist/fonts/licenses/lato-OFL.txt +93 -0
  123. package/dist/fonts/licenses/ptserif-OFL.txt +93 -0
  124. package/dist/fonts/licenses/raleway-OFL.txt +93 -0
  125. package/dist/fonts/licenses/roboto-OFL.txt +93 -0
  126. package/dist/fonts/licenses/robotocondensed-OFL.txt +93 -0
  127. package/dist/fonts/licenses/robotoslab-APACHE-2.0.txt +205 -0
  128. package/dist/fonts/licenses/sourcesans3-OFL.txt +93 -0
  129. package/dist/fonts/licenses/tinos-OFL.txt +93 -0
  130. package/dist/fonts/lmmono-400.woff2 +0 -0
  131. package/dist/fonts/lmroman-400.woff2 +0 -0
  132. package/dist/fonts/lmroman-400i.woff2 +0 -0
  133. package/dist/fonts/lmroman-700.woff2 +0 -0
  134. package/dist/fonts/lmroman-700i.woff2 +0 -0
  135. package/dist/fonts/lmromancaps-400.woff2 +0 -0
  136. package/dist/fonts/ptserif-400.woff2 +0 -0
  137. package/dist/fonts/ptserif-400i.woff2 +0 -0
  138. package/dist/fonts/ptserif-700.woff2 +0 -0
  139. package/dist/fonts/ptserif-700i.woff2 +0 -0
  140. package/dist/fonts/raleway-300.woff2 +0 -0
  141. package/dist/fonts/raleway-400.woff2 +0 -0
  142. package/dist/fonts/raleway-400i.woff2 +0 -0
  143. package/dist/fonts/raleway-500.woff2 +0 -0
  144. package/dist/fonts/raleway-700.woff2 +0 -0
  145. package/dist/fonts/roboto-100.woff2 +0 -0
  146. package/dist/fonts/roboto-300.woff2 +0 -0
  147. package/dist/fonts/roboto-300i.woff2 +0 -0
  148. package/dist/fonts/roboto-400.woff2 +0 -0
  149. package/dist/fonts/roboto-400i.woff2 +0 -0
  150. package/dist/fonts/roboto-700.woff2 +0 -0
  151. package/dist/fonts/robotocondensed-400.woff2 +0 -0
  152. package/dist/fonts/robotocondensed-400i.woff2 +0 -0
  153. package/dist/fonts/robotocondensed-700.woff2 +0 -0
  154. package/dist/fonts/robotocondensed-700i.woff2 +0 -0
  155. package/dist/fonts/robotoslab-700.woff2 +0 -0
  156. package/dist/fonts/sourcesans3-300.woff2 +0 -0
  157. package/dist/fonts/sourcesans3-300i.woff2 +0 -0
  158. package/dist/fonts/sourcesans3-400.woff2 +0 -0
  159. package/dist/fonts/sourcesans3-400i.woff2 +0 -0
  160. package/dist/fonts/sourcesans3-700.woff2 +0 -0
  161. package/dist/fonts/tinos-400.woff2 +0 -0
  162. package/dist/fonts/tinos-400i.woff2 +0 -0
  163. package/dist/fonts/tinos-700.woff2 +0 -0
  164. package/dist/fonts/tinos-700i.woff2 +0 -0
  165. package/dist/i18n/README.md +52 -0
  166. package/dist/i18n/catalog.d.ts +39 -0
  167. package/dist/i18n/catalog.d.ts.map +1 -0
  168. package/dist/i18n/catalog.js +43 -0
  169. package/dist/i18n/format.d.ts +14 -0
  170. package/dist/i18n/format.d.ts.map +1 -0
  171. package/dist/i18n/format.js +38 -0
  172. package/dist/i18n/index.d.ts +4 -0
  173. package/dist/i18n/index.d.ts.map +1 -0
  174. package/dist/i18n/index.js +3 -0
  175. package/dist/i18n/locale-context.d.ts +43 -0
  176. package/dist/i18n/locale-context.d.ts.map +1 -0
  177. package/dist/i18n/locale-context.js +74 -0
  178. package/dist/i18n/locales/en.json +337 -0
  179. package/dist/i18n/locales/es.json +337 -0
  180. package/dist/index.d.ts +101 -0
  181. package/dist/index.d.ts.map +1 -0
  182. package/dist/index.js +99 -0
  183. package/dist/kit/BulletSkillGroup.d.ts +20 -0
  184. package/dist/kit/BulletSkillGroup.d.ts.map +1 -0
  185. package/dist/kit/BulletSkillGroup.js +25 -0
  186. package/dist/kit/DescribedEntries.d.ts +41 -0
  187. package/dist/kit/DescribedEntries.d.ts.map +1 -0
  188. package/dist/kit/DescribedEntries.js +57 -0
  189. package/dist/kit/DocumentSection.d.ts +58 -0
  190. package/dist/kit/DocumentSection.d.ts.map +1 -0
  191. package/dist/kit/DocumentSection.js +38 -0
  192. package/dist/kit/GridSkillGroup.d.ts +12 -0
  193. package/dist/kit/GridSkillGroup.d.ts.map +1 -0
  194. package/dist/kit/GridSkillGroup.js +14 -0
  195. package/dist/kit/Heading.d.ts +11 -0
  196. package/dist/kit/Heading.d.ts.map +1 -0
  197. package/dist/kit/Heading.js +10 -0
  198. package/dist/kit/InitialsAvatar.d.ts +17 -0
  199. package/dist/kit/InitialsAvatar.d.ts.map +1 -0
  200. package/dist/kit/InitialsAvatar.js +18 -0
  201. package/dist/kit/InitialsChip.d.ts +16 -0
  202. package/dist/kit/InitialsChip.d.ts.map +1 -0
  203. package/dist/kit/InitialsChip.js +16 -0
  204. package/dist/kit/InlineSkillGroup.d.ts +22 -0
  205. package/dist/kit/InlineSkillGroup.d.ts.map +1 -0
  206. package/dist/kit/InlineSkillGroup.js +16 -0
  207. package/dist/kit/LabelledSkillGroup.d.ts +24 -0
  208. package/dist/kit/LabelledSkillGroup.d.ts.map +1 -0
  209. package/dist/kit/LabelledSkillGroup.js +20 -0
  210. package/dist/kit/LanguageList.d.ts +28 -0
  211. package/dist/kit/LanguageList.d.ts.map +1 -0
  212. package/dist/kit/LanguageList.js +56 -0
  213. package/dist/kit/Separator.d.ts +20 -0
  214. package/dist/kit/Separator.d.ts.map +1 -0
  215. package/dist/kit/Separator.js +21 -0
  216. package/dist/kit/TagSkillGroup.d.ts +8 -0
  217. package/dist/kit/TagSkillGroup.d.ts.map +1 -0
  218. package/dist/kit/TagSkillGroup.js +10 -0
  219. package/dist/kit/avatar.css +42 -0
  220. package/dist/kit/contact-icons.css +70 -0
  221. package/dist/kit/contact.d.ts +16 -0
  222. package/dist/kit/contact.d.ts.map +1 -0
  223. package/dist/kit/contact.js +18 -0
  224. package/dist/kit/described.css +114 -0
  225. package/dist/kit/documentStyle.d.ts +20 -0
  226. package/dist/kit/documentStyle.d.ts.map +1 -0
  227. package/dist/kit/documentStyle.js +64 -0
  228. package/dist/kit/heading.css +17 -0
  229. package/dist/kit/keywords.css +127 -0
  230. package/dist/kit/language.css +104 -0
  231. package/dist/kit/layout.css +16 -0
  232. package/dist/kit/monogram.d.ts +6 -0
  233. package/dist/kit/monogram.d.ts.map +1 -0
  234. package/dist/kit/monogram.js +12 -0
  235. package/dist/kit/panel.css +26 -0
  236. package/dist/kit/skill-grid.css +93 -0
  237. package/dist/kit/skill-tags.css +36 -0
  238. package/dist/kit/textShapes.d.ts +24 -0
  239. package/dist/kit/textShapes.d.ts.map +1 -0
  240. package/dist/kit/textShapes.js +32 -0
  241. package/dist/kit/typography.css +86 -0
  242. package/dist/letter/LetterDocument.d.ts +13 -0
  243. package/dist/letter/LetterDocument.d.ts.map +1 -0
  244. package/dist/letter/LetterDocument.js +12 -0
  245. package/dist/letter/letter.css +75 -0
  246. package/dist/nodes/AuthoredBullets.d.ts +22 -0
  247. package/dist/nodes/AuthoredBullets.d.ts.map +1 -0
  248. package/dist/nodes/AuthoredBullets.js +101 -0
  249. package/dist/nodes/CustomSections.d.ts +42 -0
  250. package/dist/nodes/CustomSections.d.ts.map +1 -0
  251. package/dist/nodes/CustomSections.js +27 -0
  252. package/dist/nodes/EditableBulletList.d.ts +15 -0
  253. package/dist/nodes/EditableBulletList.d.ts.map +1 -0
  254. package/dist/nodes/EditableBulletList.js +98 -0
  255. package/dist/nodes/EditableInlineList.d.ts +27 -0
  256. package/dist/nodes/EditableInlineList.d.ts.map +1 -0
  257. package/dist/nodes/EditableInlineList.js +50 -0
  258. package/dist/nodes/EditableText.d.ts +79 -0
  259. package/dist/nodes/EditableText.d.ts.map +1 -0
  260. package/dist/nodes/EditableText.js +113 -0
  261. package/dist/nodes/LinkField.d.ts +103 -0
  262. package/dist/nodes/LinkField.d.ts.map +1 -0
  263. package/dist/nodes/LinkField.js +277 -0
  264. package/dist/nodes/PlainTextField.d.ts +38 -0
  265. package/dist/nodes/PlainTextField.d.ts.map +1 -0
  266. package/dist/nodes/PlainTextField.js +72 -0
  267. package/dist/nodes/formatting.d.ts +38 -0
  268. package/dist/nodes/formatting.d.ts.map +1 -0
  269. package/dist/nodes/formatting.js +27 -0
  270. package/dist/nodes/link-field.css +200 -0
  271. package/dist/nodes/locked.d.ts +38 -0
  272. package/dist/nodes/locked.d.ts.map +1 -0
  273. package/dist/nodes/locked.js +68 -0
  274. package/dist/nodes/template-node.css +720 -0
  275. package/dist/paged.css +265 -0
  276. package/dist/pagination.d.ts +93 -0
  277. package/dist/pagination.d.ts.map +1 -0
  278. package/dist/pagination.js +167 -0
  279. package/dist/picture-context.d.ts +6 -0
  280. package/dist/picture-context.d.ts.map +1 -0
  281. package/dist/picture-context.js +14 -0
  282. package/dist/presentation-context.d.ts +45 -0
  283. package/dist/presentation-context.d.ts.map +1 -0
  284. package/dist/presentation-context.js +44 -0
  285. package/dist/presented.d.ts +16 -0
  286. package/dist/presented.d.ts.map +1 -0
  287. package/dist/presented.js +22 -0
  288. package/dist/rail/ContainerRail.d.ts +29 -0
  289. package/dist/rail/ContainerRail.d.ts.map +1 -0
  290. package/dist/rail/ContainerRail.js +50 -0
  291. package/dist/rail/EntryActions.d.ts +19 -0
  292. package/dist/rail/EntryActions.d.ts.map +1 -0
  293. package/dist/rail/EntryActions.js +17 -0
  294. package/dist/rail/rail-store.d.ts +42 -0
  295. package/dist/rail/rail-store.d.ts.map +1 -0
  296. package/dist/rail/rail-store.js +107 -0
  297. package/dist/rail/rail.css +188 -0
  298. package/dist/rail/useSpaceDrag.d.ts +30 -0
  299. package/dist/rail/useSpaceDrag.d.ts.map +1 -0
  300. package/dist/rail/useSpaceDrag.js +154 -0
  301. package/dist/registry.d.ts +35 -0
  302. package/dist/registry.d.ts.map +1 -0
  303. package/dist/registry.js +74 -0
  304. package/dist/spacing/spacing-context.d.ts +53 -0
  305. package/dist/spacing/spacing-context.d.ts.map +1 -0
  306. package/dist/spacing/spacing-context.js +36 -0
  307. package/dist/spacing/spacing.css +159 -0
  308. package/dist/spacing/useSpaceSlot.d.ts +52 -0
  309. package/dist/spacing/useSpaceSlot.d.ts.map +1 -0
  310. package/dist/spacing/useSpaceSlot.js +38 -0
  311. package/dist/static/api.d.ts +13 -0
  312. package/dist/static/api.d.ts.map +1 -0
  313. package/dist/static/api.js +1 -0
  314. package/dist/static/static.mjs +33930 -0
  315. package/dist/static/templates/academic.css +1 -0
  316. package/dist/static/templates/alta.css +1 -0
  317. package/dist/static/templates/classic.css +1 -0
  318. package/dist/static/templates/cobalt.css +1 -0
  319. package/dist/static/templates/compact.css +1 -0
  320. package/dist/static/templates/contemporary.css +1 -0
  321. package/dist/static/templates/creative.css +1 -0
  322. package/dist/static/templates/crimson.css +1 -0
  323. package/dist/static/templates/curve.css +1 -0
  324. package/dist/static/templates/double-column-logos.css +1 -0
  325. package/dist/static/templates/double-column.css +1 -0
  326. package/dist/static/templates/elegant-logos.css +1 -0
  327. package/dist/static/templates/elegant.css +1 -0
  328. package/dist/static/templates/engineer.css +1 -0
  329. package/dist/static/templates/executive.css +1 -0
  330. package/dist/static/templates/harvard.css +1 -0
  331. package/dist/static/templates/hipster.css +1 -0
  332. package/dist/static/templates/ivy.css +1 -0
  333. package/dist/static/templates/meridian.css +1 -0
  334. package/dist/static/templates/modern.css +1 -0
  335. package/dist/static/templates/polished.css +1 -0
  336. package/dist/static/templates/portrait.css +1 -0
  337. package/dist/static/templates/prism.css +1 -0
  338. package/dist/static/templates/scholar.css +1 -0
  339. package/dist/static/templates/split.css +1 -0
  340. package/dist/static/templates/stylish.css +1 -0
  341. package/dist/static/templates/timeline.css +1 -0
  342. package/dist/static/templates.css +1 -0
  343. package/dist/templates/academic/AcademicDocument.d.ts +6 -0
  344. package/dist/templates/academic/AcademicDocument.d.ts.map +1 -0
  345. package/dist/templates/academic/AcademicDocument.js +29 -0
  346. package/dist/templates/academic/academic.css +284 -0
  347. package/dist/templates/academic/entries.d.ts +22 -0
  348. package/dist/templates/academic/entries.d.ts.map +1 -0
  349. package/dist/templates/academic/entries.js +17 -0
  350. package/dist/templates/alta/AltaDocument.d.ts +6 -0
  351. package/dist/templates/alta/AltaDocument.d.ts.map +1 -0
  352. package/dist/templates/alta/AltaDocument.js +29 -0
  353. package/dist/templates/alta/alta.css +413 -0
  354. package/dist/templates/alta/entries.d.ts +22 -0
  355. package/dist/templates/alta/entries.d.ts.map +1 -0
  356. package/dist/templates/alta/entries.js +17 -0
  357. package/dist/templates/classic/ClassicDocument.d.ts +6 -0
  358. package/dist/templates/classic/ClassicDocument.d.ts.map +1 -0
  359. package/dist/templates/classic/ClassicDocument.js +26 -0
  360. package/dist/templates/classic/classic.css +251 -0
  361. package/dist/templates/classic/entries.d.ts +22 -0
  362. package/dist/templates/classic/entries.d.ts.map +1 -0
  363. package/dist/templates/classic/entries.js +17 -0
  364. package/dist/templates/cobalt/CobaltDocument.d.ts +6 -0
  365. package/dist/templates/cobalt/CobaltDocument.d.ts.map +1 -0
  366. package/dist/templates/cobalt/CobaltDocument.js +28 -0
  367. package/dist/templates/cobalt/cobalt.css +478 -0
  368. package/dist/templates/cobalt/crest.d.ts +6 -0
  369. package/dist/templates/cobalt/crest.d.ts.map +1 -0
  370. package/dist/templates/cobalt/crest.js +8 -0
  371. package/dist/templates/cobalt/entries.d.ts +22 -0
  372. package/dist/templates/cobalt/entries.d.ts.map +1 -0
  373. package/dist/templates/cobalt/entries.js +17 -0
  374. package/dist/templates/compact/CompactDocument.d.ts +6 -0
  375. package/dist/templates/compact/CompactDocument.d.ts.map +1 -0
  376. package/dist/templates/compact/CompactDocument.js +28 -0
  377. package/dist/templates/compact/compact.css +240 -0
  378. package/dist/templates/compact/entries.d.ts +22 -0
  379. package/dist/templates/compact/entries.d.ts.map +1 -0
  380. package/dist/templates/compact/entries.js +17 -0
  381. package/dist/templates/contemporary/ContemporaryDocument.d.ts +6 -0
  382. package/dist/templates/contemporary/ContemporaryDocument.d.ts.map +1 -0
  383. package/dist/templates/contemporary/ContemporaryDocument.js +29 -0
  384. package/dist/templates/contemporary/contemporary.css +411 -0
  385. package/dist/templates/contemporary/entries.d.ts +22 -0
  386. package/dist/templates/contemporary/entries.d.ts.map +1 -0
  387. package/dist/templates/contemporary/entries.js +17 -0
  388. package/dist/templates/creative/CreativeDocument.d.ts +6 -0
  389. package/dist/templates/creative/CreativeDocument.d.ts.map +1 -0
  390. package/dist/templates/creative/CreativeDocument.js +29 -0
  391. package/dist/templates/creative/creative.css +326 -0
  392. package/dist/templates/creative/entries.d.ts +22 -0
  393. package/dist/templates/creative/entries.d.ts.map +1 -0
  394. package/dist/templates/creative/entries.js +17 -0
  395. package/dist/templates/crimson/CrimsonDocument.d.ts +6 -0
  396. package/dist/templates/crimson/CrimsonDocument.d.ts.map +1 -0
  397. package/dist/templates/crimson/CrimsonDocument.js +30 -0
  398. package/dist/templates/crimson/crimson.css +301 -0
  399. package/dist/templates/crimson/entries.d.ts +22 -0
  400. package/dist/templates/crimson/entries.d.ts.map +1 -0
  401. package/dist/templates/crimson/entries.js +17 -0
  402. package/dist/templates/curve/CurveDocument.d.ts +6 -0
  403. package/dist/templates/curve/CurveDocument.d.ts.map +1 -0
  404. package/dist/templates/curve/CurveDocument.js +29 -0
  405. package/dist/templates/curve/curve.css +330 -0
  406. package/dist/templates/curve/entries.d.ts +22 -0
  407. package/dist/templates/curve/entries.d.ts.map +1 -0
  408. package/dist/templates/curve/entries.js +17 -0
  409. package/dist/templates/double-column/DoubleColumnDocument.d.ts +6 -0
  410. package/dist/templates/double-column/DoubleColumnDocument.d.ts.map +1 -0
  411. package/dist/templates/double-column/DoubleColumnDocument.js +29 -0
  412. package/dist/templates/double-column/double-column.css +331 -0
  413. package/dist/templates/double-column/entries.d.ts +22 -0
  414. package/dist/templates/double-column/entries.d.ts.map +1 -0
  415. package/dist/templates/double-column/entries.js +17 -0
  416. package/dist/templates/double-column-logos/DoubleColumnLogosDocument.d.ts +6 -0
  417. package/dist/templates/double-column-logos/DoubleColumnLogosDocument.d.ts.map +1 -0
  418. package/dist/templates/double-column-logos/DoubleColumnLogosDocument.js +28 -0
  419. package/dist/templates/double-column-logos/double-column-logos.css +333 -0
  420. package/dist/templates/double-column-logos/entries.d.ts +22 -0
  421. package/dist/templates/double-column-logos/entries.d.ts.map +1 -0
  422. package/dist/templates/double-column-logos/entries.js +18 -0
  423. package/dist/templates/elegant/ElegantDocument.d.ts +6 -0
  424. package/dist/templates/elegant/ElegantDocument.d.ts.map +1 -0
  425. package/dist/templates/elegant/ElegantDocument.js +31 -0
  426. package/dist/templates/elegant/elegant.css +358 -0
  427. package/dist/templates/elegant/entries.d.ts +22 -0
  428. package/dist/templates/elegant/entries.d.ts.map +1 -0
  429. package/dist/templates/elegant/entries.js +17 -0
  430. package/dist/templates/elegant-logos/ElegantLogosDocument.d.ts +6 -0
  431. package/dist/templates/elegant-logos/ElegantLogosDocument.d.ts.map +1 -0
  432. package/dist/templates/elegant-logos/ElegantLogosDocument.js +30 -0
  433. package/dist/templates/elegant-logos/elegant-logos.css +370 -0
  434. package/dist/templates/elegant-logos/entries.d.ts +22 -0
  435. package/dist/templates/elegant-logos/entries.d.ts.map +1 -0
  436. package/dist/templates/elegant-logos/entries.js +18 -0
  437. package/dist/templates/engineer/EngineerDocument.d.ts +6 -0
  438. package/dist/templates/engineer/EngineerDocument.d.ts.map +1 -0
  439. package/dist/templates/engineer/EngineerDocument.js +26 -0
  440. package/dist/templates/engineer/engineer.css +261 -0
  441. package/dist/templates/engineer/entries.d.ts +22 -0
  442. package/dist/templates/engineer/entries.d.ts.map +1 -0
  443. package/dist/templates/engineer/entries.js +17 -0
  444. package/dist/templates/executive/ExecutiveDocument.d.ts +6 -0
  445. package/dist/templates/executive/ExecutiveDocument.d.ts.map +1 -0
  446. package/dist/templates/executive/ExecutiveDocument.js +29 -0
  447. package/dist/templates/executive/entries.d.ts +22 -0
  448. package/dist/templates/executive/entries.d.ts.map +1 -0
  449. package/dist/templates/executive/entries.js +17 -0
  450. package/dist/templates/executive/executive.css +394 -0
  451. package/dist/templates/harvard/HarvardDocument.d.ts +6 -0
  452. package/dist/templates/harvard/HarvardDocument.d.ts.map +1 -0
  453. package/dist/templates/harvard/HarvardDocument.js +25 -0
  454. package/dist/templates/harvard/entries.d.ts +28 -0
  455. package/dist/templates/harvard/entries.d.ts.map +1 -0
  456. package/dist/templates/harvard/entries.js +22 -0
  457. package/dist/templates/harvard/harvard.css +436 -0
  458. package/dist/templates/hipster/HipsterDocument.d.ts +6 -0
  459. package/dist/templates/hipster/HipsterDocument.d.ts.map +1 -0
  460. package/dist/templates/hipster/HipsterDocument.js +30 -0
  461. package/dist/templates/hipster/entries.d.ts +22 -0
  462. package/dist/templates/hipster/entries.d.ts.map +1 -0
  463. package/dist/templates/hipster/entries.js +17 -0
  464. package/dist/templates/hipster/hipster.css +442 -0
  465. package/dist/templates/ivy/IvyDocument.d.ts +6 -0
  466. package/dist/templates/ivy/IvyDocument.d.ts.map +1 -0
  467. package/dist/templates/ivy/IvyDocument.js +26 -0
  468. package/dist/templates/ivy/entries.d.ts +22 -0
  469. package/dist/templates/ivy/entries.d.ts.map +1 -0
  470. package/dist/templates/ivy/entries.js +17 -0
  471. package/dist/templates/ivy/ivy.css +292 -0
  472. package/dist/templates/meridian/MeridianDocument.d.ts +6 -0
  473. package/dist/templates/meridian/MeridianDocument.d.ts.map +1 -0
  474. package/dist/templates/meridian/MeridianDocument.js +28 -0
  475. package/dist/templates/meridian/entries.d.ts +22 -0
  476. package/dist/templates/meridian/entries.d.ts.map +1 -0
  477. package/dist/templates/meridian/entries.js +17 -0
  478. package/dist/templates/meridian/meridian.css +431 -0
  479. package/dist/templates/modern/ModernDocument.d.ts +6 -0
  480. package/dist/templates/modern/ModernDocument.d.ts.map +1 -0
  481. package/dist/templates/modern/ModernDocument.js +29 -0
  482. package/dist/templates/modern/entries.d.ts +22 -0
  483. package/dist/templates/modern/entries.d.ts.map +1 -0
  484. package/dist/templates/modern/entries.js +17 -0
  485. package/dist/templates/modern/modern.css +309 -0
  486. package/dist/templates/polished/PolishedDocument.d.ts +6 -0
  487. package/dist/templates/polished/PolishedDocument.d.ts.map +1 -0
  488. package/dist/templates/polished/PolishedDocument.js +28 -0
  489. package/dist/templates/polished/entries.d.ts +22 -0
  490. package/dist/templates/polished/entries.d.ts.map +1 -0
  491. package/dist/templates/polished/entries.js +17 -0
  492. package/dist/templates/polished/polished.css +327 -0
  493. package/dist/templates/portrait/PortraitDocument.d.ts +6 -0
  494. package/dist/templates/portrait/PortraitDocument.d.ts.map +1 -0
  495. package/dist/templates/portrait/PortraitDocument.js +30 -0
  496. package/dist/templates/portrait/entries.d.ts +22 -0
  497. package/dist/templates/portrait/entries.d.ts.map +1 -0
  498. package/dist/templates/portrait/entries.js +17 -0
  499. package/dist/templates/portrait/portrait.css +427 -0
  500. package/dist/templates/prism/PrismDocument.d.ts +6 -0
  501. package/dist/templates/prism/PrismDocument.d.ts.map +1 -0
  502. package/dist/templates/prism/PrismDocument.js +35 -0
  503. package/dist/templates/prism/entries.d.ts +22 -0
  504. package/dist/templates/prism/entries.d.ts.map +1 -0
  505. package/dist/templates/prism/entries.js +17 -0
  506. package/dist/templates/prism/prism.css +314 -0
  507. package/dist/templates/scholar/ScholarDocument.d.ts +6 -0
  508. package/dist/templates/scholar/ScholarDocument.d.ts.map +1 -0
  509. package/dist/templates/scholar/ScholarDocument.js +27 -0
  510. package/dist/templates/scholar/entries.d.ts +22 -0
  511. package/dist/templates/scholar/entries.d.ts.map +1 -0
  512. package/dist/templates/scholar/entries.js +17 -0
  513. package/dist/templates/scholar/scholar.css +279 -0
  514. package/dist/templates/skills.d.ts +19 -0
  515. package/dist/templates/skills.d.ts.map +1 -0
  516. package/dist/templates/skills.js +19 -0
  517. package/dist/templates/split/SplitDocument.d.ts +6 -0
  518. package/dist/templates/split/SplitDocument.d.ts.map +1 -0
  519. package/dist/templates/split/SplitDocument.js +29 -0
  520. package/dist/templates/split/entries.d.ts +22 -0
  521. package/dist/templates/split/entries.d.ts.map +1 -0
  522. package/dist/templates/split/entries.js +17 -0
  523. package/dist/templates/split/split.css +337 -0
  524. package/dist/templates/stylish/StylishDocument.d.ts +6 -0
  525. package/dist/templates/stylish/StylishDocument.d.ts.map +1 -0
  526. package/dist/templates/stylish/StylishDocument.js +29 -0
  527. package/dist/templates/stylish/entries.d.ts +22 -0
  528. package/dist/templates/stylish/entries.d.ts.map +1 -0
  529. package/dist/templates/stylish/entries.js +17 -0
  530. package/dist/templates/stylish/stylish.css +340 -0
  531. package/dist/templates/timeline/TimelineDocument.d.ts +6 -0
  532. package/dist/templates/timeline/TimelineDocument.d.ts.map +1 -0
  533. package/dist/templates/timeline/TimelineDocument.js +27 -0
  534. package/dist/templates/timeline/entries.d.ts +22 -0
  535. package/dist/templates/timeline/entries.d.ts.map +1 -0
  536. package/dist/templates/timeline/entries.js +17 -0
  537. package/dist/templates/timeline/timeline.css +295 -0
  538. package/dist/useFitZoom.d.ts +99 -0
  539. package/dist/useFitZoom.d.ts.map +1 -0
  540. package/dist/useFitZoom.js +171 -0
  541. package/package.json +81 -3
  542. package/src/PagedSheet.tsx +792 -0
  543. package/src/TemplateDocument.tsx +112 -0
  544. package/src/autosave-context.tsx +67 -0
  545. package/src/collections/AuthoredItems.tsx +199 -0
  546. package/src/collections/Collection.tsx +73 -0
  547. package/src/collections/CollectionItems.tsx +318 -0
  548. package/src/collections/EntryOverlay.tsx +162 -0
  549. package/src/collections/SortableItems.tsx +167 -0
  550. package/src/collections/authoring-context.tsx +140 -0
  551. package/src/collections/entry-text.ts +41 -0
  552. package/src/collections/icons.tsx +83 -0
  553. package/src/collections/library/LibraryAction.tsx +200 -0
  554. package/src/collections/library/LibraryPicker.tsx +325 -0
  555. package/src/collections/overlay-context.tsx +49 -0
  556. package/src/collections/preload.ts +23 -0
  557. package/src/collections/selection-context.tsx +88 -0
  558. package/src/collections/useCollection.ts +133 -0
  559. package/src/collections/useCustomEntries.ts +84 -0
  560. package/src/collections/useSectionCollection.ts +268 -0
  561. package/src/compiler/emit.ts +736 -0
  562. package/src/compiler/schema.ts +689 -0
  563. package/src/export/entry.tsx +177 -0
  564. package/src/fields/date-issues-context.tsx +105 -0
  565. package/src/fields/field-registry.tsx +358 -0
  566. package/src/i18n/catalog.ts +81 -0
  567. package/src/i18n/format.ts +50 -0
  568. package/src/i18n/index.ts +21 -0
  569. package/src/i18n/locale-context.tsx +135 -0
  570. package/src/index.ts +156 -0
  571. package/src/kit/BulletSkillGroup.tsx +37 -0
  572. package/src/kit/DescribedEntries.tsx +132 -0
  573. package/src/kit/DocumentSection.tsx +97 -0
  574. package/src/kit/GridSkillGroup.tsx +17 -0
  575. package/src/kit/Heading.tsx +17 -0
  576. package/src/kit/InitialsAvatar.tsx +31 -0
  577. package/src/kit/InitialsChip.tsx +29 -0
  578. package/src/kit/InlineSkillGroup.tsx +41 -0
  579. package/src/kit/LabelledSkillGroup.tsx +68 -0
  580. package/src/kit/LanguageList.tsx +148 -0
  581. package/src/kit/Separator.tsx +30 -0
  582. package/src/kit/TagSkillGroup.tsx +19 -0
  583. package/src/kit/contact.ts +34 -0
  584. package/src/kit/documentStyle.ts +80 -0
  585. package/src/kit/monogram.ts +11 -0
  586. package/src/kit/textShapes.tsx +61 -0
  587. package/src/letter/LetterDocument.tsx +33 -0
  588. package/src/nodes/AuthoredBullets.tsx +253 -0
  589. package/src/nodes/CustomSections.tsx +138 -0
  590. package/src/nodes/EditableBulletList.tsx +186 -0
  591. package/src/nodes/EditableInlineList.tsx +109 -0
  592. package/src/nodes/EditableText.tsx +261 -0
  593. package/src/nodes/LinkField.tsx +438 -0
  594. package/src/nodes/PlainTextField.tsx +132 -0
  595. package/src/nodes/formatting.ts +70 -0
  596. package/src/nodes/locked.ts +70 -0
  597. package/src/pagination.ts +238 -0
  598. package/src/picture-context.tsx +18 -0
  599. package/src/presentation-context.tsx +87 -0
  600. package/src/presented.ts +29 -0
  601. package/src/rail/ContainerRail.tsx +145 -0
  602. package/src/rail/EntryActions.tsx +104 -0
  603. package/src/rail/rail-store.tsx +126 -0
  604. package/src/rail/useSpaceDrag.ts +177 -0
  605. package/src/registry.ts +101 -0
  606. package/src/spacing/spacing-context.tsx +100 -0
  607. package/src/spacing/useSpaceSlot.tsx +97 -0
  608. package/src/static/api.ts +19 -0
  609. package/src/static/fixtures.ts +80 -0
  610. package/src/static/render.tsx +24 -0
  611. package/src/templates/academic/AcademicDocument.tsx +259 -0
  612. package/src/templates/academic/entries.tsx +176 -0
  613. package/src/templates/alta/AltaDocument.tsx +269 -0
  614. package/src/templates/alta/entries.tsx +167 -0
  615. package/src/templates/classic/ClassicDocument.tsx +252 -0
  616. package/src/templates/classic/entries.tsx +175 -0
  617. package/src/templates/cobalt/CobaltDocument.tsx +306 -0
  618. package/src/templates/cobalt/crest.tsx +31 -0
  619. package/src/templates/cobalt/entries.tsx +136 -0
  620. package/src/templates/compact/CompactDocument.tsx +260 -0
  621. package/src/templates/compact/entries.tsx +167 -0
  622. package/src/templates/contemporary/ContemporaryDocument.tsx +291 -0
  623. package/src/templates/contemporary/entries.tsx +167 -0
  624. package/src/templates/creative/CreativeDocument.tsx +273 -0
  625. package/src/templates/creative/entries.tsx +167 -0
  626. package/src/templates/crimson/CrimsonDocument.tsx +287 -0
  627. package/src/templates/crimson/entries.tsx +169 -0
  628. package/src/templates/curve/CurveDocument.tsx +263 -0
  629. package/src/templates/curve/entries.tsx +168 -0
  630. package/src/templates/double-column/DoubleColumnDocument.tsx +273 -0
  631. package/src/templates/double-column/entries.tsx +169 -0
  632. package/src/templates/double-column-logos/DoubleColumnLogosDocument.tsx +266 -0
  633. package/src/templates/double-column-logos/entries.tsx +172 -0
  634. package/src/templates/elegant/ElegantDocument.tsx +301 -0
  635. package/src/templates/elegant/entries.tsx +167 -0
  636. package/src/templates/elegant-logos/ElegantLogosDocument.tsx +295 -0
  637. package/src/templates/elegant-logos/entries.tsx +170 -0
  638. package/src/templates/engineer/EngineerDocument.tsx +252 -0
  639. package/src/templates/engineer/entries.tsx +170 -0
  640. package/src/templates/executive/ExecutiveDocument.tsx +316 -0
  641. package/src/templates/executive/entries.tsx +146 -0
  642. package/src/templates/harvard/HarvardDocument.tsx +252 -0
  643. package/src/templates/harvard/entries.tsx +205 -0
  644. package/src/templates/hipster/HipsterDocument.tsx +293 -0
  645. package/src/templates/hipster/entries.tsx +175 -0
  646. package/src/templates/ivy/IvyDocument.tsx +252 -0
  647. package/src/templates/ivy/entries.tsx +167 -0
  648. package/src/templates/meridian/MeridianDocument.tsx +308 -0
  649. package/src/templates/meridian/entries.tsx +140 -0
  650. package/src/templates/modern/ModernDocument.tsx +269 -0
  651. package/src/templates/modern/entries.tsx +167 -0
  652. package/src/templates/polished/PolishedDocument.tsx +266 -0
  653. package/src/templates/polished/entries.tsx +167 -0
  654. package/src/templates/portrait/PortraitDocument.tsx +282 -0
  655. package/src/templates/portrait/entries.tsx +173 -0
  656. package/src/templates/prism/PrismDocument.tsx +311 -0
  657. package/src/templates/prism/entries.tsx +175 -0
  658. package/src/templates/scholar/ScholarDocument.tsx +270 -0
  659. package/src/templates/scholar/entries.tsx +169 -0
  660. package/src/templates/skills.ts +21 -0
  661. package/src/templates/split/SplitDocument.tsx +297 -0
  662. package/src/templates/split/entries.tsx +164 -0
  663. package/src/templates/stylish/StylishDocument.tsx +269 -0
  664. package/src/templates/stylish/entries.tsx +167 -0
  665. package/src/templates/timeline/TimelineDocument.tsx +255 -0
  666. package/src/templates/timeline/entries.tsx +173 -0
  667. package/src/useFitZoom.ts +185 -0
@@ -0,0 +1,101 @@
1
+ /**
2
+ * `@resumekit/react` — the document, and only the document.
3
+ *
4
+ * The resume's templates, the nodes their text is edited through, the page
5
+ * geometry and the paginator live here so that **every surface that draws a
6
+ * resume draws the same one**: an editor, and the renderer that produces the
7
+ * PDF. Fidelity between screen and file is not a test that runs after the fact
8
+ * — it is the absence of a second definition.
9
+ *
10
+ * What is NOT here is application: the control rail, the download menu, the
11
+ * overlay serializer, the route, the miniatures. Those are how a person works
12
+ * on a document, not what a document is.
13
+ *
14
+ * The library depends on `@resumekit/schema` for the catalog and the schemas,
15
+ * on React to render, and on nothing else. It reaches no server SDK, no HTTP
16
+ * client, and no application code.
17
+ */
18
+ /** The renderer for a template id, plus the resolver that rebuilds its tree. */
19
+ export { TEMPLATE_RENDERERS, REGISTERED_NODES, type TemplateRenderer, type TemplateDocumentProps, } from './registry.js';
20
+ /**
21
+ * The supporting sections, shared rather than re-implemented per template.
22
+ *
23
+ * Three prose sections across seventeen templates is fifty-one copies of the
24
+ * same two fields; the contract says a template places and styles a shared
25
+ * capability and never re-implements it, and these are that capability.
26
+ */
27
+ export { DescribedEntries, type DescribedSectionId, } from './kit/DescribedEntries.js';
28
+ export { LanguageList } from './kit/LanguageList.js';
29
+ /**
30
+ * Language: the library's own catalogs, with no i18n dependency.
31
+ *
32
+ * Mount `TemplateLocaleProvider` with the editor's language — or nothing, for
33
+ * English. The document prints in `presentation.language`. A new language is a
34
+ * JSON file with the keys of `i18n/locales/en.json`, passed in `catalogs`; any
35
+ * message it lacks is English.
36
+ */
37
+ export { TEMPLATE_CATALOGS, TemplateLocaleProvider, resolveCatalog, type PartialCatalog, type TemplateCatalog, type TemplateLocaleProviderProps, } from './i18n/index.js';
38
+ /** A résumé drawn read-only, with a presentation applied. */
39
+ export { TemplateDocument } from './TemplateDocument.js';
40
+ export { LetterDocument } from './letter/LetterDocument.js';
41
+ /**
42
+ * The résumé as it should be drawn — the writer's output plus the candidate's
43
+ * overlay. Document-side, because it answers what is on the page.
44
+ */
45
+ export { presentedResume } from './presented.js';
46
+ /** The sheet: real page geometry, and the measurement that fills it. */
47
+ export { PagedSheet, useRepaginate, useSheetZoom } from './PagedSheet.js';
48
+ /** Where a page ends. The same decision on screen and on paper. */
49
+ export * from './pagination.js';
50
+ /**
51
+ * The view zoom: how large the page is DRAWN, which is never how large it is.
52
+ *
53
+ * A surface that can edit passes `maxZoom` to `PagedSheet`; everything that
54
+ * merely renders takes the default of 1 and gets no zoom and no control.
55
+ */
56
+ export { ZOOM_MAX, ZOOM_MIN, ZOOM_STEP, ZOOM_SETTLE_MS, fitZoom, step, } from './useFitZoom.js';
57
+ /** Presentation reaches nodes through context, never through frozen props. */
58
+ export { DocumentPresentationProvider, useDocumentStyle, useFieldFormat, } from './presentation-context.js';
59
+ /**
60
+ * Authoring: what a candidate may do to a repeatable part of the document.
61
+ *
62
+ * The PROVIDER is exported and the operations are not. A surface that can edit
63
+ * mounts the provider; everything inside reads what it may do from there, and
64
+ * nothing outside this library can reach an add, a remove or a move. That is
65
+ * what keeps the read-only document, the saved-résumé view and the export
66
+ * renderer free of authoring by construction rather than by remembering.
67
+ */
68
+ export { DocumentAuthoringProvider } from './collections/authoring-context.js';
69
+ export { FieldRegistryProvider, useField, useFieldRegistry, type Field, type FieldRegistry, } from './fields/field-registry.js';
70
+ export { DateIssuesProvider, useDateIssue, type DateIssuesProviderProps, } from './fields/date-issues-context.js';
71
+ /**
72
+ * Autosave: the document tells the surface when it is worth storing.
73
+ *
74
+ * Exported the same way authoring is, and for the same reason. The PROVIDER
75
+ * crosses the boundary; the request functions do not. A surface that persists a
76
+ * résumé mounts this and supplies the one call it already had — everything
77
+ * inside asks through the context, and a surface that only draws a document
78
+ * mounts nothing and therefore writes nothing.
79
+ */
80
+ export { DocumentAutosaveProvider } from './autosave-context.js';
81
+ /**
82
+ * Spacing: the gap above a section or an entry, as a control in the gap.
83
+ *
84
+ * The PROVIDER crosses the boundary and the handle does not, on the same terms
85
+ * as authoring above. A surface that can edit mounts this and supplies the one
86
+ * write; a surface that only draws a résumé mounts nothing, so every gap in it
87
+ * renders the space a candidate recorded and no control at all.
88
+ */
89
+ export { DocumentOverlayProvider } from './collections/overlay-context.js';
90
+ export { DocumentSpacingProvider, type DocumentSpacingValue, type SpaceTarget, } from './spacing/spacing-context.js';
91
+ export type { AutosaveContextValue } from './autosave-context.js';
92
+ export { preloadEditingLayer } from './collections/preload.js';
93
+ export type { AuthoringContextValue } from './collections/authoring-context.js';
94
+ /** The editable nodes, and the rules that keep them locked. */
95
+ export { EditableText } from './nodes/EditableText.js';
96
+ export { EditableBulletList } from './nodes/EditableBulletList.js';
97
+ export { EditableInlineList } from './nodes/EditableInlineList.js';
98
+ export { CustomSections } from './nodes/CustomSections.js';
99
+ export { BOUNDED_NODE_PROPS, FORBIDDEN_NODE_PROPS } from './nodes/locked.js';
100
+ export type { FieldFormatting, LinkTarget } from './nodes/formatting.js';
101
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,gFAAgF;AAChF,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,GAC3B,MAAM,eAAe,CAAC;AAEvB;;;;;;GAMG;AACH,OAAO,EACL,gBAAgB,EAChB,KAAK,kBAAkB,GACxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD;;;;;;;GAOG;AACH,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,cAAc,EACd,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,2BAA2B,GACjC,MAAM,iBAAiB,CAAC;AAEzB,6DAA6D;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D;;;GAGG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,wEAAwE;AACxE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE1E,mEAAmE;AACnE,cAAc,iBAAiB,CAAC;AAEhC;;;;;GAKG;AACH,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,cAAc,EACd,OAAO,EACP,IAAI,GACL,MAAM,iBAAiB,CAAC;AAEzB,8EAA8E;AAC9E,OAAO,EACL,4BAA4B,EAC5B,gBAAgB,EAChB,cAAc,GACf,MAAM,2BAA2B,CAAC;AAEnC;;;;;;;;GAQG;AACH,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EACL,qBAAqB,EACrB,QAAQ,EACR,gBAAgB,EAChB,KAAK,KAAK,EACV,KAAK,aAAa,GACnB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,EACL,kBAAkB,EAClB,YAAY,EACZ,KAAK,uBAAuB,GAC7B,MAAM,iCAAiC,CAAC;AAEzC;;;;;;;;GAQG;AACH,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEjE;;;;;;;GAOG;AACH,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EACL,uBAAuB,EACvB,KAAK,oBAAoB,EACzB,KAAK,WAAW,GACjB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,YAAY,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAEhF,+DAA+D;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC7E,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,99 @@
1
+ /**
2
+ * `@resumekit/react` — the document, and only the document.
3
+ *
4
+ * The resume's templates, the nodes their text is edited through, the page
5
+ * geometry and the paginator live here so that **every surface that draws a
6
+ * resume draws the same one**: an editor, and the renderer that produces the
7
+ * PDF. Fidelity between screen and file is not a test that runs after the fact
8
+ * — it is the absence of a second definition.
9
+ *
10
+ * What is NOT here is application: the control rail, the download menu, the
11
+ * overlay serializer, the route, the miniatures. Those are how a person works
12
+ * on a document, not what a document is.
13
+ *
14
+ * The library depends on `@resumekit/schema` for the catalog and the schemas,
15
+ * on React to render, and on nothing else. It reaches no server SDK, no HTTP
16
+ * client, and no application code.
17
+ */
18
+ /** The renderer for a template id, plus the resolver that rebuilds its tree. */
19
+ export { TEMPLATE_RENDERERS, REGISTERED_NODES, } from './registry.js';
20
+ /**
21
+ * The supporting sections, shared rather than re-implemented per template.
22
+ *
23
+ * Three prose sections across seventeen templates is fifty-one copies of the
24
+ * same two fields; the contract says a template places and styles a shared
25
+ * capability and never re-implements it, and these are that capability.
26
+ */
27
+ export { DescribedEntries, } from './kit/DescribedEntries.js';
28
+ export { LanguageList } from './kit/LanguageList.js';
29
+ /**
30
+ * Language: the library's own catalogs, with no i18n dependency.
31
+ *
32
+ * Mount `TemplateLocaleProvider` with the editor's language — or nothing, for
33
+ * English. The document prints in `presentation.language`. A new language is a
34
+ * JSON file with the keys of `i18n/locales/en.json`, passed in `catalogs`; any
35
+ * message it lacks is English.
36
+ */
37
+ export { TEMPLATE_CATALOGS, TemplateLocaleProvider, resolveCatalog, } from './i18n/index.js';
38
+ /** A résumé drawn read-only, with a presentation applied. */
39
+ export { TemplateDocument } from './TemplateDocument.js';
40
+ export { LetterDocument } from './letter/LetterDocument.js';
41
+ /**
42
+ * The résumé as it should be drawn — the writer's output plus the candidate's
43
+ * overlay. Document-side, because it answers what is on the page.
44
+ */
45
+ export { presentedResume } from './presented.js';
46
+ /** The sheet: real page geometry, and the measurement that fills it. */
47
+ export { PagedSheet, useRepaginate, useSheetZoom } from './PagedSheet.js';
48
+ /** Where a page ends. The same decision on screen and on paper. */
49
+ export * from './pagination.js';
50
+ /**
51
+ * The view zoom: how large the page is DRAWN, which is never how large it is.
52
+ *
53
+ * A surface that can edit passes `maxZoom` to `PagedSheet`; everything that
54
+ * merely renders takes the default of 1 and gets no zoom and no control.
55
+ */
56
+ export { ZOOM_MAX, ZOOM_MIN, ZOOM_STEP, ZOOM_SETTLE_MS, fitZoom, step, } from './useFitZoom.js';
57
+ /** Presentation reaches nodes through context, never through frozen props. */
58
+ export { DocumentPresentationProvider, useDocumentStyle, useFieldFormat, } from './presentation-context.js';
59
+ /**
60
+ * Authoring: what a candidate may do to a repeatable part of the document.
61
+ *
62
+ * The PROVIDER is exported and the operations are not. A surface that can edit
63
+ * mounts the provider; everything inside reads what it may do from there, and
64
+ * nothing outside this library can reach an add, a remove or a move. That is
65
+ * what keeps the read-only document, the saved-résumé view and the export
66
+ * renderer free of authoring by construction rather than by remembering.
67
+ */
68
+ export { DocumentAuthoringProvider } from './collections/authoring-context.js';
69
+ export { FieldRegistryProvider, useField, useFieldRegistry, } from './fields/field-registry.js';
70
+ // Dates that disagree with the résumé's chronological order, marked where they
71
+ // are. Editor-only: the preview and the export renderer mount no provider.
72
+ export { DateIssuesProvider, useDateIssue, } from './fields/date-issues-context.js';
73
+ /**
74
+ * Autosave: the document tells the surface when it is worth storing.
75
+ *
76
+ * Exported the same way authoring is, and for the same reason. The PROVIDER
77
+ * crosses the boundary; the request functions do not. A surface that persists a
78
+ * résumé mounts this and supplies the one call it already had — everything
79
+ * inside asks through the context, and a surface that only draws a document
80
+ * mounts nothing and therefore writes nothing.
81
+ */
82
+ export { DocumentAutosaveProvider } from './autosave-context.js';
83
+ /**
84
+ * Spacing: the gap above a section or an entry, as a control in the gap.
85
+ *
86
+ * The PROVIDER crosses the boundary and the handle does not, on the same terms
87
+ * as authoring above. A surface that can edit mounts this and supplies the one
88
+ * write; a surface that only draws a résumé mounts nothing, so every gap in it
89
+ * renders the space a candidate recorded and no control at all.
90
+ */
91
+ export { DocumentOverlayProvider } from './collections/overlay-context.js';
92
+ export { DocumentSpacingProvider, } from './spacing/spacing-context.js';
93
+ export { preloadEditingLayer } from './collections/preload.js';
94
+ /** The editable nodes, and the rules that keep them locked. */
95
+ export { EditableText } from './nodes/EditableText.js';
96
+ export { EditableBulletList } from './nodes/EditableBulletList.js';
97
+ export { EditableInlineList } from './nodes/EditableInlineList.js';
98
+ export { CustomSections } from './nodes/CustomSections.js';
99
+ export { BOUNDED_NODE_PROPS, FORBIDDEN_NODE_PROPS } from './nodes/locked.js';
@@ -0,0 +1,20 @@
1
+ import type { SkillGroup } from '@resumekit/schema';
2
+ /**
3
+ * A skills group as its bullets alone, for the templates that print no
4
+ * category.
5
+ *
6
+ * Deliberately NOT an addressable container: it carries no outline and no
7
+ * rail, because on these pages a group is not a thing a candidate can see. The
8
+ * skills are, and the bullet list edits, adds and removes them one by one.
9
+ * Drawing a box per group here put unlabelled boxes down the section that
10
+ * matched nothing on the page.
11
+ *
12
+ * The group still exists in the collection, so a section with none offers an
13
+ * add — which mints a group with no category, and the new skill simply joins
14
+ * the list.
15
+ */
16
+ export declare function BulletSkillGroup({ item, path, }: {
17
+ item: SkillGroup;
18
+ path: string;
19
+ }): import("react").JSX.Element;
20
+ //# sourceMappingURL=BulletSkillGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BulletSkillGroup.d.ts","sourceRoot":"","sources":["../../src/kit/BulletSkillGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAIpD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,IAAI,GACL,EAAE;IACD,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd,+BAYA"}
@@ -0,0 +1,25 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useEditorText } from '../i18n/index.js';
3
+ import { EditableBulletList } from '../nodes/EditableBulletList.js';
4
+ /**
5
+ * A skills group as its bullets alone, for the templates that print no
6
+ * category.
7
+ *
8
+ * Deliberately NOT an addressable container: it carries no outline and no
9
+ * rail, because on these pages a group is not a thing a candidate can see. The
10
+ * skills are, and the bullet list edits, adds and removes them one by one.
11
+ * Drawing a box per group here put unlabelled boxes down the section that
12
+ * matched nothing on the page.
13
+ *
14
+ * The group still exists in the collection, so a section with none offers an
15
+ * add — which mints a group with no category, and the new skill simply joins
16
+ * the list.
17
+ */
18
+ export function BulletSkillGroup({ item, path, }) {
19
+ const { placeholder } = useEditorText();
20
+ return (_jsx(EditableBulletList, { path: `${path}.items`, items: item.items,
21
+ /* A skills row wants a KEYWORD. Guided as a bullet, an empty one asked
22
+ for "what you did, and what changed because of it" — a sentence, in a
23
+ list the page prints as single words. */
24
+ placeholder: placeholder('item') }));
25
+ }
@@ -0,0 +1,41 @@
1
+ import type { DescribedEntry } from '@resumekit/schema';
2
+ import type { HeadingLead } from './textShapes.js';
3
+ /** The three sections that are a title over a paragraph. */
4
+ export type DescribedSectionId = 'achievements' | 'courses' | 'passions';
5
+ export interface DescribedEntriesProps {
6
+ id: DescribedSectionId;
7
+ /** The heading's DEFAULT. A template may retitle it — several references say
8
+ * "Key Achievements", and one says "Interests" rather than "Passions". */
9
+ title: string;
10
+ /** What the candidate renamed it to, from `resume.section_headings[id]`. */
11
+ heading?: string;
12
+ items: readonly DescribedEntry[] | undefined;
13
+ /** The template's own section, heading and entry classes. */
14
+ className: string;
15
+ headingClassName: string;
16
+ entryClassName: string;
17
+ /** As `DocumentSection`'s. */
18
+ headingLead?: HeadingLead;
19
+ }
20
+ /**
21
+ * Achievements, Courses and Passions: a title, and a paragraph under it.
22
+ *
23
+ * ONE component for three sections and seventeen templates, because the
24
+ * contract says a template "places and styles" a shared capability and "never
25
+ * re-implements" it — and the alternative here is fifty-one copies of the same
26
+ * two fields.
27
+ *
28
+ * A template passes its classes and nothing else. It does not pass an entry
29
+ * component, as `CustomSections` does, because a custom section's shape is the
30
+ * candidate's and this shape is the references': every one of the thirteen sets
31
+ * these entries as a title over prose, so the markup is settled and only the
32
+ * painting varies. That also makes the "never bullets" rule structural — there
33
+ * is no bullet list here to render.
34
+ *
35
+ * Several references draw a glyph beside each entry. That is a template's
36
+ * `::before` on `.tpl-described__title`, not a prop: nothing in the résumé says
37
+ * which glyph an achievement deserves, so a template may repeat ONE mark and
38
+ * cannot vary it per entry.
39
+ */
40
+ export declare function DescribedEntries({ id, title, heading, items, className, headingClassName, entryClassName, headingLead, }: DescribedEntriesProps): import("react").JSX.Element | null;
41
+ //# sourceMappingURL=DescribedEntries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DescribedEntries.d.ts","sourceRoot":"","sources":["../../src/kit/DescribedEntries.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAMnD,4DAA4D;AAC5D,MAAM,MAAM,kBAAkB,GAAG,cAAc,GAAG,SAAS,GAAG,UAAU,CAAC;AAkBzE,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,kBAAkB,CAAC;IACvB;+EAC2E;IAC3E,KAAK,EAAE,MAAM,CAAC;IACd,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM,CAAC;IAQjB,KAAK,EAAE,SAAS,cAAc,EAAE,GAAG,SAAS,CAAC;IAC7C,6DAA6D;IAC7D,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,EAAE,EACF,KAAK,EACL,OAAO,EACP,KAAK,EACL,SAAS,EACT,gBAAgB,EAChB,cAAc,EACd,WAAW,GACZ,EAAE,qBAAqB,sCAoDvB"}
@@ -0,0 +1,57 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { DocumentSection } from './DocumentSection.js';
3
+ import { Collection } from '../collections/Collection.js';
4
+ import { useAuthoring } from '../collections/authoring-context.js';
5
+ import { EditableText } from '../nodes/EditableText.js';
6
+ import { useEditorText } from '../i18n/index.js';
7
+ /**
8
+ * Which guidance each section's two fields show, by core's `PLACEHOLDERS` keys.
9
+ *
10
+ * Spelled out rather than derived from the id, because `PLACEHOLDERS` is keyed
11
+ * by a name a person chose and a singularising slice would be a rule that holds
12
+ * for these three and breaks on the fourth.
13
+ */
14
+ const GUIDANCE = {
15
+ achievements: {
16
+ title: 'achievement_title',
17
+ body: 'achievement_description',
18
+ },
19
+ courses: { title: 'course_title', body: 'course_description' },
20
+ passions: { title: 'passion_title', body: 'passion_description' },
21
+ };
22
+ /**
23
+ * Achievements, Courses and Passions: a title, and a paragraph under it.
24
+ *
25
+ * ONE component for three sections and seventeen templates, because the
26
+ * contract says a template "places and styles" a shared capability and "never
27
+ * re-implements" it — and the alternative here is fifty-one copies of the same
28
+ * two fields.
29
+ *
30
+ * A template passes its classes and nothing else. It does not pass an entry
31
+ * component, as `CustomSections` does, because a custom section's shape is the
32
+ * candidate's and this shape is the references': every one of the thirteen sets
33
+ * these entries as a title over prose, so the markup is settled and only the
34
+ * painting varies. That also makes the "never bullets" rule structural — there
35
+ * is no bullet list here to render.
36
+ *
37
+ * Several references draw a glyph beside each entry. That is a template's
38
+ * `::before` on `.tpl-described__title`, not a prop: nothing in the résumé says
39
+ * which glyph an achievement deserves, so a template may repeat ONE mark and
40
+ * cannot vary it per entry.
41
+ */
42
+ export function DescribedEntries({ id, title, heading, items, className, headingClassName, entryClassName, headingLead, }) {
43
+ const authoring = useAuthoring() !== null;
44
+ const { placeholder } = useEditorText();
45
+ const entries = items ?? [];
46
+ /*
47
+ * Offered while authoring, omitted when read.
48
+ *
49
+ * The rule lives HERE rather than in each template's `{(x.length > 0 ||
50
+ * authoring) && …}` guard, because it is one rule and seventeen templates —
51
+ * and a template that got the guard subtly wrong would silently print an
52
+ * empty heading on somebody's exported PDF.
53
+ */
54
+ if (entries.length === 0 && !authoring)
55
+ return null;
56
+ return (_jsx(DocumentSection, { id: id, title: title, heading: heading, className: `tpl-described ${className}`, headingClassName: headingClassName, headingLead: headingLead, children: _jsx(Collection, { section: id, items: entries, children: ({ item, path, chrome, itemProps }) => (_jsxs("article", { ...itemProps, className: `tpl-described__entry ${entryClassName}`, "data-block": true, children: [chrome, _jsx("p", { className: "tpl-described__title", children: _jsx(EditableText, { path: `${path}.title`, value: item.title, placeholder: placeholder(GUIDANCE[id].title) }) }), _jsx("p", { className: "tpl-described__body", children: _jsx(EditableText, { path: `${path}.description`, value: item.description, placeholder: placeholder(GUIDANCE[id].body), multiline: true }) })] })) }) }));
57
+ }
@@ -0,0 +1,58 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { ResumeSectionId } from '@resumekit/schema';
3
+ import { type HeadingLead } from './textShapes.js';
4
+ export interface DocumentSectionProps {
5
+ /** The stored section this is, which gives it an adjustable gap and a rail. */
6
+ id: ResumeSectionId;
7
+ /**
8
+ * What this section is called by default — the template's own word for it.
9
+ *
10
+ * Printed unless the candidate has renamed the section, and used as the
11
+ * guidance in the field when they clear it, so a section can never end up
12
+ * with no heading at all.
13
+ */
14
+ title: string;
15
+ /**
16
+ * The heading the candidate typed, from `resume.section_headings[id]`.
17
+ *
18
+ * Passed in rather than read from a context because a template already has
19
+ * the résumé in hand, and a second way to reach the document's own data is a
20
+ * second thing that can disagree with the first.
21
+ */
22
+ heading?: string;
23
+ /** The template's own section and heading classes. */
24
+ className: string;
25
+ headingClassName: string;
26
+ /**
27
+ * The heading's first letters set apart for the template's stylesheet
28
+ * (`headingAccent`). The heading stays one field.
29
+ */
30
+ headingLead?: HeadingLead;
31
+ children: ReactNode;
32
+ }
33
+ /**
34
+ * One of the résumé's named sections, in whichever template draws it.
35
+ *
36
+ * The gap above it, its rail, and its editable heading come with it, so every
37
+ * template offers the same controls by using this rather than by remembering
38
+ * to. A component rather than a hook per section, because a template renders a
39
+ * section only when it has something in it, and a hook cannot be called behind
40
+ * that.
41
+ *
42
+ * ## The heading is a field
43
+ *
44
+ * `EditableText`, addressed at `section_headings.<id>`, so renaming a section
45
+ * is an ordinary `set` edit and needs no edit kind, no store and no save path of
46
+ * its own — it rides the one the rest of the document's text already uses, and
47
+ * is therefore undoable, exportable and template-independent for free. A custom
48
+ * section's heading has been editable since it was introduced; this is the same
49
+ * capability for the sections the schema names.
50
+ *
51
+ * The VALUE is `heading || title`: the candidate's word when they have typed
52
+ * one, and the template's own otherwise. So the default is real text that
53
+ * prints and extracts rather than a placeholder, and clearing the field returns
54
+ * the section to its proper name instead of leaving the page with a nameless
55
+ * block of entries.
56
+ */
57
+ export declare function DocumentSection({ id, title, heading, className, headingClassName, headingLead, children, }: DocumentSectionProps): import("react").JSX.Element;
58
+ //# sourceMappingURL=DocumentSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocumentSection.d.ts","sourceRoot":"","sources":["../../src/kit/DocumentSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAIzD,OAAO,EAAe,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEhE,MAAM,WAAW,oBAAoB;IACnC,+EAA+E;IAC/E,EAAE,EAAE,eAAe,CAAC;IACpB;;;;;;OAMG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sDAAsD;IACtD,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,eAAe,CAAC,EAC9B,EAAE,EACF,KAAK,EACL,OAAO,EACP,SAAS,EACT,gBAAgB,EAChB,WAAW,EACX,QAAQ,GACT,EAAE,oBAAoB,+BA2BtB"}
@@ -0,0 +1,38 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useSpaceSlot } from '../spacing/useSpaceSlot.js';
3
+ import { EditableText } from '../nodes/EditableText.js';
4
+ import { Heading } from './Heading.js';
5
+ import { leadLetters } from './textShapes.js';
6
+ /**
7
+ * One of the résumé's named sections, in whichever template draws it.
8
+ *
9
+ * The gap above it, its rail, and its editable heading come with it, so every
10
+ * template offers the same controls by using this rather than by remembering
11
+ * to. A component rather than a hook per section, because a template renders a
12
+ * section only when it has something in it, and a hook cannot be called behind
13
+ * that.
14
+ *
15
+ * ## The heading is a field
16
+ *
17
+ * `EditableText`, addressed at `section_headings.<id>`, so renaming a section
18
+ * is an ordinary `set` edit and needs no edit kind, no store and no save path of
19
+ * its own — it rides the one the rest of the document's text already uses, and
20
+ * is therefore undoable, exportable and template-independent for free. A custom
21
+ * section's heading has been editable since it was introduced; this is the same
22
+ * capability for the sections the schema names.
23
+ *
24
+ * The VALUE is `heading || title`: the candidate's word when they have typed
25
+ * one, and the template's own otherwise. So the default is real text that
26
+ * prints and extracts rather than a placeholder, and clearing the field returns
27
+ * the section to its proper name instead of leaving the page with a nameless
28
+ * block of entries.
29
+ */
30
+ export function DocumentSection({ id, title, heading, className, headingClassName, headingLead, children, }) {
31
+ /*
32
+ * The rail is named by what is PRINTED, so "Interests · space above" names
33
+ * the section the candidate can see rather than the one the schema calls it.
34
+ */
35
+ const printed = heading || title;
36
+ const space = useSpaceSlot({ section: id }, printed);
37
+ return (_jsxs("section", { className: className, ...space.rootProps, children: [space.handle, _jsx(Heading, { level: 2, className: headingClassName, "data-block": true, "data-keep-with-next": true, children: _jsx(EditableText, { path: `section_headings.${id}`, value: printed, placeholder: title, defaultValue: title, shape: headingLead && leadLetters(headingLead) }) }), children] }));
38
+ }
@@ -0,0 +1,12 @@
1
+ import { type SkillGroupProps } from './LabelledSkillGroup.js';
2
+ /**
3
+ * A skills group as one row of an invisible table: its category in the label
4
+ * column, its skills in cells. The shape is `skill-grid.css`; drawn inside a
5
+ * `tpl-skill-grid` list.
6
+ *
7
+ * The skills are list items with no separator between them. Chromium drops a
8
+ * hidden separator from the PDF it prints, so what a parser can see is the
9
+ * cell: one skill per cell reads as one skill per line.
10
+ */
11
+ export declare function GridSkillGroup(props: SkillGroupProps): import("react").JSX.Element;
12
+ //# sourceMappingURL=GridSkillGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GridSkillGroup.d.ts","sourceRoot":"","sources":["../../src/kit/GridSkillGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,eAAe,EACrB,MAAM,yBAAyB,CAAC;AAEjC;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,eAAe,+BAEpD"}
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { LabelledSkillGroup, } from './LabelledSkillGroup.js';
3
+ /**
4
+ * A skills group as one row of an invisible table: its category in the label
5
+ * column, its skills in cells. The shape is `skill-grid.css`; drawn inside a
6
+ * `tpl-skill-grid` list.
7
+ *
8
+ * The skills are list items with no separator between them. Chromium drops a
9
+ * hidden separator from the PDF it prints, so what a parser can see is the
10
+ * cell: one skill per cell reads as one skill per line.
11
+ */
12
+ export function GridSkillGroup(props) {
13
+ return _jsx(LabelledSkillGroup, { ...props, block: "tpl-skill-grid" });
14
+ }
@@ -0,0 +1,11 @@
1
+ import type { HTMLAttributes, ReactNode } from 'react';
2
+ type HeadingProps = HTMLAttributes<HTMLElement> & {
3
+ level: 1 | 2 | 3;
4
+ children: ReactNode;
5
+ 'data-block'?: boolean;
6
+ 'data-keep-with-next'?: boolean;
7
+ };
8
+ /** A heading — or, in a picture, a `div` drawn like one (`heading.css`). */
9
+ export declare function Heading({ level, ...props }: HeadingProps): import("react").JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=Heading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../src/kit/Heading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,eAAe,CAAC;AAEvB,KAAK,YAAY,GAAG,cAAc,CAAC,WAAW,CAAC,GAAG;IAChD,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC,CAAC;AAEF,4EAA4E;AAC5E,wBAAgB,OAAO,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,+BAIxD"}
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { usePicture } from '../picture-context.js';
3
+ import './heading.css';
4
+ /** A heading — or, in a picture, a `div` drawn like one (`heading.css`). */
5
+ export function Heading({ level, ...props }) {
6
+ if (usePicture())
7
+ return _jsx("div", { "data-h": level, ...props });
8
+ const Tag = `h${level}`;
9
+ return _jsx(Tag, { ...props });
10
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The candidate's initials, where a design shows a portrait.
3
+ *
4
+ * A résumé stores no photograph, and one cannot be invented — but the slot is
5
+ * part of the design, and leaving it empty is a hole in the page. So the
6
+ * initials are drawn there, derived from the name printed beside them, which
7
+ * means they can never disagree with it.
8
+ *
9
+ * `aria-hidden`, and no text of its own that a parser would read: the name is
10
+ * real text a few millimetres away, and an extracted "IW" between it and the
11
+ * headline would be noise in the one place a screening system is strictest.
12
+ */
13
+ export declare function InitialsAvatar({ name, className, }: {
14
+ name: string;
15
+ className?: string;
16
+ }): import("react").JSX.Element;
17
+ //# sourceMappingURL=InitialsAvatar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InitialsAvatar.d.ts","sourceRoot":"","sources":["../../src/kit/InitialsAvatar.tsx"],"names":[],"mappings":"AACA,OAAO,cAAc,CAAC;AAEtB;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,SAAS,GACV,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,+BASA"}
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { monogram } from './monogram.js';
3
+ import './avatar.css';
4
+ /**
5
+ * The candidate's initials, where a design shows a portrait.
6
+ *
7
+ * A résumé stores no photograph, and one cannot be invented — but the slot is
8
+ * part of the design, and leaving it empty is a hole in the page. So the
9
+ * initials are drawn there, derived from the name printed beside them, which
10
+ * means they can never disagree with it.
11
+ *
12
+ * `aria-hidden`, and no text of its own that a parser would read: the name is
13
+ * real text a few millimetres away, and an extracted "IW" between it and the
14
+ * headline would be noise in the one place a screening system is strictest.
15
+ */
16
+ export function InitialsAvatar({ name, className, }) {
17
+ return (_jsx("p", { className: ['tpl-avatar', className].filter(Boolean).join(' '), "aria-hidden": "true", children: monogram(name) }));
18
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * An employer's initials, where a design shows its logo.
3
+ *
4
+ * A résumé stores no logos, and fetching one would mean a network request from
5
+ * a renderer that resolves no URLs — the property that keeps a crafted résumé
6
+ * from steering it anywhere. So the chip carries the initials of the name the
7
+ * entry already prints.
8
+ *
9
+ * `aria-hidden`, and nothing for a parser to read: the employer's name is real
10
+ * text beside it.
11
+ */
12
+ export declare function InitialsChip({ name, className, }: {
13
+ name: string;
14
+ className?: string;
15
+ }): import("react").JSX.Element;
16
+ //# sourceMappingURL=InitialsChip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InitialsChip.d.ts","sourceRoot":"","sources":["../../src/kit/InitialsChip.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,SAAS,GACV,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,+BASA"}
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { monogram } from './monogram.js';
3
+ /**
4
+ * An employer's initials, where a design shows its logo.
5
+ *
6
+ * A résumé stores no logos, and fetching one would mean a network request from
7
+ * a renderer that resolves no URLs — the property that keeps a crafted résumé
8
+ * from steering it anywhere. So the chip carries the initials of the name the
9
+ * entry already prints.
10
+ *
11
+ * `aria-hidden`, and nothing for a parser to read: the employer's name is real
12
+ * text beside it.
13
+ */
14
+ export function InitialsChip({ name, className, }) {
15
+ return (_jsx("span", { className: ['tpl-chip', className].filter(Boolean).join(' '), "aria-hidden": "true", children: monogram(name) }));
16
+ }
@@ -0,0 +1,22 @@
1
+ import type { SkillGroup } from '@resumekit/schema';
2
+ /**
3
+ * A skills group as its items on a line, for the templates that print skills
4
+ * as one run of keywords.
5
+ *
6
+ * Like `BulletSkillGroup`, not an addressable container: the group is storage,
7
+ * the skills are what the page shows. Its separator is a real character, so a
8
+ * parser reading the exported PDF gets "React · TypeScript" rather than two
9
+ * words run together.
10
+ */
11
+ export declare function InlineSkillGroup({ item, path, separator, first, }: {
12
+ item: SkillGroup;
13
+ path: string;
14
+ /**
15
+ * Written between groups, as text — the same separator the items inside a
16
+ * group use, so several groups read as the one run of keywords the page
17
+ * shows rather than as a list of lists.
18
+ */
19
+ separator?: string;
20
+ first: boolean;
21
+ }): import("react").JSX.Element;
22
+ //# sourceMappingURL=InlineSkillGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InlineSkillGroup.d.ts","sourceRoot":"","sources":["../../src/kit/InlineSkillGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAIpD;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,IAAI,EACJ,SAAgB,EAChB,KAAK,GACN,EAAE;IACD,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;CAChB,+BAYA"}