@resumekit/react 0.0.0-stage → 0.1.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 (666) 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 +185 -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 +12 -0
  226. package/dist/kit/documentStyle.d.ts.map +1 -0
  227. package/dist/kit/documentStyle.js +24 -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/letter/LetterDocument.d.ts +13 -0
  242. package/dist/letter/LetterDocument.d.ts.map +1 -0
  243. package/dist/letter/LetterDocument.js +12 -0
  244. package/dist/letter/letter.css +75 -0
  245. package/dist/nodes/AuthoredBullets.d.ts +22 -0
  246. package/dist/nodes/AuthoredBullets.d.ts.map +1 -0
  247. package/dist/nodes/AuthoredBullets.js +101 -0
  248. package/dist/nodes/CustomSections.d.ts +42 -0
  249. package/dist/nodes/CustomSections.d.ts.map +1 -0
  250. package/dist/nodes/CustomSections.js +27 -0
  251. package/dist/nodes/EditableBulletList.d.ts +15 -0
  252. package/dist/nodes/EditableBulletList.d.ts.map +1 -0
  253. package/dist/nodes/EditableBulletList.js +98 -0
  254. package/dist/nodes/EditableInlineList.d.ts +27 -0
  255. package/dist/nodes/EditableInlineList.d.ts.map +1 -0
  256. package/dist/nodes/EditableInlineList.js +50 -0
  257. package/dist/nodes/EditableText.d.ts +79 -0
  258. package/dist/nodes/EditableText.d.ts.map +1 -0
  259. package/dist/nodes/EditableText.js +113 -0
  260. package/dist/nodes/LinkField.d.ts +103 -0
  261. package/dist/nodes/LinkField.d.ts.map +1 -0
  262. package/dist/nodes/LinkField.js +277 -0
  263. package/dist/nodes/PlainTextField.d.ts +38 -0
  264. package/dist/nodes/PlainTextField.d.ts.map +1 -0
  265. package/dist/nodes/PlainTextField.js +72 -0
  266. package/dist/nodes/formatting.d.ts +34 -0
  267. package/dist/nodes/formatting.d.ts.map +1 -0
  268. package/dist/nodes/formatting.js +24 -0
  269. package/dist/nodes/link-field.css +200 -0
  270. package/dist/nodes/locked.d.ts +38 -0
  271. package/dist/nodes/locked.d.ts.map +1 -0
  272. package/dist/nodes/locked.js +65 -0
  273. package/dist/nodes/template-node.css +720 -0
  274. package/dist/paged.css +265 -0
  275. package/dist/pagination.d.ts +93 -0
  276. package/dist/pagination.d.ts.map +1 -0
  277. package/dist/pagination.js +167 -0
  278. package/dist/picture-context.d.ts +6 -0
  279. package/dist/picture-context.d.ts.map +1 -0
  280. package/dist/picture-context.js +14 -0
  281. package/dist/presentation-context.d.ts +45 -0
  282. package/dist/presentation-context.d.ts.map +1 -0
  283. package/dist/presentation-context.js +44 -0
  284. package/dist/presented.d.ts +16 -0
  285. package/dist/presented.d.ts.map +1 -0
  286. package/dist/presented.js +22 -0
  287. package/dist/rail/ContainerRail.d.ts +29 -0
  288. package/dist/rail/ContainerRail.d.ts.map +1 -0
  289. package/dist/rail/ContainerRail.js +50 -0
  290. package/dist/rail/EntryActions.d.ts +19 -0
  291. package/dist/rail/EntryActions.d.ts.map +1 -0
  292. package/dist/rail/EntryActions.js +17 -0
  293. package/dist/rail/rail-store.d.ts +42 -0
  294. package/dist/rail/rail-store.d.ts.map +1 -0
  295. package/dist/rail/rail-store.js +107 -0
  296. package/dist/rail/rail.css +188 -0
  297. package/dist/rail/useSpaceDrag.d.ts +30 -0
  298. package/dist/rail/useSpaceDrag.d.ts.map +1 -0
  299. package/dist/rail/useSpaceDrag.js +154 -0
  300. package/dist/registry.d.ts +35 -0
  301. package/dist/registry.d.ts.map +1 -0
  302. package/dist/registry.js +74 -0
  303. package/dist/spacing/spacing-context.d.ts +53 -0
  304. package/dist/spacing/spacing-context.d.ts.map +1 -0
  305. package/dist/spacing/spacing-context.js +36 -0
  306. package/dist/spacing/spacing.css +159 -0
  307. package/dist/spacing/useSpaceSlot.d.ts +52 -0
  308. package/dist/spacing/useSpaceSlot.d.ts.map +1 -0
  309. package/dist/spacing/useSpaceSlot.js +38 -0
  310. package/dist/static/api.d.ts +13 -0
  311. package/dist/static/api.d.ts.map +1 -0
  312. package/dist/static/api.js +1 -0
  313. package/dist/static/static.mjs +33779 -0
  314. package/dist/static/templates/academic.css +1 -0
  315. package/dist/static/templates/alta.css +1 -0
  316. package/dist/static/templates/classic.css +1 -0
  317. package/dist/static/templates/cobalt.css +1 -0
  318. package/dist/static/templates/compact.css +1 -0
  319. package/dist/static/templates/contemporary.css +1 -0
  320. package/dist/static/templates/creative.css +1 -0
  321. package/dist/static/templates/crimson.css +1 -0
  322. package/dist/static/templates/curve.css +1 -0
  323. package/dist/static/templates/double-column-logos.css +1 -0
  324. package/dist/static/templates/double-column.css +1 -0
  325. package/dist/static/templates/elegant-logos.css +1 -0
  326. package/dist/static/templates/elegant.css +1 -0
  327. package/dist/static/templates/engineer.css +1 -0
  328. package/dist/static/templates/executive.css +1 -0
  329. package/dist/static/templates/harvard.css +1 -0
  330. package/dist/static/templates/hipster.css +1 -0
  331. package/dist/static/templates/ivy.css +1 -0
  332. package/dist/static/templates/meridian.css +1 -0
  333. package/dist/static/templates/modern.css +1 -0
  334. package/dist/static/templates/polished.css +1 -0
  335. package/dist/static/templates/portrait.css +1 -0
  336. package/dist/static/templates/prism.css +1 -0
  337. package/dist/static/templates/scholar.css +1 -0
  338. package/dist/static/templates/split.css +1 -0
  339. package/dist/static/templates/stylish.css +1 -0
  340. package/dist/static/templates/timeline.css +1 -0
  341. package/dist/static/templates.css +1 -0
  342. package/dist/templates/academic/AcademicDocument.d.ts +6 -0
  343. package/dist/templates/academic/AcademicDocument.d.ts.map +1 -0
  344. package/dist/templates/academic/AcademicDocument.js +29 -0
  345. package/dist/templates/academic/academic.css +284 -0
  346. package/dist/templates/academic/entries.d.ts +22 -0
  347. package/dist/templates/academic/entries.d.ts.map +1 -0
  348. package/dist/templates/academic/entries.js +17 -0
  349. package/dist/templates/alta/AltaDocument.d.ts +6 -0
  350. package/dist/templates/alta/AltaDocument.d.ts.map +1 -0
  351. package/dist/templates/alta/AltaDocument.js +29 -0
  352. package/dist/templates/alta/alta.css +413 -0
  353. package/dist/templates/alta/entries.d.ts +22 -0
  354. package/dist/templates/alta/entries.d.ts.map +1 -0
  355. package/dist/templates/alta/entries.js +17 -0
  356. package/dist/templates/classic/ClassicDocument.d.ts +6 -0
  357. package/dist/templates/classic/ClassicDocument.d.ts.map +1 -0
  358. package/dist/templates/classic/ClassicDocument.js +26 -0
  359. package/dist/templates/classic/classic.css +251 -0
  360. package/dist/templates/classic/entries.d.ts +22 -0
  361. package/dist/templates/classic/entries.d.ts.map +1 -0
  362. package/dist/templates/classic/entries.js +17 -0
  363. package/dist/templates/cobalt/CobaltDocument.d.ts +6 -0
  364. package/dist/templates/cobalt/CobaltDocument.d.ts.map +1 -0
  365. package/dist/templates/cobalt/CobaltDocument.js +28 -0
  366. package/dist/templates/cobalt/cobalt.css +478 -0
  367. package/dist/templates/cobalt/crest.d.ts +6 -0
  368. package/dist/templates/cobalt/crest.d.ts.map +1 -0
  369. package/dist/templates/cobalt/crest.js +8 -0
  370. package/dist/templates/cobalt/entries.d.ts +22 -0
  371. package/dist/templates/cobalt/entries.d.ts.map +1 -0
  372. package/dist/templates/cobalt/entries.js +17 -0
  373. package/dist/templates/compact/CompactDocument.d.ts +6 -0
  374. package/dist/templates/compact/CompactDocument.d.ts.map +1 -0
  375. package/dist/templates/compact/CompactDocument.js +28 -0
  376. package/dist/templates/compact/compact.css +240 -0
  377. package/dist/templates/compact/entries.d.ts +22 -0
  378. package/dist/templates/compact/entries.d.ts.map +1 -0
  379. package/dist/templates/compact/entries.js +17 -0
  380. package/dist/templates/contemporary/ContemporaryDocument.d.ts +6 -0
  381. package/dist/templates/contemporary/ContemporaryDocument.d.ts.map +1 -0
  382. package/dist/templates/contemporary/ContemporaryDocument.js +29 -0
  383. package/dist/templates/contemporary/contemporary.css +411 -0
  384. package/dist/templates/contemporary/entries.d.ts +22 -0
  385. package/dist/templates/contemporary/entries.d.ts.map +1 -0
  386. package/dist/templates/contemporary/entries.js +17 -0
  387. package/dist/templates/creative/CreativeDocument.d.ts +6 -0
  388. package/dist/templates/creative/CreativeDocument.d.ts.map +1 -0
  389. package/dist/templates/creative/CreativeDocument.js +29 -0
  390. package/dist/templates/creative/creative.css +326 -0
  391. package/dist/templates/creative/entries.d.ts +22 -0
  392. package/dist/templates/creative/entries.d.ts.map +1 -0
  393. package/dist/templates/creative/entries.js +17 -0
  394. package/dist/templates/crimson/CrimsonDocument.d.ts +6 -0
  395. package/dist/templates/crimson/CrimsonDocument.d.ts.map +1 -0
  396. package/dist/templates/crimson/CrimsonDocument.js +30 -0
  397. package/dist/templates/crimson/crimson.css +301 -0
  398. package/dist/templates/crimson/entries.d.ts +22 -0
  399. package/dist/templates/crimson/entries.d.ts.map +1 -0
  400. package/dist/templates/crimson/entries.js +17 -0
  401. package/dist/templates/curve/CurveDocument.d.ts +6 -0
  402. package/dist/templates/curve/CurveDocument.d.ts.map +1 -0
  403. package/dist/templates/curve/CurveDocument.js +29 -0
  404. package/dist/templates/curve/curve.css +330 -0
  405. package/dist/templates/curve/entries.d.ts +22 -0
  406. package/dist/templates/curve/entries.d.ts.map +1 -0
  407. package/dist/templates/curve/entries.js +17 -0
  408. package/dist/templates/double-column/DoubleColumnDocument.d.ts +6 -0
  409. package/dist/templates/double-column/DoubleColumnDocument.d.ts.map +1 -0
  410. package/dist/templates/double-column/DoubleColumnDocument.js +29 -0
  411. package/dist/templates/double-column/double-column.css +331 -0
  412. package/dist/templates/double-column/entries.d.ts +22 -0
  413. package/dist/templates/double-column/entries.d.ts.map +1 -0
  414. package/dist/templates/double-column/entries.js +17 -0
  415. package/dist/templates/double-column-logos/DoubleColumnLogosDocument.d.ts +6 -0
  416. package/dist/templates/double-column-logos/DoubleColumnLogosDocument.d.ts.map +1 -0
  417. package/dist/templates/double-column-logos/DoubleColumnLogosDocument.js +28 -0
  418. package/dist/templates/double-column-logos/double-column-logos.css +333 -0
  419. package/dist/templates/double-column-logos/entries.d.ts +22 -0
  420. package/dist/templates/double-column-logos/entries.d.ts.map +1 -0
  421. package/dist/templates/double-column-logos/entries.js +18 -0
  422. package/dist/templates/elegant/ElegantDocument.d.ts +6 -0
  423. package/dist/templates/elegant/ElegantDocument.d.ts.map +1 -0
  424. package/dist/templates/elegant/ElegantDocument.js +31 -0
  425. package/dist/templates/elegant/elegant.css +358 -0
  426. package/dist/templates/elegant/entries.d.ts +22 -0
  427. package/dist/templates/elegant/entries.d.ts.map +1 -0
  428. package/dist/templates/elegant/entries.js +17 -0
  429. package/dist/templates/elegant-logos/ElegantLogosDocument.d.ts +6 -0
  430. package/dist/templates/elegant-logos/ElegantLogosDocument.d.ts.map +1 -0
  431. package/dist/templates/elegant-logos/ElegantLogosDocument.js +30 -0
  432. package/dist/templates/elegant-logos/elegant-logos.css +370 -0
  433. package/dist/templates/elegant-logos/entries.d.ts +22 -0
  434. package/dist/templates/elegant-logos/entries.d.ts.map +1 -0
  435. package/dist/templates/elegant-logos/entries.js +18 -0
  436. package/dist/templates/engineer/EngineerDocument.d.ts +6 -0
  437. package/dist/templates/engineer/EngineerDocument.d.ts.map +1 -0
  438. package/dist/templates/engineer/EngineerDocument.js +26 -0
  439. package/dist/templates/engineer/engineer.css +261 -0
  440. package/dist/templates/engineer/entries.d.ts +22 -0
  441. package/dist/templates/engineer/entries.d.ts.map +1 -0
  442. package/dist/templates/engineer/entries.js +17 -0
  443. package/dist/templates/executive/ExecutiveDocument.d.ts +6 -0
  444. package/dist/templates/executive/ExecutiveDocument.d.ts.map +1 -0
  445. package/dist/templates/executive/ExecutiveDocument.js +29 -0
  446. package/dist/templates/executive/entries.d.ts +22 -0
  447. package/dist/templates/executive/entries.d.ts.map +1 -0
  448. package/dist/templates/executive/entries.js +17 -0
  449. package/dist/templates/executive/executive.css +394 -0
  450. package/dist/templates/harvard/HarvardDocument.d.ts +6 -0
  451. package/dist/templates/harvard/HarvardDocument.d.ts.map +1 -0
  452. package/dist/templates/harvard/HarvardDocument.js +25 -0
  453. package/dist/templates/harvard/entries.d.ts +28 -0
  454. package/dist/templates/harvard/entries.d.ts.map +1 -0
  455. package/dist/templates/harvard/entries.js +22 -0
  456. package/dist/templates/harvard/harvard.css +436 -0
  457. package/dist/templates/hipster/HipsterDocument.d.ts +6 -0
  458. package/dist/templates/hipster/HipsterDocument.d.ts.map +1 -0
  459. package/dist/templates/hipster/HipsterDocument.js +30 -0
  460. package/dist/templates/hipster/entries.d.ts +22 -0
  461. package/dist/templates/hipster/entries.d.ts.map +1 -0
  462. package/dist/templates/hipster/entries.js +17 -0
  463. package/dist/templates/hipster/hipster.css +442 -0
  464. package/dist/templates/ivy/IvyDocument.d.ts +6 -0
  465. package/dist/templates/ivy/IvyDocument.d.ts.map +1 -0
  466. package/dist/templates/ivy/IvyDocument.js +26 -0
  467. package/dist/templates/ivy/entries.d.ts +22 -0
  468. package/dist/templates/ivy/entries.d.ts.map +1 -0
  469. package/dist/templates/ivy/entries.js +17 -0
  470. package/dist/templates/ivy/ivy.css +292 -0
  471. package/dist/templates/meridian/MeridianDocument.d.ts +6 -0
  472. package/dist/templates/meridian/MeridianDocument.d.ts.map +1 -0
  473. package/dist/templates/meridian/MeridianDocument.js +28 -0
  474. package/dist/templates/meridian/entries.d.ts +22 -0
  475. package/dist/templates/meridian/entries.d.ts.map +1 -0
  476. package/dist/templates/meridian/entries.js +17 -0
  477. package/dist/templates/meridian/meridian.css +431 -0
  478. package/dist/templates/modern/ModernDocument.d.ts +6 -0
  479. package/dist/templates/modern/ModernDocument.d.ts.map +1 -0
  480. package/dist/templates/modern/ModernDocument.js +29 -0
  481. package/dist/templates/modern/entries.d.ts +22 -0
  482. package/dist/templates/modern/entries.d.ts.map +1 -0
  483. package/dist/templates/modern/entries.js +17 -0
  484. package/dist/templates/modern/modern.css +309 -0
  485. package/dist/templates/polished/PolishedDocument.d.ts +6 -0
  486. package/dist/templates/polished/PolishedDocument.d.ts.map +1 -0
  487. package/dist/templates/polished/PolishedDocument.js +28 -0
  488. package/dist/templates/polished/entries.d.ts +22 -0
  489. package/dist/templates/polished/entries.d.ts.map +1 -0
  490. package/dist/templates/polished/entries.js +17 -0
  491. package/dist/templates/polished/polished.css +327 -0
  492. package/dist/templates/portrait/PortraitDocument.d.ts +6 -0
  493. package/dist/templates/portrait/PortraitDocument.d.ts.map +1 -0
  494. package/dist/templates/portrait/PortraitDocument.js +30 -0
  495. package/dist/templates/portrait/entries.d.ts +22 -0
  496. package/dist/templates/portrait/entries.d.ts.map +1 -0
  497. package/dist/templates/portrait/entries.js +17 -0
  498. package/dist/templates/portrait/portrait.css +427 -0
  499. package/dist/templates/prism/PrismDocument.d.ts +6 -0
  500. package/dist/templates/prism/PrismDocument.d.ts.map +1 -0
  501. package/dist/templates/prism/PrismDocument.js +35 -0
  502. package/dist/templates/prism/entries.d.ts +22 -0
  503. package/dist/templates/prism/entries.d.ts.map +1 -0
  504. package/dist/templates/prism/entries.js +17 -0
  505. package/dist/templates/prism/prism.css +314 -0
  506. package/dist/templates/scholar/ScholarDocument.d.ts +6 -0
  507. package/dist/templates/scholar/ScholarDocument.d.ts.map +1 -0
  508. package/dist/templates/scholar/ScholarDocument.js +27 -0
  509. package/dist/templates/scholar/entries.d.ts +22 -0
  510. package/dist/templates/scholar/entries.d.ts.map +1 -0
  511. package/dist/templates/scholar/entries.js +17 -0
  512. package/dist/templates/scholar/scholar.css +279 -0
  513. package/dist/templates/skills.d.ts +19 -0
  514. package/dist/templates/skills.d.ts.map +1 -0
  515. package/dist/templates/skills.js +19 -0
  516. package/dist/templates/split/SplitDocument.d.ts +6 -0
  517. package/dist/templates/split/SplitDocument.d.ts.map +1 -0
  518. package/dist/templates/split/SplitDocument.js +29 -0
  519. package/dist/templates/split/entries.d.ts +22 -0
  520. package/dist/templates/split/entries.d.ts.map +1 -0
  521. package/dist/templates/split/entries.js +17 -0
  522. package/dist/templates/split/split.css +337 -0
  523. package/dist/templates/stylish/StylishDocument.d.ts +6 -0
  524. package/dist/templates/stylish/StylishDocument.d.ts.map +1 -0
  525. package/dist/templates/stylish/StylishDocument.js +29 -0
  526. package/dist/templates/stylish/entries.d.ts +22 -0
  527. package/dist/templates/stylish/entries.d.ts.map +1 -0
  528. package/dist/templates/stylish/entries.js +17 -0
  529. package/dist/templates/stylish/stylish.css +340 -0
  530. package/dist/templates/timeline/TimelineDocument.d.ts +6 -0
  531. package/dist/templates/timeline/TimelineDocument.d.ts.map +1 -0
  532. package/dist/templates/timeline/TimelineDocument.js +27 -0
  533. package/dist/templates/timeline/entries.d.ts +22 -0
  534. package/dist/templates/timeline/entries.d.ts.map +1 -0
  535. package/dist/templates/timeline/entries.js +17 -0
  536. package/dist/templates/timeline/timeline.css +295 -0
  537. package/dist/useFitZoom.d.ts +99 -0
  538. package/dist/useFitZoom.d.ts.map +1 -0
  539. package/dist/useFitZoom.js +171 -0
  540. package/package.json +81 -3
  541. package/src/PagedSheet.tsx +792 -0
  542. package/src/TemplateDocument.tsx +112 -0
  543. package/src/autosave-context.tsx +67 -0
  544. package/src/collections/AuthoredItems.tsx +199 -0
  545. package/src/collections/Collection.tsx +73 -0
  546. package/src/collections/CollectionItems.tsx +318 -0
  547. package/src/collections/EntryOverlay.tsx +162 -0
  548. package/src/collections/SortableItems.tsx +167 -0
  549. package/src/collections/authoring-context.tsx +140 -0
  550. package/src/collections/entry-text.ts +41 -0
  551. package/src/collections/icons.tsx +83 -0
  552. package/src/collections/library/LibraryAction.tsx +200 -0
  553. package/src/collections/library/LibraryPicker.tsx +325 -0
  554. package/src/collections/overlay-context.tsx +49 -0
  555. package/src/collections/preload.ts +23 -0
  556. package/src/collections/selection-context.tsx +88 -0
  557. package/src/collections/useCollection.ts +133 -0
  558. package/src/collections/useCustomEntries.ts +84 -0
  559. package/src/collections/useSectionCollection.ts +268 -0
  560. package/src/compiler/emit.ts +736 -0
  561. package/src/compiler/schema.ts +689 -0
  562. package/src/export/entry.tsx +177 -0
  563. package/src/fields/date-issues-context.tsx +105 -0
  564. package/src/fields/field-registry.tsx +358 -0
  565. package/src/i18n/catalog.ts +81 -0
  566. package/src/i18n/format.ts +50 -0
  567. package/src/i18n/index.ts +21 -0
  568. package/src/i18n/locale-context.tsx +135 -0
  569. package/src/index.ts +156 -0
  570. package/src/kit/BulletSkillGroup.tsx +37 -0
  571. package/src/kit/DescribedEntries.tsx +132 -0
  572. package/src/kit/DocumentSection.tsx +97 -0
  573. package/src/kit/GridSkillGroup.tsx +17 -0
  574. package/src/kit/Heading.tsx +17 -0
  575. package/src/kit/InitialsAvatar.tsx +31 -0
  576. package/src/kit/InitialsChip.tsx +29 -0
  577. package/src/kit/InlineSkillGroup.tsx +41 -0
  578. package/src/kit/LabelledSkillGroup.tsx +68 -0
  579. package/src/kit/LanguageList.tsx +148 -0
  580. package/src/kit/Separator.tsx +30 -0
  581. package/src/kit/TagSkillGroup.tsx +19 -0
  582. package/src/kit/contact.ts +34 -0
  583. package/src/kit/documentStyle.ts +33 -0
  584. package/src/kit/monogram.ts +11 -0
  585. package/src/kit/textShapes.tsx +61 -0
  586. package/src/letter/LetterDocument.tsx +33 -0
  587. package/src/nodes/AuthoredBullets.tsx +253 -0
  588. package/src/nodes/CustomSections.tsx +138 -0
  589. package/src/nodes/EditableBulletList.tsx +186 -0
  590. package/src/nodes/EditableInlineList.tsx +109 -0
  591. package/src/nodes/EditableText.tsx +261 -0
  592. package/src/nodes/LinkField.tsx +438 -0
  593. package/src/nodes/PlainTextField.tsx +132 -0
  594. package/src/nodes/formatting.ts +58 -0
  595. package/src/nodes/locked.ts +67 -0
  596. package/src/pagination.ts +238 -0
  597. package/src/picture-context.tsx +18 -0
  598. package/src/presentation-context.tsx +87 -0
  599. package/src/presented.ts +29 -0
  600. package/src/rail/ContainerRail.tsx +145 -0
  601. package/src/rail/EntryActions.tsx +104 -0
  602. package/src/rail/rail-store.tsx +126 -0
  603. package/src/rail/useSpaceDrag.ts +177 -0
  604. package/src/registry.ts +101 -0
  605. package/src/spacing/spacing-context.tsx +100 -0
  606. package/src/spacing/useSpaceSlot.tsx +97 -0
  607. package/src/static/api.ts +19 -0
  608. package/src/static/fixtures.ts +80 -0
  609. package/src/static/render.tsx +24 -0
  610. package/src/templates/academic/AcademicDocument.tsx +255 -0
  611. package/src/templates/academic/entries.tsx +176 -0
  612. package/src/templates/alta/AltaDocument.tsx +265 -0
  613. package/src/templates/alta/entries.tsx +167 -0
  614. package/src/templates/classic/ClassicDocument.tsx +248 -0
  615. package/src/templates/classic/entries.tsx +175 -0
  616. package/src/templates/cobalt/CobaltDocument.tsx +302 -0
  617. package/src/templates/cobalt/crest.tsx +31 -0
  618. package/src/templates/cobalt/entries.tsx +136 -0
  619. package/src/templates/compact/CompactDocument.tsx +256 -0
  620. package/src/templates/compact/entries.tsx +167 -0
  621. package/src/templates/contemporary/ContemporaryDocument.tsx +287 -0
  622. package/src/templates/contemporary/entries.tsx +167 -0
  623. package/src/templates/creative/CreativeDocument.tsx +269 -0
  624. package/src/templates/creative/entries.tsx +167 -0
  625. package/src/templates/crimson/CrimsonDocument.tsx +283 -0
  626. package/src/templates/crimson/entries.tsx +169 -0
  627. package/src/templates/curve/CurveDocument.tsx +259 -0
  628. package/src/templates/curve/entries.tsx +168 -0
  629. package/src/templates/double-column/DoubleColumnDocument.tsx +269 -0
  630. package/src/templates/double-column/entries.tsx +169 -0
  631. package/src/templates/double-column-logos/DoubleColumnLogosDocument.tsx +262 -0
  632. package/src/templates/double-column-logos/entries.tsx +172 -0
  633. package/src/templates/elegant/ElegantDocument.tsx +297 -0
  634. package/src/templates/elegant/entries.tsx +167 -0
  635. package/src/templates/elegant-logos/ElegantLogosDocument.tsx +291 -0
  636. package/src/templates/elegant-logos/entries.tsx +170 -0
  637. package/src/templates/engineer/EngineerDocument.tsx +248 -0
  638. package/src/templates/engineer/entries.tsx +170 -0
  639. package/src/templates/executive/ExecutiveDocument.tsx +312 -0
  640. package/src/templates/executive/entries.tsx +146 -0
  641. package/src/templates/harvard/HarvardDocument.tsx +248 -0
  642. package/src/templates/harvard/entries.tsx +205 -0
  643. package/src/templates/hipster/HipsterDocument.tsx +289 -0
  644. package/src/templates/hipster/entries.tsx +175 -0
  645. package/src/templates/ivy/IvyDocument.tsx +248 -0
  646. package/src/templates/ivy/entries.tsx +167 -0
  647. package/src/templates/meridian/MeridianDocument.tsx +304 -0
  648. package/src/templates/meridian/entries.tsx +140 -0
  649. package/src/templates/modern/ModernDocument.tsx +265 -0
  650. package/src/templates/modern/entries.tsx +167 -0
  651. package/src/templates/polished/PolishedDocument.tsx +262 -0
  652. package/src/templates/polished/entries.tsx +167 -0
  653. package/src/templates/portrait/PortraitDocument.tsx +278 -0
  654. package/src/templates/portrait/entries.tsx +173 -0
  655. package/src/templates/prism/PrismDocument.tsx +307 -0
  656. package/src/templates/prism/entries.tsx +175 -0
  657. package/src/templates/scholar/ScholarDocument.tsx +266 -0
  658. package/src/templates/scholar/entries.tsx +169 -0
  659. package/src/templates/skills.ts +21 -0
  660. package/src/templates/split/SplitDocument.tsx +293 -0
  661. package/src/templates/split/entries.tsx +164 -0
  662. package/src/templates/stylish/StylishDocument.tsx +265 -0
  663. package/src/templates/stylish/entries.tsx +167 -0
  664. package/src/templates/timeline/TimelineDocument.tsx +251 -0
  665. package/src/templates/timeline/entries.tsx +173 -0
  666. package/src/useFitZoom.ts +185 -0
@@ -0,0 +1,20 @@
1
+ import { type ReactNode } from 'react';
2
+ import { type DateIssueKind } from '@resumekit/schema';
3
+ export interface DateIssuesProviderProps {
4
+ children: ReactNode;
5
+ }
6
+ /**
7
+ * Computes the issues once per change and hands them to the fields.
8
+ *
9
+ * Reads the registry's LIVE values, the same way `EditsReporter` does: the
10
+ * revision is the signal and the values are the input. The mounted résumé would
11
+ * be the wrong source — a warning that stayed on a date the candidate had
12
+ * already corrected is worse than no warning at all.
13
+ *
14
+ * One computation per change rather than one per field: the check is cheap, but
15
+ * there is one of it and dozens of fields asking.
16
+ */
17
+ export declare function DateIssuesProvider({ children }: DateIssuesProviderProps): import("react").JSX.Element;
18
+ /** What was noticed about this field's date, if anything. */
19
+ export declare function useDateIssue(path: string): DateIssueKind | undefined;
20
+ //# sourceMappingURL=date-issues-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-issues-context.d.ts","sourceRoot":"","sources":["../../src/fields/date-issues-context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAKL,KAAK,aAAa,EACnB,MAAM,mBAAmB,CAAC;AAuB3B,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAID;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,QAAQ,EAAE,EAAE,uBAAuB,+BA8CvE;AAED,6DAA6D;AAC7D,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAEpE"}
@@ -0,0 +1,68 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { createContext, useContext, useMemo, useSyncExternalStore, } from 'react';
3
+ import { additionPaths, collectionOrder, dateIssuesInDrawnOrder, } from '@resumekit/schema';
4
+ import { useFieldRegistry } from './field-registry.js';
5
+ import { useDocumentOverlay } from '../collections/overlay-context.js';
6
+ /** The sections whose entries carry a start and an end to compare. */
7
+ const DATED = ['experience', 'education'];
8
+ /**
9
+ * Which fields disagree with the résumé's chronological order, by PATH.
10
+ *
11
+ * Keyed by path because that is the address a field already knows itself by, so
12
+ * `EditableText` can ask "is there anything about me?" without knowing the
13
+ * résumé's shape. That is what lets every template carry this without being
14
+ * edited, and a template added later get it for free.
15
+ *
16
+ * Absent by default, and that is the whole of how this stays out of the export:
17
+ * only the editor mounts the provider, so the read-only preview and the render
18
+ * container see an empty map and draw exactly what they drew before.
19
+ */
20
+ const DateIssuesContext = createContext(new Map());
21
+ const noSubscribe = () => () => undefined;
22
+ /**
23
+ * Computes the issues once per change and hands them to the fields.
24
+ *
25
+ * Reads the registry's LIVE values, the same way `EditsReporter` does: the
26
+ * revision is the signal and the values are the input. The mounted résumé would
27
+ * be the wrong source — a warning that stayed on a date the candidate had
28
+ * already corrected is worse than no warning at all.
29
+ *
30
+ * One computation per change rather than one per field: the check is cheap, but
31
+ * there is one of it and dozens of fields asking.
32
+ */
33
+ export function DateIssuesProvider({ children }) {
34
+ const registry = useFieldRegistry();
35
+ const { base, edits } = useDocumentOverlay();
36
+ const revision = useSyncExternalStore(registry?.revision.subscribe ?? noSubscribe, () => registry?.revision.get() ?? 0, () => 0);
37
+ const issues = useMemo(() => {
38
+ /* Read on the revision, which is the whole reason it is a dependency —
39
+ the values live in a ref and are mutated in place. */
40
+ void revision;
41
+ if (!registry || !base)
42
+ return new Map();
43
+ /*
44
+ * The order the document is DRAWN in, from the same `collectionOrder` the
45
+ * document lays itself out with — never the order the paths are numbered
46
+ * in. A path follows the job: a reordered résumé renders `experience.2`
47
+ * first and its fields keep saying `experience.2.*`, so the index says
48
+ * where an entry STARTED and the check is about where it is NOW. Deriving
49
+ * the order here from the same source is what stops the check and the page
50
+ * disagreeing about which entry is above which.
51
+ */
52
+ const overlay = edits ?? [];
53
+ const additions = additionPaths(base, overlay);
54
+ const sections = DATED.map((section) => collectionOrder(base, overlay, section)
55
+ .map((slot) => 'base' in slot ? `${section}.${slot.base}` : additions.get(slot.ref))
56
+ .filter((path) => path !== undefined));
57
+ const values = registry.values.current;
58
+ return dateIssuesInDrawnOrder(sections, (path) => {
59
+ const value = values.get(path);
60
+ return typeof value === 'string' ? value : undefined;
61
+ });
62
+ }, [registry, revision, base, edits]);
63
+ return (_jsx(DateIssuesContext.Provider, { value: issues, children: children }));
64
+ }
65
+ /** What was noticed about this field's date, if anything. */
66
+ export function useDateIssue(path) {
67
+ return useContext(DateIssuesContext).get(path);
68
+ }
@@ -0,0 +1,163 @@
1
+ import { type MutableRefObject, type ReactNode } from 'react';
2
+ import type { EditValue } from '@resumekit/schema';
3
+ /**
4
+ * The editor's own field model, keyed by the résumé's own paths.
5
+ *
6
+ * This is what replaced Craft.js (`retire-craftjs`, #69). Craft is a
7
+ * page-builder library and this is deliberately the opposite of one — the design
8
+ * that introduced it said its whole job was "to take what Craft.js gives (node
9
+ * tree, per-node props, selection state, serialization) and refuse what it also
10
+ * gives (drag, drop, layout manipulation, style props)". What was actually
11
+ * consumed was a ref connector, a selected flag, a prop writer, an enabled flag,
12
+ * and a walk of the node map to save. All of it is below, in one file.
13
+ *
14
+ * The tree went with it and nothing was lost: a template's structure is plain
15
+ * JSX and has never been addressable, so Craft was modelling a tree the product
16
+ * refuses to let anyone edit. And every use of a node id here immediately
17
+ * translated it back to a résumé path — `valuesFromNodes` looked for nodes
18
+ * carrying `path`; `LinkField` scanned for the node whose `path` it already
19
+ * knew. **The path was always the identity.** So the path is the key.
20
+ *
21
+ * Two consequences, both of which were bugs before:
22
+ *
23
+ * - A field's props are ordinary props again. Craft froze them at mount, which
24
+ * is why an address typed into a link's popover left the document pointing
25
+ * at the old URL, and why presentation had to travel by context.
26
+ * - There is nothing to configure into a page builder. `LOCKED_RULES` refused
27
+ * four movement predicates; a refusal is configuration, and configuration is
28
+ * one upgrade away from meaning something else. There is now no capability
29
+ * to refuse.
30
+ */
31
+ /**
32
+ * Selection, as the smallest external store that does the job.
33
+ *
34
+ * Deliberately not React state. In context, one selection change is a new
35
+ * context value and therefore a re-render of every field in the document —
36
+ * hundreds, on every click. With a store a field subscribes to the one question
37
+ * it cares about, `am I selected?`, and re-renders only when that answer
38
+ * changes. `useSyncExternalStore` is React's own way to do this and needs no
39
+ * library.
40
+ */
41
+ export interface SelectionStore {
42
+ get: () => string | null;
43
+ set: (path: string | null) => void;
44
+ subscribe: (listener: () => void) => () => void;
45
+ }
46
+ /**
47
+ * "Something changed", as a number.
48
+ *
49
+ * The values are a ref, so nothing re-renders when one is written — which is
50
+ * the point, and also means the things that watch the DOCUMENT rather than a
51
+ * field need a signal of their own. The overlay reporter and the paginator both
52
+ * subscribe here: one rebuilds the overlay, the other re-measures, and neither
53
+ * should run because a pointer crossed a field.
54
+ *
55
+ * A counter rather than the map itself, because the map is mutated in place —
56
+ * its identity never changes, so it cannot be a dependency.
57
+ */
58
+ export interface RevisionStore {
59
+ get: () => number;
60
+ bump: () => void;
61
+ subscribe: (listener: () => void) => () => void;
62
+ }
63
+ /** What every field needs, and what the save reads. */
64
+ export interface FieldRegistry {
65
+ /** Whether this document is being edited, or only displayed. */
66
+ enabled: boolean;
67
+ /**
68
+ * The live values, by path. A REF rather than state: it is read when the
69
+ * document saves and written on every keystroke, and a re-render of every
70
+ * field per character is the cost this shape avoids.
71
+ */
72
+ values: MutableRefObject<Map<string, EditValue>>;
73
+ /** Each mounted field's setter, keyed by path. Read through {@link write}. */
74
+ setters: MutableRefObject<Map<string, (next: EditValue) => void>>;
75
+ /**
76
+ * What a field holds because the TEMPLATE supplied it, by path.
77
+ *
78
+ * Only a field that HAS such a value registers one — today, a section
79
+ * heading, which prints "Experience" on a résumé nobody has renamed. The save
80
+ * hands this to `presentationEdits`, which refuses to record a value equal to
81
+ * its default, so opening a document does not look like nine edits and
82
+ * renaming a section back to its own name leaves no trace.
83
+ */
84
+ defaults: MutableRefObject<Map<string, string>>;
85
+ selection: SelectionStore;
86
+ /** Bumped whenever any value changes — see {@link RevisionStore}. */
87
+ revision: RevisionStore;
88
+ /**
89
+ * Set a field's value from OUTSIDE it, by path.
90
+ *
91
+ * One caller: a link's popover, which edits a field the candidate is not
92
+ * typing into. It replaces `setProp(nodeId, …)`, and the difference is the
93
+ * whole point of this change — a path is something a component already knows,
94
+ * where a node id had to be found by scanning the tree for the node carrying
95
+ * the path it wanted.
96
+ *
97
+ * Writes through the field's own setter rather than into the map, so the
98
+ * field re-renders. A write to the map alone would save correctly and show
99
+ * nothing, which is the worse of the two failures.
100
+ */
101
+ write: (path: string, next: EditValue) => void;
102
+ }
103
+ export interface FieldRegistryProviderProps {
104
+ /** `false` for the preview and the export renderer — see `TemplateDocument`. */
105
+ enabled?: boolean;
106
+ children: ReactNode;
107
+ }
108
+ export declare function FieldRegistryProvider({ enabled, children, }: FieldRegistryProviderProps): import("react").JSX.Element;
109
+ /**
110
+ * The registry, for what acts on the document as a whole — reading every value
111
+ * to save it, or clearing the selection before printing.
112
+ *
113
+ * `null` outside a provider, which is a document being READ: the saved-résumé
114
+ * view and the export renderer mount none, so every field renders as text and
115
+ * neither has to remember to turn anything off.
116
+ */
117
+ export declare const useFieldRegistry: () => FieldRegistry | null;
118
+ /**
119
+ * Everything one field needs.
120
+ *
121
+ * Generic over what the field HOLDS, because `EditValue` is a union — a line of
122
+ * text or a list of them — and a field is only ever one of the two. Without it
123
+ * every caller would narrow a union it already knew the answer to, at each of
124
+ * the four places it reads the value.
125
+ */
126
+ export interface Field<T extends EditValue> {
127
+ /** The value now — local state, so a keystroke re-renders this field alone. */
128
+ value: T;
129
+ /** Whether this document can be edited at all. */
130
+ editing: boolean;
131
+ /** Whether THIS field is the one being edited. */
132
+ selected: boolean;
133
+ select: () => void;
134
+ set: (next: T) => void;
135
+ }
136
+ /**
137
+ * Register a field at `path`, and read its state back.
138
+ *
139
+ * `initial` seeds the value and is adopted when it changes UPSTREAM — a template
140
+ * switch, a reload, an entry inserted above this one. That is what ordinary
141
+ * props give and Craft's frozen node props did not.
142
+ */
143
+ export declare function useField<T extends EditValue>(path: string, initial: T,
144
+ /**
145
+ * What this field holds when the candidate has written nothing — the
146
+ * template's own word, not a placeholder. See `FieldRegistry.defaults`.
147
+ */
148
+ templateDefault?: string): Field<T>;
149
+ /**
150
+ * WATCH a field somebody else owns.
151
+ *
152
+ * `useField` REGISTERS a field: it holds the value in local state and publishes
153
+ * a setter. Calling it twice for one path is therefore two fields wearing one
154
+ * name — two pieces of state, one setter overwriting the other, and a write
155
+ * that updates a copy nobody renders. That is a real bug this hook exists to
156
+ * make unavailable: a link's popover edits the text its own document renders,
157
+ * so it must not be a second owner of it.
158
+ *
159
+ * So: read through the registry's map, re-render on the revision, and write
160
+ * through {@link FieldRegistry.write}, which reaches the field that does own it.
161
+ */
162
+ export declare function useFieldValue(path: string): EditValue | undefined;
163
+ //# sourceMappingURL=field-registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field-registry.d.ts","sourceRoot":"","sources":["../../src/fields/field-registry.tsx"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH;;;;;;;;;GASG;AACH,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,MAAM,GAAG,IAAI,CAAC;IACzB,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACnC,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC;CACjD;AAED;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC;CACjD;AAuCD,uDAAuD;AACvD,MAAM,WAAW,aAAa;IAC5B,gEAAgE;IAChE,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,MAAM,EAAE,gBAAgB,CAAC,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC;IACjD,8EAA8E;IAC9E,OAAO,EAAE,gBAAgB,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC;IAClE;;;;;;;;OAQG;IACH,QAAQ,EAAE,gBAAgB,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAChD,SAAS,EAAE,cAAc,CAAC;IAC1B,qEAAqE;IACrE,QAAQ,EAAE,aAAa,CAAC;IACxB;;;;;;;;;;;;OAYG;IACH,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;CAChD;AAID,MAAM,WAAW,0BAA0B;IACzC,gFAAgF;IAChF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,qBAAqB,CAAC,EACpC,OAAe,EACf,QAAQ,GACT,EAAE,0BAA0B,+BAwB5B;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,QAAO,aAAa,GAAG,IAClB,CAAC;AAEnC;;;;;;;GAOG;AACH,MAAM,WAAW,KAAK,CAAC,CAAC,SAAS,SAAS;IACxC,+EAA+E;IAC/E,KAAK,EAAE,CAAC,CAAC;IACT,kDAAkD;IAClD,OAAO,EAAE,OAAO,CAAC;IACjB,kDAAkD;IAClD,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;CACxB;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,SAAS,EAC1C,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,CAAC;AACV;;;GAGG;AACH,eAAe,CAAC,EAAE,MAAM,GACvB,KAAK,CAAC,CAAC,CAAC,CA4FV;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAajE"}
@@ -0,0 +1,175 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState, useSyncExternalStore, } from 'react';
3
+ function createRevisionStore() {
4
+ let revision = 0;
5
+ const listeners = new Set();
6
+ return {
7
+ get: () => revision,
8
+ bump: () => {
9
+ revision += 1;
10
+ for (const listener of listeners)
11
+ listener();
12
+ },
13
+ subscribe: (listener) => {
14
+ listeners.add(listener);
15
+ return () => {
16
+ listeners.delete(listener);
17
+ };
18
+ },
19
+ };
20
+ }
21
+ function createSelectionStore() {
22
+ let selected = null;
23
+ const listeners = new Set();
24
+ return {
25
+ get: () => selected,
26
+ set: (path) => {
27
+ if (path === selected)
28
+ return;
29
+ selected = path;
30
+ for (const listener of listeners)
31
+ listener();
32
+ },
33
+ subscribe: (listener) => {
34
+ listeners.add(listener);
35
+ return () => {
36
+ listeners.delete(listener);
37
+ };
38
+ },
39
+ };
40
+ }
41
+ const FieldRegistryContext = createContext(null);
42
+ export function FieldRegistryProvider({ enabled = false, children, }) {
43
+ const values = useRef(new Map());
44
+ const [selection] = useState(createSelectionStore);
45
+ const [revision] = useState(createRevisionStore);
46
+ /* Each mounted field's setter, so one field can be written by another. */
47
+ const setters = useRef(new Map());
48
+ const defaults = useRef(new Map());
49
+ const write = useCallback((path, next) => {
50
+ setters.current.get(path)?.(next);
51
+ }, []);
52
+ /* Stable, so a document being typed into never re-renders because its
53
+ registry object is new. `values` is a ref and the store a fixed reference;
54
+ only `enabled` can change it, and it does not change. */
55
+ const registry = useMemo(() => ({ enabled, values, setters, defaults, selection, revision, write }), [enabled, selection, revision, write]);
56
+ return (_jsx(FieldRegistryContext.Provider, { value: registry, children: children }));
57
+ }
58
+ /**
59
+ * The registry, for what acts on the document as a whole — reading every value
60
+ * to save it, or clearing the selection before printing.
61
+ *
62
+ * `null` outside a provider, which is a document being READ: the saved-résumé
63
+ * view and the export renderer mount none, so every field renders as text and
64
+ * neither has to remember to turn anything off.
65
+ */
66
+ export const useFieldRegistry = () => useContext(FieldRegistryContext);
67
+ /**
68
+ * Register a field at `path`, and read its state back.
69
+ *
70
+ * `initial` seeds the value and is adopted when it changes UPSTREAM — a template
71
+ * switch, a reload, an entry inserted above this one. That is what ordinary
72
+ * props give and Craft's frozen node props did not.
73
+ */
74
+ export function useField(path, initial,
75
+ /**
76
+ * What this field holds when the candidate has written nothing — the
77
+ * template's own word, not a placeholder. See `FieldRegistry.defaults`.
78
+ */
79
+ templateDefault) {
80
+ const registry = useFieldRegistry();
81
+ const [value, setValue] = useState(initial);
82
+ /*
83
+ * Adopt an upstream change, and only an upstream change.
84
+ *
85
+ * `seen` is what makes it safe: a render carrying an `initial` we have not
86
+ * seen is the document moving underneath us and is adopted; a render that
87
+ * merely repeats what we already knew leaves the candidate's typing alone.
88
+ * The same guard `SpaceHandle` keeps, for the same reason — a value travels a
89
+ * long way round and comes back late.
90
+ */
91
+ const seen = useRef(initial);
92
+ if (initial !== seen.current) {
93
+ seen.current = initial;
94
+ if (initial !== value)
95
+ setValue(initial);
96
+ }
97
+ const map = registry?.values;
98
+ const revision = registry?.revision;
99
+ /* Published for as long as the field is mounted, and withdrawn with it, so a
100
+ default cannot outlive the template that supplied it. */
101
+ const defaults = registry?.defaults;
102
+ useEffect(() => {
103
+ if (!defaults || templateDefault === undefined)
104
+ return;
105
+ defaults.current.set(path, templateDefault);
106
+ return () => {
107
+ defaults.current.delete(path);
108
+ };
109
+ }, [defaults, path, templateDefault]);
110
+ useEffect(() => {
111
+ if (!map)
112
+ return;
113
+ map.current.set(path, value);
114
+ revision?.bump();
115
+ return () => {
116
+ map.current.delete(path);
117
+ /* A removed entry's fields must leave the overlay, so their going is a
118
+ change like any other. */
119
+ revision?.bump();
120
+ };
121
+ }, [map, revision, path, value]);
122
+ const selection = registry?.selection;
123
+ const subscribe = useCallback((listener) => selection?.subscribe(listener) ?? (() => undefined), [selection]);
124
+ const isSelected = useSyncExternalStore(subscribe, () => selection?.get() === path, () => false);
125
+ const set = useCallback((next) => {
126
+ setValue(next);
127
+ /* Written to the map synchronously as well as through state: the save
128
+ reads the map, and a save racing a render must not read the previous
129
+ character. */
130
+ map?.current.set(path, next);
131
+ revision?.bump();
132
+ }, [map, revision, path]);
133
+ const select = useCallback(() => selection?.set(path), [selection, path]);
134
+ /*
135
+ * Publish this field's setter so another component can write it by path — see
136
+ * `FieldRegistry.write`. Registered for as long as the field is mounted, and
137
+ * withdrawn with it, so a write to a field that has gone is a no-op rather
138
+ * than a state update on an unmounted component.
139
+ */
140
+ const setters = registry?.setters;
141
+ useEffect(() => {
142
+ if (!setters)
143
+ return;
144
+ setters.current.set(path, set);
145
+ return () => {
146
+ setters.current.delete(path);
147
+ };
148
+ }, [setters, path, set]);
149
+ return {
150
+ value,
151
+ editing: registry?.enabled ?? false,
152
+ selected: Boolean(registry?.enabled) && isSelected,
153
+ select,
154
+ set,
155
+ };
156
+ }
157
+ /**
158
+ * WATCH a field somebody else owns.
159
+ *
160
+ * `useField` REGISTERS a field: it holds the value in local state and publishes
161
+ * a setter. Calling it twice for one path is therefore two fields wearing one
162
+ * name — two pieces of state, one setter overwriting the other, and a write
163
+ * that updates a copy nobody renders. That is a real bug this hook exists to
164
+ * make unavailable: a link's popover edits the text its own document renders,
165
+ * so it must not be a second owner of it.
166
+ *
167
+ * So: read through the registry's map, re-render on the revision, and write
168
+ * through {@link FieldRegistry.write}, which reaches the field that does own it.
169
+ */
170
+ export function useFieldValue(path) {
171
+ const registry = useFieldRegistry();
172
+ const revision = registry?.revision;
173
+ const subscribe = useCallback((listener) => revision?.subscribe(listener) ?? (() => undefined), [revision]);
174
+ return useSyncExternalStore(subscribe, () => registry?.values.current.get(path), () => undefined);
175
+ }
@@ -0,0 +1,207 @@
1
+ # The supplied typefaces
2
+
3
+ Every entry in `DOCUMENT_FONTS` is drawn in a font file bundled here. The same
4
+ bytes are served to the browser and installed into the render container, so a
5
+ résumé's appearance is a property of the résumé rather than of the machine
6
+ displaying it.
7
+
8
+ ## What ships, and why that face
9
+
10
+ ### The stand-ins
11
+
12
+ Each answers "the candidate asked for Calibri", and is metrically compatible
13
+ with that face wherever such a standard exists.
14
+
15
+ | Catalog entry | Supplied face | Metric compatibility | Licence |
16
+ | ------------- | -------------- | --------------------------------------------- | ----------------------------- |
17
+ | `helvetica` | TeX Gyre Heros | Helvetica-metric | GUST Font License (LPPL 1.3c) |
18
+ | `arial` | Arimo | Arial-metric | SIL OFL 1.1 |
19
+ | `calibri` | Carlito | Calibri-metric | SIL OFL 1.1 |
20
+ | `georgia` | Gelasio | Georgia-metric | SIL OFL 1.1 |
21
+ | `garamond` | EB Garamond | none — no metric standard for Garamond exists | SIL OFL 1.1 |
22
+ | `times` | Tinos | Times New Roman-metric | SIL OFL 1.1 |
23
+
24
+ ### The product's own
25
+
26
+ The six above are a neo-grotesque sans and a transitional serif three times
27
+ each, so a candidate could change the typeface's NAME without much changing how
28
+ the document reads. These four each cover a register none of the six reaches,
29
+ stand in for nothing, and carry no metric obligation.
30
+
31
+ | Catalog entry | Supplied face | Register it adds | Licence |
32
+ | ------------- | ---------------- | ------------------------------------------ | ----------- |
33
+ | `lato` | Lato | humanist sans — warmer than the grotesques | SIL OFL 1.1 |
34
+ | `condensed` | Roboto Condensed | condensed sans — fits more on the page | SIL OFL 1.1 |
35
+ | `ptserif` | PT Serif | screen serif — sturdier than Georgia | SIL OFL 1.1 |
36
+ | `bitter` | Bitter | slab serif — the one non-book voice | SIL OFL 1.1 |
37
+
38
+ **Merriweather was measured and rejected.** It fills the same "screen serif"
39
+ slot as PT Serif and cuts to 184KB a family against PT Serif's 61KB — 99KB of
40
+ that is `GPOS` alone, a kern table three times the size of any other family's
41
+ whole file. Pruning it would mean shipping a Merriweather that does not kern
42
+ like Merriweather. Do not re-propose it without new numbers.
43
+
44
+ **Roboto Slab was named for the slab slot and is not shipped.** It has no true
45
+ italic, and every entry here ships 400, 400 italic, 700 and 700 italic because
46
+ that is what the templates set. Bitter is the same register with real italics.
47
+
48
+ ### The template faces
49
+
50
+ Some designs ARE their typeface — a Computer Modern résumé set in Tinos is a
51
+ different résumé. These faces are set by one template's own stylesheet (its
52
+ `--<key>-font` default) and offered in no picker, so they are no entry in
53
+ `DOCUMENT_FONTS`, and each ships only the styles its templates set rather than
54
+ the catalog's four. `fonts.spec.ts` holds that list (`TEMPLATE_FACES`).
55
+
56
+ A declaration is not a download: the browser fetches a face only when some text
57
+ is set in that family, weight and style, so none of these costs a document that
58
+ does not use it, and an exported PDF embeds only the faces its text is drawn in.
59
+ The marketing site never sees them (`build-static-css.ts` drops `fonts/`).
60
+
61
+ | `font-family` | Weights / styles shipped | Set by | Licence |
62
+ | ------------------------- | ------------------------------ | ---------------------------------------- | ----------------- |
63
+ | `Latin Modern Roman` | 400, 400i, 700, 700i | Engineer, Academic, Scholar | GUST Font License |
64
+ | `Latin Modern Roman Caps` | 400 | Engineer (headings) | GUST Font License |
65
+ | `Latin Modern Mono` | 400 | Hipster (contact lines) | GUST Font License |
66
+ | `Source Sans 3` | 300, 300i, 400, 400i, 700 | Crimson (body, small-caps lines) | SIL OFL 1.1 |
67
+ | `Roboto` | 100, 300, 300i, 400, 400i, 700 | Crimson (header), Prism | SIL OFL 1.1 |
68
+ | `Raleway` | 300, 400, 400i, 500, 700 | Hipster, Split (contact and entry lines) | SIL OFL 1.1 |
69
+ | `Lato` (beyond the four) | 100, 300, 300i | Split (name, headings, body) | SIL OFL 1.1 |
70
+ | `Roboto Slab` | 700 | Alta (name, headings) | Apache 2.0 |
71
+ | `Clear Sans` | 400, 400i | Portrait | Apache 2.0 |
72
+ | `Cabin` | 700 | Curve (name, headings) | SIL OFL 1.1 |
73
+ | `Cochineal` | 400, 400i, 700 | Curve (body) | SIL OFL 1.1 |
74
+ | `Inconsolata` | 400 | Curve (contact row) | SIL OFL 1.1 |
75
+
76
+ Each is the face the design was published in, or its nearest free equivalent:
77
+
78
+ - **Latin Modern** is GUST's OpenType Computer Modern — the face Jake's Resume,
79
+ moderncv (roman) and the Elegant Resume template are typeset in. Computer
80
+ Modern's small capitals are a **separate font**, not an `smcp` feature, so a
81
+ template sets `Latin Modern Roman Caps` (with `font-variant: normal`) where the
82
+ design has small capitals; `font-variant: small-caps` on `Latin Modern Roman`
83
+ would be synthesised.
84
+ - **Source Sans 3** is Source Sans Pro's current release, Awesome CV's body.
85
+ Its upright carries true small capitals (`smcp`, `c2sc`); its italic does not.
86
+ - **Roboto** is Awesome CV's header face, and stands in for Friggeri CV's
87
+ Helvetica Neue UltraLight/Light, which is not free: Roboto Thin (100) and
88
+ Light (300) keep the design's hairline-against-bold contrast.
89
+ - **Raleway** is the Simple Hipster CV's face and Deedy's subheading face. Its
90
+ default figures are old-style, as both designs print them.
91
+ - **Lato 100** is Lato's Hairline — upstream Google Fonts names the file
92
+ `Lato-Thin.ttf`, and its stems are identical to Deedy's `Lato-Hai`.
93
+ - **Roboto Slab** is AltaCV's heading face. Only its bold upright is set, so the
94
+ missing italic that kept it out of the catalog does not arise; Alta's body is
95
+ the catalog's Lato.
96
+ - **Clear Sans** is the Twenty Seconds CV's face.
97
+ - **Cochineal, Cabin and Inconsolata** are the Curve CV's three faces (its
98
+ `cochineal`, `cabin` and `zi4` packages). Cochineal is Crimson extended with
99
+ true small capitals and old-style figures (`font-variant-numeric:
100
+ oldstyle-nums`).
101
+
102
+ Not shipped: Friggeri CV's Helvetica Neue faces, which are proprietary; and
103
+ Crimson Pro, which was cut for Curve first and replaced by Cochineal — it has
104
+ no small capitals, and Cochineal is the face the design actually uses.
105
+
106
+ `design.md` decision 4 named **Nimbus Sans** for `helvetica`. It is not shipped.
107
+ Nimbus Sans is distributed under the AGPL v3 with an exception that covers
108
+ including the font "in a Postscript or PDF file" — the PDF path only. Serving it
109
+ to a browser as a webfont distributes the font program itself, which the
110
+ exception does not reach. **TeX Gyre Heros** is GUST's derivative of that same
111
+ Nimbus Sans under the LaTeX Project Public License 1.3c, which permits
112
+ redistribution: the same true-Helvetica design and the same Helvetica metrics,
113
+ without the licence conflict. Choosing it over the obvious OFL alternative
114
+ (Liberation Sans) keeps `helvetica` visually distinct from `arial`, since
115
+ Liberation Sans and Arimo are the same Arial design.
116
+
117
+ ## Provenance
118
+
119
+ - Arimo, Carlito, Gelasio, EB Garamond, Tinos — Google Fonts, upstream TTFs.
120
+ - TeX Gyre Heros — CTAN, `fonts/tex-gyre/opentype`, version 2.004.
121
+ - Lato, PT Serif — Google Fonts, upstream static TTFs.
122
+ - Bitter, Roboto Condensed — Google Fonts, upstream VARIABLE TTFs, instanced to
123
+ 400 and 700 before subsetting, so what ships is a static face rather than a
124
+ variable font pinned at render time. Instanced with `updateFontNames`, without
125
+ which the instance inherits the variable font's default name — `Bitter Thin`
126
+ on a file that is a 400 — and the render container installs it under that.
127
+ - Template faces from Google Fonts (`google/fonts`, `main`): Source Sans 3,
128
+ Roboto, Raleway, Roboto Slab, Cabin and Inconsolata are VARIABLE TTFs,
129
+ instanced the same way (Roboto, Cabin and Inconsolata at `wdth` 100); Lato
130
+ Thin, Light and Light Italic are upstream static TTFs, version 2.015 like the
131
+ catalog's Lato.
132
+ - Latin Modern Roman 10, Roman Caps 10 and Mono 10 — CTAN `fonts/lm`, version
133
+ 2.005, OpenType.
134
+ - Cochineal — CTAN `fonts/cochineal`, version 1.085, OpenType.
135
+ - Clear Sans — `intel/clear-sans`, version 1.00, static TTFs.
136
+
137
+ A template face keeps `smcp, c2sc, onum, lnum, pnum, tnum` beside the layout
138
+ features below, because the designs set small capitals and old-style figures.
139
+ Lato's added weights keep exactly the catalog Lato's features, so the family is
140
+ one cut. Timestamps are kept from upstream (`recalcTimestamp=False`), so a
141
+ re-cut is byte-identical.
142
+
143
+ Each family's licence, with its copyright notice, is in `licenses/`.
144
+
145
+ ## What was changed
146
+
147
+ The files are **subsets**, not the originals: reduced to Google Fonts' `latin`
148
+ range, hinting dropped, converted to WOFF2.
149
+
150
+ > This line used to say "`latin` and `latin-ext` ranges unioned". It was wrong,
151
+ > and measurably so: `arimo-400.woff2` carries 230 codepoints — 193 of Latin-1,
152
+ > 18 of General Punctuation, and the three strays (`ı`, `Œ`, `œ`) that are in
153
+ > Google's `latin` range — and none at all from `U+0100-017F`, `U+1E00-1EFF` or
154
+ > `U+A720-A7FF`. The four added later are cut to match what actually shipped,
155
+ > not to what this file claimed. A character outside the range falls through to
156
+ > the next family in the stack by the browser's own per-glyph fallback, which is
157
+ > what `fonts.css` already says.
158
+
159
+ Layout features are limited to `kern, liga, clig, calt, ccmp, locl, mark, mkmk,
160
+ rlig`. No outline, no metric and no family name was altered. Four styles per
161
+ catalog family — 400, 400 italic, 700, 700 italic — which is what the templates
162
+ set, and what `fonts.spec.ts` refuses to let an entry ship without. A template
163
+ face ships the styles its templates set, and no others.
164
+
165
+ ## The shift this causes
166
+
167
+ Measured as the total advance width of a sample résumé line, comparing what a
168
+ **macOS** reader was shown before against the supplied face, in each of the four
169
+ styles the templates set:
170
+
171
+ | Entry | Was drawn in | 400 | 400i | 700 | 700i |
172
+ | ----------- | ----------------------------------- | ------: | ------: | ------: | ------: |
173
+ | `helvetica` | Helvetica Neue | −0.59% | −0.19% | −0.37% | −0.45% |
174
+ | `arial` | Arial | 0.00% | 0.00% | 0.00% | 0.00% |
175
+ | `calibri` | Arial — the stack fell through | −10.10% | −10.67% | −13.29% | −13.57% |
176
+ | `georgia` | Georgia | 0.00% | 0.00% | 0.00% | 0.00% |
177
+ | `garamond` | Baskerville — no Garamond installed | −6.23% | +5.62% | −10.49% | −8.38% |
178
+ | `times` | Times New Roman | 0.00% | 0.00% | 0.00% | 0.00% |
179
+
180
+ Three entries do not move at all, in any style: where the reader already had the
181
+ named typeface, the supplied face is metric-identical to it. `helvetica` moves
182
+ by less than a percent — TeX Gyre Heros carries Helvetica's metrics, and macOS
183
+ was resolving Helvetica _Neue_, which differs slightly.
184
+
185
+ The two that move are the two where macOS was never showing the named typeface.
186
+ So the shift is a **correction**, not a regression: `calibri` now sets Calibri's
187
+ true width rather than Arial's, and `garamond` a Garamond rather than a
188
+ Baskerville. A saved résumé set in those two can gain or lose a line, which is
189
+ the price decision 4 named up front.
190
+
191
+ ### The one place text gets wider
192
+
193
+ `garamond` italic is up to 5.62% wider than the Baskerville italic it used to
194
+ fall back to — the only widening anywhere in the table. Italic is set in three
195
+ places: Cobalt's role-and-dates meta line, which wraps freely in the main
196
+ column; Meridian's employer, which is italic _700_ and therefore narrower, not
197
+ wider; and Executive's date cell, which sits in a `1fr auto` grid, so a wider
198
+ date takes its width from the title beside it rather than overflowing.
199
+
200
+ Nothing overflows. In absolute terms EB Garamond Italic is in fact the narrowest
201
+ of the six supplied faces — Executive's `March 2019 - Present` at 8.5pt sets
202
+ 69.5pt in it against 81.8pt in Gelasio — so the widening is a fact about
203
+ Baskerville being unusually narrow, not about EB Garamond being wide. The cost
204
+ is bounded at a wrapped line.
205
+
206
+ Page-by-page visual comparison of the rendered document belongs with the render
207
+ service, where there is something to compare against; it is task 9.3.
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file