@jant/core 1.0.0 → 1.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 (1496) hide show
  1. package/README.md +11 -13
  2. package/bin/commands/assets/prepare.js +3 -3
  3. package/bin/commands/assets/upload.js +192 -15
  4. package/bin/commands/db/execute-file.js +12 -4
  5. package/bin/commands/db/export.js +115 -2
  6. package/bin/commands/db/rehearse.js +2 -2
  7. package/bin/commands/deploy.js +190 -3
  8. package/bin/commands/migrate.js +91 -69
  9. package/bin/commands/posts/rebuild-html.js +184 -0
  10. package/bin/commands/reset-password.js +30 -17
  11. package/bin/commands/search/reindex.js +175 -0
  12. package/bin/commands/setup.js +138 -0
  13. package/bin/commands/site/export.js +146 -285
  14. package/bin/commands/site/import.js +3164 -2
  15. package/bin/commands/site/pull-media.js +5 -8
  16. package/bin/commands/site/snapshot/export.js +79 -106
  17. package/bin/commands/site/snapshot/import.js +141 -84
  18. package/bin/commands/start.js +72 -1
  19. package/bin/commands/telegram/register-webhooks.js +124 -0
  20. package/bin/commands/uploads/cleanup.js +48 -7
  21. package/bin/jant.js +91 -33
  22. package/bin/lib/cloudflare-setup.js +499 -0
  23. package/bin/lib/command-registry.js +120 -0
  24. package/bin/lib/d1-query.js +139 -22
  25. package/bin/lib/hugo-markdown.js +106 -0
  26. package/bin/lib/import-sources.js +151 -0
  27. package/bin/lib/migration-artifacts.js +19 -0
  28. package/bin/lib/migration-rehearsal.js +27 -0
  29. package/bin/lib/migration-runner.js +29 -7
  30. package/bin/lib/node-database.js +32 -0
  31. package/bin/lib/node-env.js +141 -0
  32. package/bin/lib/r2-query.js +2 -2
  33. package/bin/lib/renamed-arguments.js +56 -0
  34. package/bin/lib/runtime-target.js +64 -0
  35. package/bin/lib/site-pull-media.js +78 -36
  36. package/bin/lib/site-selection.js +98 -73
  37. package/bin/lib/site-snapshot.js +968 -86
  38. package/bin/lib/sql-export.js +154 -18
  39. package/bin/lib/thread-collection-migration.js +326 -0
  40. package/bin/lib/wrangler-cli.js +37 -2
  41. package/bin/lib/wrangler-json.js +35 -0
  42. package/bin/lib/zip-archive.js +187 -0
  43. package/dist/app-CKQ9PqAr.js +114817 -0
  44. package/dist/client/.vite/manifest.json +295 -90
  45. package/dist/client/_assets/chunks/confirm-CMe01lne.js +45 -0
  46. package/dist/client/_assets/chunks/create-editor-BQkrw8Ax.js +261 -0
  47. package/dist/client/_assets/chunks/emoji-mart-C4RpRKcU.js +716 -0
  48. package/dist/client/_assets/chunks/footnote-rail-B08scyhW.js +2 -0
  49. package/dist/client/_assets/chunks/heic-to-CuP2Qlsw.js +1 -0
  50. package/dist/client/_assets/chunks/jant-locale-picker-2L4rkDaz.js +69 -0
  51. package/dist/client/_assets/chunks/lit-Bw_voPoW.js +2 -0
  52. package/dist/client/_assets/chunks/mediabunny-DRaCQ1r-.js +31 -0
  53. package/dist/client/_assets/chunks/preload-helper-Czpn1I53.js +1 -0
  54. package/dist/client/_assets/chunks/rolldown-runtime-hePW80VL.js +1 -0
  55. package/dist/client/_assets/chunks/runtime-paths-y0_gHowM.js +1 -0
  56. package/dist/client/_assets/chunks/settings-paths-B0bNUaih.js +84 -0
  57. package/dist/client/_assets/chunks/site-header-nav-DzXsFk05.js +1 -0
  58. package/dist/client/_assets/chunks/slug-format-CYmQE5ln.js +1 -0
  59. package/dist/client/_assets/chunks/slugify-DlHLyUHS.js +1 -0
  60. package/dist/client/_assets/chunks/sortable-list-t11Ma1Ek.js +2 -0
  61. package/dist/client/_assets/chunks/types-D5iF3H1a.js +1 -0
  62. package/dist/client/_assets/chunks/unsafe-html-CWos3v6N.js +1 -0
  63. package/dist/client/_assets/chunks/unsafe-svg-DZl-yjas.js +1 -0
  64. package/dist/client/_assets/client-B0-s9sqx.css +2 -0
  65. package/dist/client/_assets/client-Dp46QSht.js +354 -0
  66. package/dist/client/_assets/client-auth-CG55rWb5.js +859 -0
  67. package/dist/client/_assets/client-author-CGVvrNZ8.css +2 -0
  68. package/dist/client/_assets/client-compose-DkUTuavR.js +2004 -0
  69. package/dist/client/_assets/client-manage-DnYdQAhf.js +2170 -0
  70. package/dist/client/_assets/client-settings-CHgsIqXJ.js +1112 -0
  71. package/dist/client/_assets/client-share-0DICJjAc.css +1 -0
  72. package/dist/client/_assets/client-share-C59mOLJ1.js +149 -0
  73. package/dist/constants-DEgyqWDl.js +767 -0
  74. package/dist/index.d.ts +44 -0
  75. package/dist/index.js +26 -80
  76. package/dist/node.js +185 -22
  77. package/package.json +56 -50
  78. package/src/app.tsx +204 -132
  79. package/src/auth.ts +18 -1
  80. package/src/client/archive-nav.js +2 -1
  81. package/src/client/audio-player.ts +7 -3
  82. package/src/client/audio-processor.ts +24 -15
  83. package/src/client/audio-waveform.ts +49 -0
  84. package/src/client/avatar-upload.ts +10 -10
  85. package/src/client/collection-dialog-host.ts +72 -0
  86. package/src/client/collection-navigation.ts +79 -0
  87. package/src/client/collection-page-actions.ts +83 -1
  88. package/src/client/components/collection-dialog-types.ts +49 -0
  89. package/src/client/components/collection-manager-types.ts +41 -6
  90. package/src/client/components/collection-types.ts +1 -15
  91. package/src/client/components/compose-format-convert.ts +259 -0
  92. package/src/client/components/compose-title-from-heading.ts +66 -0
  93. package/src/client/components/compose-types.ts +162 -2
  94. package/src/client/components/inline-image-issues.ts +17 -0
  95. package/src/client/components/jant-collection-dialog.ts +722 -0
  96. package/src/client/components/jant-collection-directory.ts +673 -175
  97. package/src/client/components/jant-collection-form.ts +54 -232
  98. package/src/client/components/jant-command-palette.ts +235 -78
  99. package/src/client/components/jant-compose-dialog.ts +3084 -1210
  100. package/src/client/components/jant-compose-editor.ts +1277 -422
  101. package/src/client/components/jant-compose-fullscreen.ts +81 -50
  102. package/src/client/components/jant-config-editor.ts +732 -0
  103. package/src/client/components/jant-confirm-dialog.ts +13 -11
  104. package/src/client/components/jant-locale-picker.ts +418 -0
  105. package/src/client/components/jant-media-lightbox.ts +376 -131
  106. package/src/client/components/jant-nav-manager.ts +2260 -473
  107. package/src/client/components/jant-post-menu.ts +1316 -342
  108. package/src/client/components/jant-post-picker.ts +324 -0
  109. package/src/client/components/jant-repo-picker-types.ts +6 -1
  110. package/src/client/components/jant-repo-picker.ts +140 -108
  111. package/src/client/components/jant-settings-avatar.ts +31 -27
  112. package/src/client/components/jant-settings-general.ts +659 -330
  113. package/src/client/components/jant-settings-language.ts +1087 -0
  114. package/src/client/components/jant-share-dialog.ts +422 -0
  115. package/src/client/components/jant-share-menu.ts +188 -0
  116. package/src/client/components/jant-smart-collection-dialog.ts +1018 -0
  117. package/src/client/components/jant-text-preview.ts +117 -115
  118. package/src/client/components/nav-manager-types.ts +128 -13
  119. package/src/client/components/settings-types.ts +46 -20
  120. package/src/client/components/smart-collection-conditions.ts +285 -0
  121. package/src/client/components/smart-collection-dialog-types.ts +68 -0
  122. package/src/client/compose-bridge.ts +465 -255
  123. package/src/client/compose-launch.ts +119 -17
  124. package/src/client/compose-shortcuts.ts +53 -8
  125. package/src/client/compose-triggers.ts +50 -0
  126. package/src/client/copy-field.ts +108 -0
  127. package/src/client/custom-url-menu.ts +60 -4
  128. package/src/client/feed-video-player.ts +63 -3
  129. package/src/client/footnote-rail.ts +478 -0
  130. package/src/client/hydrate-partial.ts +27 -0
  131. package/src/client/icons.ts +13 -0
  132. package/src/client/image-plan.ts +165 -0
  133. package/src/client/image-processor.ts +223 -86
  134. package/src/client/image-worker-client.ts +45 -0
  135. package/src/client/image-worker.ts +135 -0
  136. package/src/client/json.ts +56 -2
  137. package/src/client/lazy-entries.ts +115 -0
  138. package/src/client/lazy-slugify.ts +2 -2
  139. package/src/client/media-lightbox-events.ts +63 -0
  140. package/src/client/media-scroll-hint.ts +103 -9
  141. package/src/client/mediabunny.ts +29 -0
  142. package/src/client/note-expand.ts +63 -0
  143. package/src/client/palette-search-trigger.ts +35 -0
  144. package/src/client/post-menu-shared.ts +100 -0
  145. package/src/client/post-picker.ts +41 -0
  146. package/src/client/post-refresh.ts +135 -0
  147. package/src/client/random-uuid.ts +23 -0
  148. package/src/client/runtime-paths.ts +74 -1
  149. package/src/client/settings-bridge.ts +4 -7
  150. package/src/client/share-capture.ts +443 -0
  151. package/src/client/share-launch.ts +133 -0
  152. package/src/client/site-header-fragment.ts +38 -0
  153. package/src/client/site-header-nav.d.ts +1 -0
  154. package/src/client/site-header-nav.js +122 -52
  155. package/src/client/slash-discovery-bridge.ts +9 -0
  156. package/src/client/slash-discovery.ts +200 -0
  157. package/src/client/smart-collection-dialog-host.ts +116 -0
  158. package/src/client/smart-collection-page-actions.ts +208 -0
  159. package/src/client/thread-context.ts +115 -110
  160. package/src/client/tiptap/bubble-menu.ts +173 -46
  161. package/src/client/tiptap/continuous-lists.ts +102 -0
  162. package/src/client/tiptap/create-editor.ts +13 -0
  163. package/src/client/tiptap/extensions.ts +30 -16
  164. package/src/client/tiptap/floating-position.ts +216 -2
  165. package/src/client/tiptap/footnotes.ts +156 -0
  166. package/src/client/tiptap/image-input-rules.ts +48 -0
  167. package/src/client/tiptap/image-node.ts +189 -7
  168. package/src/client/tiptap/inline-image-upload.ts +180 -52
  169. package/src/client/tiptap/insert-paragraph-around.ts +79 -0
  170. package/src/client/tiptap/link-input-rules.ts +4 -4
  171. package/src/client/tiptap/link-toolbar.ts +85 -31
  172. package/src/client/tiptap/markdown-clipboard.ts +663 -13
  173. package/src/client/tiptap/paste-media.ts +49 -33
  174. package/src/client/tiptap/rehost-images.ts +108 -0
  175. package/src/client/tiptap/slash-commands.ts +13 -1
  176. package/src/client/tiptap/structural-keymap.ts +322 -0
  177. package/src/client/tiptap/tab-indent.ts +8 -22
  178. package/src/client/tiptap/table-control-labels.ts +30 -0
  179. package/src/client/tiptap/table-controls.ts +537 -0
  180. package/src/client/tiptap/table-size-picker.ts +254 -0
  181. package/src/client/tiptap/toolbar-mode.ts +0 -43
  182. package/src/client/toast.ts +156 -22
  183. package/src/client/types/vite-worker.d.ts +12 -0
  184. package/src/client/upload-session.ts +99 -44
  185. package/src/client/upload-with-metadata.ts +3 -13
  186. package/src/client/video-processor.ts +360 -107
  187. package/src/client-auth.ts +15 -30
  188. package/src/client-compose.ts +19 -0
  189. package/src/client-manage.ts +13 -0
  190. package/src/client-settings.ts +14 -0
  191. package/src/client-share.ts +8 -0
  192. package/src/client-site.ts +10 -3
  193. package/src/client.ts +10 -0
  194. package/src/db/backfills/0004_register_apple_touch_media_rows.sql +65 -0
  195. package/src/db/backfills/0005_split_thread_activity_from_quiet_replies.sql +68 -0
  196. package/src/db/backfills/0006_clear_mirrored_page_nav_labels.sql +31 -0
  197. package/src/db/backfills/0007_restore_external_redirect_scheme.sql +20 -0
  198. package/src/db/backfills/0008_turn_off_featured_only_discover.sql +11 -0
  199. package/src/db/migration-status.ts +92 -0
  200. package/src/db/migrations/0018_yummy_franklin_richards.sql +6 -0
  201. package/src/db/migrations/0019_bored_magus.sql +2 -0
  202. package/src/db/migrations/0020_free_zaladane.sql +1 -0
  203. package/src/db/migrations/0021_thankful_phalanx.sql +16 -0
  204. package/src/db/migrations/0022_old_gressill.sql +24 -0
  205. package/src/db/migrations/0023_broad_terror.sql +20 -0
  206. package/src/db/migrations/0024_red_the_twelve.sql +3 -0
  207. package/src/db/migrations/0025_exotic_wendell_rand.sql +1 -0
  208. package/src/db/migrations/0026_absent_rhodey.sql +14 -0
  209. package/src/db/migrations/0027_old_blue_blade.sql +39 -0
  210. package/src/db/migrations/0028_superb_post.sql +2 -0
  211. package/src/db/migrations/0029_boring_magma.sql +1 -0
  212. package/src/db/migrations/0030_typical_vivisector.sql +50 -0
  213. package/src/db/migrations/0031_many_ego.sql +3 -0
  214. package/src/db/migrations/0032_married_tomas.sql +3 -0
  215. package/src/db/migrations/0033_busy_johnny_storm.sql +198 -0
  216. package/src/db/migrations/0034_cheerful_rumiko_fujikawa.sql +35 -0
  217. package/src/db/migrations/meta/0018_snapshot.json +2225 -0
  218. package/src/db/migrations/meta/0019_snapshot.json +2238 -0
  219. package/src/db/migrations/meta/0020_snapshot.json +2129 -0
  220. package/src/db/migrations/meta/0021_snapshot.json +2121 -0
  221. package/src/db/migrations/meta/0022_snapshot.json +2267 -0
  222. package/src/db/migrations/meta/0023_snapshot.json +2396 -0
  223. package/src/db/migrations/meta/0024_snapshot.json +2417 -0
  224. package/src/db/migrations/meta/0025_snapshot.json +2424 -0
  225. package/src/db/migrations/meta/0026_snapshot.json +2511 -0
  226. package/src/db/migrations/meta/0027_snapshot.json +2511 -0
  227. package/src/db/migrations/meta/0028_snapshot.json +2511 -0
  228. package/src/db/migrations/meta/0029_snapshot.json +2519 -0
  229. package/src/db/migrations/meta/0030_snapshot.json +2541 -0
  230. package/src/db/migrations/meta/0031_snapshot.json +2562 -0
  231. package/src/db/migrations/meta/0032_snapshot.json +2582 -0
  232. package/src/db/migrations/meta/0033_snapshot.json +2816 -0
  233. package/src/db/migrations/meta/0034_snapshot.json +2816 -0
  234. package/src/db/migrations/meta/_journal.json +120 -1
  235. package/src/db/migrations/pg/0016_familiar_lionheart.sql +6 -0
  236. package/src/db/migrations/pg/0017_bright_beyonder.sql +2 -0
  237. package/src/db/migrations/pg/0018_red_warlock.sql +1 -0
  238. package/src/db/migrations/pg/0019_gray_natasha_romanoff.sql +20 -0
  239. package/src/db/migrations/pg/0020_bizarre_smasher.sql +24 -0
  240. package/src/db/migrations/pg/0021_sharp_puppet_master.sql +20 -0
  241. package/src/db/migrations/pg/0022_blushing_blue_shield.sql +3 -0
  242. package/src/db/migrations/pg/0023_organic_zemo.sql +1 -0
  243. package/src/db/migrations/pg/0024_high_violations.sql +14 -0
  244. package/src/db/migrations/pg/0025_moaning_epoch.sql +39 -0
  245. package/src/db/migrations/pg/0026_talented_killer_shrike.sql +2 -0
  246. package/src/db/migrations/pg/0027_short_cannonball.sql +1 -0
  247. package/src/db/migrations/pg/0028_perfect_sharon_carter.sql +27 -0
  248. package/src/db/migrations/pg/0029_rare_hairball.sql +3 -0
  249. package/src/db/migrations/pg/0030_abandoned_nighthawk.sql +3 -0
  250. package/src/db/migrations/pg/0031_strong_ultimatum.sql +128 -0
  251. package/src/db/migrations/pg/0032_furry_multiple_man.sql +6 -0
  252. package/src/db/migrations/pg/meta/0016_snapshot.json +2840 -0
  253. package/src/db/migrations/pg/meta/0017_snapshot.json +2862 -0
  254. package/src/db/migrations/pg/meta/0018_snapshot.json +2739 -0
  255. package/src/db/migrations/pg/meta/0019_snapshot.json +2718 -0
  256. package/src/db/migrations/pg/meta/0020_snapshot.json +2904 -0
  257. package/src/db/migrations/pg/meta/0021_snapshot.json +3060 -0
  258. package/src/db/migrations/pg/meta/0022_snapshot.json +3078 -0
  259. package/src/db/migrations/pg/meta/0023_snapshot.json +3084 -0
  260. package/src/db/migrations/pg/meta/0024_snapshot.json +3204 -0
  261. package/src/db/migrations/pg/meta/0025_snapshot.json +3204 -0
  262. package/src/db/migrations/pg/meta/0026_snapshot.json +3204 -0
  263. package/src/db/migrations/pg/meta/0027_snapshot.json +3211 -0
  264. package/src/db/migrations/pg/meta/0028_snapshot.json +3248 -0
  265. package/src/db/migrations/pg/meta/0029_snapshot.json +3289 -0
  266. package/src/db/migrations/pg/meta/0030_snapshot.json +3329 -0
  267. package/src/db/migrations/pg/meta/0031_snapshot.json +3660 -0
  268. package/src/db/migrations/pg/meta/0032_snapshot.json +3660 -0
  269. package/src/db/migrations/pg/meta/_journal.json +120 -1
  270. package/src/db/pg/node.ts +30 -0
  271. package/src/db/pg/schema.ts +399 -100
  272. package/src/db/post-visibility.ts +117 -0
  273. package/src/db/rehearsal-fixtures/pg-v0.3.39.json +159 -0
  274. package/src/db/rehearsal-fixtures/pg-v0.3.39.sql +78 -0
  275. package/src/db/rehearsal-fixtures/pinned-reply-memberships.json +60 -0
  276. package/src/db/rehearsal-fixtures/pinned-reply-memberships.sql +304 -0
  277. package/src/db/rehearsal-fixtures/v0.3.39.json +170 -0
  278. package/src/db/rehearsal-fixtures/v0.3.39.sql +78 -0
  279. package/src/db/schema.ts +437 -103
  280. package/src/db/thread-activity.ts +101 -0
  281. package/src/i18n/context.tsx +12 -2
  282. package/src/i18n/coverage.generated.ts +17 -0
  283. package/src/i18n/detect.ts +18 -68
  284. package/src/i18n/i18n.ts +18 -2
  285. package/src/i18n/index.ts +3 -0
  286. package/src/i18n/locales/glossary.zh-Hans.yml +44 -4
  287. package/src/i18n/locales/glossary.zh-Hant.yml +44 -4
  288. package/src/i18n/locales/public/en.po +832 -259
  289. package/src/i18n/locales/public/en.ts +1 -1
  290. package/src/i18n/locales/public/zh-Hans.po +818 -244
  291. package/src/i18n/locales/public/zh-Hans.ts +1 -1
  292. package/src/i18n/locales/public/zh-Hant.po +818 -244
  293. package/src/i18n/locales/public/zh-Hant.ts +1 -1
  294. package/src/i18n/locales/settings/en.po +1537 -104
  295. package/src/i18n/locales/settings/en.ts +1 -1
  296. package/src/i18n/locales/settings/zh-Hans.po +1585 -152
  297. package/src/i18n/locales/settings/zh-Hans.ts +1 -1
  298. package/src/i18n/locales/settings/zh-Hant.po +1588 -155
  299. package/src/i18n/locales/settings/zh-Hant.ts +1 -1
  300. package/src/i18n/locales.ts +178 -2
  301. package/src/i18n/middleware.ts +45 -17
  302. package/src/i18n/supported-locales.ts +234 -0
  303. package/src/index.ts +46 -80
  304. package/src/lib/address.ts +57 -0
  305. package/src/lib/api-collections.ts +173 -0
  306. package/src/lib/api-custom-urls.ts +44 -0
  307. package/src/lib/api-media.ts +66 -15
  308. package/src/lib/api-nav-items.ts +62 -0
  309. package/src/lib/api-post-input.ts +156 -0
  310. package/src/lib/api-posts.ts +343 -39
  311. package/src/lib/api-public-posts.ts +243 -0
  312. package/src/lib/api-search.ts +53 -2
  313. package/src/lib/api-settings.ts +387 -55
  314. package/src/lib/api-threads.ts +230 -0
  315. package/src/lib/asset-path.ts +98 -1
  316. package/src/lib/build-env.ts +16 -0
  317. package/src/lib/collection-groups.ts +5 -1
  318. package/src/lib/collection-paths.ts +3 -10
  319. package/src/lib/collection-sort.ts +78 -5
  320. package/src/lib/constants.ts +74 -3
  321. package/src/lib/copy-field.ts +36 -0
  322. package/src/lib/crypto.ts +40 -0
  323. package/src/lib/csp-builder.ts +30 -11
  324. package/src/lib/deferred.ts +79 -0
  325. package/src/lib/discover-ping.ts +141 -0
  326. package/src/lib/discover.ts +488 -0
  327. package/src/lib/env-values.ts +140 -0
  328. package/src/lib/env.ts +381 -11
  329. package/src/lib/errors.ts +33 -7
  330. package/src/lib/feed-path.ts +31 -0
  331. package/src/lib/feed-policy.ts +401 -0
  332. package/src/lib/feed.ts +1311 -66
  333. package/src/lib/filter-dimensions.ts +1356 -0
  334. package/src/lib/footnotes.ts +264 -0
  335. package/src/lib/github-sync-repo-name.ts +45 -0
  336. package/src/lib/github-sync-site-config.ts +10 -4
  337. package/src/lib/github-sync-status.tsx +87 -0
  338. package/src/lib/github-sync-trigger.ts +7 -51
  339. package/src/lib/hosted-domain-check.ts +21 -80
  340. package/src/lib/hosted-domain.ts +1 -1
  341. package/src/lib/hosted-signin.ts +10 -4
  342. package/src/lib/http-cache.ts +148 -0
  343. package/src/lib/hugo-markdown.ts +83 -10
  344. package/src/lib/icons.ts +126 -20
  345. package/src/lib/ids.ts +138 -8
  346. package/src/lib/image-dimensions.ts +258 -0
  347. package/src/lib/image.ts +17 -4
  348. package/src/lib/jant-branding.ts +1 -0
  349. package/src/lib/jant-docs.ts +42 -0
  350. package/src/lib/lang-detect.ts +308 -0
  351. package/src/lib/link-preview.ts +25 -0
  352. package/src/lib/markdown-manager.ts +598 -11
  353. package/src/lib/markdown.ts +10 -3
  354. package/src/lib/media-helpers.ts +13 -1
  355. package/src/lib/mp4-track-flags.ts +71 -0
  356. package/src/lib/navigation.ts +103 -37
  357. package/src/lib/pagination.ts +28 -24
  358. package/src/lib/per-language-surfaces.ts +67 -0
  359. package/src/lib/post-body-html.ts +138 -0
  360. package/src/lib/post-display.ts +147 -21
  361. package/src/lib/post-list-cursor.ts +221 -0
  362. package/src/lib/post-meta.ts +39 -2
  363. package/src/lib/public-storage.ts +43 -0
  364. package/src/lib/rate-limit-d1.ts +99 -0
  365. package/src/lib/rate-limit-memory.ts +105 -0
  366. package/src/lib/rate-limit.ts +136 -0
  367. package/src/lib/render.tsx +104 -4
  368. package/src/lib/resolve-config.ts +233 -30
  369. package/src/lib/schemas.ts +681 -193
  370. package/src/lib/settings-paths.ts +5 -0
  371. package/src/lib/share-card.ts +653 -0
  372. package/src/lib/site-header-fragment.tsx +38 -0
  373. package/src/lib/site-skill.ts +78 -0
  374. package/src/lib/site-unavailable-page.ts +47 -0
  375. package/src/lib/slug.ts +51 -7
  376. package/src/lib/slugify.ts +118 -0
  377. package/src/lib/sse.ts +1 -1
  378. package/src/lib/startup-config.ts +77 -13
  379. package/src/lib/storage.ts +26 -0
  380. package/src/lib/structured-data.ts +113 -0
  381. package/src/lib/summary.ts +150 -15
  382. package/src/lib/telegram-entities.ts +240 -0
  383. package/src/lib/telegram-pool-webhooks.ts +86 -0
  384. package/src/lib/telegram-settings-status.tsx +109 -0
  385. package/src/lib/telegram.ts +363 -0
  386. package/src/lib/theme.ts +34 -26
  387. package/src/lib/thread-fold.ts +209 -0
  388. package/src/lib/thread-query.ts +171 -0
  389. package/src/lib/time.ts +169 -17
  390. package/src/lib/timeline.ts +237 -145
  391. package/src/lib/timezones.ts +54 -14
  392. package/src/lib/tiptap-render.ts +357 -78
  393. package/src/lib/tiptap-to-markdown.ts +13 -7
  394. package/src/lib/translit.ts +288 -0
  395. package/src/lib/upload.ts +142 -14
  396. package/src/lib/url-fetch.ts +364 -0
  397. package/src/lib/url.ts +391 -21
  398. package/src/lib/version.ts +12 -8
  399. package/src/lib/view-language.ts +436 -0
  400. package/src/lib/view.ts +206 -75
  401. package/src/lib/viewer-context.ts +62 -0
  402. package/src/lib/worker-response-cache.ts +11 -18
  403. package/src/middleware/auth.ts +133 -46
  404. package/src/middleware/cache-control.ts +125 -0
  405. package/src/middleware/config.ts +51 -13
  406. package/src/middleware/cors.ts +4 -4
  407. package/src/middleware/cross-origin.ts +124 -0
  408. package/src/middleware/error-handler.ts +52 -3
  409. package/src/middleware/onboarding.ts +42 -11
  410. package/src/middleware/public-content-access.ts +39 -0
  411. package/src/middleware/secure-headers.ts +44 -3
  412. package/src/middleware/session.ts +124 -0
  413. package/src/middleware/validate.ts +133 -0
  414. package/src/node/index.ts +6 -1
  415. package/src/node/request-handler.ts +139 -8
  416. package/src/node/runtime.ts +43 -11
  417. package/src/preset.css +178 -38
  418. package/src/routes/api/collections.ts +158 -89
  419. package/src/routes/api/custom-urls.ts +40 -52
  420. package/src/routes/api/discover.ts +107 -0
  421. package/src/routes/api/export.ts +9 -5
  422. package/src/routes/api/github-sync.tsx +102 -137
  423. package/src/routes/api/internal/post-body-html.ts +43 -0
  424. package/src/routes/api/internal/search-reindex.ts +40 -0
  425. package/src/routes/api/internal/sites.ts +196 -17
  426. package/src/routes/api/internal/uploads.ts +2 -7
  427. package/src/routes/api/mcp.ts +4 -0
  428. package/src/routes/api/media.ts +79 -0
  429. package/src/routes/api/nav-items.ts +181 -64
  430. package/src/routes/api/posts.ts +282 -241
  431. package/src/routes/api/public/posts.ts +26 -277
  432. package/src/routes/api/public/threads.ts +140 -0
  433. package/src/routes/api/search.ts +34 -35
  434. package/src/routes/api/settings.ts +191 -109
  435. package/src/routes/api/smart-collections.ts +177 -0
  436. package/src/routes/api/telegram.ts +742 -0
  437. package/src/routes/api/threads.ts +138 -0
  438. package/src/routes/api/upload.ts +84 -286
  439. package/src/routes/api/uploads.ts +153 -126
  440. package/src/routes/auth/dev.ts +5 -7
  441. package/src/routes/auth/hosted-sso.ts +9 -6
  442. package/src/routes/auth/setup.tsx +1031 -178
  443. package/src/routes/auth/signin.tsx +134 -13
  444. package/src/routes/compose.tsx +51 -37
  445. package/src/routes/dash/custom-urls.tsx +6 -46
  446. package/src/routes/dash/settings.tsx +1039 -136
  447. package/src/routes/discover-announce.ts +96 -0
  448. package/src/routes/feed/feed.ts +192 -189
  449. package/src/routes/feed/sitemap.ts +291 -34
  450. package/src/routes/hosted/domain-check.ts +9 -14
  451. package/src/routes/pages/archive.tsx +621 -388
  452. package/src/routes/pages/brand.tsx +2 -1
  453. package/src/routes/pages/collection.tsx +202 -224
  454. package/src/routes/pages/collections.tsx +42 -46
  455. package/src/routes/pages/featured.tsx +56 -13
  456. package/src/routes/pages/home.tsx +53 -49
  457. package/src/routes/pages/language.tsx +113 -0
  458. package/src/routes/pages/latest.tsx +42 -50
  459. package/src/routes/pages/new.tsx +10 -0
  460. package/src/routes/pages/page.tsx +504 -88
  461. package/src/routes/pages/partials.tsx +102 -15
  462. package/src/routes/pages/search.tsx +51 -11
  463. package/src/routes/pages/smart-collection.tsx +273 -0
  464. package/src/routes/pages/subscribe.tsx +183 -0
  465. package/src/routes/pages/theme-sample.tsx +3 -4
  466. package/src/routes/site-skill.ts +18 -0
  467. package/src/runtime/cloudflare.ts +47 -14
  468. package/src/runtime/index.ts +29 -1
  469. package/src/runtime/node.ts +106 -15
  470. package/src/runtime/readiness.ts +37 -5
  471. package/src/runtime/site.ts +97 -25
  472. package/src/services/about-page.ts +164 -0
  473. package/src/services/auth.ts +89 -55
  474. package/src/services/bootstrap.ts +409 -28
  475. package/src/services/collection-directory-position.ts +76 -0
  476. package/src/services/collection.ts +659 -252
  477. package/src/services/custom-url.ts +146 -31
  478. package/src/services/export-theme/assets/client-site.css +1 -1
  479. package/src/services/export-theme/assets/client-site.js +128 -104
  480. package/src/services/export-theme/layouts/_default/alias.html +27 -1
  481. package/src/services/export-theme/layouts/_default/baseof.html +3 -2
  482. package/src/services/export-theme/layouts/_default/list.html +3 -50
  483. package/src/services/export-theme/layouts/_default/rss.xml +107 -55
  484. package/src/services/export-theme/layouts/collection/single.html +1 -1
  485. package/src/services/export-theme/layouts/collections/list.html +3 -3
  486. package/src/services/export-theme/layouts/featured/list.html +3 -5
  487. package/src/services/export-theme/layouts/index.html +19 -18
  488. package/src/services/export-theme/layouts/partials/collection-members.html +100 -0
  489. package/src/services/export-theme/layouts/partials/collection-threads.html +33 -0
  490. package/src/services/export-theme/layouts/partials/featured-members.html +35 -0
  491. package/src/services/export-theme/layouts/partials/featured-thread.html +63 -0
  492. package/src/services/export-theme/layouts/partials/feed-post-content.xml +130 -3
  493. package/src/services/export-theme/layouts/partials/footer.html +2 -2
  494. package/src/services/export-theme/layouts/partials/head.html +2 -2
  495. package/src/services/export-theme/layouts/partials/header.html +5 -3
  496. package/src/services/export-theme/layouts/partials/jant-data.html +23 -0
  497. package/src/services/export-theme/layouts/partials/latest-members.html +48 -0
  498. package/src/services/export-theme/layouts/partials/media-gallery.html +62 -35
  499. package/src/services/export-theme/layouts/partials/pagination.html +14 -13
  500. package/src/services/export-theme/layouts/partials/post-card.html +8 -4
  501. package/src/services/export-theme/layouts/partials/reply.html +2 -1
  502. package/src/services/export-theme/layouts/partials/smart-collection-members.html +129 -0
  503. package/src/services/export-theme/layouts/partials/thread-preview.html +41 -31
  504. package/src/services/export-theme/layouts/post/list.html +1 -1
  505. package/src/services/export-theme/layouts/smart_collection/list.html +24 -0
  506. package/src/services/export-theme/styles/main.css +147 -38
  507. package/src/services/export-theme/theme.toml +1 -1
  508. package/src/services/export.ts +1099 -195
  509. package/src/services/github-app-installations.ts +172 -7
  510. package/src/services/github-sync.ts +89 -23
  511. package/src/services/hosted-handoff.ts +106 -6
  512. package/src/services/index.ts +83 -21
  513. package/src/services/language.ts +445 -0
  514. package/src/services/mcp.ts +409 -573
  515. package/src/services/media.ts +387 -319
  516. package/src/services/navigation.ts +772 -73
  517. package/src/services/path.ts +302 -46
  518. package/src/services/post.ts +3277 -776
  519. package/src/services/search.ts +131 -55
  520. package/src/services/settings.ts +345 -64
  521. package/src/services/site-admin.ts +385 -53
  522. package/src/services/site.ts +160 -32
  523. package/src/services/smart-collection.ts +643 -0
  524. package/src/services/telegram.ts +628 -0
  525. package/src/services/text-attachment.ts +94 -0
  526. package/src/services/thread.ts +400 -0
  527. package/src/services/upload-session.ts +68 -30
  528. package/src/style-author.css +27 -0
  529. package/src/style-cjk-jp.css +1 -1
  530. package/src/style-cjk-kr.css +1 -1
  531. package/src/style-cjk-tc.css +1 -1
  532. package/src/style-cjk.css +1 -1
  533. package/src/style-share.css +16 -0
  534. package/src/styles/components-author.css +1622 -0
  535. package/src/styles/components.css +36 -1009
  536. package/src/styles/share.css +1103 -0
  537. package/src/styles/site-media.css +204 -46
  538. package/src/styles/tokens.css +263 -61
  539. package/src/styles/ui-author.css +7581 -0
  540. package/src/styles/ui.css +1970 -6544
  541. package/src/types/app-context.ts +59 -1
  542. package/src/types/bindings.ts +32 -3
  543. package/src/types/config.ts +406 -31
  544. package/src/types/constants.ts +262 -13
  545. package/src/types/entities.ts +101 -10
  546. package/src/types/operations.ts +92 -12
  547. package/src/types/props.ts +208 -43
  548. package/src/types/raw-assets.d.ts +5 -0
  549. package/src/types/views.ts +114 -13
  550. package/src/ui/color-themes.ts +39 -10
  551. package/src/ui/compose/ComposeDialog.tsx +369 -16
  552. package/src/ui/compose/ComposePrompt.tsx +1 -5
  553. package/src/ui/dash/appearance/AdvancedContent.tsx +2 -2
  554. package/src/ui/dash/appearance/CodeInjectionContent.tsx +12 -16
  555. package/src/ui/dash/appearance/ColorThemeContent.tsx +264 -29
  556. package/src/ui/dash/appearance/NavigationContent.tsx +506 -20
  557. package/src/ui/dash/appearance/system-nav-descriptions.ts +75 -0
  558. package/src/ui/dash/settings/AccountMenuContent.tsx +4 -43
  559. package/src/ui/dash/settings/ApiTokensContent.tsx +2 -1
  560. package/src/ui/dash/settings/ConfigEditorContent.tsx +597 -0
  561. package/src/ui/dash/settings/GeneralContent.tsx +314 -70
  562. package/src/ui/dash/settings/GitHubSyncContent.tsx +25 -0
  563. package/src/ui/dash/settings/LanguageContent.tsx +409 -0
  564. package/src/ui/dash/settings/SettingsDirectory.tsx +26 -1
  565. package/src/ui/dash/settings/SettingsRootContent.tsx +125 -22
  566. package/src/ui/dash/settings/TelegramContent.tsx +549 -0
  567. package/src/ui/dash/settings/discover-copy.ts +116 -0
  568. package/src/ui/feed/CuratedThreadPreview.tsx +23 -6
  569. package/src/ui/feed/LinkCard.tsx +79 -82
  570. package/src/ui/feed/LinkPreview.tsx +7 -26
  571. package/src/ui/feed/NoteCard.tsx +95 -51
  572. package/src/ui/feed/PostStatusBadges.tsx +103 -51
  573. package/src/ui/feed/QuoteCard.tsx +86 -56
  574. package/src/ui/feed/ThreadPreview.tsx +95 -75
  575. package/src/ui/feed/TimelineFeed.tsx +1 -7
  576. package/src/ui/feed/thread-preview-state.ts +35 -63
  577. package/src/ui/font-themes.ts +101 -43
  578. package/src/ui/layouts/BaseLayout.tsx +333 -61
  579. package/src/ui/layouts/SiteLayout.tsx +438 -238
  580. package/src/ui/pages/ArchivePage.tsx +498 -315
  581. package/src/ui/pages/BrandPage.tsx +1 -1
  582. package/src/ui/pages/CollectionPage.tsx +186 -97
  583. package/src/ui/pages/CollectionsPage.tsx +17 -26
  584. package/src/ui/pages/ComposePage.tsx +12 -1
  585. package/src/ui/pages/FeaturedPage.tsx +1 -1
  586. package/src/ui/pages/HomePage.tsx +24 -6
  587. package/src/ui/pages/PostPage.tsx +162 -24
  588. package/src/ui/pages/SearchPage.tsx +27 -19
  589. package/src/ui/pages/SmartCollectionPage.tsx +434 -0
  590. package/src/ui/pages/SubscribePage.tsx +234 -0
  591. package/src/ui/pages/ThemeSamplePage.tsx +1 -1
  592. package/src/ui/share/ShareCard.tsx +298 -0
  593. package/src/ui/shared/CollectionDirectory.tsx +204 -15
  594. package/src/ui/shared/CollectionsManager.tsx +93 -62
  595. package/src/ui/shared/CopyField.tsx +127 -0
  596. package/src/ui/shared/DecorativeQuoteMark.tsx +2 -13
  597. package/src/ui/shared/DraftPreviewBar.tsx +49 -0
  598. package/src/ui/shared/EmptyPostContent.tsx +23 -0
  599. package/src/ui/shared/HomePageBranding.tsx +2 -2
  600. package/src/ui/shared/Icon.tsx +80 -0
  601. package/src/ui/shared/IconSprite.tsx +56 -0
  602. package/src/ui/shared/MediaGallery.tsx +187 -53
  603. package/src/ui/shared/Pagination.tsx +21 -6
  604. package/src/ui/shared/PostFooter.tsx +82 -88
  605. package/src/ui/shared/archive-labels.ts +98 -0
  606. package/src/ui/shared/collection-management-labels.ts +127 -18
  607. package/src/ui/shared/custom-icons.ts +168 -0
  608. package/src/ui/shared/icon-collector.ts +67 -0
  609. package/src/ui/shared/navigation-labels.ts +45 -73
  610. package/src/ui/shared/post-article-attributes.ts +57 -0
  611. package/src/ui/shared/smart-collection-labels.ts +343 -0
  612. package/src/vendor/datastar.js +9 -1956
  613. package/src/vendor/datastar.js.map +4 -4
  614. package/bin/commands/collections.js +0 -268
  615. package/bin/commands/export.js +0 -110
  616. package/bin/commands/import-site.js +0 -2619
  617. package/bin/commands/media.js +0 -302
  618. package/bin/commands/migrate-text-attachments.js +0 -183
  619. package/bin/commands/posts.js +0 -262
  620. package/bin/commands/search.js +0 -53
  621. package/bin/commands/settings.js +0 -93
  622. package/bin/lib/http-api.js +0 -223
  623. package/bin/lib/media-upload.js +0 -206
  624. package/dist/app-B5db9mS0.js +0 -5
  625. package/dist/app-CwCepTko.js +0 -31334
  626. package/dist/client/_assets/chunks/heic-to-DUUaO23q.js +0 -1
  627. package/dist/client/_assets/chunks/module-DcsAZQZ_.js +0 -716
  628. package/dist/client/_assets/chunks/native-DpcrFAPh.js +0 -1
  629. package/dist/client/_assets/chunks/url-pLre2DM_.js +0 -1
  630. package/dist/client/_assets/client-C_kImWZj.css +0 -2
  631. package/dist/client/_assets/client-D95FNDg5.js +0 -272
  632. package/dist/client/_assets/client-auth-BRFl5zQA.js +0 -4547
  633. package/dist/env-wCpMcNXs.js +0 -252
  634. package/dist/github-api-CficQztC.js +0 -176
  635. package/dist/github-app-F4qZ05xk.js +0 -275
  636. package/dist/github-sync-zohnA9qv.js +0 -4696
  637. package/dist/url-FvvgARU9.js +0 -305
  638. package/src/__tests__/bin/content-cli.test.ts +0 -179
  639. package/src/__tests__/bin/media-cli.test.ts +0 -192
  640. package/src/__tests__/bin/uploads-cleanup.test.ts +0 -77
  641. package/src/__tests__/export-hugo-build.test.ts +0 -178
  642. package/src/__tests__/export-import-roundtrip.test.ts +0 -265
  643. package/src/__tests__/export-service.test.ts +0 -803
  644. package/src/__tests__/helpers/app.ts +0 -159
  645. package/src/__tests__/helpers/db.ts +0 -136
  646. package/src/__tests__/helpers/export-fixtures.ts +0 -108
  647. package/src/__tests__/helpers/lingui-core-macro-mock.ts +0 -46
  648. package/src/__tests__/import-site-command.test.ts +0 -414
  649. package/src/__tests__/site-media-parser.test.ts +0 -216
  650. package/src/__tests__/site-pull-media.test.ts +0 -256
  651. package/src/client/__tests__/avatar-upload.test.ts +0 -186
  652. package/src/client/__tests__/collection-form-bridge.test.ts +0 -207
  653. package/src/client/__tests__/collection-page-actions.test.ts +0 -112
  654. package/src/client/__tests__/collection-picker-order.test.ts +0 -53
  655. package/src/client/__tests__/collection-sort-menu.test.ts +0 -78
  656. package/src/client/__tests__/compose-bridge.test.ts +0 -552
  657. package/src/client/__tests__/compose-discovery.test.ts +0 -155
  658. package/src/client/__tests__/compose-launch.test.ts +0 -120
  659. package/src/client/__tests__/compose-shortcuts.test.ts +0 -274
  660. package/src/client/__tests__/confirm.test.ts +0 -98
  661. package/src/client/__tests__/custom-url-menu.test.ts +0 -104
  662. package/src/client/__tests__/feed-video-player.test.ts +0 -44
  663. package/src/client/__tests__/form-enter-submit.test.ts +0 -110
  664. package/src/client/__tests__/post-form-bridge.test.ts +0 -82
  665. package/src/client/__tests__/site-header-nav.test.ts +0 -250
  666. package/src/client/__tests__/sortable-list.test.ts +0 -95
  667. package/src/client/__tests__/thread-context.test.ts +0 -117
  668. package/src/client/__tests__/toast.test.ts +0 -46
  669. package/src/client/collection-form-bridge.ts +0 -174
  670. package/src/client/components/__tests__/jant-collection-directory.test.ts +0 -387
  671. package/src/client/components/__tests__/jant-collection-form.test.ts +0 -340
  672. package/src/client/components/__tests__/jant-compose-dialog.test.ts +0 -4524
  673. package/src/client/components/__tests__/jant-compose-editor.test.ts +0 -1203
  674. package/src/client/components/__tests__/jant-compose-fullscreen.test.ts +0 -424
  675. package/src/client/components/__tests__/jant-media-lightbox.test.ts +0 -237
  676. package/src/client/components/__tests__/jant-nav-manager.test.ts +0 -326
  677. package/src/client/components/__tests__/jant-post-form.test.ts +0 -193
  678. package/src/client/components/__tests__/jant-post-menu.test.ts +0 -695
  679. package/src/client/components/__tests__/jant-settings-avatar.test.ts +0 -312
  680. package/src/client/components/__tests__/jant-settings-general.test.ts +0 -544
  681. package/src/client/components/__tests__/jant-text-preview.test.ts +0 -206
  682. package/src/client/components/jant-post-form.ts +0 -422
  683. package/src/client/components/post-form-template.ts +0 -352
  684. package/src/client/components/post-form-types.ts +0 -96
  685. package/src/client/media-metadata.ts +0 -247
  686. package/src/client/multipart-upload.ts +0 -196
  687. package/src/client/nav-manager-bridge.ts +0 -54
  688. package/src/client/post-form-bridge.ts +0 -193
  689. package/src/client/tiptap/__tests__/block-insertion.test.ts +0 -65
  690. package/src/client/tiptap/__tests__/floating-position.test.ts +0 -74
  691. package/src/client/tiptap/__tests__/footnotes.test.ts +0 -692
  692. package/src/client/tiptap/__tests__/link-toolbar.test.ts +0 -210
  693. package/src/client/tiptap/__tests__/markdown-clipboard.test.ts +0 -48
  694. package/src/client/tiptap/__tests__/paste-media.test.ts +0 -39
  695. package/src/client/tiptap/exitable-marks.ts +0 -73
  696. package/src/client/tiptap/wrapping-input-rules.ts +0 -102
  697. package/src/db/__tests__/d1-query.test.ts +0 -84
  698. package/src/db/__tests__/demo-canonical-snapshot.test.ts +0 -78
  699. package/src/db/__tests__/demo-env-loader.test.ts +0 -114
  700. package/src/db/__tests__/dialect.test.ts +0 -42
  701. package/src/db/__tests__/migration-artifacts.test.ts +0 -82
  702. package/src/db/__tests__/migration-rehearsal.test.ts +0 -77
  703. package/src/db/__tests__/migration-runner.test.ts +0 -72
  704. package/src/db/__tests__/migrations.test.ts +0 -426
  705. package/src/db/__tests__/r2-query.test.ts +0 -102
  706. package/src/db/__tests__/wrangler-config.test.ts +0 -86
  707. package/src/db/pg/__tests__/node.test.ts +0 -96
  708. package/src/db/rehearsal-fixtures/demo-current.json +0 -25
  709. package/src/db/rehearsal-fixtures/demo-current.sql +0 -186
  710. package/src/i18n/__tests__/context.test.tsx +0 -38
  711. package/src/i18n/__tests__/detect.test.ts +0 -132
  712. package/src/i18n/__tests__/fallback.test.ts +0 -40
  713. package/src/i18n/__tests__/message-placeholders.test.ts +0 -43
  714. package/src/i18n/__tests__/middleware.test.ts +0 -83
  715. package/src/lib/__tests__/asset-path.test.ts +0 -54
  716. package/src/lib/__tests__/blurhash-placeholder.test.ts +0 -99
  717. package/src/lib/__tests__/collection-groups.test.ts +0 -80
  718. package/src/lib/__tests__/collection-sort.test.ts +0 -45
  719. package/src/lib/__tests__/constants.test.ts +0 -44
  720. package/src/lib/__tests__/csp-builder.test.ts +0 -68
  721. package/src/lib/__tests__/display-text.test.ts +0 -27
  722. package/src/lib/__tests__/embed-providers.test.ts +0 -104
  723. package/src/lib/__tests__/embed-render.test.ts +0 -60
  724. package/src/lib/__tests__/excerpt.test.ts +0 -150
  725. package/src/lib/__tests__/favicon.test.ts +0 -151
  726. package/src/lib/__tests__/feed.test.ts +0 -209
  727. package/src/lib/__tests__/hosted-control-plane.test.ts +0 -106
  728. package/src/lib/__tests__/hosted-domain.test.ts +0 -78
  729. package/src/lib/__tests__/hosted-signin.test.ts +0 -112
  730. package/src/lib/__tests__/icons.test.ts +0 -20
  731. package/src/lib/__tests__/image.test.ts +0 -111
  732. package/src/lib/__tests__/jant-branding.test.ts +0 -160
  733. package/src/lib/__tests__/markdown-roundtrip-embed.test.ts +0 -88
  734. package/src/lib/__tests__/markdown-to-tiptap.test.ts +0 -444
  735. package/src/lib/__tests__/markdown.test.ts +0 -175
  736. package/src/lib/__tests__/nanoid.test.ts +0 -26
  737. package/src/lib/__tests__/navigation.test.ts +0 -148
  738. package/src/lib/__tests__/page-title.test.ts +0 -20
  739. package/src/lib/__tests__/password.test.ts +0 -60
  740. package/src/lib/__tests__/post-display.test.ts +0 -100
  741. package/src/lib/__tests__/post-meta.test.ts +0 -129
  742. package/src/lib/__tests__/public-storage.test.ts +0 -75
  743. package/src/lib/__tests__/resolve-config.test.ts +0 -341
  744. package/src/lib/__tests__/schemas.test.ts +0 -818
  745. package/src/lib/__tests__/search-snippet.test.ts +0 -43
  746. package/src/lib/__tests__/site-resolution.test.ts +0 -39
  747. package/src/lib/__tests__/slug-format.test.ts +0 -54
  748. package/src/lib/__tests__/slug.test.ts +0 -126
  749. package/src/lib/__tests__/sse.test.ts +0 -98
  750. package/src/lib/__tests__/startup-config.test.ts +0 -87
  751. package/src/lib/__tests__/storage.test.ts +0 -379
  752. package/src/lib/__tests__/summary.test.ts +0 -663
  753. package/src/lib/__tests__/theme.test.ts +0 -138
  754. package/src/lib/__tests__/time.test.ts +0 -218
  755. package/src/lib/__tests__/timeline.test.ts +0 -746
  756. package/src/lib/__tests__/timezones.test.ts +0 -94
  757. package/src/lib/__tests__/tiptap-render.test.ts +0 -224
  758. package/src/lib/__tests__/tiptap-to-markdown.test.ts +0 -420
  759. package/src/lib/__tests__/url.test.ts +0 -228
  760. package/src/lib/__tests__/video-playback.test.ts +0 -48
  761. package/src/lib/__tests__/view.test.ts +0 -770
  762. package/src/lib/__tests__/worker-response-cache.test.ts +0 -311
  763. package/src/lib/__tests__/youtube.test.ts +0 -99
  764. package/src/lib/github-sync-queue-handler.ts +0 -69
  765. package/src/lib/github-sync-worker.ts +0 -72
  766. package/src/lib/job-queue-cf.ts +0 -18
  767. package/src/lib/job-queue-db.ts +0 -149
  768. package/src/lib/job-queue.ts +0 -35
  769. package/src/middleware/__tests__/auth.test.ts +0 -499
  770. package/src/middleware/__tests__/error-handler.test.ts +0 -37
  771. package/src/middleware/__tests__/onboarding.test.ts +0 -211
  772. package/src/middleware/__tests__/secure-headers.test.ts +0 -138
  773. package/src/node/__tests__/cli-db-execute-file.test.ts +0 -109
  774. package/src/node/__tests__/cli-deploy.test.ts +0 -124
  775. package/src/node/__tests__/cli-export.test.ts +0 -66
  776. package/src/node/__tests__/cli-migrate.test.ts +0 -111
  777. package/src/node/__tests__/cli-reset-password.test.ts +0 -91
  778. package/src/node/__tests__/cli-runtime-target.test.ts +0 -37
  779. package/src/node/__tests__/cli-site-selection.test.ts +0 -133
  780. package/src/node/__tests__/cli-site-snapshot.test.ts +0 -636
  781. package/src/node/__tests__/cli-site-token-env.test.ts +0 -137
  782. package/src/node/__tests__/runtime.test.ts +0 -346
  783. package/src/routes/__tests__/compose.test.ts +0 -354
  784. package/src/routes/api/__tests__/attachments.test.ts +0 -92
  785. package/src/routes/api/__tests__/collections.test.ts +0 -556
  786. package/src/routes/api/__tests__/mcp.test.ts +0 -389
  787. package/src/routes/api/__tests__/nav-items.test.ts +0 -461
  788. package/src/routes/api/__tests__/posts.test.ts +0 -1080
  789. package/src/routes/api/__tests__/search.test.ts +0 -113
  790. package/src/routes/api/__tests__/settings.test.ts +0 -606
  791. package/src/routes/api/__tests__/upload-multipart.test.ts +0 -732
  792. package/src/routes/api/__tests__/upload.test.ts +0 -132
  793. package/src/routes/api/__tests__/uploads.test.ts +0 -422
  794. package/src/routes/api/internal/__tests__/api-tokens.test.ts +0 -55
  795. package/src/routes/api/internal/__tests__/sites.test.ts +0 -515
  796. package/src/routes/api/internal/__tests__/uploads.test.ts +0 -131
  797. package/src/routes/api/internal/text-attachments.ts +0 -60
  798. package/src/routes/api/public/__tests__/posts.test.ts +0 -372
  799. package/src/routes/api/upload-multipart.ts +0 -344
  800. package/src/routes/auth/__tests__/dev.test.ts +0 -135
  801. package/src/routes/auth/__tests__/hosted-sso.test.ts +0 -169
  802. package/src/routes/auth/__tests__/setup.test.ts +0 -128
  803. package/src/routes/dash/__tests__/font-theme.test.ts +0 -100
  804. package/src/routes/dash/__tests__/settings-avatar.test.ts +0 -265
  805. package/src/routes/feed/__tests__/feed.test.ts +0 -475
  806. package/src/routes/feed/__tests__/sitemap.test.ts +0 -64
  807. package/src/routes/hosted/__tests__/domain-check.test.ts +0 -94
  808. package/src/routes/pages/__tests__/collection-routing.test.ts +0 -176
  809. package/src/routes/pages/__tests__/collections.test.ts +0 -100
  810. package/src/routes/pages/__tests__/featured.test.ts +0 -119
  811. package/src/runtime/__tests__/node.test.ts +0 -258
  812. package/src/runtime/__tests__/readiness.test.ts +0 -89
  813. package/src/services/__tests__/api-token.test.ts +0 -138
  814. package/src/services/__tests__/auth.test.ts +0 -348
  815. package/src/services/__tests__/collection.test.ts +0 -1032
  816. package/src/services/__tests__/custom-url.test.ts +0 -220
  817. package/src/services/__tests__/github-app-installations.test.ts +0 -181
  818. package/src/services/__tests__/github-sync-classify.test.ts +0 -189
  819. package/src/services/__tests__/github-sync-push.test.ts +0 -159
  820. package/src/services/__tests__/hosted-handoff.test.ts +0 -123
  821. package/src/services/__tests__/media.test.ts +0 -1304
  822. package/src/services/__tests__/navigation.test.ts +0 -671
  823. package/src/services/__tests__/post-timeline.test.ts +0 -575
  824. package/src/services/__tests__/post.test.ts +0 -2076
  825. package/src/services/__tests__/search.test.ts +0 -326
  826. package/src/services/__tests__/settings.test.ts +0 -445
  827. package/src/services/__tests__/site-admin.test.ts +0 -48
  828. package/src/services/__tests__/site-profile.test.ts +0 -175
  829. package/src/styles/fonts/et-book/et-book-bold-line-figures.woff +0 -0
  830. package/src/styles/fonts/et-book/et-book-display-italic-old-style-figures.woff +0 -0
  831. package/src/styles/fonts/et-book/et-book-roman-line-figures.woff +0 -0
  832. package/src/styles/fonts/et-book.css +0 -31
  833. package/src/styles/fonts/latin.css +0 -5
  834. package/src/styles/fonts/noto-serif-jp/400/057a6a98bda7fe57105ddaa99ec82015.woff2 +0 -0
  835. package/src/styles/fonts/noto-serif-jp/400/0acd1fe2b2ea1ad1bfee7ae1fa139d27.woff2 +0 -0
  836. package/src/styles/fonts/noto-serif-jp/400/0c2ab6b295e55f356f8020d4e7747522.woff2 +0 -0
  837. package/src/styles/fonts/noto-serif-jp/400/0c5f9492af03a4fa42c784de94649de1.woff2 +0 -0
  838. package/src/styles/fonts/noto-serif-jp/400/0d9a936885a4c39077438effd3779cbd.woff2 +0 -0
  839. package/src/styles/fonts/noto-serif-jp/400/0e645da524f7cfc0e8c3c03fb2b08428.woff2 +0 -0
  840. package/src/styles/fonts/noto-serif-jp/400/135e83b403475c5dc9e49b43501a5b84.woff2 +0 -0
  841. package/src/styles/fonts/noto-serif-jp/400/13b2c53b30e6a3e4de7132dbc18dbdfc.woff2 +0 -0
  842. package/src/styles/fonts/noto-serif-jp/400/15d95680dc31cc6ce20e0a5464106dc4.woff2 +0 -0
  843. package/src/styles/fonts/noto-serif-jp/400/1733f27476507ca68b68a803bc533cc2.woff2 +0 -0
  844. package/src/styles/fonts/noto-serif-jp/400/188c2db794f3dd7a45889ddbc81da9bb.woff2 +0 -0
  845. package/src/styles/fonts/noto-serif-jp/400/1cf737900dd49c2e88f1b3221a82a602.woff2 +0 -0
  846. package/src/styles/fonts/noto-serif-jp/400/233d3a685ee18276b319363474599d47.woff2 +0 -0
  847. package/src/styles/fonts/noto-serif-jp/400/284b53bbefb06924cf236d24c8ed5641.woff2 +0 -0
  848. package/src/styles/fonts/noto-serif-jp/400/2a56eaf19d1d38a6b57e2a388f733676.woff2 +0 -0
  849. package/src/styles/fonts/noto-serif-jp/400/2abfbab82b6a7c04426afc054d2464da.woff2 +0 -0
  850. package/src/styles/fonts/noto-serif-jp/400/2e6f4bb71ef6b38765d51acc5a79f638.woff2 +0 -0
  851. package/src/styles/fonts/noto-serif-jp/400/31194d303a67561926a544ed0e072aee.woff2 +0 -0
  852. package/src/styles/fonts/noto-serif-jp/400/3623d96698132c61e861f984ce11cc23.woff2 +0 -0
  853. package/src/styles/fonts/noto-serif-jp/400/39211b02f24c69cbd1b54f6d41b01933.woff2 +0 -0
  854. package/src/styles/fonts/noto-serif-jp/400/3e24063b19abd2b051af986a6870046d.woff2 +0 -0
  855. package/src/styles/fonts/noto-serif-jp/400/4410f876d27c9821839474b6b1059fd7.woff2 +0 -0
  856. package/src/styles/fonts/noto-serif-jp/400/479329a39a3eb6c0047e6b0981919855.woff2 +0 -0
  857. package/src/styles/fonts/noto-serif-jp/400/527ff336279465617aafbafe1a830632.woff2 +0 -0
  858. package/src/styles/fonts/noto-serif-jp/400/56b40518ea0608e62826bd44ee27f5f9.woff2 +0 -0
  859. package/src/styles/fonts/noto-serif-jp/400/5acc7f736217259db79a42bf44241c48.woff2 +0 -0
  860. package/src/styles/fonts/noto-serif-jp/400/5c05f8b75c9d7f25b3c04ca711cf43b3.woff2 +0 -0
  861. package/src/styles/fonts/noto-serif-jp/400/5e0124c7265f1b4cf0fc797b94efbebc.woff2 +0 -0
  862. package/src/styles/fonts/noto-serif-jp/400/615a7e0d63f257109d599b2a1977de68.woff2 +0 -0
  863. package/src/styles/fonts/noto-serif-jp/400/61a2c80d0c924d5a6187c02e8d1d1642.woff2 +0 -0
  864. package/src/styles/fonts/noto-serif-jp/400/62fc94f8d4c5a750b7f25e7387539910.woff2 +0 -0
  865. package/src/styles/fonts/noto-serif-jp/400/639c7c6b0b0c27c738702741cfa4b8c0.woff2 +0 -0
  866. package/src/styles/fonts/noto-serif-jp/400/68a3a4bf337f8a0722be76676e20b850.woff2 +0 -0
  867. package/src/styles/fonts/noto-serif-jp/400/6abdd163d2c4b85698db8aa1ce149361.woff2 +0 -0
  868. package/src/styles/fonts/noto-serif-jp/400/73b794d885b88f7befb7ea8ab1780a15.woff2 +0 -0
  869. package/src/styles/fonts/noto-serif-jp/400/743f290baf027d4626a86e22f3d44600.woff2 +0 -0
  870. package/src/styles/fonts/noto-serif-jp/400/757019c01c5e2c2b0f54293cea3b5636.woff2 +0 -0
  871. package/src/styles/fonts/noto-serif-jp/400/76f117a3baacda304a71965a17266a13.woff2 +0 -0
  872. package/src/styles/fonts/noto-serif-jp/400/77747f17625a259fb405b7bbdd84ac4b.woff2 +0 -0
  873. package/src/styles/fonts/noto-serif-jp/400/788498548ddfb710d6ef3c7bff79fa97.woff2 +0 -0
  874. package/src/styles/fonts/noto-serif-jp/400/78ea6c40923ce95367e3517dd1e5a849.woff2 +0 -0
  875. package/src/styles/fonts/noto-serif-jp/400/7f9a6c9286b68de9c72b0024f7beeb40.woff2 +0 -0
  876. package/src/styles/fonts/noto-serif-jp/400/823d1bb11097331238d103c7f72138dc.woff2 +0 -0
  877. package/src/styles/fonts/noto-serif-jp/400/888ba53510213d5d1f6a7deb60e569b6.woff2 +0 -0
  878. package/src/styles/fonts/noto-serif-jp/400/892aa49b2529c89bb4076d4aa51fe30f.woff2 +0 -0
  879. package/src/styles/fonts/noto-serif-jp/400/95ff41191c76ef893ac70a1043e95e44.woff2 +0 -0
  880. package/src/styles/fonts/noto-serif-jp/400/96c75862c8cec51a7c05ff025fea86cd.woff2 +0 -0
  881. package/src/styles/fonts/noto-serif-jp/400/9b21e8244f5930c48ad5073f83777b6c.woff2 +0 -0
  882. package/src/styles/fonts/noto-serif-jp/400/9fce02d1a09f464c36c9fcfb14a354c5.woff2 +0 -0
  883. package/src/styles/fonts/noto-serif-jp/400/a0a6755c7e3f9e4cf03387027dd9f16c.woff2 +0 -0
  884. package/src/styles/fonts/noto-serif-jp/400/a4475c442c6b259354c9eda62e64e7df.woff2 +0 -0
  885. package/src/styles/fonts/noto-serif-jp/400/a4a39b5f048671aa37c2b2a9581ab08a.woff2 +0 -0
  886. package/src/styles/fonts/noto-serif-jp/400/a534449d67561ac9b06489f64e57ad98.woff2 +0 -0
  887. package/src/styles/fonts/noto-serif-jp/400/a919a8c6fec6d7e8bb21177965f2e9d7.woff2 +0 -0
  888. package/src/styles/fonts/noto-serif-jp/400/ad67113f88b59582991cb0c5d33ea19f.woff2 +0 -0
  889. package/src/styles/fonts/noto-serif-jp/400/adb6e613fb99c6dd660b727101f554a8.woff2 +0 -0
  890. package/src/styles/fonts/noto-serif-jp/400/adc4a98a89870ef984ee8f4b57c8a3a5.woff2 +0 -0
  891. package/src/styles/fonts/noto-serif-jp/400/b12379ab782468d725519cd07a7d15bc.woff2 +0 -0
  892. package/src/styles/fonts/noto-serif-jp/400/b55486f8a459c838fe329d4e79a8c211.woff2 +0 -0
  893. package/src/styles/fonts/noto-serif-jp/400/bb0b15492b8cdbbec57c0bcfa0aa9241.woff2 +0 -0
  894. package/src/styles/fonts/noto-serif-jp/400/bedc74b423b7293b6ad0bdecc61c42cc.woff2 +0 -0
  895. package/src/styles/fonts/noto-serif-jp/400/bfb00d4a4c48661bd0be99f300a0faae.woff2 +0 -0
  896. package/src/styles/fonts/noto-serif-jp/400/c1b0df29ae41d764904df84e9ac83d1e.woff2 +0 -0
  897. package/src/styles/fonts/noto-serif-jp/400/c42c67070cfe99cf823df92d81c7fa6e.woff2 +0 -0
  898. package/src/styles/fonts/noto-serif-jp/400/c4d749e45ecd5a5aed5a0bb3ebfd355d.woff2 +0 -0
  899. package/src/styles/fonts/noto-serif-jp/400/c96d83978add28b356c22c4c84916733.woff2 +0 -0
  900. package/src/styles/fonts/noto-serif-jp/400/cb7ccd6494256f7a2977b7c2b0225592.woff2 +0 -0
  901. package/src/styles/fonts/noto-serif-jp/400/ce41d70ce6a069a498525c9e15c45cf2.woff2 +0 -0
  902. package/src/styles/fonts/noto-serif-jp/400/d509ee5c8241bc7c3de2039d75564fa5.woff2 +0 -0
  903. package/src/styles/fonts/noto-serif-jp/400/d675d717cd329bfd4c0524f76ae1579c.woff2 +0 -0
  904. package/src/styles/fonts/noto-serif-jp/400/dc8f6256445e68199540be9ade33529f.woff2 +0 -0
  905. package/src/styles/fonts/noto-serif-jp/400/e8c15be62faf978d208925e79ea6a10d.woff2 +0 -0
  906. package/src/styles/fonts/noto-serif-jp/400/e91c4d941ed9f5c2f3e27f205a3a225e.woff2 +0 -0
  907. package/src/styles/fonts/noto-serif-jp/400/e9c566be7a5d38a9085225f7372bc82b.woff2 +0 -0
  908. package/src/styles/fonts/noto-serif-jp/400/e9ebc567a711eeb29019ddae3e0ce7fe.woff2 +0 -0
  909. package/src/styles/fonts/noto-serif-jp/400/ecb8875a56c7b038b35432fda41ae128.woff2 +0 -0
  910. package/src/styles/fonts/noto-serif-jp/400/f1661731474b78bdf81114daf10b254f.woff2 +0 -0
  911. package/src/styles/fonts/noto-serif-jp/400/f2c58dee206ba9355046fc23d05491f7.woff2 +0 -0
  912. package/src/styles/fonts/noto-serif-jp/400/f50ac27ea4358d67fdda403c2bb52467.woff2 +0 -0
  913. package/src/styles/fonts/noto-serif-jp/400/f55334112f8e8be82d65db29887a663f.woff2 +0 -0
  914. package/src/styles/fonts/noto-serif-jp/400/f740e93f3c0277ecc616594103bca683.woff2 +0 -0
  915. package/src/styles/fonts/noto-serif-jp/400/f7633b5af033d76ff2fb3c3c266d77c5.woff2 +0 -0
  916. package/src/styles/fonts/noto-serif-jp/400/f7d8468cba2335a83ee414ea68291bab.woff2 +0 -0
  917. package/src/styles/fonts/noto-serif-jp/400/fc9ae5b600fb711f2d67e93ce768cba4.woff2 +0 -0
  918. package/src/styles/fonts/noto-serif-jp/400/fd1bceb55d3e0183ac2454b8532fec7d.woff2 +0 -0
  919. package/src/styles/fonts/noto-serif-jp/700/02611a045a7fe83a12014e3debc9f731.woff2 +0 -0
  920. package/src/styles/fonts/noto-serif-jp/700/0f5e1a18987dbc84ca05188c129e1936.woff2 +0 -0
  921. package/src/styles/fonts/noto-serif-jp/700/112743a4ab5fdd1498dfdf2b11336380.woff2 +0 -0
  922. package/src/styles/fonts/noto-serif-jp/700/1211f03d3ff5759a702631445793f60e.woff2 +0 -0
  923. package/src/styles/fonts/noto-serif-jp/700/147b24c2f08d03bbed30887d4cb3311c.woff2 +0 -0
  924. package/src/styles/fonts/noto-serif-jp/700/16663e567f81f4725a1522f37e18f71f.woff2 +0 -0
  925. package/src/styles/fonts/noto-serif-jp/700/1824321da801e6257b902f3d1d09054c.woff2 +0 -0
  926. package/src/styles/fonts/noto-serif-jp/700/1a3a92c7c060a71a6c35819b9ebcdbb9.woff2 +0 -0
  927. package/src/styles/fonts/noto-serif-jp/700/1fba7ec0e412e911bf31841de5a8a4e4.woff2 +0 -0
  928. package/src/styles/fonts/noto-serif-jp/700/28a97af9ab9d38983d20f39ff09840e1.woff2 +0 -0
  929. package/src/styles/fonts/noto-serif-jp/700/2bfaadaf3479c72286248e6de0be0ec9.woff2 +0 -0
  930. package/src/styles/fonts/noto-serif-jp/700/2c8c55e4cec85ce77e95cac9d330f5cf.woff2 +0 -0
  931. package/src/styles/fonts/noto-serif-jp/700/2ed9981d2e8983365bd051159b976b6d.woff2 +0 -0
  932. package/src/styles/fonts/noto-serif-jp/700/2f4c633e923ba30c6ba376367379fc91.woff2 +0 -0
  933. package/src/styles/fonts/noto-serif-jp/700/349965eee0a9b6c984a319ab96a4ece9.woff2 +0 -0
  934. package/src/styles/fonts/noto-serif-jp/700/36cda3eae13370b934bba4429fab9078.woff2 +0 -0
  935. package/src/styles/fonts/noto-serif-jp/700/3aa13f1843d7c8fa16109b6395a9a29d.woff2 +0 -0
  936. package/src/styles/fonts/noto-serif-jp/700/3e2c06bdd9dcab29aeaeb0cfb7fa608a.woff2 +0 -0
  937. package/src/styles/fonts/noto-serif-jp/700/424123f9371ba357087363263eeafcda.woff2 +0 -0
  938. package/src/styles/fonts/noto-serif-jp/700/43b3bbf43055c3e65db9cdf2c5b18c1c.woff2 +0 -0
  939. package/src/styles/fonts/noto-serif-jp/700/44704471b60c18b3ecec5300a88f1102.woff2 +0 -0
  940. package/src/styles/fonts/noto-serif-jp/700/46604090efbb99c2db1800928af0a239.woff2 +0 -0
  941. package/src/styles/fonts/noto-serif-jp/700/46998df85d31e629c0142f0556f5e7c5.woff2 +0 -0
  942. package/src/styles/fonts/noto-serif-jp/700/49902f1c41b281f8eb3771abdd4dccb8.woff2 +0 -0
  943. package/src/styles/fonts/noto-serif-jp/700/4db4f31a16965baa42cb7dad667a8f04.woff2 +0 -0
  944. package/src/styles/fonts/noto-serif-jp/700/572b9e28f1e6d89b765a16d809db84a1.woff2 +0 -0
  945. package/src/styles/fonts/noto-serif-jp/700/5921cef36750ff6092d94b83a802823b.woff2 +0 -0
  946. package/src/styles/fonts/noto-serif-jp/700/59e95d8b5332dcdae894a19946ab767d.woff2 +0 -0
  947. package/src/styles/fonts/noto-serif-jp/700/5ec349ff62b9ee5fe0c6dae867704dc4.woff2 +0 -0
  948. package/src/styles/fonts/noto-serif-jp/700/601f812e8b1eafecd5ba585a6a6d7962.woff2 +0 -0
  949. package/src/styles/fonts/noto-serif-jp/700/6025ddaf99d86cc8bfd781006b19fbd6.woff2 +0 -0
  950. package/src/styles/fonts/noto-serif-jp/700/60f6e28b3f0400b0e8fe32c3c7116102.woff2 +0 -0
  951. package/src/styles/fonts/noto-serif-jp/700/64a404d675f1d726f0891b7a80794595.woff2 +0 -0
  952. package/src/styles/fonts/noto-serif-jp/700/7158022889c6c177062ac85036e7af10.woff2 +0 -0
  953. package/src/styles/fonts/noto-serif-jp/700/7e38ca789a9e76ac91d9256374e154f0.woff2 +0 -0
  954. package/src/styles/fonts/noto-serif-jp/700/815a0b797465190f60d8b1a04656c42e.woff2 +0 -0
  955. package/src/styles/fonts/noto-serif-jp/700/8726558cf297cbda831cc19514897205.woff2 +0 -0
  956. package/src/styles/fonts/noto-serif-jp/700/8855472f3c02f6c7ebb3216617ebe4af.woff2 +0 -0
  957. package/src/styles/fonts/noto-serif-jp/700/8e231d707f0c4f8e3cde90a6b52a79aa.woff2 +0 -0
  958. package/src/styles/fonts/noto-serif-jp/700/9064c12fd72c7aba235d8c3881755b91.woff2 +0 -0
  959. package/src/styles/fonts/noto-serif-jp/700/911b9e53e9814de2998c60bf3115f560.woff2 +0 -0
  960. package/src/styles/fonts/noto-serif-jp/700/92fdc376bce277874e75db666f175b44.woff2 +0 -0
  961. package/src/styles/fonts/noto-serif-jp/700/930a23430f0eb64480d7fe5f82834e21.woff2 +0 -0
  962. package/src/styles/fonts/noto-serif-jp/700/93bed0e5f2dd5a21cf73304fcfbc149d.woff2 +0 -0
  963. package/src/styles/fonts/noto-serif-jp/700/93f3ea6918533d96d9c252378b9a4af0.woff2 +0 -0
  964. package/src/styles/fonts/noto-serif-jp/700/95a0951d2a2722ff773a1a45e8c474d6.woff2 +0 -0
  965. package/src/styles/fonts/noto-serif-jp/700/982cd1765ca6bbb3e6547e47834d5148.woff2 +0 -0
  966. package/src/styles/fonts/noto-serif-jp/700/9b0c3caac458c7bc9c9133e40405ddea.woff2 +0 -0
  967. package/src/styles/fonts/noto-serif-jp/700/9f3bdab4025dc7c5ba1a5871e62e8918.woff2 +0 -0
  968. package/src/styles/fonts/noto-serif-jp/700/a00e94d4f04df6aa659db9c4954c7efe.woff2 +0 -0
  969. package/src/styles/fonts/noto-serif-jp/700/a2b0597837e382aca19919c4b74e58c8.woff2 +0 -0
  970. package/src/styles/fonts/noto-serif-jp/700/a373e85c96aa0dc303092429fb837e51.woff2 +0 -0
  971. package/src/styles/fonts/noto-serif-jp/700/a6e044424780a57610833cc856c15bf5.woff2 +0 -0
  972. package/src/styles/fonts/noto-serif-jp/700/a7c58070d68dc1724e9d4e781afb78db.woff2 +0 -0
  973. package/src/styles/fonts/noto-serif-jp/700/accc43762ad05edfbff66ba1380d192a.woff2 +0 -0
  974. package/src/styles/fonts/noto-serif-jp/700/ad47bcd6d4663026d648c132d969318d.woff2 +0 -0
  975. package/src/styles/fonts/noto-serif-jp/700/af57a2e8c72f9ba0efb1af771d32c124.woff2 +0 -0
  976. package/src/styles/fonts/noto-serif-jp/700/b0ae5f374e43dac992a4a5d334cebc0b.woff2 +0 -0
  977. package/src/styles/fonts/noto-serif-jp/700/b91234c10fd8b8c8abc88e03afe66a1f.woff2 +0 -0
  978. package/src/styles/fonts/noto-serif-jp/700/b9317198f118a1dfd8ddf2b82ec028f3.woff2 +0 -0
  979. package/src/styles/fonts/noto-serif-jp/700/ba825ae79b1a6f7e0cce5215fcb5c96f.woff2 +0 -0
  980. package/src/styles/fonts/noto-serif-jp/700/bc6183ac08f0fac78c46f80c10cf7c92.woff2 +0 -0
  981. package/src/styles/fonts/noto-serif-jp/700/bc8ccea5abf6598cf3cfa97eb59804bb.woff2 +0 -0
  982. package/src/styles/fonts/noto-serif-jp/700/bc95a792cbca6639214c9b0da13392ff.woff2 +0 -0
  983. package/src/styles/fonts/noto-serif-jp/700/bcfa62f35731856246c146d3a6932bf3.woff2 +0 -0
  984. package/src/styles/fonts/noto-serif-jp/700/c063897793f593eb26d6ff7b7baaba18.woff2 +0 -0
  985. package/src/styles/fonts/noto-serif-jp/700/c6c2971ad1f3221f6cf84028aa0f477e.woff2 +0 -0
  986. package/src/styles/fonts/noto-serif-jp/700/c97f41eef722121d86f55d553c056a39.woff2 +0 -0
  987. package/src/styles/fonts/noto-serif-jp/700/ca62704509932d3232d62918de97af3f.woff2 +0 -0
  988. package/src/styles/fonts/noto-serif-jp/700/d1f064825fa5784b5c930652bd831cce.woff2 +0 -0
  989. package/src/styles/fonts/noto-serif-jp/700/d2faabcedd19f016e7b21bce073c0ec8.woff2 +0 -0
  990. package/src/styles/fonts/noto-serif-jp/700/d320171e57480510f87dbbc7d5264b0a.woff2 +0 -0
  991. package/src/styles/fonts/noto-serif-jp/700/d3a72a99d365dddfbca8d017a8011368.woff2 +0 -0
  992. package/src/styles/fonts/noto-serif-jp/700/d42aafa0f246ad3b4c16fe96d3a3a432.woff2 +0 -0
  993. package/src/styles/fonts/noto-serif-jp/700/d4aaf23c13ae808a4bed617afd13aa07.woff2 +0 -0
  994. package/src/styles/fonts/noto-serif-jp/700/d6bb686bddfbe8f38a36a68e609a8667.woff2 +0 -0
  995. package/src/styles/fonts/noto-serif-jp/700/d9020ff69a83b2a6ee1f42ae480f7db0.woff2 +0 -0
  996. package/src/styles/fonts/noto-serif-jp/700/da90a9012ab2d98f759e3fa0820ef502.woff2 +0 -0
  997. package/src/styles/fonts/noto-serif-jp/700/df10d94bea357a43313e20da5d84bd30.woff2 +0 -0
  998. package/src/styles/fonts/noto-serif-jp/700/e34b2b141e472dc776c86fdf8eea23b0.woff2 +0 -0
  999. package/src/styles/fonts/noto-serif-jp/700/e444fd88f1390636e603d0d681538ac8.woff2 +0 -0
  1000. package/src/styles/fonts/noto-serif-jp/700/e79898628283edc27180fc39d0d769c1.woff2 +0 -0
  1001. package/src/styles/fonts/noto-serif-jp/700/eaf332445a40942928e5f5750c1c3116.woff2 +0 -0
  1002. package/src/styles/fonts/noto-serif-jp/700/f91cd722855f4269256eae1187df64ec.woff2 +0 -0
  1003. package/src/styles/fonts/noto-serif-jp/700/fc895f5ce66b656f4a933097bf2a8775.woff2 +0 -0
  1004. package/src/styles/fonts/noto-serif-jp/700/fca6720fd14c467d29a90f18ef3859b9.woff2 +0 -0
  1005. package/src/styles/fonts/noto-serif-jp/700/fd1bb507bcbf04856eeb7f7fd47ea579.woff2 +0 -0
  1006. package/src/styles/fonts/noto-serif-jp/noto-serif-jp.css +0 -3349
  1007. package/src/styles/fonts/noto-serif-kr/400/033466ef683afe931f7f520cfb42d928.woff2 +0 -0
  1008. package/src/styles/fonts/noto-serif-kr/400/05da12edb9d52210581dc6ec4541031f.woff2 +0 -0
  1009. package/src/styles/fonts/noto-serif-kr/400/0968e4861204b51f62a2f8e9f15dd5e0.woff2 +0 -0
  1010. package/src/styles/fonts/noto-serif-kr/400/0d5dec931dc885f07fe5cd5af8bed675.woff2 +0 -0
  1011. package/src/styles/fonts/noto-serif-kr/400/1076f0f6f66d28d7a2f16427faad4413.woff2 +0 -0
  1012. package/src/styles/fonts/noto-serif-kr/400/12ef1ba76bd20b004b865266a1aa70b3.woff2 +0 -0
  1013. package/src/styles/fonts/noto-serif-kr/400/152395634a207579552f8cb54db88599.woff2 +0 -0
  1014. package/src/styles/fonts/noto-serif-kr/400/1a08931435f885e707edb85978ea3bb6.woff2 +0 -0
  1015. package/src/styles/fonts/noto-serif-kr/400/31a197213ae61d7043c81013f52d10d6.woff2 +0 -0
  1016. package/src/styles/fonts/noto-serif-kr/400/37dbd564820cce2f7b3331e442da0df3.woff2 +0 -0
  1017. package/src/styles/fonts/noto-serif-kr/400/37dc8505b20b37a2477a9121b16d44a7.woff2 +0 -0
  1018. package/src/styles/fonts/noto-serif-kr/400/3ac0a07878cacdc98bb889f40f5970d3.woff2 +0 -0
  1019. package/src/styles/fonts/noto-serif-kr/400/491bbba374093fff045f55803a22bfef.woff2 +0 -0
  1020. package/src/styles/fonts/noto-serif-kr/400/4d38e56738156625329d93bd5c8cc74a.woff2 +0 -0
  1021. package/src/styles/fonts/noto-serif-kr/400/57e9a86651366c1ba299e47aa7e358c2.woff2 +0 -0
  1022. package/src/styles/fonts/noto-serif-kr/400/57f89adeae55aa7fe2add3fc1801ce03.woff2 +0 -0
  1023. package/src/styles/fonts/noto-serif-kr/400/5df9ce98c75f8c50fb4fff7f01a23925.woff2 +0 -0
  1024. package/src/styles/fonts/noto-serif-kr/400/60020a830d809c26970cf8e48ba1eeda.woff2 +0 -0
  1025. package/src/styles/fonts/noto-serif-kr/400/60bcfa3ea7446eb42394aab02d28be40.woff2 +0 -0
  1026. package/src/styles/fonts/noto-serif-kr/400/63fafcb069520613d0ea35ad3e6b1e42.woff2 +0 -0
  1027. package/src/styles/fonts/noto-serif-kr/400/65a60d87c64228d258a123cbe85f5f31.woff2 +0 -0
  1028. package/src/styles/fonts/noto-serif-kr/400/6968e889e18891d912809fe484c2e745.woff2 +0 -0
  1029. package/src/styles/fonts/noto-serif-kr/400/70714891ad3fbfc3d5f10a8669dacc5a.woff2 +0 -0
  1030. package/src/styles/fonts/noto-serif-kr/400/761d84afca8d7f34eebefe538adba827.woff2 +0 -0
  1031. package/src/styles/fonts/noto-serif-kr/400/76e07530323418ec723c5d7634c9bcca.woff2 +0 -0
  1032. package/src/styles/fonts/noto-serif-kr/400/773819b7b9b8fd404a929867c0fd677e.woff2 +0 -0
  1033. package/src/styles/fonts/noto-serif-kr/400/7817dd16805145d8538ad57590f69f5a.woff2 +0 -0
  1034. package/src/styles/fonts/noto-serif-kr/400/7b59f0ec7792b18458dc5a361e37884c.woff2 +0 -0
  1035. package/src/styles/fonts/noto-serif-kr/400/7c3945788a689a69356c1a622d69d48b.woff2 +0 -0
  1036. package/src/styles/fonts/noto-serif-kr/400/835b6505bb9eea9678925a1fa885353d.woff2 +0 -0
  1037. package/src/styles/fonts/noto-serif-kr/400/8b5c9ef81159f31d2ab35f45ca4373e0.woff2 +0 -0
  1038. package/src/styles/fonts/noto-serif-kr/400/8b91c7c2ed390f1278b9befa3aa87233.woff2 +0 -0
  1039. package/src/styles/fonts/noto-serif-kr/400/8fb45117a62d92dce44a80f0b729ead5.woff2 +0 -0
  1040. package/src/styles/fonts/noto-serif-kr/400/90b7848e9b1623b77bdcf155e90b839c.woff2 +0 -0
  1041. package/src/styles/fonts/noto-serif-kr/400/985d4d41afa0934a4eb2de35473fb9a2.woff2 +0 -0
  1042. package/src/styles/fonts/noto-serif-kr/400/9bb38fd05201de666b88b82d56a386f7.woff2 +0 -0
  1043. package/src/styles/fonts/noto-serif-kr/400/9eff2ab2a9d2ced47ab761bf6fdb11ec.woff2 +0 -0
  1044. package/src/styles/fonts/noto-serif-kr/400/9f1963fe8d4d6878d717d872a8f3fdb5.woff2 +0 -0
  1045. package/src/styles/fonts/noto-serif-kr/400/a0d00fe4816c95a8c7dffd445ef00b03.woff2 +0 -0
  1046. package/src/styles/fonts/noto-serif-kr/400/a0f199077fa1a33bc2a1e01c64de7fe6.woff2 +0 -0
  1047. package/src/styles/fonts/noto-serif-kr/400/a7c35e42a659347e490c3cb7983b2e7f.woff2 +0 -0
  1048. package/src/styles/fonts/noto-serif-kr/400/aa662092cf249707123ca4d575e2764b.woff2 +0 -0
  1049. package/src/styles/fonts/noto-serif-kr/400/aae1eda193285ab817a2d1b408440326.woff2 +0 -0
  1050. package/src/styles/fonts/noto-serif-kr/400/b0cb664cb2e1371efda8943c0b7dcd1c.woff2 +0 -0
  1051. package/src/styles/fonts/noto-serif-kr/400/b0d1cdced482352cf0d3ae58638aacb9.woff2 +0 -0
  1052. package/src/styles/fonts/noto-serif-kr/400/b320f5d185b2cff933ac549c184031c5.woff2 +0 -0
  1053. package/src/styles/fonts/noto-serif-kr/400/ba9c59d7dfa4494db1bb764ada81467d.woff2 +0 -0
  1054. package/src/styles/fonts/noto-serif-kr/400/bab547459d514f46206e340c4bb2dc88.woff2 +0 -0
  1055. package/src/styles/fonts/noto-serif-kr/400/bcc39eda837bb7a7a3d37c8c60fffb81.woff2 +0 -0
  1056. package/src/styles/fonts/noto-serif-kr/400/bd73264d7f98776708d5d6f3c9b78fcc.woff2 +0 -0
  1057. package/src/styles/fonts/noto-serif-kr/400/bed610b217d500f5975cfc9fe6157570.woff2 +0 -0
  1058. package/src/styles/fonts/noto-serif-kr/400/bf8901f8f11d4f433ea17dabc9370ea6.woff2 +0 -0
  1059. package/src/styles/fonts/noto-serif-kr/400/c4143bb9f2fe77b6ccf20088a8904650.woff2 +0 -0
  1060. package/src/styles/fonts/noto-serif-kr/400/c7ff3f6bbdcd5f604b7343602ab904df.woff2 +0 -0
  1061. package/src/styles/fonts/noto-serif-kr/400/c945c62368357d05a53206620460fb30.woff2 +0 -0
  1062. package/src/styles/fonts/noto-serif-kr/400/ce022e18a1377ac509443c3c3790b431.woff2 +0 -0
  1063. package/src/styles/fonts/noto-serif-kr/400/cf9cffe56636322f62b40d61130fbc5e.woff2 +0 -0
  1064. package/src/styles/fonts/noto-serif-kr/400/d20d8944bc0b85f5b2aae4b24f343516.woff2 +0 -0
  1065. package/src/styles/fonts/noto-serif-kr/400/d36644d6502527e1fff205d0c7eca434.woff2 +0 -0
  1066. package/src/styles/fonts/noto-serif-kr/400/d40ab99c7a38026f411c8f112f742b48.woff2 +0 -0
  1067. package/src/styles/fonts/noto-serif-kr/400/dc6e234ded795e91f76d6647f628fbf0.woff2 +0 -0
  1068. package/src/styles/fonts/noto-serif-kr/400/dd0cfdfdac0866e66d587e2b5a9e9961.woff2 +0 -0
  1069. package/src/styles/fonts/noto-serif-kr/400/de304c8a02e45ded4f8dcc479d167198.woff2 +0 -0
  1070. package/src/styles/fonts/noto-serif-kr/400/e8c364c16daa04835bf32d293d2598db.woff2 +0 -0
  1071. package/src/styles/fonts/noto-serif-kr/400/ec86e23683052da5cfdc3b77641bd15a.woff2 +0 -0
  1072. package/src/styles/fonts/noto-serif-kr/400/eda1b0cb6d1719dd9bedcf3216a9e8de.woff2 +0 -0
  1073. package/src/styles/fonts/noto-serif-kr/400/ee6fce20b420a480714607c66d7f97e5.woff2 +0 -0
  1074. package/src/styles/fonts/noto-serif-kr/400/eee3836d6ac17ebb2c450bbcbc9db121.woff2 +0 -0
  1075. package/src/styles/fonts/noto-serif-kr/400/f5738255e92d8dd34a46d1bcdf4c4074.woff2 +0 -0
  1076. package/src/styles/fonts/noto-serif-kr/400/fa6e58ce4b52695e7ae19bbea6336ec8.woff2 +0 -0
  1077. package/src/styles/fonts/noto-serif-kr/400/fd2069e6e8588c70b4f11364093b81f2.woff2 +0 -0
  1078. package/src/styles/fonts/noto-serif-kr/700/04b8bde59cff68eeee74fb1914eb09c7.woff2 +0 -0
  1079. package/src/styles/fonts/noto-serif-kr/700/05ac821472e235943ed1435e4bb8ecad.woff2 +0 -0
  1080. package/src/styles/fonts/noto-serif-kr/700/074c1f8483d5a4d8c45c8c5f3e4cbb32.woff2 +0 -0
  1081. package/src/styles/fonts/noto-serif-kr/700/1380210a722ac9aeef54005ad7b015c9.woff2 +0 -0
  1082. package/src/styles/fonts/noto-serif-kr/700/17c7f5d0a45e92ede0e5dec3a2c77efa.woff2 +0 -0
  1083. package/src/styles/fonts/noto-serif-kr/700/1be602ad456b0d75902d352116cb35fd.woff2 +0 -0
  1084. package/src/styles/fonts/noto-serif-kr/700/2612c60f9dc5459ac42763591240a1d6.woff2 +0 -0
  1085. package/src/styles/fonts/noto-serif-kr/700/2ab8cf1f23a5ac7939a7876054e711a7.woff2 +0 -0
  1086. package/src/styles/fonts/noto-serif-kr/700/34e6750e00c3a911ef87dc66b336594d.woff2 +0 -0
  1087. package/src/styles/fonts/noto-serif-kr/700/36f3df4730cfca4fc77fe52b52e6a126.woff2 +0 -0
  1088. package/src/styles/fonts/noto-serif-kr/700/37887deb7a9c466cf2af6ee7ff372ea6.woff2 +0 -0
  1089. package/src/styles/fonts/noto-serif-kr/700/3aba89c4d4281553078de4622b498cbb.woff2 +0 -0
  1090. package/src/styles/fonts/noto-serif-kr/700/3d88558097559d775231194d43745ba7.woff2 +0 -0
  1091. package/src/styles/fonts/noto-serif-kr/700/3dc3e8c35524cad2d1236f3393104ccf.woff2 +0 -0
  1092. package/src/styles/fonts/noto-serif-kr/700/45140742dfa8686b58db2899ce89f89a.woff2 +0 -0
  1093. package/src/styles/fonts/noto-serif-kr/700/469d2754e315e77270c12fa0ab28026c.woff2 +0 -0
  1094. package/src/styles/fonts/noto-serif-kr/700/4c0760284569b87d8f2290c324953973.woff2 +0 -0
  1095. package/src/styles/fonts/noto-serif-kr/700/4cba92c942694bdc479bc54101bb1aa4.woff2 +0 -0
  1096. package/src/styles/fonts/noto-serif-kr/700/4e7d263c30bb48604069a3b4404d4eeb.woff2 +0 -0
  1097. package/src/styles/fonts/noto-serif-kr/700/5279c7e465d9871edf51fd02e691eee7.woff2 +0 -0
  1098. package/src/styles/fonts/noto-serif-kr/700/54bfdb6f21f9d6191e5100580239e14f.woff2 +0 -0
  1099. package/src/styles/fonts/noto-serif-kr/700/56be5e32fd01668fe5ba814d94905839.woff2 +0 -0
  1100. package/src/styles/fonts/noto-serif-kr/700/615b38e0b5bb3ea68426f44f47706e6f.woff2 +0 -0
  1101. package/src/styles/fonts/noto-serif-kr/700/65e9c4585d71bf48a5c62f367010da16.woff2 +0 -0
  1102. package/src/styles/fonts/noto-serif-kr/700/6b75213eb0be40ce84241eb2bb438a2e.woff2 +0 -0
  1103. package/src/styles/fonts/noto-serif-kr/700/7520ca6ca8c60eb1e62d50e71c8d30f1.woff2 +0 -0
  1104. package/src/styles/fonts/noto-serif-kr/700/759a647b77791b1e98f99bc0ab5317a7.woff2 +0 -0
  1105. package/src/styles/fonts/noto-serif-kr/700/76e51630143b95b6322ef93ad330da7a.woff2 +0 -0
  1106. package/src/styles/fonts/noto-serif-kr/700/79aa7c8c842c4a27cf57c0a3a1ffca5a.woff2 +0 -0
  1107. package/src/styles/fonts/noto-serif-kr/700/7cc72fd2c9105560422b6a67c6162945.woff2 +0 -0
  1108. package/src/styles/fonts/noto-serif-kr/700/7d0ea0690e432462f4d05a23d720ec19.woff2 +0 -0
  1109. package/src/styles/fonts/noto-serif-kr/700/7dffa5c1bec57e0903fd62357401ff1a.woff2 +0 -0
  1110. package/src/styles/fonts/noto-serif-kr/700/82f6ccc063960eed1cdfd1d61ada8862.woff2 +0 -0
  1111. package/src/styles/fonts/noto-serif-kr/700/845b4b67564d62cf5cad242f7ac08ea5.woff2 +0 -0
  1112. package/src/styles/fonts/noto-serif-kr/700/84c8e7bc0931008ed91f44ed12dfea94.woff2 +0 -0
  1113. package/src/styles/fonts/noto-serif-kr/700/887a11290ba78b1e66c6d2f67043005e.woff2 +0 -0
  1114. package/src/styles/fonts/noto-serif-kr/700/88db1d042074fb6e66821ffc10941930.woff2 +0 -0
  1115. package/src/styles/fonts/noto-serif-kr/700/8dc18c0cebe6aa4bf4c45dbb831048ab.woff2 +0 -0
  1116. package/src/styles/fonts/noto-serif-kr/700/919a879bd2d580d8491a31a449390689.woff2 +0 -0
  1117. package/src/styles/fonts/noto-serif-kr/700/91da6cb174bebfb96976e2f1316be2fe.woff2 +0 -0
  1118. package/src/styles/fonts/noto-serif-kr/700/934dfdbed2bb2c4b6129199d699a34fa.woff2 +0 -0
  1119. package/src/styles/fonts/noto-serif-kr/700/97d7a17234f2b5030ae9697ae00aded2.woff2 +0 -0
  1120. package/src/styles/fonts/noto-serif-kr/700/995c4fda62d25c3b79dd5987737df6ae.woff2 +0 -0
  1121. package/src/styles/fonts/noto-serif-kr/700/9d0afa53dc2f92ba42024f55f11f6779.woff2 +0 -0
  1122. package/src/styles/fonts/noto-serif-kr/700/9e13a47242926f1cd7d68c08d9ef8889.woff2 +0 -0
  1123. package/src/styles/fonts/noto-serif-kr/700/a379ada89abd750c587ded29f77e731c.woff2 +0 -0
  1124. package/src/styles/fonts/noto-serif-kr/700/a48be56ce5d3a99dc8f8331398004412.woff2 +0 -0
  1125. package/src/styles/fonts/noto-serif-kr/700/a806759e72987951d6d08b7cbdf36a1b.woff2 +0 -0
  1126. package/src/styles/fonts/noto-serif-kr/700/a88481ec8bc7be11cb66e46781a79bb9.woff2 +0 -0
  1127. package/src/styles/fonts/noto-serif-kr/700/a9a016d4a93409f65278327e8a8bb38d.woff2 +0 -0
  1128. package/src/styles/fonts/noto-serif-kr/700/ab92d41062a7644faa45f50bf384454a.woff2 +0 -0
  1129. package/src/styles/fonts/noto-serif-kr/700/b326a8a9c33b554db570da94f60bc380.woff2 +0 -0
  1130. package/src/styles/fonts/noto-serif-kr/700/b6117ff2993b11bb1fdc7ea3588a010c.woff2 +0 -0
  1131. package/src/styles/fonts/noto-serif-kr/700/b61982951bd51b724143c30dfaaa9fe9.woff2 +0 -0
  1132. package/src/styles/fonts/noto-serif-kr/700/c0098958e20db68cab90097b5e62516f.woff2 +0 -0
  1133. package/src/styles/fonts/noto-serif-kr/700/c4bfaa5e50798246e3770718b7a7c84a.woff2 +0 -0
  1134. package/src/styles/fonts/noto-serif-kr/700/c84598999133455503042e06f4ab79cb.woff2 +0 -0
  1135. package/src/styles/fonts/noto-serif-kr/700/ca9a533988d7019597a60d4e17127e0c.woff2 +0 -0
  1136. package/src/styles/fonts/noto-serif-kr/700/cf2b28f90f47276f7e2688a65e88a101.woff2 +0 -0
  1137. package/src/styles/fonts/noto-serif-kr/700/d689b1861d7e4377dd72ad3013482612.woff2 +0 -0
  1138. package/src/styles/fonts/noto-serif-kr/700/d9047070d72a816b3dba9d40c2d85e69.woff2 +0 -0
  1139. package/src/styles/fonts/noto-serif-kr/700/da04549f3f4ed28076b01b8cd710d313.woff2 +0 -0
  1140. package/src/styles/fonts/noto-serif-kr/700/da7af303f8c645f9a9dbae0e6e32dd35.woff2 +0 -0
  1141. package/src/styles/fonts/noto-serif-kr/700/df9568257eb29b156449fdd4bec5ec76.woff2 +0 -0
  1142. package/src/styles/fonts/noto-serif-kr/700/e067cd0ed76c90cd0a93c9339253f20b.woff2 +0 -0
  1143. package/src/styles/fonts/noto-serif-kr/700/e08b07772e7bed3cec2832d43f7fd339.woff2 +0 -0
  1144. package/src/styles/fonts/noto-serif-kr/700/e12150d5a39b30be8f567968c7a527b0.woff2 +0 -0
  1145. package/src/styles/fonts/noto-serif-kr/700/e53fcb2381eee345db4f6f973dd95a3e.woff2 +0 -0
  1146. package/src/styles/fonts/noto-serif-kr/700/e5bd313ef81f687d398aacb11cec3069.woff2 +0 -0
  1147. package/src/styles/fonts/noto-serif-kr/700/eb5afb3d952b8593782caec6026514b6.woff2 +0 -0
  1148. package/src/styles/fonts/noto-serif-kr/700/edd6a4f608d04fc0351d7688cfc321e4.woff2 +0 -0
  1149. package/src/styles/fonts/noto-serif-kr/700/f9695c6c4df2bf6bc03045ff79d4f01f.woff2 +0 -0
  1150. package/src/styles/fonts/noto-serif-kr/700/fada6eaa68ff8816afe43d2a36c5423e.woff2 +0 -0
  1151. package/src/styles/fonts/noto-serif-kr/700/fbcc4bf5367218951172bdee6f77d7a6.woff2 +0 -0
  1152. package/src/styles/fonts/noto-serif-kr/noto-serif-kr.css +0 -2601
  1153. package/src/styles/fonts/noto-serif-sc/400/02629e5d0a9860b7fe32ec1f0563213a.woff2 +0 -0
  1154. package/src/styles/fonts/noto-serif-sc/400/031089da45fbfb7dc18ac827bef4c56e.woff2 +0 -0
  1155. package/src/styles/fonts/noto-serif-sc/400/03ac785139320b7b13bac9c150bf72bf.woff2 +0 -0
  1156. package/src/styles/fonts/noto-serif-sc/400/0b1f83a3c7e715560a55ad9eb0fb1c94.woff2 +0 -0
  1157. package/src/styles/fonts/noto-serif-sc/400/14b040a2dda256936bc7b3470e548394.woff2 +0 -0
  1158. package/src/styles/fonts/noto-serif-sc/400/189f272ea2600c74d576b7b15c014922.woff2 +0 -0
  1159. package/src/styles/fonts/noto-serif-sc/400/1fbccc182322b513f57cd156a9a491b0.woff2 +0 -0
  1160. package/src/styles/fonts/noto-serif-sc/400/21e0a71d86be7b8a9e812e7af09dd061.woff2 +0 -0
  1161. package/src/styles/fonts/noto-serif-sc/400/265e048cc9f2f8a711ba585a534d5351.woff2 +0 -0
  1162. package/src/styles/fonts/noto-serif-sc/400/2ae2ca951489c9d50cde5b36a2a5515b.woff2 +0 -0
  1163. package/src/styles/fonts/noto-serif-sc/400/2ba802b14f21a58fc61606c88fa93373.woff2 +0 -0
  1164. package/src/styles/fonts/noto-serif-sc/400/2deb444546774c3a3ab38c75eb69cdfb.woff2 +0 -0
  1165. package/src/styles/fonts/noto-serif-sc/400/2fbccf9a3853eb59db1a825e044515fd.woff2 +0 -0
  1166. package/src/styles/fonts/noto-serif-sc/400/2ff009fa8701505d7f3dc6c83763f019.woff2 +0 -0
  1167. package/src/styles/fonts/noto-serif-sc/400/31424fe5d54692e7c8b38021ccb8597c.woff2 +0 -0
  1168. package/src/styles/fonts/noto-serif-sc/400/360c190344c26278bbc50e2f4d6a2b3f.woff2 +0 -0
  1169. package/src/styles/fonts/noto-serif-sc/400/39b0bbc910af9d2d6dcd8bd4abd6387d.woff2 +0 -0
  1170. package/src/styles/fonts/noto-serif-sc/400/3adc8f6350cf5067bcb6dc5e44c45d41.woff2 +0 -0
  1171. package/src/styles/fonts/noto-serif-sc/400/3bed5bd57de8f738e53cddaea88983d9.woff2 +0 -0
  1172. package/src/styles/fonts/noto-serif-sc/400/3c201fd8d1bb20abe7d06b940e83a4d9.woff2 +0 -0
  1173. package/src/styles/fonts/noto-serif-sc/400/3d385ea0880df7204258e290648ec012.woff2 +0 -0
  1174. package/src/styles/fonts/noto-serif-sc/400/3dc1a4f0d7af59e16b5162a2b077a442.woff2 +0 -0
  1175. package/src/styles/fonts/noto-serif-sc/400/3dc68e473fe23bd076dd46785cd23583.woff2 +0 -0
  1176. package/src/styles/fonts/noto-serif-sc/400/435b7dca567809813fcb395a27ed83a0.woff2 +0 -0
  1177. package/src/styles/fonts/noto-serif-sc/400/43693195e775d515689fa035394067fd.woff2 +0 -0
  1178. package/src/styles/fonts/noto-serif-sc/400/43fb49e5b79ee7e553869d84e6e08b1e.woff2 +0 -0
  1179. package/src/styles/fonts/noto-serif-sc/400/44dcbbc3cc8f22e613b342d691511ab6.woff2 +0 -0
  1180. package/src/styles/fonts/noto-serif-sc/400/474fac21b12b7efd71f7c321578878b0.woff2 +0 -0
  1181. package/src/styles/fonts/noto-serif-sc/400/4a23fe6e82fd496b5eb20401b6164efe.woff2 +0 -0
  1182. package/src/styles/fonts/noto-serif-sc/400/4bc743968cf1c3ce5711de67ef1ccc4d.woff2 +0 -0
  1183. package/src/styles/fonts/noto-serif-sc/400/4cf0f292f3358bd2f73b1cf4ec1476f3.woff2 +0 -0
  1184. package/src/styles/fonts/noto-serif-sc/400/501f66f24bce8234441954de1b568403.woff2 +0 -0
  1185. package/src/styles/fonts/noto-serif-sc/400/53a88404451448cd2e620a0ca0e45a20.woff2 +0 -0
  1186. package/src/styles/fonts/noto-serif-sc/400/557cd00c5d6827e13d72a0c71b23587b.woff2 +0 -0
  1187. package/src/styles/fonts/noto-serif-sc/400/563fa31542d553f25abab65cf7f81e1d.woff2 +0 -0
  1188. package/src/styles/fonts/noto-serif-sc/400/56e1c4734bbbb38af2fbc262bf6e98f2.woff2 +0 -0
  1189. package/src/styles/fonts/noto-serif-sc/400/5947f5da5da9a352a2b534ee64bfc29a.woff2 +0 -0
  1190. package/src/styles/fonts/noto-serif-sc/400/5a10741e41259e235841440394c0763d.woff2 +0 -0
  1191. package/src/styles/fonts/noto-serif-sc/400/60d8b0805a0a8c54a6cca216004beff5.woff2 +0 -0
  1192. package/src/styles/fonts/noto-serif-sc/400/61bf4287453da4025d03fa6b2dba66ca.woff2 +0 -0
  1193. package/src/styles/fonts/noto-serif-sc/400/638369541268ed5a10af97ad77498c73.woff2 +0 -0
  1194. package/src/styles/fonts/noto-serif-sc/400/687d0f0f90a9b23e40102e16ad8e9836.woff2 +0 -0
  1195. package/src/styles/fonts/noto-serif-sc/400/6e2164fad867d166de2e5b274f04a563.woff2 +0 -0
  1196. package/src/styles/fonts/noto-serif-sc/400/6eefc9d430171c1e1e4034ecadee31c8.woff2 +0 -0
  1197. package/src/styles/fonts/noto-serif-sc/400/71eafb8fbe3a734283517e230ad8b6db.woff2 +0 -0
  1198. package/src/styles/fonts/noto-serif-sc/400/751f54dbb115140d5b645a6ba4aff5d3.woff2 +0 -0
  1199. package/src/styles/fonts/noto-serif-sc/400/7609e7e74dd4d916a7abc7ecc7d95f7e.woff2 +0 -0
  1200. package/src/styles/fonts/noto-serif-sc/400/76b9d6fe838ae4151d95ce7200aa2bf6.woff2 +0 -0
  1201. package/src/styles/fonts/noto-serif-sc/400/78ce29fed872e44fc9014d94875d2aac.woff2 +0 -0
  1202. package/src/styles/fonts/noto-serif-sc/400/79a85a253e9b3f12d2e2cb15e16b3003.woff2 +0 -0
  1203. package/src/styles/fonts/noto-serif-sc/400/7caa14a095a6bc313aab780fe4ff7999.woff2 +0 -0
  1204. package/src/styles/fonts/noto-serif-sc/400/7d138084cf03c14116b11297fce0e3e3.woff2 +0 -0
  1205. package/src/styles/fonts/noto-serif-sc/400/880162ae92cd9e120eb4e4e11fae459d.woff2 +0 -0
  1206. package/src/styles/fonts/noto-serif-sc/400/8f2b960c2823670e94f5b08aa65657e6.woff2 +0 -0
  1207. package/src/styles/fonts/noto-serif-sc/400/8f89f57230d184f92a36e241874229d7.woff2 +0 -0
  1208. package/src/styles/fonts/noto-serif-sc/400/9180de34b48b325200a97e267befff32.woff2 +0 -0
  1209. package/src/styles/fonts/noto-serif-sc/400/95df3b9f681d9df411c30aea5b24f2e0.woff2 +0 -0
  1210. package/src/styles/fonts/noto-serif-sc/400/975af5a496e8d87d821910aa9fe4d598.woff2 +0 -0
  1211. package/src/styles/fonts/noto-serif-sc/400/97a874bbf55ce89a4ab7cd27c7e938b1.woff2 +0 -0
  1212. package/src/styles/fonts/noto-serif-sc/400/9fd53607094e329fa8e5c785b3ff0f1a.woff2 +0 -0
  1213. package/src/styles/fonts/noto-serif-sc/400/a578742770fcd2226e3c45b5b6efdcb0.woff2 +0 -0
  1214. package/src/styles/fonts/noto-serif-sc/400/ae401fb4db80d5ff5cd3f8d9bc811070.woff2 +0 -0
  1215. package/src/styles/fonts/noto-serif-sc/400/b0ab3a7f319ce6dd3c9a4de2674e7c72.woff2 +0 -0
  1216. package/src/styles/fonts/noto-serif-sc/400/b159deb135e9946eea0572d52778170b.woff2 +0 -0
  1217. package/src/styles/fonts/noto-serif-sc/400/b91450304d9ac44f5c6e0da0792e055d.woff2 +0 -0
  1218. package/src/styles/fonts/noto-serif-sc/400/baa325551b381c5e035ef143e56d4abe.woff2 +0 -0
  1219. package/src/styles/fonts/noto-serif-sc/400/c0c7836749e585cee24ab2f8457c5b01.woff2 +0 -0
  1220. package/src/styles/fonts/noto-serif-sc/400/c2ac4ef1860812036ca2b8c4e4089bdc.woff2 +0 -0
  1221. package/src/styles/fonts/noto-serif-sc/400/c31019c08bd22464f7a88f090281404c.woff2 +0 -0
  1222. package/src/styles/fonts/noto-serif-sc/400/c57ee3b49b7e45b995539a6b2c51f138.woff2 +0 -0
  1223. package/src/styles/fonts/noto-serif-sc/400/cd75ca47da9ae4c0899e37d4c543319b.woff2 +0 -0
  1224. package/src/styles/fonts/noto-serif-sc/400/d12ce1d8445213317f9163283e58a05d.woff2 +0 -0
  1225. package/src/styles/fonts/noto-serif-sc/400/d28fb13acf9ced9f0657fd4012c81cd2.woff2 +0 -0
  1226. package/src/styles/fonts/noto-serif-sc/400/d3714e6b90de8e2085dfb2514464dd6a.woff2 +0 -0
  1227. package/src/styles/fonts/noto-serif-sc/400/d3beff96216c8af1aa79246476b6a323.woff2 +0 -0
  1228. package/src/styles/fonts/noto-serif-sc/400/d3e311f30c811dc339c262a79a51877e.woff2 +0 -0
  1229. package/src/styles/fonts/noto-serif-sc/400/d51f4cdc83711e510f5d25f03235597e.woff2 +0 -0
  1230. package/src/styles/fonts/noto-serif-sc/400/d5df4a8dfd4328c67d933b3912c6ad0f.woff2 +0 -0
  1231. package/src/styles/fonts/noto-serif-sc/400/dccda6a2e2db3b530788bdfa2acd1979.woff2 +0 -0
  1232. package/src/styles/fonts/noto-serif-sc/400/f5237486197aeff59341a1ff38b8eff8.woff2 +0 -0
  1233. package/src/styles/fonts/noto-serif-sc/400/f553d54ef931066712d8f3f0ce018e1b.woff2 +0 -0
  1234. package/src/styles/fonts/noto-serif-sc/400/f649cba8e14c33d6bf2265483b14b895.woff2 +0 -0
  1235. package/src/styles/fonts/noto-serif-sc/400/f6839df1bf7cb4dc8d27e5ea55bbe633.woff2 +0 -0
  1236. package/src/styles/fonts/noto-serif-sc/400/f6b7304e028980f77a7f7007bb540abd.woff2 +0 -0
  1237. package/src/styles/fonts/noto-serif-sc/400/f8db8bef0a6e1178835d350ae0d384a1.woff2 +0 -0
  1238. package/src/styles/fonts/noto-serif-sc/400/fb4649a82c50620773d79820e2e5ff13.woff2 +0 -0
  1239. package/src/styles/fonts/noto-serif-sc/400/fb9402d6c6357a825affc402f14d5a7e.woff2 +0 -0
  1240. package/src/styles/fonts/noto-serif-sc/700/0041f681602cc834bb5c55ced0155b8e.woff2 +0 -0
  1241. package/src/styles/fonts/noto-serif-sc/700/00c9ac960d866ffaf8a866e5939024e2.woff2 +0 -0
  1242. package/src/styles/fonts/noto-serif-sc/700/02e48e353415a00e0f556608cab33a43.woff2 +0 -0
  1243. package/src/styles/fonts/noto-serif-sc/700/02faf6bb0ab4d56ada037c0bbaf9b9f7.woff2 +0 -0
  1244. package/src/styles/fonts/noto-serif-sc/700/057a3d44d7fc606f113d863376d0ecf0.woff2 +0 -0
  1245. package/src/styles/fonts/noto-serif-sc/700/10f2b44b3711d3f5bdcc30d373b543d1.woff2 +0 -0
  1246. package/src/styles/fonts/noto-serif-sc/700/14c1506106d92621bafb11016735194e.woff2 +0 -0
  1247. package/src/styles/fonts/noto-serif-sc/700/154a2c266902003bd8b7449386b10776.woff2 +0 -0
  1248. package/src/styles/fonts/noto-serif-sc/700/19e39850472250bfdbce654d30859879.woff2 +0 -0
  1249. package/src/styles/fonts/noto-serif-sc/700/1b5d0d740450fb996749464c9b882025.woff2 +0 -0
  1250. package/src/styles/fonts/noto-serif-sc/700/1bca0a2a8840ad0ee9414940593db144.woff2 +0 -0
  1251. package/src/styles/fonts/noto-serif-sc/700/1cda27dcaab977ae4ef5d5ab2a10ae03.woff2 +0 -0
  1252. package/src/styles/fonts/noto-serif-sc/700/1f4bc38a1c50f55f335f5411cae47696.woff2 +0 -0
  1253. package/src/styles/fonts/noto-serif-sc/700/2022cf097cb952d9fe75b53b4587d2c3.woff2 +0 -0
  1254. package/src/styles/fonts/noto-serif-sc/700/2240a3c43ca5ef59ae3c348c7884792f.woff2 +0 -0
  1255. package/src/styles/fonts/noto-serif-sc/700/280e3d2b58e9ad3501816072e01b0c13.woff2 +0 -0
  1256. package/src/styles/fonts/noto-serif-sc/700/2874d07e228da9583b0e73646dacd498.woff2 +0 -0
  1257. package/src/styles/fonts/noto-serif-sc/700/29d49891713a2785a3a383001cf58c59.woff2 +0 -0
  1258. package/src/styles/fonts/noto-serif-sc/700/2d81eb6ab0ebbc0cabfb3a3341ba8800.woff2 +0 -0
  1259. package/src/styles/fonts/noto-serif-sc/700/3179006d1c7ebfa50d27482a2859d9a0.woff2 +0 -0
  1260. package/src/styles/fonts/noto-serif-sc/700/34c2edb3c37f71258f5c4a31091f0c6c.woff2 +0 -0
  1261. package/src/styles/fonts/noto-serif-sc/700/389a950f2a1211946d294716e679e381.woff2 +0 -0
  1262. package/src/styles/fonts/noto-serif-sc/700/42a74b6a625bbf0a9616ed4db3152c88.woff2 +0 -0
  1263. package/src/styles/fonts/noto-serif-sc/700/457485e72835364662dfead6281638c1.woff2 +0 -0
  1264. package/src/styles/fonts/noto-serif-sc/700/488846410760fe128dae939836ca5423.woff2 +0 -0
  1265. package/src/styles/fonts/noto-serif-sc/700/48eb0a91e50c7f026e248c64145e72af.woff2 +0 -0
  1266. package/src/styles/fonts/noto-serif-sc/700/4b0e79ba18b2ce424fa93e84996d7cba.woff2 +0 -0
  1267. package/src/styles/fonts/noto-serif-sc/700/54e301f412730f391225db59dae1c8d5.woff2 +0 -0
  1268. package/src/styles/fonts/noto-serif-sc/700/597d69d0710e0178b162afb0a0c20401.woff2 +0 -0
  1269. package/src/styles/fonts/noto-serif-sc/700/5cc23a76e122d0ad2f7cede41bc35b27.woff2 +0 -0
  1270. package/src/styles/fonts/noto-serif-sc/700/5d48855bed5f3554eff91b573d7376ac.woff2 +0 -0
  1271. package/src/styles/fonts/noto-serif-sc/700/5ddcbe564b29ef08632e1aeb33455435.woff2 +0 -0
  1272. package/src/styles/fonts/noto-serif-sc/700/605667a998e91e2b6a4a3cd7c31fe5a9.woff2 +0 -0
  1273. package/src/styles/fonts/noto-serif-sc/700/67f32ceea9e78e5109f87724ad886010.woff2 +0 -0
  1274. package/src/styles/fonts/noto-serif-sc/700/68f2fab82ec8e9291f08c3145111549c.woff2 +0 -0
  1275. package/src/styles/fonts/noto-serif-sc/700/69519ada3f3f74ca20aacb8af48ab6b4.woff2 +0 -0
  1276. package/src/styles/fonts/noto-serif-sc/700/6a6e884fb2b65ec5b4a3d5ecd0d01a6a.woff2 +0 -0
  1277. package/src/styles/fonts/noto-serif-sc/700/6e1a8b45b01939088c3a8cfcf8c10681.woff2 +0 -0
  1278. package/src/styles/fonts/noto-serif-sc/700/70adaf50c56d5ff859c64d35e0f1e34e.woff2 +0 -0
  1279. package/src/styles/fonts/noto-serif-sc/700/72ee453ac0e19bd2c631c8921c44e3de.woff2 +0 -0
  1280. package/src/styles/fonts/noto-serif-sc/700/753b5f6fb254bacb6618ace25af3df60.woff2 +0 -0
  1281. package/src/styles/fonts/noto-serif-sc/700/76d4244186d118eea245d1385a4de2ec.woff2 +0 -0
  1282. package/src/styles/fonts/noto-serif-sc/700/7a86b155111ba20f3e87306ff6beac77.woff2 +0 -0
  1283. package/src/styles/fonts/noto-serif-sc/700/7b1e76975b0984e6f83e3f9f8069e784.woff2 +0 -0
  1284. package/src/styles/fonts/noto-serif-sc/700/7b6c60131822a0e4d36d980d52509d4e.woff2 +0 -0
  1285. package/src/styles/fonts/noto-serif-sc/700/7cbda564cb2dd4799ab9e89d51286aa7.woff2 +0 -0
  1286. package/src/styles/fonts/noto-serif-sc/700/7f60eefa15956d6f06dd92404887d58c.woff2 +0 -0
  1287. package/src/styles/fonts/noto-serif-sc/700/7f8c15e0ecb102738981d9fa4cb6b921.woff2 +0 -0
  1288. package/src/styles/fonts/noto-serif-sc/700/812b5a4b87f3a7b4afc1cfebc864f413.woff2 +0 -0
  1289. package/src/styles/fonts/noto-serif-sc/700/812dfb7f8144d01b3cc9d5ce0b472f40.woff2 +0 -0
  1290. package/src/styles/fonts/noto-serif-sc/700/84742b1ede4f0bb6d27131298eba21b4.woff2 +0 -0
  1291. package/src/styles/fonts/noto-serif-sc/700/8555f0285e3d28e95e2fc0ccccd9caff.woff2 +0 -0
  1292. package/src/styles/fonts/noto-serif-sc/700/8e04e64c8f68d292a18d4160fbde8671.woff2 +0 -0
  1293. package/src/styles/fonts/noto-serif-sc/700/958efb9b2fa2ea0008ffef009885f9f8.woff2 +0 -0
  1294. package/src/styles/fonts/noto-serif-sc/700/9ca9b71010a5faeee7047ef97aeee13b.woff2 +0 -0
  1295. package/src/styles/fonts/noto-serif-sc/700/9cd0b77920b9d6c64eb686493123fc76.woff2 +0 -0
  1296. package/src/styles/fonts/noto-serif-sc/700/9ebd27835ffcbd794e67151ab046ce68.woff2 +0 -0
  1297. package/src/styles/fonts/noto-serif-sc/700/a077f51cfb5cffb4ff4d8e229c0e9e79.woff2 +0 -0
  1298. package/src/styles/fonts/noto-serif-sc/700/a397997b579d3945c9c70a979c17a8ad.woff2 +0 -0
  1299. package/src/styles/fonts/noto-serif-sc/700/a68d9d5027803832bb28e78cdcd04949.woff2 +0 -0
  1300. package/src/styles/fonts/noto-serif-sc/700/a904b05966368bcf90b632c7c2e5f76b.woff2 +0 -0
  1301. package/src/styles/fonts/noto-serif-sc/700/aa218a2c45f3749537ce876201e5152b.woff2 +0 -0
  1302. package/src/styles/fonts/noto-serif-sc/700/aa28db16818f9eaa8c817f289e1c3270.woff2 +0 -0
  1303. package/src/styles/fonts/noto-serif-sc/700/aa96d698491c2540e2dcf7009c65c456.woff2 +0 -0
  1304. package/src/styles/fonts/noto-serif-sc/700/ae25c41034ddc1a9e0b41f5034c9aa4b.woff2 +0 -0
  1305. package/src/styles/fonts/noto-serif-sc/700/ae289ae3f8cdb54a3a6c07174517afec.woff2 +0 -0
  1306. package/src/styles/fonts/noto-serif-sc/700/b02dfa2aa52cbdb1b2f11a9f44335469.woff2 +0 -0
  1307. package/src/styles/fonts/noto-serif-sc/700/b2e326f7f9b807451bf9c745df747efe.woff2 +0 -0
  1308. package/src/styles/fonts/noto-serif-sc/700/c33c59feccf391f0c5f1f5d24e36d1fe.woff2 +0 -0
  1309. package/src/styles/fonts/noto-serif-sc/700/c82fd9456d7465b5e5bd3659e9b14c55.woff2 +0 -0
  1310. package/src/styles/fonts/noto-serif-sc/700/c90b7b65d2b9696fbf3a506738f94d68.woff2 +0 -0
  1311. package/src/styles/fonts/noto-serif-sc/700/cba6ad3981cb7861428d4be169ee8124.woff2 +0 -0
  1312. package/src/styles/fonts/noto-serif-sc/700/cc26525aa2af1f0b929af32ce50a7fba.woff2 +0 -0
  1313. package/src/styles/fonts/noto-serif-sc/700/cd0e7b51eddb22a77a09b025c0281434.woff2 +0 -0
  1314. package/src/styles/fonts/noto-serif-sc/700/cd6d074f3957d58bac58437fc97e5e33.woff2 +0 -0
  1315. package/src/styles/fonts/noto-serif-sc/700/cef249b6d013fb0cc0d574176bc23811.woff2 +0 -0
  1316. package/src/styles/fonts/noto-serif-sc/700/d0bd387fda28e58d3c9b3efa2468dd8a.woff2 +0 -0
  1317. package/src/styles/fonts/noto-serif-sc/700/da93ae099ff3b7aae27b3f674d3fc721.woff2 +0 -0
  1318. package/src/styles/fonts/noto-serif-sc/700/e264213b9e102dabc603adb6e4fda5e6.woff2 +0 -0
  1319. package/src/styles/fonts/noto-serif-sc/700/e7c7ef3669ae48c0a736f06ca471e1d7.woff2 +0 -0
  1320. package/src/styles/fonts/noto-serif-sc/700/e81a742cacef744130c40de1b90837d8.woff2 +0 -0
  1321. package/src/styles/fonts/noto-serif-sc/700/e8b755172122d1d0a5dd453e96b0ff24.woff2 +0 -0
  1322. package/src/styles/fonts/noto-serif-sc/700/e99280299c305402eaa5271a3e36c49b.woff2 +0 -0
  1323. package/src/styles/fonts/noto-serif-sc/700/e9c66b085052ece66bfadf45f711d3e1.woff2 +0 -0
  1324. package/src/styles/fonts/noto-serif-sc/700/ed7c6dafaa6d8bcf015ef0ca574837df.woff2 +0 -0
  1325. package/src/styles/fonts/noto-serif-sc/700/f2900a1d30c3a33129f4e2225669bd0e.woff2 +0 -0
  1326. package/src/styles/fonts/noto-serif-sc/700/fa7d3b99744d7f2dc9e00864a97a62d6.woff2 +0 -0
  1327. package/src/styles/fonts/noto-serif-sc/700/fb0e90665980954719c2eb685b130bc0.woff2 +0 -0
  1328. package/src/styles/fonts/noto-serif-sc/noto-serif-sc.css +0 -3615
  1329. package/src/styles/fonts/noto-serif-tc/400/008ea9091e332c639ceb18874eacd60c.woff2 +0 -0
  1330. package/src/styles/fonts/noto-serif-tc/400/053bd3d7aec0040d0cc50c261a1f4e3e.woff2 +0 -0
  1331. package/src/styles/fonts/noto-serif-tc/400/0713613227cc4c686c45a279f8bdc166.woff2 +0 -0
  1332. package/src/styles/fonts/noto-serif-tc/400/0e97f44ebc65384c346fe19bcc52fa20.woff2 +0 -0
  1333. package/src/styles/fonts/noto-serif-tc/400/1139d32ae2bdeb26c0c8f31330aa9a9f.woff2 +0 -0
  1334. package/src/styles/fonts/noto-serif-tc/400/15f8c0df47fd639d1b0d9bd5cf507c9b.woff2 +0 -0
  1335. package/src/styles/fonts/noto-serif-tc/400/1668bd859ffe15bed7d5563117d8d5fb.woff2 +0 -0
  1336. package/src/styles/fonts/noto-serif-tc/400/190e3f8632494e7c095117f26b1c811e.woff2 +0 -0
  1337. package/src/styles/fonts/noto-serif-tc/400/19ad151c22ce1befe0a9ea643fbee570.woff2 +0 -0
  1338. package/src/styles/fonts/noto-serif-tc/400/1c820b5295868008ca7c78afa5b7655d.woff2 +0 -0
  1339. package/src/styles/fonts/noto-serif-tc/400/1fbe225742c69f4ba9ea5f74922f0ca1.woff2 +0 -0
  1340. package/src/styles/fonts/noto-serif-tc/400/2a7cedfcd6e4c7cec36f4fd7b0f329c2.woff2 +0 -0
  1341. package/src/styles/fonts/noto-serif-tc/400/2acea04a920f6af31e7db97052f563c6.woff2 +0 -0
  1342. package/src/styles/fonts/noto-serif-tc/400/2e98b666924b8e0a09d1aeeefd24bdd2.woff2 +0 -0
  1343. package/src/styles/fonts/noto-serif-tc/400/2fd3fceb6faed5e3db768e88d7614dca.woff2 +0 -0
  1344. package/src/styles/fonts/noto-serif-tc/400/35cf5dd04315e0b906e1a413d7905a2f.woff2 +0 -0
  1345. package/src/styles/fonts/noto-serif-tc/400/387c811226f303af62f1e21aae6f5c83.woff2 +0 -0
  1346. package/src/styles/fonts/noto-serif-tc/400/3b41385fc27419c19822060daa0b5cb3.woff2 +0 -0
  1347. package/src/styles/fonts/noto-serif-tc/400/3cbe4a697fd595ef42c899de7d3e5445.woff2 +0 -0
  1348. package/src/styles/fonts/noto-serif-tc/400/3d83dacbbec3d8532ae9afede21f3aab.woff2 +0 -0
  1349. package/src/styles/fonts/noto-serif-tc/400/47479c470fae70f10b7c964a7ecbf274.woff2 +0 -0
  1350. package/src/styles/fonts/noto-serif-tc/400/4dc0728df0f2ba70796f45f05654c7ba.woff2 +0 -0
  1351. package/src/styles/fonts/noto-serif-tc/400/4dc2bc2c55b47f57d13b63aa6b1c8bd4.woff2 +0 -0
  1352. package/src/styles/fonts/noto-serif-tc/400/4e1cc6aafb411b572c8d3511e925ecf1.woff2 +0 -0
  1353. package/src/styles/fonts/noto-serif-tc/400/5227dbe9933760a48baff21ebd13fc98.woff2 +0 -0
  1354. package/src/styles/fonts/noto-serif-tc/400/526b263e72c189f4b065738aaa6d423a.woff2 +0 -0
  1355. package/src/styles/fonts/noto-serif-tc/400/54da934819a917f561b439bfd10f88b6.woff2 +0 -0
  1356. package/src/styles/fonts/noto-serif-tc/400/5bfc7a121c35ae42623ef804fb525e0e.woff2 +0 -0
  1357. package/src/styles/fonts/noto-serif-tc/400/5f90024544c2907c6c0203c6210c50be.woff2 +0 -0
  1358. package/src/styles/fonts/noto-serif-tc/400/649b12d7cee7bb981842946e4547e6ca.woff2 +0 -0
  1359. package/src/styles/fonts/noto-serif-tc/400/653bef2ed891ae48d8ed712283080649.woff2 +0 -0
  1360. package/src/styles/fonts/noto-serif-tc/400/67d2a81f06ba352f17fbdc3a5e6ea59e.woff2 +0 -0
  1361. package/src/styles/fonts/noto-serif-tc/400/68304f3229cf763465f044fccb5892c0.woff2 +0 -0
  1362. package/src/styles/fonts/noto-serif-tc/400/688a88911e4da17b609196a959b8b930.woff2 +0 -0
  1363. package/src/styles/fonts/noto-serif-tc/400/6db6ddf72c38a78ce44c1327701152e1.woff2 +0 -0
  1364. package/src/styles/fonts/noto-serif-tc/400/77a7533bd21ccd33192d142a93555aa8.woff2 +0 -0
  1365. package/src/styles/fonts/noto-serif-tc/400/7d65a3d6a65050eb5e6eca43398aeba4.woff2 +0 -0
  1366. package/src/styles/fonts/noto-serif-tc/400/7dfc711962c8771f97e7c8898a6bcb65.woff2 +0 -0
  1367. package/src/styles/fonts/noto-serif-tc/400/7ef123b62d530fcba73974fa265e0aae.woff2 +0 -0
  1368. package/src/styles/fonts/noto-serif-tc/400/80466082a896fd328f30a78593c7c568.woff2 +0 -0
  1369. package/src/styles/fonts/noto-serif-tc/400/8a3c84b0df36f851f5fea75ee8757951.woff2 +0 -0
  1370. package/src/styles/fonts/noto-serif-tc/400/8b0c8c9f8cfa9fa090d97c5a5efb1f4c.woff2 +0 -0
  1371. package/src/styles/fonts/noto-serif-tc/400/8dc035a34c76e6515ca203e2df182588.woff2 +0 -0
  1372. package/src/styles/fonts/noto-serif-tc/400/8eb06109812cb80be44f47b8179c2709.woff2 +0 -0
  1373. package/src/styles/fonts/noto-serif-tc/400/904324af375d5fd370af1054355a050e.woff2 +0 -0
  1374. package/src/styles/fonts/noto-serif-tc/400/911a2092d64d6d6494b254d819af2b91.woff2 +0 -0
  1375. package/src/styles/fonts/noto-serif-tc/400/9de02d745b8e25c6411fb152fb067748.woff2 +0 -0
  1376. package/src/styles/fonts/noto-serif-tc/400/9eb33a430058d839ebbe2af4b2e0daa9.woff2 +0 -0
  1377. package/src/styles/fonts/noto-serif-tc/400/9f5a73aa8ba417688019d628f334db07.woff2 +0 -0
  1378. package/src/styles/fonts/noto-serif-tc/400/a0f0c06d5c7a3ffa97706178cce212a8.woff2 +0 -0
  1379. package/src/styles/fonts/noto-serif-tc/400/a38c1830367f784181b6f544b0b11bbd.woff2 +0 -0
  1380. package/src/styles/fonts/noto-serif-tc/400/a9cf85e27428c14351d30eac8cbc8d91.woff2 +0 -0
  1381. package/src/styles/fonts/noto-serif-tc/400/aa0ce6740f301351761a0615cc8b2e99.woff2 +0 -0
  1382. package/src/styles/fonts/noto-serif-tc/400/bc3f0cb8b55ee11d32b94ca488976f8d.woff2 +0 -0
  1383. package/src/styles/fonts/noto-serif-tc/400/bcb3307527d6d0033bf0f17660b91e71.woff2 +0 -0
  1384. package/src/styles/fonts/noto-serif-tc/400/bf1acc86e17b4229c548828a9d6f455d.woff2 +0 -0
  1385. package/src/styles/fonts/noto-serif-tc/400/c3fbc1f2557c343863a10698f8c966a2.woff2 +0 -0
  1386. package/src/styles/fonts/noto-serif-tc/400/c5c1c0be944ea39a3f50a02d32f5b759.woff2 +0 -0
  1387. package/src/styles/fonts/noto-serif-tc/400/c5f1075caf6d1344ee720de85114a521.woff2 +0 -0
  1388. package/src/styles/fonts/noto-serif-tc/400/cae29b3f8951eaf20d2f61c2206e28d9.woff2 +0 -0
  1389. package/src/styles/fonts/noto-serif-tc/400/d043b8d7a48bb0ac59ee1f1477d88eee.woff2 +0 -0
  1390. package/src/styles/fonts/noto-serif-tc/400/d320b000b5978c7251148a6a154741b8.woff2 +0 -0
  1391. package/src/styles/fonts/noto-serif-tc/400/da13b136efb1d1e4c76575af8f79a698.woff2 +0 -0
  1392. package/src/styles/fonts/noto-serif-tc/400/da2cf0ec56bf69374ee37764c7e3ea3d.woff2 +0 -0
  1393. package/src/styles/fonts/noto-serif-tc/400/daf62255dd60679946f28c442ca62533.woff2 +0 -0
  1394. package/src/styles/fonts/noto-serif-tc/400/dd01a1035345f6921a48525b8ce08f06.woff2 +0 -0
  1395. package/src/styles/fonts/noto-serif-tc/400/e4fb59479cedc87ba79785590bf861ca.woff2 +0 -0
  1396. package/src/styles/fonts/noto-serif-tc/400/e5d00355f73293d40b61299459d17ca5.woff2 +0 -0
  1397. package/src/styles/fonts/noto-serif-tc/400/e647b8d2efc501c0cc0e407249cc7135.woff2 +0 -0
  1398. package/src/styles/fonts/noto-serif-tc/400/e6e60ffb2ebd1828628764b507060aea.woff2 +0 -0
  1399. package/src/styles/fonts/noto-serif-tc/400/f00eb499abb94fa7b799d6d8c9b050e9.woff2 +0 -0
  1400. package/src/styles/fonts/noto-serif-tc/400/f7d36ffff7a75c9c6216d576a57dd00d.woff2 +0 -0
  1401. package/src/styles/fonts/noto-serif-tc/400/f7f3f63e7a149cd89eccab3b52171d05.woff2 +0 -0
  1402. package/src/styles/fonts/noto-serif-tc/400/fcc41f6a067ddd658bba5c9dff234a32.woff2 +0 -0
  1403. package/src/styles/fonts/noto-serif-tc/400/fd6ad889fcf3583bd9b0b6db53aad434.woff2 +0 -0
  1404. package/src/styles/fonts/noto-serif-tc/700/0c055db157e7a13f3103cc2a6b67fec3.woff2 +0 -0
  1405. package/src/styles/fonts/noto-serif-tc/700/0d3f5cc265cb6c439c517f2c4cebbddf.woff2 +0 -0
  1406. package/src/styles/fonts/noto-serif-tc/700/1259e5825b314fe2b8bb96d6e8069ee5.woff2 +0 -0
  1407. package/src/styles/fonts/noto-serif-tc/700/12c518ebfe62818af550c08947e359e7.woff2 +0 -0
  1408. package/src/styles/fonts/noto-serif-tc/700/145831a59caa06d894022fe60212ed21.woff2 +0 -0
  1409. package/src/styles/fonts/noto-serif-tc/700/169a096e61d38a773216f51d1ec2cc06.woff2 +0 -0
  1410. package/src/styles/fonts/noto-serif-tc/700/1884a2b22d314c7d57707f03aec348e0.woff2 +0 -0
  1411. package/src/styles/fonts/noto-serif-tc/700/1e2640116bbba817f43c43cc69371cf1.woff2 +0 -0
  1412. package/src/styles/fonts/noto-serif-tc/700/2573703213da30d3ba18925b100b2c2b.woff2 +0 -0
  1413. package/src/styles/fonts/noto-serif-tc/700/26839c0e47c73514b8d8f660d24d6b19.woff2 +0 -0
  1414. package/src/styles/fonts/noto-serif-tc/700/2a22e14a9ad53f2abb3c7e85017b7d12.woff2 +0 -0
  1415. package/src/styles/fonts/noto-serif-tc/700/2b3e8c5703b91f39f6027f43f0da6f4b.woff2 +0 -0
  1416. package/src/styles/fonts/noto-serif-tc/700/2f27ee4fb2cf6a280e110e09c18ef73e.woff2 +0 -0
  1417. package/src/styles/fonts/noto-serif-tc/700/31342cebfa5ea7fac06b4ea372d96bc5.woff2 +0 -0
  1418. package/src/styles/fonts/noto-serif-tc/700/375329ba0b50b94b35006498e555867c.woff2 +0 -0
  1419. package/src/styles/fonts/noto-serif-tc/700/427577dcb707d1d35eebd155b4222aa7.woff2 +0 -0
  1420. package/src/styles/fonts/noto-serif-tc/700/450a5b53be0a8a778bb0b623e86b652f.woff2 +0 -0
  1421. package/src/styles/fonts/noto-serif-tc/700/477866c8396474a17317dcac3e7a014f.woff2 +0 -0
  1422. package/src/styles/fonts/noto-serif-tc/700/478ebdaadda7775c391c5dcab4e697df.woff2 +0 -0
  1423. package/src/styles/fonts/noto-serif-tc/700/48d6a97a185c799be4fe67aaf7edf213.woff2 +0 -0
  1424. package/src/styles/fonts/noto-serif-tc/700/490edb9fc8a4356aea556eed32287464.woff2 +0 -0
  1425. package/src/styles/fonts/noto-serif-tc/700/4c4bdd0b3f3a52e28f3b643c1c5d43be.woff2 +0 -0
  1426. package/src/styles/fonts/noto-serif-tc/700/4c96411f3693a9a8657a9c1190f82bce.woff2 +0 -0
  1427. package/src/styles/fonts/noto-serif-tc/700/4c9aa12aba2a6a57410eacaff7427916.woff2 +0 -0
  1428. package/src/styles/fonts/noto-serif-tc/700/4cca7233bf8ce5dec2e5d146b993d626.woff2 +0 -0
  1429. package/src/styles/fonts/noto-serif-tc/700/4d0a9128d06ea857f203bf5d007b1ab9.woff2 +0 -0
  1430. package/src/styles/fonts/noto-serif-tc/700/4e5384920bbb155d9d8d74887b09ea5b.woff2 +0 -0
  1431. package/src/styles/fonts/noto-serif-tc/700/50cfd672bfa62512ba090420acf35c87.woff2 +0 -0
  1432. package/src/styles/fonts/noto-serif-tc/700/551b1d7a0b80c8d42af09863cdca7f01.woff2 +0 -0
  1433. package/src/styles/fonts/noto-serif-tc/700/555d990ab3fd7d3d66c6d1fa9a82fec5.woff2 +0 -0
  1434. package/src/styles/fonts/noto-serif-tc/700/5979c33a7eb5963bf8e83e46931b5fb5.woff2 +0 -0
  1435. package/src/styles/fonts/noto-serif-tc/700/59966ee0b069b577510fe68c350da0ee.woff2 +0 -0
  1436. package/src/styles/fonts/noto-serif-tc/700/60a14064ed334f0155795d795e926abe.woff2 +0 -0
  1437. package/src/styles/fonts/noto-serif-tc/700/611b62d5fd9698d9b5ce495ba6f14c93.woff2 +0 -0
  1438. package/src/styles/fonts/noto-serif-tc/700/6e83fe0b6e708eaf1c3003d6dee11488.woff2 +0 -0
  1439. package/src/styles/fonts/noto-serif-tc/700/70861376e5d4f92f8aa7aa1b2749b617.woff2 +0 -0
  1440. package/src/styles/fonts/noto-serif-tc/700/7124d150570d39ced8d45507dc11ca1e.woff2 +0 -0
  1441. package/src/styles/fonts/noto-serif-tc/700/79a7fdf7d9c722b5723ae25e6ff8e203.woff2 +0 -0
  1442. package/src/styles/fonts/noto-serif-tc/700/8c8393bc875f1ee36697a2113f4421ea.woff2 +0 -0
  1443. package/src/styles/fonts/noto-serif-tc/700/8e6c9bb43afb8cbbff7cf1055e67c9bd.woff2 +0 -0
  1444. package/src/styles/fonts/noto-serif-tc/700/90ac4f9d2aa02afdace2843b49fc18bb.woff2 +0 -0
  1445. package/src/styles/fonts/noto-serif-tc/700/90b6f57d77847f512fd11db74fa912f1.woff2 +0 -0
  1446. package/src/styles/fonts/noto-serif-tc/700/913759e6690f9fc0746a20b96f4bdcb4.woff2 +0 -0
  1447. package/src/styles/fonts/noto-serif-tc/700/9154e26efe532a85a27d80902f5a2d6c.woff2 +0 -0
  1448. package/src/styles/fonts/noto-serif-tc/700/94e7ed67f1557b76fead6b6e456a0415.woff2 +0 -0
  1449. package/src/styles/fonts/noto-serif-tc/700/95127a92346c04fec1fa81d6295b0a28.woff2 +0 -0
  1450. package/src/styles/fonts/noto-serif-tc/700/9fbc06b2e3ff16b9d705c76db563ef17.woff2 +0 -0
  1451. package/src/styles/fonts/noto-serif-tc/700/a3b929542e6c5a0644b73a7c8a8b6c03.woff2 +0 -0
  1452. package/src/styles/fonts/noto-serif-tc/700/a8857f5d478f101c053ba02d2f223e90.woff2 +0 -0
  1453. package/src/styles/fonts/noto-serif-tc/700/aa64c9953af43ca65832f413895bb433.woff2 +0 -0
  1454. package/src/styles/fonts/noto-serif-tc/700/ada8f0241244c60ec8d3d59ad37f20a5.woff2 +0 -0
  1455. package/src/styles/fonts/noto-serif-tc/700/b341de0bc0bfe194a6c28dcfb566029e.woff2 +0 -0
  1456. package/src/styles/fonts/noto-serif-tc/700/b846c293981ca5429eabaa967f222f26.woff2 +0 -0
  1457. package/src/styles/fonts/noto-serif-tc/700/be64f9379412876e00fd3a0bfa6b6fe9.woff2 +0 -0
  1458. package/src/styles/fonts/noto-serif-tc/700/befed8a4fa817773fa7109db6fe07f56.woff2 +0 -0
  1459. package/src/styles/fonts/noto-serif-tc/700/c09ee2b219982f8d46ad9968b7e6e0ba.woff2 +0 -0
  1460. package/src/styles/fonts/noto-serif-tc/700/c39ec937c6a8d124e8b68cf829ea5ad4.woff2 +0 -0
  1461. package/src/styles/fonts/noto-serif-tc/700/c3fd21315345ae541f6e98067059fa19.woff2 +0 -0
  1462. package/src/styles/fonts/noto-serif-tc/700/c568a16e3168ceb1f191b70022c492ea.woff2 +0 -0
  1463. package/src/styles/fonts/noto-serif-tc/700/c5e66d60be3375835bbd8d6b797f6eac.woff2 +0 -0
  1464. package/src/styles/fonts/noto-serif-tc/700/cd10a3af2133805d8c92104d1ee6ff18.woff2 +0 -0
  1465. package/src/styles/fonts/noto-serif-tc/700/d15a3317942b7d31978a759fbf2222c8.woff2 +0 -0
  1466. package/src/styles/fonts/noto-serif-tc/700/d740dc2e854aaa7b3dcdd3ed25455eeb.woff2 +0 -0
  1467. package/src/styles/fonts/noto-serif-tc/700/d8325ba7ae651bc30440905bd67b95f1.woff2 +0 -0
  1468. package/src/styles/fonts/noto-serif-tc/700/e2204cf85edcb96c5de5c3dcf240da9d.woff2 +0 -0
  1469. package/src/styles/fonts/noto-serif-tc/700/e3e913e145ddcd9323b2a0972967feb6.woff2 +0 -0
  1470. package/src/styles/fonts/noto-serif-tc/700/f2fb1f1fbf7e44afb53c672ec286a22e.woff2 +0 -0
  1471. package/src/styles/fonts/noto-serif-tc/700/f372129c60aaece937cf7b91ee75c9b8.woff2 +0 -0
  1472. package/src/styles/fonts/noto-serif-tc/700/f5d7487963d43c89da63aaf10f2e6fb7.woff2 +0 -0
  1473. package/src/styles/fonts/noto-serif-tc/700/f75496953a40ff241178240209f56990.woff2 +0 -0
  1474. package/src/styles/fonts/noto-serif-tc/700/f92d74d1d217d21b39075ff23f79f7fd.woff2 +0 -0
  1475. package/src/styles/fonts/noto-serif-tc/700/f9d6d981d8b87b3e469027277f585741.woff2 +0 -0
  1476. package/src/styles/fonts/noto-serif-tc/700/fa8ed469ef290bfeb571418fe0abb628.woff2 +0 -0
  1477. package/src/styles/fonts/noto-serif-tc/700/fb61b690208eff56e6d8432951270901.woff2 +0 -0
  1478. package/src/styles/fonts/noto-serif-tc/700/ff0937ad63cda71ff420945ead55ab4d.woff2 +0 -0
  1479. package/src/styles/fonts/noto-serif-tc/noto-serif-tc.css +0 -3104
  1480. package/src/ui/__tests__/color-themes.test.ts +0 -48
  1481. package/src/ui/__tests__/font-themes.test.ts +0 -141
  1482. package/src/ui/dash/appearance/__tests__/NavigationContent.test.tsx +0 -54
  1483. package/src/ui/dash/settings/__tests__/AccountMenuContent.test.tsx +0 -67
  1484. package/src/ui/dash/settings/__tests__/GeneralContent.test.tsx +0 -75
  1485. package/src/ui/feed/__tests__/thread-preview.test.ts +0 -316
  1486. package/src/ui/feed/__tests__/timeline-cards.test.ts +0 -353
  1487. package/src/ui/layouts/__tests__/BaseLayout.test.tsx +0 -239
  1488. package/src/ui/layouts/__tests__/SiteLayout.test.tsx +0 -76
  1489. package/src/ui/pages/CollectionEditorPage.tsx +0 -175
  1490. package/src/ui/pages/__tests__/ArchivePage.test.tsx +0 -72
  1491. package/src/ui/shared/__tests__/format-chars.test.ts +0 -35
  1492. package/src/ui/shared/__tests__/home-page-branding.test.tsx +0 -14
  1493. package/src/ui/shared/__tests__/media-gallery.test.ts +0 -109
  1494. package/src/ui/shared/__tests__/navigation-labels.test.ts +0 -154
  1495. package/src/ui/shared/__tests__/pagination.test.ts +0 -63
  1496. package/src/ui/shared/__tests__/post-footer.test.ts +0 -147
@@ -19,7 +19,7 @@
19
19
  * filled in by Commit 5.
20
20
  */
21
21
 
22
- import type { PostService } from "./post.js";
22
+ import type { PostFilters, PostService } from "./post.js";
23
23
  import type { PathService } from "./path.js";
24
24
  import type { CollectionService } from "./collection.js";
25
25
  import type { MediaService } from "./media.js";
@@ -27,7 +27,9 @@ import {
27
27
  getDefaultJantAppleTouchIconBytes,
28
28
  getDefaultJantFaviconIcoBytes,
29
29
  } from "../lib/jant-branding.js";
30
+ import { getRootActivityAt } from "../db/thread-activity.js";
30
31
  import { tiptapJsonToMarkdown } from "../lib/tiptap-to-markdown.js";
32
+ import { extractBodyText, extractTimelineSummary } from "../lib/summary.js";
31
33
  import { getMediaUrl, getPublicUrlForProvider } from "../lib/image.js";
32
34
  import { render as renderMarkdown } from "../lib/markdown.js";
33
35
  import { formatRelativeAge, toISOString } from "../lib/time.js";
@@ -35,6 +37,7 @@ import {
35
37
  formatFrontMatter,
36
38
  type HugoCollectionRef,
37
39
  type HugoFrontMatter,
40
+ type HugoSmartCollectionSelection,
38
41
  type JantMedia,
39
42
  } from "../lib/hugo-markdown.js";
40
43
  // Shared design tokens — single source of truth for colors, typography,
@@ -67,6 +70,8 @@ import LAYOUT_FEATURED_LIST from "./export-theme/layouts/featured/list.html?raw"
67
70
  import LAYOUT_ARCHIVE_LIST from "./export-theme/layouts/archive/list.html?raw";
68
71
  import LAYOUT_COLLECTIONS_LIST from "./export-theme/layouts/collections/list.html?raw";
69
72
  import LAYOUT_COLLECTION_SINGLE from "./export-theme/layouts/collection/single.html?raw";
73
+ import LAYOUT_SMART_COLLECTION_LIST from "./export-theme/layouts/smart_collection/list.html?raw";
74
+ import PARTIAL_JANT_DATA from "./export-theme/layouts/partials/jant-data.html?raw";
70
75
  import PARTIAL_HEAD from "./export-theme/layouts/partials/head.html?raw";
71
76
  import PARTIAL_HEADER from "./export-theme/layouts/partials/header.html?raw";
72
77
  import PARTIAL_FOOTER from "./export-theme/layouts/partials/footer.html?raw";
@@ -75,24 +80,113 @@ import PARTIAL_POST_CARD from "./export-theme/layouts/partials/post-card.html?ra
75
80
  import PARTIAL_MEDIA_GALLERY from "./export-theme/layouts/partials/media-gallery.html?raw";
76
81
  import PARTIAL_REPLY from "./export-theme/layouts/partials/reply.html?raw";
77
82
  import PARTIAL_THREAD_PREVIEW from "./export-theme/layouts/partials/thread-preview.html?raw";
83
+ import PARTIAL_FEATURED_THREAD from "./export-theme/layouts/partials/featured-thread.html?raw";
84
+ import PARTIAL_SMART_COLLECTION_MEMBERS from "./export-theme/layouts/partials/smart-collection-members.html?raw";
85
+ import PARTIAL_COLLECTION_THREADS from "./export-theme/layouts/partials/collection-threads.html?raw";
86
+ import PARTIAL_COLLECTION_MEMBERS from "./export-theme/layouts/partials/collection-members.html?raw";
87
+ import PARTIAL_LATEST_MEMBERS from "./export-theme/layouts/partials/latest-members.html?raw";
88
+ import PARTIAL_FEATURED_MEMBERS from "./export-theme/layouts/partials/featured-members.html?raw";
78
89
  import LAYOUT_RSS from "./export-theme/layouts/_default/rss.xml?raw";
79
90
  import PARTIAL_FEED_POST_CONTENT from "./export-theme/layouts/partials/feed-post-content.xml?raw";
80
91
 
92
+ import { suggestSyncRepoName } from "../lib/github-sync-repo-name.js";
93
+ import {
94
+ getPostPath,
95
+ redirectTargetHref,
96
+ toAbsoluteSiteUrl,
97
+ } from "../lib/url.js";
81
98
  import type { StorageDriver } from "../lib/storage.js";
82
99
  import { base64ToUint8Array } from "../lib/favicon.js";
83
- import type { Post, Collection, Media, NavItem } from "../types.js";
100
+ import { makeZip } from "client-zip";
101
+ import {
102
+ SYSTEM_NAV_KEYS,
103
+ isFeedNavKey,
104
+ type Collection,
105
+ type Media,
106
+ type NavItem,
107
+ type PathRecord,
108
+ type Post,
109
+ type SmartCollection,
110
+ type SystemNavKey,
111
+ } from "../types.js";
84
112
 
85
- /** A file entry in the exported Hugo site. */
86
- export interface ExportFile {
113
+ /**
114
+ * Format version written to `data/jant.toml` as `version`. Raise it whenever
115
+ * `jant site import` starts reading a field, or a value of one, that it didn't
116
+ * before: an older importer refuses a version newer than its
117
+ * `SUPPORTED_SITE_EXPORT_VERSION` (kept equal to this by a test) instead of
118
+ * importing the export and silently dropping what it doesn't know.
119
+ * `export-format-version.test.ts` freezes the fields each version reads.
120
+ */
121
+ export const SITE_EXPORT_FORMAT_VERSION = 2;
122
+
123
+ /** A file of the exported Hugo site whose text or bytes the export holds. */
124
+ export interface ExportContentFile {
87
125
  path: string;
88
126
  content: string | Uint8Array;
127
+ /**
128
+ * Scaffolding the destination owns once it exists. A fresh export always
129
+ * carries it — the ZIP is a new tree, and `site export` refuses a non-empty
130
+ * output directory — but GitHub Sync writes it only when the
131
+ * repository does not have it yet, so an edit there survives every later
132
+ * push. Deploy config is the case that needs this: the Worker name has to
133
+ * be corrected by hand when it does not match the Worker already serving
134
+ * the domain.
135
+ */
136
+ scaffoldOnce?: boolean;
137
+ }
138
+
139
+ /**
140
+ * A media file of the exported site, named but not read: the archive streams
141
+ * it from storage as it is written. Reading every bundled file up front held a
142
+ * site's media in memory, and on a Docker site with 3 GB of local media the
143
+ * container was killed before it answered.
144
+ */
145
+ export interface ExportStoredFile {
146
+ path: string;
147
+ storageKey: string;
148
+ }
149
+
150
+ /** A file entry in the exported Hugo site. */
151
+ export type ExportFile = ExportContentFile | ExportStoredFile;
152
+
153
+ /**
154
+ * @param file - An export file entry
155
+ * @returns Whether its bytes are still in storage
156
+ * @example
157
+ * if (isStoredExportFile(file)) await readStoredExportFile(file, storage);
158
+ */
159
+ export function isStoredExportFile(file: ExportFile): file is ExportStoredFile {
160
+ return "storageKey" in file;
161
+ }
162
+
163
+ /**
164
+ * Read a stored export file's bytes, for a consumer that needs them whole.
165
+ *
166
+ * @param file - A stored export file
167
+ * @param storage - The site's storage
168
+ * @returns The bytes, or null when the object is gone
169
+ * @example
170
+ * const bytes = await readStoredExportFile(file, storage);
171
+ */
172
+ export async function readStoredExportFile(
173
+ file: ExportStoredFile,
174
+ storage: StorageDriver,
175
+ ): Promise<Uint8Array | null> {
176
+ const object = await storage.get(file.storageKey);
177
+ if (!object?.body) return null;
178
+ return new Uint8Array(await new Response(object.body).arrayBuffer());
89
179
  }
90
180
 
91
181
  export interface ExportService {
92
182
  /** Generate a flat list of files for a complete Hugo site. */
93
183
  generateHugoFiles(): Promise<ExportFile[]>;
94
- /** Generate a ZIP archive of the Hugo site. */
95
- generateHugoSite(): Promise<Uint8Array>;
184
+ /**
185
+ * The Hugo site as a ZIP stream. Stored media is read from storage one file
186
+ * at a time as the stream is consumed, so memory stays flat whatever the
187
+ * size of the site; the archive switches to ZIP64 past 4 GiB.
188
+ */
189
+ generateHugoSite(): Promise<ReadableStream<Uint8Array>>;
96
190
  }
97
191
 
98
192
  export interface SiteConfig {
@@ -100,10 +194,21 @@ export interface SiteConfig {
100
194
  siteUrl: string;
101
195
  siteDescription: string;
102
196
  siteLanguage: string;
197
+ /** Whether the source site serves per-language browsing views. */
198
+ multilingualEnabled: boolean;
199
+ /** Non-primary content languages, in switcher order. */
200
+ additionalLanguages: readonly string[];
103
201
  showJantBrandingOnHome: boolean;
104
- homeDefaultView: string;
202
+ /** Whether anonymous JSON reads are enabled on the source Jant site. */
203
+ publicApiEnabled: boolean;
204
+ /** Whether the exported Hugo site should emit Atom feeds. */
205
+ rssFeedsEnabled: boolean;
105
206
  /** "latest" or "featured" — drives the default RSS nav link in the exported site. */
106
207
  mainRssFeed: string;
208
+ /** "list" or "grid" — the layout the exported archive page opens with. */
209
+ archiveDefaultLayout: string;
210
+ /** IANA time zone the site dates posts in. */
211
+ timeZone: string;
107
212
  siteFooter: string;
108
213
  showHeaderAvatar: boolean;
109
214
  siteAvatarUrl: string;
@@ -124,7 +229,16 @@ export interface SiteConfig {
124
229
  sitePathPrefix?: string;
125
230
  navItems: Pick<
126
231
  NavItem,
127
- "type" | "systemKey" | "label" | "url" | "position" | "placement"
232
+ | "type"
233
+ | "systemKey"
234
+ | "label"
235
+ | "targetTitle"
236
+ | "url"
237
+ | "position"
238
+ | "placement"
239
+ | "collectionId"
240
+ | "smartCollectionId"
241
+ | "postId"
128
242
  >[];
129
243
  /** Items per page for Hugo pagination — kept in sync with the main site's PAGE_SIZE. */
130
244
  pageSize: number;
@@ -148,6 +262,16 @@ type ExportedCollectionDirectoryItem =
148
262
  recentActivityLabel?: string | null;
149
263
  recentActivityIso?: string | null;
150
264
  }
265
+ | {
266
+ type: "smart_collection";
267
+ sequence: string;
268
+ slug: string;
269
+ title: string;
270
+ descriptionHtml?: string | null;
271
+ entryCount?: number;
272
+ recentActivityLabel?: string | null;
273
+ recentActivityIso?: string | null;
274
+ }
151
275
  | {
152
276
  type: "divider";
153
277
  label: string | null;
@@ -157,12 +281,14 @@ type ExportedCollectionDirectoryItem =
157
281
  sequence: string;
158
282
  label: string;
159
283
  url: string;
284
+ /** The link description as the author wrote it, or null if empty. */
285
+ description?: string | null;
160
286
  /** Rendered HTML of the link description, or null if empty. */
161
287
  descriptionHtml?: string | null;
162
288
  };
163
289
 
164
290
  interface ExportCollectionDirectorySourceItem {
165
- type: "collection" | "divider" | "link";
291
+ type: "collection" | "smart_collection" | "divider" | "link";
166
292
  label?: string | null;
167
293
  url?: string | null;
168
294
  description?: string | null;
@@ -171,7 +297,14 @@ interface ExportCollectionDirectorySourceItem {
171
297
  slug: string;
172
298
  title: string;
173
299
  description?: string | null;
174
- postCount?: number;
300
+ threadCount?: number;
301
+ recentActivityAt?: number;
302
+ };
303
+ smartCollection?: {
304
+ slug: string;
305
+ title: string;
306
+ description?: string | null;
307
+ threadCount?: number;
175
308
  recentActivityAt?: number;
176
309
  };
177
310
  }
@@ -184,14 +317,14 @@ interface SiteIconAssets {
184
317
  }
185
318
 
186
319
  interface ExportedCollectionMetrics {
187
- postCount: number;
320
+ threadCount: number;
188
321
  recentActivityAt: number;
189
322
  }
190
323
 
191
324
  /**
192
325
  * A single `collections:` front-matter entry, already resolved to its
193
326
  * Hugo-visible slug. Assembled from
194
- * `collectionService.getCollectionEntriesByPostIds` + `collectionSlugMap`.
327
+ * `collectionService.getCollectionEntriesByThreadIds` + `collectionSlugMap`.
195
328
  */
196
329
  interface ExportedCollectionEntry {
197
330
  slug: string;
@@ -218,6 +351,35 @@ function buildDefaultAppleTouchAsset(): Pick<
218
351
  };
219
352
  }
220
353
 
354
+ /** Posts read per query while an export walks the site. */
355
+ const EXPORT_POST_PAGE_SIZE = 500;
356
+
357
+ /**
358
+ * Every post the filters match, however many there are. An export used to
359
+ * ask for the first 10,000 and stop there without a word, dropping the rest
360
+ * of a large site, replies included.
361
+ *
362
+ * @param posts - The post service
363
+ * @param filters - What to list
364
+ * @returns All matching posts, in the list order
365
+ */
366
+ async function listEveryPost(
367
+ posts: PostService,
368
+ filters: Omit<PostFilters, "limit" | "offset">,
369
+ ): Promise<Post[]> {
370
+ const all: Post[] = [];
371
+ let cursor: string | undefined;
372
+ do {
373
+ const page = await posts.listPage(filters, {
374
+ cursor,
375
+ limit: EXPORT_POST_PAGE_SIZE,
376
+ });
377
+ all.push(...page.posts);
378
+ cursor = page.nextCursor ?? undefined;
379
+ } while (cursor);
380
+ return all;
381
+ }
382
+
221
383
  export function createExportService(
222
384
  services: {
223
385
  posts: PostService;
@@ -226,21 +388,44 @@ export function createExportService(
226
388
  media: MediaService;
227
389
  },
228
390
  siteConfig: SiteConfig,
229
- deps: { storage?: StorageDriver | null } = {},
391
+ deps: {
392
+ storage?: StorageDriver | null;
393
+ /**
394
+ * Whether to bundle media bytes into the exported site under
395
+ * `static/media/`. Defaults to `true` (the `jant site export`
396
+ * archive, which must be self-contained). GitHub Sync passes
397
+ * `false` so media is linked by URL instead — it never reads or
398
+ * base64-encodes attachment bytes.
399
+ */
400
+ bundleMedia?: boolean;
401
+ /**
402
+ * Name of the GitHub repository this export is destined for, when it has
403
+ * one. It decides the Worker name in `wrangler.jsonc`: Cloudflare names a
404
+ * Worker after the repository it was imported from, and requires the two
405
+ * to match. GitHub Sync passes it; a ZIP export has no repository and
406
+ * falls back to the repository name Sync would suggest for the site.
407
+ */
408
+ repoName?: string | null;
409
+ } = {},
230
410
  ): ExportService {
231
411
  return {
232
412
  async generateHugoFiles() {
233
413
  const collectionDirectoryDataPromise =
234
414
  typeof services.collections.listDirectoryData === "function"
235
- ? services.collections.listDirectoryData()
415
+ ? // The export builds a public static site, so it sees what a
416
+ // signed-out reader sees. Language narrowing is not applied: the
417
+ // export walks every language itself.
418
+ services.collections.listDirectoryData({
419
+ isAuthenticated: false,
420
+ timeZone: siteConfig.timeZone,
421
+ })
236
422
  : Promise.resolve(null);
237
423
 
238
424
  // 1. Query all data
239
425
  const [allPosts, allCollections, collectionDirectoryData] =
240
426
  await Promise.all([
241
- services.posts.list({
427
+ listEveryPost(services.posts, {
242
428
  excludeReplies: false,
243
- limit: 10000,
244
429
  }),
245
430
  services.collections.list(),
246
431
  collectionDirectoryDataPromise,
@@ -252,19 +437,22 @@ export function createExportService(
252
437
  const rootPostIds = roots.map((p) => p.id);
253
438
 
254
439
  const [
255
- collectionsByPost,
256
- collectionEntriesByPost,
440
+ collectionsByRoot,
441
+ collectionEntriesByThread,
257
442
  rawMediaByPost,
258
443
  slugMap,
259
444
  aliasMap,
260
445
  collectionSlugMap,
446
+ standalonePaths,
261
447
  ] = await Promise.all([
262
- services.collections.getCollectionsByPostIds(allPostIds),
263
- services.collections.getCollectionEntriesByPostIds(allPostIds),
448
+ // A root's id is its Thread's id.
449
+ services.collections.getCollectionsByThreadIds(rootPostIds),
450
+ services.collections.getCollectionEntriesByThreadIds(rootPostIds),
264
451
  services.media.getByPostIds(allPostIds),
265
452
  services.paths.getPostSlugMap(allPostIds),
266
453
  services.paths.getPostAliases(rootPostIds),
267
454
  services.paths.getCollectionSlugMap(allCollections.map((c) => c.id)),
455
+ services.paths.listStandalonePaths(),
268
456
  ]);
269
457
  // Denormalized title lookup so front-matter collection refs can
270
458
  // include a title label without templates having to resolve another
@@ -279,16 +467,58 @@ export function createExportService(
279
467
  const collectionMetrics = buildExportedCollectionMetrics(
280
468
  allCollections,
281
469
  allPosts,
282
- collectionsByPost,
470
+ collectionsByRoot,
283
471
  );
284
- const exportedCollectionDirectoryItems =
285
- buildExportedCollectionDirectoryItems(
286
- collectionDirectoryData?.items ??
287
- allCollections.map((collection) => ({
288
- id: collection.id,
472
+ // Smart collections travel as their conditions (a section page per
473
+ // smart collection, below): a site importing the export recreates them,
474
+ // and the Hugo theme applies the same conditions to the posts it has, so
475
+ // the page keeps up with the repository instead of freezing the matches
476
+ // of the day it was exported.
477
+ const exportedSmartCollections: {
478
+ smartCollection: SmartCollection;
479
+ selection: HugoSmartCollectionSelection;
480
+ }[] = [];
481
+ const smartCollectionSlugMap = new Map<string, string>();
482
+ for (const smartCollection of collectionDirectoryData?.smartCollections ??
483
+ []) {
484
+ const selection = toExportedSelection(
485
+ smartCollection.selection,
486
+ collectionSlugMap,
487
+ );
488
+ if (!selection) {
489
+ // eslint-disable-next-line no-console -- A dropped page must leave a trace
490
+ console.warn(
491
+ `Export: smart collection /${smartCollection.slug} filters by a collection that no longer exists, so it was left out.`,
492
+ );
493
+ continue;
494
+ }
495
+ smartCollectionSlugMap.set(smartCollection.id, smartCollection.slug);
496
+ exportedSmartCollections.push({ smartCollection, selection });
497
+ }
498
+ const exportableDirectoryItems: ExportCollectionDirectorySourceItem[] =
499
+ collectionDirectoryData?.items
500
+ ? collectionDirectoryData.items
501
+ .filter(
502
+ (item) =>
503
+ item.type !== "smart_collection" ||
504
+ (item.smartCollection !== undefined &&
505
+ smartCollectionSlugMap.has(item.smartCollection.id)),
506
+ )
507
+ .map((item) => ({
508
+ type: item.type,
509
+ label: item.label,
510
+ url: item.url,
511
+ description: item.description,
512
+ collection: item.collection,
513
+ smartCollection: item.smartCollection,
514
+ }))
515
+ : allCollections.map((collection) => ({
289
516
  type: "collection" as const,
290
517
  collection,
291
- })),
518
+ }));
519
+ const exportedCollectionDirectoryItems =
520
+ buildExportedCollectionDirectoryItems(
521
+ exportableDirectoryItems,
292
522
  collectionSlugMap,
293
523
  collectionMetrics,
294
524
  );
@@ -300,13 +530,19 @@ export function createExportService(
300
530
  list.push(reply);
301
531
  repliesByThread.set(reply.threadId, list);
302
532
  }
303
- // Sort replies by createdAt within each thread
533
+ // Thread order, as `posts.getThread` reads it: after the root, which
534
+ // leads as `_index.md`, creation time, then ID.
304
535
  for (const list of repliesByThread.values()) {
305
- list.sort((a, b) => a.createdAt - b.createdAt);
536
+ list.sort(
537
+ (a, b) =>
538
+ a.createdAt - b.createdAt ||
539
+ (a.id < b.id ? -1 : a.id > b.id ? 1 : 0),
540
+ );
306
541
  }
307
542
 
308
543
  // 3. Build file list
309
544
  const exportFiles: ExportFile[] = [];
545
+ const bundleMedia = deps.bundleMedia ?? true;
310
546
 
311
547
  // Generate thread bundles (root _index.md + per-reply index.md).
312
548
  for (const root of roots) {
@@ -314,9 +550,9 @@ export function createExportService(
314
550
  const threadReplies = repliesByThread.get(root.id) ?? [];
315
551
  const rootAliases = [...(aliasMap.get(root.id) ?? [])];
316
552
 
317
- const rootCollectionEntries = buildExportedCollectionEntriesForPost(
553
+ const rootCollectionEntries = buildExportedCollectionEntriesForThread(
318
554
  root.id,
319
- collectionEntriesByPost,
555
+ collectionEntriesByThread,
320
556
  collectionSlugMap,
321
557
  collectionTitleMap,
322
558
  );
@@ -328,23 +564,45 @@ export function createExportService(
328
564
  rootAliases,
329
565
  rootCollectionEntries,
330
566
  slugMap,
331
- collectionEntriesByPost,
332
- collectionSlugMap,
333
- collectionTitleMap,
334
567
  rawMediaByPost,
335
568
  siteConfig,
336
569
  deps.storage ?? null,
570
+ bundleMedia,
337
571
  );
338
572
  exportFiles.push(...bundleFiles);
339
573
  }
340
574
 
341
- // Collection landing pages (`content/{slug}/_index.md`).
575
+ // Collection landing pages (`content/{slug}/_index.md`), with the
576
+ // custom URLs that name them.
577
+ const collectionAliases = await services.paths.getCollectionAliases(
578
+ allCollections.map((c) => c.id),
579
+ );
342
580
  for (const collection of allCollections) {
343
581
  const slug = collectionSlugMap.get(collection.id) ?? collection.slug;
344
- const entryCount = collectionMetrics.get(collection.id)?.postCount ?? 0;
582
+ const entryCount =
583
+ collectionMetrics.get(collection.id)?.threadCount ?? 0;
345
584
  exportFiles.push({
346
585
  path: `content/${slug}/_index.md`,
347
- content: await buildCollectionSection(collection, slug, entryCount),
586
+ content: await buildCollectionSection(
587
+ collection,
588
+ slug,
589
+ entryCount,
590
+ siteConfig.rssFeedsEnabled,
591
+ collectionAliases.get(collection.id) ?? [],
592
+ ),
593
+ });
594
+ }
595
+
596
+ // Smart collection landing pages: the conditions, which the theme's
597
+ // `smart-collection-members` partial applies to the exported posts.
598
+ for (const { smartCollection, selection } of exportedSmartCollections) {
599
+ exportFiles.push({
600
+ path: `content/${smartCollection.slug}/_index.md`,
601
+ content: await buildSmartCollectionSection(
602
+ smartCollection,
603
+ selection,
604
+ siteConfig.rssFeedsEnabled,
605
+ ),
348
606
  });
349
607
  }
350
608
 
@@ -363,16 +621,36 @@ export function createExportService(
363
621
  });
364
622
  exportFiles.push({
365
623
  path: "content/archive/_index.md",
366
- content: await buildArchiveSection(),
624
+ content: await buildArchiveSection(siteConfig.rssFeedsEnabled),
367
625
  });
368
626
 
369
627
  const usedSlugs = new Set<string>();
370
628
  for (const s of slugMap.values()) usedSlugs.add(s);
371
629
  for (const s of collectionSlugMap.values()) usedSlugs.add(s);
372
- if (!usedSlugs.has("featured")) {
630
+ for (const s of smartCollectionSlugMap.values()) usedSlugs.add(s);
631
+ const hasFeaturedSection = !usedSlugs.has("featured");
632
+ if (hasFeaturedSection) {
373
633
  exportFiles.push({
374
634
  path: "content/featured/_index.md",
375
- content: await buildFeaturedSection(),
635
+ content: await buildFeaturedSection(siteConfig.rssFeedsEnabled),
636
+ });
637
+ }
638
+
639
+ // Feed subscribers are the one audience the export can lose silently:
640
+ // their reader polls a `/feed` address that this site does not serve.
641
+ // With feeds off there is nothing to redirect to, and the live site had
642
+ // no feeds to have been subscribed to either. The author's own
643
+ // redirects go in too; an old feed address is often one of them.
644
+ const redirectSections = [
645
+ siteConfig.rssFeedsEnabled
646
+ ? buildFeedRedirects(siteConfig.mainRssFeed, hasFeaturedSection)
647
+ : null,
648
+ buildCustomUrlRedirects(standalonePaths),
649
+ ].filter((section): section is string => section !== null);
650
+ if (redirectSections.length > 0) {
651
+ exportFiles.push({
652
+ path: "static/_redirects",
653
+ content: redirectSections.join("\n"),
376
654
  });
377
655
  }
378
656
 
@@ -385,6 +663,12 @@ export function createExportService(
385
663
  siteConfig,
386
664
  iconAssets,
387
665
  exportedCollectionDirectoryItems,
666
+ {
667
+ postSlugs: slugMap,
668
+ collectionSlugs: collectionSlugMap,
669
+ smartCollectionSlugs: smartCollectionSlugMap,
670
+ standalonePaths,
671
+ },
388
672
  ),
389
673
  });
390
674
 
@@ -433,6 +717,10 @@ export function createExportService(
433
717
  path: "themes/jant/layouts/collection/single.html",
434
718
  content: LAYOUT_COLLECTION_SINGLE,
435
719
  });
720
+ exportFiles.push({
721
+ path: "themes/jant/layouts/partials/jant-data.html",
722
+ content: PARTIAL_JANT_DATA,
723
+ });
436
724
  exportFiles.push({
437
725
  path: "themes/jant/layouts/partials/head.html",
438
726
  content: PARTIAL_HEAD,
@@ -465,6 +753,34 @@ export function createExportService(
465
753
  path: "themes/jant/layouts/partials/thread-preview.html",
466
754
  content: PARTIAL_THREAD_PREVIEW,
467
755
  });
756
+ exportFiles.push({
757
+ path: "themes/jant/layouts/partials/featured-thread.html",
758
+ content: PARTIAL_FEATURED_THREAD,
759
+ });
760
+ exportFiles.push({
761
+ path: "themes/jant/layouts/smart_collection/list.html",
762
+ content: LAYOUT_SMART_COLLECTION_LIST,
763
+ });
764
+ exportFiles.push({
765
+ path: "themes/jant/layouts/partials/smart-collection-members.html",
766
+ content: PARTIAL_SMART_COLLECTION_MEMBERS,
767
+ });
768
+ exportFiles.push({
769
+ path: "themes/jant/layouts/partials/collection-threads.html",
770
+ content: PARTIAL_COLLECTION_THREADS,
771
+ });
772
+ exportFiles.push({
773
+ path: "themes/jant/layouts/partials/collection-members.html",
774
+ content: PARTIAL_COLLECTION_MEMBERS,
775
+ });
776
+ exportFiles.push({
777
+ path: "themes/jant/layouts/partials/latest-members.html",
778
+ content: PARTIAL_LATEST_MEMBERS,
779
+ });
780
+ exportFiles.push({
781
+ path: "themes/jant/layouts/partials/featured-members.html",
782
+ content: PARTIAL_FEATURED_MEMBERS,
783
+ });
468
784
  exportFiles.push({
469
785
  path: "themes/jant/layouts/_default/rss.xml",
470
786
  content: LAYOUT_RSS,
@@ -514,28 +830,48 @@ export function createExportService(
514
830
 
515
831
  exportFiles.push({
516
832
  path: "README.md",
517
- content: buildReadme(siteConfig.siteName),
833
+ content: buildReadme(siteConfig, hasFeaturedSection),
518
834
  });
519
835
  exportFiles.push({
520
836
  path: ".gitignore",
521
837
  content: buildGitignore(),
522
838
  });
839
+ exportFiles.push({
840
+ path: WRANGLER_CONFIG_PATH,
841
+ content: buildWranglerConfig(siteConfig, deps.repoName),
842
+ scaffoldOnce: true,
843
+ });
523
844
 
524
845
  return exportFiles;
525
846
  },
526
847
 
527
848
  async generateHugoSite() {
528
849
  const exportFiles = await this.generateHugoFiles();
529
- const { zipSync } = await import("fflate");
530
- const encoder = new TextEncoder();
531
- const files: Record<string, Uint8Array> = {};
532
- for (const file of exportFiles) {
533
- files[file.path] =
534
- typeof file.content === "string"
535
- ? encoder.encode(file.content)
536
- : file.content;
850
+ const storage = deps.storage ?? null;
851
+ const lastModified = new Date();
852
+
853
+ async function* entries() {
854
+ for (const file of exportFiles) {
855
+ if (!isStoredExportFile(file)) {
856
+ yield { name: file.path, lastModified, input: file.content };
857
+ continue;
858
+ }
859
+
860
+ const object = storage ? await storage.get(file.storageKey) : null;
861
+ if (!object?.body) {
862
+ // The archive is already streaming; say which file is missing
863
+ // rather than leave it out without a trace.
864
+ // eslint-disable-next-line no-console -- A dropped file must leave a trace
865
+ console.warn(
866
+ `Export: ${file.storageKey} is missing from storage, so ${file.path} is not in the archive.`,
867
+ );
868
+ continue;
869
+ }
870
+ yield { name: file.path, lastModified, input: object.body };
871
+ }
537
872
  }
538
- return zipSync(files);
873
+
874
+ return makeZip(entries());
539
875
  },
540
876
  };
541
877
  }
@@ -613,9 +949,9 @@ async function buildSiteIconAssets(
613
949
  // Thread bundle generation
614
950
  // ---------------------------------------------------------------------------
615
951
 
616
- function buildExportedCollectionEntriesForPost(
617
- postId: string,
618
- collectionEntriesByPost: Map<
952
+ function buildExportedCollectionEntriesForThread(
953
+ threadId: string,
954
+ collectionEntriesByThread: Map<
619
955
  string,
620
956
  {
621
957
  collectionId: string;
@@ -627,7 +963,7 @@ function buildExportedCollectionEntriesForPost(
627
963
  collectionSlugMap: Map<string, string>,
628
964
  collectionTitleMap: Map<string, string>,
629
965
  ): ExportedCollectionEntry[] {
630
- const entries = collectionEntriesByPost.get(postId) ?? [];
966
+ const entries = collectionEntriesByThread.get(threadId) ?? [];
631
967
  const resolved: ExportedCollectionEntry[] = [];
632
968
  for (const entry of entries) {
633
969
  const slug = collectionSlugMap.get(entry.collectionId);
@@ -644,6 +980,25 @@ function buildExportedCollectionEntriesForPost(
644
980
  return resolved;
645
981
  }
646
982
 
983
+ /**
984
+ * Whether the site's timeline cuts this post's text short.
985
+ *
986
+ * Shares the boundary with the served feed rather than approximating it: Hugo
987
+ * has its own summary rule and would cut somewhere else, so the answer is
988
+ * computed here and carried as front matter.
989
+ *
990
+ * @param post - The post being exported
991
+ * @returns true when the timeline shows less than the post's page
992
+ * @example
993
+ * isPostTruncated(longArticle); // true
994
+ */
995
+ function isPostTruncated(post: Post): boolean {
996
+ return (
997
+ extractTimelineSummary(post.body, !!post.title, { namespace: post.id })
998
+ ?.hasMore === true
999
+ );
1000
+ }
1001
+
647
1002
  function collectionEntriesToRefs(
648
1003
  entries: readonly ExportedCollectionEntry[],
649
1004
  ): HugoCollectionRef[] {
@@ -661,14 +1016,13 @@ interface MediaEmission {
661
1016
  entry: JantMedia;
662
1017
  /**
663
1018
  * Site-relative path under `static/` where the primary bytes should
664
- * land, or null when the media links to a remote public URL and no
665
- * bytes need to be emitted.
1019
+ * land, or null when the media is linked by URL and no bytes need to
1020
+ * be emitted.
666
1021
  */
667
1022
  inlinePath: string | null;
668
1023
  /**
669
1024
  * Site-relative path under `static/` where the poster bytes should
670
- * land, or null when there's no poster or the poster is linked via
671
- * a public URL.
1025
+ * land, or null when there's no poster or the poster is linked by URL.
672
1026
  */
673
1027
  inlinePosterPath: string | null;
674
1028
  }
@@ -681,26 +1035,42 @@ interface MediaEmission {
681
1035
  * When the media's provider has a reachable public URL (R2/S3/local
682
1036
  * proxy configured with a `*_public_url`), `src` points at that absolute
683
1037
  * URL and no bytes are emitted — the exported site stays small and the
684
- * media keeps being served from wherever it already lives. Without a
685
- * public URL the bytes are written to `static/media/{id}.ext` and `src`
686
- * is the site-relative path.
1038
+ * media keeps being served from wherever it already lives.
1039
+ *
1040
+ * Otherwise behavior depends on `bundleMedia`:
1041
+ * - `true` (the `jant site export` archive): bytes are written to
1042
+ * `static/media/{id}.ext` and `src` is the site-relative path, so the
1043
+ * archive is self-contained.
1044
+ * - `false` (GitHub Sync): no bytes are emitted. `src` falls back to the
1045
+ * site's own URL so it stays an absolute, resolvable link — the worker
1046
+ * already serves these objects at `/{storageKey}`. This keeps Sync
1047
+ * from reading and base64-encoding every attachment on every push.
1048
+ *
1049
+ * When `bundleMedia` is false but the site URL is unknown, bundling is
1050
+ * used as a last resort to avoid emitting a broken relative link.
687
1051
  */
688
1052
  function buildMediaEmission(
689
1053
  media: Media,
690
1054
  siteConfig: SiteConfig,
1055
+ bundleMedia: boolean,
691
1056
  ): MediaEmission {
692
- const publicUrl = getPublicUrlForProvider(
1057
+ const dedicatedPublicUrl = getPublicUrlForProvider(
693
1058
  media.provider,
694
1059
  siteConfig.r2PublicUrl,
695
1060
  siteConfig.s3PublicUrl,
696
1061
  siteConfig.localPublicUrl,
697
1062
  );
698
- const hasPublic = Boolean(publicUrl);
1063
+ const siteFallbackUrl =
1064
+ !bundleMedia && siteConfig.siteUrl.trim() ? siteConfig.siteUrl : undefined;
1065
+ const mediaBaseUrl = dedicatedPublicUrl || siteFallbackUrl;
1066
+ const hasRemoteUrl = Boolean(mediaBaseUrl);
699
1067
 
700
1068
  const ext = extOfFilename(media.filename);
701
1069
  const localName = `${media.id}${ext}`;
702
1070
  const localPath = `/media/${localName}`;
703
- const src = hasPublic ? getMediaUrl(media.storageKey, publicUrl) : localPath;
1071
+ const src = hasRemoteUrl
1072
+ ? getMediaUrl(media.storageKey, mediaBaseUrl)
1073
+ : localPath;
704
1074
 
705
1075
  const entry: JantMedia = {
706
1076
  id: media.id,
@@ -722,25 +1092,22 @@ function buildMediaEmission(
722
1092
  if (media.durationSeconds !== null && media.durationSeconds !== undefined) {
723
1093
  entry.duration_seconds = media.durationSeconds;
724
1094
  }
725
- entry.provider = media.provider;
726
- entry.storage_key = media.storageKey;
727
1095
 
728
1096
  let inlinePosterPath: string | null = null;
729
1097
  if (media.posterKey) {
730
1098
  const posterExt = extOfStorageKey(media.posterKey);
731
1099
  const posterLocalName = `${media.id}-poster.${posterExt}`;
732
- entry.poster = hasPublic
733
- ? getMediaUrl(media.posterKey, publicUrl)
1100
+ entry.poster = hasRemoteUrl
1101
+ ? getMediaUrl(media.posterKey, mediaBaseUrl)
734
1102
  : `/media/${posterLocalName}`;
735
- entry.poster_key = media.posterKey;
736
- if (!hasPublic) {
1103
+ if (!hasRemoteUrl) {
737
1104
  inlinePosterPath = `static/media/${posterLocalName}`;
738
1105
  }
739
1106
  }
740
1107
 
741
1108
  return {
742
1109
  entry,
743
- inlinePath: hasPublic ? null : `static/media/${localName}`,
1110
+ inlinePath: hasRemoteUrl ? null : `static/media/${localName}`,
744
1111
  inlinePosterPath,
745
1112
  };
746
1113
  }
@@ -778,35 +1145,63 @@ async function buildThreadBundle(
778
1145
  rootAliases: string[],
779
1146
  rootCollectionEntries: ExportedCollectionEntry[],
780
1147
  slugMap: Map<string, string>,
781
- collectionEntriesByPost: Map<
782
- string,
783
- {
784
- collectionId: string;
785
- createdAt: number;
786
- position: number;
787
- pinnedAt: number | null;
788
- }[]
789
- >,
790
- collectionSlugMap: Map<string, string>,
791
- collectionTitleMap: Map<string, string>,
792
1148
  mediaByPost: Map<string, Media[]>,
793
1149
  siteConfig: SiteConfig,
794
1150
  storage: StorageDriver | null,
1151
+ bundleMedia: boolean,
795
1152
  ): Promise<ExportFile[]> {
796
1153
  const files: ExportFile[] = [];
1154
+ const featuredPosts = [root, ...threadReplies].filter(
1155
+ (post) => post.status === "published" && post.featuredAt !== null,
1156
+ );
1157
+ const featuredPostIds = featuredPosts.map((post) => post.id);
1158
+ const featuredSortAt = featuredPosts.reduce<number | null>(
1159
+ (latest, post) =>
1160
+ Math.max(latest ?? -1, post.publishedAt ?? post.createdAt),
1161
+ null,
1162
+ );
797
1163
 
798
1164
  // Root aliases = historical root slugs + every reply slug (so
799
1165
  // /{reply-slug}/ gets a Hugo alias page that redirects/anchors to
800
1166
  // the thread root).
801
- const aliases = [...rootAliases];
802
- for (const reply of threadReplies) {
803
- const replySlug = slugMap.get(reply.id) ?? reply.slug;
804
- aliases.push(`/${replySlug}/`);
1167
+ //
1168
+ // A draft or private root is not built, so its alias pages would have no
1169
+ // target: Hugo still writes them, `.Permalink` resolves to the empty
1170
+ // string, and the result is a page that redirects to itself. The thread
1171
+ // is unpublished, so its historical URLs are unpublished with it.
1172
+ const rootIsUnpublished =
1173
+ root.status === "draft" || root.visibility === "private";
1174
+ const aliases: string[] = [];
1175
+ if (!rootIsUnpublished) {
1176
+ aliases.push(...rootAliases);
1177
+ for (const reply of threadReplies) {
1178
+ const replySlug = slugMap.get(reply.id) ?? reply.slug;
1179
+ aliases.push(`/${replySlug}/`);
1180
+ }
805
1181
  }
806
1182
 
1183
+ // The `<id>` Jant's feeds give this Thread's entry, kept as the string it
1184
+ // was. A reader recognises an entry it has seen by that string alone, and
1185
+ // the Hugo page's own URL differs from it — a trailing slash always, and
1186
+ // the slug where Jant uses a custom path — so an exported feed that used
1187
+ // the page URL would show every entry to every subscriber again after the
1188
+ // move. RFC 4287 §4.2.6 asks for exactly this: an entry's ID must not
1189
+ // change when its feed is migrated or exported.
1190
+ const siteUrl = siteConfig.siteUrl.trim();
1191
+ const feedId =
1192
+ !rootIsUnpublished && siteUrl
1193
+ ? toAbsoluteSiteUrl(
1194
+ getPostPath(rootSlug, rootAliases[0]),
1195
+ siteUrl,
1196
+ siteConfig.sitePathPrefix,
1197
+ )
1198
+ : undefined;
1199
+
807
1200
  // Root front matter.
808
1201
  const rootMedia = mediaByPost.get(root.id) ?? [];
809
- const rootEmissions = rootMedia.map((m) => buildMediaEmission(m, siteConfig));
1202
+ const rootEmissions = rootMedia.map((m) =>
1203
+ buildMediaEmission(m, siteConfig, bundleMedia),
1204
+ );
810
1205
  const rootMediaList = rootEmissions.map((e) => e.entry);
811
1206
  const rootFrontMatter: HugoFrontMatter = {
812
1207
  id: root.id,
@@ -815,6 +1210,10 @@ async function buildThreadBundle(
815
1210
  root.publishedAt !== null
816
1211
  ? toISOString(root.publishedAt)
817
1212
  : toISOString(root.createdAt),
1213
+ created:
1214
+ root.publishedAt !== null && root.createdAt !== root.publishedAt
1215
+ ? toISOString(root.createdAt)
1216
+ : undefined,
818
1217
  updated:
819
1218
  root.updatedAt && root.updatedAt !== root.publishedAt
820
1219
  ? toISOString(root.updatedAt)
@@ -830,15 +1229,19 @@ async function buildThreadBundle(
830
1229
  : undefined,
831
1230
  slug: rootSlug,
832
1231
  type: "post",
833
- draft:
834
- root.status === "draft" || root.visibility === "private"
835
- ? true
836
- : undefined,
1232
+ draft: rootIsUnpublished ? true : undefined,
837
1233
  aliases: aliases.length > 0 ? aliases : undefined,
1234
+ feed_id: feedId,
838
1235
  format: root.format,
839
1236
  status: root.status,
840
1237
  visibility: root.visibility,
1238
+ // Language is Thread-uniform, so only the root emits it; the importer
1239
+ // re-derives replies from their root. `translation_group` is an opaque
1240
+ // shared key — importing the whole site keeps translated posts linked.
1241
+ language: root.language ?? undefined,
1242
+ translation_group: root.translationGroupId ?? undefined,
841
1243
  summary_text: getArchiveSummaryText(root) ?? undefined,
1244
+ truncated: isPostTruncated(root) || undefined,
842
1245
  link_url: root.format === "link" && root.url ? root.url : undefined,
843
1246
  source_name: root.format === "quote" && root.title ? root.title : undefined,
844
1247
  source_url: root.format === "quote" && root.url ? root.url : undefined,
@@ -846,6 +1249,9 @@ async function buildThreadBundle(
846
1249
  rating: root.rating ?? undefined,
847
1250
  featured_at:
848
1251
  root.featuredAt !== null ? toISOString(root.featuredAt) : undefined,
1252
+ featured_post_ids: featuredPostIds.length > 0 ? featuredPostIds : undefined,
1253
+ featured_sort_at:
1254
+ featuredSortAt !== null ? toISOString(featuredSortAt) : undefined,
849
1255
  pinned_at: root.pinnedAt !== null ? toISOString(root.pinnedAt) : undefined,
850
1256
  root_aliases: rootAliases.length > 0 ? rootAliases : undefined,
851
1257
  collections:
@@ -855,7 +1261,7 @@ async function buildThreadBundle(
855
1261
  media: rootMediaList.length > 0 ? rootMediaList : undefined,
856
1262
  };
857
1263
 
858
- const rootBody = root.body ? tiptapJsonToMarkdown(root.body) : "";
1264
+ const rootBody = root.body ? postBodyToMarkdown(root.body, rootSlug) : "";
859
1265
  files.push({
860
1266
  path: `content/${rootSlug}/_index.md`,
861
1267
  content: `${await formatFrontMatter(rootFrontMatter)}\n${rootBody}${rootBody.endsWith("\n") ? "" : "\n"}`,
@@ -871,7 +1277,7 @@ async function buildThreadBundle(
871
1277
  media: rootMedia[i] as Media,
872
1278
  }))) {
873
1279
  if (emission.inlinePath) {
874
- const file = await readMediaResourceFile(
1280
+ const file = toStoredMediaFile(
875
1281
  storage,
876
1282
  media.storageKey,
877
1283
  emission.inlinePath,
@@ -879,7 +1285,7 @@ async function buildThreadBundle(
879
1285
  if (file) files.push(file);
880
1286
  }
881
1287
  if (emission.inlinePosterPath && media.posterKey) {
882
- const posterFile = await readMediaResourceFile(
1288
+ const posterFile = toStoredMediaFile(
883
1289
  storage,
884
1290
  media.posterKey,
885
1291
  emission.inlinePosterPath,
@@ -888,21 +1294,14 @@ async function buildThreadBundle(
888
1294
  }
889
1295
  }
890
1296
 
891
- // Replies as nested leaf bundles.
892
- for (const reply of threadReplies) {
1297
+ // Replies as nested leaf bundles, in Thread order.
1298
+ for (const [replyIndex, reply] of threadReplies.entries()) {
893
1299
  const replySlug = slugMap.get(reply.id) ?? reply.slug;
894
1300
  const replyMedia = mediaByPost.get(reply.id) ?? [];
895
1301
  const replyEmissions = replyMedia.map((m) =>
896
- buildMediaEmission(m, siteConfig),
1302
+ buildMediaEmission(m, siteConfig, bundleMedia),
897
1303
  );
898
1304
  const replyMediaList = replyEmissions.map((e) => e.entry);
899
- const replyCollectionEntries = buildExportedCollectionEntriesForPost(
900
- reply.id,
901
- collectionEntriesByPost,
902
- collectionSlugMap,
903
- collectionTitleMap,
904
- );
905
-
906
1305
  const replyFrontMatter: HugoFrontMatter = {
907
1306
  id: reply.id,
908
1307
  title: reply.format !== "quote" ? (reply.title ?? undefined) : undefined,
@@ -910,12 +1309,17 @@ async function buildThreadBundle(
910
1309
  reply.publishedAt !== null
911
1310
  ? toISOString(reply.publishedAt)
912
1311
  : toISOString(reply.createdAt),
1312
+ created:
1313
+ reply.publishedAt !== null && reply.createdAt !== reply.publishedAt
1314
+ ? toISOString(reply.createdAt)
1315
+ : undefined,
913
1316
  updated:
914
1317
  reply.updatedAt && reply.updatedAt !== reply.publishedAt
915
1318
  ? toISOString(reply.updatedAt)
916
1319
  : undefined,
917
1320
  slug: replySlug,
918
1321
  type: "post",
1322
+ weight: replyIndex + 1,
919
1323
  draft:
920
1324
  reply.status === "draft" || reply.visibility === "private"
921
1325
  ? true
@@ -925,24 +1329,24 @@ async function buildThreadBundle(
925
1329
  status: reply.status,
926
1330
  visibility: reply.visibility,
927
1331
  summary_text: getArchiveSummaryText(reply) ?? undefined,
1332
+ truncated: isPostTruncated(reply) || undefined,
928
1333
  link_url: reply.format === "link" && reply.url ? reply.url : undefined,
929
1334
  source_name:
930
1335
  reply.format === "quote" && reply.title ? reply.title : undefined,
931
1336
  source_url: reply.format === "quote" && reply.url ? reply.url : undefined,
932
1337
  quote_text: reply.quoteText ?? undefined,
933
1338
  rating: reply.rating ?? undefined,
1339
+ quiet_reply: reply.quietReply ? true : undefined,
934
1340
  featured_at:
935
1341
  reply.featuredAt !== null ? toISOString(reply.featuredAt) : undefined,
936
1342
  pinned_at:
937
1343
  reply.pinnedAt !== null ? toISOString(reply.pinnedAt) : undefined,
938
- collections:
939
- replyCollectionEntries.length > 0
940
- ? collectionEntriesToRefs(replyCollectionEntries)
941
- : undefined,
942
1344
  media: replyMediaList.length > 0 ? replyMediaList : undefined,
943
1345
  };
944
1346
 
945
- const replyBody = reply.body ? tiptapJsonToMarkdown(reply.body) : "";
1347
+ const replyBody = reply.body
1348
+ ? postBodyToMarkdown(reply.body, replySlug)
1349
+ : "";
946
1350
  files.push({
947
1351
  path: `content/${rootSlug}/${replySlug}/index.md`,
948
1352
  content: `${await formatFrontMatter(replyFrontMatter)}\n${replyBody}${replyBody.endsWith("\n") ? "" : "\n"}`,
@@ -953,7 +1357,7 @@ async function buildThreadBundle(
953
1357
  media: replyMedia[i] as Media,
954
1358
  }))) {
955
1359
  if (emission.inlinePath) {
956
- const file = await readMediaResourceFile(
1360
+ const file = toStoredMediaFile(
957
1361
  storage,
958
1362
  media.storageKey,
959
1363
  emission.inlinePath,
@@ -961,7 +1365,7 @@ async function buildThreadBundle(
961
1365
  if (file) files.push(file);
962
1366
  }
963
1367
  if (emission.inlinePosterPath && media.posterKey) {
964
- const posterFile = await readMediaResourceFile(
1368
+ const posterFile = toStoredMediaFile(
965
1369
  storage,
966
1370
  media.posterKey,
967
1371
  emission.inlinePosterPath,
@@ -975,25 +1379,17 @@ async function buildThreadBundle(
975
1379
  }
976
1380
 
977
1381
  /**
978
- * Read a media record's bytes from storage and return an ExportFile so
979
- * they can be bundled next to the post as a Hugo page resource. Returns
980
- * null when storage is unavailable or the object cannot be read, in
981
- * which case the front matter entry still points at the resource name
982
- * and the CLI's pull-media step (or a later sync) can fill it in.
1382
+ * Name a media object for the archive to bundle as `static/media/…`. Its
1383
+ * bytes are read when the archive is written. Null when the export has no
1384
+ * storage, in which case the front matter entry still points at the file and
1385
+ * the CLI's pull-media step can fill it in.
983
1386
  */
984
- async function readMediaResourceFile(
1387
+ function toStoredMediaFile(
985
1388
  storage: StorageDriver | null,
986
1389
  storageKey: string,
987
1390
  bundlePath: string,
988
- ): Promise<ExportFile | null> {
989
- if (!storage) return null;
990
- try {
991
- const bytes = await readStorageObjectBytes(storage, storageKey);
992
- if (!bytes) return null;
993
- return { path: bundlePath, content: bytes };
994
- } catch {
995
- return null;
996
- }
1391
+ ): ExportStoredFile | null {
1392
+ return storage ? { path: bundlePath, storageKey } : null;
997
1393
  }
998
1394
 
999
1395
  // ---------------------------------------------------------------------------
@@ -1016,22 +1412,22 @@ async function buildCollectionsSection(): Promise<string> {
1016
1412
  return `${await formatFrontMatter(frontMatter)}\n`;
1017
1413
  }
1018
1414
 
1019
- async function buildArchiveSection(): Promise<string> {
1415
+ async function buildArchiveSection(rssFeedsEnabled: boolean): Promise<string> {
1020
1416
  const frontMatter: HugoFrontMatter = {
1021
1417
  title: "Archive",
1022
1418
  type: "archive",
1023
1419
  // Opt into Atom output at /archive/index.xml.
1024
- outputs: ["html", "rss"],
1420
+ outputs: rssFeedsEnabled ? ["html", "rss"] : ["html"],
1025
1421
  };
1026
1422
  return `${await formatFrontMatter(frontMatter)}\n`;
1027
1423
  }
1028
1424
 
1029
- async function buildFeaturedSection(): Promise<string> {
1425
+ async function buildFeaturedSection(rssFeedsEnabled: boolean): Promise<string> {
1030
1426
  const frontMatter: HugoFrontMatter = {
1031
1427
  title: "Featured",
1032
1428
  type: "featured",
1033
1429
  // Opt into Atom output at /featured/index.xml.
1034
- outputs: ["html", "rss"],
1430
+ outputs: rssFeedsEnabled ? ["html", "rss"] : ["html"],
1035
1431
  };
1036
1432
  return `${await formatFrontMatter(frontMatter)}\n`;
1037
1433
  }
@@ -1040,16 +1436,63 @@ async function buildCollectionSection(
1040
1436
  collection: Collection,
1041
1437
  slug: string,
1042
1438
  entryCount: number,
1439
+ rssFeedsEnabled: boolean,
1440
+ aliases: string[],
1043
1441
  ): Promise<string> {
1044
1442
  const frontMatter: HugoFrontMatter = {
1045
1443
  title: collection.title,
1046
1444
  slug,
1047
1445
  type: "collection",
1048
- summary_text: collection.description ?? undefined,
1446
+ // Custom URLs for this Collection. Hugo writes a redirect page for each;
1447
+ // an import registers them again.
1448
+ aliases: aliases.length > 0 ? aliases : undefined,
1449
+ description: collection.description ?? undefined,
1049
1450
  sort_order: collection.sortOrder,
1050
1451
  entry_count: entryCount,
1051
1452
  // Opt into Atom output at /{slug}/index.xml.
1052
- outputs: ["html", "rss"],
1453
+ outputs: rssFeedsEnabled ? ["html", "rss"] : ["html"],
1454
+ };
1455
+ return `${await formatFrontMatter(frontMatter)}\n`;
1456
+ }
1457
+
1458
+ /**
1459
+ * A smart collection's conditions as its section page carries them: the
1460
+ * stored selection, with the collection named by slug rather than ID so an
1461
+ * import into another site can resolve it. Null when the collection it names
1462
+ * is gone.
1463
+ */
1464
+ function toExportedSelection(
1465
+ selection: SmartCollection["selection"],
1466
+ collectionSlugs: ReadonlyMap<string, string>,
1467
+ ): HugoSmartCollectionSelection | null {
1468
+ const { collection, media, ...rest } = selection;
1469
+ const exported: HugoSmartCollectionSelection = { ...rest };
1470
+ if (collection !== undefined) {
1471
+ const slug = collection[0] ? collectionSlugs.get(collection[0]) : undefined;
1472
+ if (!slug) return null;
1473
+ exported.collection = slug;
1474
+ }
1475
+ if (media !== undefined) {
1476
+ exported.media = typeof media === "string" ? media : [...media];
1477
+ }
1478
+ return exported;
1479
+ }
1480
+
1481
+ async function buildSmartCollectionSection(
1482
+ smartCollection: SmartCollection,
1483
+ selection: HugoSmartCollectionSelection,
1484
+ rssFeedsEnabled: boolean,
1485
+ ): Promise<string> {
1486
+ const frontMatter: HugoFrontMatter = {
1487
+ title: smartCollection.title,
1488
+ slug: smartCollection.slug,
1489
+ type: "smart_collection",
1490
+ description: smartCollection.description ?? undefined,
1491
+ sort_order: smartCollection.sort,
1492
+ display_layout: smartCollection.layout ?? undefined,
1493
+ selection,
1494
+ // Opt into Atom output at /{slug}/index.xml.
1495
+ outputs: rssFeedsEnabled ? ["html", "rss"] : ["html"],
1053
1496
  };
1054
1497
  return `${await formatFrontMatter(frontMatter)}\n`;
1055
1498
  }
@@ -1074,10 +1517,16 @@ function getArchiveSummaryText(post: Post): string | null {
1074
1517
  // serialized as `link_url` and rendered as a domain badge, so using
1075
1518
  // it as `summary_text` would duplicate that information.
1076
1519
  // - Note: body only. If the body is empty, there's nothing to describe.
1520
+ //
1521
+ // Note: we re-derive the body text from `post.body` (TipTap JSON) rather
1522
+ // than reusing `post.bodyText`, because `bodyText` is written with
1523
+ // `includeLinkHrefs: true` for FTS search indexing — that pollutes the
1524
+ // stored text with trailing link URLs. Here we need clean prose.
1525
+ const cleanBodyText = post.body ? extractBodyText(post.body) : null;
1077
1526
  const candidates =
1078
1527
  post.format === "quote"
1079
- ? [post.summary, post.bodyText, post.quoteText]
1080
- : [post.summary, post.bodyText];
1528
+ ? [post.summary, cleanBodyText, post.quoteText]
1529
+ : [post.summary, cleanBodyText];
1081
1530
 
1082
1531
  for (const candidate of candidates) {
1083
1532
  const normalized = normalizeArchiveText(candidate);
@@ -1212,7 +1661,37 @@ function buildExportedCollectionDirectoryItems(
1212
1661
  sequence: sequenceLabels[index] ?? "",
1213
1662
  label: item.label,
1214
1663
  url: item.url,
1215
- descriptionHtml: description ? renderMarkdown(description) : null,
1664
+ description: description || null,
1665
+ descriptionHtml: description
1666
+ ? renderMarkdown(description, {
1667
+ namespace: `collection-directory-link-${sequenceLabels[index] ?? index}`,
1668
+ })
1669
+ : null,
1670
+ });
1671
+ return;
1672
+ }
1673
+
1674
+ if (item.type === "smart_collection") {
1675
+ const smartCollection = item.smartCollection;
1676
+ if (!smartCollection?.slug) return;
1677
+ const smartDescription = smartCollection.description?.trim();
1678
+ exportedItems.push({
1679
+ type: "smart_collection",
1680
+ sequence: sequenceLabels[index] ?? "",
1681
+ slug: smartCollection.slug,
1682
+ title: smartCollection.title || smartCollection.slug,
1683
+ descriptionHtml: smartDescription
1684
+ ? renderMarkdown(smartDescription, {
1685
+ namespace: `smart-collection-${smartCollection.slug}`,
1686
+ })
1687
+ : null,
1688
+ entryCount: smartCollection.threadCount,
1689
+ recentActivityLabel: formatCollectionActivityLabel(
1690
+ smartCollection.recentActivityAt,
1691
+ ),
1692
+ recentActivityIso: formatCollectionActivityIso(
1693
+ smartCollection.recentActivityAt,
1694
+ ),
1216
1695
  });
1217
1696
  return;
1218
1697
  }
@@ -1237,12 +1716,12 @@ function buildExportedCollectionDirectoryItems(
1237
1716
  slug,
1238
1717
  title: collection.title || slug,
1239
1718
  descriptionHtml: collectionDescription
1240
- ? renderMarkdown(collectionDescription)
1719
+ ? renderMarkdown(collectionDescription, { namespace: collection.id })
1241
1720
  : null,
1242
1721
  entryCount:
1243
- metrics?.postCount ??
1244
- (typeof collection.postCount === "number"
1245
- ? collection.postCount
1722
+ metrics?.threadCount ??
1723
+ (typeof collection.threadCount === "number"
1724
+ ? collection.threadCount
1246
1725
  : undefined),
1247
1726
  recentActivityLabel: formatCollectionActivityLabel(activityTimestamp),
1248
1727
  recentActivityIso: formatCollectionActivityIso(activityTimestamp),
@@ -1255,21 +1734,18 @@ function buildExportedCollectionDirectoryItems(
1255
1734
  function buildExportedCollectionMetrics(
1256
1735
  collections: readonly Collection[],
1257
1736
  posts: readonly Post[],
1258
- collectionsByPost: ReadonlyMap<string, readonly Collection[]>,
1737
+ collectionsByThread: ReadonlyMap<string, readonly Collection[]>,
1259
1738
  ): Map<string, ExportedCollectionMetrics> {
1260
1739
  const metrics = new Map<string, ExportedCollectionMetrics>();
1261
1740
 
1262
1741
  for (const collection of collections) {
1263
1742
  metrics.set(collection.id, {
1264
- postCount: 0,
1743
+ threadCount: 0,
1265
1744
  recentActivityAt: collection.updatedAt,
1266
1745
  });
1267
1746
  }
1268
1747
 
1269
1748
  for (const post of posts) {
1270
- if (post.deletedAt !== null) {
1271
- continue;
1272
- }
1273
1749
  // Drafts and private posts are excluded — they won't reach Hugo.
1274
1750
  if (post.status === "draft" || post.visibility === "private") {
1275
1751
  continue;
@@ -1279,20 +1755,16 @@ function buildExportedCollectionMetrics(
1279
1755
  continue;
1280
1756
  }
1281
1757
 
1282
- const activityAt =
1283
- post.lastActivityAt ??
1284
- post.publishedAt ??
1285
- post.updatedAt ??
1286
- post.createdAt;
1287
- const postCollections = collectionsByPost.get(post.id) ?? [];
1758
+ const activityAt = getRootActivityAt(post);
1759
+ const threadCollections = collectionsByThread.get(post.id) ?? [];
1288
1760
 
1289
- for (const collection of postCollections) {
1761
+ for (const collection of threadCollections) {
1290
1762
  const current = metrics.get(collection.id);
1291
1763
  if (!current) {
1292
1764
  continue;
1293
1765
  }
1294
1766
 
1295
- if (current.postCount === 0) {
1767
+ if (current.threadCount === 0) {
1296
1768
  current.recentActivityAt = activityAt;
1297
1769
  } else {
1298
1770
  current.recentActivityAt = Math.max(
@@ -1300,7 +1772,7 @@ function buildExportedCollectionMetrics(
1300
1772
  activityAt,
1301
1773
  );
1302
1774
  }
1303
- current.postCount += 1;
1775
+ current.threadCount += 1;
1304
1776
  }
1305
1777
  }
1306
1778
 
@@ -1312,37 +1784,28 @@ function buildExportedCollectionMetrics(
1312
1784
  // ---------------------------------------------------------------------------
1313
1785
 
1314
1786
  /**
1315
- * System nav items on the main site store an empty `label` in the DB and
1316
- * resolve their display text at render time through i18n
1317
- * (`getNavItemDisplayLabel`). The Hugo export has no i18n runtime, so fall
1318
- * back to these English defaults when serializing to `data/jant.toml`.
1319
- * Users can still override by setting a custom label on the nav item.
1787
+ * Label to bake into the static site.
1788
+ *
1789
+ * Mirrors `getNavItemDisplayLabel`: a stored label is the author's own words
1790
+ * and wins, an empty one means the item follows what it points at. The export
1791
+ * has no i18n runtime, so built-in destinations fall back to their English
1792
+ * default rather than a translated one.
1320
1793
  */
1321
- const SYSTEM_NAV_FALLBACK_LABELS: Record<string, string> = {
1322
- latest: "Latest",
1323
- featured: "Featured",
1324
- collections: "Collections",
1325
- archive: "Archive",
1326
- rss: "RSS",
1327
- settings: "Settings",
1328
- };
1329
-
1330
1794
  function resolveNavItemLabel(item: SiteConfig["navItems"][number]): string {
1331
1795
  if (item.label) return item.label;
1332
1796
  if (item.systemKey) {
1333
- const fallback = SYSTEM_NAV_FALLBACK_LABELS[item.systemKey];
1334
- if (fallback) return fallback;
1797
+ const definition = SYSTEM_NAV_KEYS[item.systemKey as SystemNavKey];
1798
+ if (definition) return definition.defaultLabel;
1335
1799
  }
1336
- return item.label;
1800
+ return item.targetTitle?.trim() || item.label;
1337
1801
  }
1338
1802
 
1339
1803
  /**
1340
1804
  * Resolve a nav item's final href for the Hugo export.
1341
1805
  *
1342
1806
  * Mirrors the runtime logic in `lib/view.ts:toNavItemView`. System URLs
1343
- * stored in the DB ("/latest", "/featured") are not real routes — they get
1344
- * rewritten to "/" when they match `homeDefaultView`, otherwise they
1345
- * resolve to the dedicated path.
1807
+ * stored in the DB are canonicalized during export so stale DB values do not
1808
+ * leak into the static site's navigation.
1346
1809
  *
1347
1810
  * The "rss" system nav item points at whichever Atom feed the site has
1348
1811
  * configured as its main feed: `mainRssFeed === "featured"` → the featured
@@ -1351,18 +1814,20 @@ function resolveNavItemLabel(item: SiteConfig["navItems"][number]): string {
1351
1814
  */
1352
1815
  function resolveNavItemUrl(
1353
1816
  item: SiteConfig["navItems"][number],
1354
- homeDefaultView: string,
1355
1817
  mainRssFeed: string,
1356
1818
  ): string {
1357
1819
  if (item.systemKey === "latest") {
1358
- return homeDefaultView === "latest" ? "/" : "/latest/";
1820
+ return "/";
1359
1821
  }
1360
1822
  if (item.systemKey === "featured") {
1361
- return homeDefaultView === "featured" ? "/" : "/featured/";
1823
+ return "/featured/";
1362
1824
  }
1363
1825
  if (item.systemKey === "collections") return "/collections/";
1364
1826
  if (item.systemKey === "archive") return "/archive/";
1365
- if (item.systemKey === "rss") {
1827
+ // `subscribe` addresses a Jant route, and the exported site has no page at
1828
+ // it. Rather than exporting a nav entry that 404s, it resolves to the feed
1829
+ // that page would have recommended — the same file `rss` points at.
1830
+ if (item.systemKey === "rss" || item.systemKey === "subscribe") {
1366
1831
  return mainRssFeed === "featured" ? "/featured/index.xml" : "/index.xml";
1367
1832
  }
1368
1833
  return item.url;
@@ -1392,7 +1857,12 @@ function buildHugoToml(config: SiteConfig): string {
1392
1857
  `languageCode = "${escapeTomlString(language)}"`,
1393
1858
  `defaultContentLanguage = "${escapeTomlString(language)}"`,
1394
1859
  'theme = "jant"',
1395
- `paginate = ${config.pageSize}`,
1860
+ // No site-level `paginate` / `[pagination] pagerSize`: every paginated
1861
+ // template calls `.Paginate` with an explicit page size taken from
1862
+ // `params.page_size` / `params.archive_page_size`, so a site-level value
1863
+ // would never be read. `paginate` was also deprecated in Hugo v0.128.0
1864
+ // and has since been removed, so emitting it fails the build outright on
1865
+ // any version that only knows `[pagination] pagerSize`.
1396
1866
  "enableRobotsTXT = true",
1397
1867
  // Disable Hugo's built-in taxonomies — jant has no tags or categories
1398
1868
  // and the default empty /tags/ and /categories/ pages are noise. This
@@ -1416,7 +1886,7 @@ function buildHugoToml(config: SiteConfig): string {
1416
1886
  // Override the built-in RSS output format to emit Atom instead of
1417
1887
  // RSS 2.0 so the wire format mirrors the main site's `lib/feed.ts`.
1418
1888
  "[outputs]",
1419
- ' home = ["html", "rss"]',
1889
+ ` home = ["html"${config.rssFeedsEnabled ? ', "rss"' : ""}]`,
1420
1890
  // Hugo's default for sections is ["html", "rss"] — without overriding
1421
1891
  // it here every root post (which is a section) would get its own
1422
1892
  // /{slug}/index.xml. Turn sections off by default and re-enable RSS
@@ -1440,8 +1910,10 @@ function buildHugoToml(config: SiteConfig): string {
1440
1910
  "",
1441
1911
  "[params]",
1442
1912
  ` description = "${escapeTomlString(config.siteDescription)}"`,
1443
- ` home_default_view = "${escapeTomlString(config.homeDefaultView)}"`,
1444
1913
  ` main_rss_feed = "${escapeTomlString(config.mainRssFeed)}"`,
1914
+ ` archive_default_layout = "${escapeTomlString(config.archiveDefaultLayout)}"`,
1915
+ ` public_api_enabled = ${config.publicApiEnabled}`,
1916
+ ` rss_feeds_enabled = ${config.rssFeedsEnabled}`,
1445
1917
  ` show_jant_branding_on_home = ${config.showJantBrandingOnHome}`,
1446
1918
  ` show_header_avatar = ${config.showHeaderAvatar}`,
1447
1919
  ` noindex = ${config.noindex}`,
@@ -1467,21 +1939,60 @@ function buildHugoToml(config: SiteConfig): string {
1467
1939
  return `${parts.join("\n")}\n`;
1468
1940
  }
1469
1941
 
1942
+ /** What `data/jant.toml` needs to name nav targets and standalone URLs. */
1943
+ interface JantDataTargets {
1944
+ postSlugs: ReadonlyMap<string, string>;
1945
+ collectionSlugs: ReadonlyMap<string, string>;
1946
+ smartCollectionSlugs: ReadonlyMap<string, string>;
1947
+ standalonePaths: readonly PathRecord[];
1948
+ }
1949
+
1950
+ /** The key and slug `data/jant.toml` names a nav item's target by. */
1951
+ function resolveNavItemTarget(
1952
+ item: SiteConfig["navItems"][number],
1953
+ targets: JantDataTargets,
1954
+ ): { key: string; slug: string } | null {
1955
+ const slug =
1956
+ item.type === "collection" && item.collectionId
1957
+ ? targets.collectionSlugs.get(item.collectionId)
1958
+ : item.type === "smart_collection" && item.smartCollectionId
1959
+ ? targets.smartCollectionSlugs.get(item.smartCollectionId)
1960
+ : item.type === "page" && item.postId
1961
+ ? targets.postSlugs.get(item.postId)
1962
+ : undefined;
1963
+ if (!slug) return null;
1964
+ const key =
1965
+ item.type === "collection"
1966
+ ? "collection_slug"
1967
+ : item.type === "smart_collection"
1968
+ ? "smart_collection_slug"
1969
+ : "post_slug";
1970
+ return { key, slug };
1971
+ }
1972
+
1470
1973
  function buildJantDataToml(
1471
1974
  config: SiteConfig,
1472
1975
  iconAssets: SiteIconAssets,
1473
1976
  directoryItems: readonly ExportedCollectionDirectoryItem[],
1977
+ targets: JantDataTargets,
1474
1978
  ): string {
1475
- const footerHtml = config.siteFooter ? renderMarkdown(config.siteFooter) : "";
1979
+ const footerHtml = config.siteFooter
1980
+ ? renderMarkdown(config.siteFooter, { namespace: "site-footer" })
1981
+ : "";
1476
1982
  const parts: string[] = [
1477
1983
  'format = "jant-site"',
1478
- "version = 1",
1984
+ `version = ${SITE_EXPORT_FORMAT_VERSION}`,
1479
1985
  `generated_at = "${escapeTomlString(toISOString(Math.floor(Date.now() / 1000)))}"`,
1480
1986
  `site_name = "${escapeTomlString(config.siteName)}"`,
1481
1987
  `site_description = "${escapeTomlString(config.siteDescription)}"`,
1482
1988
  `site_language = "${escapeTomlString(config.siteLanguage)}"`,
1483
- `home_default_view = "${escapeTomlString(config.homeDefaultView)}"`,
1989
+ `multilingual_enabled = ${config.multilingualEnabled}`,
1990
+ `additional_languages = "${escapeTomlString(config.additionalLanguages.join(","))}"`,
1484
1991
  `main_rss_feed = "${escapeTomlString(config.mainRssFeed)}"`,
1992
+ `time_zone = "${escapeTomlString(config.timeZone)}"`,
1993
+ `archive_default_layout = "${escapeTomlString(config.archiveDefaultLayout)}"`,
1994
+ `public_api_enabled = ${config.publicApiEnabled}`,
1995
+ `rss_feeds_enabled = ${config.rssFeedsEnabled}`,
1485
1996
  `show_jant_branding_on_home = ${config.showJantBrandingOnHome}`,
1486
1997
  `show_header_avatar = ${config.showHeaderAvatar}`,
1487
1998
  `noindex = ${config.noindex}`,
@@ -1516,25 +2027,42 @@ function buildJantDataToml(
1516
2027
  }
1517
2028
 
1518
2029
  for (const item of config.navItems) {
1519
- // `settings` is authenticated-only and has no corresponding page in the
1520
- // static Hugo site — drop it at export time so it never shows up in nav.
1521
- if (item.systemKey === "settings") continue;
2030
+ // `settings` has no page in the static site; the theme skips it, and the
2031
+ // entry stays so an import back into Jant keeps it. Both feed entries
2032
+ // resolve to a feed file, so with feeds off both would export a link to
2033
+ // something that was never written.
2034
+ if (
2035
+ !config.rssFeedsEnabled &&
2036
+ item.type === "system" &&
2037
+ isFeedNavKey(item.systemKey)
2038
+ ) {
2039
+ continue;
2040
+ }
1522
2041
  parts.push("");
1523
2042
  parts.push("[[nav]]");
1524
2043
  parts.push(`type = "${escapeTomlString(item.type)}"`);
1525
2044
  parts.push(`label = "${escapeTomlString(resolveNavItemLabel(item))}"`);
1526
2045
  parts.push(
1527
- `url = "${escapeTomlString(resolveNavItemUrl(item, config.homeDefaultView, config.mainRssFeed))}"`,
2046
+ `url = "${escapeTomlString(resolveNavItemUrl(item, config.mainRssFeed))}"`,
1528
2047
  );
1529
2048
  parts.push(`system_key = "${escapeTomlString(item.systemKey ?? "")}"`);
1530
2049
  parts.push(`placement = "${escapeTomlString(item.placement ?? "header")}"`);
2050
+ // `label` above is what the theme shows. The author's own wording, when
2051
+ // there is one, and the target by slug are what an import restores.
2052
+ if (item.label) {
2053
+ parts.push(`custom_label = "${escapeTomlString(item.label)}"`);
2054
+ }
2055
+ const target = resolveNavItemTarget(item, targets);
2056
+ if (target) {
2057
+ parts.push(`${target.key} = "${escapeTomlString(target.slug)}"`);
2058
+ }
1531
2059
  }
1532
2060
 
1533
2061
  for (const item of directoryItems) {
1534
2062
  parts.push("");
1535
2063
  parts.push("[[directory]]");
1536
2064
  parts.push(`type = "${escapeTomlString(item.type)}"`);
1537
- if (item.type === "collection") {
2065
+ if (item.type === "collection" || item.type === "smart_collection") {
1538
2066
  parts.push(`sequence = "${escapeTomlString(item.sequence)}"`);
1539
2067
  parts.push(`slug = "${escapeTomlString(item.slug)}"`);
1540
2068
  parts.push(`title = "${escapeTomlString(item.title)}"`);
@@ -1564,6 +2092,9 @@ function buildJantDataToml(
1564
2092
  parts.push(`sequence = "${escapeTomlString(item.sequence)}"`);
1565
2093
  parts.push(`label = "${escapeTomlString(item.label)}"`);
1566
2094
  parts.push(`url = "${escapeTomlString(item.url)}"`);
2095
+ if (item.description) {
2096
+ parts.push(`description = "${escapeTomlString(item.description)}"`);
2097
+ }
1567
2098
  if (item.descriptionHtml) {
1568
2099
  parts.push(
1569
2100
  `description_html = "${escapeTomlString(item.descriptionHtml)}"`,
@@ -1572,13 +2103,257 @@ function buildJantDataToml(
1572
2103
  }
1573
2104
  }
1574
2105
 
2106
+ // Custom URLs that name no post or collection. Post aliases travel in each
2107
+ // root's `aliases:`; these would otherwise not travel at all.
2108
+ for (const record of targets.standalonePaths) {
2109
+ parts.push("");
2110
+ parts.push("[[custom_url]]");
2111
+ // Every path in an export starts with a slash, as the API gives them.
2112
+ parts.push(`path = "/${escapeTomlString(record.path)}"`);
2113
+ parts.push(`kind = "${escapeTomlString(record.kind)}"`);
2114
+ if (record.kind === "redirect" && record.redirectToPath) {
2115
+ parts.push(
2116
+ `to = "${escapeTomlString(redirectTargetHref(record.redirectToPath))}"`,
2117
+ );
2118
+ parts.push(`status = ${record.redirectType ?? 301}`);
2119
+ }
2120
+ if (record.kind === "archive" && record.archiveQuery) {
2121
+ parts.push(`archive_query = "${escapeTomlString(record.archiveQuery)}"`);
2122
+ }
2123
+ }
2124
+
1575
2125
  return `${parts.join("\n")}\n`;
1576
2126
  }
1577
2127
 
2128
+ /**
2129
+ * The author's redirects as `_redirects` rules, or null when there are none.
2130
+ *
2131
+ * @param standalonePaths - Custom URLs that name no post or collection
2132
+ * @returns The `_redirects` section
2133
+ * @example
2134
+ * buildCustomUrlRedirects([redirectFromAtomXml]); // "# Redirects...\n/atom.xml /feed 301\n"
2135
+ */
2136
+ function buildCustomUrlRedirects(
2137
+ standalonePaths: readonly PathRecord[],
2138
+ ): string | null {
2139
+ const rules = standalonePaths
2140
+ .filter((record) => record.kind === "redirect" && record.redirectToPath)
2141
+ .map(
2142
+ (record) =>
2143
+ [
2144
+ `/${record.path}`,
2145
+ redirectTargetHref(record.redirectToPath as string),
2146
+ record.redirectType ?? 301,
2147
+ ] as const,
2148
+ );
2149
+ if (rules.length === 0) return null;
2150
+
2151
+ const width = Math.max(...rules.map(([from]) => from.length));
2152
+ return `# Redirects set up under Settings → Custom URLs on the live site.
2153
+
2154
+ ${rules.map(([from, to, status]) => `${from.padEnd(width)} ${to} ${status}`).join("\n")}
2155
+ `;
2156
+ }
2157
+
1578
2158
  // ---------------------------------------------------------------------------
1579
- // README + .gitignore
2159
+ // README + .gitignore + _redirects + wrangler.jsonc
1580
2160
  // ---------------------------------------------------------------------------
1581
2161
 
2162
+ /** Repo-relative path of the Cloudflare Workers deploy config. */
2163
+ export const WRANGLER_CONFIG_PATH = "wrangler.jsonc";
2164
+
2165
+ /**
2166
+ * Normalize a string into a name Cloudflare accepts for a Worker: lowercase
2167
+ * letters, digits, and hyphens, at most 63 characters.
2168
+ */
2169
+ function toWorkerName(raw: string): string {
2170
+ return (
2171
+ raw
2172
+ .toLowerCase()
2173
+ .replace(/[^a-z0-9-]+/g, "-")
2174
+ // 63 characters is Cloudflare's limit; trimming hyphens comes after the
2175
+ // cut so a truncated name cannot end on one.
2176
+ .slice(0, 63)
2177
+ .replace(/^-+|-+$/g, "")
2178
+ );
2179
+ }
2180
+
2181
+ /**
2182
+ * Pick the Worker name for `wrangler.jsonc`.
2183
+ *
2184
+ * Cloudflare requires this name to match the Worker in the dashboard, and its
2185
+ * repository-import flow names a new Worker after the repository — so the
2186
+ * repository name is the one value that lines up without the user editing
2187
+ * anything. An export with no repository behind it (a ZIP, or
2188
+ * `site export` into a directory) uses the repository name the GitHub Sync
2189
+ * settings page prefills for this site, so pushing the export to a repository
2190
+ * created with that default still matches.
2191
+ *
2192
+ * @param repoName - The destination repository's name, without the owner.
2193
+ * @param siteUrl - The exported site's URL, used when there is no repository.
2194
+ * @returns A name Cloudflare accepts.
2195
+ * @example
2196
+ * deriveWorkerName("owenyoung-blog", "https://notes.example.com"); // "owenyoung-blog"
2197
+ * deriveWorkerName(null, "https://notes.example.com"); // "notes-jant-sync"
2198
+ */
2199
+ export function deriveWorkerName(
2200
+ repoName: string | null | undefined,
2201
+ siteUrl: string,
2202
+ ): string {
2203
+ return (
2204
+ toWorkerName(repoName ?? "") || toWorkerName(suggestSyncRepoName(siteUrl))
2205
+ );
2206
+ }
2207
+
2208
+ /**
2209
+ * Build the Cloudflare Workers deploy config for the exported site.
2210
+ *
2211
+ * Workers Builds has no "build output directory" field — that one belongs to
2212
+ * Pages — so `public/` can only be declared here. Without this file the
2213
+ * dashboard's default deploy command (`npx wrangler deploy`) fails on a repo
2214
+ * that has no Worker name to deploy under.
2215
+ *
2216
+ * `build.command` is here because nothing else runs Hugo. Workers Builds
2217
+ * detects frameworks from a `package.json`, which a Hugo site does not have,
2218
+ * so importing this repository leaves the build command empty and the deploy
2219
+ * fails on a `public/` that was never generated. Wrangler runs a custom build
2220
+ * before deploying, assets-only Workers included, which makes
2221
+ * `npx wrangler deploy` self-sufficient — on Cloudflare's image, on any CI,
2222
+ * and in a local checkout. Cloudflare's image ships Hugo extended, so the
2223
+ * command needs no install step; anyone who does fill in a dashboard build
2224
+ * command should leave it empty here to keep Hugo from running twice.
2225
+ *
2226
+ * Deliberately absent:
2227
+ * - `main`: a site with only static assets is a valid assets-only Worker.
2228
+ * - `not_found_handling`: the theme emits no `404.html` to point it at.
2229
+ *
2230
+ * @param config - The exported site's configuration.
2231
+ * @param repoName - The destination repository's name, when there is one.
2232
+ * @returns The contents of `wrangler.jsonc`.
2233
+ * @example
2234
+ * buildWranglerConfig(config, "my-blog"); // '{\n // Cloudflare Workers …'
2235
+ */
2236
+ function buildWranglerConfig(
2237
+ config: SiteConfig,
2238
+ repoName: string | null | undefined,
2239
+ ): string {
2240
+ const name = deriveWorkerName(repoName, config.siteUrl);
2241
+ // `compatibility_date` pins the Workers runtime behavior to what shipped on
2242
+ // the day this export was generated, which is what a new Worker wants.
2243
+ const compatibilityDate = new Date().toISOString().slice(0, 10);
2244
+ return `{
2245
+ // Cloudflare Workers deploy config for the built site.
2246
+ //
2247
+ // "name" must match the Worker's name in the Cloudflare dashboard: Workers
2248
+ // Builds fails the build when they differ, and a deploy run by hand under
2249
+ // another name goes to another Worker. A Worker imported from a repository
2250
+ // is named after the repository, so Jant uses the repository name when it
2251
+ // knows it, and otherwise the name GitHub Sync suggests for this site's
2252
+ // repository.
2253
+ //
2254
+ // Jant writes this file once and never overwrites it, so your edits stay.
2255
+ "$schema": "node_modules/wrangler/config-schema.json",
2256
+ "name": ${JSON.stringify(name)},
2257
+ "compatibility_date": ${JSON.stringify(compatibilityDate)},
2258
+ // Wrangler runs this before it uploads, so "npx wrangler deploy" builds the
2259
+ // site first. Leave the build command in the Cloudflare dashboard empty, or
2260
+ // Hugo runs twice.
2261
+ "build": {
2262
+ "command": "hugo --gc --minify"
2263
+ },
2264
+ "assets": {
2265
+ "directory": "./public"
2266
+ }
2267
+ }
2268
+ `;
2269
+ }
2270
+
2271
+ /**
2272
+ * Build the `static/_redirects` file that keeps existing feed subscribers
2273
+ * working after the site moves to this export.
2274
+ *
2275
+ * Jant serves its feeds under `/feed` (`/feed`, `/latest/feed`,
2276
+ * `/featured/feed`, `/archive/feed`, `/{collection}/feed`); Hugo serves the
2277
+ * same documents as `index.xml` inside each section. The two namespaces do
2278
+ * not overlap, so every subscriber's saved address 404s the moment the
2279
+ * exported site goes up.
2280
+ *
2281
+ * Hugo's `aliases:` mechanism cannot cover this the way it covers post URLs:
2282
+ * an alias page is a meta-refresh plus a script, and feed readers fetch and
2283
+ * parse XML without running either. Only an HTTP redirect reaches them, which
2284
+ * is host configuration rather than Hugo output — so the export emits the one
2285
+ * format two common static hosts read verbatim (Cloudflare Pages and Netlify).
2286
+ * Hosts that do not read `_redirects` ignore the file; the README carries the
2287
+ * rule for them to translate.
2288
+ *
2289
+ * @param mainRssFeed - The site's main feed setting, "latest" or "featured".
2290
+ * @param hasFeaturedSection - Whether the export emitted a featured section.
2291
+ * It is skipped when a post or collection already owns the `featured` slug,
2292
+ * and pointing a redirect at a feed that was never built would turn a live
2293
+ * subscription into a 404 rather than leaving it merely stale.
2294
+ * @returns The `_redirects` file body.
2295
+ * @example
2296
+ * buildFeedRedirects("latest", true); // "# ...\n/feed /index.xml 301\n..."
2297
+ */
2298
+ function buildFeedRedirects(
2299
+ mainRssFeed: string,
2300
+ hasFeaturedSection: boolean,
2301
+ ): string {
2302
+ const LATEST = "/index.xml";
2303
+ const FEATURED = "/featured/index.xml";
2304
+ // `/feed` follows the site's main-feed setting, mirroring `renderMainFeed`.
2305
+ // Without a featured section there is nothing to point it at, so it falls
2306
+ // back to the latest feed: a wider feed than the reader subscribed to, but
2307
+ // a live one.
2308
+ const main =
2309
+ mainRssFeed === "featured" && hasFeaturedSection ? FEATURED : LATEST;
2310
+ const featured = hasFeaturedSection ? FEATURED : LATEST;
2311
+
2312
+ const rules: [string, string][] = [
2313
+ ["/feed", main],
2314
+ ["/latest/feed", LATEST],
2315
+ ["/featured/feed", featured],
2316
+ ["/archive/feed", "/archive/index.xml"],
2317
+ ];
2318
+ const legacy: [string, string][] = [
2319
+ ["/feed/latest", LATEST],
2320
+ ["/feed/all", LATEST],
2321
+ ["/feed/featured", featured],
2322
+ ["/feed/atom.xml", main],
2323
+ ["/feed/latest/atom.xml", LATEST],
2324
+ ["/feed/all/atom.xml", LATEST],
2325
+ ["/feed/featured/atom.xml", featured],
2326
+ ];
2327
+
2328
+ // The format only needs whitespace between the columns; padding to the
2329
+ // widest source path keeps the file readable for whoever has to translate
2330
+ // it into another host's redirect syntax.
2331
+ const width = Math.max(
2332
+ ...[...rules, ...legacy].map(([from]) => from.length),
2333
+ "/:slug/feed".length,
2334
+ );
2335
+ const line = ([from, to]: [string, string]) =>
2336
+ `${from.padEnd(width)} ${to} 301`;
2337
+
2338
+ return `# Feed addresses moved in this export.
2339
+ #
2340
+ # Jant served its feeds under /feed; Hugo serves them as index.xml inside each
2341
+ # section. Cloudflare Pages and Netlify read this file and issue the redirects
2342
+ # below, so readers who subscribed to the old addresses keep receiving posts.
2343
+ # Other hosts ignore this file — see README.md for the same rules to translate
2344
+ # into your host's configuration.
2345
+
2346
+ ${rules.map(line).join("\n")}
2347
+
2348
+ # Aliases the live site answered with a 308. They would die at the same moment.
2349
+ ${legacy.map(line).join("\n")}
2350
+
2351
+ # Collection feeds, by slug. Collections are the only root-level sections that
2352
+ # emit Atom, so any other slug 404s here exactly as it did on the live site.
2353
+ ${line(["/:slug/feed", "/:slug/index.xml"])}
2354
+ `;
2355
+ }
2356
+
1582
2357
  function buildGitignore(): string {
1583
2358
  return `# Hugo build output
1584
2359
  public/
@@ -1596,14 +2371,126 @@ Thumbs.db
1596
2371
  `;
1597
2372
  }
1598
2373
 
1599
- function buildReadme(siteName: string): string {
2374
+ /**
2375
+ * Render a two-column Markdown table with padded cells.
2376
+ *
2377
+ * The values differ per site, so building the rows by hand would leave the
2378
+ * committed README ragged for some exports and aligned for others.
2379
+ *
2380
+ * @param headers - The two column headers.
2381
+ * @param rows - Cell pairs; each cell is wrapped in backticks.
2382
+ * @returns The table as Markdown, without a trailing newline.
2383
+ * @example
2384
+ * renderMarkdownTable(["Jant", "This export"], [["/feed", "/index.xml"]]);
2385
+ */
2386
+ /**
2387
+ * Convert a stored post body to the export's Markdown, naming the post when
2388
+ * it can't be converted. An export that dropped the body would read as a
2389
+ * complete archive and restore as an empty post.
2390
+ *
2391
+ * @param body - Stored TipTap JSON
2392
+ * @param slug - The post's slug, for the error
2393
+ * @returns The body as Markdown
2394
+ * @throws {Error} When the stored body isn't a TipTap document
2395
+ * @example
2396
+ * postBodyToMarkdown('{"type":"doc","content":[]}', "hello"); // ""
2397
+ */
2398
+ function postBodyToMarkdown(body: string, slug: string): string {
2399
+ try {
2400
+ return tiptapJsonToMarkdown(body);
2401
+ } catch (error) {
2402
+ throw new Error(
2403
+ `Couldn't convert the body of /${slug} to Markdown: ${error instanceof Error ? error.message : String(error)}`,
2404
+ { cause: error },
2405
+ );
2406
+ }
2407
+ }
2408
+
2409
+ function renderMarkdownTable(
2410
+ headers: [string, string],
2411
+ rows: [string, string][],
2412
+ ): string {
2413
+ const cells = rows.map(
2414
+ ([from, to]) => [`\`${from}\``, `\`${to}\``] as [string, string],
2415
+ );
2416
+ const widths: [number, number] = [
2417
+ Math.max(headers[0].length, ...cells.map((r) => r[0].length)),
2418
+ Math.max(headers[1].length, ...cells.map((r) => r[1].length)),
2419
+ ];
2420
+ const line = (a: string, b: string) =>
2421
+ `| ${a.padEnd(widths[0])} | ${b.padEnd(widths[1])} |`;
2422
+ return [
2423
+ line(headers[0], headers[1]),
2424
+ `| ${"-".repeat(widths[0])} | ${"-".repeat(widths[1])} |`,
2425
+ ...cells.map((r) => line(r[0], r[1])),
2426
+ ].join("\n");
2427
+ }
2428
+
2429
+ /**
2430
+ * Build the export's README.
2431
+ *
2432
+ * @param config - The exported site's configuration.
2433
+ * @param hasFeaturedSection - Whether a featured section was emitted, which
2434
+ * decides where the feed redirects point.
2435
+ * @returns Markdown for `README.md` at the root of the export.
2436
+ * @example
2437
+ * buildReadme(config, true); // "# My Site — Hugo Export\n..."
2438
+ */
2439
+ function buildReadme(config: SiteConfig, hasFeaturedSection: boolean): string {
2440
+ const siteName = config.siteName;
2441
+ const featuredFeed = hasFeaturedSection
2442
+ ? "/featured/index.xml"
2443
+ : "/index.xml";
2444
+ const mainFeed =
2445
+ config.mainRssFeed === "featured" ? featuredFeed : "/index.xml";
2446
+ // Nothing to say about feeds on a site that publishes none, and no
2447
+ // `_redirects` file was written for it either.
2448
+ const staticListing = config.rssFeedsEnabled
2449
+ ? "\n _redirects — Feed redirects (see Feeds above)"
2450
+ : "";
2451
+ // The Notes list below says post URLs survive the move. Left alone, that
2452
+ // reads as a promise about every URL, and feed addresses are the exception.
2453
+ const feedNote = config.rssFeedsEnabled
2454
+ ? "\n- Feed addresses are the exception: they move to `index.xml` and stay reachable only through `static/_redirects`. See [Feeds](#feeds)."
2455
+ : "";
2456
+ // Same reason: without feeds there is no `static/_redirects` to explain.
2457
+ const redirectsNote = config.rssFeedsEnabled
2458
+ ? "`static/_redirects` needs no configuration here. Hugo copies it to `public/_redirects` and Workers applies the rules as published.\n\n"
2459
+ : "";
2460
+ // Nothing to say about feeds on a site that publishes none, and no
2461
+ // `_redirects` file was written for it either.
2462
+ const feedRows: [string, string][] = [
2463
+ ["/feed", mainFeed],
2464
+ ["/latest/feed", "/index.xml"],
2465
+ ["/featured/feed", featuredFeed],
2466
+ ["/archive/feed", "/archive/index.xml"],
2467
+ ["/{collection}/feed", "/{collection}/index.xml"],
2468
+ ];
2469
+ const feedTable = renderMarkdownTable(["Jant", "This export"], feedRows);
2470
+ const feedsSection = config.rssFeedsEnabled
2471
+ ? `## Feeds
2472
+
2473
+ The feed addresses changed. Jant served them under \`/feed\`; Hugo serves them as \`index.xml\` inside each section:
2474
+
2475
+ ${feedTable}
2476
+
2477
+ A reader who is already subscribed holds one of the old addresses, and a feed reader that gets a 404 stops delivering posts. \`static/_redirects\` maps every old address to its new one with a 301. Cloudflare Pages and Netlify read that file as published; on any other host, translate its rules into that host's redirect configuration before you point the domain here.
2478
+
2479
+ Hugo's \`aliases:\` cannot cover this. An alias page redirects with a meta refresh and a script, and feed readers fetch XML without running either — only an HTTP redirect reaches them.
2480
+
2481
+ Feed entries keep the IDs Jant gave them, so feed readers don't show old posts again. Each root post stores its ID in \`feed_id\`: the post's address on Jant, which is not its page URL here. Don't change \`feed_id\`, or feed readers show that post again. A post you add here without one uses its page URL.
2482
+
2483
+ The **Subscribe** entry in the site navigation points at \`${mainFeed}\`. The exported site has no \`/subscribe\` page; that page belongs to the Jant runtime.
2484
+
2485
+ `
2486
+ : "";
1600
2487
  return `# ${siteName} — Hugo Export
1601
2488
 
1602
2489
  This is a static site exported from [Jant](https://github.com/jant-me/jant), ready to build with [Hugo](https://gohugo.io/).
1603
2490
 
1604
2491
  ## Install Hugo
1605
2492
 
1606
- This export targets Hugo **extended 0.160.1+**.
2493
+ This export targets Hugo **extended 0.147.7+**.
1607
2494
 
1608
2495
  **macOS (Homebrew):**
1609
2496
 
@@ -1641,10 +2528,27 @@ hugo --minify
1641
2528
 
1642
2529
  The output goes to the \`public/\` directory. Upload it to any static host (Netlify, Vercel, Cloudflare Pages, GitHub Pages, etc.).
1643
2530
 
1644
- ## Project structure
2531
+ ## Deploy to Cloudflare Workers
2532
+
2533
+ \`wrangler.jsonc\` at the root is the deploy config: it names the Worker, runs \`hugo --gc --minify\`, and points the upload at \`public/\`. Connect this repository to Cloudflare Workers Builds and leave the commands Cloudflare offers as they are:
2534
+
2535
+ | Field | Value |
2536
+ | --------------- | ------------------------------ |
2537
+ | Build command | leave empty |
2538
+ | Deploy command | \`npx wrangler deploy\` |
2539
+ | Version command | \`npx wrangler versions upload\` |
2540
+
2541
+ The build belongs to \`wrangler.jsonc\` rather than to that field: Workers Builds reads a \`package.json\` to detect a framework, a Hugo site has none, and an empty build command deploys a \`public/\` that was never built. Filling the field in as well makes Hugo run twice.
2542
+
2543
+ Check one thing before the first deploy: \`name\` in \`wrangler.jsonc\` has to match the Worker's name in the Cloudflare dashboard. Workers Builds fails the build when they differ, and a deploy run by hand under another name goes to another Worker. A Worker imported from a repository is named after the repository, so an export pushed by GitHub Sync uses the repository name. A downloaded export has no repository and uses the name GitHub Sync suggests when it creates one for this site. If the Worker is named something else, change \`name\` to match — Cloudflare names each build token \`<worker-name> build token\`, so the token list is one place to read it.
2544
+
2545
+ Jant writes \`wrangler.jsonc\` once and never overwrites it, so a corrected name survives later syncs.
2546
+
2547
+ ${redirectsNote}${feedsSection}## Project structure
1645
2548
 
1646
2549
  \`\`\`
1647
2550
  hugo.toml — Site configuration (baseURL, title, theme, params)
2551
+ wrangler.jsonc — Cloudflare Workers deploy config (see Deploy above)
1648
2552
  content/
1649
2553
  _index.md — Home section
1650
2554
  archive/_index.md — Archive section
@@ -1657,7 +2561,7 @@ content/
1657
2561
  data/
1658
2562
  jant.toml — Nav items, branding, display preferences, ordered collections directory
1659
2563
  themes/jant/ — Bundled Hugo theme (overrideable via layouts/ at the site root)
1660
- static/ — Copy files here to add them to the published site
2564
+ static/ — Copy files here to add them to the published site${staticListing}
1661
2565
  \`\`\`
1662
2566
 
1663
2567
  ## Customizing
@@ -1666,7 +2570,7 @@ static/ — Copy files here to add them to the published site
1666
2570
  - **Jant metadata** — \`data/jant.toml\` drives nav and the collections directory, and is preserved across round-trip import.
1667
2571
  - **Styles** — edit \`themes/jant/static/main.css\`, or drop a \`static/main.css\` at the site root to override.
1668
2572
  - **Templates** — add files under \`layouts/\` at the site root to override the bundled theme.
1669
- - **Debugging** — from a Jant site project, run \`npx jant site export --directory ./my-site\`, then \`cd my-site && hugo serve\`.
2573
+ - **Debugging** — from a Jant site project, run \`npx jant site export --url <site-url> --output ./my-site\`, then \`cd my-site && hugo serve\`.
1670
2574
 
1671
2575
  ## Fetching media locally
1672
2576
 
@@ -1683,7 +2587,7 @@ Safe to re-run; files already on disk are reused. Anything that fails to downloa
1683
2587
  ## Notes
1684
2588
 
1685
2589
  - Each thread is a Hugo branch bundle. Replies live as nested leaf bundles with \`build.render = "never"\` so they do not produce standalone URLs; they render inside the thread page.
1686
- - \`/{reply-slug}/\` URLs are preserved via \`aliases:\` on the root post, so old links still land on the right thread anchor.
2590
+ - \`/{reply-slug}/\` URLs are preserved via \`aliases:\` on the root post, so old links still land on the right thread anchor.${feedNote}
1687
2591
  - Media is emitted under \`static/media/{id}.ext\` and referenced from a flat \`media:\` array on each post. When a storage provider has a configured public URL (R2/S3/local proxy), the exporter links to the provider URL instead of re-bundling the bytes.
1688
2592
  - Posts with \`draft: true\` in front matter are only built when you pass \`--buildDrafts\` to \`hugo\` / \`hugo serve\`.
1689
2593
  `;