emdash 0.25.1 → 0.27.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 (418) hide show
  1. package/dist/{adapters-DAAjOID4.d.mts → adapters-u037EnTR.d.mts} +1 -1
  2. package/dist/{adapters-DAAjOID4.d.mts.map → adapters-u037EnTR.d.mts.map} +1 -1
  3. package/dist/api/route-utils.d.mts +3 -3
  4. package/dist/api/route-utils.mjs +11 -11
  5. package/dist/api/schemas/index.d.mts +1 -1
  6. package/dist/{api-D2_sbavn.mjs → api-80kycR9o.mjs} +86 -30
  7. package/dist/api-80kycR9o.mjs.map +1 -0
  8. package/dist/{apply-Bk2mAuLn.mjs → apply-DSypk6Iu.mjs} +20 -18
  9. package/dist/apply-DSypk6Iu.mjs.map +1 -0
  10. package/dist/astro/index.d.mts +11 -10
  11. package/dist/astro/index.d.mts.map +1 -1
  12. package/dist/astro/index.mjs +12 -3
  13. package/dist/astro/index.mjs.map +1 -1
  14. package/dist/astro/middleware/auth.d.mts +10 -9
  15. package/dist/astro/middleware/auth.d.mts.map +1 -1
  16. package/dist/astro/middleware/auth.mjs +4 -3
  17. package/dist/astro/middleware/auth.mjs.map +1 -1
  18. package/dist/astro/middleware/redirect.mjs +4 -4
  19. package/dist/astro/middleware.d.mts +2 -9
  20. package/dist/astro/middleware.d.mts.map +1 -1
  21. package/dist/astro/middleware.mjs +86 -85
  22. package/dist/astro/middleware.mjs.map +1 -1
  23. package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +3 -3
  24. package/dist/astro/routes/api/admin/allowed-domains/index.mjs +3 -3
  25. package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +2 -2
  26. package/dist/astro/routes/api/admin/api-tokens/index.mjs +3 -3
  27. package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +3 -3
  28. package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +4 -4
  29. package/dist/astro/routes/api/admin/byline-fields/index.mjs +4 -4
  30. package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +4 -4
  31. package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +10 -10
  32. package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +10 -10
  33. package/dist/astro/routes/api/admin/bylines/index.mjs +10 -10
  34. package/dist/astro/routes/api/admin/comments/_id_/status.mjs +8 -8
  35. package/dist/astro/routes/api/admin/comments/_id_.mjs +6 -6
  36. package/dist/astro/routes/api/admin/comments/bulk.mjs +7 -7
  37. package/dist/astro/routes/api/admin/comments/counts.mjs +6 -6
  38. package/dist/astro/routes/api/admin/comments/index.mjs +7 -7
  39. package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +4 -4
  40. package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +3 -3
  41. package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +3 -3
  42. package/dist/astro/routes/api/admin/oauth-clients/index.mjs +3 -3
  43. package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +29 -29
  44. package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs.map +1 -1
  45. package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +29 -29
  46. package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs.map +1 -1
  47. package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +29 -29
  48. package/dist/astro/routes/api/admin/plugins/_id_/index.mjs.map +1 -1
  49. package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +28 -28
  50. package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +28 -28
  51. package/dist/astro/routes/api/admin/plugins/index.mjs +29 -29
  52. package/dist/astro/routes/api/admin/plugins/index.mjs.map +1 -1
  53. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +3 -3
  54. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +28 -28
  55. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +28 -28
  56. package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +28 -28
  57. package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs +28 -28
  58. package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs +29 -29
  59. package/dist/astro/routes/api/admin/plugins/registry/artifact.mjs +28 -28
  60. package/dist/astro/routes/api/admin/plugins/registry/install.mjs +29 -29
  61. package/dist/astro/routes/api/admin/plugins/updates.mjs +28 -28
  62. package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +28 -28
  63. package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +3 -3
  64. package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +28 -28
  65. package/dist/astro/routes/api/admin/users/_id_/disable.mjs +2 -2
  66. package/dist/astro/routes/api/admin/users/_id_/enable.mjs +2 -2
  67. package/dist/astro/routes/api/admin/users/_id_/index.mjs +3 -3
  68. package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +2 -2
  69. package/dist/astro/routes/api/admin/users/index.mjs +3 -3
  70. package/dist/astro/routes/api/auth/dev-bypass.mjs +3 -3
  71. package/dist/astro/routes/api/auth/invite/accept.mjs +2 -2
  72. package/dist/astro/routes/api/auth/invite/complete.mjs +3 -3
  73. package/dist/astro/routes/api/auth/invite/index.mjs +3 -3
  74. package/dist/astro/routes/api/auth/invite/register-options.mjs +3 -3
  75. package/dist/astro/routes/api/auth/logout.mjs +2 -2
  76. package/dist/astro/routes/api/auth/magic-link/send.mjs +4 -4
  77. package/dist/astro/routes/api/auth/magic-link/verify.mjs +2 -2
  78. package/dist/astro/routes/api/auth/me.mjs +4 -4
  79. package/dist/astro/routes/api/auth/passkey/_id_.mjs +3 -3
  80. package/dist/astro/routes/api/auth/passkey/index.mjs +2 -2
  81. package/dist/astro/routes/api/auth/passkey/options.mjs +4 -4
  82. package/dist/astro/routes/api/auth/passkey/register/options.mjs +3 -3
  83. package/dist/astro/routes/api/auth/passkey/register/verify.mjs +3 -3
  84. package/dist/astro/routes/api/auth/passkey/verify.mjs +3 -3
  85. package/dist/astro/routes/api/auth/signup/complete.mjs +3 -3
  86. package/dist/astro/routes/api/auth/signup/request.mjs +4 -4
  87. package/dist/astro/routes/api/auth/signup/verify.mjs +2 -2
  88. package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +7 -7
  89. package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +7 -7
  90. package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +3 -3
  91. package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +3 -3
  92. package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +3 -3
  93. package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +3 -3
  94. package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +4 -4
  95. package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +4 -4
  96. package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +3 -3
  97. package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +3 -3
  98. package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +4 -4
  99. package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +9 -9
  100. package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +3 -3
  101. package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +3 -3
  102. package/dist/astro/routes/api/content/_collection_/_id_.mjs +4 -4
  103. package/dist/astro/routes/api/content/_collection_/authors.mjs +3 -3
  104. package/dist/astro/routes/api/content/_collection_/index.mjs +4 -4
  105. package/dist/astro/routes/api/content/_collection_/trash.mjs +4 -4
  106. package/dist/astro/routes/api/dashboard.mjs +8 -8
  107. package/dist/astro/routes/api/dev/emails.mjs +2 -2
  108. package/dist/astro/routes/api/import/probe.d.mts +3 -3
  109. package/dist/astro/routes/api/import/probe.mjs +4 -4
  110. package/dist/astro/routes/api/import/wordpress/analyze.mjs +3 -3
  111. package/dist/astro/routes/api/import/wordpress/execute.d.mts +10 -9
  112. package/dist/astro/routes/api/import/wordpress/execute.d.mts.map +1 -1
  113. package/dist/astro/routes/api/import/wordpress/execute.mjs +9 -9
  114. package/dist/astro/routes/api/import/wordpress/media.d.mts +10 -9
  115. package/dist/astro/routes/api/import/wordpress/media.d.mts.map +1 -1
  116. package/dist/astro/routes/api/import/wordpress/media.mjs +4 -4
  117. package/dist/astro/routes/api/import/wordpress/prepare.mjs +6 -6
  118. package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +5 -5
  119. package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
  120. package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +4 -4
  121. package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +1 -1
  122. package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +7 -7
  123. package/dist/astro/routes/api/manifest.d.mts.map +1 -1
  124. package/dist/astro/routes/api/manifest.mjs +13 -4
  125. package/dist/astro/routes/api/manifest.mjs.map +1 -1
  126. package/dist/astro/routes/api/mcp.mjs +34 -34
  127. package/dist/astro/routes/api/media/_id_/confirm.mjs +4 -4
  128. package/dist/astro/routes/api/media/_id_.mjs +4 -4
  129. package/dist/astro/routes/api/media/file/_...key_.mjs +2 -2
  130. package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs +3 -3
  131. package/dist/astro/routes/api/media/providers/_providerId_/index.mjs +3 -3
  132. package/dist/astro/routes/api/media/providers/index.mjs +3 -3
  133. package/dist/astro/routes/api/media/upload-url.mjs +4 -4
  134. package/dist/astro/routes/api/media.mjs +5 -5
  135. package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +6 -6
  136. package/dist/astro/routes/api/menus/_name_/items.mjs +6 -6
  137. package/dist/astro/routes/api/menus/_name_/reorder.mjs +6 -6
  138. package/dist/astro/routes/api/menus/_name_/translations.mjs +6 -6
  139. package/dist/astro/routes/api/menus/_name_.mjs +6 -6
  140. package/dist/astro/routes/api/menus/index.mjs +6 -6
  141. package/dist/astro/routes/api/oauth/device/authorize.mjs +3 -3
  142. package/dist/astro/routes/api/oauth/device/code.mjs +4 -4
  143. package/dist/astro/routes/api/oauth/device/token.mjs +4 -4
  144. package/dist/astro/routes/api/oauth/register.mjs +2 -2
  145. package/dist/astro/routes/api/oauth/token/refresh.mjs +3 -3
  146. package/dist/astro/routes/api/oauth/token/revoke.mjs +3 -3
  147. package/dist/astro/routes/api/oauth/token.mjs +2 -2
  148. package/dist/astro/routes/api/openapi.json.mjs +2 -2
  149. package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +3 -3
  150. package/dist/astro/routes/api/redirects/404s/index.mjs +6 -6
  151. package/dist/astro/routes/api/redirects/404s/summary.mjs +6 -6
  152. package/dist/astro/routes/api/redirects/_id_.mjs +7 -7
  153. package/dist/astro/routes/api/redirects/index.mjs +7 -7
  154. package/dist/astro/routes/api/revisions/_revisionId_/index.mjs +3 -3
  155. package/dist/astro/routes/api/revisions/_revisionId_/restore.mjs +3 -3
  156. package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +28 -28
  157. package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +28 -28
  158. package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +28 -28
  159. package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +28 -28
  160. package/dist/astro/routes/api/schema/collections/index.mjs +28 -28
  161. package/dist/astro/routes/api/schema/index.mjs +6 -6
  162. package/dist/astro/routes/api/schema/orphans/_slug_.mjs +28 -28
  163. package/dist/astro/routes/api/schema/orphans/index.mjs +28 -28
  164. package/dist/astro/routes/api/search/enable.mjs +7 -7
  165. package/dist/astro/routes/api/search/index.mjs +6 -6
  166. package/dist/astro/routes/api/search/rebuild.mjs +7 -7
  167. package/dist/astro/routes/api/search/stats.mjs +6 -6
  168. package/dist/astro/routes/api/search/suggest.mjs +6 -6
  169. package/dist/astro/routes/api/sections/_slug_.mjs +6 -6
  170. package/dist/astro/routes/api/sections/index.mjs +6 -6
  171. package/dist/astro/routes/api/settings/email.mjs +4 -4
  172. package/dist/astro/routes/api/settings.mjs +9 -9
  173. package/dist/astro/routes/api/setup/admin-verify.mjs +3 -3
  174. package/dist/astro/routes/api/setup/admin.mjs +3 -3
  175. package/dist/astro/routes/api/setup/dev-bypass.d.mts.map +1 -1
  176. package/dist/astro/routes/api/setup/dev-bypass.mjs +20 -18
  177. package/dist/astro/routes/api/setup/dev-bypass.mjs.map +1 -1
  178. package/dist/astro/routes/api/setup/dev-reset.mjs +2 -2
  179. package/dist/astro/routes/api/setup/index.mjs +18 -18
  180. package/dist/astro/routes/api/setup/status.mjs +3 -3
  181. package/dist/astro/routes/api/snapshot.mjs +3 -3
  182. package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +9 -9
  183. package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +9 -9
  184. package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +9 -9
  185. package/dist/astro/routes/api/taxonomies/index.mjs +9 -9
  186. package/dist/astro/routes/api/themes/preview.mjs +3 -3
  187. package/dist/astro/routes/api/typegen.mjs +5 -5
  188. package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +4 -4
  189. package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +6 -6
  190. package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +6 -6
  191. package/dist/astro/routes/api/widget-areas/_name_.mjs +5 -5
  192. package/dist/astro/routes/api/widget-areas/index.mjs +6 -6
  193. package/dist/astro/routes/api/widget-components.mjs +2 -2
  194. package/dist/astro/routes/robots.txt.mjs +5 -5
  195. package/dist/astro/routes/sitemap-_collection_.xml.mjs +10 -9
  196. package/dist/astro/routes/sitemap-_collection_.xml.mjs.map +1 -1
  197. package/dist/astro/routes/sitemap.xml.mjs +5 -5
  198. package/dist/astro/types.d.mts +12 -10
  199. package/dist/astro/types.d.mts.map +1 -1
  200. package/dist/auth/providers/github.d.mts +1 -1
  201. package/dist/auth/providers/google.d.mts +1 -1
  202. package/dist/{authorize-CuxZ0i2t.mjs → authorize-C3a_zGsM.mjs} +2 -2
  203. package/dist/{authorize-CuxZ0i2t.mjs.map → authorize-C3a_zGsM.mjs.map} +1 -1
  204. package/dist/{byline-C-YajfV7.mjs → byline-DEKSVPTy.mjs} +6 -6
  205. package/dist/{byline-C-YajfV7.mjs.map → byline-DEKSVPTy.mjs.map} +1 -1
  206. package/dist/{byline-fields-KD3JFRuH.d.mts → byline-fields-CtQ6blXd.d.mts} +32 -32
  207. package/dist/{byline-fields-KD3JFRuH.d.mts.map → byline-fields-CtQ6blXd.d.mts.map} +1 -1
  208. package/dist/{bylines-CPc_q2Vd.mjs → bylines-CiqgTHWF.mjs} +5 -5
  209. package/dist/{bylines-CPc_q2Vd.mjs.map → bylines-CiqgTHWF.mjs.map} +1 -1
  210. package/dist/{bylines-D4KADDAi.mjs → bylines-Ds4-otXl.mjs} +4 -4
  211. package/dist/{bylines-D4KADDAi.mjs.map → bylines-Ds4-otXl.mjs.map} +1 -1
  212. package/dist/{cache-C35VWD5D.mjs → cache-Ciu3e3AF.mjs} +2 -2
  213. package/dist/{cache-C35VWD5D.mjs.map → cache-Ciu3e3AF.mjs.map} +1 -1
  214. package/dist/{chunks-BHgcHh2C.mjs → chunks-CZFiauig.mjs} +2 -2
  215. package/dist/{chunks-BHgcHh2C.mjs.map → chunks-CZFiauig.mjs.map} +1 -1
  216. package/dist/cli/index.mjs +17 -17
  217. package/dist/cli/index.mjs.map +1 -1
  218. package/dist/client/cf-access.d.mts +1 -1
  219. package/dist/client/index.d.mts +1 -1
  220. package/dist/{comment-BDx50EX5.mjs → comment-CH1IrFFs.mjs} +3 -3
  221. package/dist/{comment-BDx50EX5.mjs.map → comment-CH1IrFFs.mjs.map} +1 -1
  222. package/dist/{comment-reaction-Gv_pgfI3.mjs → comment-reaction-kruNY-kP.mjs} +2 -2
  223. package/dist/{comment-reaction-Gv_pgfI3.mjs.map → comment-reaction-kruNY-kP.mjs.map} +1 -1
  224. package/dist/{comments-CXHuQ6jI.mjs → comments-BUJyXbgq.mjs} +3 -3
  225. package/dist/{comments-CXHuQ6jI.mjs.map → comments-BUJyXbgq.mjs.map} +1 -1
  226. package/dist/{content-B43-YrIq.mjs → content-RmfHoWqK.mjs} +4 -4
  227. package/dist/{content-B43-YrIq.mjs.map → content-RmfHoWqK.mjs.map} +1 -1
  228. package/dist/{context-BW3N7wyt.mjs → context-CzUU_WzL.mjs} +7 -7
  229. package/dist/{context-BW3N7wyt.mjs.map → context-CzUU_WzL.mjs.map} +1 -1
  230. package/dist/{dashboard-FIe0S512.mjs → dashboard-CVyGhift.mjs} +4 -4
  231. package/dist/{dashboard-FIe0S512.mjs.map → dashboard-CVyGhift.mjs.map} +1 -1
  232. package/dist/db/index.d.mts +3 -3
  233. package/dist/db/index.mjs +1 -1
  234. package/dist/db/libsql.d.mts +1 -1
  235. package/dist/db/postgres.d.mts +1 -1
  236. package/dist/db/sqlite.d.mts +1 -1
  237. package/dist/{error-DXnK2wF4.mjs → error-BHkLZk-w.mjs} +2 -2
  238. package/dist/{error-DXnK2wF4.mjs.map → error-BHkLZk-w.mjs.map} +1 -1
  239. package/dist/{field-defs-cache-CYYx8xlG.mjs → field-defs-cache-BA-8ZPiT.mjs} +2 -2
  240. package/dist/{field-defs-cache-CYYx8xlG.mjs.map → field-defs-cache-BA-8ZPiT.mjs.map} +1 -1
  241. package/dist/{fts-manager-DW_NR-Fs.mjs → fts-manager-Db9jGavf.mjs} +2 -2
  242. package/dist/{fts-manager-DW_NR-Fs.mjs.map → fts-manager-Db9jGavf.mjs.map} +1 -1
  243. package/dist/{index-Cz6_JBL3.d.mts → index-CDZZjrLT.d.mts} +2430 -2363
  244. package/dist/index-CDZZjrLT.d.mts.map +1 -0
  245. package/dist/{index-qbL02uhs.d.mts → index-DGIjmUXQ.d.mts} +3 -3
  246. package/dist/{index-qbL02uhs.d.mts.map → index-DGIjmUXQ.d.mts.map} +1 -1
  247. package/dist/index.d.mts +16 -15
  248. package/dist/index.mjs +38 -38
  249. package/dist/{load-DMFi4n1p.mjs → load-DpHICVPh.mjs} +2 -2
  250. package/dist/{load-DMFi4n1p.mjs.map → load-DpHICVPh.mjs.map} +1 -1
  251. package/dist/{loader-DrpofRon.mjs → loader-4K37qA-y.mjs} +81 -18
  252. package/dist/loader-4K37qA-y.mjs.map +1 -0
  253. package/dist/{manifest-schema-BOfPXse0.mjs → manifest-schema-kPGX7VS-.mjs} +3 -1
  254. package/dist/manifest-schema-kPGX7VS-.mjs.map +1 -0
  255. package/dist/media/local-runtime.d.mts +11 -10
  256. package/dist/media/local-runtime.d.mts.map +1 -1
  257. package/dist/media/local-runtime.mjs +5 -5
  258. package/dist/{media-BjKxjzk8.mjs → media-C0nRRfs1.mjs} +2 -2
  259. package/dist/{media-BjKxjzk8.mjs.map → media-C0nRRfs1.mjs.map} +1 -1
  260. package/dist/{menus-CxqJ-z-N.mjs → menus-DzRyC1ID.mjs} +50 -68
  261. package/dist/menus-DzRyC1ID.mjs.map +1 -0
  262. package/dist/{menus-8O6xNcYW.mjs → menus-SL2K0xq2.mjs} +3 -3
  263. package/dist/{menus-8O6xNcYW.mjs.map → menus-SL2K0xq2.mjs.map} +1 -1
  264. package/dist/object-cache/memory.d.mts +1 -1
  265. package/dist/{object-cache-SEb2IM4Z.mjs → object-cache-CHbHv83-.mjs} +8 -4
  266. package/dist/object-cache-CHbHv83-.mjs.map +1 -0
  267. package/dist/{options-BvClpP5Q.d.mts → options-41nCWqi9.d.mts} +2 -2
  268. package/dist/{options-BvClpP5Q.d.mts.map → options-41nCWqi9.d.mts.map} +1 -1
  269. package/dist/page/index.d.mts +6 -3
  270. package/dist/page/index.d.mts.map +1 -1
  271. package/dist/page/index.mjs +3 -2
  272. package/dist/page/index.mjs.map +1 -1
  273. package/dist/{parse-DqMWHQ8x.mjs → parse-CqyZj3Hp.mjs} +2 -2
  274. package/dist/{parse-DqMWHQ8x.mjs.map → parse-CqyZj3Hp.mjs.map} +1 -1
  275. package/dist/plugin-types.d.mts +4 -2
  276. package/dist/plugin-types.d.mts.map +1 -1
  277. package/dist/plugin-utils.d.mts +10 -9
  278. package/dist/plugin-utils.d.mts.map +1 -1
  279. package/dist/plugins/adapt-sandbox-entry.d.mts +10 -9
  280. package/dist/plugins/adapt-sandbox-entry.d.mts.map +1 -1
  281. package/dist/plugins/adapt-sandbox-entry.mjs +1 -1
  282. package/dist/{query-34pfm02Q.mjs → query-B0M-9LYR.mjs} +14 -14
  283. package/dist/{query-34pfm02Q.mjs.map → query-B0M-9LYR.mjs.map} +1 -1
  284. package/dist/{rate-limit-CBQK4ygJ.mjs → rate-limit-BwoUdIpC.mjs} +2 -2
  285. package/dist/{rate-limit-CBQK4ygJ.mjs.map → rate-limit-BwoUdIpC.mjs.map} +1 -1
  286. package/dist/{redirect-C1KVGYWe.mjs → redirect-lMOzG04S.mjs} +2 -2
  287. package/dist/{redirect-C1KVGYWe.mjs.map → redirect-lMOzG04S.mjs.map} +1 -1
  288. package/dist/{redirects-DgnypVir.mjs → redirects-9218MmYl.mjs} +3 -3
  289. package/dist/{redirects-DgnypVir.mjs.map → redirects-9218MmYl.mjs.map} +1 -1
  290. package/dist/{registry-3aOAS4My.mjs → registry-DP-iEtdR.mjs} +4 -4
  291. package/dist/{registry-3aOAS4My.mjs.map → registry-DP-iEtdR.mjs.map} +1 -1
  292. package/dist/{runner-CEtq-6Sm.d.mts → runner-BbR3DfrL.d.mts} +2 -2
  293. package/dist/{runner-CEtq-6Sm.d.mts.map → runner-BbR3DfrL.d.mts.map} +1 -1
  294. package/dist/{runner-BsquExlK.mjs → runner-CFngB4WZ.mjs} +296 -191
  295. package/dist/runner-CFngB4WZ.mjs.map +1 -0
  296. package/dist/runtime.d.mts +10 -9
  297. package/dist/runtime.d.mts.map +1 -1
  298. package/dist/runtime.mjs +2 -2
  299. package/dist/scheduled-publish-BMljtY5G.d.mts +11 -0
  300. package/dist/scheduled-publish-BMljtY5G.d.mts.map +1 -0
  301. package/dist/{schema-BGwx8AQY.mjs → schema-BfJ7bIXH.mjs} +5 -5
  302. package/dist/{schema-BGwx8AQY.mjs.map → schema-BfJ7bIXH.mjs.map} +1 -1
  303. package/dist/{search-Gl747zMP.mjs → search-C7t3PH1J.mjs} +6 -4
  304. package/dist/search-C7t3PH1J.mjs.map +1 -0
  305. package/dist/{sections-C-umuuLj.mjs → sections-Dm0CVX23.mjs} +3 -3
  306. package/dist/{sections-C-umuuLj.mjs.map → sections-Dm0CVX23.mjs.map} +1 -1
  307. package/dist/seed/index.d.mts +2 -2
  308. package/dist/seed/index.mjs +15 -15
  309. package/dist/{seo-BNzkiK_W.mjs → seo-Dd3tbY_k.mjs} +3 -3
  310. package/dist/{seo-BNzkiK_W.mjs.map → seo-Dd3tbY_k.mjs.map} +1 -1
  311. package/dist/{service-CQHK_10l.mjs → service-CTrqp_Jy.mjs} +2 -2
  312. package/dist/{service-CQHK_10l.mjs.map → service-CTrqp_Jy.mjs.map} +1 -1
  313. package/dist/{settings-C4tXRYiG.mjs → settings-BX8cWBus.mjs} +4 -4
  314. package/dist/{settings-C4tXRYiG.mjs.map → settings-BX8cWBus.mjs.map} +1 -1
  315. package/dist/{settings-fPSR6dJa.mjs → settings-CZ7ZP9cW.mjs} +3 -3
  316. package/dist/{settings-fPSR6dJa.mjs.map → settings-CZ7ZP9cW.mjs.map} +1 -1
  317. package/dist/storage/local.d.mts +1 -1
  318. package/dist/storage/s3.d.mts +1 -1
  319. package/dist/{taxonomies-DbAtL6m4.mjs → taxonomies-DChKcVxf.mjs} +5 -4
  320. package/dist/taxonomies-DChKcVxf.mjs.map +1 -0
  321. package/dist/{taxonomies-n8w72lLQ.mjs → taxonomies-ckPjz-6d.mjs} +75 -20
  322. package/dist/taxonomies-ckPjz-6d.mjs.map +1 -0
  323. package/dist/{taxonomy-BBUlGug5.mjs → taxonomy-Cru-he6s.mjs} +4 -4
  324. package/dist/{taxonomy-BBUlGug5.mjs.map → taxonomy-Cru-he6s.mjs.map} +1 -1
  325. package/dist/{transport-BZ-03aFT.d.mts → transport-Blrl2k_o.d.mts} +1 -1
  326. package/dist/{transport-BZ-03aFT.d.mts.map → transport-Blrl2k_o.d.mts.map} +1 -1
  327. package/dist/{types-h2Cwbzi2.d.mts → types-BYnDBVwe.d.mts} +24 -5
  328. package/dist/{types-h2Cwbzi2.d.mts.map → types-BYnDBVwe.d.mts.map} +1 -1
  329. package/dist/{types-BG8_XTLj.d.mts → types-BkZ8DUEI.d.mts} +1 -1
  330. package/dist/{types-BG8_XTLj.d.mts.map → types-BkZ8DUEI.d.mts.map} +1 -1
  331. package/dist/{types-DrYMm9s5.d.mts → types-ByChcBgE.d.mts} +1 -1
  332. package/dist/{types-DrYMm9s5.d.mts.map → types-ByChcBgE.d.mts.map} +1 -1
  333. package/dist/{types-BWqGVhFn.d.mts → types-CvuKO5Pn.d.mts} +1 -1
  334. package/dist/{types-BWqGVhFn.d.mts.map → types-CvuKO5Pn.d.mts.map} +1 -1
  335. package/dist/{types-CmI1OyQg.mjs → types-DU4TSFS5.mjs} +2 -2
  336. package/dist/{types-CmI1OyQg.mjs.map → types-DU4TSFS5.mjs.map} +1 -1
  337. package/dist/{types-CUsXGRVj.d.mts → types-Dbqff978.d.mts} +1 -1
  338. package/dist/{types-CUsXGRVj.d.mts.map → types-Dbqff978.d.mts.map} +1 -1
  339. package/dist/{types-fS7-VTdR.d.mts → types-Y09-wtyU.d.mts} +1 -1
  340. package/dist/{types-fS7-VTdR.d.mts.map → types-Y09-wtyU.d.mts.map} +1 -1
  341. package/dist/{types-B-gIxFCE.d.mts → types-xIfVRNLp.d.mts} +38 -1
  342. package/dist/types-xIfVRNLp.d.mts.map +1 -0
  343. package/dist/{user-JAuc8VUf.mjs → user-DgGbKL9s.mjs} +3 -3
  344. package/dist/{user-JAuc8VUf.mjs.map → user-DgGbKL9s.mjs.map} +1 -1
  345. package/dist/{validate-Va_An3qb.d.mts → validate-9ECmtEpJ.d.mts} +10 -5
  346. package/dist/{validate-Va_An3qb.d.mts.map → validate-9ECmtEpJ.d.mts.map} +1 -1
  347. package/dist/{validate-BzXHWnkV.mjs → validate-CRkcYZAR.mjs} +2 -2
  348. package/dist/{validate-BzXHWnkV.mjs.map → validate-CRkcYZAR.mjs.map} +1 -1
  349. package/dist/{validation-B6DKPTtU.mjs → validation-sR26SOwD.mjs} +5 -5
  350. package/dist/{validation-B6DKPTtU.mjs.map → validation-sR26SOwD.mjs.map} +1 -1
  351. package/dist/version-CrqhKGWn.mjs +7 -0
  352. package/dist/{version-DHdCA24u.mjs.map → version-CrqhKGWn.mjs.map} +1 -1
  353. package/dist/{widgets-C2RbFN0G.mjs → widgets-DRgtn7Cl.mjs} +2 -2
  354. package/dist/{widgets-C2RbFN0G.mjs.map → widgets-DRgtn7Cl.mjs.map} +1 -1
  355. package/dist/{zod-generator-xEHODMJf.mjs → zod-generator-C5JaV--i.mjs} +6 -3
  356. package/dist/zod-generator-C5JaV--i.mjs.map +1 -0
  357. package/package.json +8 -8
  358. package/src/api/handlers/content.ts +59 -16
  359. package/src/api/handlers/plugins.ts +77 -10
  360. package/src/api/handlers/taxonomies.ts +5 -1
  361. package/src/astro/integration/virtual-modules.ts +15 -0
  362. package/src/astro/integration/vite-config.ts +19 -1
  363. package/src/astro/middleware/auth.ts +1 -0
  364. package/src/astro/middleware.ts +1 -0
  365. package/src/astro/routes/api/admin/plugins/[id]/disable.ts +6 -1
  366. package/src/astro/routes/api/admin/plugins/[id]/enable.ts +6 -1
  367. package/src/astro/routes/api/admin/plugins/[id]/index.ts +1 -0
  368. package/src/astro/routes/api/admin/plugins/index.ts +1 -0
  369. package/src/astro/routes/api/manifest.ts +20 -1
  370. package/src/astro/routes/api/setup/dev-bypass.ts +7 -2
  371. package/src/astro/routes/sitemap-[collection].xml.ts +5 -4
  372. package/src/astro/types.ts +4 -0
  373. package/src/cli/commands/seed.ts +1 -1
  374. package/src/components/EmDashHead.astro +23 -3
  375. package/src/components/JsonLdScript.astro +9 -0
  376. package/src/components/LiveSearch.astro +40 -4
  377. package/src/components/live-search-routing.ts +30 -0
  378. package/src/database/migrations/036_i18n_menus_and_taxonomies.ts +39 -18
  379. package/src/database/migrations/046_media_usage_index.ts +115 -0
  380. package/src/database/migrations/047_restore_taxonomy_parent_index.ts +29 -0
  381. package/src/database/migrations/048_restore_content_taxonomies_term_index.ts +32 -0
  382. package/src/database/migrations/runner.ts +6 -0
  383. package/src/database/repositories/media-usage.ts +444 -0
  384. package/src/database/types.ts +39 -0
  385. package/src/emdash-runtime.ts +61 -52
  386. package/src/index.ts +3 -0
  387. package/src/loader.ts +110 -31
  388. package/src/media/usage/extractor.ts +302 -0
  389. package/src/media/usage/types.ts +46 -0
  390. package/src/object-cache/index.ts +8 -2
  391. package/src/page/metadata.ts +23 -3
  392. package/src/plugin-types.ts +10 -0
  393. package/src/plugins/define-plugin.ts +14 -5
  394. package/src/plugins/hooks.ts +53 -65
  395. package/src/plugins/index.ts +5 -0
  396. package/src/plugins/manager.ts +22 -0
  397. package/src/plugins/manifest-schema.ts +2 -0
  398. package/src/plugins/types.ts +35 -3
  399. package/src/schema/zod-generator.ts +9 -1
  400. package/src/search/query.ts +3 -0
  401. package/src/search/types.ts +2 -0
  402. package/src/seed/apply.ts +8 -2
  403. package/src/seed/types.ts +6 -1
  404. package/src/taxonomies/index.ts +121 -18
  405. package/dist/api-D2_sbavn.mjs.map +0 -1
  406. package/dist/apply-Bk2mAuLn.mjs.map +0 -1
  407. package/dist/index-Cz6_JBL3.d.mts.map +0 -1
  408. package/dist/loader-DrpofRon.mjs.map +0 -1
  409. package/dist/manifest-schema-BOfPXse0.mjs.map +0 -1
  410. package/dist/menus-CxqJ-z-N.mjs.map +0 -1
  411. package/dist/object-cache-SEb2IM4Z.mjs.map +0 -1
  412. package/dist/runner-BsquExlK.mjs.map +0 -1
  413. package/dist/search-Gl747zMP.mjs.map +0 -1
  414. package/dist/taxonomies-DbAtL6m4.mjs.map +0 -1
  415. package/dist/taxonomies-n8w72lLQ.mjs.map +0 -1
  416. package/dist/types-B-gIxFCE.d.mts.map +0 -1
  417. package/dist/version-DHdCA24u.mjs +0 -7
  418. package/dist/zod-generator-xEHODMJf.mjs.map +0 -1
@@ -1,12 +1,12 @@
1
1
  import "../../../../../../base64-CmWvODNW.mjs";
2
- import "../../../../../../types-CmI1OyQg.mjs";
3
- import { a as unwrapResult, o as mapErrorStatus, t as apiError } from "../../../../../../error-DXnK2wF4.mjs";
4
- import { n as parseBody, t as isParseError } from "../../../../../../parse-DqMWHQ8x.mjs";
2
+ import "../../../../../../types-DU4TSFS5.mjs";
3
+ import { a as unwrapResult, o as mapErrorStatus, t as apiError } from "../../../../../../error-BHkLZk-w.mjs";
4
+ import { n as parseBody, t as isParseError } from "../../../../../../parse-CqyZj3Hp.mjs";
5
5
  import { ln as contentScheduleBody } from "../../../../../../redirects-Dcbuisoj.mjs";
6
6
  import "../../../../../../byline-fields-eyJMblSr.mjs";
7
7
  import "../../../../../../status-vUK0SA17.mjs";
8
8
  import "../../../../../../api/schemas/index.mjs";
9
- import { t as requireOwnerPerm } from "../../../../../../authorize-CuxZ0i2t.mjs";
9
+ import { t as requireOwnerPerm } from "../../../../../../authorize-C3a_zGsM.mjs";
10
10
 
11
11
  //#region src/astro/routes/api/content/[collection]/[id]/schedule.ts
12
12
  const prerender = false;
@@ -1,21 +1,21 @@
1
1
  import "../../../../../../../dialect-helpers-DRI5pyY3.mjs";
2
2
  import "../../../../../../../after-B1IIdH3Y.mjs";
3
- import "../../../../../../../object-cache-SEb2IM4Z.mjs";
4
- import { t as ContentRepository } from "../../../../../../../content-B43-YrIq.mjs";
3
+ import "../../../../../../../object-cache-CHbHv83-.mjs";
4
+ import { t as ContentRepository } from "../../../../../../../content-RmfHoWqK.mjs";
5
5
  import "../../../../../../../base64-CmWvODNW.mjs";
6
- import "../../../../../../../types-CmI1OyQg.mjs";
7
- import { t as TaxonomyRepository } from "../../../../../../../taxonomy-BBUlGug5.mjs";
6
+ import "../../../../../../../types-DU4TSFS5.mjs";
7
+ import { t as TaxonomyRepository } from "../../../../../../../taxonomy-Cru-he6s.mjs";
8
8
  import "../../../../../../../request-cache-KCNHp_RJ.mjs";
9
- import "../../../../../../../loader-DrpofRon.mjs";
9
+ import "../../../../../../../loader-4K37qA-y.mjs";
10
10
  import "../../../../../../../resolve-C7I0qiR0.mjs";
11
- import { l as invalidateTermCache } from "../../../../../../../taxonomies-n8w72lLQ.mjs";
12
- import { i as requireDb, n as apiSuccess, r as handleError, t as apiError } from "../../../../../../../error-DXnK2wF4.mjs";
13
- import { n as parseBody, t as isParseError } from "../../../../../../../parse-DqMWHQ8x.mjs";
11
+ import { u as invalidateTermCache } from "../../../../../../../taxonomies-ckPjz-6d.mjs";
12
+ import { i as requireDb, n as apiSuccess, r as handleError, t as apiError } from "../../../../../../../error-BHkLZk-w.mjs";
13
+ import { n as parseBody, t as isParseError } from "../../../../../../../parse-CqyZj3Hp.mjs";
14
14
  import { fn as contentTermsBody } from "../../../../../../../redirects-Dcbuisoj.mjs";
15
15
  import "../../../../../../../byline-fields-eyJMblSr.mjs";
16
16
  import "../../../../../../../status-vUK0SA17.mjs";
17
17
  import "../../../../../../../api/schemas/index.mjs";
18
- import { n as requirePerm, t as requireOwnerPerm } from "../../../../../../../authorize-CuxZ0i2t.mjs";
18
+ import { n as requirePerm, t as requireOwnerPerm } from "../../../../../../../authorize-C3a_zGsM.mjs";
19
19
 
20
20
  //#region src/astro/routes/api/content/[collection]/[id]/terms/[taxonomy].ts
21
21
  const prerender = false;
@@ -1,7 +1,7 @@
1
1
  import "../../../../../../base64-CmWvODNW.mjs";
2
- import "../../../../../../types-CmI1OyQg.mjs";
3
- import { a as unwrapResult, t as apiError } from "../../../../../../error-DXnK2wF4.mjs";
4
- import { n as requirePerm } from "../../../../../../authorize-CuxZ0i2t.mjs";
2
+ import "../../../../../../types-DU4TSFS5.mjs";
3
+ import { a as unwrapResult, t as apiError } from "../../../../../../error-BHkLZk-w.mjs";
4
+ import { n as requirePerm } from "../../../../../../authorize-C3a_zGsM.mjs";
5
5
  import { hasPermission } from "@emdash-cms/auth";
6
6
 
7
7
  //#region src/astro/routes/api/content/[collection]/[id]/translations.ts
@@ -1,7 +1,7 @@
1
1
  import "../../../../../../base64-CmWvODNW.mjs";
2
- import "../../../../../../types-CmI1OyQg.mjs";
3
- import { a as unwrapResult, o as mapErrorStatus, t as apiError } from "../../../../../../error-DXnK2wF4.mjs";
4
- import { t as requireOwnerPerm } from "../../../../../../authorize-CuxZ0i2t.mjs";
2
+ import "../../../../../../types-DU4TSFS5.mjs";
3
+ import { a as unwrapResult, o as mapErrorStatus, t as apiError } from "../../../../../../error-BHkLZk-w.mjs";
4
+ import { t as requireOwnerPerm } from "../../../../../../authorize-C3a_zGsM.mjs";
5
5
 
6
6
  //#region src/astro/routes/api/content/[collection]/[id]/unpublish.ts
7
7
  const prerender = false;
@@ -1,12 +1,12 @@
1
1
  import "../../../../../base64-CmWvODNW.mjs";
2
- import "../../../../../types-CmI1OyQg.mjs";
3
- import { a as unwrapResult, o as mapErrorStatus, t as apiError } from "../../../../../error-DXnK2wF4.mjs";
4
- import { n as parseBody, t as isParseError } from "../../../../../parse-DqMWHQ8x.mjs";
2
+ import "../../../../../types-DU4TSFS5.mjs";
3
+ import { a as unwrapResult, o as mapErrorStatus, t as apiError } from "../../../../../error-BHkLZk-w.mjs";
4
+ import { n as parseBody, t as isParseError } from "../../../../../parse-CqyZj3Hp.mjs";
5
5
  import { gn as contentUpdateBody } from "../../../../../redirects-Dcbuisoj.mjs";
6
6
  import "../../../../../byline-fields-eyJMblSr.mjs";
7
7
  import "../../../../../status-vUK0SA17.mjs";
8
8
  import "../../../../../api/schemas/index.mjs";
9
- import { n as requirePerm, t as requireOwnerPerm } from "../../../../../authorize-CuxZ0i2t.mjs";
9
+ import { n as requirePerm, t as requireOwnerPerm } from "../../../../../authorize-C3a_zGsM.mjs";
10
10
  import { hasPermission } from "@emdash-cms/auth";
11
11
 
12
12
  //#region src/astro/routes/api/content/[collection]/[id].ts
@@ -1,7 +1,7 @@
1
1
  import "../../../../../base64-CmWvODNW.mjs";
2
- import "../../../../../types-CmI1OyQg.mjs";
3
- import { a as unwrapResult, t as apiError } from "../../../../../error-DXnK2wF4.mjs";
4
- import { n as requirePerm } from "../../../../../authorize-CuxZ0i2t.mjs";
2
+ import "../../../../../types-DU4TSFS5.mjs";
3
+ import { a as unwrapResult, t as apiError } from "../../../../../error-BHkLZk-w.mjs";
4
+ import { n as requirePerm } from "../../../../../authorize-C3a_zGsM.mjs";
5
5
 
6
6
  //#region src/astro/routes/api/content/[collection]/authors.ts
7
7
  const prerender = false;
@@ -1,12 +1,12 @@
1
1
  import "../../../../../base64-CmWvODNW.mjs";
2
- import "../../../../../types-CmI1OyQg.mjs";
3
- import { a as unwrapResult, o as mapErrorStatus, t as apiError } from "../../../../../error-DXnK2wF4.mjs";
4
- import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../parse-DqMWHQ8x.mjs";
2
+ import "../../../../../types-DU4TSFS5.mjs";
3
+ import { a as unwrapResult, o as mapErrorStatus, t as apiError } from "../../../../../error-BHkLZk-w.mjs";
4
+ import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../parse-CqyZj3Hp.mjs";
5
5
  import { in as contentListQuery, nn as contentCreateBody } from "../../../../../redirects-Dcbuisoj.mjs";
6
6
  import "../../../../../byline-fields-eyJMblSr.mjs";
7
7
  import "../../../../../status-vUK0SA17.mjs";
8
8
  import "../../../../../api/schemas/index.mjs";
9
- import { n as requirePerm, t as requireOwnerPerm } from "../../../../../authorize-CuxZ0i2t.mjs";
9
+ import { n as requirePerm, t as requireOwnerPerm } from "../../../../../authorize-C3a_zGsM.mjs";
10
10
  import { hasPermission } from "@emdash-cms/auth";
11
11
 
12
12
  //#region src/astro/routes/api/content/[collection]/index.ts
@@ -1,12 +1,12 @@
1
1
  import "../../../../../base64-CmWvODNW.mjs";
2
- import "../../../../../types-CmI1OyQg.mjs";
3
- import { a as unwrapResult, t as apiError } from "../../../../../error-DXnK2wF4.mjs";
4
- import { i as parseQuery, t as isParseError } from "../../../../../parse-DqMWHQ8x.mjs";
2
+ import "../../../../../types-DU4TSFS5.mjs";
3
+ import { a as unwrapResult, t as apiError } from "../../../../../error-BHkLZk-w.mjs";
4
+ import { i as parseQuery, t as isParseError } from "../../../../../parse-CqyZj3Hp.mjs";
5
5
  import { hn as contentTrashQuery } from "../../../../../redirects-Dcbuisoj.mjs";
6
6
  import "../../../../../byline-fields-eyJMblSr.mjs";
7
7
  import "../../../../../status-vUK0SA17.mjs";
8
8
  import "../../../../../api/schemas/index.mjs";
9
- import { n as requirePerm } from "../../../../../authorize-CuxZ0i2t.mjs";
9
+ import { n as requirePerm } from "../../../../../authorize-C3a_zGsM.mjs";
10
10
 
11
11
  //#region src/astro/routes/api/content/[collection]/trash.ts
12
12
  const prerender = false;
@@ -1,13 +1,13 @@
1
1
  import "../../../after-B1IIdH3Y.mjs";
2
- import "../../../object-cache-SEb2IM4Z.mjs";
3
- import "../../../content-B43-YrIq.mjs";
2
+ import "../../../object-cache-CHbHv83-.mjs";
3
+ import "../../../content-RmfHoWqK.mjs";
4
4
  import "../../../base64-CmWvODNW.mjs";
5
- import "../../../types-CmI1OyQg.mjs";
6
- import "../../../media-BjKxjzk8.mjs";
7
- import "../../../user-JAuc8VUf.mjs";
8
- import { t as handleDashboardStats } from "../../../dashboard-FIe0S512.mjs";
9
- import { a as unwrapResult, r as handleError, t as apiError } from "../../../error-DXnK2wF4.mjs";
10
- import { n as requirePerm } from "../../../authorize-CuxZ0i2t.mjs";
5
+ import "../../../types-DU4TSFS5.mjs";
6
+ import "../../../media-C0nRRfs1.mjs";
7
+ import "../../../user-DgGbKL9s.mjs";
8
+ import { t as handleDashboardStats } from "../../../dashboard-CVyGhift.mjs";
9
+ import { a as unwrapResult, r as handleError, t as apiError } from "../../../error-BHkLZk-w.mjs";
10
+ import { n as requirePerm } from "../../../authorize-C3a_zGsM.mjs";
11
11
 
12
12
  //#region src/astro/routes/api/dashboard.ts
13
13
  const prerender = false;
@@ -1,6 +1,6 @@
1
1
  import "../../../../base64-CmWvODNW.mjs";
2
- import "../../../../types-CmI1OyQg.mjs";
3
- import { n as apiSuccess, t as apiError } from "../../../../error-DXnK2wF4.mjs";
2
+ import "../../../../types-DU4TSFS5.mjs";
3
+ import { n as apiSuccess, t as apiError } from "../../../../error-BHkLZk-w.mjs";
4
4
  import { i as getDevEmails, n as clearDevEmails } from "../../../../email-console-DJP32ucW.mjs";
5
5
 
6
6
  //#region src/astro/routes/api/dev/emails.ts
@@ -1,6 +1,6 @@
1
- import "../../../../types-B-gIxFCE.mjs";
2
- import "../../../../index-qbL02uhs.mjs";
3
- import { g as ProbeResult } from "../../../../types-CUsXGRVj.mjs";
1
+ import "../../../../types-xIfVRNLp.mjs";
2
+ import "../../../../index-DGIjmUXQ.mjs";
3
+ import { g as ProbeResult } from "../../../../types-Dbqff978.mjs";
4
4
  import { APIRoute } from "astro";
5
5
 
6
6
  //#region src/astro/routes/api/import/probe.d.ts
@@ -1,8 +1,8 @@
1
1
  import "../../../../base64-CmWvODNW.mjs";
2
- import "../../../../types-CmI1OyQg.mjs";
2
+ import "../../../../types-DU4TSFS5.mjs";
3
3
  import { t as SsrfError } from "../../../../ssrf-BRKb343l.mjs";
4
- import { n as apiSuccess, r as handleError, t as apiError } from "../../../../error-DXnK2wF4.mjs";
5
- import { n as parseBody, t as isParseError } from "../../../../parse-DqMWHQ8x.mjs";
4
+ import { n as apiSuccess, r as handleError, t as apiError } from "../../../../error-BHkLZk-w.mjs";
5
+ import { n as parseBody, t as isParseError } from "../../../../parse-CqyZj3Hp.mjs";
6
6
  import "../../../../redirects-Dcbuisoj.mjs";
7
7
  import { f as importProbeBody } from "../../../../byline-fields-eyJMblSr.mjs";
8
8
  import "../../../../status-vUK0SA17.mjs";
@@ -10,7 +10,7 @@ import "../../../../api/schemas/index.mjs";
10
10
  import { l as probeUrl } from "../../../../import-Bb1T9WJS.mjs";
11
11
  import "../../../../ssrf-CcX9zvMK.mjs";
12
12
  import "../../../../utils-B7A57fm9.mjs";
13
- import { n as requirePerm } from "../../../../authorize-CuxZ0i2t.mjs";
13
+ import { n as requirePerm } from "../../../../authorize-C3a_zGsM.mjs";
14
14
 
15
15
  //#region src/astro/routes/api/import/probe.ts
16
16
  const prerender = false;
@@ -1,8 +1,8 @@
1
1
  import "../../../../../base64-CmWvODNW.mjs";
2
- import "../../../../../types-CmI1OyQg.mjs";
2
+ import "../../../../../types-DU4TSFS5.mjs";
3
3
  import { a as RESERVED_COLLECTION_SLUGS } from "../../../../../types-tM44hEcf.mjs";
4
- import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DXnK2wF4.mjs";
5
- import { n as requirePerm } from "../../../../../authorize-CuxZ0i2t.mjs";
4
+ import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-BHkLZk-w.mjs";
5
+ import { n as requirePerm } from "../../../../../authorize-C3a_zGsM.mjs";
6
6
  import mime from "mime/lite";
7
7
  import { SchemaRegistry, parseWxrString } from "emdash";
8
8
 
@@ -1,12 +1,13 @@
1
- import "../../../../../options-BvClpP5Q.mjs";
2
- import "../../../../../types-B-gIxFCE.mjs";
3
- import "../../../../../types-h2Cwbzi2.mjs";
4
- import "../../../../../byline-fields-KD3JFRuH.mjs";
5
- import "../../../../../index-Cz6_JBL3.mjs";
6
- import "../../../../../runner-CEtq-6Sm.mjs";
7
- import "../../../../../index-qbL02uhs.mjs";
8
- import "../../../../../types-CUsXGRVj.mjs";
9
- import "../../../../../validate-Va_An3qb.mjs";
1
+ import "../../../../../options-41nCWqi9.mjs";
2
+ import "../../../../../types-xIfVRNLp.mjs";
3
+ import "../../../../../types-BYnDBVwe.mjs";
4
+ import "../../../../../byline-fields-CtQ6blXd.mjs";
5
+ import "../../../../../index-CDZZjrLT.mjs";
6
+ import "../../../../../runner-BbR3DfrL.mjs";
7
+ import "../../../../../index-DGIjmUXQ.mjs";
8
+ import "../../../../../scheduled-publish-BMljtY5G.mjs";
9
+ import "../../../../../types-Dbqff978.mjs";
10
+ import "../../../../../validate-9ECmtEpJ.mjs";
10
11
  import { EmDashHandlers, EmDashManifest } from "../../../../types.mjs";
11
12
  import { Kysely } from "kysely";
12
13
  import { WxrPost } from "emdash";
@@ -1 +1 @@
1
- {"version":3,"file":"execute.d.mts","names":[],"sources":["../../../../../../src/import/wxr-taxonomies.ts","../../../../../../src/astro/routes/api/import/wordpress/execute.ts"],"mappings":";;;;;;;;;;;;;;;;;;UA8DiB,kBAAA;ECzBY;ED2B5B,YAAA,EAAc,MAAA;ECbS;EDevB,WAAA,EAAa,MAAA;EC3BK;ED6BlB,iBAAA;ECzBE;;;;ED8BF,mBAAA,EAAqB,GAAA,SAAY,GAAA;ECpBjC;;;AAGD;;EDuBC,qBAAA,EAAuB,GAAA,SAAY,GAAA;ECnB3B;;;;;EDyBR,wBAAA,EAA0B,GAAA;AAAA;;;cClDd,SAAA;AAAA,UAEI,YAAA;;EAEhB,gBAAA,EAAkB,MAAA;IAGhB,UAAA;IACA,OAAA;EAAA;EDqBY;ECjBd,YAAA;ED0BiC;ECxBjC,cAAA;ED8BmC;EC5BnC,cAAA,GAAiB,MAAA;EDkCS;EChC1B,MAAA;AAAA;AAAA,UAGgB,YAAA;EAChB,OAAA;EACA,QAAA;EACA,OAAA;EACA,MAAA,EAAQ,KAAA;IAAQ,KAAA;IAAe,KAAA;EAAA;EAC/B,YAAA,EAAc,MAAA;EDkBS;EChBvB,QAAA;IACC,OAAA;IACA,OAAA;EAAA;EDoB4B;ECjB7B,UAAA;0EAEC,YAAA,EAAc,MAAA,kBAnCH;IAqCX,WAAA,EAAa,MAAA,kBArCO;IAuCpB,WAAA;IAvCoB;AAEtB;;;;IA2CE,iBAAA;EAAA;AAAA;AAAA,cAIW,IAAA,EAAM,QAAA;AAAA,iBA2HG,aAAA,CACrB,KAAA,EAAO,OAAA,IACP,MAAA,EAAQ,YAAA,EACR,MAAA,EAAQ,cAAA,EACR,QAAA,EAAU,cAAA,EACV,aAAA,EAAe,GAAA,kBACf,MAAA,sBACA,kBAAA,EAAoB,GAAA,8BACpB,YAAA,EAAc,kBAAA,GACZ,OAAA,CAAQ,YAAA"}
1
+ {"version":3,"file":"execute.d.mts","names":[],"sources":["../../../../../../src/import/wxr-taxonomies.ts","../../../../../../src/astro/routes/api/import/wordpress/execute.ts"],"mappings":";;;;;;;;;;;;;;;;;;;UA8DiB,kBAAA;ECzBA;ED2BhB,YAAA,EAAc,MAAA;;EAEd,WAAA,EAAa,MAAA;EC3Bb;ED6BA,iBAAA;EC1BE;;;;ED+BF,mBAAA,EAAqB,GAAA,SAAY,GAAA;ECtBhB;;;;AAKlB;EDuBC,qBAAA,EAAuB,GAAA,SAAY,GAAA;;;;;;EAMnC,wBAAA,EAA0B,GAAA;AAAA;;;cClDd,SAAA;AAAA,UAEI,YAAA;;EAEhB,gBAAA,EAAkB,MAAA;IAGhB,UAAA;IACA,OAAA;EAAA;;EAIF,YAAA;EDmBa;ECjBb,cAAA;EDwBqB;ECtBrB,cAAA,GAAiB,MAAA;ED4BM;EC1BvB,MAAA;AAAA;AAAA,UAGgB,YAAA;EAChB,OAAA;EACA,QAAA;EACA,OAAA;EACA,MAAA,EAAQ,KAAA;IAAQ,KAAA;IAAe,KAAA;EAAA;EAC/B,YAAA,EAAc,MAAA;EDkBd;EChBA,QAAA;IACC,OAAA;IACA,OAAA;EAAA;EDoB4B;ECjB7B,UAAA;0EAEC,YAAA,EAAc,MAAA;IAEd,WAAA,EAAa,MAAA,kBArCO;IAuCpB,WAAA;IAvCoB;;AAEtB;;;IA2CE,iBAAA;EAAA;AAAA;AAAA,cAIW,IAAA,EAAM,QAAA;AAAA,iBA2HG,aAAA,CACrB,KAAA,EAAO,OAAA,IACP,MAAA,EAAQ,YAAA,EACR,MAAA,EAAQ,cAAA,EACR,QAAA,EAAU,cAAA,EACV,aAAA,EAAe,GAAA,kBACf,MAAA,sBACA,kBAAA,EAAoB,GAAA,8BACpB,YAAA,EAAc,kBAAA,GACZ,OAAA,CAAQ,YAAA"}
@@ -1,20 +1,20 @@
1
1
  import "../../../../../dialect-helpers-DRI5pyY3.mjs";
2
2
  import "../../../../../after-B1IIdH3Y.mjs";
3
- import "../../../../../object-cache-SEb2IM4Z.mjs";
3
+ import "../../../../../object-cache-CHbHv83-.mjs";
4
4
  import { n as slugify } from "../../../../../slugify-Cce3dTdg.mjs";
5
5
  import "../../../../../base64-CmWvODNW.mjs";
6
- import "../../../../../types-CmI1OyQg.mjs";
7
- import { t as TaxonomyRepository } from "../../../../../taxonomy-BBUlGug5.mjs";
6
+ import "../../../../../types-DU4TSFS5.mjs";
7
+ import { t as TaxonomyRepository } from "../../../../../taxonomy-Cru-he6s.mjs";
8
8
  import "../../../../../request-cache-KCNHp_RJ.mjs";
9
9
  import "../../../../../byline-registry-BOjqDOim.mjs";
10
- import "../../../../../field-defs-cache-CYYx8xlG.mjs";
11
- import { t as BylineRepository } from "../../../../../byline-C-YajfV7.mjs";
12
- import "../../../../../loader-DrpofRon.mjs";
10
+ import "../../../../../field-defs-cache-BA-8ZPiT.mjs";
11
+ import { t as BylineRepository } from "../../../../../byline-DEKSVPTy.mjs";
12
+ import "../../../../../loader-4K37qA-y.mjs";
13
13
  import { i as resolveLocaleChain } from "../../../../../resolve-C7I0qiR0.mjs";
14
- import { l as invalidateTermCache } from "../../../../../taxonomies-n8w72lLQ.mjs";
15
- import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DXnK2wF4.mjs";
14
+ import { u as invalidateTermCache } from "../../../../../taxonomies-ckPjz-6d.mjs";
15
+ import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-BHkLZk-w.mjs";
16
16
  import { m as resolveImportByline } from "../../../../../utils-B7A57fm9.mjs";
17
- import { n as requirePerm } from "../../../../../authorize-CuxZ0i2t.mjs";
17
+ import { n as requirePerm } from "../../../../../authorize-C3a_zGsM.mjs";
18
18
  import { sanitizeSlug } from "./analyze.mjs";
19
19
  import { gutenbergToPortableText } from "@emdash-cms/gutenberg-to-portable-text";
20
20
  import { ContentRepository, importReusableBlocksAsSections, parseWxrDate, parseWxrString } from "emdash";
@@ -1,12 +1,13 @@
1
- import "../../../../../options-BvClpP5Q.mjs";
2
- import "../../../../../types-B-gIxFCE.mjs";
3
- import "../../../../../types-h2Cwbzi2.mjs";
4
- import "../../../../../byline-fields-KD3JFRuH.mjs";
5
- import "../../../../../index-Cz6_JBL3.mjs";
6
- import "../../../../../runner-CEtq-6Sm.mjs";
7
- import "../../../../../index-qbL02uhs.mjs";
8
- import "../../../../../types-CUsXGRVj.mjs";
9
- import "../../../../../validate-Va_An3qb.mjs";
1
+ import "../../../../../options-41nCWqi9.mjs";
2
+ import "../../../../../types-xIfVRNLp.mjs";
3
+ import "../../../../../types-BYnDBVwe.mjs";
4
+ import "../../../../../byline-fields-CtQ6blXd.mjs";
5
+ import "../../../../../index-CDZZjrLT.mjs";
6
+ import "../../../../../runner-BbR3DfrL.mjs";
7
+ import "../../../../../index-DGIjmUXQ.mjs";
8
+ import "../../../../../scheduled-publish-BMljtY5G.mjs";
9
+ import "../../../../../types-Dbqff978.mjs";
10
+ import "../../../../../validate-9ECmtEpJ.mjs";
10
11
  import { EmDashHandlers } from "../../../../types.mjs";
11
12
  import { AttachmentInfo } from "./analyze.mjs";
12
13
  import { APIRoute } from "astro";
@@ -1 +1 @@
1
- {"version":3,"file":"media.d.mts","names":[],"sources":["../../../../../../src/astro/routes/api/import/wordpress/media.ts"],"mappings":";;;;;;;;;;;;;;cA2Ba,SAAA;;UAGI,mBAAA;EAChB,IAAA;EACA,OAAA;EACA,KAAA;EACA,QAAA;EACA,MAAA;EACA,KAAA;AAAA;;UAIgB,iBAAA;EAChB,IAAA;EARA;EAUA,QAAA,EAAU,KAAA;IACT,IAAA;IACA,WAAA;IACA,MAAA;IACA,OAAA;EAAA;EAPgC;EAUjC,MAAA,EAAQ,KAAA;IACP,IAAA;IACA,WAAA;IACA,KAAA;EAAA;EAGa;EAAd,MAAA,EAAQ,MAAA;AAAA;AAAA,cAGI,IAAA,EAAM,QAAA;AAAA,iBAqEG,uBAAA,CACrB,WAAA,EAAa,cAAA,IACb,EAAA,EAAI,WAAA,CAAY,cAAA,SAChB,OAAA,EAAS,WAAA,CAAY,cAAA,cACrB,UAAA,GAAa,QAAA,EAAU,mBAAA,YACrB,OAAA,CAAQ,iBAAA"}
1
+ {"version":3,"file":"media.d.mts","names":[],"sources":["../../../../../../src/astro/routes/api/import/wordpress/media.ts"],"mappings":";;;;;;;;;;;;;;;cA2Ba,SAAA;;UAGI,mBAAA;EAChB,IAAA;EACA,OAAA;EACA,KAAA;EACA,QAAA;EACA,MAAA;EACA,KAAA;AAAA;;UAIgB,iBAAA;EAChB,IAAA;EATA;EAWA,QAAA,EAAU,KAAA;IACT,IAAA;IACA,WAAA;IACA,MAAA;IACA,OAAA;EAAA;EAPe;EAUhB,MAAA,EAAQ,KAAA;IACP,IAAA;IACA,WAAA;IACA,KAAA;EAAA;EAGa;EAAd,MAAA,EAAQ,MAAA;AAAA;AAAA,cAGI,IAAA,EAAM,QAAA;AAAA,iBAqEG,uBAAA,CACrB,WAAA,EAAa,cAAA,IACb,EAAA,EAAI,WAAA,CAAY,cAAA,SAChB,OAAA,EAAS,WAAA,CAAY,cAAA,cACrB,UAAA,GAAa,QAAA,EAAU,mBAAA,YACrB,OAAA,CAAQ,iBAAA"}
@@ -1,15 +1,15 @@
1
1
  import "../../../../../base64-CmWvODNW.mjs";
2
- import "../../../../../types-CmI1OyQg.mjs";
2
+ import "../../../../../types-DU4TSFS5.mjs";
3
3
  import { t as enrichImageMetadata } from "../../../../../enrich-BQ0mxJRs.mjs";
4
4
  import { a as validateExternalUrl, r as ssrfSafeFetch, t as SsrfError } from "../../../../../ssrf-BRKb343l.mjs";
5
- import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DXnK2wF4.mjs";
6
- import { n as parseBody, t as isParseError } from "../../../../../parse-DqMWHQ8x.mjs";
5
+ import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-BHkLZk-w.mjs";
6
+ import { n as parseBody, t as isParseError } from "../../../../../parse-CqyZj3Hp.mjs";
7
7
  import "../../../../../redirects-Dcbuisoj.mjs";
8
8
  import { p as wpMediaImportBody } from "../../../../../byline-fields-eyJMblSr.mjs";
9
9
  import "../../../../../status-vUK0SA17.mjs";
10
10
  import "../../../../../api/schemas/index.mjs";
11
11
  import "../../../../../ssrf-CcX9zvMK.mjs";
12
- import { n as requirePerm } from "../../../../../authorize-CuxZ0i2t.mjs";
12
+ import { n as requirePerm } from "../../../../../authorize-C3a_zGsM.mjs";
13
13
  import { ulid } from "ulidx";
14
14
  import mime from "mime/lite";
15
15
  import * as path from "node:path";
@@ -1,13 +1,13 @@
1
1
  import "../../../../../base64-CmWvODNW.mjs";
2
- import "../../../../../types-CmI1OyQg.mjs";
2
+ import "../../../../../types-DU4TSFS5.mjs";
3
3
  import { n as FIELD_TYPES } from "../../../../../types-tM44hEcf.mjs";
4
- import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DXnK2wF4.mjs";
5
- import { n as parseBody, t as isParseError } from "../../../../../parse-DqMWHQ8x.mjs";
4
+ import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-BHkLZk-w.mjs";
5
+ import { n as parseBody, t as isParseError } from "../../../../../parse-CqyZj3Hp.mjs";
6
6
  import "../../../../../redirects-Dcbuisoj.mjs";
7
7
  import { g as wpPrepareBody } from "../../../../../byline-fields-eyJMblSr.mjs";
8
8
  import "../../../../../status-vUK0SA17.mjs";
9
9
  import "../../../../../api/schemas/index.mjs";
10
- import { n as requirePerm } from "../../../../../authorize-CuxZ0i2t.mjs";
10
+ import { n as requirePerm } from "../../../../../authorize-C3a_zGsM.mjs";
11
11
  import { capitalize, sanitizeSlug, singularize } from "./analyze.mjs";
12
12
 
13
13
  //#region src/astro/routes/api/import/wordpress/prepare.ts
@@ -32,7 +32,7 @@ const POST = async ({ request, locals }) => {
32
32
  }
33
33
  };
34
34
  async function prepareImport(db, request) {
35
- const { SchemaRegistry } = await import("../../../../../registry-3aOAS4My.mjs").then((n) => n.r);
35
+ const { SchemaRegistry } = await import("../../../../../registry-DP-iEtdR.mjs").then((n) => n.r);
36
36
  const registry = new SchemaRegistry(db);
37
37
  const result = {
38
38
  success: true,
@@ -98,7 +98,7 @@ async function prepareImport(db, request) {
98
98
  "post",
99
99
  "page"
100
100
  ].includes(collectionSlug)) {
101
- const { FTSManager } = await import("../../../../../fts-manager-DW_NR-Fs.mjs").then((n) => n.n);
101
+ const { FTSManager } = await import("../../../../../fts-manager-Db9jGavf.mjs").then((n) => n.n);
102
102
  const ftsManager = new FTSManager(db);
103
103
  if ((await ftsManager.getSearchableFields(collectionSlug)).length > 0) try {
104
104
  await ftsManager.enableSearch(collectionSlug);
@@ -1,14 +1,14 @@
1
1
  import { t as validateIdentifier } from "../../../../../validate-VPnKoIzW.mjs";
2
2
  import "../../../../../base64-CmWvODNW.mjs";
3
- import "../../../../../types-CmI1OyQg.mjs";
3
+ import "../../../../../types-DU4TSFS5.mjs";
4
4
  import { n as normalizeMediaValue } from "../../../../../normalize-CeglrBT9.mjs";
5
- import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DXnK2wF4.mjs";
6
- import { n as parseBody, t as isParseError } from "../../../../../parse-DqMWHQ8x.mjs";
5
+ import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-BHkLZk-w.mjs";
6
+ import { n as parseBody, t as isParseError } from "../../../../../parse-CqyZj3Hp.mjs";
7
7
  import "../../../../../redirects-Dcbuisoj.mjs";
8
8
  import { _ as wpRewriteUrlsBody } from "../../../../../byline-fields-eyJMblSr.mjs";
9
9
  import "../../../../../status-vUK0SA17.mjs";
10
10
  import "../../../../../api/schemas/index.mjs";
11
- import { n as requirePerm } from "../../../../../authorize-CuxZ0i2t.mjs";
11
+ import { n as requirePerm } from "../../../../../authorize-C3a_zGsM.mjs";
12
12
  import { buildBaseUrlMap, extractMediaUrl, findMatchingUrl, rewritePortableTextUrls, rewriteStringUrls } from "./rewrite-url-helpers.mjs";
13
13
  import { sql } from "kysely";
14
14
 
@@ -35,7 +35,7 @@ const POST = async ({ request, locals }) => {
35
35
  }
36
36
  };
37
37
  async function rewriteUrls(db, urlMap, getProvider, collections) {
38
- const { SchemaRegistry } = await import("../../../../../registry-3aOAS4My.mjs").then((n) => n.r);
38
+ const { SchemaRegistry } = await import("../../../../../registry-DP-iEtdR.mjs").then((n) => n.r);
39
39
  const registry = new SchemaRegistry(db);
40
40
  const result = {
41
41
  updated: 0,
@@ -1,4 +1,4 @@
1
- import { o as ImportAnalysis } from "../../../../../types-CUsXGRVj.mjs";
1
+ import { o as ImportAnalysis } from "../../../../../types-Dbqff978.mjs";
2
2
  import { APIRoute } from "astro";
3
3
 
4
4
  //#region src/astro/routes/api/import/wordpress-plugin/analyze.d.ts
@@ -1,8 +1,8 @@
1
1
  import "../../../../../base64-CmWvODNW.mjs";
2
- import "../../../../../types-CmI1OyQg.mjs";
2
+ import "../../../../../types-DU4TSFS5.mjs";
3
3
  import { n as resolveAndValidateExternalUrl, t as SsrfError } from "../../../../../ssrf-BRKb343l.mjs";
4
- import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DXnK2wF4.mjs";
5
- import { n as parseBody, t as isParseError } from "../../../../../parse-DqMWHQ8x.mjs";
4
+ import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-BHkLZk-w.mjs";
5
+ import { n as parseBody, t as isParseError } from "../../../../../parse-CqyZj3Hp.mjs";
6
6
  import "../../../../../redirects-Dcbuisoj.mjs";
7
7
  import { m as wpPluginAnalyzeBody } from "../../../../../byline-fields-eyJMblSr.mjs";
8
8
  import "../../../../../status-vUK0SA17.mjs";
@@ -10,7 +10,7 @@ import "../../../../../api/schemas/index.mjs";
10
10
  import { s as getSource } from "../../../../../import-Bb1T9WJS.mjs";
11
11
  import "../../../../../ssrf-CcX9zvMK.mjs";
12
12
  import "../../../../../utils-B7A57fm9.mjs";
13
- import { n as requirePerm } from "../../../../../authorize-CuxZ0i2t.mjs";
13
+ import { n as requirePerm } from "../../../../../authorize-C3a_zGsM.mjs";
14
14
  import { SchemaRegistry } from "emdash";
15
15
 
16
16
  //#region src/astro/routes/api/import/wordpress-plugin/analyze.ts
@@ -1,4 +1,4 @@
1
- import { s as ImportConfig, u as ImportResult } from "../../../../../types-CUsXGRVj.mjs";
1
+ import { s as ImportConfig, u as ImportResult } from "../../../../../types-Dbqff978.mjs";
2
2
  import { APIRoute } from "astro";
3
3
 
4
4
  //#region src/astro/routes/api/import/wordpress-plugin/execute.d.ts
@@ -1,16 +1,16 @@
1
1
  import "../../../../../dialect-helpers-DRI5pyY3.mjs";
2
2
  import "../../../../../after-B1IIdH3Y.mjs";
3
- import "../../../../../object-cache-SEb2IM4Z.mjs";
3
+ import "../../../../../object-cache-CHbHv83-.mjs";
4
4
  import { n as slugify } from "../../../../../slugify-Cce3dTdg.mjs";
5
5
  import "../../../../../base64-CmWvODNW.mjs";
6
- import "../../../../../types-CmI1OyQg.mjs";
6
+ import "../../../../../types-DU4TSFS5.mjs";
7
7
  import "../../../../../request-cache-KCNHp_RJ.mjs";
8
8
  import "../../../../../byline-registry-BOjqDOim.mjs";
9
- import "../../../../../field-defs-cache-CYYx8xlG.mjs";
10
- import { t as BylineRepository } from "../../../../../byline-C-YajfV7.mjs";
9
+ import "../../../../../field-defs-cache-BA-8ZPiT.mjs";
10
+ import { t as BylineRepository } from "../../../../../byline-DEKSVPTy.mjs";
11
11
  import { n as resolveAndValidateExternalUrl, t as SsrfError } from "../../../../../ssrf-BRKb343l.mjs";
12
- import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DXnK2wF4.mjs";
13
- import { n as parseBody, t as isParseError } from "../../../../../parse-DqMWHQ8x.mjs";
12
+ import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-BHkLZk-w.mjs";
13
+ import { n as parseBody, t as isParseError } from "../../../../../parse-CqyZj3Hp.mjs";
14
14
  import "../../../../../redirects-Dcbuisoj.mjs";
15
15
  import { h as wpPluginExecuteBody } from "../../../../../byline-fields-eyJMblSr.mjs";
16
16
  import "../../../../../status-vUK0SA17.mjs";
@@ -18,7 +18,7 @@ import "../../../../../api/schemas/index.mjs";
18
18
  import { s as getSource } from "../../../../../import-Bb1T9WJS.mjs";
19
19
  import "../../../../../ssrf-CcX9zvMK.mjs";
20
20
  import { m as resolveImportByline } from "../../../../../utils-B7A57fm9.mjs";
21
- import { n as requirePerm } from "../../../../../authorize-CuxZ0i2t.mjs";
21
+ import { n as requirePerm } from "../../../../../authorize-C3a_zGsM.mjs";
22
22
  import { ContentRepository, SchemaRegistry } from "emdash";
23
23
 
24
24
  //#region src/astro/routes/api/import/wordpress-plugin/execute.ts
@@ -1 +1 @@
1
- {"version":3,"file":"manifest.d.mts","names":[],"sources":["../../../../src/astro/routes/api/manifest.ts"],"mappings":";;;cAiBa,SAAA;AAAA,cAEA,GAAA,EAAK,QAAA"}
1
+ {"version":3,"file":"manifest.d.mts","names":[],"sources":["../../../../src/astro/routes/api/manifest.ts"],"mappings":";;;cAkBa,SAAA;AAAA,cAEA,GAAA,EAAK,QAAA"}
@@ -1,7 +1,8 @@
1
1
  import "../../../base64-CmWvODNW.mjs";
2
- import "../../../types-CmI1OyQg.mjs";
3
- import { r as handleError } from "../../../error-DXnK2wF4.mjs";
4
- import { n as VERSION, t as COMMIT } from "../../../version-DHdCA24u.mjs";
2
+ import "../../../types-DU4TSFS5.mjs";
3
+ import { t as OptionsRepository } from "../../../options-DTTML-Tx.mjs";
4
+ import { r as handleError } from "../../../error-BHkLZk-w.mjs";
5
+ import { n as VERSION, t as COMMIT } from "../../../version-CrqhKGWn.mjs";
5
6
  import { t as getAuthMode } from "../../../mode-BB0F8xTC.mjs";
6
7
 
7
8
  //#region src/astro/routes/api/manifest.ts
@@ -11,7 +12,15 @@ const GET = async ({ locals }) => {
11
12
  try {
12
13
  const emdashManifest = emdash ? await emdash.getManifest() : null;
13
14
  const authMode = getAuthMode(emdash?.config);
14
- const adminBranding = emdash?.config?.admin;
15
+ let adminBranding = emdash?.config?.admin;
16
+ if (!adminBranding?.siteName && emdash?.db) try {
17
+ const titles = await new OptionsRepository(emdash.db).getMany(["site:title", "emdash:site_title"]);
18
+ const siteTitle = titles.get("site:title") || titles.get("emdash:site_title");
19
+ if (siteTitle) adminBranding = {
20
+ ...adminBranding,
21
+ siteName: siteTitle
22
+ };
23
+ } catch {}
15
24
  let signupEnabled = false;
16
25
  if (emdash?.db && authMode.type === "passkey") try {
17
26
  const { sql } = await import("kysely");
@@ -1 +1 @@
1
- {"version":3,"file":"manifest.mjs","names":[],"sources":["../../../../src/astro/routes/api/manifest.ts"],"sourcesContent":["/**\n * Admin manifest endpoint - injected by EmDash integration\n *\n * GET /_emdash/api/manifest\n *\n * Returns the admin manifest with collection definitions and plugin info.\n * The manifest is generated from the user's live.config.ts at runtime.\n */\n\nimport type { APIRoute } from \"astro\";\n\nimport { handleError } from \"#api/error.js\";\nimport { getAuthMode } from \"#auth/mode.js\";\n\nimport { COMMIT, VERSION } from \"../../../version.js\";\nimport type { EmDashManifest } from \"../../types.js\";\n\nexport const prerender = false;\n\nexport const GET: APIRoute = async ({ locals }) => {\n\tconst { emdash } = locals;\n\n\ttry {\n\t\t// Manifest is built fresh from the live database per admin request.\n\t\t// `requestCached` inside `getManifest` dedupes if multiple consumers\n\t\t// share the request. Wrapped in try/catch so any future DB-touching\n\t\t// additions to `getManifest()` (plugin manifest loading, marketplace\n\t\t// lookup, etc.) return the standard error envelope rather than an\n\t\t// unstructured 500 — matches the pattern used by the WP execute\n\t\t// routes.\n\t\tconst emdashManifest = emdash ? await emdash.getManifest() : null;\n\n\t\t// Determine auth mode from config\n\t\tconst authMode = getAuthMode(emdash?.config);\n\n\t\t// Read admin branding from the per-request config plumbed through middleware\n\t\t// (same source admin.astro reads from). Reading from a build-time global\n\t\t// here was unreliable -- the virtual config module exports the config but\n\t\t// doesn't assign it to globalThis, so getStoredConfig() always returned\n\t\t// null and the React SPA never received custom logo/siteName/favicon.\n\t\t// See issue #835.\n\t\tconst adminBranding = emdash?.config?.admin;\n\n\t\t// Check if self-signup is enabled (any allowed domain with enabled = 1)\n\t\t// Only relevant for passkey auth — external auth providers handle their own signup\n\t\tlet signupEnabled = false;\n\t\tif (emdash?.db && authMode.type === \"passkey\") {\n\t\t\ttry {\n\t\t\t\tconst { sql } = await import(\"kysely\");\n\t\t\t\tconst result = await sql<{ cnt: unknown }>`\n\t\t\t\t\tSELECT COUNT(*) as cnt FROM allowed_domains WHERE enabled = 1\n\t\t\t\t`.execute(emdash.db);\n\t\t\t\tsignupEnabled = Number(result.rows[0]?.cnt ?? 0) > 0;\n\t\t\t} catch {\n\t\t\t\t// Table may not exist yet, that's fine\n\t\t\t}\n\t\t}\n\n\t\tconst manifest: EmDashManifest = emdashManifest\n\t\t\t? {\n\t\t\t\t\t...emdashManifest,\n\t\t\t\t\tauthMode: authMode.type === \"external\" ? authMode.providerType : \"passkey\",\n\t\t\t\t\tsignupEnabled,\n\t\t\t\t\tadmin: adminBranding,\n\t\t\t\t}\n\t\t\t: {\n\t\t\t\t\tversion: VERSION,\n\t\t\t\t\tcommit: COMMIT,\n\t\t\t\t\thash: \"default\",\n\t\t\t\t\tcollections: {},\n\t\t\t\t\tplugins: {},\n\t\t\t\t\ttaxonomies: [],\n\t\t\t\t\tauthMode: \"passkey\",\n\t\t\t\t\tsignupEnabled,\n\t\t\t\t\tadmin: adminBranding,\n\t\t\t\t};\n\n\t\treturn Response.json(\n\t\t\t{ data: manifest },\n\t\t\t{\n\t\t\t\theaders: {\n\t\t\t\t\t\"Cache-Control\": \"private, no-store\",\n\t\t\t\t},\n\t\t\t},\n\t\t);\n\t} catch (error) {\n\t\treturn handleError(error, \"Failed to build manifest\", \"MANIFEST_BUILD_ERROR\");\n\t}\n};\n"],"mappings":";;;;;;;AAiBA,MAAa,YAAY;AAEzB,MAAa,MAAgB,OAAO,EAAE,aAAa;CAClD,MAAM,EAAE,WAAW;AAEnB,KAAI;EAQH,MAAM,iBAAiB,SAAS,MAAM,OAAO,aAAa,GAAG;EAG7D,MAAM,WAAW,YAAY,QAAQ,OAAO;EAQ5C,MAAM,gBAAgB,QAAQ,QAAQ;EAItC,IAAI,gBAAgB;AACpB,MAAI,QAAQ,MAAM,SAAS,SAAS,UACnC,KAAI;GACH,MAAM,EAAE,QAAQ,MAAM,OAAO;GAC7B,MAAM,SAAS,MAAM,GAAqB;;MAExC,QAAQ,OAAO,GAAG;AACpB,mBAAgB,OAAO,OAAO,KAAK,IAAI,OAAO,EAAE,GAAG;UAC5C;EAKT,MAAM,WAA2B,iBAC9B;GACA,GAAG;GACH,UAAU,SAAS,SAAS,aAAa,SAAS,eAAe;GACjE;GACA,OAAO;GACP,GACA;GACA,SAAS;GACT,QAAQ;GACR,MAAM;GACN,aAAa,EAAE;GACf,SAAS,EAAE;GACX,YAAY,EAAE;GACd,UAAU;GACV;GACA,OAAO;GACP;AAEH,SAAO,SAAS,KACf,EAAE,MAAM,UAAU,EAClB,EACC,SAAS,EACR,iBAAiB,qBACjB,EACD,CACD;UACO,OAAO;AACf,SAAO,YAAY,OAAO,4BAA4B,uBAAuB"}
1
+ {"version":3,"file":"manifest.mjs","names":[],"sources":["../../../../src/astro/routes/api/manifest.ts"],"sourcesContent":["/**\n * Admin manifest endpoint - injected by EmDash integration\n *\n * GET /_emdash/api/manifest\n *\n * Returns the admin manifest with collection definitions and plugin info.\n * The manifest is generated from the user's live.config.ts at runtime.\n */\n\nimport type { APIRoute } from \"astro\";\n\nimport { handleError } from \"#api/error.js\";\nimport { getAuthMode } from \"#auth/mode.js\";\nimport { OptionsRepository } from \"#db/repositories/options.js\";\n\nimport { COMMIT, VERSION } from \"../../../version.js\";\nimport type { EmDashManifest } from \"../../types.js\";\n\nexport const prerender = false;\n\nexport const GET: APIRoute = async ({ locals }) => {\n\tconst { emdash } = locals;\n\n\ttry {\n\t\t// Manifest is built fresh from the live database per admin request.\n\t\t// `requestCached` inside `getManifest` dedupes if multiple consumers\n\t\t// share the request. Wrapped in try/catch so any future DB-touching\n\t\t// additions to `getManifest()` (plugin manifest loading, marketplace\n\t\t// lookup, etc.) return the standard error envelope rather than an\n\t\t// unstructured 500 — matches the pattern used by the WP execute\n\t\t// routes.\n\t\tconst emdashManifest = emdash ? await emdash.getManifest() : null;\n\n\t\t// Determine auth mode from config\n\t\tconst authMode = getAuthMode(emdash?.config);\n\n\t\t// Read admin branding from the per-request config plumbed through middleware\n\t\t// (same source admin.astro reads from). Reading from a build-time global\n\t\t// here was unreliable -- the virtual config module exports the config but\n\t\t// doesn't assign it to globalThis, so getStoredConfig() always returned\n\t\t// null and the React SPA never received custom logo/siteName/favicon.\n\t\t// See issue #835.\n\t\tlet adminBranding = emdash?.config?.admin;\n\n\t\t// When no build-time `admin.siteName` is configured, brand the admin with\n\t\t// the site's own title so multi-site operators can tell backends apart\n\t\t// (WordPress-style: wp-admin always shows the site name). Precedence:\n\t\t// explicit `admin.siteName` → Site Title (Settings → General) → the title\n\t\t// captured by the setup wizard → the bundled \"EmDash\" default in the SPA.\n\t\tif (!adminBranding?.siteName && emdash?.db) {\n\t\t\ttry {\n\t\t\t\tconst options = new OptionsRepository(emdash.db);\n\t\t\t\tconst titles = await options.getMany<string>([\"site:title\", \"emdash:site_title\"]);\n\t\t\t\tconst siteTitle = titles.get(\"site:title\") || titles.get(\"emdash:site_title\");\n\t\t\t\tif (siteTitle) {\n\t\t\t\t\tadminBranding = { ...adminBranding, siteName: siteTitle };\n\t\t\t\t}\n\t\t\t} catch {\n\t\t\t\t// options table may not exist yet (pre-setup) — keep the default.\n\t\t\t}\n\t\t}\n\n\t\t// Check if self-signup is enabled (any allowed domain with enabled = 1)\n\t\t// Only relevant for passkey auth — external auth providers handle their own signup\n\t\tlet signupEnabled = false;\n\t\tif (emdash?.db && authMode.type === \"passkey\") {\n\t\t\ttry {\n\t\t\t\tconst { sql } = await import(\"kysely\");\n\t\t\t\tconst result = await sql<{ cnt: unknown }>`\n\t\t\t\t\tSELECT COUNT(*) as cnt FROM allowed_domains WHERE enabled = 1\n\t\t\t\t`.execute(emdash.db);\n\t\t\t\tsignupEnabled = Number(result.rows[0]?.cnt ?? 0) > 0;\n\t\t\t} catch {\n\t\t\t\t// Table may not exist yet, that's fine\n\t\t\t}\n\t\t}\n\n\t\tconst manifest: EmDashManifest = emdashManifest\n\t\t\t? {\n\t\t\t\t\t...emdashManifest,\n\t\t\t\t\tauthMode: authMode.type === \"external\" ? authMode.providerType : \"passkey\",\n\t\t\t\t\tsignupEnabled,\n\t\t\t\t\tadmin: adminBranding,\n\t\t\t\t}\n\t\t\t: {\n\t\t\t\t\tversion: VERSION,\n\t\t\t\t\tcommit: COMMIT,\n\t\t\t\t\thash: \"default\",\n\t\t\t\t\tcollections: {},\n\t\t\t\t\tplugins: {},\n\t\t\t\t\ttaxonomies: [],\n\t\t\t\t\tauthMode: \"passkey\",\n\t\t\t\t\tsignupEnabled,\n\t\t\t\t\tadmin: adminBranding,\n\t\t\t\t};\n\n\t\treturn Response.json(\n\t\t\t{ data: manifest },\n\t\t\t{\n\t\t\t\theaders: {\n\t\t\t\t\t\"Cache-Control\": \"private, no-store\",\n\t\t\t\t},\n\t\t\t},\n\t\t);\n\t} catch (error) {\n\t\treturn handleError(error, \"Failed to build manifest\", \"MANIFEST_BUILD_ERROR\");\n\t}\n};\n"],"mappings":";;;;;;;;AAkBA,MAAa,YAAY;AAEzB,MAAa,MAAgB,OAAO,EAAE,aAAa;CAClD,MAAM,EAAE,WAAW;AAEnB,KAAI;EAQH,MAAM,iBAAiB,SAAS,MAAM,OAAO,aAAa,GAAG;EAG7D,MAAM,WAAW,YAAY,QAAQ,OAAO;EAQ5C,IAAI,gBAAgB,QAAQ,QAAQ;AAOpC,MAAI,CAAC,eAAe,YAAY,QAAQ,GACvC,KAAI;GAEH,MAAM,SAAS,MADC,IAAI,kBAAkB,OAAO,GAAG,CACnB,QAAgB,CAAC,cAAc,oBAAoB,CAAC;GACjF,MAAM,YAAY,OAAO,IAAI,aAAa,IAAI,OAAO,IAAI,oBAAoB;AAC7E,OAAI,UACH,iBAAgB;IAAE,GAAG;IAAe,UAAU;IAAW;UAEnD;EAOT,IAAI,gBAAgB;AACpB,MAAI,QAAQ,MAAM,SAAS,SAAS,UACnC,KAAI;GACH,MAAM,EAAE,QAAQ,MAAM,OAAO;GAC7B,MAAM,SAAS,MAAM,GAAqB;;MAExC,QAAQ,OAAO,GAAG;AACpB,mBAAgB,OAAO,OAAO,KAAK,IAAI,OAAO,EAAE,GAAG;UAC5C;EAKT,MAAM,WAA2B,iBAC9B;GACA,GAAG;GACH,UAAU,SAAS,SAAS,aAAa,SAAS,eAAe;GACjE;GACA,OAAO;GACP,GACA;GACA,SAAS;GACT,QAAQ;GACR,MAAM;GACN,aAAa,EAAE;GACf,SAAS,EAAE;GACX,YAAY,EAAE;GACd,UAAU;GACV;GACA,OAAO;GACP;AAEH,SAAO,SAAS,KACf,EAAE,MAAM,UAAU,EAClB,EACC,SAAS,EACR,iBAAiB,qBACjB,EACD,CACD;UACO,OAAO;AACf,SAAO,YAAY,OAAO,4BAA4B,uBAAuB"}